@letta-ai/letta-client 0.1.188 → 0.1.190
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/resources/agents/client/Client.js +13 -14
- package/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +2 -2
- package/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/api/resources/agents/resources/context/client/Client.js +1 -1
- package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/api/resources/agents/resources/files/client/Client.js +4 -4
- package/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/api/resources/agents/types/AgentsSearchRequestSearchItemField.d.ts +1 -2
- package/api/resources/agents/types/index.d.ts +0 -1
- package/api/resources/agents/types/index.js +0 -1
- package/api/resources/batches/client/Client.js +4 -4
- package/api/resources/blocks/client/Client.js +6 -6
- package/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/api/resources/embeddingModels/client/Client.js +1 -1
- package/api/resources/folders/client/Client.js +9 -9
- package/api/resources/folders/resources/files/client/Client.js +3 -3
- package/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/api/resources/groups/client/Client.js +6 -6
- package/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/api/resources/health/client/Client.js +1 -1
- package/api/resources/identities/client/Client.js +7 -7
- package/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/api/resources/jobs/client/Client.js +5 -5
- package/api/resources/messages/client/Client.js +1 -1
- package/api/resources/models/client/Client.js +1 -1
- package/api/resources/projects/client/Client.js +1 -1
- package/api/resources/providers/client/Client.js +6 -6
- package/api/resources/runs/client/Client.js +18 -6
- package/api/resources/runs/client/requests/RunsListRequest.d.ts +16 -0
- package/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/api/resources/sources/client/Client.js +10 -10
- package/api/resources/sources/resources/files/client/Client.js +3 -3
- package/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/api/resources/steps/client/Client.js +3 -3
- package/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/api/resources/tags/client/Client.js +1 -1
- package/api/resources/telemetry/client/Client.js +1 -1
- package/api/resources/templates/client/Client.js +15 -10
- package/api/resources/templates/client/requests/TemplatesListRequest.d.ts +2 -0
- package/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/api/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +2 -0
- package/api/resources/templates/types/TemplatesForkTemplateResponse.d.ts +2 -0
- package/api/resources/templates/types/TemplatesListRequestSortBy.d.ts +8 -0
- package/api/resources/{agents/types/AgentsSearchRequestSearchItemFieldOperator.js → templates/types/TemplatesListRequestSortBy.js} +4 -4
- package/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +2 -0
- package/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +2 -0
- package/api/resources/templates/types/index.d.ts +1 -0
- package/api/resources/templates/types/index.js +1 -0
- package/api/resources/tools/client/Client.js +20 -20
- package/api/resources/voice/client/Client.js +1 -1
- package/api/types/BatchJob.d.ts +1 -1
- package/api/types/Job.d.ts +1 -1
- package/api/types/Run.d.ts +1 -1
- package/dist/api/resources/agents/client/Client.js +13 -14
- package/dist/api/resources/agents/client/requests/BodyImportAgentSerialized.d.ts +2 -2
- package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
- package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
- package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
- package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
- package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
- package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemField.d.ts +1 -2
- package/dist/api/resources/agents/types/index.d.ts +0 -1
- package/dist/api/resources/agents/types/index.js +0 -1
- package/dist/api/resources/batches/client/Client.js +4 -4
- package/dist/api/resources/blocks/client/Client.js +6 -6
- package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
- package/dist/api/resources/embeddingModels/client/Client.js +1 -1
- package/dist/api/resources/folders/client/Client.js +9 -9
- package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
- package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/groups/client/Client.js +6 -6
- package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
- package/dist/api/resources/health/client/Client.js +1 -1
- package/dist/api/resources/identities/client/Client.js +7 -7
- package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
- package/dist/api/resources/jobs/client/Client.js +5 -5
- package/dist/api/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/models/client/Client.js +1 -1
- package/dist/api/resources/projects/client/Client.js +1 -1
- package/dist/api/resources/providers/client/Client.js +6 -6
- package/dist/api/resources/runs/client/Client.js +18 -6
- package/dist/api/resources/runs/client/requests/RunsListRequest.d.ts +16 -0
- package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
- package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
- package/dist/api/resources/sources/client/Client.js +10 -10
- package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
- package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
- package/dist/api/resources/steps/client/Client.js +3 -3
- package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
- package/dist/api/resources/tags/client/Client.js +1 -1
- package/dist/api/resources/telemetry/client/Client.js +1 -1
- package/dist/api/resources/templates/client/Client.js +15 -10
- package/dist/api/resources/templates/client/requests/TemplatesListRequest.d.ts +2 -0
- package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
- package/dist/api/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +2 -0
- package/dist/api/resources/templates/types/TemplatesForkTemplateResponse.d.ts +2 -0
- package/dist/api/resources/templates/types/TemplatesListRequestSortBy.d.ts +8 -0
- package/dist/api/resources/{agents/types/AgentsSearchRequestSearchItemFieldOperator.js → templates/types/TemplatesListRequestSortBy.js} +4 -4
- package/dist/api/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +2 -0
- package/dist/api/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +2 -0
- package/dist/api/resources/templates/types/index.d.ts +1 -0
- package/dist/api/resources/templates/types/index.js +1 -0
- package/dist/api/resources/tools/client/Client.js +20 -20
- package/dist/api/resources/voice/client/Client.js +1 -1
- package/dist/api/types/BatchJob.d.ts +1 -1
- package/dist/api/types/Job.d.ts +1 -1
- package/dist/api/types/Run.d.ts +1 -1
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemField.d.ts +1 -2
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemField.js +1 -2
- package/dist/serialization/resources/agents/types/index.d.ts +0 -1
- package/dist/serialization/resources/agents/types/index.js +0 -1
- package/dist/serialization/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +1 -0
- package/dist/serialization/resources/templates/types/TemplatesCreateTemplateResponse.js +1 -0
- package/dist/serialization/resources/templates/types/TemplatesForkTemplateResponse.d.ts +1 -0
- package/dist/serialization/resources/templates/types/TemplatesForkTemplateResponse.js +1 -0
- package/dist/serialization/resources/templates/types/TemplatesListRequestSortBy.d.ts +10 -0
- package/dist/serialization/resources/{agents/types/AgentsSearchRequestSearchItemFieldOperator.js → templates/types/TemplatesListRequestSortBy.js} +2 -2
- package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +1 -0
- package/dist/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +1 -0
- package/dist/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +1 -0
- package/dist/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +1 -0
- package/dist/serialization/resources/templates/types/index.d.ts +1 -0
- package/dist/serialization/resources/templates/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemField.d.ts +1 -2
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemField.js +1 -2
- package/serialization/resources/agents/types/index.d.ts +0 -1
- package/serialization/resources/agents/types/index.js +0 -1
- package/serialization/resources/templates/types/TemplatesCreateTemplateResponse.d.ts +1 -0
- package/serialization/resources/templates/types/TemplatesCreateTemplateResponse.js +1 -0
- package/serialization/resources/templates/types/TemplatesForkTemplateResponse.d.ts +1 -0
- package/serialization/resources/templates/types/TemplatesForkTemplateResponse.js +1 -0
- package/serialization/resources/templates/types/TemplatesListRequestSortBy.d.ts +10 -0
- package/serialization/resources/{agents/types/AgentsSearchRequestSearchItemFieldOperator.js → templates/types/TemplatesListRequestSortBy.js} +2 -2
- package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.d.ts +1 -0
- package/serialization/resources/templates/types/TemplatesListResponseTemplatesItem.js +1 -0
- package/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.d.ts +1 -0
- package/serialization/resources/templates/types/TemplatesSaveTemplateVersionResponse.js +1 -0
- package/serialization/resources/templates/types/index.d.ts +1 -0
- package/serialization/resources/templates/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/agents/types/AgentsSearchRequestSearchItemFieldOperator.d.ts +0 -8
- package/dist/api/resources/agents/types/AgentsSearchRequestSearchItemFieldOperator.d.ts +0 -8
- package/dist/serialization/resources/agents/types/AgentsSearchRequestSearchItemFieldOperator.d.ts +0 -10
- package/serialization/resources/agents/types/AgentsSearchRequestSearchItemFieldOperator.d.ts +0 -10
|
@@ -101,7 +101,7 @@ class Models {
|
|
|
101
101
|
method: "GET",
|
|
102
102
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
103
103
|
? yield core.Supplier.get(this._options.project)
|
|
104
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
104
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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
105
|
contentType: "application/json",
|
|
106
106
|
queryParameters: _queryParams,
|
|
107
107
|
requestType: "json",
|
|
@@ -89,7 +89,7 @@ class Projects {
|
|
|
89
89
|
method: "GET",
|
|
90
90
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
91
91
|
? yield core.Supplier.get(this._options.project)
|
|
92
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
92
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
93
93
|
contentType: "application/json",
|
|
94
94
|
queryParameters: _queryParams,
|
|
95
95
|
requestType: "json",
|
|
@@ -97,7 +97,7 @@ class Providers {
|
|
|
97
97
|
method: "GET",
|
|
98
98
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
99
99
|
? yield core.Supplier.get(this._options.project)
|
|
100
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
100
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
101
101
|
contentType: "application/json",
|
|
102
102
|
queryParameters: _queryParams,
|
|
103
103
|
requestType: "json",
|
|
@@ -178,7 +178,7 @@ class Providers {
|
|
|
178
178
|
method: "POST",
|
|
179
179
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
180
180
|
? yield core.Supplier.get(this._options.project)
|
|
181
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
181
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
182
182
|
contentType: "application/json",
|
|
183
183
|
requestType: "json",
|
|
184
184
|
body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -255,7 +255,7 @@ class Providers {
|
|
|
255
255
|
method: "DELETE",
|
|
256
256
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
257
257
|
? yield core.Supplier.get(this._options.project)
|
|
258
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
258
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
259
259
|
contentType: "application/json",
|
|
260
260
|
requestType: "json",
|
|
261
261
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -325,7 +325,7 @@ class Providers {
|
|
|
325
325
|
method: "PATCH",
|
|
326
326
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
327
327
|
? yield core.Supplier.get(this._options.project)
|
|
328
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
328
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
329
329
|
contentType: "application/json",
|
|
330
330
|
requestType: "json",
|
|
331
331
|
body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -397,7 +397,7 @@ class Providers {
|
|
|
397
397
|
method: "GET",
|
|
398
398
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
399
399
|
? yield core.Supplier.get(this._options.project)
|
|
400
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
400
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
401
401
|
contentType: "application/json",
|
|
402
402
|
requestType: "json",
|
|
403
403
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -454,7 +454,7 @@ class Providers {
|
|
|
454
454
|
method: "POST",
|
|
455
455
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
456
456
|
? yield core.Supplier.get(this._options.project)
|
|
457
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
457
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
458
458
|
contentType: "application/json",
|
|
459
459
|
requestType: "json",
|
|
460
460
|
body: serializers.ProviderCheck.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -91,7 +91,7 @@ class Runs {
|
|
|
91
91
|
__list() {
|
|
92
92
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
93
93
|
var _a, _b, _c;
|
|
94
|
-
const { agentIds, background } = request;
|
|
94
|
+
const { agentIds, background, after, before, limit, ascending } = request;
|
|
95
95
|
const _queryParams = {};
|
|
96
96
|
if (agentIds != null) {
|
|
97
97
|
if (Array.isArray(agentIds)) {
|
|
@@ -104,12 +104,24 @@ class Runs {
|
|
|
104
104
|
if (background != null) {
|
|
105
105
|
_queryParams["background"] = background.toString();
|
|
106
106
|
}
|
|
107
|
+
if (after != null) {
|
|
108
|
+
_queryParams["after"] = after;
|
|
109
|
+
}
|
|
110
|
+
if (before != null) {
|
|
111
|
+
_queryParams["before"] = before;
|
|
112
|
+
}
|
|
113
|
+
if (limit != null) {
|
|
114
|
+
_queryParams["limit"] = limit.toString();
|
|
115
|
+
}
|
|
116
|
+
if (ascending != null) {
|
|
117
|
+
_queryParams["ascending"] = ascending.toString();
|
|
118
|
+
}
|
|
107
119
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
108
120
|
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/"),
|
|
109
121
|
method: "GET",
|
|
110
122
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
111
123
|
? 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.
|
|
124
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
113
125
|
contentType: "application/json",
|
|
114
126
|
queryParameters: _queryParams,
|
|
115
127
|
requestType: "json",
|
|
@@ -199,7 +211,7 @@ class Runs {
|
|
|
199
211
|
method: "GET",
|
|
200
212
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
201
213
|
? yield core.Supplier.get(this._options.project)
|
|
202
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
214
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
203
215
|
contentType: "application/json",
|
|
204
216
|
queryParameters: _queryParams,
|
|
205
217
|
requestType: "json",
|
|
@@ -276,7 +288,7 @@ class Runs {
|
|
|
276
288
|
method: "GET",
|
|
277
289
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
278
290
|
? yield core.Supplier.get(this._options.project)
|
|
279
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
291
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
280
292
|
contentType: "application/json",
|
|
281
293
|
requestType: "json",
|
|
282
294
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -352,7 +364,7 @@ class Runs {
|
|
|
352
364
|
method: "DELETE",
|
|
353
365
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
354
366
|
? yield core.Supplier.get(this._options.project)
|
|
355
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
367
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
356
368
|
contentType: "application/json",
|
|
357
369
|
requestType: "json",
|
|
358
370
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -417,7 +429,7 @@ class Runs {
|
|
|
417
429
|
method: "POST",
|
|
418
430
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
419
431
|
? yield core.Supplier.get(this._options.project)
|
|
420
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
432
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
421
433
|
contentType: "application/json",
|
|
422
434
|
requestType: "json",
|
|
423
435
|
body: serializers.RetrieveStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -14,4 +14,20 @@ export interface RunsListRequest {
|
|
|
14
14
|
* If True, filters for runs that were created in background mode.
|
|
15
15
|
*/
|
|
16
16
|
background?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Cursor for pagination
|
|
19
|
+
*/
|
|
20
|
+
after?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Cursor for pagination
|
|
23
|
+
*/
|
|
24
|
+
before?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Maximum number of runs to return
|
|
27
|
+
*/
|
|
28
|
+
limit?: number;
|
|
29
|
+
/**
|
|
30
|
+
* Whether to sort agents oldest to newest (True) or newest to oldest (False, default)
|
|
31
|
+
*/
|
|
32
|
+
ascending?: boolean;
|
|
17
33
|
}
|
|
@@ -112,7 +112,7 @@ class Messages {
|
|
|
112
112
|
method: "GET",
|
|
113
113
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
114
114
|
? yield core.Supplier.get(this._options.project)
|
|
115
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
115
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
116
116
|
contentType: "application/json",
|
|
117
117
|
queryParameters: _queryParams,
|
|
118
118
|
requestType: "json",
|
|
@@ -106,7 +106,7 @@ class Steps {
|
|
|
106
106
|
method: "GET",
|
|
107
107
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
108
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.
|
|
109
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
110
110
|
contentType: "application/json",
|
|
111
111
|
queryParameters: _queryParams,
|
|
112
112
|
requestType: "json",
|
|
@@ -81,7 +81,7 @@ class Usage {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
83
83
|
? yield core.Supplier.get(this._options.project)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -90,7 +90,7 @@ class Sources {
|
|
|
90
90
|
method: "GET",
|
|
91
91
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
92
92
|
? yield core.Supplier.get(this._options.project)
|
|
93
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
93
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
requestType: "json",
|
|
96
96
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -166,7 +166,7 @@ class Sources {
|
|
|
166
166
|
method: "GET",
|
|
167
167
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
168
168
|
? yield core.Supplier.get(this._options.project)
|
|
169
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
169
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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,
|
|
@@ -242,7 +242,7 @@ class Sources {
|
|
|
242
242
|
method: "DELETE",
|
|
243
243
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
244
244
|
? yield core.Supplier.get(this._options.project)
|
|
245
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
245
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
246
246
|
contentType: "application/json",
|
|
247
247
|
requestType: "json",
|
|
248
248
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -310,7 +310,7 @@ class Sources {
|
|
|
310
310
|
method: "PATCH",
|
|
311
311
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
312
312
|
? yield core.Supplier.get(this._options.project)
|
|
313
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
313
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
314
314
|
contentType: "application/json",
|
|
315
315
|
requestType: "json",
|
|
316
316
|
body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -387,7 +387,7 @@ class Sources {
|
|
|
387
387
|
method: "GET",
|
|
388
388
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
389
389
|
? yield core.Supplier.get(this._options.project)
|
|
390
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
390
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
391
391
|
contentType: "application/json",
|
|
392
392
|
requestType: "json",
|
|
393
393
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -474,7 +474,7 @@ class Sources {
|
|
|
474
474
|
method: "GET",
|
|
475
475
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
476
476
|
? yield core.Supplier.get(this._options.project)
|
|
477
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
477
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
478
478
|
contentType: "application/json",
|
|
479
479
|
queryParameters: _queryParams,
|
|
480
480
|
requestType: "json",
|
|
@@ -550,7 +550,7 @@ class Sources {
|
|
|
550
550
|
method: "GET",
|
|
551
551
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
552
552
|
? yield core.Supplier.get(this._options.project)
|
|
553
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
553
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
554
554
|
contentType: "application/json",
|
|
555
555
|
requestType: "json",
|
|
556
556
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -628,7 +628,7 @@ class Sources {
|
|
|
628
628
|
method: "POST",
|
|
629
629
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
630
630
|
? yield core.Supplier.get(this._options.project)
|
|
631
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
631
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
632
632
|
contentType: "application/json",
|
|
633
633
|
requestType: "json",
|
|
634
634
|
body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -705,7 +705,7 @@ class Sources {
|
|
|
705
705
|
method: "GET",
|
|
706
706
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
707
707
|
? yield core.Supplier.get(this._options.project)
|
|
708
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
708
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
709
709
|
contentType: "application/json",
|
|
710
710
|
requestType: "json",
|
|
711
711
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -788,7 +788,7 @@ class Sources {
|
|
|
788
788
|
method: "GET",
|
|
789
789
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
790
790
|
? yield core.Supplier.get(this._options.project)
|
|
791
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
791
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
792
792
|
contentType: "application/json",
|
|
793
793
|
queryParameters: _queryParams,
|
|
794
794
|
requestType: "json",
|
|
@@ -93,7 +93,7 @@ class Files {
|
|
|
93
93
|
method: "POST",
|
|
94
94
|
headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
95
95
|
? yield core.Supplier.get(this._options.project)
|
|
96
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
96
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
97
97
|
queryParameters: _queryParams,
|
|
98
98
|
requestType: "file",
|
|
99
99
|
duplex: _maybeEncodedRequest.duplex,
|
|
@@ -186,7 +186,7 @@ class Files {
|
|
|
186
186
|
method: "GET",
|
|
187
187
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
188
188
|
? yield core.Supplier.get(this._options.project)
|
|
189
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
189
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
190
190
|
contentType: "application/json",
|
|
191
191
|
queryParameters: _queryParams,
|
|
192
192
|
requestType: "json",
|
|
@@ -264,7 +264,7 @@ class Files {
|
|
|
264
264
|
method: "DELETE",
|
|
265
265
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
266
266
|
? yield core.Supplier.get(this._options.project)
|
|
267
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
267
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
268
268
|
contentType: "application/json",
|
|
269
269
|
requestType: "json",
|
|
270
270
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -93,7 +93,7 @@ class Passages {
|
|
|
93
93
|
method: "GET",
|
|
94
94
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
95
95
|
? yield core.Supplier.get(this._options.project)
|
|
96
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
96
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
97
97
|
contentType: "application/json",
|
|
98
98
|
queryParameters: _queryParams,
|
|
99
99
|
requestType: "json",
|
|
@@ -140,7 +140,7 @@ class Steps {
|
|
|
140
140
|
method: "GET",
|
|
141
141
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
142
142
|
? yield core.Supplier.get(this._options.project)
|
|
143
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
143
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
144
144
|
contentType: "application/json",
|
|
145
145
|
queryParameters: _queryParams,
|
|
146
146
|
requestType: "json",
|
|
@@ -217,7 +217,7 @@ class Steps {
|
|
|
217
217
|
method: "GET",
|
|
218
218
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
219
219
|
? yield core.Supplier.get(this._options.project)
|
|
220
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
220
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
221
221
|
contentType: "application/json",
|
|
222
222
|
requestType: "json",
|
|
223
223
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -293,7 +293,7 @@ class Steps {
|
|
|
293
293
|
method: "GET",
|
|
294
294
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
295
295
|
? yield core.Supplier.get(this._options.project)
|
|
296
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
296
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
297
297
|
contentType: "application/json",
|
|
298
298
|
requestType: "json",
|
|
299
299
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -89,7 +89,7 @@ class Feedback {
|
|
|
89
89
|
method: "PATCH",
|
|
90
90
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
91
91
|
? yield core.Supplier.get(this._options.project)
|
|
92
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
92
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
93
93
|
contentType: "application/json",
|
|
94
94
|
queryParameters: _queryParams,
|
|
95
95
|
requestType: "json",
|
|
@@ -92,7 +92,7 @@ class Tags {
|
|
|
92
92
|
method: "GET",
|
|
93
93
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
94
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.
|
|
95
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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
96
|
contentType: "application/json",
|
|
97
97
|
queryParameters: _queryParams,
|
|
98
98
|
requestType: "json",
|
|
@@ -79,7 +79,7 @@ class Telemetry {
|
|
|
79
79
|
method: "GET",
|
|
80
80
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
81
81
|
? yield core.Supplier.get(this._options.project)
|
|
82
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
82
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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
83
|
contentType: "application/json",
|
|
84
84
|
requestType: "json",
|
|
85
85
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -52,8 +52,8 @@ exports.Templates = void 0;
|
|
|
52
52
|
const environments = __importStar(require("../../../../environments"));
|
|
53
53
|
const core = __importStar(require("../../../../core"));
|
|
54
54
|
const Letta = __importStar(require("../../../index"));
|
|
55
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
56
55
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
57
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
58
58
|
const Client_1 = require("../resources/agents/client/Client");
|
|
59
59
|
class Templates {
|
|
@@ -79,7 +79,7 @@ class Templates {
|
|
|
79
79
|
__list() {
|
|
80
80
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
81
81
|
var _a, _b, _c;
|
|
82
|
-
const { offset, limit, templateId, name, search, projectSlug, projectId } = request;
|
|
82
|
+
const { offset, limit, templateId, name, search, projectSlug, projectId, sortBy } = request;
|
|
83
83
|
const _queryParams = {};
|
|
84
84
|
if (offset != null) {
|
|
85
85
|
_queryParams["offset"] = offset;
|
|
@@ -102,12 +102,17 @@ class Templates {
|
|
|
102
102
|
if (projectId != null) {
|
|
103
103
|
_queryParams["project_id"] = projectId;
|
|
104
104
|
}
|
|
105
|
+
if (sortBy != null) {
|
|
106
|
+
_queryParams["sort_by"] = serializers.TemplatesListRequestSortBy.jsonOrThrow(sortBy, {
|
|
107
|
+
unrecognizedObjectKeys: "strip",
|
|
108
|
+
});
|
|
109
|
+
}
|
|
105
110
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
106
111
|
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"),
|
|
107
112
|
method: "GET",
|
|
108
113
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
109
114
|
? yield core.Supplier.get(this._options.project)
|
|
110
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
115
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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
116
|
contentType: "application/json",
|
|
112
117
|
queryParameters: _queryParams,
|
|
113
118
|
requestType: "json",
|
|
@@ -175,7 +180,7 @@ class Templates {
|
|
|
175
180
|
method: "POST",
|
|
176
181
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
177
182
|
? yield core.Supplier.get(this._options.project)
|
|
178
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
183
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
179
184
|
contentType: "application/json",
|
|
180
185
|
requestType: "json",
|
|
181
186
|
body: serializers.TemplatesSaveTemplateVersionRequest.jsonOrThrow(request, {
|
|
@@ -250,7 +255,7 @@ class Templates {
|
|
|
250
255
|
method: "DELETE",
|
|
251
256
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
252
257
|
? yield core.Supplier.get(this._options.project)
|
|
253
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
258
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
254
259
|
contentType: "application/json",
|
|
255
260
|
requestType: "json",
|
|
256
261
|
body: serializers.TemplatesDeleteTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -320,7 +325,7 @@ class Templates {
|
|
|
320
325
|
method: "GET",
|
|
321
326
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
322
327
|
? yield core.Supplier.get(this._options.project)
|
|
323
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
328
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
324
329
|
contentType: "application/json",
|
|
325
330
|
requestType: "json",
|
|
326
331
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -387,7 +392,7 @@ class Templates {
|
|
|
387
392
|
method: "POST",
|
|
388
393
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
389
394
|
? yield core.Supplier.get(this._options.project)
|
|
390
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
395
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
391
396
|
contentType: "application/json",
|
|
392
397
|
requestType: "json",
|
|
393
398
|
body: serializers.TemplatesForkTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -461,7 +466,7 @@ class Templates {
|
|
|
461
466
|
method: "POST",
|
|
462
467
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
463
468
|
? yield core.Supplier.get(this._options.project)
|
|
464
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
469
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
465
470
|
contentType: "application/json",
|
|
466
471
|
requestType: "json",
|
|
467
472
|
body: Object.assign(Object.assign({}, serializers.TemplatesCreateTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { type: "agent" }),
|
|
@@ -538,7 +543,7 @@ class Templates {
|
|
|
538
543
|
method: "PATCH",
|
|
539
544
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
540
545
|
? yield core.Supplier.get(this._options.project)
|
|
541
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
546
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
542
547
|
contentType: "application/json",
|
|
543
548
|
requestType: "json",
|
|
544
549
|
body: serializers.TemplatesRenameTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -629,7 +634,7 @@ class Templates {
|
|
|
629
634
|
method: "GET",
|
|
630
635
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
631
636
|
? yield core.Supplier.get(this._options.project)
|
|
632
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
637
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "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),
|
|
633
638
|
contentType: "application/json",
|
|
634
639
|
queryParameters: _queryParams,
|
|
635
640
|
requestType: "json",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Letta from "../../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {}
|
|
@@ -13,4 +14,5 @@ export interface TemplatesListRequest {
|
|
|
13
14
|
search?: string;
|
|
14
15
|
projectSlug?: string;
|
|
15
16
|
projectId?: string;
|
|
17
|
+
sortBy?: Letta.TemplatesListRequestSortBy;
|
|
16
18
|
}
|
|
@@ -83,7 +83,7 @@ class Agents {
|
|
|
83
83
|
method: "POST",
|
|
84
84
|
headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
|
|
85
85
|
? yield core.Supplier.get(this._options.project)
|
|
86
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.
|
|
86
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.190", "User-Agent": "@letta-ai/letta-client/0.1.190", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
87
|
contentType: "application/json",
|
|
88
88
|
requestType: "json",
|
|
89
89
|
body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|