@letta-ai/letta-client 0.0.68648 → 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.
- package/api/resources/agents/client/Client.js +10 -10
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/files/client/Client.js +4 -4
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +9 -9
- package/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/folders/client/Client.js +9 -9
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +0 -1
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.d.ts +13 -0
- package/api/resources/providers/client/Client.js +81 -5
- package/api/resources/runs/client/Client.js +5 -5
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +10 -10
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +2 -2
- package/api/resources/steps/resources/feedback/client/Client.d.ts +3 -3
- package/api/resources/steps/resources/feedback/client/Client.js +4 -4
- package/api/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.d.ts → ModifyFeedbackRequest.d.ts} +1 -1
- package/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
- package/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/api/resources/steps/resources/trace/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.d.ts +4 -0
- package/api/resources/telemetry/client/Client.js +5 -1
- package/api/resources/templates/client/Client.js +9 -9
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.d.ts +2 -4
- package/api/resources/tools/client/Client.js +28 -32
- package/api/resources/tools/client/requests/index.d.ts +0 -2
- package/api/resources/voice/client/Client.d.ts +3 -6
- package/api/resources/voice/client/Client.js +4 -7
- package/api/resources/voice/client/index.d.ts +1 -1
- package/api/resources/voice/client/index.js +0 -15
- package/dist/api/resources/agents/client/Client.js +10 -10
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +9 -9
- package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/folders/client/Client.js +9 -9
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +0 -1
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.d.ts +13 -0
- package/dist/api/resources/providers/client/Client.js +81 -5
- package/dist/api/resources/runs/client/Client.js +5 -5
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +10 -10
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +2 -2
- package/dist/api/resources/steps/resources/feedback/client/Client.d.ts +3 -3
- package/dist/api/resources/steps/resources/feedback/client/Client.js +4 -4
- package/dist/api/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.d.ts → ModifyFeedbackRequest.d.ts} +1 -1
- package/dist/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
- package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
- package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.d.ts +4 -0
- package/dist/api/resources/telemetry/client/Client.js +5 -1
- package/dist/api/resources/templates/client/Client.js +9 -9
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.d.ts +2 -4
- package/dist/api/resources/tools/client/Client.js +28 -32
- package/dist/api/resources/tools/client/requests/index.d.ts +0 -2
- package/dist/api/resources/voice/client/Client.d.ts +3 -6
- package/dist/api/resources/voice/client/Client.js +4 -7
- package/dist/api/resources/voice/client/index.d.ts +1 -1
- package/dist/api/resources/voice/client/index.js +0 -15
- package/dist/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.d.ts → ModifyFeedbackRequest.d.ts} +2 -2
- package/dist/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.js → ModifyFeedbackRequest.js} +2 -2
- package/dist/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/steps/resources/feedback/client/requests/index.js +3 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +86 -24
- package/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.d.ts → ModifyFeedbackRequest.d.ts} +2 -2
- package/serialization/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.js → ModifyFeedbackRequest.js} +2 -2
- package/serialization/resources/steps/resources/feedback/client/requests/index.d.ts +1 -1
- package/serialization/resources/steps/resources/feedback/client/requests/index.js +3 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/tools/client/requests/ListComposioAppsRequest.d.ts +0 -10
- package/api/resources/tools/client/requests/ListMcpServersRequest.d.ts +0 -10
- package/api/resources/tools/client/requests/ListMcpServersRequest.js +0 -5
- package/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +0 -15
- package/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.js +0 -5
- package/api/resources/voice/client/requests/index.d.ts +0 -1
- package/api/resources/voice/client/requests/index.js +0 -2
- package/dist/api/resources/steps/resources/feedback/client/requests/AddFeedbackRequest.js +0 -5
- package/dist/api/resources/tools/client/requests/ListComposioAppsRequest.d.ts +0 -10
- package/dist/api/resources/tools/client/requests/ListComposioAppsRequest.js +0 -5
- package/dist/api/resources/tools/client/requests/ListMcpServersRequest.d.ts +0 -10
- package/dist/api/resources/tools/client/requests/ListMcpServersRequest.js +0 -5
- package/dist/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.d.ts +0 -15
- package/dist/api/resources/voice/client/requests/CreateVoiceChatCompletionsRequest.js +0 -5
- package/dist/api/resources/voice/client/requests/index.d.ts +0 -1
- package/dist/api/resources/voice/client/requests/index.js +0 -2
- /package/api/resources/steps/resources/feedback/client/requests/{AddFeedbackRequest.js → ModifyFeedbackRequest.js} +0 -0
- /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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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(
|
|
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(
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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(
|
|
870
|
-
return core.HttpResponsePromise.fromPromise(this.__listComposioApps(
|
|
868
|
+
listComposioApps(requestOptions) {
|
|
869
|
+
return core.HttpResponsePromise.fromPromise(this.__listComposioApps(requestOptions));
|
|
871
870
|
}
|
|
872
|
-
__listComposioApps() {
|
|
873
|
-
return __awaiter(this,
|
|
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.
|
|
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.
|
|
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.
|
|
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(
|
|
1099
|
-
return core.HttpResponsePromise.fromPromise(this.__listMcpServers(
|
|
1095
|
+
listMcpServers(requestOptions) {
|
|
1096
|
+
return core.HttpResponsePromise.fromPromise(this.__listMcpServers(requestOptions));
|
|
1100
1097
|
}
|
|
1101
|
-
__listMcpServers() {
|
|
1102
|
-
return __awaiter(this,
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 {
|
|
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
|
-
*
|
|
43
|
-
* "key": "value"
|
|
44
|
-
* }
|
|
41
|
+
* "key": "value"
|
|
45
42
|
* })
|
|
46
43
|
*/
|
|
47
|
-
createVoiceChatCompletions(agentId: string, request:
|
|
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 {
|
|
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
|
-
*
|
|
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.
|
|
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(
|
|
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
|
|
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
|
|
9
|
-
export declare namespace
|
|
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.
|
|
39
|
+
exports.ModifyFeedbackRequest = void 0;
|
|
40
40
|
const core = __importStar(require("../../../../../../../core"));
|
|
41
41
|
const FeedbackType_1 = require("../../../../../../types/FeedbackType");
|
|
42
|
-
exports.
|
|
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 {
|
|
1
|
+
export { ModifyFeedbackRequest } from "./ModifyFeedbackRequest";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "
|
|
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.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.68650";
|
package/dist/version.js
CHANGED