@letta-ai/letta-client 0.1.143 → 0.1.145
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 +4 -0
- package/README.md +1 -1
- package/api/resources/agents/client/Client.d.ts +4 -0
- package/api/resources/agents/client/Client.js +31 -23
- package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -2
- package/api/resources/agents/resources/blocks/client/Client.d.ts +4 -0
- package/api/resources/agents/resources/blocks/client/Client.js +15 -5
- package/api/resources/agents/resources/context/client/Client.d.ts +4 -0
- package/api/resources/agents/resources/context/client/Client.js +3 -1
- package/api/resources/agents/resources/coreMemory/client/Client.d.ts +4 -0
- package/api/resources/agents/resources/coreMemory/client/Client.js +3 -1
- package/api/resources/agents/resources/groups/client/Client.d.ts +4 -0
- package/api/resources/agents/resources/groups/client/Client.js +3 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.d.ts +4 -0
- package/api/resources/agents/resources/memoryVariables/client/Client.js +3 -1
- package/api/resources/agents/resources/messages/client/Client.d.ts +4 -0
- package/api/resources/agents/resources/messages/client/Client.js +18 -6
- package/api/resources/agents/resources/passages/client/Client.d.ts +4 -0
- package/api/resources/agents/resources/passages/client/Client.js +12 -4
- package/api/resources/agents/resources/sources/client/Client.d.ts +4 -0
- package/api/resources/agents/resources/sources/client/Client.js +9 -3
- package/api/resources/agents/resources/templates/client/Client.d.ts +4 -0
- package/api/resources/agents/resources/templates/client/Client.js +9 -3
- package/api/resources/agents/resources/tools/client/Client.d.ts +4 -0
- package/api/resources/agents/resources/tools/client/Client.js +9 -3
- package/api/resources/batches/client/Client.d.ts +4 -0
- package/api/resources/batches/client/Client.js +12 -4
- package/api/resources/blocks/client/Client.d.ts +4 -0
- package/api/resources/blocks/client/Client.js +18 -6
- package/api/resources/blocks/resources/agents/client/Client.d.ts +4 -0
- package/api/resources/blocks/resources/agents/client/Client.js +3 -1
- package/api/resources/clientSideAccessTokens/client/Client.d.ts +4 -0
- package/api/resources/clientSideAccessTokens/client/Client.js +6 -2
- package/api/resources/embeddingModels/client/Client.d.ts +4 -0
- package/api/resources/embeddingModels/client/Client.js +3 -1
- package/api/resources/groups/client/Client.d.ts +4 -0
- package/api/resources/groups/client/Client.js +20 -21
- package/api/resources/groups/client/requests/GroupCreate.d.ts +0 -1
- package/api/resources/groups/client/requests/GroupUpdate.d.ts +0 -1
- package/api/resources/groups/resources/messages/client/Client.d.ts +4 -0
- package/api/resources/groups/resources/messages/client/Client.js +15 -5
- package/api/resources/health/client/Client.d.ts +4 -0
- package/api/resources/health/client/Client.js +3 -1
- package/api/resources/identities/client/Client.d.ts +4 -0
- package/api/resources/identities/client/Client.js +23 -22
- package/api/resources/identities/client/requests/IdentityCreate.d.ts +0 -1
- package/api/resources/identities/client/requests/IdentityUpsert.d.ts +0 -1
- package/api/resources/identities/resources/properties/client/Client.d.ts +4 -0
- package/api/resources/identities/resources/properties/client/Client.js +3 -1
- package/api/resources/jobs/client/Client.d.ts +4 -0
- package/api/resources/jobs/client/Client.js +12 -4
- package/api/resources/messages/client/Client.d.ts +4 -0
- package/api/resources/messages/client/Client.js +3 -1
- package/api/resources/models/client/Client.d.ts +4 -0
- package/api/resources/models/client/Client.js +3 -1
- package/api/resources/projects/client/Client.d.ts +4 -0
- package/api/resources/projects/client/Client.js +3 -1
- package/api/resources/providers/client/Client.d.ts +4 -0
- package/api/resources/providers/client/Client.js +15 -5
- package/api/resources/runs/client/Client.d.ts +4 -0
- package/api/resources/runs/client/Client.js +12 -4
- package/api/resources/runs/resources/messages/client/Client.d.ts +4 -0
- package/api/resources/runs/resources/messages/client/Client.js +3 -1
- package/api/resources/runs/resources/steps/client/Client.d.ts +4 -0
- package/api/resources/runs/resources/steps/client/Client.js +3 -1
- package/api/resources/runs/resources/usage/client/Client.d.ts +4 -0
- package/api/resources/runs/resources/usage/client/Client.js +3 -1
- package/api/resources/sources/client/Client.d.ts +4 -0
- package/api/resources/sources/client/Client.js +24 -8
- package/api/resources/sources/resources/files/client/Client.d.ts +4 -0
- package/api/resources/sources/resources/files/client/Client.js +9 -3
- package/api/resources/sources/resources/passages/client/Client.d.ts +4 -0
- package/api/resources/sources/resources/passages/client/Client.js +3 -1
- package/api/resources/steps/client/Client.d.ts +4 -13
- package/api/resources/steps/client/Client.js +6 -74
- package/api/resources/steps/client/requests/index.d.ts +0 -1
- package/api/resources/steps/resources/feedback/client/Client.d.ts +12 -2
- package/api/resources/steps/resources/feedback/client/Client.js +43 -11
- package/api/resources/steps/resources/feedback/client/index.d.ts +1 -1
- package/api/resources/steps/resources/feedback/client/index.js +15 -0
- package/api/resources/steps/{client/requests/AddFeedbackRequest.d.ts → resources/feedback/client/requests/FeedbackCreateRequest.d.ts} +2 -2
- package/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -0
- package/api/resources/steps/resources/feedback/client/requests/index.js +2 -0
- package/api/resources/steps/resources/index.d.ts +1 -0
- package/api/resources/steps/resources/index.js +4 -0
- package/api/resources/tags/client/Client.d.ts +4 -0
- package/api/resources/tags/client/Client.js +3 -1
- package/api/resources/telemetry/client/Client.d.ts +4 -0
- package/api/resources/telemetry/client/Client.js +3 -1
- package/api/resources/templates/client/Client.d.ts +4 -0
- package/api/resources/templates/client/Client.js +3 -1
- package/api/resources/templates/resources/agents/client/Client.d.ts +4 -0
- package/api/resources/templates/resources/agents/client/Client.js +3 -1
- package/api/resources/tools/client/Client.d.ts +4 -0
- package/api/resources/tools/client/Client.js +57 -19
- package/api/resources/voice/client/Client.d.ts +4 -0
- package/api/resources/voice/client/Client.js +3 -1
- package/dist/Client.d.ts +4 -0
- package/dist/api/resources/agents/client/Client.d.ts +4 -0
- package/dist/api/resources/agents/client/Client.js +31 -23
- package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -2
- package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +4 -0
- package/dist/api/resources/agents/resources/blocks/client/Client.js +15 -5
- package/dist/api/resources/agents/resources/context/client/Client.d.ts +4 -0
- package/dist/api/resources/agents/resources/context/client/Client.js +3 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +4 -0
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +3 -1
- package/dist/api/resources/agents/resources/groups/client/Client.d.ts +4 -0
- package/dist/api/resources/agents/resources/groups/client/Client.js +3 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.d.ts +4 -0
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +3 -1
- package/dist/api/resources/agents/resources/messages/client/Client.d.ts +4 -0
- package/dist/api/resources/agents/resources/messages/client/Client.js +18 -6
- package/dist/api/resources/agents/resources/passages/client/Client.d.ts +4 -0
- package/dist/api/resources/agents/resources/passages/client/Client.js +12 -4
- package/dist/api/resources/agents/resources/sources/client/Client.d.ts +4 -0
- package/dist/api/resources/agents/resources/sources/client/Client.js +9 -3
- package/dist/api/resources/agents/resources/templates/client/Client.d.ts +4 -0
- package/dist/api/resources/agents/resources/templates/client/Client.js +9 -3
- package/dist/api/resources/agents/resources/tools/client/Client.d.ts +4 -0
- package/dist/api/resources/agents/resources/tools/client/Client.js +9 -3
- package/dist/api/resources/batches/client/Client.d.ts +4 -0
- package/dist/api/resources/batches/client/Client.js +12 -4
- package/dist/api/resources/blocks/client/Client.d.ts +4 -0
- package/dist/api/resources/blocks/client/Client.js +18 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.d.ts +4 -0
- package/dist/api/resources/blocks/resources/agents/client/Client.js +3 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.d.ts +4 -0
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +6 -2
- package/dist/api/resources/embeddingModels/client/Client.d.ts +4 -0
- package/dist/api/resources/embeddingModels/client/Client.js +3 -1
- package/dist/api/resources/groups/client/Client.d.ts +4 -0
- package/dist/api/resources/groups/client/Client.js +20 -21
- package/dist/api/resources/groups/client/requests/GroupCreate.d.ts +0 -1
- package/dist/api/resources/groups/client/requests/GroupUpdate.d.ts +0 -1
- package/dist/api/resources/groups/resources/messages/client/Client.d.ts +4 -0
- package/dist/api/resources/groups/resources/messages/client/Client.js +15 -5
- package/dist/api/resources/health/client/Client.d.ts +4 -0
- package/dist/api/resources/health/client/Client.js +3 -1
- package/dist/api/resources/identities/client/Client.d.ts +4 -0
- package/dist/api/resources/identities/client/Client.js +23 -22
- package/dist/api/resources/identities/client/requests/IdentityCreate.d.ts +0 -1
- package/dist/api/resources/identities/client/requests/IdentityUpsert.d.ts +0 -1
- package/dist/api/resources/identities/resources/properties/client/Client.d.ts +4 -0
- package/dist/api/resources/identities/resources/properties/client/Client.js +3 -1
- package/dist/api/resources/jobs/client/Client.d.ts +4 -0
- package/dist/api/resources/jobs/client/Client.js +12 -4
- package/dist/api/resources/messages/client/Client.d.ts +4 -0
- package/dist/api/resources/messages/client/Client.js +3 -1
- package/dist/api/resources/models/client/Client.d.ts +4 -0
- package/dist/api/resources/models/client/Client.js +3 -1
- package/dist/api/resources/projects/client/Client.d.ts +4 -0
- package/dist/api/resources/projects/client/Client.js +3 -1
- package/dist/api/resources/providers/client/Client.d.ts +4 -0
- package/dist/api/resources/providers/client/Client.js +15 -5
- package/dist/api/resources/runs/client/Client.d.ts +4 -0
- package/dist/api/resources/runs/client/Client.js +12 -4
- package/dist/api/resources/runs/resources/messages/client/Client.d.ts +4 -0
- package/dist/api/resources/runs/resources/messages/client/Client.js +3 -1
- package/dist/api/resources/runs/resources/steps/client/Client.d.ts +4 -0
- package/dist/api/resources/runs/resources/steps/client/Client.js +3 -1
- package/dist/api/resources/runs/resources/usage/client/Client.d.ts +4 -0
- package/dist/api/resources/runs/resources/usage/client/Client.js +3 -1
- package/dist/api/resources/sources/client/Client.d.ts +4 -0
- package/dist/api/resources/sources/client/Client.js +24 -8
- package/dist/api/resources/sources/resources/files/client/Client.d.ts +4 -0
- package/dist/api/resources/sources/resources/files/client/Client.js +9 -3
- package/dist/api/resources/sources/resources/passages/client/Client.d.ts +4 -0
- package/dist/api/resources/sources/resources/passages/client/Client.js +3 -1
- package/dist/api/resources/steps/client/Client.d.ts +4 -13
- package/dist/api/resources/steps/client/Client.js +6 -74
- package/dist/api/resources/steps/client/requests/index.d.ts +0 -1
- package/dist/api/resources/steps/resources/feedback/client/Client.d.ts +12 -2
- package/dist/api/resources/steps/resources/feedback/client/Client.js +43 -11
- package/dist/api/resources/steps/resources/feedback/client/index.d.ts +1 -1
- package/dist/api/resources/steps/resources/feedback/client/index.js +15 -0
- package/dist/api/resources/steps/{client/requests/AddFeedbackRequest.d.ts → resources/feedback/client/requests/FeedbackCreateRequest.d.ts} +2 -2
- package/dist/api/resources/steps/resources/feedback/client/requests/index.d.ts +1 -0
- package/dist/api/resources/steps/resources/feedback/client/requests/index.js +2 -0
- package/dist/api/resources/steps/resources/index.d.ts +1 -0
- package/dist/api/resources/steps/resources/index.js +4 -0
- package/dist/api/resources/tags/client/Client.d.ts +4 -0
- package/dist/api/resources/tags/client/Client.js +3 -1
- package/dist/api/resources/telemetry/client/Client.d.ts +4 -0
- package/dist/api/resources/telemetry/client/Client.js +3 -1
- package/dist/api/resources/templates/client/Client.d.ts +4 -0
- package/dist/api/resources/templates/client/Client.js +3 -1
- package/dist/api/resources/templates/resources/agents/client/Client.d.ts +4 -0
- package/dist/api/resources/templates/resources/agents/client/Client.js +3 -1
- package/dist/api/resources/tools/client/Client.d.ts +4 -0
- package/dist/api/resources/tools/client/Client.js +57 -19
- package/dist/api/resources/voice/client/Client.d.ts +4 -0
- package/dist/api/resources/voice/client/Client.js +3 -1
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
- package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
- package/dist/serialization/resources/groups/client/requests/GroupCreate.d.ts +1 -1
- package/dist/serialization/resources/groups/client/requests/GroupUpdate.d.ts +1 -1
- package/dist/serialization/resources/identities/client/requests/IdentityCreate.d.ts +1 -1
- package/dist/serialization/resources/identities/client/requests/IdentityUpsert.d.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +25 -73
- package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
- package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
- package/serialization/resources/groups/client/requests/GroupCreate.d.ts +1 -1
- package/serialization/resources/groups/client/requests/GroupUpdate.d.ts +1 -1
- package/serialization/resources/identities/client/requests/IdentityCreate.d.ts +1 -1
- package/serialization/resources/identities/client/requests/IdentityUpsert.d.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/resources/steps/{client/requests/AddFeedbackRequest.js → resources/feedback/client/requests/FeedbackCreateRequest.js} +0 -0
- /package/dist/api/resources/steps/{client/requests/AddFeedbackRequest.js → resources/feedback/client/requests/FeedbackCreateRequest.js} +0 -0
|
@@ -44,17 +44,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
48
|
-
var t = {};
|
|
49
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
50
|
-
t[p] = s[p];
|
|
51
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
52
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
53
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
54
|
-
t[p[i]] = s[p[i]];
|
|
55
|
-
}
|
|
56
|
-
return t;
|
|
57
|
-
};
|
|
58
47
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
48
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
49
|
};
|
|
@@ -115,7 +104,9 @@ class Identities {
|
|
|
115
104
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
116
105
|
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/identities/"),
|
|
117
106
|
method: "GET",
|
|
118
|
-
headers: Object.assign(Object.assign({ "X-
|
|
107
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
108
|
+
? yield core.Supplier.get(this._options.project)
|
|
109
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
119
110
|
contentType: "application/json",
|
|
120
111
|
queryParameters: _queryParams,
|
|
121
112
|
requestType: "json",
|
|
@@ -180,14 +171,15 @@ class Identities {
|
|
|
180
171
|
create(request, requestOptions) {
|
|
181
172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
182
173
|
var _a, _b, _c;
|
|
183
|
-
const { project } = request, _body = __rest(request, ["project"]);
|
|
184
174
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
185
175
|
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/identities/"),
|
|
186
176
|
method: "POST",
|
|
187
|
-
headers: Object.assign(Object.assign({ "X-
|
|
177
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
178
|
+
? yield core.Supplier.get(this._options.project)
|
|
179
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
188
180
|
contentType: "application/json",
|
|
189
181
|
requestType: "json",
|
|
190
|
-
body: serializers.IdentityCreate.jsonOrThrow(
|
|
182
|
+
body: serializers.IdentityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
191
183
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
192
184
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
193
185
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -249,14 +241,15 @@ class Identities {
|
|
|
249
241
|
upsert(request, requestOptions) {
|
|
250
242
|
return __awaiter(this, void 0, void 0, function* () {
|
|
251
243
|
var _a, _b, _c;
|
|
252
|
-
const { project } = request, _body = __rest(request, ["project"]);
|
|
253
244
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
254
245
|
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/identities/"),
|
|
255
246
|
method: "PUT",
|
|
256
|
-
headers: Object.assign(Object.assign({ "X-
|
|
247
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
248
|
+
? yield core.Supplier.get(this._options.project)
|
|
249
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
257
250
|
contentType: "application/json",
|
|
258
251
|
requestType: "json",
|
|
259
|
-
body: serializers.IdentityUpsert.jsonOrThrow(
|
|
252
|
+
body: serializers.IdentityUpsert.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
260
253
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
261
254
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
262
255
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -318,7 +311,9 @@ class Identities {
|
|
|
318
311
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
319
312
|
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/identities/count"),
|
|
320
313
|
method: "GET",
|
|
321
|
-
headers: Object.assign(Object.assign({ "X-
|
|
314
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
315
|
+
? yield core.Supplier.get(this._options.project)
|
|
316
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
322
317
|
contentType: "application/json",
|
|
323
318
|
requestType: "json",
|
|
324
319
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -381,7 +376,9 @@ class Identities {
|
|
|
381
376
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
382
377
|
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/identities/${encodeURIComponent(identityId)}`),
|
|
383
378
|
method: "GET",
|
|
384
|
-
headers: Object.assign(Object.assign({ "X-
|
|
379
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
380
|
+
? yield core.Supplier.get(this._options.project)
|
|
381
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
385
382
|
contentType: "application/json",
|
|
386
383
|
requestType: "json",
|
|
387
384
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -446,7 +443,9 @@ class Identities {
|
|
|
446
443
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
447
444
|
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/identities/${encodeURIComponent(identityId)}`),
|
|
448
445
|
method: "DELETE",
|
|
449
|
-
headers: Object.assign(Object.assign({ "X-
|
|
446
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
447
|
+
? yield core.Supplier.get(this._options.project)
|
|
448
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
450
449
|
contentType: "application/json",
|
|
451
450
|
requestType: "json",
|
|
452
451
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -504,7 +503,9 @@ class Identities {
|
|
|
504
503
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
505
504
|
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/identities/${encodeURIComponent(identityId)}`),
|
|
506
505
|
method: "PATCH",
|
|
507
|
-
headers: Object.assign(Object.assign({ "X-
|
|
506
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
507
|
+
? yield core.Supplier.get(this._options.project)
|
|
508
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
508
509
|
contentType: "application/json",
|
|
509
510
|
requestType: "json",
|
|
510
511
|
body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -10,6 +10,8 @@ export declare namespace Properties {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Override the X-Project header */
|
|
14
|
+
project?: core.Supplier<string | undefined>;
|
|
13
15
|
fetcher?: core.FetchFunction;
|
|
14
16
|
}
|
|
15
17
|
interface RequestOptions {
|
|
@@ -19,6 +21,8 @@ export declare namespace Properties {
|
|
|
19
21
|
maxRetries?: number;
|
|
20
22
|
/** A hook to abort the request. */
|
|
21
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the X-Project header */
|
|
25
|
+
project?: string | undefined;
|
|
22
26
|
/** Additional headers to include in the request. */
|
|
23
27
|
headers?: Record<string, string>;
|
|
24
28
|
}
|
|
@@ -79,7 +79,9 @@ class Properties {
|
|
|
79
79
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
80
80
|
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/identities/${encodeURIComponent(identityId)}/properties`),
|
|
81
81
|
method: "PUT",
|
|
82
|
-
headers: Object.assign(Object.assign({ "X-
|
|
82
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
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.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
83
85
|
contentType: "application/json",
|
|
84
86
|
requestType: "json",
|
|
85
87
|
body: serializers.identities.properties.upsert.Request.jsonOrThrow(request, {
|
|
@@ -10,6 +10,8 @@ export declare namespace Jobs {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Override the X-Project header */
|
|
14
|
+
project?: core.Supplier<string | undefined>;
|
|
13
15
|
fetcher?: core.FetchFunction;
|
|
14
16
|
}
|
|
15
17
|
interface RequestOptions {
|
|
@@ -19,6 +21,8 @@ export declare namespace Jobs {
|
|
|
19
21
|
maxRetries?: number;
|
|
20
22
|
/** A hook to abort the request. */
|
|
21
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the X-Project header */
|
|
25
|
+
project?: string | undefined;
|
|
22
26
|
/** Additional headers to include in the request. */
|
|
23
27
|
headers?: Record<string, string>;
|
|
24
28
|
}
|
|
@@ -81,7 +81,9 @@ class Jobs {
|
|
|
81
81
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
82
82
|
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/jobs/"),
|
|
83
83
|
method: "GET",
|
|
84
|
-
headers: Object.assign(Object.assign({ "X-
|
|
84
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
85
|
+
? yield core.Supplier.get(this._options.project)
|
|
86
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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
87
|
contentType: "application/json",
|
|
86
88
|
queryParameters: _queryParams,
|
|
87
89
|
requestType: "json",
|
|
@@ -152,7 +154,9 @@ class Jobs {
|
|
|
152
154
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
153
155
|
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/jobs/active"),
|
|
154
156
|
method: "GET",
|
|
155
|
-
headers: Object.assign(Object.assign({ "X-
|
|
157
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
158
|
+
? yield core.Supplier.get(this._options.project)
|
|
159
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
156
160
|
contentType: "application/json",
|
|
157
161
|
queryParameters: _queryParams,
|
|
158
162
|
requestType: "json",
|
|
@@ -218,7 +222,9 @@ class Jobs {
|
|
|
218
222
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
219
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/jobs/${encodeURIComponent(jobId)}`),
|
|
220
224
|
method: "GET",
|
|
221
|
-
headers: Object.assign(Object.assign({ "X-
|
|
225
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
226
|
+
? yield core.Supplier.get(this._options.project)
|
|
227
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
222
228
|
contentType: "application/json",
|
|
223
229
|
requestType: "json",
|
|
224
230
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -283,7 +289,9 @@ class Jobs {
|
|
|
283
289
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
284
290
|
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/jobs/${encodeURIComponent(jobId)}`),
|
|
285
291
|
method: "DELETE",
|
|
286
|
-
headers: Object.assign(Object.assign({ "X-
|
|
292
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
293
|
+
? yield core.Supplier.get(this._options.project)
|
|
294
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
287
295
|
contentType: "application/json",
|
|
288
296
|
requestType: "json",
|
|
289
297
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -10,6 +10,8 @@ export declare namespace Messages {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Override the X-Project header */
|
|
14
|
+
project?: core.Supplier<string | undefined>;
|
|
13
15
|
fetcher?: core.FetchFunction;
|
|
14
16
|
}
|
|
15
17
|
interface RequestOptions {
|
|
@@ -19,6 +21,8 @@ export declare namespace Messages {
|
|
|
19
21
|
maxRetries?: number;
|
|
20
22
|
/** A hook to abort the request. */
|
|
21
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the X-Project header */
|
|
25
|
+
project?: string | undefined;
|
|
22
26
|
/** Additional headers to include in the request. */
|
|
23
27
|
headers?: Record<string, string>;
|
|
24
28
|
}
|
|
@@ -98,7 +98,9 @@ class Messages {
|
|
|
98
98
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
99
99
|
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/messages/batches/${encodeURIComponent(batchId)}/messages`),
|
|
100
100
|
method: "GET",
|
|
101
|
-
headers: Object.assign(Object.assign({ "X-
|
|
101
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
102
|
+
? yield core.Supplier.get(this._options.project)
|
|
103
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
102
104
|
contentType: "application/json",
|
|
103
105
|
queryParameters: _queryParams,
|
|
104
106
|
requestType: "json",
|
|
@@ -10,6 +10,8 @@ export declare namespace Models {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Override the X-Project header */
|
|
14
|
+
project?: core.Supplier<string | undefined>;
|
|
13
15
|
fetcher?: core.FetchFunction;
|
|
14
16
|
}
|
|
15
17
|
interface RequestOptions {
|
|
@@ -19,6 +21,8 @@ export declare namespace Models {
|
|
|
19
21
|
maxRetries?: number;
|
|
20
22
|
/** A hook to abort the request. */
|
|
21
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the X-Project header */
|
|
25
|
+
project?: string | undefined;
|
|
22
26
|
/** Additional headers to include in the request. */
|
|
23
27
|
headers?: Record<string, string>;
|
|
24
28
|
}
|
|
@@ -92,7 +92,9 @@ class Models {
|
|
|
92
92
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
93
93
|
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/models/"),
|
|
94
94
|
method: "GET",
|
|
95
|
-
headers: Object.assign(Object.assign({ "X-
|
|
95
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
96
|
+
? yield core.Supplier.get(this._options.project)
|
|
97
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
96
98
|
contentType: "application/json",
|
|
97
99
|
queryParameters: _queryParams,
|
|
98
100
|
requestType: "json",
|
|
@@ -10,6 +10,8 @@ export declare namespace Projects {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Override the X-Project header */
|
|
14
|
+
project?: core.Supplier<string | undefined>;
|
|
13
15
|
fetcher?: core.FetchFunction;
|
|
14
16
|
}
|
|
15
17
|
interface RequestOptions {
|
|
@@ -19,6 +21,8 @@ export declare namespace Projects {
|
|
|
19
21
|
maxRetries?: number;
|
|
20
22
|
/** A hook to abort the request. */
|
|
21
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the X-Project header */
|
|
25
|
+
project?: string | undefined;
|
|
22
26
|
/** Additional headers to include in the request. */
|
|
23
27
|
headers?: Record<string, string>;
|
|
24
28
|
}
|
|
@@ -84,7 +84,9 @@ class Projects {
|
|
|
84
84
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
85
85
|
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/projects"),
|
|
86
86
|
method: "GET",
|
|
87
|
-
headers: Object.assign(Object.assign({ "X-
|
|
87
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
88
|
+
? yield core.Supplier.get(this._options.project)
|
|
89
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
88
90
|
contentType: "application/json",
|
|
89
91
|
queryParameters: _queryParams,
|
|
90
92
|
requestType: "json",
|
|
@@ -10,6 +10,8 @@ export declare namespace Providers {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Override the X-Project header */
|
|
14
|
+
project?: core.Supplier<string | undefined>;
|
|
13
15
|
fetcher?: core.FetchFunction;
|
|
14
16
|
}
|
|
15
17
|
interface RequestOptions {
|
|
@@ -19,6 +21,8 @@ export declare namespace Providers {
|
|
|
19
21
|
maxRetries?: number;
|
|
20
22
|
/** A hook to abort the request. */
|
|
21
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the X-Project header */
|
|
25
|
+
project?: string | undefined;
|
|
22
26
|
/** Additional headers to include in the request. */
|
|
23
27
|
headers?: Record<string, string>;
|
|
24
28
|
}
|
|
@@ -90,7 +90,9 @@ class Providers {
|
|
|
90
90
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
91
91
|
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/providers/"),
|
|
92
92
|
method: "GET",
|
|
93
|
-
headers: Object.assign(Object.assign({ "X-
|
|
93
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
94
|
+
? yield core.Supplier.get(this._options.project)
|
|
95
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
94
96
|
contentType: "application/json",
|
|
95
97
|
queryParameters: _queryParams,
|
|
96
98
|
requestType: "json",
|
|
@@ -160,7 +162,9 @@ class Providers {
|
|
|
160
162
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
161
163
|
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/providers/"),
|
|
162
164
|
method: "POST",
|
|
163
|
-
headers: Object.assign(Object.assign({ "X-
|
|
165
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
166
|
+
? yield core.Supplier.get(this._options.project)
|
|
167
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
164
168
|
contentType: "application/json",
|
|
165
169
|
requestType: "json",
|
|
166
170
|
body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -226,7 +230,9 @@ class Providers {
|
|
|
226
230
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
227
231
|
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/providers/${encodeURIComponent(providerId)}`),
|
|
228
232
|
method: "DELETE",
|
|
229
|
-
headers: Object.assign(Object.assign({ "X-
|
|
233
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
234
|
+
? yield core.Supplier.get(this._options.project)
|
|
235
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
230
236
|
contentType: "application/json",
|
|
231
237
|
requestType: "json",
|
|
232
238
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -288,7 +294,9 @@ class Providers {
|
|
|
288
294
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
289
295
|
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/providers/${encodeURIComponent(providerId)}`),
|
|
290
296
|
method: "PATCH",
|
|
291
|
-
headers: Object.assign(Object.assign({ "X-
|
|
297
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
298
|
+
? yield core.Supplier.get(this._options.project)
|
|
299
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
292
300
|
contentType: "application/json",
|
|
293
301
|
requestType: "json",
|
|
294
302
|
body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -351,7 +359,9 @@ class Providers {
|
|
|
351
359
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
352
360
|
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/providers/check"),
|
|
353
361
|
method: "GET",
|
|
354
|
-
headers: Object.assign(Object.assign({ "X-
|
|
362
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
363
|
+
? yield core.Supplier.get(this._options.project)
|
|
364
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
355
365
|
contentType: "application/json",
|
|
356
366
|
requestType: "json",
|
|
357
367
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -13,6 +13,8 @@ export declare namespace Runs {
|
|
|
13
13
|
/** Specify a custom URL to connect the client to. */
|
|
14
14
|
baseUrl?: core.Supplier<string>;
|
|
15
15
|
token?: core.Supplier<string | undefined>;
|
|
16
|
+
/** Override the X-Project header */
|
|
17
|
+
project?: core.Supplier<string | undefined>;
|
|
16
18
|
fetcher?: core.FetchFunction;
|
|
17
19
|
}
|
|
18
20
|
interface RequestOptions {
|
|
@@ -22,6 +24,8 @@ export declare namespace Runs {
|
|
|
22
24
|
maxRetries?: number;
|
|
23
25
|
/** A hook to abort the request. */
|
|
24
26
|
abortSignal?: AbortSignal;
|
|
27
|
+
/** Override the X-Project header */
|
|
28
|
+
project?: string | undefined;
|
|
25
29
|
/** Additional headers to include in the request. */
|
|
26
30
|
headers?: Record<string, string>;
|
|
27
31
|
}
|
|
@@ -101,7 +101,9 @@ class Runs {
|
|
|
101
101
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
102
102
|
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/runs/"),
|
|
103
103
|
method: "GET",
|
|
104
|
-
headers: Object.assign(Object.assign({ "X-
|
|
104
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
105
|
+
? yield core.Supplier.get(this._options.project)
|
|
106
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
105
107
|
contentType: "application/json",
|
|
106
108
|
queryParameters: _queryParams,
|
|
107
109
|
requestType: "json",
|
|
@@ -177,7 +179,9 @@ class Runs {
|
|
|
177
179
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
178
180
|
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/runs/active"),
|
|
179
181
|
method: "GET",
|
|
180
|
-
headers: Object.assign(Object.assign({ "X-
|
|
182
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
183
|
+
? yield core.Supplier.get(this._options.project)
|
|
184
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
181
185
|
contentType: "application/json",
|
|
182
186
|
queryParameters: _queryParams,
|
|
183
187
|
requestType: "json",
|
|
@@ -243,7 +247,9 @@ class Runs {
|
|
|
243
247
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
244
248
|
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/runs/${encodeURIComponent(runId)}`),
|
|
245
249
|
method: "GET",
|
|
246
|
-
headers: Object.assign(Object.assign({ "X-
|
|
250
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
251
|
+
? yield core.Supplier.get(this._options.project)
|
|
252
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
247
253
|
contentType: "application/json",
|
|
248
254
|
requestType: "json",
|
|
249
255
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -308,7 +314,9 @@ class Runs {
|
|
|
308
314
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
309
315
|
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/runs/${encodeURIComponent(runId)}`),
|
|
310
316
|
method: "DELETE",
|
|
311
|
-
headers: Object.assign(Object.assign({ "X-
|
|
317
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
318
|
+
? yield core.Supplier.get(this._options.project)
|
|
319
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
312
320
|
contentType: "application/json",
|
|
313
321
|
requestType: "json",
|
|
314
322
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -10,6 +10,8 @@ export declare namespace Messages {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Override the X-Project header */
|
|
14
|
+
project?: core.Supplier<string | undefined>;
|
|
13
15
|
fetcher?: core.FetchFunction;
|
|
14
16
|
}
|
|
15
17
|
interface RequestOptions {
|
|
@@ -19,6 +21,8 @@ export declare namespace Messages {
|
|
|
19
21
|
maxRetries?: number;
|
|
20
22
|
/** A hook to abort the request. */
|
|
21
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the X-Project header */
|
|
25
|
+
project?: string | undefined;
|
|
22
26
|
/** Additional headers to include in the request. */
|
|
23
27
|
headers?: Record<string, string>;
|
|
24
28
|
}
|
|
@@ -107,7 +107,9 @@ class Messages {
|
|
|
107
107
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
108
108
|
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/runs/${encodeURIComponent(runId)}/messages`),
|
|
109
109
|
method: "GET",
|
|
110
|
-
headers: Object.assign(Object.assign({ "X-
|
|
110
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
111
|
+
? yield core.Supplier.get(this._options.project)
|
|
112
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
111
113
|
contentType: "application/json",
|
|
112
114
|
queryParameters: _queryParams,
|
|
113
115
|
requestType: "json",
|
|
@@ -10,6 +10,8 @@ export declare namespace Steps {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Override the X-Project header */
|
|
14
|
+
project?: core.Supplier<string | undefined>;
|
|
13
15
|
fetcher?: core.FetchFunction;
|
|
14
16
|
}
|
|
15
17
|
interface RequestOptions {
|
|
@@ -19,6 +21,8 @@ export declare namespace Steps {
|
|
|
19
21
|
maxRetries?: number;
|
|
20
22
|
/** A hook to abort the request. */
|
|
21
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the X-Project header */
|
|
25
|
+
project?: string | undefined;
|
|
22
26
|
/** Additional headers to include in the request. */
|
|
23
27
|
headers?: Record<string, string>;
|
|
24
28
|
}
|
|
@@ -101,7 +101,9 @@ class Steps {
|
|
|
101
101
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
102
102
|
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/runs/${encodeURIComponent(runId)}/steps`),
|
|
103
103
|
method: "GET",
|
|
104
|
-
headers: Object.assign(Object.assign({ "X-
|
|
104
|
+
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
105
|
+
? yield core.Supplier.get(this._options.project)
|
|
106
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.145", "User-Agent": "@letta-ai/letta-client/0.1.145", "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),
|
|
105
107
|
contentType: "application/json",
|
|
106
108
|
queryParameters: _queryParams,
|
|
107
109
|
requestType: "json",
|
|
@@ -10,6 +10,8 @@ export declare namespace Usage {
|
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token?: core.Supplier<string | undefined>;
|
|
13
|
+
/** Override the X-Project header */
|
|
14
|
+
project?: core.Supplier<string | undefined>;
|
|
13
15
|
fetcher?: core.FetchFunction;
|
|
14
16
|
}
|
|
15
17
|
interface RequestOptions {
|
|
@@ -19,6 +21,8 @@ export declare namespace Usage {
|
|
|
19
21
|
maxRetries?: number;
|
|
20
22
|
/** A hook to abort the request. */
|
|
21
23
|
abortSignal?: AbortSignal;
|
|
24
|
+
/** Override the X-Project header */
|
|
25
|
+
project?: string | undefined;
|
|
22
26
|
/** Additional headers to include in the request. */
|
|
23
27
|
headers?: Record<string, string>;
|
|
24
28
|
}
|