@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
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.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,
@@ -157,7 +157,7 @@ class Tools {
157
157
  method: "DELETE",
158
158
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
159
159
  ? yield core.Supplier.get(this._options.project)
160
- : 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),
160
+ : 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),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class Tools {
225
225
  method: "PATCH",
226
226
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
227
227
  ? yield core.Supplier.get(this._options.project)
228
- : 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),
228
+ : 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),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -348,7 +348,7 @@ class Tools {
348
348
  method: "GET",
349
349
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
350
350
  ? yield core.Supplier.get(this._options.project)
351
- : 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),
351
+ : 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),
352
352
  contentType: "application/json",
353
353
  queryParameters: _queryParams,
354
354
  requestType: "json",
@@ -474,7 +474,7 @@ class Tools {
474
474
  method: "GET",
475
475
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
476
476
  ? yield core.Supplier.get(this._options.project)
477
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.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),
477
+ : 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),
478
478
  contentType: "application/json",
479
479
  queryParameters: _queryParams,
480
480
  requestType: "json",
@@ -553,7 +553,7 @@ class Tools {
553
553
  method: "POST",
554
554
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
555
555
  ? yield core.Supplier.get(this._options.project)
556
- : 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),
556
+ : 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),
557
557
  contentType: "application/json",
558
558
  requestType: "json",
559
559
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -632,7 +632,7 @@ class Tools {
632
632
  method: "PUT",
633
633
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
634
634
  ? yield core.Supplier.get(this._options.project)
635
- : 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),
635
+ : 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),
636
636
  contentType: "application/json",
637
637
  requestType: "json",
638
638
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -708,7 +708,7 @@ class Tools {
708
708
  method: "POST",
709
709
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
710
710
  ? yield core.Supplier.get(this._options.project)
711
- : 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),
711
+ : 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),
712
712
  contentType: "application/json",
713
713
  requestType: "json",
714
714
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -789,7 +789,7 @@ class Tools {
789
789
  method: "POST",
790
790
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
791
791
  ? yield core.Supplier.get(this._options.project)
792
- : 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),
792
+ : 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),
793
793
  contentType: "application/json",
794
794
  requestType: "json",
795
795
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -867,7 +867,7 @@ class Tools {
867
867
  method: "GET",
868
868
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
869
869
  ? yield core.Supplier.get(this._options.project)
870
- : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
870
+ : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
871
871
  contentType: "application/json",
872
872
  requestType: "json",
873
873
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -943,7 +943,7 @@ class Tools {
943
943
  method: "GET",
944
944
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
945
945
  ? yield core.Supplier.get(this._options.project)
946
- : 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),
946
+ : 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),
947
947
  contentType: "application/json",
948
948
  requestType: "json",
949
949
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1019,7 +1019,7 @@ class Tools {
1019
1019
  method: "POST",
1020
1020
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1021
1021
  ? yield core.Supplier.get(this._options.project)
1022
- : 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),
1022
+ : 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),
1023
1023
  contentType: "application/json",
1024
1024
  requestType: "json",
1025
1025
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1096,7 +1096,7 @@ class Tools {
1096
1096
  method: "GET",
1097
1097
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1098
1098
  ? yield core.Supplier.get(this._options.project)
1099
- : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1099
+ : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1100
1100
  contentType: "application/json",
1101
1101
  requestType: "json",
1102
1102
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1176,7 +1176,7 @@ class Tools {
1176
1176
  method: "PUT",
1177
1177
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1178
1178
  ? yield core.Supplier.get(this._options.project)
1179
- : 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),
1179
+ : 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),
1180
1180
  contentType: "application/json",
1181
1181
  requestType: "json",
1182
1182
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1253,7 +1253,7 @@ class Tools {
1253
1253
  method: "GET",
1254
1254
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1255
1255
  ? yield core.Supplier.get(this._options.project)
1256
- : 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),
1256
+ : 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),
1257
1257
  contentType: "application/json",
1258
1258
  requestType: "json",
1259
1259
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1330,7 +1330,7 @@ class Tools {
1330
1330
  method: "POST",
1331
1331
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1332
1332
  ? yield core.Supplier.get(this._options.project)
1333
- : 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),
1333
+ : 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),
1334
1334
  contentType: "application/json",
1335
1335
  requestType: "json",
1336
1336
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1406,7 +1406,7 @@ class Tools {
1406
1406
  method: "DELETE",
1407
1407
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1408
1408
  ? yield core.Supplier.get(this._options.project)
1409
- : 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),
1409
+ : 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),
1410
1410
  contentType: "application/json",
1411
1411
  requestType: "json",
1412
1412
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1483,7 +1483,7 @@ class Tools {
1483
1483
  method: "PATCH",
1484
1484
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1485
1485
  ? yield core.Supplier.get(this._options.project)
1486
- : 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),
1486
+ : 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),
1487
1487
  contentType: "application/json",
1488
1488
  requestType: "json",
