@letta-ai/letta-client 0.0.68656 → 0.0.68657
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/Client.d.ts +3 -0
- package/Client.js +45 -40
- package/README.md +9 -9
- package/api/resources/agents/client/Client.js +9 -9
- 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 +10 -10
- 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/archives/client/Client.d.ts +78 -0
- package/api/resources/archives/client/Client.js +325 -0
- package/api/resources/archives/client/index.d.ts +1 -0
- package/api/resources/archives/client/index.js +17 -0
- package/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
- package/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
- package/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
- package/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
- package/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
- package/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
- package/api/resources/archives/client/requests/index.d.ts +3 -0
- package/api/resources/archives/client/requests/index.js +2 -0
- package/api/resources/archives/index.d.ts +2 -0
- package/api/resources/archives/index.js +18 -0
- package/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
- package/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
- package/api/resources/archives/types/index.d.ts +1 -0
- package/api/resources/archives/types/index.js +17 -0
- 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 +8 -8
- package/api/resources/folders/resources/agents/client/Client.js +1 -1
- 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/agents/client/Client.js +1 -1
- package/api/resources/identities/resources/blocks/client/Client.js +1 -1
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/jobs/client/Client.d.ts +0 -1
- package/api/resources/jobs/client/Client.js +9 -7
- package/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
- 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.js +6 -6
- package/api/resources/runs/client/Client.js +15 -7
- package/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
- 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/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.js +1 -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.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/Archive.d.ts +35 -0
- package/api/types/Archive.js +5 -0
- package/api/types/BatchJob.d.ts +2 -0
- package/api/types/Job.d.ts +2 -0
- package/api/types/Run.d.ts +2 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +45 -40
- package/dist/api/resources/agents/client/Client.js +9 -9
- 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 +10 -10
- 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/archives/client/Client.d.ts +78 -0
- package/dist/api/resources/archives/client/Client.js +325 -0
- package/dist/api/resources/archives/client/index.d.ts +1 -0
- package/dist/api/resources/archives/client/index.js +17 -0
- package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
- package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
- package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
- package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
- package/dist/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
- package/dist/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
- package/dist/api/resources/archives/client/requests/index.d.ts +3 -0
- package/dist/api/resources/archives/client/requests/index.js +2 -0
- package/dist/api/resources/archives/index.d.ts +2 -0
- package/dist/api/resources/archives/index.js +18 -0
- package/dist/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
- package/dist/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
- package/dist/api/resources/archives/types/index.d.ts +1 -0
- package/dist/api/resources/archives/types/index.js +17 -0
- 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 +8 -8
- package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
- 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/agents/client/Client.js +1 -1
- package/dist/api/resources/identities/resources/blocks/client/Client.js +1 -1
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/jobs/client/Client.d.ts +0 -1
- package/dist/api/resources/jobs/client/Client.js +9 -7
- package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
- 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.js +6 -6
- package/dist/api/resources/runs/client/Client.js +15 -7
- package/dist/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
- 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/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.js +1 -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.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/Archive.d.ts +35 -0
- package/dist/api/types/Archive.js +5 -0
- package/dist/api/types/BatchJob.d.ts +2 -0
- package/dist/api/types/Job.d.ts +2 -0
- package/dist/api/types/Run.d.ts +2 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/archives/client/index.d.ts +2 -0
- package/dist/serialization/resources/archives/client/index.js +41 -0
- package/dist/serialization/resources/archives/client/listArchives.d.ts +11 -0
- package/dist/serialization/resources/archives/client/listArchives.js +42 -0
- package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
- package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
- package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
- package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
- package/dist/serialization/resources/archives/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/archives/client/requests/index.js +7 -0
- package/dist/serialization/resources/archives/index.d.ts +2 -0
- package/dist/serialization/resources/archives/index.js +18 -0
- package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
- package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
- package/dist/serialization/resources/archives/types/index.d.ts +1 -0
- package/dist/serialization/resources/archives/types/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/types/Archive.d.ts +21 -0
- package/dist/serialization/types/Archive.js +52 -0
- package/dist/serialization/types/BatchJob.d.ts +2 -0
- package/dist/serialization/types/BatchJob.js +2 -0
- package/dist/serialization/types/Job.d.ts +2 -0
- package/dist/serialization/types/Job.js +2 -0
- package/dist/serialization/types/Run.d.ts +2 -0
- package/dist/serialization/types/Run.js +2 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +201 -1
- package/serialization/resources/archives/client/index.d.ts +2 -0
- package/serialization/resources/archives/client/index.js +41 -0
- package/serialization/resources/archives/client/listArchives.d.ts +11 -0
- package/serialization/resources/archives/client/listArchives.js +42 -0
- package/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
- package/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
- package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
- package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
- package/serialization/resources/archives/client/requests/index.d.ts +2 -0
- package/serialization/resources/archives/client/requests/index.js +7 -0
- package/serialization/resources/archives/index.d.ts +2 -0
- package/serialization/resources/archives/index.js +18 -0
- package/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
- package/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
- package/serialization/resources/archives/types/index.d.ts +1 -0
- package/serialization/resources/archives/types/index.js +17 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/types/Archive.d.ts +21 -0
- package/serialization/types/Archive.js +52 -0
- package/serialization/types/BatchJob.d.ts +2 -0
- package/serialization/types/BatchJob.js +2 -0
- package/serialization/types/Job.d.ts +2 -0
- package/serialization/types/Job.js +2 -0
- package/serialization/types/Run.d.ts +2 -0
- package/serialization/types/Run.js +2 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -81,7 +81,7 @@ class Tools {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
83
83
|
? yield core.Supplier.get(this._options.project)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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" }),
|
|
@@ -876,7 +876,7 @@ class Tools {
|
|
|
876
876
|
method: "GET",
|
|
877
877
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
878
878
|
? yield core.Supplier.get(this._options.project)
|
|
879
|
-
: 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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
880
880
|
contentType: "application/json",
|
|
881
881
|
requestType: "json",
|
|
882
882
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -952,7 +952,7 @@ class Tools {
|
|
|
952
952
|
method: "GET",
|
|
953
953
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
954
954
|
? yield core.Supplier.get(this._options.project)
|
|
955
|
-
: 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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
956
956
|
contentType: "application/json",
|
|
957
957
|
requestType: "json",
|
|
958
958
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1028,7 +1028,7 @@ class Tools {
|
|
|
1028
1028
|
method: "POST",
|
|
1029
1029
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1030
1030
|
? yield core.Supplier.get(this._options.project)
|
|
1031
|
-
: 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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
1032
1032
|
contentType: "application/json",
|
|
1033
1033
|
requestType: "json",
|
|
1034
1034
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1103,7 +1103,7 @@ class Tools {
|
|
|
1103
1103
|
method: "GET",
|
|
1104
1104
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1105
1105
|
? yield core.Supplier.get(this._options.project)
|
|
1106
|
-
: 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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
1107
1107
|
contentType: "application/json",
|
|
1108
1108
|
requestType: "json",
|
|
1109
1109
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1183,7 +1183,7 @@ class Tools {
|
|
|
1183
1183
|
method: "PUT",
|
|
1184
1184
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1185
1185
|
? yield core.Supplier.get(this._options.project)
|
|
1186
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
1186
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
1187
1187
|
contentType: "application/json",
|
|
1188
1188
|
requestType: "json",
|
|
1189
1189
|
body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1260,7 +1260,7 @@ class Tools {
|
|
|
1260
1260
|
method: "GET",
|
|
1261
1261
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1262
1262
|
? yield core.Supplier.get(this._options.project)
|
|
1263
|
-
: 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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
1264
1264
|
contentType: "application/json",
|
|
1265
1265
|
requestType: "json",
|
|
1266
1266
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1337,7 +1337,7 @@ class Tools {
|
|
|
1337
1337
|
method: "POST",
|
|
1338
1338
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1339
1339
|
? yield core.Supplier.get(this._options.project)
|
|
1340
|
-
: 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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
1341
1341
|
contentType: "application/json",
|
|
1342
1342
|
requestType: "json",
|
|
1343
1343
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1413,7 +1413,7 @@ class Tools {
|
|
|
1413
1413
|
method: "DELETE",
|
|
1414
1414
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1415
1415
|
? yield core.Supplier.get(this._options.project)
|
|
1416
|
-
: 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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
1417
1417
|
contentType: "application/json",
|
|
1418
1418
|
requestType: "json",
|
|
1419
1419
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1490,7 +1490,7 @@ class Tools {
|
|
|
1490
1490
|
method: "PATCH",
|
|
1491
1491
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1492
1492
|
? yield core.Supplier.get(this._options.project)
|
|
1493
|
-
: 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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
1494
1494
|
contentType: "application/json",
|
|
1495
1495
|
requestType: "json",
|
|
1496
1496
|
body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1572,7 +1572,7 @@ class Tools {
|
|
|
1572
1572
|
method: "POST",
|
|
1573
1573
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1574
1574
|
? yield core.Supplier.get(this._options.project)
|
|
1575
|
-
: 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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
1576
1576
|
contentType: "application/json",
|
|
1577
1577
|
requestType: "json",
|
|
1578
1578
|
body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1633,7 +1633,7 @@ class Tools {
|
|
|
1633
1633
|
method: "POST",
|
|
1634
1634
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
1635
1635
|
? yield core.Supplier.get(this._options.project)
|
|
1636
|
-
: 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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
1637
1637
|
contentType: "application/json",
|
|
1638
1638
|
requestType: "json",
|
|
1639
1639
|
body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -82,7 +82,7 @@ class Voice {
|
|
|
82
82
|
method: "POST",
|
|
83
83
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
84
84
|
? yield core.Supplier.get(this._options.project)
|
|
85
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
85
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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
86
|
contentType: "application/json",
|
|
87
87
|
requestType: "json",
|
|
88
88
|
body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(request, {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
/**
|
|
6
|
+
* Representation of an archive - a collection of archival passages that can be shared between agents.
|
|
7
|
+
*
|
|
8
|
+
* Parameters:
|
|
9
|
+
* id (str): The unique identifier of the archive.
|
|
10
|
+
* name (str): The name of the archive.
|
|
11
|
+
* description (str): A description of the archive.
|
|
12
|
+
* organization_id (str): The organization this archive belongs to.
|
|
13
|
+
* created_at (datetime): The creation date of the archive.
|
|
14
|
+
* metadata (dict): Additional metadata for the archive.
|
|
15
|
+
*/
|
|
16
|
+
export interface Archive {
|
|
17
|
+
/** The id of the user that made this object. */
|
|
18
|
+
createdById?: string;
|
|
19
|
+
/** The id of the user that made this object. */
|
|
20
|
+
lastUpdatedById?: string;
|
|
21
|
+
/** The creation date of the archive */
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
/** The timestamp when the object was last updated. */
|
|
24
|
+
updatedAt?: Date;
|
|
25
|
+
/** The name of the archive */
|
|
26
|
+
name: string;
|
|
27
|
+
/** A description of the archive */
|
|
28
|
+
description?: string;
|
|
29
|
+
/** The vector database provider used for this archive's passages */
|
|
30
|
+
vectorDbProvider?: Letta.VectorDbProvider;
|
|
31
|
+
/** Additional metadata */
|
|
32
|
+
metadata?: Record<string, unknown>;
|
|
33
|
+
/** The human-friendly ID of the Archive */
|
|
34
|
+
id?: string;
|
|
35
|
+
}
|
package/api/types/BatchJob.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ export interface BatchJob {
|
|
|
15
15
|
status?: Letta.JobStatus;
|
|
16
16
|
/** The unix timestamp of when the job was completed. */
|
|
17
17
|
completedAt?: Date;
|
|
18
|
+
/** The reason why the job was stopped. */
|
|
19
|
+
stopReason?: Letta.StopReasonType;
|
|
18
20
|
/** The metadata of the job. */
|
|
19
21
|
metadata?: Record<string, unknown>;
|
|
20
22
|
jobType?: Letta.JobType;
|
package/api/types/Job.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export interface Job {
|
|
|
25
25
|
status?: Letta.JobStatus;
|
|
26
26
|
/** The unix timestamp of when the job was completed. */
|
|
27
27
|
completedAt?: Date;
|
|
28
|
+
/** The reason why the job was stopped. */
|
|
29
|
+
stopReason?: Letta.StopReasonType;
|
|
28
30
|
/** The metadata of the job. */
|
|
29
31
|
metadata?: Record<string, unknown>;
|
|
30
32
|
/** The type of the job. */
|
package/api/types/Run.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export interface Run {
|
|
|
26
26
|
status?: Letta.JobStatus;
|
|
27
27
|
/** The unix timestamp of when the job was completed. */
|
|
28
28
|
completedAt?: Date;
|
|
29
|
+
/** The reason why the run was stopped. */
|
|
30
|
+
stopReason?: Letta.StopReasonType;
|
|
29
31
|
/** The metadata of the job. */
|
|
30
32
|
metadata?: Record<string, unknown>;
|
|
31
33
|
jobType?: Letta.JobType;
|
package/api/types/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from "./ApprovalRequestMessage";
|
|
|
21
21
|
export * from "./ApprovalResponseMessage";
|
|
22
22
|
export * from "./ArchivalMemorySearchResponse";
|
|
23
23
|
export * from "./ArchivalMemorySearchResult";
|
|
24
|
+
export * from "./Archive";
|
|
24
25
|
export * from "./AssistantMessageContent";
|
|
25
26
|
export * from "./AssistantMessage";
|
|
26
27
|
export * from "./Audio";
|
package/api/types/index.js
CHANGED
|
@@ -37,6 +37,7 @@ __exportStar(require("./ApprovalRequestMessage"), exports);
|
|
|
37
37
|
__exportStar(require("./ApprovalResponseMessage"), exports);
|
|
38
38
|
__exportStar(require("./ArchivalMemorySearchResponse"), exports);
|
|
39
39
|
__exportStar(require("./ArchivalMemorySearchResult"), exports);
|
|
40
|
+
__exportStar(require("./Archive"), exports);
|
|
40
41
|
__exportStar(require("./AssistantMessageContent"), exports);
|
|
41
42
|
__exportStar(require("./AssistantMessage"), exports);
|
|
42
43
|
__exportStar(require("./Audio"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "./environments";
|
|
5
5
|
import * as core from "./core";
|
|
6
|
+
import { Archives } from "./api/resources/archives/client/Client";
|
|
6
7
|
import { Tools } from "./api/resources/tools/client/Client";
|
|
7
8
|
import { Sources } from "./api/resources/sources/client/Client";
|
|
8
9
|
import { Folders } from "./api/resources/folders/client/Client";
|
|
@@ -48,6 +49,7 @@ export declare namespace LettaClient {
|
|
|
48
49
|
}
|
|
49
50
|
export declare class LettaClient {
|
|
50
51
|
protected readonly _options: LettaClient.Options;
|
|
52
|
+
protected _archives: Archives | undefined;
|
|
51
53
|
protected _tools: Tools | undefined;
|
|
52
54
|
protected _sources: Sources | undefined;
|
|
53
55
|
protected _folders: Folders | undefined;
|
|
@@ -69,6 +71,7 @@ export declare class LettaClient {
|
|
|
69
71
|
protected _clientSideAccessTokens: ClientSideAccessTokens | undefined;
|
|
70
72
|
protected _projects: Projects | undefined;
|
|
71
73
|
constructor(_options?: LettaClient.Options);
|
|
74
|
+
get archives(): Archives;
|
|
72
75
|
get tools(): Tools;
|
|
73
76
|
get sources(): Sources;
|
|
74
77
|
get folders(): Folders;
|
package/dist/Client.js
CHANGED
|
@@ -4,109 +4,114 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.LettaClient = void 0;
|
|
7
|
-
const Client_1 = require("./api/resources/
|
|
8
|
-
const Client_2 = require("./api/resources/
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
14
|
-
const Client_8 = require("./api/resources/
|
|
15
|
-
const Client_9 = require("./api/resources/
|
|
16
|
-
const Client_10 = require("./api/resources/
|
|
17
|
-
const Client_11 = require("./api/resources/
|
|
18
|
-
const Client_12 = require("./api/resources/
|
|
19
|
-
const Client_13 = require("./api/resources/
|
|
20
|
-
const Client_14 = require("./api/resources/
|
|
21
|
-
const Client_15 = require("./api/resources/
|
|
22
|
-
const Client_16 = require("./api/resources/
|
|
23
|
-
const Client_17 = require("./api/resources/
|
|
24
|
-
const Client_18 = require("./api/resources/
|
|
25
|
-
const Client_19 = require("./api/resources/
|
|
26
|
-
const Client_20 = require("./api/resources/
|
|
7
|
+
const Client_1 = require("./api/resources/archives/client/Client");
|
|
8
|
+
const Client_2 = require("./api/resources/tools/client/Client");
|
|
9
|
+
const Client_3 = require("./api/resources/sources/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/folders/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/agents/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/groups/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/identities/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/models/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/blocks/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/jobs/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/health/client/Client");
|
|
18
|
+
const Client_12 = require("./api/resources/providers/client/Client");
|
|
19
|
+
const Client_13 = require("./api/resources/runs/client/Client");
|
|
20
|
+
const Client_14 = require("./api/resources/steps/client/Client");
|
|
21
|
+
const Client_15 = require("./api/resources/tags/client/Client");
|
|
22
|
+
const Client_16 = require("./api/resources/telemetry/client/Client");
|
|
23
|
+
const Client_17 = require("./api/resources/batches/client/Client");
|
|
24
|
+
const Client_18 = require("./api/resources/voice/client/Client");
|
|
25
|
+
const Client_19 = require("./api/resources/templates/client/Client");
|
|
26
|
+
const Client_20 = require("./api/resources/clientSideAccessTokens/client/Client");
|
|
27
|
+
const Client_21 = require("./api/resources/projects/client/Client");
|
|
27
28
|
class LettaClient {
|
|
28
29
|
constructor(_options = {}) {
|
|
29
30
|
this._options = _options;
|
|
30
31
|
}
|
|
32
|
+
get archives() {
|
|
33
|
+
var _a;
|
|
34
|
+
return ((_a = this._archives) !== null && _a !== void 0 ? _a : (this._archives = new Client_1.Archives(this._options)));
|
|
35
|
+
}
|
|
31
36
|
get tools() {
|
|
32
37
|
var _a;
|
|
33
|
-
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new
|
|
38
|
+
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_2.Tools(this._options)));
|
|
34
39
|
}
|
|
35
40
|
get sources() {
|
|
36
41
|
var _a;
|
|
37
|
-
return ((_a = this._sources) !== null && _a !== void 0 ? _a : (this._sources = new
|
|
42
|
+
return ((_a = this._sources) !== null && _a !== void 0 ? _a : (this._sources = new Client_3.Sources(this._options)));
|
|
38
43
|
}
|
|
39
44
|
get folders() {
|
|
40
45
|
var _a;
|
|
41
|
-
return ((_a = this._folders) !== null && _a !== void 0 ? _a : (this._folders = new
|
|
46
|
+
return ((_a = this._folders) !== null && _a !== void 0 ? _a : (this._folders = new Client_4.Folders(this._options)));
|
|
42
47
|
}
|
|
43
48
|
get agents() {
|
|
44
49
|
var _a;
|
|
45
|
-
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new
|
|
50
|
+
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_5.Agents(this._options)));
|
|
46
51
|
}
|
|
47
52
|
get groups() {
|
|
48
53
|
var _a;
|
|
49
|
-
return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new
|
|
54
|
+
return ((_a = this._groups) !== null && _a !== void 0 ? _a : (this._groups = new Client_6.Groups(this._options)));
|
|
50
55
|
}
|
|
51
56
|
get identities() {
|
|
52
57
|
var _a;
|
|
53
|
-
return ((_a = this._identities) !== null && _a !== void 0 ? _a : (this._identities = new
|
|
58
|
+
return ((_a = this._identities) !== null && _a !== void 0 ? _a : (this._identities = new Client_7.Identities(this._options)));
|
|
54
59
|
}
|
|
55
60
|
get models() {
|
|
56
61
|
var _a;
|
|
57
|
-
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new
|
|
62
|
+
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_8.Models(this._options)));
|
|
58
63
|
}
|
|
59
64
|
get blocks() {
|
|
60
65
|
var _a;
|
|
61
|
-
return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new
|
|
66
|
+
return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new Client_9.Blocks(this._options)));
|
|
62
67
|
}
|
|
63
68
|
get jobs() {
|
|
64
69
|
var _a;
|
|
65
|
-
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new
|
|
70
|
+
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_10.Jobs(this._options)));
|
|
66
71
|
}
|
|
67
72
|
get health() {
|
|
68
73
|
var _a;
|
|
69
|
-
return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new
|
|
74
|
+
return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_11.Health(this._options)));
|
|
70
75
|
}
|
|
71
76
|
get providers() {
|
|
72
77
|
var _a;
|
|
73
|
-
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new
|
|
78
|
+
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_12.Providers(this._options)));
|
|
74
79
|
}
|
|
75
80
|
get runs() {
|
|
76
81
|
var _a;
|
|
77
|
-
return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new
|
|
82
|
+
return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new Client_13.Runs(this._options)));
|
|
78
83
|
}
|
|
79
84
|
get steps() {
|
|
80
85
|
var _a;
|
|
81
|
-
return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new
|
|
86
|
+
return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new Client_14.Steps(this._options)));
|
|
82
87
|
}
|
|
83
88
|
get tags() {
|
|
84
89
|
var _a;
|
|
85
|
-
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new
|
|
90
|
+
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_15.Tags(this._options)));
|
|
86
91
|
}
|
|
87
92
|
get telemetry() {
|
|
88
93
|
var _a;
|
|
89
|
-
return ((_a = this._telemetry) !== null && _a !== void 0 ? _a : (this._telemetry = new
|
|
94
|
+
return ((_a = this._telemetry) !== null && _a !== void 0 ? _a : (this._telemetry = new Client_16.Telemetry(this._options)));
|
|
90
95
|
}
|
|
91
96
|
get batches() {
|
|
92
97
|
var _a;
|
|
93
|
-
return ((_a = this._batches) !== null && _a !== void 0 ? _a : (this._batches = new
|
|
98
|
+
return ((_a = this._batches) !== null && _a !== void 0 ? _a : (this._batches = new Client_17.Batches(this._options)));
|
|
94
99
|
}
|
|
95
100
|
get voice() {
|
|
96
101
|
var _a;
|
|
97
|
-
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new
|
|
102
|
+
return ((_a = this._voice) !== null && _a !== void 0 ? _a : (this._voice = new Client_18.Voice(this._options)));
|
|
98
103
|
}
|
|
99
104
|
get templates() {
|
|
100
105
|
var _a;
|
|
101
|
-
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new
|
|
106
|
+
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_19.Templates(this._options)));
|
|
102
107
|
}
|
|
103
108
|
get clientSideAccessTokens() {
|
|
104
109
|
var _a;
|
|
105
|
-
return ((_a = this._clientSideAccessTokens) !== null && _a !== void 0 ? _a : (this._clientSideAccessTokens = new
|
|
110
|
+
return ((_a = this._clientSideAccessTokens) !== null && _a !== void 0 ? _a : (this._clientSideAccessTokens = new Client_20.ClientSideAccessTokens(this._options)));
|
|
106
111
|
}
|
|
107
112
|
get projects() {
|
|
108
113
|
var _a;
|
|
109
|
-
return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new
|
|
114
|
+
return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new Client_21.Projects(this._options)));
|
|
110
115
|
}
|
|
111
116
|
}
|
|
112
117
|
exports.LettaClient = LettaClient;
|
|
@@ -213,7 +213,7 @@ class Agents {
|
|
|
213
213
|
method: "GET",
|
|
214
214
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
215
215
|
? yield core.Supplier.get(this._options.project)
|
|
216
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
216
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
217
217
|
contentType: "application/json",
|
|
218
218
|
queryParameters: _queryParams,
|
|
219
219
|
requestType: "json",
|
|
@@ -290,7 +290,7 @@ class Agents {
|
|
|
290
290
|
method: "POST",
|
|
291
291
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
292
292
|
? yield core.Supplier.get(this._options.project)
|
|
293
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
293
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
294
294
|
contentType: "application/json",
|
|
295
295
|
requestType: "json",
|
|
296
296
|
body: serializers.CreateAgentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -366,7 +366,7 @@ class Agents {
|
|
|
366
366
|
method: "GET",
|
|
367
367
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
368
368
|
? yield core.Supplier.get(this._options.project)
|
|
369
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
369
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
370
370
|
contentType: "application/json",
|
|
371
371
|
requestType: "json",
|
|
372
372
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -455,7 +455,7 @@ class Agents {
|
|
|
455
455
|
method: "GET",
|
|
456
456
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
457
457
|
? yield core.Supplier.get(this._options.project)
|
|
458
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
458
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
459
459
|
contentType: "application/json",
|
|
460
460
|
queryParameters: _queryParams,
|
|
461
461
|
requestType: "json",
|
|
@@ -555,7 +555,7 @@ class Agents {
|
|
|
555
555
|
method: "POST",
|
|
556
556
|
headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
557
557
|
? yield core.Supplier.get(this._options.project)
|
|
558
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
558
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "x-override-embedding-model": request.overrideEmbeddingModel != null ? request.overrideEmbeddingModel : undefined }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
559
559
|
requestType: "file",
|
|
560
560
|
duplex: _maybeEncodedRequest.duplex,
|
|
561
561
|
body: _maybeEncodedRequest.body,
|
|
@@ -643,7 +643,7 @@ class Agents {
|
|
|
643
643
|
method: "GET",
|
|
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.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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
|
queryParameters: _queryParams,
|
|
649
649
|
requestType: "json",
|
|
@@ -720,7 +720,7 @@ class Agents {
|
|
|
720
720
|
method: "DELETE",
|
|
721
721
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
722
722
|
? yield core.Supplier.get(this._options.project)
|
|
723
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
723
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
724
724
|
contentType: "application/json",
|
|
725
725
|
requestType: "json",
|
|
726
726
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -788,7 +788,7 @@ class Agents {
|
|
|
788
788
|
method: "PATCH",
|
|
789
789
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
790
790
|
? yield core.Supplier.get(this._options.project)
|
|
791
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
791
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
792
792
|
contentType: "application/json",
|
|
793
793
|
requestType: "json",
|
|
794
794
|
body: serializers.UpdateAgent.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -865,7 +865,7 @@ class Agents {
|
|
|
865
865
|
method: "POST",
|
|
866
866
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
867
867
|
? yield core.Supplier.get(this._options.project)
|
|
868
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.
|
|
868
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68657", "User-Agent": "@letta-ai/letta-client/0.0.68657", "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),
|
|
869
869
|
contentType: "application/json",
|
|
870
870
|
requestType: "json",
|
|
871
871
|
body: serializers.AgentsSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|