@letta-ai/letta-client 0.0.68651 → 0.0.68653

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.
Files changed (132) hide show
  1. package/api/resources/agents/client/Client.js +9 -9
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/files/client/Client.js +4 -4
  6. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  7. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  10. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  11. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  12. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  13. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  14. package/api/resources/batches/client/Client.js +4 -4
  15. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  16. package/api/resources/blocks/client/Client.js +6 -6
  17. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  18. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  19. package/api/resources/folders/client/Client.js +9 -9
  20. package/api/resources/folders/resources/files/client/Client.js +3 -3
  21. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  22. package/api/resources/groups/client/Client.js +6 -6
  23. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  24. package/api/resources/health/client/Client.js +1 -1
  25. package/api/resources/identities/client/Client.d.ts +6 -0
  26. package/api/resources/identities/client/Client.js +17 -7
  27. package/api/resources/identities/resources/agents/client/Client.d.ts +44 -0
  28. package/api/resources/identities/resources/agents/client/Client.js +119 -0
  29. package/api/resources/identities/resources/agents/client/index.d.ts +1 -0
  30. package/api/resources/identities/resources/agents/client/index.js +2 -0
  31. package/api/resources/identities/resources/agents/index.d.ts +1 -0
  32. package/api/resources/identities/resources/agents/index.js +17 -0
  33. package/api/resources/identities/resources/blocks/client/Client.d.ts +44 -0
  34. package/api/resources/identities/resources/blocks/client/Client.js +119 -0
  35. package/api/resources/identities/resources/blocks/client/index.d.ts +1 -0
  36. package/api/resources/identities/resources/blocks/client/index.js +2 -0
  37. package/api/resources/identities/resources/blocks/index.d.ts +1 -0
  38. package/api/resources/identities/resources/blocks/index.js +17 -0
  39. package/api/resources/identities/resources/index.d.ts +2 -0
  40. package/api/resources/identities/resources/index.js +3 -1
  41. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  42. package/api/resources/jobs/client/Client.js +5 -5
  43. package/api/resources/models/client/Client.js +2 -2
  44. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  45. package/api/resources/projects/client/Client.js +1 -1
  46. package/api/resources/providers/client/Client.js +6 -6
  47. package/api/resources/runs/client/Client.js +5 -5
  48. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  49. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  50. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  51. package/api/resources/sources/client/Client.js +10 -10
  52. package/api/resources/sources/resources/files/client/Client.js +3 -3
  53. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  54. package/api/resources/steps/client/Client.js +2 -2
  55. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  56. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  57. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  58. package/api/resources/tags/client/Client.js +1 -1
  59. package/api/resources/telemetry/client/Client.js +1 -1
  60. package/api/resources/templates/client/Client.js +9 -9
  61. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  62. package/api/resources/tools/client/Client.js +20 -20
  63. package/api/resources/voice/client/Client.js +1 -1
  64. package/dist/api/resources/agents/client/Client.js +9 -9
  65. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  66. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  67. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  68. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  69. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  70. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  71. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  72. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  73. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  74. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  75. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  76. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  77. package/dist/api/resources/batches/client/Client.js +4 -4
  78. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  79. package/dist/api/resources/blocks/client/Client.js +6 -6
  80. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  81. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  82. package/dist/api/resources/folders/client/Client.js +9 -9
  83. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  84. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  85. package/dist/api/resources/groups/client/Client.js +6 -6
  86. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  87. package/dist/api/resources/health/client/Client.js +1 -1
  88. package/dist/api/resources/identities/client/Client.d.ts +6 -0
  89. package/dist/api/resources/identities/client/Client.js +17 -7
  90. package/dist/api/resources/identities/resources/agents/client/Client.d.ts +44 -0
  91. package/dist/api/resources/identities/resources/agents/client/Client.js +119 -0
  92. package/dist/api/resources/identities/resources/agents/client/index.d.ts +1 -0
  93. package/dist/api/resources/identities/resources/agents/client/index.js +2 -0
  94. package/dist/api/resources/identities/resources/agents/index.d.ts +1 -0
  95. package/dist/api/resources/identities/resources/agents/index.js +17 -0
  96. package/dist/api/resources/identities/resources/blocks/client/Client.d.ts +44 -0
  97. package/dist/api/resources/identities/resources/blocks/client/Client.js +119 -0
  98. package/dist/api/resources/identities/resources/blocks/client/index.d.ts +1 -0
  99. package/dist/api/resources/identities/resources/blocks/client/index.js +2 -0
  100. package/dist/api/resources/identities/resources/blocks/index.d.ts +1 -0
  101. package/dist/api/resources/identities/resources/blocks/index.js +17 -0
  102. package/dist/api/resources/identities/resources/index.d.ts +2 -0
  103. package/dist/api/resources/identities/resources/index.js +3 -1
  104. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  105. package/dist/api/resources/jobs/client/Client.js +5 -5
  106. package/dist/api/resources/models/client/Client.js +2 -2
  107. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  108. package/dist/api/resources/projects/client/Client.js +1 -1
  109. package/dist/api/resources/providers/client/Client.js +6 -6
  110. package/dist/api/resources/runs/client/Client.js +5 -5
  111. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  112. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  113. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  114. package/dist/api/resources/sources/client/Client.js +10 -10
  115. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  116. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  117. package/dist/api/resources/steps/client/Client.js +2 -2
  118. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  119. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  120. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  121. package/dist/api/resources/tags/client/Client.js +1 -1
  122. package/dist/api/resources/telemetry/client/Client.js +1 -1
  123. package/dist/api/resources/templates/client/Client.js +9 -9
  124. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  125. package/dist/api/resources/tools/client/Client.js +20 -20
  126. package/dist/api/resources/voice/client/Client.js +1 -1
  127. package/dist/version.d.ts +1 -1
  128. package/dist/version.js +1 -1
  129. package/package.json +1 -1
  130. package/reference.md +100 -0
  131. package/version.d.ts +1 -1
  132. package/version.js +1 -1
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Agents = void 0;
52
+ const environments = __importStar(require("../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../core"));
54
+ const url_join_1 = __importDefault(require("url-join"));
55
+ const errors = __importStar(require("../../../../../../errors/index"));
56
+ class Agents {
57
+ constructor(_options = {}) {
58
+ this._options = _options;
59
+ }
60
+ /**
61
+ * @param {string} identityId
62
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @example
65
+ * await client.identities.agents.list("identity_id")
66
+ */
67
+ list(identityId, requestOptions) {
68
+ return core.HttpResponsePromise.fromPromise(this.__list(identityId, requestOptions));
69
+ }
70
+ __list(identityId, requestOptions) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ var _a, _b, _c;
73
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
74
+ 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)}/agents`),
75
+ method: "GET",
76
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
77
+ ? yield core.Supplier.get(this._options.project)
78
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ contentType: "application/json",
80
+ requestType: "json",
81
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
82
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
+ });
85
+ if (_response.ok) {
86
+ return { data: undefined, rawResponse: _response.rawResponse };
87
+ }
88
+ if (_response.error.reason === "status-code") {
89
+ throw new errors.LettaError({
90
+ statusCode: _response.error.statusCode,
91
+ body: _response.error.body,
92
+ rawResponse: _response.rawResponse,
93
+ });
94
+ }
95
+ switch (_response.error.reason) {
96
+ case "non-json":
97
+ throw new errors.LettaError({
98
+ statusCode: _response.error.statusCode,
99
+ body: _response.error.rawBody,
100
+ rawResponse: _response.rawResponse,
101
+ });
102
+ case "timeout":
103
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/identities/{identity_id}/agents.");
104
+ case "unknown":
105
+ throw new errors.LettaError({
106
+ message: _response.error.errorMessage,
107
+ rawResponse: _response.rawResponse,
108
+ });
109
+ }
110
+ });
111
+ }
112
+ _getCustomAuthorizationHeaders() {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const tokenValue = yield core.Supplier.get(this._options.token);
115
+ return { Authorization: `Bearer ${tokenValue}` };
116
+ });
117
+ }
118
+ }
119
+ exports.Agents = Agents;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,44 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ export declare namespace Blocks {
7
+ interface Options {
8
+ environment?: core.Supplier<environments.LettaEnvironment | string>;
9
+ /** Specify a custom URL to connect the client to. */
10
+ baseUrl?: core.Supplier<string>;
11
+ token?: core.Supplier<string | undefined>;
12
+ /** Override the X-Project header */
13
+ project?: core.Supplier<string | undefined>;
14
+ fetcher?: core.FetchFunction;
15
+ }
16
+ interface RequestOptions {
17
+ /** The maximum time to wait for a response in seconds. */
18
+ timeoutInSeconds?: number;
19
+ /** The number of times to retry the request. Defaults to 2. */
20
+ maxRetries?: number;
21
+ /** A hook to abort the request. */
22
+ abortSignal?: AbortSignal;
23
+ /** Override the X-Project header */
24
+ project?: string | undefined;
25
+ /** Additional headers to include in the request. */
26
+ headers?: Record<string, string>;
27
+ }
28
+ }
29
+ export declare class Blocks {
30
+ protected readonly _options: Blocks.Options;
31
+ constructor(_options?: Blocks.Options);
32
+ /**
33
+ * @param {string} identityId
34
+ * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @example
37
+ * await client.identities.blocks.list("identity_id")
38
+ */
39
+ list(identityId: string, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<void>;
40
+ private __list;
41
+ protected _getCustomAuthorizationHeaders(): Promise<{
42
+ Authorization: string;
43
+ }>;
44
+ }
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Blocks = void 0;
52
+ const environments = __importStar(require("../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../core"));
54
+ const url_join_1 = __importDefault(require("url-join"));
55
+ const errors = __importStar(require("../../../../../../errors/index"));
56
+ class Blocks {
57
+ constructor(_options = {}) {
58
+ this._options = _options;
59
+ }
60
+ /**
61
+ * @param {string} identityId
62
+ * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @example
65
+ * await client.identities.blocks.list("identity_id")
66
+ */
67
+ list(identityId, requestOptions) {
68
+ return core.HttpResponsePromise.fromPromise(this.__list(identityId, requestOptions));
69
+ }
70
+ __list(identityId, requestOptions) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ var _a, _b, _c;
73
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
74
+ 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)}/blocks`),
75
+ method: "GET",
76
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
77
+ ? yield core.Supplier.get(this._options.project)
78
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ contentType: "application/json",
80
+ requestType: "json",
81
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
82
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
+ });
85
+ if (_response.ok) {
86
+ return { data: undefined, rawResponse: _response.rawResponse };
87
+ }
88
+ if (_response.error.reason === "status-code") {
89
+ throw new errors.LettaError({
90
+ statusCode: _response.error.statusCode,
91
+ body: _response.error.body,
92
+ rawResponse: _response.rawResponse,
93
+ });
94
+ }
95
+ switch (_response.error.reason) {
96
+ case "non-json":
97
+ throw new errors.LettaError({
98
+ statusCode: _response.error.statusCode,
99
+ body: _response.error.rawBody,
100
+ rawResponse: _response.rawResponse,
101
+ });
102
+ case "timeout":
103
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/identities/{identity_id}/blocks.");
104
+ case "unknown":
105
+ throw new errors.LettaError({
106
+ message: _response.error.errorMessage,
107
+ rawResponse: _response.rawResponse,
108
+ });
109
+ }
110
+ });
111
+ }
112
+ _getCustomAuthorizationHeaders() {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const tokenValue = yield core.Supplier.get(this._options.token);
115
+ return { Authorization: `Bearer ${tokenValue}` };
116
+ });
117
+ }
118
+ }
119
+ exports.Blocks = Blocks;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -1 +1,3 @@
1
1
  export * as properties from "./properties";
