@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
@@ -78,7 +78,7 @@ class Tools {
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,
@@ -145,7 +145,7 @@ class Tools {
145
145
  method: "DELETE",
146
146
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
147
147
  ? yield core.Supplier.get(this._options.project)
148
- : 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),
148
+ : 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),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -207,7 +207,7 @@ class Tools {
207
207
  method: "PATCH",
208
208
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
209
209
  ? yield core.Supplier.get(this._options.project)
210
- : 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),
210
+ : 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),
211
211
  contentType: "application/json",
212
212
  requestType: "json",
213
213
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -280,7 +280,7 @@ class Tools {
280
280
  method: "GET",
281
281
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
282
282
  ? yield core.Supplier.get(this._options.project)
283
- : 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),
283
+ : 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),
284
284
  contentType: "application/json",
285
285
  queryParameters: _queryParams,
286
286
  requestType: "json",
@@ -359,7 +359,7 @@ class Tools {
359
359
  method: "GET",
360
360
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
361
361
  ? yield core.Supplier.get(this._options.project)
362
- : 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),
362
+ : 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),
363
363
  contentType: "application/json",
364
364
  queryParameters: _queryParams,
365
365
  requestType: "json",
@@ -429,7 +429,7 @@ class Tools {
429
429
  method: "POST",
430
430
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
431
431
  ? yield core.Supplier.get(this._options.project)
432
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.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),
432
+ : 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),
433
433
  contentType: "application/json",
434
434
  requestType: "json",
435
435
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -499,7 +499,7 @@ class Tools {
499
499
  method: "PUT",
500
500
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
501
501
  ? yield core.Supplier.get(this._options.project)
502
- : 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),
502
+ : 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),
503
503
  contentType: "application/json",
504
504
  requestType: "json",
505
505
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -566,7 +566,7 @@ class Tools {
566
566
  method: "POST",
567
567
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
568
568
  ? yield core.Supplier.get(this._options.project)
569
- : 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),
569
+ : 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),
570
570
  contentType: "application/json",
571
571
  requestType: "json",
572
572
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -638,7 +638,7 @@ class Tools {
638
638
  method: "POST",
639
639
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
640
640
  ? yield core.Supplier.get(this._options.project)
641
- : 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),
641
+ : 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),
642
642
  contentType: "application/json",
643
643
  requestType: "json",
644
644
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -707,7 +707,7 @@ class Tools {
707
707
  method: "GET",
708
708
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
709
709
  ? yield core.Supplier.get(this._options.project)
710
- : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
710
+ : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
711
711
  contentType: "application/json",
712
712
  requestType: "json",
713
713
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -774,7 +774,7 @@ class Tools {
774
774
  method: "GET",
775
775
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
776
776
  ? yield core.Supplier.get(this._options.project)
777
- : 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),
777
+ : 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),
778
778
  contentType: "application/json",
779
779
  requestType: "json",
780
780
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -841,7 +841,7 @@ class Tools {
841
841
  method: "POST",
842
842
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
843
843
  ? yield core.Supplier.get(this._options.project)
844
- : 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),
844
+ : 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),
845
845
  contentType: "application/json",
846
846
  requestType: "json",
847
847
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -909,7 +909,7 @@ class Tools {
909
909
  method: "GET",
910
910
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
911
911
  ? yield core.Supplier.get(this._options.project)
912
- : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
912
+ : 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
913
913
  contentType: "application/json",
914
914
  requestType: "json",
915
915
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -980,7 +980,7 @@ class Tools {
980
980
  method: "PUT",
981
981
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
982
982
  ? yield core.Supplier.get(this._options.project)
983
- : 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),
983
+ : 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),
984
984
  contentType: "application/json",
985
985
  requestType: "json",
986
986
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1048,7 +1048,7 @@ class Tools {
1048
1048
  method: "GET",
1049
1049
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1050
1050
  ? yield core.Supplier.get(this._options.project)
1051
- : 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),
1051
+ : 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),
1052
1052
  contentType: "application/json",
1053
1053
  requestType: "json",