1489
1489
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1565,7 +1565,7 @@ class Tools {
1565
1565
  method: "POST",
1566
1566
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1567
1567
  ? yield core.Supplier.get(this._options.project)
1568
- : 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),
1568
+ : 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),
1569
1569
  contentType: "application/json",
1570
1570
  requestType: "json",
1571
1571
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1626,7 +1626,7 @@ class Tools {
1626
1626
  method: "POST",
1627
1627
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1628
1628
  ? yield core.Supplier.get(this._options.project)
1629
- : 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),
1629
+ : 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),
1630
1630
  contentType: "application/json",
1631
1631
  requestType: "json",
1632
1632
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -85,7 +85,7 @@ class Voice {
85
85
  method: "POST",
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.1.207", "User-Agent": "@letta-ai/letta-client/0.1.207", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (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.1.208", "User-Agent": "@letta-ai/letta-client/0.1.208", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Result from a message search operation with scoring details.
7
+ */
8
+ export interface MessageSearchResult {
9
+ /** The message content and metadata */
10
+ message: Letta.Message;
11
+ /** Full-text search (BM25) score if FTS was used */
12
+ ftsScore?: number;
13
+ /** Full-text search rank position if FTS was used */
14
+ ftsRank?: number;
15
+ /** Vector similarity score if vector search was used */
16
+ vectorScore?: number;
17
+ /** Vector search rank position if vector search was used */
18
+ vectorRank?: number;
19
+ /** Reciprocal Rank Fusion combined score */
20
+ rrfScore: number;
21
+ }
@@ -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 });
@@ -197,6 +197,7 @@ export * from "./MessageCreateRole";
197
197
  export * from "./MessageCreateContent";
198
198
  export * from "./MessageCreate";
199
199
  export * from "./MessageRole";
200
+ export * from "./MessageSearchResult";
200
201
  export * from "./MessageType";
201
202
  export * from "./ModalSandboxConfigLanguage";
202
203
  export * from "./ModalSandboxConfig";
@@ -213,6 +213,7 @@ __exportStar(require("./MessageCreateRole"), exports);
213
213
  __exportStar(require("./MessageCreateContent"), exports);
214
214
  __exportStar(require("./MessageCreate"), exports);
215
215
  __exportStar(require("./MessageRole"), exports);
216
+ __exportStar(require("./MessageSearchResult"), exports);
216
217
  __exportStar(require("./MessageType"), exports);
217
218
  __exportStar(require("./ModalSandboxConfigLanguage"), exports);
218
219
  __exportStar(require("./ModalSandboxConfig"), exports);
@@ -1,4 +1,5 @@
1
1
  export * as list from "./list";
2
2
  export * as cancel from "./cancel";
3
+ export * as search from "./search";
3
4
  export * as previewRawPayload from "./previewRawPayload";
4
5
  export * from "./requests";
@@ -36,8 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.previewRawPayload = exports.cancel = exports.list = void 0;
39
+ exports.previewRawPayload = exports.search = exports.cancel = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
41
  exports.cancel = __importStar(require("./cancel"));
42
+ exports.search = __importStar(require("./search"));
42
43
  exports.previewRawPayload = __importStar(require("./previewRawPayload"));
