@letta-ai/letta-client 0.1.31 → 0.1.33
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 +23 -18
- package/api/resources/agents/client/Client.js +24 -9
- package/api/resources/agents/client/requests/AgentsListRequest.d.ts +4 -0
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +4 -1
- package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- package/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/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 +3 -3
- package/api/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +1 -0
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +5 -0
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +5 -0
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +4 -0
- package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js +5 -0
- package/api/resources/agents/types/index.d.ts +2 -0
- package/api/resources/agents/types/index.js +2 -0
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.d.ts +44 -0
- package/api/resources/identities/client/Client.js +155 -0
- package/api/resources/identities/client/index.d.ts +1 -0
- package/api/resources/identities/client/index.js +17 -0
- package/api/resources/identities/client/requests/ListIdentitiesRequest.d.ts +16 -0
- package/api/resources/identities/client/requests/ListIdentitiesRequest.js +5 -0
- package/api/resources/identities/client/requests/index.d.ts +1 -0
- package/api/resources/identities/client/requests/index.js +2 -0
- package/api/resources/identities/index.d.ts +1 -0
- package/api/resources/identities/index.js +17 -0
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/jobs/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +4 -4
- package/api/resources/runs/client/Client.js +6 -6
- package/api/resources/sources/client/Client.js +6 -6
- 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/tag/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +1 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.d.ts +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.js +5 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.d.ts +4 -0
- package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.js +5 -0
- package/api/resources/templates/types/index.d.ts +2 -0
- package/api/resources/templates/types/index.js +2 -0
- package/api/resources/tools/client/Client.js +11 -11
- package/api/types/ActionParametersModel.d.ts +1 -0
- package/api/types/ActionResponseModel.d.ts +1 -0
- package/api/types/AgentState.d.ts +2 -0
- package/api/types/AppAuthSchemeAuthMode.d.ts +2 -1
- package/api/types/AppAuthSchemeAuthMode.js +1 -0
- package/api/types/Identity.d.ts +18 -0
- package/api/types/Identity.js +5 -0
- package/api/types/IdentityType.d.ts +12 -0
- package/api/types/IdentityType.js +11 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +23 -18
- package/dist/api/resources/agents/client/Client.js +24 -9
- package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +4 -0
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +4 -1
- package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
- package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/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 +3 -3
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +1 -0
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +5 -0
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +5 -0
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +4 -0
- package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js +5 -0
- package/dist/api/resources/agents/types/index.d.ts +2 -0
- package/dist/api/resources/agents/types/index.js +2 -0
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.d.ts +44 -0
- package/dist/api/resources/identities/client/Client.js +155 -0
- package/dist/api/resources/identities/client/index.d.ts +1 -0
- package/dist/api/resources/identities/client/index.js +17 -0
- package/dist/api/resources/identities/client/requests/ListIdentitiesRequest.d.ts +16 -0
- package/dist/api/resources/identities/client/requests/ListIdentitiesRequest.js +5 -0
- package/dist/api/resources/identities/client/requests/index.d.ts +1 -0
- package/dist/api/resources/identities/client/requests/index.js +2 -0
- package/dist/api/resources/identities/index.d.ts +1 -0
- package/dist/api/resources/identities/index.js +17 -0
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/jobs/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +4 -4
- package/dist/api/resources/runs/client/Client.js +6 -6
- package/dist/api/resources/sources/client/Client.js +6 -6
- 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/tag/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +1 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.d.ts +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.js +5 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.d.ts +4 -0
- package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.js +5 -0
- package/dist/api/resources/templates/types/index.d.ts +2 -0
- package/dist/api/resources/templates/types/index.js +2 -0
- package/dist/api/resources/tools/client/Client.js +11 -11
- package/dist/api/types/ActionParametersModel.d.ts +1 -0
- package/dist/api/types/ActionResponseModel.d.ts +1 -0
- package/dist/api/types/AgentState.d.ts +2 -0
- package/dist/api/types/AppAuthSchemeAuthMode.d.ts +2 -1
- package/dist/api/types/AppAuthSchemeAuthMode.js +1 -0
- package/dist/api/types/Identity.d.ts +18 -0
- package/dist/api/types/Identity.js +5 -0
- package/dist/api/types/IdentityType.d.ts +12 -0
- package/dist/api/types/IdentityType.js +11 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -1
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +2 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.js +2 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +11 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +47 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +10 -0
- package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js +41 -0
- package/dist/serialization/resources/agents/types/index.d.ts +2 -0
- package/dist/serialization/resources/agents/types/index.js +2 -0
- package/dist/serialization/resources/identities/client/index.d.ts +1 -0
- package/dist/serialization/resources/identities/client/index.js +37 -0
- package/dist/serialization/resources/identities/client/listIdentities.d.ts +11 -0
- package/dist/serialization/resources/identities/client/listIdentities.js +42 -0
- package/dist/serialization/resources/identities/index.d.ts +1 -0
- package/dist/serialization/resources/identities/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.js +2 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.d.ts +11 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.js +47 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.d.ts +10 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.js +41 -0
- package/dist/serialization/resources/templates/types/index.d.ts +2 -0
- package/dist/serialization/resources/templates/types/index.js +2 -0
- package/dist/serialization/types/ActionParametersModel.d.ts +1 -0
- package/dist/serialization/types/ActionParametersModel.js +1 -0
- package/dist/serialization/types/ActionResponseModel.d.ts +1 -0
- package/dist/serialization/types/ActionResponseModel.js +1 -0
- package/dist/serialization/types/AgentState.d.ts +1 -0
- package/dist/serialization/types/AgentState.js +1 -0
- package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
- package/dist/serialization/types/AppAuthSchemeAuthMode.js +1 -1
- package/dist/serialization/types/Identity.d.ts +19 -0
- package/dist/serialization/types/Identity.js +50 -0
- package/dist/serialization/types/IdentityType.d.ts +10 -0
- package/dist/serialization/types/IdentityType.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 +65 -0
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
- package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +2 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.js +2 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +11 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +47 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +10 -0
- package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js +41 -0
- package/serialization/resources/agents/types/index.d.ts +2 -0
- package/serialization/resources/agents/types/index.js +2 -0
- package/serialization/resources/identities/client/index.d.ts +1 -0
- package/serialization/resources/identities/client/index.js +37 -0
- package/serialization/resources/identities/client/listIdentities.d.ts +11 -0
- package/serialization/resources/identities/client/listIdentities.js +42 -0
- package/serialization/resources/identities/index.d.ts +1 -0
- package/serialization/resources/identities/index.js +17 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.js +2 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.d.ts +11 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.js +47 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.d.ts +10 -0
- package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.js +41 -0
- package/serialization/resources/templates/types/index.d.ts +2 -0
- package/serialization/resources/templates/types/index.js +2 -0
- package/serialization/types/ActionParametersModel.d.ts +1 -0
- package/serialization/types/ActionParametersModel.js +1 -0
- package/serialization/types/ActionResponseModel.d.ts +1 -0
- package/serialization/types/ActionResponseModel.js +1 -0
- package/serialization/types/AgentState.d.ts +1 -0
- package/serialization/types/AgentState.js +1 -0
- package/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
- package/serialization/types/AppAuthSchemeAuthMode.js +1 -1
- package/serialization/types/Identity.d.ts +19 -0
- package/serialization/types/Identity.js +50 -0
- package/serialization/types/IdentityType.d.ts +10 -0
- package/serialization/types/IdentityType.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
|
@@ -86,7 +86,7 @@ class Sources {
|
|
|
86
86
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
87
87
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
|
|
88
88
|
method: "GET",
|
|
89
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
89
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
requestType: "json",
|
|
92
92
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -151,7 +151,7 @@ class Sources {
|
|
|
151
151
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
152
152
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
|
|
153
153
|
method: "DELETE",
|
|
154
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
154
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
155
155
|
contentType: "application/json",
|
|
156
156
|
requestType: "json",
|
|
157
157
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -211,7 +211,7 @@ class Sources {
|
|
|
211
211
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
212
212
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
|
|
213
213
|
method: "PATCH",
|
|
214
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
214
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
215
215
|
contentType: "application/json",
|
|
216
216
|
requestType: "json",
|
|
217
217
|
body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -277,7 +277,7 @@ class Sources {
|
|
|
277
277
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
278
278
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/name/${encodeURIComponent(sourceName)}`),
|
|
279
279
|
method: "GET",
|
|
280
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
280
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
281
281
|
contentType: "application/json",
|
|
282
282
|
requestType: "json",
|
|
283
283
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -341,7 +341,7 @@ class Sources {
|
|
|
341
341
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
342
342
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
|
|
343
343
|
method: "GET",
|
|
344
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
344
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
345
345
|
contentType: "application/json",
|
|
346
346
|
requestType: "json",
|
|
347
347
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -408,7 +408,7 @@ class Sources {
|
|
|
408
408
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
409
409
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
|
|
410
410
|
method: "POST",
|
|
411
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
411
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
412
412
|
contentType: "application/json",
|
|
413
413
|
requestType: "json",
|
|
414
414
|
body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -80,7 +80,7 @@ class Files {
|
|
|
80
80
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
81
81
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/upload`),
|
|
82
82
|
method: "POST",
|
|
83
|
-
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
83
|
+
headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
84
84
|
requestType: "file",
|
|
85
85
|
duplex: _maybeEncodedRequest.duplex,
|
|
86
86
|
body: _maybeEncodedRequest.body,
|
|
@@ -155,7 +155,7 @@ class Files {
|
|
|
155
155
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
156
156
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/files`),
|
|
157
157
|
method: "GET",
|
|
158
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
158
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
queryParameters: _queryParams,
|
|
161
161
|
requestType: "json",
|
|
@@ -222,7 +222,7 @@ class Files {
|
|
|
222
222
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
223
223
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
|
|
224
224
|
method: "DELETE",
|
|
225
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
225
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
226
226
|
contentType: "application/json",
|
|
227
227
|
requestType: "json",
|
|
228
228
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -76,7 +76,7 @@ class Passages {
|
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
77
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/passages`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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,
|
|
@@ -100,7 +100,7 @@ class Steps {
|
|
|
100
100
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
101
101
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/steps"),
|
|
102
102
|
method: "GET",
|
|
103
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
103
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
104
104
|
contentType: "application/json",
|
|
105
105
|
queryParameters: _queryParams,
|
|
106
106
|
requestType: "json",
|
|
@@ -166,7 +166,7 @@ class Steps {
|
|
|
166
166
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
167
167
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/steps/${encodeURIComponent(stepId)}`),
|
|
168
168
|
method: "GET",
|
|
169
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
169
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
170
170
|
contentType: "application/json",
|
|
171
171
|
requestType: "json",
|
|
172
172
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -87,7 +87,7 @@ class Tag {
|
|
|
87
87
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
88
88
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tags/"),
|
|
89
89
|
method: "GET",
|
|
90
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
90
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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
|
queryParameters: _queryParams,
|
|
93
93
|
requestType: "json",
|
|
@@ -75,7 +75,7 @@ class Templates {
|
|
|
75
75
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
76
76
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
|
|
77
77
|
method: "POST",
|
|
78
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
78
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
body: serializers.TemplatesCreateAgentsFromTemplateRequest.jsonOrThrow(request, {
|
package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts
CHANGED
|
@@ -26,5 +26,6 @@ export interface TemplatesCreateAgentsFromTemplateResponseAgentsItem {
|
|
|
26
26
|
projectId?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId;
|
|
27
27
|
templateId?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId;
|
|
28
28
|
baseTemplateId?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId;
|
|
29
|
+
identifierKey?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey;
|
|
29
30
|
messageBufferAutoclear?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemMessageBufferAutoclear;
|
|
30
31
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../../../index";
|
|
5
|
+
export type TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey = string | string | undefined | (Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem | undefined)[] | unknown;
|
|
@@ -156,6 +156,8 @@ export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdIt
|
|
|
156
156
|
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId";
|
|
157
157
|
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem";
|
|
158
158
|
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId";
|
|
159
|
+
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem";
|
|
160
|
+
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey";
|
|
159
161
|
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemMessageBufferAutoclear";
|
|
160
162
|
export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItem";
|
|
161
163
|
export * from "./TemplatesCreateAgentsFromTemplateResponse";
|
|
@@ -172,6 +172,8 @@ __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemTempl
|
|
|
172
172
|
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId"), exports);
|
|
173
173
|
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem"), exports);
|
|
174
174
|
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId"), exports);
|
|
175
|
+
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem"), exports);
|
|
176
|
+
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey"), exports);
|
|
175
177
|
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemMessageBufferAutoclear"), exports);
|
|
176
178
|
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItem"), exports);
|
|
177
179
|
__exportStar(require("./TemplatesCreateAgentsFromTemplateResponse"), exports);
|
|
@@ -76,7 +76,7 @@ class Tools {
|
|
|
76
76
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
77
77
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
78
78
|
method: "GET",
|
|
79
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
79
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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,
|
|
@@ -141,7 +141,7 @@ class Tools {
|
|
|
141
141
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
142
142
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
143
143
|
method: "DELETE",
|
|
144
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
144
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
145
145
|
contentType: "application/json",
|
|
146
146
|
requestType: "json",
|
|
147
147
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -201,7 +201,7 @@ class Tools {
|
|
|
201
201
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
202
202
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
|
|
203
203
|
method: "PATCH",
|
|
204
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
204
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
205
205
|
contentType: "application/json",
|
|
206
206
|
requestType: "json",
|
|
207
207
|
body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -278,7 +278,7 @@ class Tools {
|
|
|
278
278
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
279
279
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
280
280
|
method: "GET",
|
|
281
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
281
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
282
282
|
contentType: "application/json",
|
|
283
283
|
queryParameters: _queryParams,
|
|
284
284
|
requestType: "json",
|
|
@@ -346,7 +346,7 @@ class Tools {
|
|
|
346
346
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
347
347
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
348
348
|
method: "POST",
|
|
349
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
349
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
350
350
|
contentType: "application/json",
|
|
351
351
|
requestType: "json",
|
|
352
352
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -414,7 +414,7 @@ class Tools {
|
|
|
414
414
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
415
415
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
|
|
416
416
|
method: "PUT",
|
|
417
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
417
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
418
418
|
contentType: "application/json",
|
|
419
419
|
requestType: "json",
|
|
420
420
|
body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -479,7 +479,7 @@ class Tools {
|
|
|
479
479
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
480
480
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
|
|
481
481
|
method: "POST",
|
|
482
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
482
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
483
483
|
contentType: "application/json",
|
|
484
484
|
requestType: "json",
|
|
485
485
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -549,7 +549,7 @@ class Tools {
|
|
|
549
549
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
550
550
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
|
|
551
551
|
method: "POST",
|
|
552
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
552
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
553
553
|
contentType: "application/json",
|
|
554
554
|
requestType: "json",
|
|
555
555
|
body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -614,7 +614,7 @@ class Tools {
|
|
|
614
614
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
615
615
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
|
|
616
616
|
method: "GET",
|
|
617
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
617
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
618
618
|
contentType: "application/json",
|
|
619
619
|
requestType: "json",
|
|
620
620
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -679,7 +679,7 @@ class Tools {
|
|
|
679
679
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
680
680
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
|
|
681
681
|
method: "GET",
|
|
682
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
682
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
683
683
|
contentType: "application/json",
|
|
684
684
|
requestType: "json",
|
|
685
685
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -744,7 +744,7 @@ class Tools {
|
|
|
744
744
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
745
745
|
url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
|
|
746
746
|
method: "POST",
|
|
747
|
-
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
747
|
+
headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "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),
|
|
748
748
|
contentType: "application/json",
|
|
749
749
|
requestType: "json",
|
|
750
750
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -61,6 +61,8 @@ export interface AgentState {
|
|
|
61
61
|
templateId?: string;
|
|
62
62
|
/** The base template id of the agent. */
|
|
63
63
|
baseTemplateId?: string;
|
|
64
|
+
/** The identifier key belonging to the identity associated with this agent. */
|
|
65
|
+
identifierKey?: string;
|
|
64
66
|
/** If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case. */
|
|
65
67
|
messageBufferAutoclear?: boolean;
|
|
66
68
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type AppAuthSchemeAuthMode = "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BASIC_WITH_JWT";
|
|
4
|
+
export type AppAuthSchemeAuthMode = "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BASIC_WITH_JWT" | "NO_AUTH";
|
|
5
5
|
export declare const AppAuthSchemeAuthMode: {
|
|
6
6
|
readonly Oauth2: "OAUTH2";
|
|
7
7
|
readonly Oauth1: "OAUTH1";
|
|
@@ -9,4 +9,5 @@ export declare const AppAuthSchemeAuthMode: {
|
|
|
9
9
|
readonly Basic: "BASIC";
|
|
10
10
|
readonly BearerToken: "BEARER_TOKEN";
|
|
11
11
|
readonly BasicWithJwt: "BASIC_WITH_JWT";
|
|
12
|
+
readonly NoAuth: "NO_AUTH";
|
|
12
13
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Letta from "../index";
|
|
5
|
+
export interface Identity {
|
|
6
|
+
/** The internal id of the identity. */
|
|
7
|
+
id: string;
|
|
8
|
+
/** External, user-generated identifier key of the identity. */
|
|
9
|
+
identifierKey: string;
|
|
10
|
+
/** The name of the identity. */
|
|
11
|
+
name: string;
|
|
12
|
+
/** The type of the identity. */
|
|
13
|
+
identityType: Letta.IdentityType;
|
|
14
|
+
/** The project id of the identity, if applicable. */
|
|
15
|
+
projectId?: string;
|
|
16
|
+
/** The ids of the agents associated with the identity. */
|
|
17
|
+
agents: Letta.AgentState[];
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Enum to represent the type of the identity.
|
|
6
|
+
*/
|
|
7
|
+
export type IdentityType = "org" | "user" | "other";
|
|
8
|
+
export declare const IdentityType: {
|
|
9
|
+
readonly Org: "org";
|
|
10
|
+
readonly User: "user";
|
|
11
|
+
readonly Other: "other";
|
|
12
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IdentityType = void 0;
|
|
7
|
+
exports.IdentityType = {
|
|
8
|
+
Org: "org",
|
|
9
|
+
User: "user",
|
|
10
|
+
Other: "other",
|
|
11
|
+
};
|
package/api/types/index.d.ts
CHANGED
|
@@ -84,6 +84,8 @@ export * from "./FunctionDefinitionOutput";
|
|
|
84
84
|
export * from "./FunctionTool";
|
|
85
85
|
export * from "./HttpValidationError";
|
|
86
86
|
export * from "./Health";
|
|
87
|
+
export * from "./Identity";
|
|
88
|
+
export * from "./IdentityType";
|
|
87
89
|
export * from "./ImageUrlDetail";
|
|
88
90
|
export * from "./ImageUrl";
|
|
89
91
|
export * from "./InitToolRule";
|
package/api/types/index.js
CHANGED
|
@@ -100,6 +100,8 @@ __exportStar(require("./FunctionDefinitionOutput"), exports);
|
|
|
100
100
|
__exportStar(require("./FunctionTool"), exports);
|
|
101
101
|
__exportStar(require("./HttpValidationError"), exports);
|
|
102
102
|
__exportStar(require("./Health"), exports);
|
|
103
|
+
__exportStar(require("./Identity"), exports);
|
|
104
|
+
__exportStar(require("./IdentityType"), exports);
|
|
103
105
|
__exportStar(require("./ImageUrlDetail"), exports);
|
|
104
106
|
__exportStar(require("./ImageUrl"), exports);
|
|
105
107
|
__exportStar(require("./InitToolRule"), exports);
|
package/dist/Client.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as core from "./core";
|
|
|
6
6
|
import { Tools } from "./api/resources/tools/client/Client";
|
|
7
7
|
import { Sources } from "./api/resources/sources/client/Client";
|
|
8
8
|
import { Agents } from "./api/resources/agents/client/Client";
|
|
9
|
+
import { Identities } from "./api/resources/identities/client/Client";
|
|
9
10
|
import { Models } from "./api/resources/models/client/Client";
|
|
10
11
|
import { Blocks } from "./api/resources/blocks/client/Client";
|
|
11
12
|
import { Jobs } from "./api/resources/jobs/client/Client";
|
|
@@ -39,6 +40,7 @@ export declare class LettaClient {
|
|
|
39
40
|
protected _tools: Tools | undefined;
|
|
40
41
|
protected _sources: Sources | undefined;
|
|
41
42
|
protected _agents: Agents | undefined;
|
|
43
|
+
protected _identities: Identities | undefined;
|
|
42
44
|
protected _models: Models | undefined;
|
|
43
45
|
protected _blocks: Blocks | undefined;
|
|
44
46
|
protected _jobs: Jobs | undefined;
|
|
@@ -52,6 +54,7 @@ export declare class LettaClient {
|
|
|
52
54
|
get tools(): Tools;
|
|
53
55
|
get sources(): Sources;
|
|
54
56
|
get agents(): Agents;
|
|
57
|
+
get identities(): Identities;
|
|
55
58
|
get models(): Models;
|
|
56
59
|
get blocks(): Blocks;
|
|
57
60
|
get jobs(): Jobs;
|
package/dist/Client.js
CHANGED
|
@@ -7,15 +7,16 @@ exports.LettaClient = void 0;
|
|
|
7
7
|
const Client_1 = require("./api/resources/tools/client/Client");
|
|
8
8
|
const Client_2 = require("./api/resources/sources/client/Client");
|
|
9
9
|
const Client_3 = require("./api/resources/agents/client/Client");
|
|
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/
|
|
10
|
+
const Client_4 = require("./api/resources/identities/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/models/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/blocks/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/jobs/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/health/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/providers/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/runs/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/steps/client/Client");
|
|
18
|
+
const Client_12 = require("./api/resources/tag/client/Client");
|
|
19
|
+
const Client_13 = require("./api/resources/templates/client/Client");
|
|
19
20
|
class LettaClient {
|
|
20
21
|
constructor(_options = {}) {
|
|
21
22
|
this._options = _options;
|
|
@@ -32,41 +33,45 @@ class LettaClient {
|
|
|
32
33
|
var _a;
|
|
33
34
|
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_3.Agents(this._options)));
|
|
34
35
|
}
|
|
36
|
+
get identities() {
|
|
37
|
+
var _a;
|
|
38
|
+
return ((_a = this._identities) !== null && _a !== void 0 ? _a : (this._identities = new Client_4.Identities(this._options)));
|
|
39
|
+
}
|
|
35
40
|
get models() {
|
|
36
41
|
var _a;
|
|
37
|
-
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new
|
|
42
|
+
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_5.Models(this._options)));
|
|
38
43
|
}
|
|
39
44
|
get blocks() {
|
|
40
45
|
var _a;
|
|
41
|
-
return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new
|
|
46
|
+
return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new Client_6.Blocks(this._options)));
|
|
42
47
|
}
|
|
43
48
|
get jobs() {
|
|
44
49
|
var _a;
|
|
45
|
-
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new
|
|
50
|
+
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_7.Jobs(this._options)));
|
|
46
51
|
}
|
|
47
52
|
get health() {
|
|
48
53
|
var _a;
|
|
49
|
-
return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new
|
|
54
|
+
return ((_a = this._health) !== null && _a !== void 0 ? _a : (this._health = new Client_8.Health(this._options)));
|
|
50
55
|
}
|
|
51
56
|
get providers() {
|
|
52
57
|
var _a;
|
|
53
|
-
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new
|
|
58
|
+
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_9.Providers(this._options)));
|
|
54
59
|
}
|
|
55
60
|
get runs() {
|
|
56
61
|
var _a;
|
|
57
|
-
return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new
|
|
62
|
+
return ((_a = this._runs) !== null && _a !== void 0 ? _a : (this._runs = new Client_10.Runs(this._options)));
|
|
58
63
|
}
|
|
59
64
|
get steps() {
|
|
60
65
|
var _a;
|
|
61
|
-
return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new
|
|
66
|
+
return ((_a = this._steps) !== null && _a !== void 0 ? _a : (this._steps = new Client_11.Steps(this._options)));
|
|
62
67
|
}
|
|
63
68
|
get tag() {
|
|
64
69
|
var _a;
|
|
65
|
-
return ((_a = this._tag) !== null && _a !== void 0 ? _a : (this._tag = new
|
|
70
|
+
return ((_a = this._tag) !== null && _a !== void 0 ? _a : (this._tag = new Client_12.Tag(this._options)));
|
|
66
71
|
}
|
|
67
72
|
get templates() {
|
|
68
73
|
var _a;
|
|
69
|
-
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new
|
|
74
|
+
return ((_a = this._templates) !== null && _a !== void 0 ? _a : (this._templates = new Client_13.Templates(this._options)));
|
|
70
75
|
}
|
|
71
76
|
}
|
|
72
77
|
exports.LettaClient = LettaClient;
|