@letta-ai/letta-client 0.0.68649 → 0.0.68650

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 (152) 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 +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.js +9 -9
  10. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  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 +4 -4
  14. package/api/resources/batches/client/Client.js +4 -4
  15. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  16. package/api/resources/blocks/client/Client.js +6 -6
  17. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  18. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  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/index.d.ts +0 -1
  28. package/api/resources/index.js +0 -1
  29. package/api/resources/jobs/client/Client.js +5 -5
  30. package/api/resources/models/client/Client.js +2 -2
  31. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  32. package/api/resources/projects/client/Client.js +1 -1
  33. package/api/resources/providers/client/Client.d.ts +7 -3
  34. package/api/resources/providers/client/Client.js +40 -16
  35. package/api/resources/runs/client/Client.js +5 -5
  36. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  37. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  38. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  39. package/api/resources/sources/client/Client.js +10 -10
  40. package/api/resources/sources/resources/files/client/Client.js +3 -3
  41. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  42. package/api/resources/steps/client/Client.js +2 -2
  43. package/api/resources/steps/resources/feedback/client/Client.d.ts +3 -3
  44. package/api/resources/steps/resources/feedback/client/Client.js +4 -4
  45. package/api/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.d.ts → ModifyFeedbackRequest.d.ts} +1 -1
  46. package/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  47. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  48. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  49. package/api/resources/tags/client/Client.js +1 -1
  50. package/api/resources/telemetry/client/Client.d.ts +4 -0
  51. package/api/resources/telemetry/client/Client.js +5 -1
  52. package/api/resources/templates/client/Client.js +9 -9
  53. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  54. package/api/resources/tools/client/Client.d.ts +2 -4
  55. package/api/resources/tools/client/Client.js +28 -32
  56. package/api/resources/tools/client/requests/index.d.ts +0 -2
  57. package/api/resources/voice/client/Client.d.ts +3 -6
  58. package/api/resources/voice/client/Client.js +4 -7
  59. package/api/resources/voice/client/index.d.ts +1 -1
  60. package/api/resources/voice/client/index.js +0 -15
  61. package/dist/api/resources/agents/client/Client.js +10 -10
  62. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  63. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  64. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  65. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  66. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  67. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  68. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  69. package/dist/api/resources/agents/resources/messages/client/Client.js +9 -9
  70. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  71. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  72. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  73. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  74. package/dist/api/resources/batches/client/Client.js +4 -4
  75. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  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/folders/client/Client.js +9 -9
  80. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  81. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  82. package/dist/api/resources/groups/client/Client.js +6 -6
  83. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  84. package/dist/api/resources/health/client/Client.js +1 -1
  85. package/dist/api/resources/identities/client/Client.js +7 -7
  86. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  87. package/dist/api/resources/index.d.ts +0 -1
  88. package/dist/api/resources/index.js +0 -1
  89. package/dist/api/resources/jobs/client/Client.js +5 -5
  90. package/dist/api/resources/models/client/Client.js +2 -2
  91. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  92. package/dist/api/resources/projects/client/Client.js +1 -1
  93. package/dist/api/resources/providers/client/Client.d.ts +7 -3
  94. package/dist/api/resources/providers/client/Client.js +40 -16
  95. package/dist/api/resources/runs/client/Client.js +5 -5
  96. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  97. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  98. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  99. package/dist/api/resources/sources/client/Client.js +10 -10
  100. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  101. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  102. package/dist/api/resources/steps/client/Client.js +2 -2
  103. package/dist/api/resources/steps/resources/feedback/client/Client.d.ts +3 -3
  104. package/dist/api/resources/steps/resources/feedback/client/Client.js +4 -4
  105. package/dist/api/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.d.ts → ModifyFeedbackRequest.d.ts} +1 -1
  106. package/dist/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  107. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  108. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  109. package/dist/api/resources/tags/client/Client.js +1 -1
  110. package/dist/api/resources/telemetry/client/Client.d.ts +4 -0
  111. package/dist/api/resources/telemetry/client/Client.js +5 -1
  112. package/dist/api/resources/templates/client/Client.js +9 -9
  113. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  114. package/dist/api/resources/tools/client/Client.d.ts +2 -4
  115. package/dist/api/resources/tools/client/Client.js +28 -32
  116. package/dist/api/resources/tools/client/requests/index.d.ts +0 -2
  117. package/dist/api/resources/voice/client/Client.d.ts +3 -6
  118. package/dist/api/resources/voice/client/Client.js +4 -7
  119. package/dist/api/resources/voice/client/index.d.ts +1 -1
  120. package/dist/api/resources/voice/client/index.js +0 -15
  121. package/dist/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.d.ts → ModifyFeedbackRequest.d.ts} +2 -2
  122. package/dist/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.js → ModifyFeedbackRequest.js} +2 -2
  123. package/dist/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  124. package/dist/serialization/resources/steps/resources/feedback/client/requests/index.js +3 -3
  125. package/dist/version.d.ts +1 -1
  126. package/dist/version.js +1 -1
  127. package/package.json +1 -1
  128. package/reference.md +40 -26
  129. package/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.d.ts → ModifyFeedbackRequest.d.ts} +2 -2
  130. package/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.js → ModifyFeedbackRequest.js} +2 -2
  131. package/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
  132. package/serialization/resources/steps/resources/feedback/client/requests/index.js +3 -3
  133. package/version.d.ts +1 -1
  134. package/version.js +1 -1
  135. package/api/resources/tools/client/requests/ListComposioAppsRequest.d.ts +0 -10
  136. package/api/resources/tools/client/requests/ListMcpServersRequest.d.ts +0 -10
  137. package/api/resources/tools/client/requests/ListMcpServersRequest.js +0 -5
  138. package/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +0 -15
  139. package/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.js +0 -5
  140. package/api/resources/voice/client/requests/index.d.ts +0 -1
  141. package/api/resources/voice/client/requests/index.js +0 -2
  142. package/dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +0 -5
  143. package/dist/api/resources/tools/client/requests/ListComposioAppsRequest.d.ts +0 -10
  144. package/dist/api/resources/tools/client/requests/ListComposioAppsRequest.js +0 -5
  145. package/dist/api/resources/tools/client/requests/ListMcpServersRequest.d.ts +0 -10
  146. package/dist/api/resources/tools/client/requests/ListMcpServersRequest.js +0 -5
  147. package/dist/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +0 -15
  148. package/dist/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.js +0 -5
  149. package/dist/api/resources/voice/client/requests/index.d.ts +0 -1
  150. package/dist/api/resources/voice/client/requests/index.js +0 -2
  151. /package/api/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.js → ModifyFeedbackRequest.js} +0 -0
  152. /package/{api/resources/tools/client/requests/ListComposioAppsRequest.js → dist/api/resources/steps/resources/feedback/client/requests/ModifyFeedbackRequest.js} +0 -0
