@letta-ai/letta-client 0.1.147 → 0.1.149

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 (188) hide show
  1. package/api/resources/agents/client/Client.js +11 -11
  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/groups/client/Client.js +1 -1
  6. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  7. package/api/resources/agents/resources/messages/client/Client.d.ts +18 -0
  8. package/api/resources/agents/resources/messages/client/Client.js +84 -6
  9. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  10. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  11. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  12. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  13. package/api/resources/batches/client/Client.js +4 -4
  14. package/api/resources/blocks/client/Client.js +6 -6
  15. package/api/resources/blocks/resources/agents/client/Client.d.ts +2 -1
  16. package/api/resources/blocks/resources/agents/client/Client.js +15 -3
  17. package/api/resources/blocks/resources/agents/client/index.d.ts +1 -1
  18. package/api/resources/blocks/resources/agents/client/index.js +15 -0
  19. package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +13 -0
  20. package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.js +5 -0
  21. package/api/resources/blocks/resources/agents/client/requests/index.d.ts +1 -0
  22. package/api/resources/blocks/resources/agents/client/requests/index.js +2 -0
  23. package/api/resources/blocks/resources/index.d.ts +1 -0
  24. package/api/resources/blocks/resources/index.js +4 -0
  25. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  26. package/api/resources/embeddingModels/client/Client.js +1 -1
  27. package/api/resources/groups/client/Client.js +6 -6
  28. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  29. package/api/resources/health/client/Client.js +1 -1
  30. package/api/resources/identities/client/Client.js +7 -7
  31. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  32. package/api/resources/jobs/client/Client.d.ts +16 -0
  33. package/api/resources/jobs/client/Client.js +101 -6
  34. package/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +16 -0
  35. package/api/resources/jobs/client/requests/JobsListRequest.d.ts +16 -0
  36. package/api/resources/messages/client/Client.js +1 -1
  37. package/api/resources/models/client/Client.js +1 -1
  38. package/api/resources/projects/client/Client.js +1 -1
  39. package/api/resources/providers/client/Client.js +5 -5
  40. package/api/resources/runs/client/Client.js +4 -4
  41. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  42. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  43. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  44. package/api/resources/sources/client/Client.d.ts +17 -0
  45. package/api/resources/sources/client/Client.js +80 -8
  46. package/api/resources/sources/resources/files/client/Client.js +3 -3
  47. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  48. package/api/resources/steps/client/Client.js +2 -2
  49. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  50. package/api/resources/tags/client/Client.js +1 -1
  51. package/api/resources/telemetry/client/Client.js +1 -1
  52. package/api/resources/templates/client/Client.js +1 -1
  53. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  54. package/api/resources/tools/client/Client.js +19 -19
  55. package/api/resources/voice/client/Client.js +1 -1
  56. package/api/types/FileMetadata.d.ts +4 -0
  57. package/api/types/FileStats.d.ts +14 -0
  58. package/api/types/FileStats.js +5 -0
  59. package/api/types/LlmConfig.d.ts +2 -0
  60. package/api/types/OrganizationSourcesStats.d.ts +17 -0
  61. package/api/types/OrganizationSourcesStats.js +5 -0
  62. package/api/types/SourceStats.d.ts +19 -0
  63. package/api/types/SourceStats.js +5 -0
  64. package/api/types/StopReasonType.d.ts +2 -1
  65. package/api/types/StopReasonType.js +1 -0
  66. package/api/types/UpdateSsemcpServer.d.ts +2 -0
  67. package/api/types/UpdateStreamableHttpmcpServer.d.ts +2 -0
  68. package/api/types/index.d.ts +3 -0
  69. package/api/types/index.js +3 -0
  70. package/dist/api/resources/agents/client/Client.js +11 -11
  71. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  72. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  73. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  74. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  75. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  76. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +18 -0
  77. package/dist/api/resources/agents/resources/messages/client/Client.js +84 -6
  78. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  79. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  80. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  81. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  82. package/dist/api/resources/batches/client/Client.js +4 -4
  83. package/dist/api/resources/blocks/client/Client.js +6 -6
  84. package/dist/api/resources/blocks/resources/agents/client/Client.d.ts +2 -1
  85. package/dist/api/resources/blocks/resources/agents/client/Client.js +15 -3
  86. package/dist/api/resources/blocks/resources/agents/client/index.d.ts +1 -1
  87. package/dist/api/resources/blocks/resources/agents/client/index.js +15 -0
  88. package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +13 -0
  89. package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.js +5 -0
  90. package/dist/api/resources/blocks/resources/agents/client/requests/index.d.ts +1 -0
  91. package/dist/api/resources/blocks/resources/agents/client/requests/index.js +2 -0
  92. package/dist/api/resources/blocks/resources/index.d.ts +1 -0
  93. package/dist/api/resources/blocks/resources/index.js +4 -0
  94. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  95. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  96. package/dist/api/resources/groups/client/Client.js +6 -6
  97. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  98. package/dist/api/resources/health/client/Client.js +1 -1
  99. package/dist/api/resources/identities/client/Client.js +7 -7
  100. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  101. package/dist/api/resources/jobs/client/Client.d.ts +16 -0
  102. package/dist/api/resources/jobs/client/Client.js +101 -6
  103. package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +16 -0
  104. package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +16 -0
  105. package/dist/api/resources/messages/client/Client.js +1 -1
  106. package/dist/api/resources/models/client/Client.js +1 -1
  107. package/dist/api/resources/projects/client/Client.js +1 -1
  108. package/dist/api/resources/providers/client/Client.js +5 -5
  109. package/dist/api/resources/runs/client/Client.js +4 -4
  110. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  111. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  112. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  113. package/dist/api/resources/sources/client/Client.d.ts +17 -0
  114. package/dist/api/resources/sources/client/Client.js +80 -8
  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/tags/client/Client.js +1 -1
  120. package/dist/api/resources/telemetry/client/Client.js +1 -1
  121. package/dist/api/resources/templates/client/Client.js +1 -1
  122. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  123. package/dist/api/resources/tools/client/Client.js +19 -19
  124. package/dist/api/resources/voice/client/Client.js +1 -1
  125. package/dist/api/types/FileMetadata.d.ts +4 -0
  126. package/dist/api/types/FileStats.d.ts +14 -0
  127. package/dist/api/types/FileStats.js +5 -0
  128. package/dist/api/types/LlmConfig.d.ts +2 -0
  129. package/dist/api/types/OrganizationSourcesStats.d.ts +17 -0
  130. package/dist/api/types/OrganizationSourcesStats.js +5 -0
  131. package/dist/api/types/SourceStats.d.ts +19 -0
  132. package/dist/api/types/SourceStats.js +5 -0
  133. package/dist/api/types/StopReasonType.d.ts +2 -1
  134. package/dist/api/types/StopReasonType.js +1 -0
  135. package/dist/api/types/UpdateSsemcpServer.d.ts +2 -0
  136. package/dist/api/types/UpdateStreamableHttpmcpServer.d.ts +2 -0
  137. package/dist/api/types/index.d.ts +3 -0
  138. package/dist/api/types/index.js +3 -0
  139. package/dist/serialization/resources/agents/resources/messages/client/cancel.d.ts +13 -0
  140. package/dist/serialization/resources/agents/resources/messages/client/cancel.js +42 -0
  141. package/dist/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
  142. package/dist/serialization/resources/agents/resources/messages/client/index.js +2 -1
  143. package/dist/serialization/types/FileMetadata.d.ts +2 -0
  144. package/dist/serialization/types/FileMetadata.js +2 -0
  145. package/dist/serialization/types/FileStats.d.ts +14 -0
  146. package/dist/serialization/types/FileStats.js +45 -0
  147. package/dist/serialization/types/LlmConfig.d.ts +1 -0
  148. package/dist/serialization/types/LlmConfig.js +1 -0
  149. package/dist/serialization/types/OrganizationSourcesStats.d.ts +16 -0
  150. package/dist/serialization/types/OrganizationSourcesStats.js +47 -0
  151. package/dist/serialization/types/SourceStats.d.ts +17 -0
  152. package/dist/serialization/types/SourceStats.js +48 -0
  153. package/dist/serialization/types/StopReasonType.d.ts +1 -1
  154. package/dist/serialization/types/StopReasonType.js +9 -1
  155. package/dist/serialization/types/UpdateSsemcpServer.d.ts +1 -0
  156. package/dist/serialization/types/UpdateSsemcpServer.js +1 -0
  157. package/dist/serialization/types/UpdateStreamableHttpmcpServer.d.ts +1 -0
  158. package/dist/serialization/types/UpdateStreamableHttpmcpServer.js +1 -0
  159. package/dist/serialization/types/index.d.ts +3 -0
  160. package/dist/serialization/types/index.js +3 -0
  161. package/dist/version.d.ts +1 -1
  162. package/dist/version.js +1 -1
  163. package/package.json +1 -1
  164. package/reference.md +213 -1
  165. package/serialization/resources/agents/resources/messages/client/cancel.d.ts +13 -0
  166. package/serialization/resources/agents/resources/messages/client/cancel.js +42 -0
  167. package/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
  168. package/serialization/resources/agents/resources/messages/client/index.js +2 -1
  169. package/serialization/types/FileMetadata.d.ts +2 -0
  170. package/serialization/types/FileMetadata.js +2 -0
  171. package/serialization/types/FileStats.d.ts +14 -0
  172. package/serialization/types/FileStats.js +45 -0
  173. package/serialization/types/LlmConfig.d.ts +1 -0
  174. package/serialization/types/LlmConfig.js +1 -0
  175. package/serialization/types/OrganizationSourcesStats.d.ts +16 -0
  176. package/serialization/types/OrganizationSourcesStats.js +47 -0
  177. package/serialization/types/SourceStats.d.ts +17 -0
  178. package/serialization/types/SourceStats.js +48 -0
  179. package/serialization/types/StopReasonType.d.ts +1 -1
  180. package/serialization/types/StopReasonType.js +9 -1
  181. package/serialization/types/UpdateSsemcpServer.d.ts +1 -0
  182. package/serialization/types/UpdateSsemcpServer.js +1 -0
  183. package/serialization/types/UpdateStreamableHttpmcpServer.d.ts +1 -0
  184. package/serialization/types/UpdateStreamableHttpmcpServer.js +1 -0
  185. package/serialization/types/index.d.ts +3 -0
  186. package/serialization/types/index.js +3 -0
  187. package/version.d.ts +1 -1
  188. package/version.js +1 -1