1054
1054
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1116,7 +1116,7 @@ class Tools {
1116
1116
  method: "POST",
1117
1117
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1118
1118
  ? yield core.Supplier.get(this._options.project)
1119
- : 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),
1119
+ : 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),
1120
1120
  contentType: "application/json",
1121
1121
  requestType: "json",
1122
1122
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1183,7 +1183,7 @@ class Tools {
1183
1183
  method: "DELETE",
1184
1184
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1185
1185
  ? yield core.Supplier.get(this._options.project)
1186
- : 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),
1186
+ : 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),
1187
1187
  contentType: "application/json",
1188
1188
  requestType: "json",
1189
1189
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1251,7 +1251,7 @@ class Tools {
1251
1251
  method: "PATCH",
1252
1252
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1253
1253
  ? yield core.Supplier.get(this._options.project)
1254
- : 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),
1254
+ : 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),
1255
1255
  contentType: "application/json",
1256
1256
  requestType: "json",
1257
1257
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1324,7 +1324,7 @@ class Tools {
1324
1324
  method: "POST",
1325
1325
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1326
1326
  ? yield core.Supplier.get(this._options.project)
1327
- : 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),
1327
+ : 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),
1328
1328
  contentType: "application/json",
1329
1329
  requestType: "json",
1330
1330
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -82,7 +82,7 @@ class Voice {
82
82
  method: "POST",
83
83
  headers: 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), 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, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -28,6 +28,10 @@ export interface FileMetadata {
28
28
  processingStatus?: Letta.FileProcessingStatus;
29
29
  /** Optional error message if the file failed processing. */
30
30
  errorMessage?: string;
31
+ /** Total number of chunks for the file. */
32
+ totalChunks?: number;
33
+ /** Number of chunks that have been embedded. */
34
+ chunksEmbedded?: number;
31
35
  /** The creation date of the file. */
32
36
  createdAt?: Date;
33
37
  /** The update date of the file. */
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * File statistics for metadata endpoint
6
+ */
7
+ export interface FileStats {
8
+ /** Unique identifier of the file */
9
+ fileId: string;
10
+ /** Name of the file */
11
+ fileName: string;
12
+ /** Size of the file in bytes */
13
+ fileSize?: number;
14
+ }
@@ -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 });
@@ -44,4 +44,6 @@ export interface LlmConfig {
44
44
  reasoningEffort?: Letta.LlmConfigReasoningEffort;
45
45
  /** Configurable thinking budget for extended thinking, only used if enable_reasoner is True. Minimum value is 1024. */
46
46
  maxReasoningTokens?: number;
47
+ /** Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. From OpenAI: Number between -2.0 and 2.0. */
48
+ frequencyPenalty?: number;
47
49
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Complete metadata response for organization sources
7
+ */
8
+ export interface OrganizationSourcesStats {
9
+ /** Total number of sources */
10
+ totalSources?: number;
11
+ /** Total number of files across all sources */
12
+ totalFiles?: number;
13
+ /** Total size of all files in bytes */
14
+ totalSize?: number;
15
+ /** List of source metadata */
16
+ sources?: Letta.SourceStats[];
17
+ }
@@ -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,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Aggregated metadata for a source
7
+ */
8
+ export interface SourceStats {
9
+ /** Unique identifier of the source */
10
+ sourceId: string;
11
+ /** Name of the source */
12
+ sourceName: string;
13
+ /** Number of files in the source */
14
+ fileCount?: number;
15
+ /** Total size of all files in bytes */
16
+ totalSize?: number;
17
+ /** List of file statistics */
18
+ files?: Letta.FileStats[];
19
+ }
@@ -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 });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type StopReasonType = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule";
4
+ export type StopReasonType = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled";
5
5
  export declare const StopReasonType: {
6
6
  readonly EndTurn: "end_turn";
7
7
  readonly Error: "error";
@@ -9,4 +9,5 @@ export declare const StopReasonType: {
9
9
  readonly MaxSteps: "max_steps";
10
10
  readonly NoToolCall: "no_tool_call";
11
11
  readonly ToolRule: "tool_rule";
12
+ readonly Cancelled: "cancelled";
12
13
  };
@@ -11,4 +11,5 @@ exports.StopReasonType = {
11
11
  MaxSteps: "max_steps",
12
12
  NoToolCall: "no_tool_call",
13
13
  ToolRule: "tool_rule",
14
+ Cancelled: "cancelled",
14
15
  };
@@ -11,4 +11,6 @@ export interface UpdateSsemcpServer {
11
11
  serverUrl?: string;
12
12
  /** The access token or API key for the MCP server (used for SSE authentication) */
13
13
  token?: string;
14
+ /** Custom authentication headers as key-value pairs */
15
+ customHeaders?: Record<string, string | undefined>;
14
16
  }
@@ -13,4 +13,6 @@ export interface UpdateStreamableHttpmcpServer {
13
13
  authHeader?: string;
14
14
  /** The authentication token or API key value */
15
15
  authToken?: string;
16
+ /** Custom authentication headers as key-value pairs */
17
+ customHeaders?: Record<string, string | undefined>;
16
18
  }
@@ -95,6 +95,7 @@ export * from "./File_";
95
95
  export * from "./FileFile";
96
96
  export * from "./FileMetadata";
97
97
  export * from "./FileProcessingStatus";
98
+ export * from "./FileStats";
98
99
  export * from "./FunctionOutput";
99
100
  export * from "./FunctionCall";
100
101
  export * from "./FunctionDefinitionInput";
@@ -153,6 +154,7 @@ export * from "./MessageType";
153
154
  export * from "./OmittedReasoningContent";
154
155
  export * from "./Organization";
155
156
  export * from "./OrganizationCreate";
157
+ export * from "./OrganizationSourcesStats";
156
158
  export * from "./OrganizationUpdate";
157
159
  export * from "./ParameterProperties";
158
160
  export * from "./ParametersSchema";
@@ -188,6 +190,7 @@ export * from "./SandboxType";
188
190
  export * from "./SleeptimeManager";
189
191
  export * from "./SleeptimeManagerUpdate";
190
192
  export * from "./Source";
193
+ export * from "./SourceStats";
191
194
  export * from "./StdioServerConfig";
192
195
  export * from "./StepFeedback";
193
196
  export * from "./Step";
@@ -111,6 +111,7 @@ __exportStar(require("./File_"), exports);
111
111
  __exportStar(require("./FileFile"), exports);
112
112
  __exportStar(require("./FileMetadata"), exports);
113
113
  __exportStar(require("./FileProcessingStatus"), exports);
114
+ __exportStar(require("./FileStats"), exports);
114
115
  __exportStar(require("./FunctionOutput"), exports);
115
116
  __exportStar(require("./FunctionCall"), exports);
116
117
  __exportStar(require("./FunctionDefinitionInput"), exports);
@@ -169,6 +170,7 @@ __exportStar(require("./MessageType"), exports);
169
170
  __exportStar(require("./OmittedReasoningContent"), exports);
170
171
  __exportStar(require("./Organization"), exports);
171
172
  __exportStar(require("./OrganizationCreate"), exports);
173
+ __exportStar(require("./OrganizationSourcesStats"), exports);
172
174
  __exportStar(require("./OrganizationUpdate"), exports);
173
175
  __exportStar(require("./ParameterProperties"), exports);
174
176
  __exportStar(require("./ParametersSchema"), exports);
@@ -204,6 +206,7 @@ __exportStar(require("./SandboxType"), exports);
204
206
  __exportStar(require("./SleeptimeManager"), exports);
205
207
  __exportStar(require("./SleeptimeManagerUpdate"), exports);
206
208
  __exportStar(require("./Source"), exports);
209
+ __exportStar(require("./SourceStats"), exports);
207
210
  __exportStar(require("./StdioServerConfig"), exports);
208
211
  __exportStar(require("./StepFeedback"), exports);
209
212
  __exportStar(require("./Step"), exports);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export declare const Request: core.serialization.Schema<serializers.agents.messages.cancel.Request.Raw, string[] | undefined>;
7
+ export declare namespace Request {
8
+ type Raw = string[] | null | undefined;
9
+ }
10
+ export declare const Response: core.serialization.Schema<serializers.agents.messages.cancel.Response.Raw, Record<string, unknown>>;
11
+ export declare namespace Response {
12
+ type Raw = Record<string, unknown>;
13
+ }
@@ -0,0 +1,42 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Response = exports.Request = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.Request = core.serialization.list(core.serialization.string()).optional();
42
+ exports.Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
@@ -1,2 +1,3 @@
1
1
  export * as list from "./list";
2
+ export * as cancel from "./cancel";
2
3
  export * from "./requests";
@@ -36,6 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.list = void 0;
39
+ exports.cancel = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
+ exports.cancel = __importStar(require("./cancel"));
41
42
  __exportStar(require("./requests"), exports);
@@ -19,6 +19,8 @@ export declare namespace FileMetadata {
19
19
  file_last_modified_date?: string | null;
20
20
  processing_status?: FileProcessingStatus.Raw | null;
21
21
  error_message?: string | null;
22
+ total_chunks?: number | null;
23
+ chunks_embedded?: number | null;
22
24
  created_at?: string | null;
23
25
  updated_at?: string | null;
24
26
  is_deleted?: boolean | null;
@@ -51,6 +51,8 @@ exports.FileMetadata = core.serialization.object({
51
51
  fileLastModifiedDate: core.serialization.property("file_last_modified_date", core.serialization.string().optional()),
52
52
  processingStatus: core.serialization.property("processing_status", FileProcessingStatus_1.FileProcessingStatus.optional()),
53
53
  errorMessage: core.serialization.property("error_message", core.serialization.string().optional()),
54
+ totalChunks: core.serialization.property("total_chunks", core.serialization.number().optional()),
55
+ chunksEmbedded: core.serialization.property("chunks_embedded", core.serialization.number().optional()),
54
56
  createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
55
57
  updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
56
58
  isDeleted: core.serialization.property("is_deleted", core.serialization.boolean().optional()),
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const FileStats: core.serialization.ObjectSchema<serializers.FileStats.Raw, Letta.FileStats>;
8
+ export declare namespace FileStats {
9
+ interface Raw {
10
+ file_id: string;
11
+ file_name: string;
12
+ file_size?: number | null;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.FileStats = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.FileStats = core.serialization.object({
42
+ fileId: core.serialization.property("file_id", core.serialization.string()),
43
+ fileName: core.serialization.property("file_name", core.serialization.string()),
44
+ fileSize: core.serialization.property("file_size", core.serialization.number().optional()),
45
+ });
@@ -24,5 +24,6 @@ export declare namespace LlmConfig {
24
24
  enable_reasoner?: boolean | null;
25
25
  reasoning_effort?: LlmConfigReasoningEffort.Raw | null;
26
26
  max_reasoning_tokens?: number | null;
27
+ frequency_penalty?: number | null;
27
28
  }
28
29
  }
@@ -56,4 +56,5 @@ exports.LlmConfig = core.serialization.object({
56
56
  enableReasoner: core.serialization.property("enable_reasoner", core.serialization.boolean().optional()),
57
57
  reasoningEffort: core.serialization.property("reasoning_effort", LlmConfigReasoningEffort_1.LlmConfigReasoningEffort.optional()),
58
58
  maxReasoningTokens: core.serialization.property("max_reasoning_tokens", core.serialization.number().optional()),
59
+ frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number().optional()),
59
60
  });
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { SourceStats } from "./SourceStats";
8
+ export declare const OrganizationSourcesStats: core.serialization.ObjectSchema<serializers.OrganizationSourcesStats.Raw, Letta.OrganizationSourcesStats>;
9
+ export declare namespace OrganizationSourcesStats {
10
+ interface Raw {
11
+ total_sources?: number | null;
12
+ total_files?: number | null;
13
+ total_size?: number | null;
14
+ sources?: SourceStats.Raw[] | null;
15
+ }
16
+ }