@letta-ai/letta-client 0.1.166 → 0.1.168
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 +3 -3
- 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 +8 -8
- package/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -1
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- 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 +3 -3
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +36 -7
- package/api/resources/blocks/client/requests/BlocksListRequest.d.ts +32 -0
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/embeddingModels/client/Client.js +1 -1
- 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/jobs/client/Client.js +5 -5
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +5 -5
- package/api/resources/runs/client/Client.js +4 -4
- 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.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/tools/client/Client.d.ts +2 -27
- package/api/resources/tools/client/Client.js +34 -106
- package/api/resources/tools/client/requests/index.d.ts +0 -1
- package/api/resources/tools/types/ConnectMcpServerResponseEvent.d.ts +12 -0
- package/api/resources/tools/types/ConnectMcpServerResponseEvent.js +14 -0
- package/api/resources/tools/types/StreamingResponse.d.ts +9 -0
- package/api/resources/tools/types/index.d.ts +2 -0
- package/api/resources/tools/types/index.js +2 -0
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/FileMetadata.d.ts +0 -2
- package/api/types/LettaPing.d.ts +10 -0
- package/api/types/LlmConfig.d.ts +2 -0
- package/api/types/LlmConfigCompatibilityType.d.ts +8 -0
- package/api/types/LlmConfigCompatibilityType.js +10 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- 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 +3 -3
- 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 +8 -8
- package/dist/api/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +1 -1
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- 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 +3 -3
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +36 -7
- package/dist/api/resources/blocks/client/requests/BlocksListRequest.d.ts +32 -0
- 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/embeddingModels/client/Client.js +1 -1
- 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/jobs/client/Client.js +5 -5
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +5 -5
- package/dist/api/resources/runs/client/Client.js +4 -4
- 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.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/tools/client/Client.d.ts +2 -27
- package/dist/api/resources/tools/client/Client.js +34 -106
- package/dist/api/resources/tools/client/requests/index.d.ts +0 -1
- package/dist/api/resources/tools/types/ConnectMcpServerResponseEvent.d.ts +12 -0
- package/dist/api/resources/tools/types/ConnectMcpServerResponseEvent.js +14 -0
- package/dist/api/resources/tools/types/StreamingResponse.d.ts +9 -0
- package/dist/api/resources/tools/types/StreamingResponse.js +5 -0
- package/dist/api/resources/tools/types/index.d.ts +2 -0
- package/dist/api/resources/tools/types/index.js +2 -0
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/FileMetadata.d.ts +0 -2
- package/dist/api/types/LettaPing.d.ts +10 -0
- package/dist/api/types/LettaPing.js +5 -0
- package/dist/api/types/LlmConfig.d.ts +2 -0
- package/dist/api/types/LlmConfigCompatibilityType.d.ts +8 -0
- package/dist/api/types/LlmConfigCompatibilityType.js +10 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +2 -1
- package/dist/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +2 -0
- package/dist/serialization/resources/tools/types/ConnectMcpServerResponseEvent.d.ts +10 -0
- package/dist/serialization/resources/tools/types/ConnectMcpServerResponseEvent.js +48 -0
- package/dist/serialization/resources/tools/types/StreamingResponse.d.ts +16 -0
- package/dist/serialization/resources/tools/types/StreamingResponse.js +47 -0
- package/dist/serialization/resources/tools/types/index.d.ts +2 -0
- package/dist/serialization/resources/tools/types/index.js +2 -0
- package/dist/serialization/types/FileMetadata.d.ts +0 -1
- package/dist/serialization/types/FileMetadata.js +0 -1
- package/dist/serialization/types/LettaPing.d.ts +12 -0
- package/dist/serialization/types/LettaPing.js +43 -0
- package/dist/serialization/types/LlmConfig.d.ts +2 -0
- package/dist/serialization/types/LlmConfig.js +2 -0
- package/dist/serialization/types/LlmConfigCompatibilityType.d.ts +10 -0
- package/dist/serialization/types/LlmConfigCompatibilityType.js +41 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +6 -74
- package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.d.ts +2 -1
- package/serialization/resources/agents/resources/messages/types/LettaStreamingResponse.js +2 -0
- package/serialization/resources/tools/types/ConnectMcpServerResponseEvent.d.ts +10 -0
- package/serialization/resources/tools/types/ConnectMcpServerResponseEvent.js +48 -0
- package/serialization/resources/tools/types/StreamingResponse.d.ts +16 -0
- package/serialization/resources/tools/types/StreamingResponse.js +47 -0
- package/serialization/resources/tools/types/index.d.ts +2 -0
- package/serialization/resources/tools/types/index.js +2 -0
- package/serialization/types/FileMetadata.d.ts +0 -1
- package/serialization/types/FileMetadata.js +0 -1
- package/serialization/types/LettaPing.d.ts +12 -0
- package/serialization/types/LettaPing.js +43 -0
- package/serialization/types/LlmConfig.d.ts +2 -0
- package/serialization/types/LlmConfig.js +2 -0
- package/serialization/types/LlmConfigCompatibilityType.d.ts +10 -0
- package/serialization/types/LlmConfigCompatibilityType.js +41 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/tools/client/requests/McpOauthCallbackRequest.d.ts +0 -25
- package/dist/api/resources/tools/client/requests/McpOauthCallbackRequest.d.ts +0 -25
- /package/api/resources/tools/{client/requests/McpOauthCallbackRequest.js → types/StreamingResponse.js} +0 -0
- /package/{dist/api/resources/tools/client/requests/McpOauthCallbackRequest.js → api/types/LettaPing.js} +0 -0
|
@@ -109,7 +109,7 @@ class Messages {
|
|
|
109
109
|
method: "GET",
|
|
110
110
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
111
111
|
? yield core.Supplier.get(this._options.project)
|
|
112
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
112
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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),
|
|
113
113
|
contentType: "application/json",
|
|
114
114
|
queryParameters: _queryParams,
|
|
115
115
|
requestType: "json",
|
|
@@ -103,7 +103,7 @@ class Steps {
|
|
|
103
103
|
method: "GET",
|
|
104
104
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
105
105
|
? yield core.Supplier.get(this._options.project)
|
|
106
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
106
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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),
|
|
107
107
|
contentType: "application/json",
|
|
108
108
|
queryParameters: _queryParams,
|
|
109
109
|
requestType: "json",
|
|
@@ -78,7 +78,7 @@ class Usage {
|
|
|
78
78
|
method: "GET",
|
|
79
79
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
80
80
|
? yield core.Supplier.get(this._options.project)
|
|
81
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
81
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
requestType: "json",
|
|
84
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -87,7 +87,7 @@ class Sources {
|
|
|
87
87
|
method: "GET",
|
|
88
88
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
89
89
|
? yield core.Supplier.get(this._options.project)
|
|
90
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
90
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
91
|
contentType: "application/json",
|
|
92
92
|
requestType: "json",
|
|
93
93
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -154,7 +154,7 @@ class Sources {
|
|
|
154
154
|
method: "GET",
|
|
155
155
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
156
156
|
? yield core.Supplier.get(this._options.project)
|
|
157
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
157
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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),
|
|
158
158
|
contentType: "application/json",
|
|
159
159
|
requestType: "json",
|
|
160
160
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -221,7 +221,7 @@ class Sources {
|
|
|
221
221
|
method: "DELETE",
|
|
222
222
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
223
223
|
? yield core.Supplier.get(this._options.project)
|
|
224
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
224
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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),
|
|
225
225
|
contentType: "application/json",
|
|
226
226
|
requestType: "json",
|
|
227
227
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -283,7 +283,7 @@ class Sources {
|
|
|
283
283
|
method: "PATCH",
|
|
284
284
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
285
285
|
? yield core.Supplier.get(this._options.project)
|
|
286
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
286
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
287
287
|
contentType: "application/json",
|
|
288
288
|
requestType: "json",
|
|
289
289
|
body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -351,7 +351,7 @@ class Sources {
|
|
|
351
351
|
method: "GET",
|
|
352
352
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
353
353
|
? yield core.Supplier.get(this._options.project)
|
|
354
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
354
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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),
|
|
355
355
|
contentType: "application/json",
|
|
356
356
|
requestType: "json",
|
|
357
357
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -429,7 +429,7 @@ class Sources {
|
|
|
429
429
|
method: "GET",
|
|
430
430
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
431
431
|
? yield core.Supplier.get(this._options.project)
|
|
432
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
432
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
433
433
|
contentType: "application/json",
|
|
434
434
|
queryParameters: _queryParams,
|
|
435
435
|
requestType: "json",
|
|
@@ -496,7 +496,7 @@ class Sources {
|
|
|
496
496
|
method: "GET",
|
|
497
497
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
498
498
|
? yield core.Supplier.get(this._options.project)
|
|
499
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
499
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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),
|
|
500
500
|
contentType: "application/json",
|
|
501
501
|
requestType: "json",
|
|
502
502
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -565,7 +565,7 @@ class Sources {
|
|
|
565
565
|
method: "POST",
|
|
566
566
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
567
567
|
? yield core.Supplier.get(this._options.project)
|
|
568
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
568
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
569
569
|
contentType: "application/json",
|
|
570
570
|
requestType: "json",
|
|
571
571
|
body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -633,7 +633,7 @@ class Sources {
|
|
|
633
633
|
method: "GET",
|
|
634
634
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
635
635
|
? yield core.Supplier.get(this._options.project)
|
|
636
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
636
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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
637
|
contentType: "application/json",
|
|
638
638
|
requestType: "json",
|
|
639
639
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -707,7 +707,7 @@ class Sources {
|
|
|
707
707
|
method: "GET",
|
|
708
708
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
709
709
|
? yield core.Supplier.get(this._options.project)
|
|
710
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
710
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
711
711
|
contentType: "application/json",
|
|
712
712
|
queryParameters: _queryParams,
|
|
713
713
|
requestType: "json",
|
|
@@ -87,7 +87,7 @@ class Files {
|
|
|
87
87
|
method: "POST",
|
|
88
88
|
headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
89
89
|
? yield core.Supplier.get(this._options.project)
|
|
90
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
90
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
91
91
|
queryParameters: _queryParams,
|
|
92
92
|
requestType: "file",
|
|
93
93
|
duplex: _maybeEncodedRequest.duplex,
|
|
@@ -168,7 +168,7 @@ class Files {
|
|
|
168
168
|
method: "GET",
|
|
169
169
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
170
170
|
? yield core.Supplier.get(this._options.project)
|
|
171
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
171
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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),
|
|
172
172
|
contentType: "application/json",
|
|
173
173
|
queryParameters: _queryParams,
|
|
174
174
|
requestType: "json",
|
|
@@ -237,7 +237,7 @@ class Files {
|
|
|
237
237
|
method: "DELETE",
|
|
238
238
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
239
239
|
? yield core.Supplier.get(this._options.project)
|
|
240
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
240
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
241
241
|
contentType: "application/json",
|
|
242
242
|
requestType: "json",
|
|
243
243
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -90,7 +90,7 @@ class Passages {
|
|
|
90
90
|
method: "GET",
|
|
91
91
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
92
92
|
? yield core.Supplier.get(this._options.project)
|
|
93
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
93
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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),
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
96
96
|
requestType: "json",
|
|
@@ -135,7 +135,7 @@ class Steps {
|
|
|
135
135
|
method: "GET",
|
|
136
136
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
137
137
|
? yield core.Supplier.get(this._options.project)
|
|
138
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
138
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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),
|
|
139
139
|
contentType: "application/json",
|
|
140
140
|
queryParameters: _queryParams,
|
|
141
141
|
requestType: "json",
|
|
@@ -203,7 +203,7 @@ class Steps {
|
|
|
203
203
|
method: "GET",
|
|
204
204
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
205
205
|
? yield core.Supplier.get(this._options.project)
|
|
206
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
206
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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),
|
|
207
207
|
contentType: "application/json",
|
|
208
208
|
requestType: "json",
|
|
209
209
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -84,7 +84,7 @@ class Feedback {
|
|
|
84
84
|
method: "PATCH",
|
|
85
85
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
86
86
|
? yield core.Supplier.get(this._options.project)
|
|
87
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
87
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
88
88
|
contentType: "application/json",
|
|
89
89
|
queryParameters: _queryParams,
|
|
90
90
|
requestType: "json",
|
|
@@ -89,7 +89,7 @@ class Tags {
|
|
|
89
89
|
method: "GET",
|
|
90
90
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
91
91
|
? yield core.Supplier.get(this._options.project)
|
|
92
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
92
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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),
|
|
93
93
|
contentType: "application/json",
|
|
94
94
|
queryParameters: _queryParams,
|
|
95
95
|
requestType: "json",
|
|
@@ -76,7 +76,7 @@ class Telemetry {
|
|
|
76
76
|
method: "GET",
|
|
77
77
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
78
78
|
? yield core.Supplier.get(this._options.project)
|
|
79
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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),
|
|
80
80
|
contentType: "application/json",
|
|
81
81
|
requestType: "json",
|
|
82
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -94,7 +94,7 @@ class Templates {
|
|
|
94
94
|
method: "GET",
|
|
95
95
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
96
96
|
? yield core.Supplier.get(this._options.project)
|
|
97
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
97
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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),
|
|
98
98
|
contentType: "application/json",
|
|
99
99
|
queryParameters: _queryParams,
|
|
100
100
|
requestType: "json",
|
|
@@ -80,7 +80,7 @@ class Agents {
|
|
|
80
80
|
method: "POST",
|
|
81
81
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
82
82
|
? yield core.Supplier.get(this._options.project)
|
|
83
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
83
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.168", "User-Agent": "@letta-ai/letta-client/0.1.168", "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
84
|
contentType: "application/json",
|
|
85
85
|
requestType: "json",
|
|
86
86
|
body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -263,7 +263,7 @@ export declare class Tools {
|
|
|
263
263
|
updateMcpServer(mcpServerName: string, request: Letta.UpdateMcpServerRequest, requestOptions?: Tools.RequestOptions): Promise<Letta.UpdateMcpServerResponse>;
|
|
264
264
|
/**
|
|
265
265
|
* Test connection to an MCP server without adding it.
|
|
266
|
-
* Returns the list of available tools if successful
|
|
266
|
+
* Returns the list of available tools if successful.
|
|
267
267
|
*
|
|
268
268
|
* @param {Letta.TestMcpServerRequest} request
|
|
269
269
|
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -281,33 +281,8 @@ export declare class Tools {
|
|
|
281
281
|
/**
|
|
282
282
|
* Connect to an MCP server with support for OAuth via SSE.
|
|
283
283
|
* Returns a stream of events handling authorization state and exchange if OAuth is required.
|
|
284
|
-
*
|
|
285
|
-
* @param {Letta.ConnectMcpServerRequest} request
|
|
286
|
-
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
287
|
-
*
|
|
288
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
289
|
-
*
|
|
290
|
-
* @example
|
|
291
|
-
* await client.tools.connectMcpServer({
|
|
292
|
-
* serverName: "server_name",
|
|
293
|
-
* command: "command",
|
|
294
|
-
* args: ["args"]
|
|
295
|
-
* })
|
|
296
|
-
*/
|
|
297
|
-
connectMcpServer(request: Letta.ConnectMcpServerRequest, requestOptions?: Tools.RequestOptions): Promise<unknown>;
|
|
298
|
-
/**
|
|
299
|
-
* Handle OAuth callback for MCP server authentication.
|
|
300
|
-
*
|
|
301
|
-
* @param {string} sessionId
|
|
302
|
-
* @param {Letta.McpOauthCallbackRequest} request
|
|
303
|
-
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
|
|
304
|
-
*
|
|
305
|
-
* @throws {@link Letta.UnprocessableEntityError}
|
|
306
|
-
*
|
|
307
|
-
* @example
|
|
308
|
-
* await client.tools.mcpOauthCallback("session_id")
|
|
309
284
|
*/
|
|
310
|
-
|
|
285
|
+
connectMcpServer(request: Letta.ConnectMcpServerRequest, requestOptions?: Tools.RequestOptions): Promise<core.Stream<Letta.StreamingResponse>>;
|
|
311
286
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
312
287
|
Authorization: string;
|
|
313
288
|
}>;
|