@letta-ai/letta-client 0.1.166 → 0.1.167

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 (160) hide show
  1. package/api/resources/agents/client/Client.js +10 -10
  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 +3 -3
  6. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  7. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +8 -8
  10. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  11. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  12. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  13. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  14. package/api/resources/batches/client/Client.js +4 -4
  15. package/api/resources/blocks/client/Client.js +6 -6
  16. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  17. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  18. package/api/resources/embeddingModels/client/Client.js +1 -1
  19. package/api/resources/folders/client/Client.js +9 -9
  20. package/api/resources/folders/resources/files/client/Client.js +3 -3
  21. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  22. package/api/resources/groups/client/Client.js +6 -6
  23. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  24. package/api/resources/health/client/Client.js +1 -1
  25. package/api/resources/identities/client/Client.js +7 -7
  26. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  27. package/api/resources/jobs/client/Client.js +5 -5
  28. package/api/resources/messages/client/Client.js +1 -1
  29. package/api/resources/models/client/Client.js +1 -1
  30. package/api/resources/projects/client/Client.js +1 -1
  31. package/api/resources/providers/client/Client.js +5 -5
  32. package/api/resources/runs/client/Client.js +4 -4
  33. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  34. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  35. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  36. package/api/resources/sources/client/Client.js +10 -10
  37. package/api/resources/sources/resources/files/client/Client.js +3 -3
  38. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  39. package/api/resources/steps/client/Client.js +2 -2
  40. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  41. package/api/resources/tags/client/Client.js +1 -1
  42. package/api/resources/telemetry/client/Client.js +1 -1
  43. package/api/resources/templates/client/Client.js +1 -1
  44. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  45. package/api/resources/tools/client/Client.d.ts +2 -27
  46. package/api/resources/tools/client/Client.js +34 -106
  47. package/api/resources/tools/client/requests/index.d.ts +0 -1
  48. package/api/resources/tools/types/ConnectMcpServerResponseEvent.d.ts +12 -0
  49. package/api/resources/tools/types/ConnectMcpServerResponseEvent.js +14 -0
  50. package/api/resources/tools/types/StreamingResponse.d.ts +9 -0
  51. package/api/resources/tools/types/index.d.ts +2 -0
  52. package/api/resources/tools/types/index.js +2 -0
  53. package/api/resources/voice/client/Client.js +1 -1
  54. package/api/types/FileMetadata.d.ts +0 -2
  55. package/api/types/LlmConfig.d.ts +2 -0
  56. package/api/types/LlmConfigCompatibilityType.d.ts +8 -0
  57. package/api/types/LlmConfigCompatibilityType.js +10 -0
  58. package/api/types/index.d.ts +1 -0
  59. package/api/types/index.js +1 -0
  60. package/core/index.d.ts +1 -1
  61. package/core/index.js +1 -1
  62. package/dist/api/resources/agents/client/Client.js +10 -10
  63. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  64. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  65. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  66. package/dist/api/resources/agents/resources/files/client/Client.js +3 -3
  67. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  68. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  69. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  70. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  71. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  72. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  73. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  74. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  75. package/dist/api/resources/batches/client/Client.js +4 -4
  76. package/dist/api/resources/blocks/client/Client.js +6 -6
  77. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  78. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  79. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  80. package/dist/api/resources/folders/client/Client.js +9 -9
  81. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  82. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  83. package/dist/api/resources/groups/client/Client.js +6 -6
  84. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  85. package/dist/api/resources/health/client/Client.js +1 -1
  86. package/dist/api/resources/identities/client/Client.js +7 -7
  87. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  88. package/dist/api/resources/jobs/client/Client.js +5 -5
  89. package/dist/api/resources/messages/client/Client.js +1 -1
  90. package/dist/api/resources/models/client/Client.js +1 -1
  91. package/dist/api/resources/projects/client/Client.js +1 -1
  92. package/dist/api/resources/providers/client/Client.js +5 -5
  93. package/dist/api/resources/runs/client/Client.js +4 -4
  94. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  95. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  96. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  97. package/dist/api/resources/sources/client/Client.js +10 -10
  98. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  99. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  100. package/dist/api/resources/steps/client/Client.js +2 -2
  101. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  102. package/dist/api/resources/tags/client/Client.js +1 -1
  103. package/dist/api/resources/telemetry/client/Client.js +1 -1
  104. package/dist/api/resources/templates/client/Client.js +1 -1
  105. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  106. package/dist/api/resources/tools/client/Client.d.ts +2 -27
  107. package/dist/api/resources/tools/client/Client.js +34 -106
  108. package/dist/api/resources/tools/client/requests/index.d.ts +0 -1
  109. package/dist/api/resources/tools/types/ConnectMcpServerResponseEvent.d.ts +12 -0
  110. package/dist/api/resources/tools/types/ConnectMcpServerResponseEvent.js +14 -0
  111. package/dist/api/resources/tools/types/StreamingResponse.d.ts +9 -0
  112. package/dist/api/resources/tools/types/index.d.ts +2 -0
  113. package/dist/api/resources/tools/types/index.js +2 -0
  114. package/dist/api/resources/voice/client/Client.js +1 -1
  115. package/dist/api/types/FileMetadata.d.ts +0 -2
  116. package/dist/api/types/LlmConfig.d.ts +2 -0
  117. package/dist/api/types/LlmConfigCompatibilityType.d.ts +8 -0
  118. package/dist/api/types/LlmConfigCompatibilityType.js +10 -0
  119. package/dist/api/types/index.d.ts +1 -0
  120. package/dist/api/types/index.js +1 -0
  121. package/dist/core/index.d.ts +1 -1
  122. package/dist/core/index.js +1 -1
  123. package/dist/serialization/resources/tools/types/ConnectMcpServerResponseEvent.d.ts +10 -0
  124. package/dist/serialization/resources/tools/types/ConnectMcpServerResponseEvent.js +48 -0
  125. package/dist/serialization/resources/tools/types/StreamingResponse.d.ts +16 -0
  126. package/dist/serialization/resources/tools/types/StreamingResponse.js +47 -0
  127. package/dist/serialization/resources/tools/types/index.d.ts +2 -0
  128. package/dist/serialization/resources/tools/types/index.js +2 -0
  129. package/dist/serialization/types/FileMetadata.d.ts +0 -1
  130. package/dist/serialization/types/FileMetadata.js +0 -1
  131. package/dist/serialization/types/LlmConfig.d.ts +2 -0
  132. package/dist/serialization/types/LlmConfig.js +2 -0
  133. package/dist/serialization/types/LlmConfigCompatibilityType.d.ts +10 -0
  134. package/dist/serialization/types/LlmConfigCompatibilityType.js +41 -0
  135. package/dist/serialization/types/index.d.ts +1 -0
  136. package/dist/serialization/types/index.js +1 -0
  137. package/dist/version.d.ts +1 -1
  138. package/dist/version.js +1 -1
  139. package/package.json +1 -1
  140. package/reference.md +6 -74
  141. package/serialization/resources/tools/types/ConnectMcpServerResponseEvent.d.ts +10 -0
  142. package/serialization/resources/tools/types/ConnectMcpServerResponseEvent.js +48 -0
  143. package/serialization/resources/tools/types/StreamingResponse.d.ts +16 -0
  144. package/serialization/resources/tools/types/StreamingResponse.js +47 -0
  145. package/serialization/resources/tools/types/index.d.ts +2 -0
  146. package/serialization/resources/tools/types/index.js +2 -0
  147. package/serialization/types/FileMetadata.d.ts +0 -1
  148. package/serialization/types/FileMetadata.js +0 -1
  149. package/serialization/types/LlmConfig.d.ts +2 -0
  150. package/serialization/types/LlmConfig.js +2 -0
  151. package/serialization/types/LlmConfigCompatibilityType.d.ts +10 -0
  152. package/serialization/types/LlmConfigCompatibilityType.js +41 -0
  153. package/serialization/types/index.d.ts +1 -0
  154. package/serialization/types/index.js +1 -0
  155. package/version.d.ts +1 -1
  156. package/version.js +1 -1
  157. package/api/resources/tools/client/requests/McpOauthCallbackRequest.d.ts +0 -25
  158. package/dist/api/resources/tools/client/requests/McpOauthCallbackRequest.d.ts +0 -25
  159. /package/api/resources/tools/{client/requests/McpOauthCallbackRequest.js → types/StreamingResponse.js} +0 -0
  160. /package/dist/api/resources/tools/{client/requests/McpOauthCallbackRequest.js → types/StreamingResponse.js} +0 -0