@@ -92,7 +92,7 @@ class Providers {
92
92
  method: "GET",
93
93
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
94
94
  ? yield core.Supplier.get(this._options.project)
95
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
95
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -164,7 +164,7 @@ class Providers {
164
164
  method: "POST",
165
165
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
166
166
  ? yield core.Supplier.get(this._options.project)
167
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
167
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -232,7 +232,7 @@ class Providers {
232
232
  method: "DELETE",
233
233
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
234
234
  ? yield core.Supplier.get(this._options.project)
235
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
235
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
236
236
  contentType: "application/json",
237
237
  requestType: "json",
238
238
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -296,7 +296,7 @@ class Providers {
296
296
  method: "PATCH",
297
297
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
298
298
  ? yield core.Supplier.get(this._options.project)
299
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
299
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
300
300
  contentType: "application/json",
301
301
  requestType: "json",
302
302
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -361,7 +361,7 @@ class Providers {
361
361
  method: "GET",
362
362
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
363
363
  ? yield core.Supplier.get(this._options.project)
364
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
364
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
365
365
  contentType: "application/json",
366
366
  requestType: "json",
367
367
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -103,7 +103,7 @@ class Runs {
103
103
  method: "GET",
104
104
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
105
105
  ? yield core.Supplier.get(this._options.project)
106
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
106
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -181,7 +181,7 @@ class Runs {
181
181
  method: "GET",
182
182
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
183
183
  ? yield core.Supplier.get(this._options.project)
184
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
184
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
185
185
  contentType: "application/json",
186
186
  queryParameters: _queryParams,
187
187
  requestType: "json",
@@ -249,7 +249,7 @@ class Runs {
249
249
  method: "GET",
250
250
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
251
251
  ? yield core.Supplier.get(this._options.project)
252
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
252
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
253
253
  contentType: "application/json",
254
254
  requestType: "json",
255
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -316,7 +316,7 @@ class Runs {
316
316
  method: "DELETE",
317
317
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
318
318
  ? yield core.Supplier.get(this._options.project)
319
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
319
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
320
320
  contentType: "application/json",
321
321
  requestType: "json",
322
322
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -109,7 +109,7 @@ class Messages {
109
109
  method: "GET",
110
110
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
111
111
  ? yield core.Supplier.get(this._options.project)
112
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
113
113
  contentType: "application/json",
114
114
  queryParameters: _queryParams,
115
115
  requestType: "json",
@@ -103,7 +103,7 @@ class Steps {
103
103
  method: "GET",
104
104
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
105
105
  ? yield core.Supplier.get(this._options.project)
106
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
106
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -78,7 +78,7 @@ class Usage {
78
78
  method: "GET",
79
79
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
80
80
  ? yield core.Supplier.get(this._options.project)
81
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
81
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -96,6 +96,23 @@ export declare class Sources {
96
96
  * await client.sources.retrieveByName("source_name")
97
97
  */
98
98
  retrieveByName(sourceName: string, requestOptions?: Sources.RequestOptions): Promise<string>;
99
+ /**
100
+ * Get aggregated metadata for all sources in an organization.
101
+ *
102
+ * Returns structured metadata including:
103
+ * - Total number of sources
104
+ * - Total number of files across all sources
105
+ * - Total size of all files
106
+ * - Per-source breakdown with file details (file_name, file_size per file)
107
+ *
108
+ * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
109
+ *
110
+ * @throws {@link Letta.UnprocessableEntityError}
111
+ *
112
+ * @example
113
+ * await client.sources.getSourcesMetadata()
114
+ */
115
+ getSourcesMetadata(requestOptions?: Sources.RequestOptions): Promise<Letta.OrganizationSourcesStats>;
99
116
  /**
100
117
  * List all data sources created by a user.
101
118
  *
@@ -87,7 +87,7 @@ class Sources {
87
87
  method: "GET",
88
88
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
89
89
  ? yield core.Supplier.get(this._options.project)
90
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
91
  contentType: "application/json",
92
92
  requestType: "json",
93
93
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -154,7 +154,7 @@ class Sources {
154
154
  method: "GET",
155
155
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
156
156
  ? yield core.Supplier.get(this._options.project)
157
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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
158
  contentType: "application/json",
159
159
  requestType: "json",
160
160
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -221,7 +221,7 @@ class Sources {
221
221
  method: "DELETE",
222
222
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
223
223
  ? yield core.Supplier.get(this._options.project)
224
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
224
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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
225
  contentType: "application/json",
226
226
  requestType: "json",
227
227
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -283,7 +283,7 @@ class Sources {
283
283
  method: "PATCH",
284
284
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
285
285
  ? yield core.Supplier.get(this._options.project)
286
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
286
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
287
287
  contentType: "application/json",
288
288
  requestType: "json",
289
289
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -351,7 +351,7 @@ class Sources {
351
351
  method: "GET",
352
352
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
353
353
  ? yield core.Supplier.get(this._options.project)
354
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
354
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
355
355
  contentType: "application/json",
356
356
  requestType: "json",
357
357
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -399,6 +399,78 @@ class Sources {
399
399
  }
400
400
  });
401
401
  }
402
+ /**
403
+ * Get aggregated metadata for all sources in an organization.
404
+ *
405
+ * Returns structured metadata including:
406
+ * - Total number of sources
407
+ * - Total number of files across all sources
408
+ * - Total size of all files
409
+ * - Per-source breakdown with file details (file_name, file_size per file)
410
+ *
411
+ * @param {Sources.RequestOptions} requestOptions - Request-specific configuration.
412
+ *
413
+ * @throws {@link Letta.UnprocessableEntityError}
414
+ *
415
+ * @example
416
+ * await client.sources.getSourcesMetadata()
417
+ */
418
+ getSourcesMetadata(requestOptions) {
419
+ return __awaiter(this, void 0, void 0, function* () {
420
+ var _a, _b, _c;
421
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
422
+ 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/metadata"),
423
+ method: "GET",
424
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
425
+ ? yield core.Supplier.get(this._options.project)
426
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
427
+ contentType: "application/json",
428
+ requestType: "json",
429
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
430
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
431
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
432
+ });
433
+ if (_response.ok) {
434
+ return serializers.OrganizationSourcesStats.parseOrThrow(_response.body, {
435
+ unrecognizedObjectKeys: "passthrough",
436
+ allowUnrecognizedUnionMembers: true,
437
+ allowUnrecognizedEnumValues: true,
438
+ skipValidation: true,
439
+ breadcrumbsPrefix: ["response"],
440
+ });
441
+ }
442
+ if (_response.error.reason === "status-code") {
443
+ switch (_response.error.statusCode) {
444
+ case 422:
445
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
446
+ unrecognizedObjectKeys: "passthrough",
447
+ allowUnrecognizedUnionMembers: true,
448
+ allowUnrecognizedEnumValues: true,
449
+ skipValidation: true,
450
+ breadcrumbsPrefix: ["response"],
451
+ }));
452
+ default:
453
+ throw new errors.LettaError({
454
+ statusCode: _response.error.statusCode,
455
+ body: _response.error.body,
456
+ });
457
+ }
458
+ }
459
+ switch (_response.error.reason) {
460
+ case "non-json":
461
+ throw new errors.LettaError({
462
+ statusCode: _response.error.statusCode,
463
+ body: _response.error.rawBody,
464
+ });
465
+ case "timeout":
466
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/sources/metadata.");
467
+ case "unknown":
468
+ throw new errors.LettaError({
469
+ message: _response.error.errorMessage,
470
+ });
471
+ }
472
+ });
473
+ }
402
474
  /**
403
475
  * List all data sources created by a user.
404
476
  *
@@ -417,7 +489,7 @@ class Sources {
417
489
  method: "GET",
418
490
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
419
491
  ? yield core.Supplier.get(this._options.project)
420
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
492
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
421
493
  contentType: "application/json",
422
494
  requestType: "json",
423
495
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -486,7 +558,7 @@ class Sources {
486
558
  method: "POST",
487
559
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
488
560
  ? yield core.Supplier.get(this._options.project)
489
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
561
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
490
562
  contentType: "application/json",
491
563
  requestType: "json",
492
564
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -561,7 +633,7 @@ class Sources {
561
633
  method: "GET",
562
634
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
563
635
  ? yield core.Supplier.get(this._options.project)
564
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
636
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
565
637
  contentType: "application/json",
566
638
  queryParameters: _queryParams,
567
639
  requestType: "json",
@@ -82,7 +82,7 @@ class Files {
82
82
  method: "POST",
83
83
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
84
84
  ? yield core.Supplier.get(this._options.project)
85
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
85
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
86
86
  requestType: "file",
87
87
  duplex: _maybeEncodedRequest.duplex,
88
88
  body: _maybeEncodedRequest.body,
@@ -162,7 +162,7 @@ class Files {
162
162
  method: "GET",
163
163
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
164
164
  ? yield core.Supplier.get(this._options.project)
165
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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",
@@ -231,7 +231,7 @@ class Files {
231
231
  method: "DELETE",
232
232
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
233
233
  ? yield core.Supplier.get(this._options.project)
234
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
234
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
235
235
  contentType: "application/json",
236
236
  requestType: "json",
237
237
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -90,7 +90,7 @@ class Passages {
90
90
  method: "GET",
91
91
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
92
92
  ? yield core.Supplier.get(this._options.project)
93
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
96
96
  requestType: "json",
@@ -135,7 +135,7 @@ class Steps {
135
135
  method: "GET",
136
136
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
137
137
  ? yield core.Supplier.get(this._options.project)
138
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
138
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
139
139
  contentType: "application/json",
140
140
  queryParameters: _queryParams,
141
141
  requestType: "json",
@@ -203,7 +203,7 @@ class Steps {
203
203
  method: "GET",
204
204
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
205
205
  ? yield core.Supplier.get(this._options.project)
206
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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),
206
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
207
207
  contentType: "application/json",
208
208
  requestType: "json",
209
209
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Feedback {
84
84
  method: "PATCH",
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.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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",
@@ -89,7 +89,7 @@ class Tags {
89
89
  method: "GET",
90
90
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
91
91
  ? yield core.Supplier.get(this._options.project)
92
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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",
@@ -76,7 +76,7 @@ class Telemetry {
76
76
  method: "GET",
77
77
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
78
78
  ? yield core.Supplier.get(this._options.project)
79
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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,
@@ -94,7 +94,7 @@ class Templates {
94
94
  method: "GET",
95
95
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
96
96
  ? yield core.Supplier.get(this._options.project)
97
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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),
98
98
  contentType: "application/json",
99
99
  queryParameters: _queryParams,
100
100
  requestType: "json",
@@ -80,7 +80,7 @@ class Agents {
80
80
  method: "POST",
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.1.147", "User-Agent": "@letta-ai/letta-client/0.1.147", "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.1.149", "User-Agent": "@letta-ai/letta-client/0.1.149", "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
  body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),