@letta-ai/letta-client 0.1.92 → 0.1.94

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 (254) hide show
  1. package/Client.d.ts +6 -0
  2. package/Client.js +16 -6
  3. package/api/resources/agents/client/Client.d.ts +0 -34
  4. package/api/resources/agents/client/Client.js +11 -154
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/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 +5 -5
  10. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  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 +3 -3
  14. package/api/resources/blocks/client/Client.js +6 -6
  15. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  16. package/api/resources/groups/client/Client.js +6 -6
  17. package/api/resources/groups/resources/messages/client/Client.js +4 -4
  18. package/api/resources/health/client/Client.js +1 -1
  19. package/api/resources/identities/client/Client.js +7 -7
  20. package/api/resources/index.d.ts +4 -0
  21. package/api/resources/index.js +5 -1
  22. package/api/resources/jobs/client/Client.js +4 -4
  23. package/api/resources/messages/client/Client.d.ts +46 -0
  24. package/api/resources/messages/client/Client.js +133 -0
  25. package/api/resources/messages/client/index.d.ts +1 -0
  26. package/api/resources/messages/client/index.js +2 -0
  27. package/api/resources/messages/index.d.ts +2 -0
  28. package/api/resources/messages/index.js +18 -0
  29. package/api/resources/messages/resources/batches/client/Client.d.ts +87 -0
  30. package/api/resources/messages/resources/batches/client/Client.js +320 -0
  31. package/api/resources/messages/resources/batches/client/index.d.ts +1 -0
  32. package/api/resources/messages/resources/batches/client/index.js +17 -0
  33. package/api/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +23 -0
  34. package/api/resources/messages/resources/batches/client/requests/index.d.ts +1 -0
  35. package/api/resources/messages/resources/batches/client/requests/index.js +2 -0
  36. package/api/resources/messages/resources/batches/index.d.ts +1 -0
  37. package/api/resources/messages/resources/batches/index.js +17 -0
  38. package/api/resources/messages/resources/index.d.ts +2 -0
  39. package/api/resources/messages/resources/index.js +41 -0
  40. package/api/resources/models/client/Client.js +2 -2
  41. package/api/resources/projects/client/Client.d.ts +42 -0
  42. package/api/resources/projects/client/Client.js +132 -0
  43. package/api/resources/projects/client/index.d.ts +1 -0
  44. package/api/resources/projects/client/index.js +17 -0
  45. package/api/resources/projects/client/requests/ProjectsListProjectsRequest.d.ts +12 -0
  46. package/api/resources/projects/client/requests/index.d.ts +1 -0
  47. package/api/resources/projects/client/requests/index.js +2 -0
  48. package/api/resources/projects/index.d.ts +2 -0
  49. package/api/resources/projects/index.js +18 -0
  50. package/api/resources/projects/types/ProjectsListProjectsResponse.d.ts +8 -0
  51. package/api/resources/projects/types/ProjectsListProjectsResponse.js +5 -0
  52. package/api/resources/projects/types/ProjectsListProjectsResponseProjectsItem.d.ts +8 -0
  53. package/api/resources/projects/types/ProjectsListProjectsResponseProjectsItem.js +5 -0
  54. package/api/resources/projects/types/index.d.ts +2 -0
  55. package/api/resources/projects/types/index.js +18 -0
  56. package/api/resources/providers/client/Client.js +4 -4
  57. package/api/resources/runs/client/Client.js +7 -7
  58. package/api/resources/sources/client/Client.js +6 -6
  59. package/api/resources/sources/resources/files/client/Client.js +3 -3
  60. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  61. package/api/resources/steps/client/Client.js +2 -2
  62. package/api/resources/tag/client/Client.js +1 -1
  63. package/api/resources/templates/client/Client.d.ts +10 -0
  64. package/api/resources/templates/client/Client.js +68 -1
  65. package/api/resources/templates/client/requests/TemplatesListTemplatesRequest.d.ts +13 -0
  66. package/api/resources/templates/client/requests/TemplatesListTemplatesRequest.js +5 -0
  67. package/api/resources/templates/client/requests/index.d.ts +1 -0
  68. package/api/resources/templates/types/TemplatesListTemplatesResponse.d.ts +8 -0
  69. package/api/resources/templates/types/TemplatesListTemplatesResponse.js +5 -0
  70. package/api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +7 -0
  71. package/api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.js +5 -0
  72. package/api/resources/templates/types/index.d.ts +2 -0
  73. package/api/resources/templates/types/index.js +2 -0
  74. package/api/resources/tools/client/Client.js +16 -16
  75. package/api/resources/voice/client/Client.js +1 -1
  76. package/api/types/BatchJob.d.ts +23 -0
  77. package/api/types/BatchJob.js +5 -0
  78. package/api/types/JobType.d.ts +2 -1
  79. package/api/types/JobType.js +1 -0
  80. package/api/types/index.d.ts +1 -1
  81. package/api/types/index.js +1 -1
  82. package/dist/Client.d.ts +6 -0
  83. package/dist/Client.js +16 -6
  84. package/dist/api/resources/agents/client/Client.d.ts +0 -34
  85. package/dist/api/resources/agents/client/Client.js +11 -154
  86. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  87. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  88. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  89. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  90. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  91. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  92. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  93. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  94. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  95. package/dist/api/resources/blocks/client/Client.js +6 -6
  96. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  97. package/dist/api/resources/groups/client/Client.js +6 -6
  98. package/dist/api/resources/groups/resources/messages/client/Client.js +4 -4
  99. package/dist/api/resources/health/client/Client.js +1 -1
  100. package/dist/api/resources/identities/client/Client.js +7 -7
  101. package/dist/api/resources/index.d.ts +4 -0
  102. package/dist/api/resources/index.js +5 -1
  103. package/dist/api/resources/jobs/client/Client.js +4 -4
  104. package/dist/api/resources/messages/client/Client.d.ts +46 -0
  105. package/dist/api/resources/messages/client/Client.js +133 -0
  106. package/dist/api/resources/messages/client/index.d.ts +1 -0
  107. package/dist/api/resources/messages/client/index.js +2 -0
  108. package/dist/api/resources/messages/index.d.ts +2 -0
  109. package/dist/api/resources/messages/index.js +18 -0
  110. package/dist/api/resources/messages/resources/batches/client/Client.d.ts +87 -0
  111. package/dist/api/resources/messages/resources/batches/client/Client.js +320 -0
  112. package/dist/api/resources/messages/resources/batches/client/index.d.ts +1 -0
  113. package/dist/api/resources/messages/resources/batches/client/index.js +17 -0
  114. package/dist/api/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +23 -0
  115. package/dist/api/resources/messages/resources/batches/client/requests/CreateBatch.js +5 -0
  116. package/dist/api/resources/messages/resources/batches/client/requests/index.d.ts +1 -0
  117. package/dist/api/resources/messages/resources/batches/client/requests/index.js +2 -0
  118. package/dist/api/resources/messages/resources/batches/index.d.ts +1 -0
  119. package/dist/api/resources/messages/resources/batches/index.js +17 -0
  120. package/dist/api/resources/messages/resources/index.d.ts +2 -0
  121. package/dist/api/resources/messages/resources/index.js +41 -0
  122. package/dist/api/resources/models/client/Client.js +2 -2
  123. package/dist/api/resources/projects/client/Client.d.ts +42 -0
  124. package/dist/api/resources/projects/client/Client.js +132 -0
  125. package/dist/api/resources/projects/client/index.d.ts +1 -0
  126. package/dist/api/resources/projects/client/index.js +17 -0
  127. package/dist/api/resources/projects/client/requests/ProjectsListProjectsRequest.d.ts +12 -0
  128. package/dist/api/resources/projects/client/requests/ProjectsListProjectsRequest.js +5 -0
  129. package/dist/api/resources/projects/client/requests/index.d.ts +1 -0
  130. package/dist/api/resources/projects/client/requests/index.js +2 -0
  131. package/dist/api/resources/projects/index.d.ts +2 -0
  132. package/dist/api/resources/projects/index.js +18 -0
  133. package/dist/api/resources/projects/types/ProjectsListProjectsResponse.d.ts +8 -0
  134. package/dist/api/resources/projects/types/ProjectsListProjectsResponse.js +5 -0
  135. package/dist/api/resources/projects/types/ProjectsListProjectsResponseProjectsItem.d.ts +8 -0
  136. package/dist/api/resources/projects/types/ProjectsListProjectsResponseProjectsItem.js +5 -0
  137. package/dist/api/resources/projects/types/index.d.ts +2 -0
  138. package/dist/api/resources/projects/types/index.js +18 -0
  139. package/dist/api/resources/providers/client/Client.js +4 -4
  140. package/dist/api/resources/runs/client/Client.js +7 -7
  141. package/dist/api/resources/sources/client/Client.js +6 -6
  142. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  143. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  144. package/dist/api/resources/steps/client/Client.js +2 -2
  145. package/dist/api/resources/tag/client/Client.js +1 -1
  146. package/dist/api/resources/templates/client/Client.d.ts +10 -0
  147. package/dist/api/resources/templates/client/Client.js +68 -1
  148. package/dist/api/resources/templates/client/requests/TemplatesListTemplatesRequest.d.ts +13 -0
  149. package/dist/api/resources/templates/client/requests/TemplatesListTemplatesRequest.js +5 -0
  150. package/dist/api/resources/templates/client/requests/index.d.ts +1 -0
  151. package/dist/api/resources/templates/types/TemplatesListTemplatesResponse.d.ts +8 -0
  152. package/dist/api/resources/templates/types/TemplatesListTemplatesResponse.js +5 -0
  153. package/dist/api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +7 -0
  154. package/dist/api/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.js +5 -0
  155. package/dist/api/resources/templates/types/index.d.ts +2 -0
  156. package/dist/api/resources/templates/types/index.js +2 -0
  157. package/dist/api/resources/tools/client/Client.js +16 -16
  158. package/dist/api/resources/voice/client/Client.js +1 -1
  159. package/dist/api/types/BatchJob.d.ts +23 -0
  160. package/dist/api/types/BatchJob.js +5 -0
  161. package/dist/api/types/JobType.d.ts +2 -1
  162. package/dist/api/types/JobType.js +1 -0
  163. package/dist/api/types/index.d.ts +1 -1
  164. package/dist/api/types/index.js +1 -1
  165. package/dist/serialization/resources/agents/client/index.d.ts +0 -1
  166. package/dist/serialization/resources/agents/client/index.js +1 -2
  167. package/dist/serialization/resources/index.d.ts +3 -0
  168. package/dist/serialization/resources/index.js +4 -1
  169. package/dist/serialization/resources/messages/index.d.ts +1 -0
  170. package/dist/serialization/resources/messages/index.js +17 -0
  171. package/dist/serialization/resources/messages/resources/batches/client/index.d.ts +2 -0
  172. package/dist/serialization/resources/messages/resources/batches/client/index.js +41 -0
  173. package/dist/serialization/resources/messages/resources/batches/client/list.d.ts +11 -0
  174. package/dist/serialization/resources/messages/resources/batches/client/list.js +42 -0
  175. package/dist/serialization/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +13 -0
  176. package/dist/serialization/{types/LettaBatchResponse.js → resources/messages/resources/batches/client/requests/CreateBatch.js} +5 -9
  177. package/dist/serialization/resources/messages/resources/batches/client/requests/index.d.ts +1 -0
  178. package/dist/serialization/resources/messages/resources/batches/client/requests/index.js +5 -0
  179. package/dist/serialization/resources/messages/resources/batches/index.d.ts +1 -0
  180. package/dist/serialization/resources/messages/resources/batches/index.js +17 -0
  181. package/dist/serialization/resources/messages/resources/index.d.ts +2 -0
  182. package/dist/serialization/resources/messages/resources/index.js +41 -0
  183. package/dist/serialization/resources/projects/index.d.ts +1 -0
  184. package/dist/serialization/resources/projects/index.js +17 -0
  185. package/dist/serialization/resources/projects/types/ProjectsListProjectsResponse.d.ts +14 -0
  186. package/{serialization/types/LettaBatchResponse.js → dist/serialization/resources/projects/types/ProjectsListProjectsResponse.js} +6 -9
  187. package/dist/serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.d.ts +14 -0
  188. package/dist/serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.js +45 -0
  189. package/dist/serialization/resources/projects/types/index.d.ts +2 -0
  190. package/dist/serialization/resources/projects/types/index.js +18 -0
  191. package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponse.d.ts +14 -0
  192. package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponse.js +45 -0
  193. package/dist/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +13 -0
  194. package/dist/serialization/resources/{agents/client/createBatchMessageRequest.js → templates/types/TemplatesListTemplatesResponseTemplatesItem.js} +5 -3
  195. package/dist/serialization/resources/templates/types/index.d.ts +2 -0
  196. package/dist/serialization/resources/templates/types/index.js +2 -0
  197. package/dist/serialization/types/BatchJob.d.ts +22 -0
  198. package/dist/serialization/types/BatchJob.js +53 -0
  199. package/dist/serialization/types/JobType.d.ts +1 -1
  200. package/dist/serialization/types/JobType.js +1 -0
  201. package/dist/serialization/types/index.d.ts +1 -1
  202. package/dist/serialization/types/index.js +1 -1
  203. package/dist/version.d.ts +1 -1
  204. package/dist/version.js +1 -1
  205. package/package.json +1 -1
  206. package/reference.md +449 -149
  207. package/serialization/resources/agents/client/index.d.ts +0 -1
  208. package/serialization/resources/agents/client/index.js +1 -2
  209. package/serialization/resources/index.d.ts +3 -0
  210. package/serialization/resources/index.js +4 -1
  211. package/serialization/resources/messages/index.d.ts +1 -0
  212. package/serialization/resources/messages/index.js +17 -0
  213. package/serialization/resources/messages/resources/batches/client/index.d.ts +2 -0
  214. package/serialization/resources/messages/resources/batches/client/index.js +41 -0
  215. package/serialization/resources/messages/resources/batches/client/list.d.ts +11 -0
  216. package/serialization/resources/messages/resources/batches/client/list.js +42 -0
  217. package/serialization/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +13 -0
  218. package/serialization/resources/messages/resources/batches/client/requests/CreateBatch.js +44 -0
  219. package/serialization/resources/messages/resources/batches/client/requests/index.d.ts +1 -0
  220. package/serialization/resources/messages/resources/batches/client/requests/index.js +5 -0
  221. package/serialization/resources/messages/resources/batches/index.d.ts +1 -0
  222. package/serialization/resources/messages/resources/batches/index.js +17 -0
  223. package/serialization/resources/messages/resources/index.d.ts +2 -0
  224. package/serialization/resources/messages/resources/index.js +41 -0
  225. package/serialization/resources/projects/index.d.ts +1 -0
  226. package/serialization/resources/projects/index.js +17 -0
  227. package/serialization/resources/projects/types/ProjectsListProjectsResponse.d.ts +14 -0
  228. package/serialization/resources/projects/types/ProjectsListProjectsResponse.js +45 -0
  229. package/serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.d.ts +14 -0
  230. package/serialization/resources/projects/types/ProjectsListProjectsResponseProjectsItem.js +45 -0
  231. package/serialization/resources/projects/types/index.d.ts +2 -0
  232. package/serialization/resources/projects/types/index.js +18 -0
  233. package/serialization/resources/templates/types/TemplatesListTemplatesResponse.d.ts +14 -0
  234. package/serialization/resources/templates/types/TemplatesListTemplatesResponse.js +45 -0
  235. package/serialization/resources/templates/types/TemplatesListTemplatesResponseTemplatesItem.d.ts +13 -0
  236. package/serialization/resources/{agents/client/createBatchMessageRequest.js → templates/types/TemplatesListTemplatesResponseTemplatesItem.js} +5 -3
  237. package/serialization/resources/templates/types/index.d.ts +2 -0
  238. package/serialization/resources/templates/types/index.js +2 -0
  239. package/serialization/types/BatchJob.d.ts +22 -0
  240. package/serialization/types/BatchJob.js +53 -0
  241. package/serialization/types/JobType.d.ts +1 -1
  242. package/serialization/types/JobType.js +1 -0
  243. package/serialization/types/index.d.ts +1 -1
  244. package/serialization/types/index.js +1 -1
  245. package/version.d.ts +1 -1
  246. package/version.js +1 -1
  247. package/api/types/LettaBatchResponse.d.ts +0 -16
  248. package/dist/api/types/LettaBatchResponse.d.ts +0 -16
  249. package/dist/serialization/resources/agents/client/createBatchMessageRequest.d.ts +0 -11
  250. package/dist/serialization/types/LettaBatchResponse.d.ts +0 -17
  251. package/serialization/resources/agents/client/createBatchMessageRequest.d.ts +0 -11
  252. package/serialization/types/LettaBatchResponse.d.ts +0 -17
  253. /package/api/{types/LettaBatchResponse.js → resources/messages/resources/batches/client/requests/CreateBatch.js} +0 -0
  254. /package/{dist/api/types/LettaBatchResponse.js → api/resources/projects/client/requests/ProjectsListProjectsRequest.js} +0 -0