@@ -78,7 +78,7 @@ class Tools {
78
78
  method: "GET",
79
79
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
80
80
  ? yield core.Supplier.get(this._options.project)
81
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
81
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -145,7 +145,7 @@ class Tools {
145
145
  method: "DELETE",
146
146
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
147
147
  ? yield core.Supplier.get(this._options.project)
148
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
148
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -207,7 +207,7 @@ class Tools {
207
207
  method: "PATCH",
208
208
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
209
209
  ? yield core.Supplier.get(this._options.project)
210
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
211
211
  contentType: "application/json",
212
212
  requestType: "json",
213
213
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -280,7 +280,7 @@ class Tools {
280
280
  method: "GET",
281
281
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
282
282
  ? yield core.Supplier.get(this._options.project)
283
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
283
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
284
284
  contentType: "application/json",
285
285
  queryParameters: _queryParams,
286
286
  requestType: "json",
@@ -359,7 +359,7 @@ class Tools {
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.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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
  queryParameters: _queryParams,
365
365
  requestType: "json",
@@ -429,7 +429,7 @@ class Tools {
429
429
  method: "POST",
430
430
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
431
431
  ? yield core.Supplier.get(this._options.project)
432
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
432
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
433
433
  contentType: "application/json",
434
434
  requestType: "json",
435
435
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -499,7 +499,7 @@ class Tools {
499
499
  method: "PUT",
500
500
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
501
501
  ? yield core.Supplier.get(this._options.project)
502
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
502
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
503
503
  contentType: "application/json",
504
504
  requestType: "json",
505
505
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -566,7 +566,7 @@ class Tools {
566
566
  method: "POST",
567
567
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
568
568
  ? yield core.Supplier.get(this._options.project)
569
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
569
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
570
570
  contentType: "application/json",
571
571
  requestType: "json",
572
572
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -638,7 +638,7 @@ class Tools {
638
638
  method: "POST",
639
639
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
640
640
  ? yield core.Supplier.get(this._options.project)
641
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
641
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
642
642
  contentType: "application/json",
643
643
  requestType: "json",
644
644
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -707,7 +707,7 @@ class Tools {
707
707
  method: "GET",
708
708
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
709
709
  ? yield core.Supplier.get(this._options.project)
710
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
710
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
711
711
  contentType: "application/json",
712
712
  requestType: "json",
713
713
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -774,7 +774,7 @@ class Tools {
774
774
  method: "GET",
775
775
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
776
776
  ? yield core.Supplier.get(this._options.project)
777
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
777
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
778
778
  contentType: "application/json",
779
779
  requestType: "json",
780
780
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -841,7 +841,7 @@ class Tools {
841
841
  method: "POST",
842
842
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
843
843
  ? yield core.Supplier.get(this._options.project)
844
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
844
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
845
845
  contentType: "application/json",
846
846
  requestType: "json",
847
847
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -909,7 +909,7 @@ class Tools {
909
909
  method: "GET",
910
910
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
911
911
  ? yield core.Supplier.get(this._options.project)
912
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
912
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
913
913
  contentType: "application/json",
914
914
  requestType: "json",
915
915
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -980,7 +980,7 @@ class Tools {
980
980
  method: "PUT",
981
981
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
982
982
  ? yield core.Supplier.get(this._options.project)
983
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
983
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
984
984
  contentType: "application/json",
985
985
  requestType: "json",
986
986
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1048,7 +1048,7 @@ class Tools {
1048
1048
  method: "GET",
1049
1049
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1050
1050
  ? yield core.Supplier.get(this._options.project)
1051
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
1051
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
1052
1052
  contentType: "application/json",
1053
1053
  requestType: "json",
1054
1054
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1116,7 +1116,7 @@ class Tools {
1116
1116
  method: "POST",
1117
1117
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1118
1118
  ? yield core.Supplier.get(this._options.project)
1119
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
1119
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
1120
1120
  contentType: "application/json",
1121
1121
  requestType: "json",
1122
1122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1183,7 +1183,7 @@ class Tools {
1183
1183
  method: "DELETE",
1184
1184
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1185
1185
  ? yield core.Supplier.get(this._options.project)
1186
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
1186
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
1187
1187
  contentType: "application/json",
1188
1188
  requestType: "json",
1189
1189
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1251,7 +1251,7 @@ class Tools {
1251
1251
  method: "PATCH",
1252
1252
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1253
1253
  ? yield core.Supplier.get(this._options.project)
1254
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
1254
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
1255
1255
  contentType: "application/json",
1256
1256
  requestType: "json",
1257
1257
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1302,7 +1302,7 @@ class Tools {
1302
1302
  }
1303
1303
  /**
1304
1304
  * Test connection to an MCP server without adding it.
1305
- * Returns the list of available tools if successful, or OAuth information if OAuth is required.
1305
+ * Returns the list of available tools if successful.
1306
1306
  *
1307
1307
  * @param {Letta.TestMcpServerRequest} request
1308
1308
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
@@ -1324,7 +1324,7 @@ class Tools {
1324
1324
  method: "POST",
1325
1325
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1326
1326
  ? yield core.Supplier.get(this._options.project)
1327
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
1327
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
1328
1328
  contentType: "application/json",
1329
1329
  requestType: "json",
1330
1330
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1370,18 +1370,6 @@ class Tools {
1370
1370
  /**
1371
1371
  * Connect to an MCP server with support for OAuth via SSE.
1372
1372
  * Returns a stream of events handling authorization state and exchange if OAuth is required.
1373
- *
1374
- * @param {Letta.ConnectMcpServerRequest} request
1375
- * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
1376
- *
1377
- * @throws {@link Letta.UnprocessableEntityError}
1378
- *
1379
- * @example
1380
- * await client.tools.connectMcpServer({
1381
- * serverName: "server_name",
1382
- * command: "command",
1383
- * args: ["args"]
1384
- * })
1385
1373
  */
1386
1374
  connectMcpServer(request, requestOptions) {
1387
1375
  return __awaiter(this, void 0, void 0, function* () {
@@ -1391,93 +1379,33 @@ class Tools {
1391
1379
  method: "POST",
1392
1380
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1393
1381
  ? yield core.Supplier.get(this._options.project)
1394
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
1382
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
1395
1383
  contentType: "application/json",
1396
1384
  requestType: "json",
1397
1385
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1386
+ responseType: "sse",
1398
1387
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1399
1388
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1400
1389
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1401
1390
  });
1402
1391
  if (_response.ok) {
1403
- return _response.body;
1404
- }
1405
- if (_response.error.reason === "status-code") {
1406
- switch (_response.error.statusCode) {
1407
- case 422:
1408
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1392
+ return new core.Stream({
1393
+ stream: _response.body,
1394
+ parse: (data) => __awaiter(this, void 0, void 0, function* () {
1395
+ return serializers.StreamingResponse.parseOrThrow(data, {
1409
1396
  unrecognizedObjectKeys: "passthrough",
1410
1397
  allowUnrecognizedUnionMembers: true,
1411
1398
  allowUnrecognizedEnumValues: true,
1412
1399
  skipValidation: true,
1413
1400
  breadcrumbsPrefix: ["response"],
1414
- }));
1415
- default:
1416
- throw new errors.LettaError({
1417
- statusCode: _response.error.statusCode,
1418
- body: _response.error.body,
1419
1401
  });
1420
- }
1421
- }
1422
- switch (_response.error.reason) {
1423
- case "non-json":
1424
- throw new errors.LettaError({
1425
- statusCode: _response.error.statusCode,
1426
- body: _response.error.rawBody,
1427
- });
1428
- case "timeout":
1429
- throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/tools/mcp/servers/connect.");
1430
- case "unknown":
1431
- throw new errors.LettaError({
1432
- message: _response.error.errorMessage,
1433
- });
1434
- }
1435
- });
1436
- }
1437
- /**
1438
- * Handle OAuth callback for MCP server authentication.
1439
- *
1440
- * @param {string} sessionId
1441
- * @param {Letta.McpOauthCallbackRequest} request
1442
- * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
1443
- *
1444
- * @throws {@link Letta.UnprocessableEntityError}
1445
- *
1446
- * @example
1447
- * await client.tools.mcpOauthCallback("session_id")
1448
- */
1449
- mcpOauthCallback(sessionId_1) {
1450
- return __awaiter(this, arguments, void 0, function* (sessionId, request = {}, requestOptions) {
1451
- var _a, _b, _c;
1452
- const { code, state, error, errorDescription } = request;
1453
- const _queryParams = {};
1454
- if (code != null) {
1455
- _queryParams["code"] = code;
1456
- }
1457
- if (state != null) {
1458
- _queryParams["state"] = state;
1459
- }
1460
- if (error != null) {
1461
- _queryParams["error"] = error;
1462
- }
1463
- if (errorDescription != null) {
1464
- _queryParams["error_description"] = errorDescription;
1465
- }
1466
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1467
- 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/tools/mcp/oauth/callback/${encodeURIComponent(sessionId)}`),
1468
- method: "GET",
1469
- headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1470
- ? yield core.Supplier.get(this._options.project)
1471
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
1472
- contentType: "application/json",
1473
- queryParameters: _queryParams,
1474
- requestType: "json",
1475
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1476
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1477
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1478
- });
1479
- if (_response.ok) {
1480
- return;
1402
+ }),
1403
+ signal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1404
+ eventShape: {
1405
+ type: "sse",
1406
+ streamTerminator: "[DONE]",
1407
+ },
1408
+ });
1481
1409
  }
1482
1410
  if (_response.error.reason === "status-code") {
1483
1411
  switch (_response.error.statusCode) {
@@ -1503,7 +1431,7 @@ class Tools {
1503
1431
  body: _response.error.rawBody,
1504
1432
  });
1505
1433
  case "timeout":
1506
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/tools/mcp/oauth/callback/{session_id}.");
1434
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling POST /v1/tools/mcp/servers/connect.");
1507
1435
  case "unknown":
1508
1436
  throw new errors.LettaError({
1509
1437
  message: _response.error.errorMessage,
@@ -4,4 +4,3 @@ export { type ToolsListRequest } from "./ToolsListRequest";
4
4
  export { type ToolRunFromSource } from "./ToolRunFromSource";
5
5
  export { type ListComposioAppsRequest } from "./ListComposioAppsRequest";
6
6
  export { type ListMcpServersRequest } from "./ListMcpServersRequest";
7
- export { type McpOauthCallbackRequest } from "./McpOauthCallbackRequest";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type ConnectMcpServerResponseEvent = "connection_attempt" | "success" | "error" | "oauth_required" | "authorization_url" | "waiting_for_auth";
5
+ export declare const ConnectMcpServerResponseEvent: {
6
+ readonly ConnectionAttempt: "connection_attempt";
7
+ readonly Success: "success";
8
+ readonly Error: "error";
9
+ readonly OauthRequired: "oauth_required";
10
+ readonly AuthorizationUrl: "authorization_url";
11
+ readonly WaitingForAuth: "waiting_for_auth";
12
+ };
@@ -0,0 +1,14 @@
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.ConnectMcpServerResponseEvent = void 0;
7
+ exports.ConnectMcpServerResponseEvent = {
8
+ ConnectionAttempt: "connection_attempt",
9
+ Success: "success",
10
+ Error: "error",
11
+ OauthRequired: "oauth_required",
12
+ AuthorizationUrl: "authorization_url",
13
+ WaitingForAuth: "waiting_for_auth",
14
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export interface StreamingResponse {
6
+ event: Letta.ConnectMcpServerResponseEvent;
7
+ message?: string;
8
+ tools?: Letta.McpTool;
9
+ }
@@ -6,3 +6,5 @@ export * from "./UpdateMcpServerRequest";
6
6
  export * from "./UpdateMcpServerResponse";
7
7
  export * from "./TestMcpServerRequest";
8
8
  export * from "./ConnectMcpServerRequest";
9
+ export * from "./ConnectMcpServerResponseEvent";
10
+ export * from "./StreamingResponse";
@@ -22,3 +22,5 @@ __exportStar(require("./UpdateMcpServerRequest"), exports);
22
22
  __exportStar(require("./UpdateMcpServerResponse"), exports);
23
23
  __exportStar(require("./TestMcpServerRequest"), exports);
24
24
  __exportStar(require("./ConnectMcpServerRequest"), exports);
25
+ __exportStar(require("./ConnectMcpServerResponseEvent"), exports);
26
+ __exportStar(require("./StreamingResponse"), exports);
@@ -82,7 +82,7 @@ class Voice {
82
82
  method: "POST",
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.166", "User-Agent": "@letta-ai/letta-client/0.1.166", "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),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.167", "User-Agent": "@letta-ai/letta-client/0.1.167", "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),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -38,6 +38,4 @@ export interface FileMetadata {
38
38
  createdAt?: Date;
39
39
  /** The update date of the file. */
40
40
  updatedAt?: Date;
41
- /** Whether this file is deleted or not. */
42
- isDeleted?: boolean;
43
41
  }
@@ -46,4 +46,6 @@ export interface LlmConfig {
46
46
  maxReasoningTokens?: number;
47
47
  /** Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. From OpenAI: Number between -2.0 and 2.0. */
48
48
  frequencyPenalty?: number;
49
+ /** The framework compatibility type for the model. */
50
+ compatibilityType?: Letta.LlmConfigCompatibilityType;
49
51
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type LlmConfigCompatibilityType = "gguf" | "mlx";
5
+ export declare const LlmConfigCompatibilityType: {
6
+ readonly Gguf: "gguf";
7
+ readonly Mlx: "mlx";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.LlmConfigCompatibilityType = void 0;
7
+ exports.LlmConfigCompatibilityType = {
8
+ Gguf: "gguf",
9
+ Mlx: "mlx",
10
+ };
@@ -131,6 +131,7 @@ export * from "./JsonObjectResponseFormat";
131
131
  export * from "./JsonSchemaResponseFormat";
132
132
  export * from "./LlmConfigModelEndpointType";
133
133
  export * from "./LlmConfigReasoningEffort";
134
+ export * from "./LlmConfigCompatibilityType";
134
135
  export * from "./LlmConfig";
135
136
  export * from "./LettaBatchMessages";
136
137
  export * from "./LettaBatchRequest";
@@ -147,6 +147,7 @@ __exportStar(require("./JsonObjectResponseFormat"), exports);
147
147
  __exportStar(require("./JsonSchemaResponseFormat"), exports);
148
148
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
149
149
  __exportStar(require("./LlmConfigReasoningEffort"), exports);
150
+ __exportStar(require("./LlmConfigCompatibilityType"), exports);
150
151
  __exportStar(require("./LlmConfig"), exports);
151
152
  __exportStar(require("./LettaBatchMessages"), exports);
152
153
  __exportStar(require("./LettaBatchRequest"), exports);
@@ -1,5 +1,5 @@
1
1
  export * from "./fetcher";
2
2
  export * from "./runtime";
3
- export * from "./form-data-utils";
4
3
  export * from "./streaming-fetcher";
4
+ export * from "./form-data-utils";
5
5
  export * as serialization from "./schemas";
@@ -39,6 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.serialization = void 0;
40
40
  __exportStar(require("./fetcher"), exports);
41
41
  __exportStar(require("./runtime"), exports);
42
- __exportStar(require("./form-data-utils"), exports);
43
42
  __exportStar(require("./streaming-fetcher"), exports);
43
+ __exportStar(require("./form-data-utils"), exports);
44
44
  exports.serialization = __importStar(require("./schemas"));
@@ -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 ConnectMcpServerResponseEvent: core.serialization.Schema<serializers.ConnectMcpServerResponseEvent.Raw, Letta.ConnectMcpServerResponseEvent>;
8
+ export declare namespace ConnectMcpServerResponseEvent {
9
+ type Raw = "connection_attempt" | "success" | "error" | "oauth_required" | "authorization_url" | "waiting_for_auth";
10
+ }
@@ -0,0 +1,48 @@
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.ConnectMcpServerResponseEvent = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.ConnectMcpServerResponseEvent = core.serialization.enum_([
42
+ "connection_attempt",
43
+ "success",
44
+ "error",
45
+ "oauth_required",
46
+ "authorization_url",
47
+ "waiting_for_auth",
48
+ ]);
@@ -0,0 +1,16 @@
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 { ConnectMcpServerResponseEvent } from "./ConnectMcpServerResponseEvent";
8
+ import { McpTool } from "../../../types/McpTool";
9
+ export declare const StreamingResponse: core.serialization.ObjectSchema<serializers.StreamingResponse.Raw, Letta.StreamingResponse>;
10
+ export declare namespace StreamingResponse {
11
+ interface Raw {
12
+ event: ConnectMcpServerResponseEvent.Raw;
13
+ message?: string | null;
14
+ tools?: McpTool.Raw | null;
15
+ }
16
+ }
@@ -0,0 +1,47 @@
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.StreamingResponse = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const ConnectMcpServerResponseEvent_1 = require("./ConnectMcpServerResponseEvent");
42
+ const McpTool_1 = require("../../../types/McpTool");
43
+ exports.StreamingResponse = core.serialization.object({
44
+ event: ConnectMcpServerResponseEvent_1.ConnectMcpServerResponseEvent,
45
+ message: core.serialization.string().optional(),
46
+ tools: McpTool_1.McpTool.optional(),
47
+ });
@@ -6,3 +6,5 @@ export * from "./UpdateMcpServerRequest";
6
6
  export * from "./UpdateMcpServerResponse";
7
7
  export * from "./TestMcpServerRequest";
8
8
  export * from "./ConnectMcpServerRequest";
9
+ export * from "./ConnectMcpServerResponseEvent";
10
+ export * from "./StreamingResponse";