@letta-ai/letta-client 0.1.207 → 0.1.208

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 (154) 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 +16 -0
  10. package/api/resources/agents/resources/messages/client/Client.js +88 -8
  11. package/api/resources/agents/resources/messages/client/requests/MessageSearchRequest.d.ts +24 -0
  12. package/api/resources/agents/resources/messages/client/requests/MessageSearchRequest.js +5 -0
  13. package/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  14. package/api/resources/agents/resources/messages/types/MessageSearchRequestSearchMode.d.ts +12 -0
  15. package/api/resources/agents/resources/messages/types/MessageSearchRequestSearchMode.js +11 -0
  16. package/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  17. package/api/resources/agents/resources/messages/types/index.js +1 -0
  18. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  19. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  20. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  21. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  22. package/api/resources/batches/client/Client.js +4 -4
  23. package/api/resources/blocks/client/Client.js +6 -6
  24. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  25. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  26. package/api/resources/embeddingModels/client/Client.js +1 -1
  27. package/api/resources/folders/client/Client.js +9 -9
  28. package/api/resources/folders/resources/files/client/Client.js +3 -3
  29. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  30. package/api/resources/groups/client/Client.js +6 -6
  31. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  32. package/api/resources/health/client/Client.js +1 -1
  33. package/api/resources/identities/client/Client.js +7 -7
  34. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  35. package/api/resources/jobs/client/Client.js +5 -5
  36. package/api/resources/messages/client/Client.js +1 -1
  37. package/api/resources/models/client/Client.js +2 -2
  38. package/api/resources/projects/client/Client.js +1 -1
  39. package/api/resources/providers/client/Client.js +6 -6
  40. package/api/resources/runs/client/Client.js +5 -5
  41. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  42. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  43. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  44. package/api/resources/sources/client/Client.js +10 -10
  45. package/api/resources/sources/resources/files/client/Client.js +3 -3
  46. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  47. package/api/resources/steps/client/Client.js +3 -3
  48. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  49. package/api/resources/tags/client/Client.js +1 -1
  50. package/api/resources/telemetry/client/Client.js +1 -1
  51. package/api/resources/templates/client/Client.js +9 -9
  52. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  53. package/api/resources/tools/client/Client.js +20 -20
  54. package/api/resources/voice/client/Client.js +1 -1
  55. package/api/types/MessageSearchResult.d.ts +21 -0
  56. package/api/types/MessageSearchResult.js +5 -0
  57. package/api/types/index.d.ts +1 -0
  58. package/api/types/index.js +1 -0
  59. package/dist/api/resources/agents/client/Client.js +11 -11
  60. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  61. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  62. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  63. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  64. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  65. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  66. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  67. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +16 -0
  68. package/dist/api/resources/agents/resources/messages/client/Client.js +88 -8
  69. package/dist/api/resources/agents/resources/messages/client/requests/MessageSearchRequest.d.ts +24 -0
  70. package/dist/api/resources/agents/resources/messages/client/requests/MessageSearchRequest.js +5 -0
  71. package/dist/api/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  72. package/dist/api/resources/agents/resources/messages/types/MessageSearchRequestSearchMode.d.ts +12 -0
  73. package/dist/api/resources/agents/resources/messages/types/MessageSearchRequestSearchMode.js +11 -0
  74. package/dist/api/resources/agents/resources/messages/types/index.d.ts +1 -0
  75. package/dist/api/resources/agents/resources/messages/types/index.js +1 -0
  76. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  77. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  78. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  79. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  80. package/dist/api/resources/batches/client/Client.js +4 -4
  81. package/dist/api/resources/blocks/client/Client.js +6 -6
  82. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  83. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  84. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  85. package/dist/api/resources/folders/client/Client.js +9 -9
  86. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  87. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  88. package/dist/api/resources/groups/client/Client.js +6 -6
  89. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  90. package/dist/api/resources/health/client/Client.js +1 -1
  91. package/dist/api/resources/identities/client/Client.js +7 -7
  92. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  93. package/dist/api/resources/jobs/client/Client.js +5 -5
  94. package/dist/api/resources/messages/client/Client.js +1 -1
  95. package/dist/api/resources/models/client/Client.js +2 -2
  96. package/dist/api/resources/projects/client/Client.js +1 -1
  97. package/dist/api/resources/providers/client/Client.js +6 -6
  98. package/dist/api/resources/runs/client/Client.js +5 -5
  99. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  100. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  101. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  102. package/dist/api/resources/sources/client/Client.js +10 -10
  103. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  104. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  105. package/dist/api/resources/steps/client/Client.js +3 -3
  106. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  107. package/dist/api/resources/tags/client/Client.js +1 -1
  108. package/dist/api/resources/telemetry/client/Client.js +1 -1
  109. package/dist/api/resources/templates/client/Client.js +9 -9
  110. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  111. package/dist/api/resources/tools/client/Client.js +20 -20
  112. package/dist/api/resources/voice/client/Client.js +1 -1
  113. package/dist/api/types/MessageSearchResult.d.ts +21 -0
  114. package/dist/api/types/MessageSearchResult.js +5 -0
  115. package/dist/api/types/index.d.ts +1 -0
  116. package/dist/api/types/index.js +1 -0
  117. package/dist/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
  118. package/dist/serialization/resources/agents/resources/messages/client/index.js +2 -1
  119. package/dist/serialization/resources/agents/resources/messages/client/requests/MessageSearchRequest.d.ts +20 -0
  120. package/dist/serialization/resources/agents/resources/messages/client/requests/MessageSearchRequest.js +51 -0
  121. package/dist/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  122. package/dist/serialization/resources/agents/resources/messages/client/requests/index.js +3 -1
  123. package/dist/serialization/resources/agents/resources/messages/client/search.d.ts +11 -0
  124. package/dist/serialization/resources/agents/resources/messages/client/search.js +42 -0
  125. package/dist/serialization/resources/agents/resources/messages/types/MessageSearchRequestSearchMode.d.ts +10 -0
  126. package/dist/serialization/resources/agents/resources/messages/types/MessageSearchRequestSearchMode.js +41 -0
  127. package/dist/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  128. package/dist/serialization/resources/agents/resources/messages/types/index.js +1 -0
  129. package/dist/serialization/types/MessageSearchResult.d.ts +18 -0
  130. package/dist/serialization/types/MessageSearchResult.js +49 -0
  131. package/dist/serialization/types/index.d.ts +1 -0
  132. package/dist/serialization/types/index.js +1 -0
  133. package/dist/version.d.ts +1 -1
  134. package/dist/version.js +1 -1
  135. package/package.json +1 -1
  136. package/reference.md +66 -0
  137. package/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
  138. package/serialization/resources/agents/resources/messages/client/index.js +2 -1
  139. package/serialization/resources/agents/resources/messages/client/requests/MessageSearchRequest.d.ts +20 -0
  140. package/serialization/resources/agents/resources/messages/client/requests/MessageSearchRequest.js +51 -0
  141. package/serialization/resources/agents/resources/messages/client/requests/index.d.ts +1 -0
  142. package/serialization/resources/agents/resources/messages/client/requests/index.js +3 -1
  143. package/serialization/resources/agents/resources/messages/client/search.d.ts +11 -0
  144. package/serialization/resources/agents/resources/messages/client/search.js +42 -0
  145. package/serialization/resources/agents/resources/messages/types/MessageSearchRequestSearchMode.d.ts +10 -0
  146. package/serialization/resources/agents/resources/messages/types/MessageSearchRequestSearchMode.js +41 -0
  147. package/serialization/resources/agents/resources/messages/types/index.d.ts +1 -0
  148. package/serialization/resources/agents/resources/messages/types/index.js +1 -0
  149. package/serialization/types/MessageSearchResult.d.ts +18 -0
  150. package/serialization/types/MessageSearchResult.js +49 -0
  151. package/serialization/types/index.d.ts +1 -0
  152. package/serialization/types/index.js +1 -0
  153. package/version.d.ts +1 -1
  154. package/version.js +1 -1