@@ -118,7 +118,7 @@ class Templates {
118
118
  method: "GET",
119
119
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
120
120
  ? yield core.Supplier.get(this._options.project)
121
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
121
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
122
122
  contentType: "application/json",
123
123
  queryParameters: _queryParams,
124
124
  requestType: "json",
@@ -186,7 +186,7 @@ class Templates {
186
186
  method: "POST",
187
187
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
188
188
  ? yield core.Supplier.get(this._options.project)
189
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
189
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
190
190
  contentType: "application/json",
191
191
  requestType: "json",
192
192
  body: serializers.TemplatesSaveTemplateVersionRequest.jsonOrThrow(request, {
@@ -261,7 +261,7 @@ class Templates {
261
261
  method: "DELETE",
262
262
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
263
263
  ? yield core.Supplier.get(this._options.project)
264
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  body: serializers.TemplatesDeleteTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -331,7 +331,7 @@ class Templates {
331
331
  method: "GET",
332
332
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
333
333
  ? yield core.Supplier.get(this._options.project)
334
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
334
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
335
335
  contentType: "application/json",
336
336
  requestType: "json",
337
337
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -398,7 +398,7 @@ class Templates {
398
398
  method: "POST",
399
399
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
400
400
  ? yield core.Supplier.get(this._options.project)
401
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
401
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
402
402
  contentType: "application/json",
403
403
  requestType: "json",
404
404
  body: serializers.TemplatesForkTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -473,7 +473,7 @@ class Templates {
473
473
  method: "POST",
474
474
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
475
475
  ? yield core.Supplier.get(this._options.project)
476
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
476
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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
477
  contentType: "application/json",
478
478
  requestType: "json",
479
479
  body: serializers.TemplatesCreateTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -550,7 +550,7 @@ class Templates {
550
550
  method: "PATCH",
551
551
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
552
552
  ? yield core.Supplier.get(this._options.project)
553
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
553
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
554
554
  contentType: "application/json",
555
555
  requestType: "json",
556
556
  body: serializers.TemplatesRenameTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -634,7 +634,7 @@ class Templates {
634
634
  method: "PATCH",
635
635
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
636
636
  ? yield core.Supplier.get(this._options.project)
637
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
637
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
638
638
  contentType: "application/json",
639
639
  requestType: "json",
640
640
  body: serializers.TemplatesUpdateTemplateDescriptionRequest.jsonOrThrow(request, {
@@ -719,7 +719,7 @@ class Templates {
719
719
  method: "GET",
720
720
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
721
721
  ? yield core.Supplier.get(this._options.project)
722
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
722
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
723
723
  contentType: "application/json",
724
724
  queryParameters: _queryParams,
725
725
  requestType: "json",
@@ -83,7 +83,7 @@ class Agents {
83
83
  method: "POST",
84
84
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
85
85
  ? yield core.Supplier.get(this._options.project)
86
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -159,7 +159,6 @@ export declare class Tools {
159
159
  /**
160
160
  * Get a list of all Composio apps
161
161
  *
162
- * @param {Letta.ListComposioAppsRequest} request
163
162
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
164
163
  *
165
164
  * @throws {@link Letta.UnprocessableEntityError}
@@ -167,7 +166,7 @@ export declare class Tools {
167
166
  * @example
168
167
  * await client.tools.listComposioApps()
169
168
  */
170
- listComposioApps(request?: Letta.ListComposioAppsRequest, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<Letta.AppModel[]>;
169
+ listComposioApps(requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<Letta.AppModel[]>;
171
170
  private __listComposioApps;
172
171
  /**
173
172
  * Get a list of all Composio actions for a specific app
@@ -198,7 +197,6 @@ export declare class Tools {
198
197
  /**
199
198
  * Get a list of all configured MCP servers
200
199
  *
201
- * @param {Letta.ListMcpServersRequest} request
202
200
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
203
201
  *
204
202
  * @throws {@link Letta.UnprocessableEntityError}
@@ -206,7 +204,7 @@ export declare class Tools {
206
204
  * @example
207
205
  * await client.tools.listMcpServers()
208
206
  */
209
- listMcpServers(request?: Letta.ListMcpServersRequest, requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<Record<string, Letta.ListMcpServersResponseValue>>;
207
+ listMcpServers(requestOptions?: Tools.RequestOptions): core.HttpResponsePromise<Record<string, Letta.ListMcpServersResponseValue>>;
210
208
  private __listMcpServers;
211
209
  /**
212
210
  * Add a new MCP server to the Letta MCP server config
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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",
@@ -485,7 +485,7 @@ class Tools {
485
485
  method: "GET",
486
486
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
487
487
  ? yield core.Supplier.get(this._options.project)
488
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
488
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
489
489
  contentType: "application/json",
490
490
  queryParameters: _queryParams,
491
491
  requestType: "json",
@@ -564,7 +564,7 @@ class Tools {
564
564
  method: "POST",
565
565
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
566
566
  ? yield core.Supplier.get(this._options.project)
567
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
567
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
568
568
  contentType: "application/json",
569
569
  requestType: "json",
570
570
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -643,7 +643,7 @@ class Tools {
643
643
  method: "PUT",
644
644
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
645
645
  ? yield core.Supplier.get(this._options.project)
646
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
646
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
647
647
  contentType: "application/json",
648
648
  requestType: "json",
649
649
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -719,7 +719,7 @@ class Tools {
719
719
  method: "POST",
720
720
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
721
721
  ? yield core.Supplier.get(this._options.project)
722
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
722
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
723
723
  contentType: "application/json",
724
724
  requestType: "json",
725
725
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -800,7 +800,7 @@ class Tools {
800
800
  method: "POST",
801
801
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
802
802
  ? yield core.Supplier.get(this._options.project)
803
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
803
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
804
804
  contentType: "application/json",
805
805
  requestType: "json",
806
806
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -858,7 +858,6 @@ class Tools {
858
858
  /**
859
859
  * Get a list of all Composio apps
860
860
  *
861
- * @param {Letta.ListComposioAppsRequest} request
862
861
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
863
862
  *
864
863
  * @throws {@link Letta.UnprocessableEntityError}
@@ -866,19 +865,18 @@ class Tools {
866
865
  * @example
867
866
  * await client.tools.listComposioApps()
868
867
  */
869
- listComposioApps(request = {}, requestOptions) {
870
- return core.HttpResponsePromise.fromPromise(this.__listComposioApps(request, requestOptions));
868
+ listComposioApps(requestOptions) {
869
+ return core.HttpResponsePromise.fromPromise(this.__listComposioApps(requestOptions));
871
870
  }
872
- __listComposioApps() {
873
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
871
+ __listComposioApps(requestOptions) {
872
+ return __awaiter(this, void 0, void 0, function* () {
874
873
  var _a, _b, _c;
875
- const { userId } = request;
876
874
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
877
875
  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/composio/apps"),
878
876
  method: "GET",
879
877
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
880
878
  ? yield core.Supplier.get(this._options.project)
881
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
879
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
882
880
  contentType: "application/json",
883
881
  requestType: "json",
884
882
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -954,7 +952,7 @@ class Tools {
954
952
  method: "GET",
955
953
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
956
954
  ? yield core.Supplier.get(this._options.project)
957
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
955
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
958
956
  contentType: "application/json",
959
957
  requestType: "json",
960
958
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1030,7 +1028,7 @@ class Tools {
1030
1028
  method: "POST",
1031
1029
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1032
1030
  ? yield core.Supplier.get(this._options.project)
1033
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
1031
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
1034
1032
  contentType: "application/json",
1035
1033
  requestType: "json",
1036
1034
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1087,7 +1085,6 @@ class Tools {
1087
1085
  /**
1088
1086
  * Get a list of all configured MCP servers
1089
1087
  *
1090
- * @param {Letta.ListMcpServersRequest} request
1091
1088
  * @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
1092
1089
  *
1093
1090
  * @throws {@link Letta.UnprocessableEntityError}
@@ -1095,19 +1092,18 @@ class Tools {
1095
1092
  * @example
1096
1093
  * await client.tools.listMcpServers()
1097
1094
  */
1098
- listMcpServers(request = {}, requestOptions) {
1099
- return core.HttpResponsePromise.fromPromise(this.__listMcpServers(request, requestOptions));
1095
+ listMcpServers(requestOptions) {
1096
+ return core.HttpResponsePromise.fromPromise(this.__listMcpServers(requestOptions));
1100
1097
  }
1101
- __listMcpServers() {
1102
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
1098
+ __listMcpServers(requestOptions) {
1099
+ return __awaiter(this, void 0, void 0, function* () {
1103
1100
  var _a, _b, _c;
1104
- const { userId } = request;
1105
1101
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1106
1102
  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/servers"),
1107
1103
  method: "GET",
1108
1104
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1109
1105
  ? yield core.Supplier.get(this._options.project)
1110
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
1106
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
1111
1107
  contentType: "application/json",
1112
1108
  requestType: "json",
1113
1109
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1187,7 +1183,7 @@ class Tools {
1187
1183
  method: "PUT",
1188
1184
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1189
1185
  ? yield core.Supplier.get(this._options.project)
1190
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
1191
1187
  contentType: "application/json",
1192
1188
  requestType: "json",
1193
1189
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1264,7 +1260,7 @@ class Tools {
1264
1260
  method: "GET",
1265
1261
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1266
1262
  ? yield core.Supplier.get(this._options.project)
1267
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
1263
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
1268
1264
  contentType: "application/json",
1269
1265
  requestType: "json",
1270
1266
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1341,7 +1337,7 @@ class Tools {
1341
1337
  method: "POST",
1342
1338
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1343
1339
  ? yield core.Supplier.get(this._options.project)
1344
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
1340
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
1345
1341
  contentType: "application/json",
1346
1342
  requestType: "json",
1347
1343
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1417,7 +1413,7 @@ class Tools {
1417
1413
  method: "DELETE",
1418
1414
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1419
1415
  ? yield core.Supplier.get(this._options.project)
1420
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
1416
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
1421
1417
  contentType: "application/json",
1422
1418
  requestType: "json",
1423
1419
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1494,7 +1490,7 @@ class Tools {
1494
1490
  method: "PATCH",
1495
1491
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1496
1492
  ? yield core.Supplier.get(this._options.project)
1497
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
1493
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
1498
1494
  contentType: "application/json",
1499
1495
  requestType: "json",
1500
1496
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1576,7 +1572,7 @@ class Tools {
1576
1572
  method: "POST",
1577
1573
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1578
1574
  ? yield core.Supplier.get(this._options.project)
1579
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
1575
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
1580
1576
  contentType: "application/json",
1581
1577
  requestType: "json",
1582
1578
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1637,7 +1633,7 @@ class Tools {
1637
1633
  method: "POST",
1638
1634
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1639
1635
  ? yield core.Supplier.get(this._options.project)
1640
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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),
1636
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "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),
1641
1637
  contentType: "application/json",
1642
1638
  requestType: "json",
1643
1639
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -2,5 +2,3 @@ export { type ToolUpdate } from "./ToolUpdate";
2
2
  export { type ToolsCountRequest } from "./ToolsCountRequest";
3
3
  export { type ToolsListRequest } from "./ToolsListRequest";
4
4
  export { type ToolRunFromSource } from "./ToolRunFromSource";
5
- export { type ListComposioAppsRequest } from "./ListComposioAppsRequest";
6
- export { type ListMcpServersRequest } from "./ListMcpServersRequest";
@@ -3,7 +3,6 @@
3
3
  */
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
- import * as Letta from "../../../index";
7
6
  export declare namespace Voice {
8
7
  interface Options {
9
8
  environment?: core.Supplier<environments.LettaEnvironment | string>;
@@ -32,19 +31,17 @@ export declare class Voice {
32
31
  constructor(_options?: Voice.Options);
33
32
  /**
34
33
  * @param {string} agentId
35
- * @param {Letta.CreateVoiceChatCompletionsRequest} request
34
+ * @param {Record<string, unknown>} request
36
35
  * @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
37
36
  *
38
37
  * @throws {@link Letta.UnprocessableEntityError}
39
38
  *
40
39
  * @example
41
40
  * await client.voice.createVoiceChatCompletions("agent_id", {
42
- * body: {
43
- * "key": "value"
44
- * }
41
+ * "key": "value"
45
42
  * })
46
43
  */
47
- createVoiceChatCompletions(agentId: string, request: Letta.CreateVoiceChatCompletionsRequest, requestOptions?: Voice.RequestOptions): core.HttpResponsePromise<unknown>;
44
+ createVoiceChatCompletions(agentId: string, request: Record<string, unknown>, requestOptions?: Voice.RequestOptions): core.HttpResponsePromise<unknown>;
48
45
  private __createVoiceChatCompletions;
49
46
  protected _getCustomAuthorizationHeaders(): Promise<{
50
47
  Authorization: string;
@@ -61,16 +61,14 @@ class Voice {
61
61
  }
62
62
  /**
63
63
  * @param {string} agentId
64
- * @param {Letta.CreateVoiceChatCompletionsRequest} request
64
+ * @param {Record<string, unknown>} request
65
65
  * @param {Voice.RequestOptions} requestOptions - Request-specific configuration.
66
66
  *
67
67
  * @throws {@link Letta.UnprocessableEntityError}
68
68
  *
69
69
  * @example
70
70
  * await client.voice.createVoiceChatCompletions("agent_id", {
71
- * body: {
72
- * "key": "value"
73
- * }
71
+ * "key": "value"
74
72
  * })
75
73
  */
76
74
  createVoiceChatCompletions(agentId, request, requestOptions) {
@@ -79,16 +77,15 @@ class Voice {
79
77
  __createVoiceChatCompletions(agentId, request, requestOptions) {
80
78
  return __awaiter(this, void 0, void 0, function* () {
81
79
  var _a, _b, _c;
82
- const { userId, body: _body } = request;
83
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
84
81
  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/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
85
82
  method: "POST",
86
83
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
87
84
  ? yield core.Supplier.get(this._options.project)
88
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68649", "User-Agent": "@letta-ai/letta-client/0.0.68649", "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.0.68650", "User-Agent": "@letta-ai/letta-client/0.0.68650", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
86
  contentType: "application/json",
90
87
  requestType: "json",
91
- body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
88
+ body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(request, {
92
89
  unrecognizedObjectKeys: "strip",
93
90
  }),
94
91
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1 +1 @@
1
- export * from "./requests";
1
+ export {};
@@ -1,17 +1,2 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests"), exports);
@@ -5,8 +5,8 @@ import * as serializers from "../../../../../../index";
5
5
  import * as Letta from "../../../../../../../api/index";
6
6
  import * as core from "../../../../../../../core";
7
7
  import { FeedbackType } from "../../../../../../types/FeedbackType";
8
- export declare const AddFeedbackRequest: core.serialization.Schema<serializers.steps.AddFeedbackRequest.Raw, Letta.steps.AddFeedbackRequest>;
9
- export declare namespace AddFeedbackRequest {
8
+ export declare const ModifyFeedbackRequest: core.serialization.Schema<serializers.steps.ModifyFeedbackRequest.Raw, Letta.steps.ModifyFeedbackRequest>;
9
+ export declare namespace ModifyFeedbackRequest {
10
10
  interface Raw {
11
11
  feedback?: FeedbackType.Raw | null;
12
12
  tags?: string[] | null;
@@ -36,10 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.AddFeedbackRequest = void 0;
39
+ exports.ModifyFeedbackRequest = void 0;
40
40
  const core = __importStar(require("../../../../../../../core"));
41
41
  const FeedbackType_1 = require("../../../../../../types/FeedbackType");
42
- exports.AddFeedbackRequest = core.serialization.object({
42
+ exports.ModifyFeedbackRequest = core.serialization.object({
43
43
  feedback: FeedbackType_1.FeedbackType.optional(),
44
44
  tags: core.serialization.list(core.serialization.string()).optional(),
45
45
  });
@@ -1 +1 @@
1
- export { AddFeedbackRequest } from "./AddFeedbackRequest";
1
+ export { ModifyFeedbackRequest } from "./ModifyFeedbackRequest";
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AddFeedbackRequest = void 0;
4
- var AddFeedbackRequest_1 = require("./AddFeedbackRequest");
5
- Object.defineProperty(exports, "AddFeedbackRequest", { enumerable: true, get: function () { return AddFeedbackRequest_1.AddFeedbackRequest; } });
3
+ exports.ModifyFeedbackRequest = void 0;
4
+ var ModifyFeedbackRequest_1 = require("./ModifyFeedbackRequest");
5
+ Object.defineProperty(exports, "ModifyFeedbackRequest", { enumerable: true, get: function () { return ModifyFeedbackRequest_1.ModifyFeedbackRequest; } });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.68649";
1
+ export declare const SDK_VERSION = "0.0.68650";
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.0.68649";
4
+ exports.SDK_VERSION = "0.0.68650";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.0.68649",
3
+ "version": "0.0.68650",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",