43
44
  __exportStar(require("./requests"), exports);
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../../index";
5
+ import * as Letta from "../../../../../../../api/index";
6
+ import * as core from "../../../../../../../core";
7
+ import { MessageSearchRequestSearchMode } from "../../types/MessageSearchRequestSearchMode";
8
+ import { MessageRole } from "../../../../../../types/MessageRole";
9
+ export declare const MessageSearchRequest: core.serialization.Schema<serializers.agents.MessageSearchRequest.Raw, Letta.agents.MessageSearchRequest>;
10
+ export declare namespace MessageSearchRequest {
11
+ interface Raw {
12
+ query_text?: string | null;
13
+ search_mode?: MessageSearchRequestSearchMode.Raw | null;
14
+ roles?: MessageRole.Raw[] | null;
15
+ project_id?: string | null;
16
+ limit?: number | null;
17
+ start_date?: string | null;
18
+ end_date?: string | null;
19
+ }
20
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MessageSearchRequest = void 0;
40
+ const core = __importStar(require("../../../../../../../core"));
41
+ const MessageSearchRequestSearchMode_1 = require("../../types/MessageSearchRequestSearchMode");
42
+ const MessageRole_1 = require("../../../../../../types/MessageRole");
43
+ exports.MessageSearchRequest = core.serialization.object({
44
+ queryText: core.serialization.property("query_text", core.serialization.string().optional()),
45
+ searchMode: core.serialization.property("search_mode", MessageSearchRequestSearchMode_1.MessageSearchRequestSearchMode.optional()),
46
+ roles: core.serialization.list(MessageRole_1.MessageRole).optional(),
47
+ projectId: core.serialization.property("project_id", core.serialization.string().optional()),
48
+ limit: core.serialization.number().optional(),
49
+ startDate: core.serialization.property("start_date", core.serialization.date().optional()),
50
+ endDate: core.serialization.property("end_date", core.serialization.date().optional()),
51
+ });
@@ -1,2 +1,3 @@
1
1
  export { CancelAgentRunRequest } from "./CancelAgentRunRequest";
2
+ export { MessageSearchRequest } from "./MessageSearchRequest";
2
3
  export { LettaAsyncRequest } from "./LettaAsyncRequest";
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LettaAsyncRequest = exports.CancelAgentRunRequest = void 0;
3
+ exports.LettaAsyncRequest = exports.MessageSearchRequest = exports.CancelAgentRunRequest = void 0;
4
4
  var CancelAgentRunRequest_1 = require("./CancelAgentRunRequest");
5
5
  Object.defineProperty(exports, "CancelAgentRunRequest", { enumerable: true, get: function () { return CancelAgentRunRequest_1.CancelAgentRunRequest; } });
6
+ var MessageSearchRequest_1 = require("./MessageSearchRequest");
7
+ Object.defineProperty(exports, "MessageSearchRequest", { enumerable: true, get: function () { return MessageSearchRequest_1.MessageSearchRequest; } });
6
8
  var LettaAsyncRequest_1 = require("./LettaAsyncRequest");
7
9
  Object.defineProperty(exports, "LettaAsyncRequest", { enumerable: true, get: function () { return LettaAsyncRequest_1.LettaAsyncRequest; } });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as Letta from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { MessageSearchResult } from "../../../../../types/MessageSearchResult";
8
+ export declare const Response: core.serialization.Schema<serializers.agents.messages.search.Response.Raw, Letta.MessageSearchResult[]>;
9
+ export declare namespace Response {
10
+ type Raw = MessageSearchResult.Raw[];
11
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Response = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const MessageSearchResult_1 = require("../../../../../types/MessageSearchResult");
42
+ exports.Response = core.serialization.list(MessageSearchResult_1.MessageSearchResult);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as Letta from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ export declare const MessageSearchRequestSearchMode: core.serialization.Schema<serializers.agents.MessageSearchRequestSearchMode.Raw, Letta.agents.MessageSearchRequestSearchMode>;
8
+ export declare namespace MessageSearchRequestSearchMode {
9
+ type Raw = "vector" | "fts" | "hybrid";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MessageSearchRequestSearchMode = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.MessageSearchRequestSearchMode = core.serialization.enum_(["vector", "fts", "hybrid"]);
@@ -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);
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { Message } from "./Message";
8
+ export declare const MessageSearchResult: core.serialization.ObjectSchema<serializers.MessageSearchResult.Raw, Letta.MessageSearchResult>;
9
+ export declare namespace MessageSearchResult {
10
+ interface Raw {
11
+ message: Message.Raw;
12
+ fts_score?: number | null;
13
+ fts_rank?: number | null;
14
+ vector_score?: number | null;
15
+ vector_rank?: number | null;
16
+ rrf_score: number;
17
+ }
18
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.MessageSearchResult = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const Message_1 = require("./Message");
42
+ exports.MessageSearchResult = core.serialization.object({
43
+ message: Message_1.Message,
44
+ ftsScore: core.serialization.property("fts_score", core.serialization.number().optional()),
45
+ ftsRank: core.serialization.property("fts_rank", core.serialization.number().optional()),
46
+ vectorScore: core.serialization.property("vector_score", core.serialization.number().optional()),
47
+ vectorRank: core.serialization.property("vector_rank", core.serialization.number().optional()),
48
+ rrfScore: core.serialization.property("rrf_score", core.serialization.number()),
49
+ });
@@ -197,6 +197,7 @@ export * from "./MessageCreateRole";
197
197
  export * from "./MessageCreateContent";
198
198
  export * from "./MessageCreate";
199
199
  export * from "./MessageRole";
200
+ export * from "./MessageSearchResult";
200
201
  export * from "./MessageType";
201
202
  export * from "./ModalSandboxConfigLanguage";
202
203
  export * from "./ModalSandboxConfig";
@@ -213,6 +213,7 @@ __exportStar(require("./MessageCreateRole"), exports);
213
213
  __exportStar(require("./MessageCreateContent"), exports);
214
214
  __exportStar(require("./MessageCreate"), exports);
215
215
  __exportStar(require("./MessageRole"), exports);
216
+ __exportStar(require("./MessageSearchResult"), exports);
216
217
  __exportStar(require("./MessageType"), exports);
217
218
  __exportStar(require("./ModalSandboxConfigLanguage"), exports);
218
219
  __exportStar(require("./ModalSandboxConfig"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.207";
1
+ export declare const SDK_VERSION = "0.1.208";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.207";
4
+ exports.SDK_VERSION = "0.1.208";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.207",
3
+ "version": "0.1.208",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",