2
+ export * as agents from "./agents";
3
+ export * as blocks from "./blocks";
@@ -33,5 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.properties = void 0;
36
+ exports.blocks = exports.agents = exports.properties = void 0;
37
37
  exports.properties = __importStar(require("./properties"));
38
+ exports.agents = __importStar(require("./agents"));
39
+ exports.blocks = __importStar(require("./blocks"));
@@ -84,7 +84,7 @@ class Properties {
84
84
  method: "PUT",
85
85
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
86
86
  ? yield core.Supplier.get(this._options.project)
87
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.identities.properties.upsert.Request.jsonOrThrow(request, {
@@ -99,7 +99,7 @@ class Jobs {
99
99
  method: "GET",
100
100
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
101
101
  ? yield core.Supplier.get(this._options.project)
102
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
103
103
  contentType: "application/json",
104
104
  queryParameters: _queryParams,
105
105
  requestType: "json",
@@ -193,7 +193,7 @@ class Jobs {
193
193
  method: "GET",
194
194
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
195
195
  ? yield core.Supplier.get(this._options.project)
196
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
196
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
197
197
  contentType: "application/json",
198
198
  queryParameters: _queryParams,
199
199
  requestType: "json",
@@ -270,7 +270,7 @@ class Jobs {
270
270
  method: "GET",
271
271
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
272
272
  ? yield core.Supplier.get(this._options.project)
273
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
273
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
274
274
  contentType: "application/json",
275
275
  requestType: "json",
276
276
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -346,7 +346,7 @@ class Jobs {
346
346
  method: "DELETE",
347
347
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
348
348
  ? yield core.Supplier.get(this._options.project)
349
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
349
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
350
350
  contentType: "application/json",
351
351
  requestType: "json",
352
352
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -425,7 +425,7 @@ class Jobs {
425
425
  method: "PATCH",
426
426
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
427
427
  ? yield core.Supplier.get(this._options.project)
428
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
428
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
429
429
  contentType: "application/json",
430
430
  requestType: "json",
431
431
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -106,7 +106,7 @@ class Models {
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.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
109
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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",
@@ -178,7 +178,7 @@ class Models {
178
178
  method: "GET",
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.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -80,7 +80,7 @@ class Embeddings {
80
80
  method: "GET",
81
81
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
82
82
  ? yield core.Supplier.get(this._options.project)
83
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -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.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
92
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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",
@@ -108,7 +108,7 @@ class Providers {
108
108
  method: "GET",
109
109
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
110
110
  ? yield core.Supplier.get(this._options.project)
111
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
112
112
  contentType: "application/json",
113
113
  queryParameters: _queryParams,
114
114
  requestType: "json",
@@ -189,7 +189,7 @@ class Providers {
189
189
  method: "POST",
190
190
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
191
191
  ? yield core.Supplier.get(this._options.project)
192
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
192
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
193
193
  contentType: "application/json",
194
194
  requestType: "json",
195
195
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -266,7 +266,7 @@ class Providers {
266
266
  method: "GET",
267
267
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
268
268
  ? yield core.Supplier.get(this._options.project)
269
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
269
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
270
270
  contentType: "application/json",
271
271
  requestType: "json",
272
272
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -342,7 +342,7 @@ class Providers {
342
342
  method: "DELETE",
343
343
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
344
344
  ? yield core.Supplier.get(this._options.project)
345
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
345
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
346
346
  contentType: "application/json",
347
347
  requestType: "json",
348
348
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -412,7 +412,7 @@ class Providers {
412
412
  method: "PATCH",
413
413
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
414
414
  ? yield core.Supplier.get(this._options.project)
415
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
415
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
416
416
  contentType: "application/json",
417
417
  requestType: "json",
418
418
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -492,7 +492,7 @@ class Providers {
492
492
  method: "POST",
493
493
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
494
494
  ? yield core.Supplier.get(this._options.project)
495
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
495
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
496
496
  contentType: "application/json",
497
497
  requestType: "json",
498
498
  body: serializers.ProviderCheck.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -121,7 +121,7 @@ class Runs {
121
121
  method: "GET",
122
122
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
123
123
  ? yield core.Supplier.get(this._options.project)
124
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
124
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
125
125
  contentType: "application/json",
126
126
  queryParameters: _queryParams,
127
127
  requestType: "json",
@@ -211,7 +211,7 @@ class Runs {
211
211
  method: "GET",
212
212
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
213
213
  ? yield core.Supplier.get(this._options.project)
214
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
214
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
215
215
  contentType: "application/json",
216
216
  queryParameters: _queryParams,
217
217
  requestType: "json",
@@ -288,7 +288,7 @@ class Runs {
288
288
  method: "GET",
289
289
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
290
290
  ? yield core.Supplier.get(this._options.project)
291
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
291
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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
292
  contentType: "application/json",
293
293
  requestType: "json",
294
294
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -364,7 +364,7 @@ class Runs {
364
364
  method: "DELETE",
365
365
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
366
366
  ? yield core.Supplier.get(this._options.project)
367
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
367
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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),
368
368
  contentType: "application/json",
369
369
  requestType: "json",
370
370
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -429,7 +429,7 @@ class Runs {
429
429
  method: "POST",
430
430
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
431
431
  ? yield core.Supplier.get(this._options.project)
432
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
432
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
433
433
  contentType: "application/json",
434
434
  requestType: "json",
435
435
  body: serializers.RetrieveStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -98,7 +98,7 @@ class Messages {
98
98
  method: "GET",
99
99
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
100
100
  ? yield core.Supplier.get(this._options.project)
101
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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
102
  contentType: "application/json",
103
103
  queryParameters: _queryParams,
104
104
  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.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "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),
109
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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.0.68651", "User-Agent": "@letta-ai/letta-client/0.0.68651", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68653", "User-Agent": "@letta-ai/letta-client/0.0.68653", "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,