@@ -206,7 +206,7 @@ class Agents {
206
206
  method: "GET",
207
207
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
208
208
  ? yield core.Supplier.get(this._options.project)
209
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
210
  contentType: "application/json",
211
211
  queryParameters: _queryParams,
212
212
  requestType: "json",
@@ -283,7 +283,7 @@ class Agents {
283
283
  method: "POST",
284
284
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
285
285
  ? yield core.Supplier.get(this._options.project)
286
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
286
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
287
287
  contentType: "application/json",
288
288
  requestType: "json",
289
289
  body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -359,7 +359,7 @@ class Agents {
359
359
  method: "GET",
360
360
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
361
361
  ? yield core.Supplier.get(this._options.project)
362
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
362
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
363
363
  contentType: "application/json",
364
364
  requestType: "json",
365
365
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -448,7 +448,7 @@ class Agents {
448
448
  method: "GET",
449
449
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
450
450
  ? yield core.Supplier.get(this._options.project)
451
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
451
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
452
452
  contentType: "application/json",
453
453
  queryParameters: _queryParams,
454
454
  requestType: "json",
@@ -548,7 +548,7 @@ class Agents {
548
548
  method: "POST",
549
549
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
550
550
  ? yield core.Supplier.get(this._options.project)
551
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
551
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
552
552
  requestType: "file",
553
553
  duplex: _maybeEncodedRequest.duplex,
554
554
  body: _maybeEncodedRequest.body,
@@ -636,7 +636,7 @@ class Agents {
636
636
  method: "GET",
637
637
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
638
638
  ? yield core.Supplier.get(this._options.project)
639
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
639
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
640
640
  contentType: "application/json",
641
641
  queryParameters: _queryParams,
642
642
  requestType: "json",
@@ -713,7 +713,7 @@ class Agents {
713
713
  method: "DELETE",
714
714
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
715
715
  ? yield core.Supplier.get(this._options.project)
716
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
716
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
717
717
  contentType: "application/json",
718
718
  requestType: "json",
719
719
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -781,7 +781,7 @@ class Agents {
781
781
  method: "PATCH",
782
782
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
783
783
  ? yield core.Supplier.get(this._options.project)
784
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
784
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
785
785
  contentType: "application/json",
786
786
  requestType: "json",
787
787
  body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -870,7 +870,7 @@ class Agents {
870
870
  method: "GET",
871
871
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
872
872
  ? yield core.Supplier.get(this._options.project)
873
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
873
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
874
874
  contentType: "application/json",
875
875
  queryParameters: _queryParams,
876
876
  requestType: "json",
@@ -956,7 +956,7 @@ class Agents {
956
956
  method: "POST",
957
957
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
958
958
  ? yield core.Supplier.get(this._options.project)
959
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
959
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
960
960
  contentType: "application/json",
961
961
  queryParameters: _queryParams,
962
962
  requestType: "json",
@@ -1024,7 +1024,7 @@ class Agents {
1024
1024
  method: "POST",
1025
1025
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1026
1026
  ? yield core.Supplier.get(this._options.project)
1027
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1027
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1028
1028
  contentType: "application/json",
1029
1029
  requestType: "json",
1030
1030
  body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -82,7 +82,7 @@ class Blocks {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -160,7 +160,7 @@ class Blocks {
160
160
  method: "PATCH",
161
161
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
162
162
  ? yield core.Supplier.get(this._options.project)
163
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class Blocks {
237
237
  method: "GET",
238
238
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
239
239
  ? yield core.Supplier.get(this._options.project)
240
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -314,7 +314,7 @@ class Blocks {
314
314
  method: "PATCH",
315
315
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
316
316
  ? yield core.Supplier.get(this._options.project)
317
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
317
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
318
318
  contentType: "application/json",
319
319
  requestType: "json",
320
320
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -391,7 +391,7 @@ class Blocks {
391
391
  method: "PATCH",
392
392
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
393
393
  ? yield core.Supplier.get(this._options.project)
394
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
394
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
395
395
  contentType: "application/json",
396
396
  requestType: "json",
397
397
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -81,7 +81,7 @@ class Context {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-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,
@@ -82,7 +82,7 @@ class CoreMemory {
82
82
  method: "GET",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Files {
84
84
  method: "PATCH",
85
85
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
86
86
  ? yield core.Supplier.get(this._options.project)
87
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -165,7 +165,7 @@ class Files {
165
165
  method: "PATCH",
166
166
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
167
167
  ? yield core.Supplier.get(this._options.project)
168
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-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
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -245,7 +245,7 @@ class Files {
245
245
  method: "PATCH",
246
246
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
247
247
  ? 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.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
248
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-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
249
  contentType: "application/json",
250
250
  requestType: "json",
251
251
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -308,7 +308,7 @@ class Files {
308
308
  method: "PATCH",
309
309
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
310
310
  ? yield core.Supplier.get(this._options.project)
311
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
311
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
312
312
  contentType: "application/json",
313
313
  requestType: "json",
314
314
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class Folders {
82
82
  method: "PATCH",
83
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -159,7 +159,7 @@ class Folders {
159
159
  method: "PATCH",
160
160
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
161
161
  ? yield core.Supplier.get(this._options.project)
162
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class Folders {
235
235
  method: "GET",
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.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-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.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-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,
@@ -87,7 +87,7 @@ class Groups {
87
87
  method: "GET",
88
88
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
89
89
  ? yield core.Supplier.get(this._options.project)
90
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -83,7 +83,7 @@ class MemoryVariables {
83
83
  method: "GET",
84
84
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
85
85
  ? yield core.Supplier.get(this._options.project)
86
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -107,6 +107,22 @@ export declare class Messages {
107
107
  */
108
108
  cancel(agentId: string, request?: Letta.agents.CancelAgentRunRequest, requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<Record<string, unknown>>;
109
109
  private __cancel;
110
+ /**
111
+ * Search messages across the entire organization with optional project filtering.
112
+ * Returns messages with FTS/vector ranks and total RRF score.
113
+ *
114
+ * Requires message embedding and Turbopuffer to be enabled.
115
+ *
116
+ * @param {Letta.agents.MessageSearchRequest} request
117
+ * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
118
+ *
119
+ * @throws {@link Letta.UnprocessableEntityError}
120
+ *
121
+ * @example
122
+ * await client.agents.messages.search()
123
+ */
124
+ search(request?: Letta.agents.MessageSearchRequest, requestOptions?: Messages.RequestOptions): core.HttpResponsePromise<Letta.MessageSearchResult[]>;
125
+ private __search;
110
126
  /**
111
127
  * Asynchronously process a user message and return a run object.
112
128
  * The actual processing happens in the background, and the status can be checked using the run ID.
@@ -108,7 +108,7 @@ class Messages {
108
108
  method: "GET",
109
109
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
110
110
  ? yield core.Supplier.get(this._options.project)
111
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
111
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
112
112
  contentType: "application/json",
113
113
  queryParameters: _queryParams,
114
114
  requestType: "json",
@@ -195,7 +195,7 @@ class Messages {
195
195
  method: "POST",
196
196
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
197
197
  ? yield core.Supplier.get(this._options.project)
198
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
198
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
199
199
  contentType: "application/json",
200
200
  requestType: "json",
201
201
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -276,7 +276,7 @@ class Messages {
276
276
  method: "PATCH",
277
277
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
278
278
  ? yield core.Supplier.get(this._options.project)
279
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
280
280
  contentType: "application/json",
281
281
  requestType: "json",
282
282
  body: serializers.agents.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -347,7 +347,7 @@ class Messages {
347
347
  method: "POST",
348
348
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
349
349
  ? yield core.Supplier.get(this._options.project)
350
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
350
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
351
351
  contentType: "application/json",
352
352
  requestType: "json",
353
353
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -438,7 +438,7 @@ class Messages {
438
438
  method: "POST",
439
439
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
440
440
  ? yield core.Supplier.get(this._options.project)
441
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
441
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
442
442
  contentType: "application/json",
443
443
  requestType: "json",
444
444
  body: serializers.agents.CancelAgentRunRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -493,6 +493,86 @@ class Messages {
493
493
  }
494
494
  });
495
495
  }
496
+ /**
497
+ * Search messages across the entire organization with optional project filtering.
498
+ * Returns messages with FTS/vector ranks and total RRF score.
499
+ *
500
+ * Requires message embedding and Turbopuffer to be enabled.
501
+ *
502
+ * @param {Letta.agents.MessageSearchRequest} request
503
+ * @param {Messages.RequestOptions} requestOptions - Request-specific configuration.
504
+ *
505
+ * @throws {@link Letta.UnprocessableEntityError}
506
+ *
507
+ * @example
508
+ * await client.agents.messages.search()
509
+ */
510
+ search(request = {}, requestOptions) {
511
+ return core.HttpResponsePromise.fromPromise(this.__search(request, requestOptions));
512
+ }
513
+ __search() {
514
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
515
+ var _a, _b, _c;
516
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
517
+ 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/agents/messages/search"),
518
+ method: "POST",
519
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
520
+ ? yield core.Supplier.get(this._options.project)
521
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
522
+ contentType: "application/json",
523
+ requestType: "json",
524
+ body: serializers.agents.MessageSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
525
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
526
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
527
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
528
+ });
529
+ if (_response.ok) {
530
+ return {
531
+ data: serializers.agents.messages.search.Response.parseOrThrow(_response.body, {
532
+ unrecognizedObjectKeys: "passthrough",
533
+ allowUnrecognizedUnionMembers: true,
534
+ allowUnrecognizedEnumValues: true,
535
+ skipValidation: true,
536
+ breadcrumbsPrefix: ["response"],
537
+ }),
538
+ rawResponse: _response.rawResponse,
539
+ };
540
+ }
541
+ if (_response.error.reason === "status-code") {
542
+ switch (_response.error.statusCode) {
543
+ case 422:
544
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
545
+ unrecognizedObjectKeys: "passthrough",
546
+ allowUnrecognizedUnionMembers: true,
547
+ allowUnrecognizedEnumValues: true,
548
+ skipValidation: true,
549
+ breadcrumbsPrefix: ["response"],
550
+ }), _response.rawResponse);
551
+ default:
552
+ throw new errors.LettaError({
553
+ statusCode: _response.error.statusCode,
554
+ body: _response.error.body,
555
+ rawResponse: _response.rawResponse,
556
+ });
557
+ }
558
+ }
559
+ switch (_response.error.reason) {
560
+ case "non-json":
561
+ throw new errors.LettaError({
562
+ statusCode: _response.error.statusCode,
563
+ body: _response.error.rawBody,
564
+ rawResponse: _response.rawResponse,
565
+ });
566
+ case "timeout":
567
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/agents/messages/search.");
568
+ case "unknown":
569
+ throw new errors.LettaError({
570
+ message: _response.error.errorMessage,
571
+ rawResponse: _response.rawResponse,
572
+ });
573
+ }
574
+ });
575
+ }
496
576
  /**
497
577
  * Asynchronously process a user message and return a run object.
498
578
  * The actual processing happens in the background, and the status can be checked using the run ID.
@@ -528,7 +608,7 @@ class Messages {
528
608
  method: "POST",
529
609
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
530
610
  ? yield core.Supplier.get(this._options.project)
531
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
611
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
532
612
  contentType: "application/json",
533
613
  requestType: "json",
534
614
  body: serializers.agents.LettaAsyncRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -611,7 +691,7 @@ class Messages {
611
691
  method: "PATCH",
612
692
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
613
693
  ? yield core.Supplier.get(this._options.project)
614
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
694
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
615
695
  contentType: "application/json",
616
696
  queryParameters: _queryParams,
617
697
  requestType: "json",
@@ -701,7 +781,7 @@ class Messages {
701
781
  method: "POST",
702
782
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
703
783
  ? yield core.Supplier.get(this._options.project)
704
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
784
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
705
785
  contentType: "application/json",
706
786
  requestType: "json",
707
787
  body: serializers.agents.MessagesPreviewRawPayloadRequest.jsonOrThrow(request, {
@@ -0,0 +1,24 @@
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 MessageSearchRequest {
10
+ /** Text query for full-text search */
11
+ queryText?: string;
12
+ /** Search mode to use */
13
+ searchMode?: Letta.agents.MessageSearchRequestSearchMode;
14
+ /** Filter messages by role */
15
+ roles?: Letta.MessageRole[];
16
+ /** Filter messages by project ID */
17
+ projectId?: string;
18
+ /** Maximum number of results to return */
19
+ limit?: number;
20
+ /** Filter messages created after this date */
21
+ startDate?: Date;
22
+ /** Filter messages created on or before this date */
23
+ endDate?: Date;
24
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  export { type MessagesListRequest } from "./MessagesListRequest";
2
2
  export { type CancelAgentRunRequest } from "./CancelAgentRunRequest";
3
+ export { type MessageSearchRequest } from "./MessageSearchRequest";
3
4
  export { type LettaAsyncRequest } from "./LettaAsyncRequest";
4
5
  export { type MessagesResetRequest } from "./MessagesResetRequest";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Search mode to use
6
+ */
7
+ export type MessageSearchRequestSearchMode = "vector" | "fts" | "hybrid";
8
+ export declare const MessageSearchRequestSearchMode: {
9
+ readonly Vector: "vector";
10
+ readonly Fts: "fts";
11
+ readonly Hybrid: "hybrid";
12
+ };
@@ -0,0 +1,11 @@
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.MessageSearchRequestSearchMode = void 0;
7
+ exports.MessageSearchRequestSearchMode = {
8
+ Vector: "vector",
9
+ Fts: "fts",
10
+ Hybrid: "hybrid",
11
+ };
@@ -1,5 +1,6 @@
1
1
  export * from "./MessagesModifyRequest";
2
2
  export * from "./MessagesModifyResponse";
3
3
  export * from "./LettaStreamingResponse";
4
+ export * from "./MessageSearchRequestSearchMode";
4
5
  export * from "./LettaAsyncRequestMessagesItem";
5
6
  export * from "./MessagesPreviewRawPayloadRequest";
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./MessagesModifyRequest"), exports);
18
18
  __exportStar(require("./MessagesModifyResponse"), exports);
19
19
  __exportStar(require("./LettaStreamingResponse"), exports);
20
+ __exportStar(require("./MessageSearchRequestSearchMode"), exports);
20
21
  __exportStar(require("./LettaAsyncRequestMessagesItem"), exports);
21
22
  __exportStar(require("./MessagesPreviewRawPayloadRequest"), exports);