@@ -0,0 +1,41 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.batches = void 0;
40
+ exports.batches = __importStar(require("./batches"));
41
+ __exportStar(require("./batches/client/requests"), exports);
@@ -70,7 +70,7 @@ class Models {
70
70
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
71
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/models/"),
72
72
  method: "GET",
73
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
73
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "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),
74
74
  contentType: "application/json",
75
75
  requestType: "json",
76
76
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -119,7 +119,7 @@ class Models {
119
119
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
120
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/models/embedding"),
121
121
  method: "GET",
122
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
122
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "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),
123
123
  contentType: "application/json",
124
124
  requestType: "json",
125
125
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,42 @@
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
+ import * as Letta from "../../../index";
7
+ export declare namespace Projects {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.LettaEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<string | undefined>;
13
+ fetcher?: core.FetchFunction;
14
+ }
15
+ interface RequestOptions {
16
+ /** The maximum time to wait for a response in seconds. */
17
+ timeoutInSeconds?: number;
18
+ /** The number of times to retry the request. Defaults to 2. */
19
+ maxRetries?: number;
20
+ /** A hook to abort the request. */
21
+ abortSignal?: AbortSignal;
22
+ /** Additional headers to include in the request. */
23
+ headers?: Record<string, string>;
24
+ }
25
+ }
26
+ export declare class Projects {
27
+ protected readonly _options: Projects.Options;
28
+ constructor(_options?: Projects.Options);
29
+ /**
30
+ * List all projects
31
+ *
32
+ * @param {Letta.ProjectsListProjectsRequest} request
33
+ * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
34
+ *
35
+ * @example
36
+ * await client.projects.listprojects()
37
+ */
38
+ listprojects(request?: Letta.ProjectsListProjectsRequest, requestOptions?: Projects.RequestOptions): Promise<Letta.ProjectsListProjectsResponse>;
39
+ protected _getCustomAuthorizationHeaders(): Promise<{
40
+ Authorization: string;
41
+ }>;
42
+ }
@@ -0,0 +1,132 @@
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.Projects = 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 serializers = __importStar(require("../../../../serialization/index"));
56
+ const errors = __importStar(require("../../../../errors/index"));
57
+ class Projects {
58
+ constructor(_options = {}) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * List all projects
63
+ *
64
+ * @param {Letta.ProjectsListProjectsRequest} request
65
+ * @param {Projects.RequestOptions} requestOptions - Request-specific configuration.
66
+ *
67
+ * @example
68
+ * await client.projects.listprojects()
69
+ */
70
+ listprojects() {
71
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
72
+ var _a, _b, _c;
73
+ const { name, offset, limit } = request;
74
+ const _queryParams = {};
75
+ if (name != null) {
76
+ _queryParams["name"] = name;
77
+ }
78
+ if (offset != null) {
79
+ _queryParams["offset"] = offset.toString();
80
+ }
81
+ if (limit != null) {
82
+ _queryParams["limit"] = limit.toString();
83
+ }
84
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/projects"),
86
+ method: "GET",
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "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
+ contentType: "application/json",
89
+ queryParameters: _queryParams,
90
+ requestType: "json",
91
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
92
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
93
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
94
+ });
95
+ if (_response.ok) {
96
+ return serializers.ProjectsListProjectsResponse.parseOrThrow(_response.body, {
97
+ unrecognizedObjectKeys: "passthrough",
98
+ allowUnrecognizedUnionMembers: true,
99
+ allowUnrecognizedEnumValues: true,
100
+ skipValidation: true,
101
+ breadcrumbsPrefix: ["response"],
102
+ });
103
+ }
104
+ if (_response.error.reason === "status-code") {
105
+ throw new errors.LettaError({
106
+ statusCode: _response.error.statusCode,
107
+ body: _response.error.body,
108
+ });
109
+ }
110
+ switch (_response.error.reason) {
111
+ case "non-json":
112
+ throw new errors.LettaError({
113
+ statusCode: _response.error.statusCode,
114
+ body: _response.error.rawBody,
115
+ });
116
+ case "timeout":
117
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/projects.");
118
+ case "unknown":
119
+ throw new errors.LettaError({
120
+ message: _response.error.errorMessage,
121
+ });
122
+ }
123
+ });
124
+ }
125
+ _getCustomAuthorizationHeaders() {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ const tokenValue = yield core.Supplier.get(this._options.token);
128
+ return { Authorization: `Bearer ${tokenValue}` };
129
+ });
130
+ }
131
+ }
132
+ exports.Projects = Projects;
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -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("./requests"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ProjectsListProjectsRequest {
9
+ name?: string;
10
+ offset?: number;
11
+ limit?: number;
12
+ }
@@ -0,0 +1 @@
1
+ export { type ProjectsListProjectsRequest } from "./ProjectsListProjectsRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./types";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
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("./types"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export interface ProjectsListProjectsResponse {
6
+ projects: Letta.ProjectsListProjectsResponseProjectsItem[];
7
+ hasNextPage: boolean;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ProjectsListProjectsResponseProjectsItem {
5
+ name: string;
6
+ slug: string;
7
+ id: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./ProjectsListProjectsResponseProjectsItem";
2
+ export * from "./ProjectsListProjectsResponse";
@@ -0,0 +1,18 @@
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("./ProjectsListProjectsResponseProjectsItem"), exports);
18
+ __exportStar(require("./ProjectsListProjectsResponse"), exports);
@@ -84,7 +84,7 @@ class Providers {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
86
86
  method: "GET",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "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
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -153,7 +153,7 @@ class Providers {
153
153
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
154
154
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
155
155
  method: "POST",
156
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
156
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "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),
157
157
  contentType: "application/json",
158
158
  requestType: "json",
159
159
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -224,7 +224,7 @@ class Providers {
224
224
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
225
225
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
226
226
  method: "DELETE",
227
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
227
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "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),
228
228
  contentType: "application/json",
229
229
  queryParameters: _queryParams,
230
230
  requestType: "json",
@@ -287,7 +287,7 @@ class Providers {
287
287
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
288
288
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
289
289
  method: "PATCH",
290
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
290
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "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
291
  contentType: "application/json",
292
292
  requestType: "json",
293
293
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -86,7 +86,7 @@ class Runs {
86
86
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
87
87
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/runs/"),
88
88
  method: "GET",
89
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
89
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
90
  contentType: "application/json",
91
91
  queryParameters: _queryParams,
92
92
  requestType: "json",
@@ -162,7 +162,7 @@ class Runs {
162
162
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
163
163
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/runs/active"),
164
164
  method: "GET",
165
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
165
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "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),
166
166
  contentType: "application/json",
167
167
  queryParameters: _queryParams,
168
168
  requestType: "json",
@@ -228,7 +228,7 @@ class Runs {
228
228
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
229
229
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}`),
230
230
  method: "GET",
231
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
231
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "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),
232
232
  contentType: "application/json",
233
233
  requestType: "json",
234
234
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -293,7 +293,7 @@ class Runs {
293
293
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
294
294
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}`),
295
295
  method: "DELETE",
296
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
296
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "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,
@@ -389,7 +389,7 @@ class Runs {
389
389
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
390
390
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}/messages`),
391
391
  method: "GET",
392
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
392
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "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),
393
393
  contentType: "application/json",
394
394
  queryParameters: _queryParams,
395
395
  requestType: "json",
@@ -455,7 +455,7 @@ class Runs {
455
455
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
456
456
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}/usage`),
457
457
  method: "GET",
458
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
459
459
  contentType: "application/json",
460
460
  requestType: "json",
461
461
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -545,7 +545,7 @@ class Runs {
545
545
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
546
546
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/runs/${encodeURIComponent(runId)}/steps`),
547
547
  method: "GET",
548
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
548
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "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),
549
549
  contentType: "application/json",
550
550
  queryParameters: _queryParams,
551
551
  requestType: "json",
@@ -86,7 +86,7 @@ class Sources {
86
86
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
87
87
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
88
88
  method: "GET",
89
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
89
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
90
  contentType: "application/json",
91
91
  requestType: "json",
92
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -151,7 +151,7 @@ class Sources {
151
151
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
152
152
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
153
153
  method: "DELETE",
154
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
154
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
155
155
  contentType: "application/json",
156
156
  requestType: "json",
157
157
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Sources {
211
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
212
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
213
213
  method: "PATCH",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
215
215
  contentType: "application/json",
216
216
  requestType: "json",
217
217
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -277,7 +277,7 @@ class Sources {
277
277
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
278
278
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/name/${encodeURIComponent(sourceName)}`),
279
279
  method: "GET",
280
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
281
281
  contentType: "application/json",
282
282
  requestType: "json",
283
283
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -341,7 +341,7 @@ class Sources {
341
341
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
342
342
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
343
343
  method: "GET",
344
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
344
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
345
345
  contentType: "application/json",
346
346
  requestType: "json",
347
347
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -408,7 +408,7 @@ class Sources {
408
408
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
409
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
410
410
  method: "POST",
411
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
411
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
412
412
  contentType: "application/json",
413
413
  requestType: "json",
414
414
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -80,7 +80,7 @@ class Files {
80
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
81
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/upload`),
82
82
  method: "POST",
83
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
83
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
84
  requestType: "file",
85
85
  duplex: _maybeEncodedRequest.duplex,
86
86
  body: _maybeEncodedRequest.body,
@@ -155,7 +155,7 @@ class Files {
155
155
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
156
156
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/files`),
157
157
  method: "GET",
158
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
158
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
159
159
  contentType: "application/json",
160
160
  queryParameters: _queryParams,
161
161
  requestType: "json",
@@ -222,7 +222,7 @@ class Files {
222
222
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
223
223
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
224
224
  method: "DELETE",
225
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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),
225
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
226
226
  contentType: "application/json",
227
227
  requestType: "json",
228
228
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -76,7 +76,7 @@ class Passages {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/passages`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.92", "User-Agent": "@letta-ai/letta-client/0.1.92", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.94", "User-Agent": "@letta-ai/letta-client/0.1.94", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,