@letta-ai/letta-client 0.1.124 → 0.1.125

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 (165) hide show
  1. package/api/resources/agents/client/Client.js +10 -10
  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.js +6 -6
  8. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  9. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  10. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  11. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  12. package/api/resources/batches/client/Client.js +4 -4
  13. package/api/resources/blocks/client/Client.js +6 -6
  14. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  15. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  16. package/api/resources/embeddingModels/client/Client.js +1 -1
  17. package/api/resources/groups/client/Client.js +6 -6
  18. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  19. package/api/resources/health/client/Client.js +1 -1
  20. package/api/resources/identities/client/Client.js +7 -7
  21. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  22. package/api/resources/jobs/client/Client.js +4 -4
  23. package/api/resources/messages/client/Client.js +1 -1
  24. package/api/resources/models/client/Client.js +1 -1
  25. package/api/resources/projects/client/Client.js +1 -1
  26. package/api/resources/providers/client/Client.js +5 -5
  27. package/api/resources/runs/client/Client.js +4 -4
  28. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  29. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  30. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  31. package/api/resources/sources/client/Client.js +7 -7
  32. package/api/resources/sources/resources/files/client/Client.js +3 -3
  33. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  34. package/api/resources/steps/client/Client.js +2 -2
  35. package/api/resources/tags/client/Client.js +1 -1
  36. package/api/resources/telemetry/client/Client.js +1 -1
  37. package/api/resources/templates/client/Client.js +1 -1
  38. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  39. package/api/resources/tools/client/Client.js +17 -17
  40. package/api/resources/voice/client/Client.js +1 -1
  41. package/api/types/Base64Image.d.ts +12 -0
  42. package/api/types/Base64Image.js +5 -0
  43. package/api/types/ImageContent.d.ts +9 -0
  44. package/api/types/ImageContent.js +5 -0
  45. package/api/types/ImageContentSource.d.ts +8 -0
  46. package/api/types/ImageContentSource.js +5 -0
  47. package/api/types/LettaImage.d.ts +14 -0
  48. package/api/types/LettaImage.js +5 -0
  49. package/api/types/LettaMessageContentUnion.d.ts +1 -1
  50. package/api/types/LettaUserMessageContentUnion.d.ts +5 -0
  51. package/api/types/LettaUserMessageContentUnion.js +5 -0
  52. package/api/types/MessageContentItem.d.ts +1 -1
  53. package/api/types/UpdateUserMessageContent.d.ts +1 -1
  54. package/api/types/UrlImage.d.ts +8 -0
  55. package/api/types/UrlImage.js +5 -0
  56. package/api/types/UserMessageContent.d.ts +1 -1
  57. package/api/types/index.d.ts +6 -0
  58. package/api/types/index.js +6 -0
  59. package/dist/api/resources/agents/client/Client.js +10 -10
  60. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  61. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  62. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  63. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  64. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  65. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  66. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  67. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  68. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  69. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  70. package/dist/api/resources/batches/client/Client.js +4 -4
  71. package/dist/api/resources/blocks/client/Client.js +6 -6
  72. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  73. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  74. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  75. package/dist/api/resources/groups/client/Client.js +6 -6
  76. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  77. package/dist/api/resources/health/client/Client.js +1 -1
  78. package/dist/api/resources/identities/client/Client.js +7 -7
  79. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  80. package/dist/api/resources/jobs/client/Client.js +4 -4
  81. package/dist/api/resources/messages/client/Client.js +1 -1
  82. package/dist/api/resources/models/client/Client.js +1 -1
  83. package/dist/api/resources/projects/client/Client.js +1 -1
  84. package/dist/api/resources/providers/client/Client.js +5 -5
  85. package/dist/api/resources/runs/client/Client.js +4 -4
  86. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  87. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  88. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  89. package/dist/api/resources/sources/client/Client.js +7 -7
  90. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  91. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  92. package/dist/api/resources/steps/client/Client.js +2 -2
  93. package/dist/api/resources/tags/client/Client.js +1 -1
  94. package/dist/api/resources/telemetry/client/Client.js +1 -1
  95. package/dist/api/resources/templates/client/Client.js +1 -1
  96. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  97. package/dist/api/resources/tools/client/Client.js +17 -17
  98. package/dist/api/resources/voice/client/Client.js +1 -1
  99. package/dist/api/types/Base64Image.d.ts +12 -0
  100. package/dist/api/types/Base64Image.js +5 -0
  101. package/dist/api/types/ImageContent.d.ts +9 -0
  102. package/dist/api/types/ImageContent.js +5 -0
  103. package/dist/api/types/ImageContentSource.d.ts +8 -0
  104. package/dist/api/types/ImageContentSource.js +5 -0
  105. package/dist/api/types/LettaImage.d.ts +14 -0
  106. package/dist/api/types/LettaImage.js +5 -0
  107. package/dist/api/types/LettaMessageContentUnion.d.ts +1 -1
  108. package/dist/api/types/LettaUserMessageContentUnion.d.ts +5 -0
  109. package/dist/api/types/LettaUserMessageContentUnion.js +5 -0
  110. package/dist/api/types/MessageContentItem.d.ts +1 -1
  111. package/dist/api/types/UpdateUserMessageContent.d.ts +1 -1
  112. package/dist/api/types/UrlImage.d.ts +8 -0
  113. package/dist/api/types/UrlImage.js +5 -0
  114. package/dist/api/types/UserMessageContent.d.ts +1 -1
  115. package/dist/api/types/index.d.ts +6 -0
  116. package/dist/api/types/index.js +6 -0
  117. package/dist/serialization/types/Base64Image.d.ts +15 -0
  118. package/dist/serialization/types/Base64Image.js +46 -0
  119. package/dist/serialization/types/ImageContent.d.ts +14 -0
  120. package/dist/serialization/types/ImageContent.js +45 -0
  121. package/dist/serialization/types/ImageContentSource.d.ts +13 -0
  122. package/dist/serialization/types/ImageContentSource.js +44 -0
  123. package/dist/serialization/types/LettaImage.d.ts +16 -0
  124. package/dist/serialization/types/LettaImage.js +47 -0
  125. package/dist/serialization/types/LettaMessageContentUnion.d.ts +2 -1
  126. package/dist/serialization/types/LettaMessageContentUnion.js +2 -0
  127. package/dist/serialization/types/LettaUserMessageContentUnion.d.ts +12 -0
  128. package/dist/serialization/types/LettaUserMessageContentUnion.js +43 -0
  129. package/dist/serialization/types/MessageContentItem.d.ts +2 -1
  130. package/dist/serialization/types/MessageContentItem.js +2 -0
  131. package/dist/serialization/types/UpdateUserMessageContent.d.ts +2 -2
  132. package/dist/serialization/types/UpdateUserMessageContent.js +2 -2
  133. package/dist/serialization/types/UrlImage.d.ts +13 -0
  134. package/dist/serialization/types/UrlImage.js +44 -0
  135. package/dist/serialization/types/UserMessageContent.d.ts +2 -2
  136. package/dist/serialization/types/UserMessageContent.js +2 -2
  137. package/dist/serialization/types/index.d.ts +6 -0
  138. package/dist/serialization/types/index.js +6 -0
  139. package/dist/version.d.ts +1 -1
  140. package/dist/version.js +1 -1
  141. package/package.json +1 -1
  142. package/serialization/types/Base64Image.d.ts +15 -0
  143. package/serialization/types/Base64Image.js +46 -0
  144. package/serialization/types/ImageContent.d.ts +14 -0
  145. package/serialization/types/ImageContent.js +45 -0
  146. package/serialization/types/ImageContentSource.d.ts +13 -0
  147. package/serialization/types/ImageContentSource.js +44 -0
  148. package/serialization/types/LettaImage.d.ts +16 -0
  149. package/serialization/types/LettaImage.js +47 -0
  150. package/serialization/types/LettaMessageContentUnion.d.ts +2 -1
  151. package/serialization/types/LettaMessageContentUnion.js +2 -0
  152. package/serialization/types/LettaUserMessageContentUnion.d.ts +12 -0
  153. package/serialization/types/LettaUserMessageContentUnion.js +43 -0
  154. package/serialization/types/MessageContentItem.d.ts +2 -1
  155. package/serialization/types/MessageContentItem.js +2 -0
  156. package/serialization/types/UpdateUserMessageContent.d.ts +2 -2
  157. package/serialization/types/UpdateUserMessageContent.js +2 -2
  158. package/serialization/types/UrlImage.d.ts +13 -0
  159. package/serialization/types/UrlImage.js +44 -0
  160. package/serialization/types/UserMessageContent.d.ts +2 -2
  161. package/serialization/types/UserMessageContent.js +2 -2
  162. package/serialization/types/index.d.ts +6 -0
  163. package/serialization/types/index.js +6 -0
  164. package/version.d.ts +1 -1
  165. package/version.js +1 -1
@@ -88,7 +88,7 @@ class Passages {
88
88
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
89
89
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/passages`),
90
90
  method: "GET",
91
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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
92
  contentType: "application/json",
93
93
  queryParameters: _queryParams,
94
94
  requestType: "json",
@@ -111,7 +111,7 @@ class Steps {
111
111
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
112
112
  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/steps/"),
113
113
  method: "GET",
114
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
114
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
115
115
  contentType: "application/json",
116
116
  queryParameters: _queryParams,
117
117
  requestType: "json",
@@ -177,7 +177,7 @@ class Steps {
177
177
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
178
178
  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/steps/${encodeURIComponent(stepId)}`),
179
179
  method: "GET",
180
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
180
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
181
181
  contentType: "application/json",
182
182
  requestType: "json",
183
183
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -87,7 +87,7 @@ class Tags {
87
87
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
88
88
  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/tags/"),
89
89
  method: "GET",
90
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -74,7 +74,7 @@ class Telemetry {
74
74
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
75
75
  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/telemetry/${encodeURIComponent(stepId)}`),
76
76
  method: "GET",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -92,7 +92,7 @@ class Templates {
92
92
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
93
93
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/templates"),
94
94
  method: "GET",
95
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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",
@@ -78,7 +78,7 @@ class Agents {
78
78
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
79
79
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
80
80
  method: "POST",
81
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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
  body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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,
@@ -141,7 +141,7 @@ class Tools {
141
141
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
142
142
  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/tools/${encodeURIComponent(toolId)}`),
143
143
  method: "DELETE",
144
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
144
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Tools {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  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/tools/${encodeURIComponent(toolId)}`),
203
203
  method: "PATCH",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
204
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -272,7 +272,7 @@ class Tools {
272
272
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
273
273
  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/tools/count"),
274
274
  method: "GET",
275
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
275
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
276
276
  contentType: "application/json",
277
277
  queryParameters: _queryParams,
278
278
  requestType: "json",
@@ -349,7 +349,7 @@ class Tools {
349
349
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
350
350
  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/tools/"),
351
351
  method: "GET",
352
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
352
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
353
353
  contentType: "application/json",
354
354
  queryParameters: _queryParams,
355
355
  requestType: "json",
@@ -417,7 +417,7 @@ class Tools {
417
417
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
418
418
  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/tools/"),
419
419
  method: "POST",
420
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
420
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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
421
  contentType: "application/json",
422
422
  requestType: "json",
423
423
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -485,7 +485,7 @@ class Tools {
485
485
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
486
486
  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/tools/"),
487
487
  method: "PUT",
488
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
488
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
489
489
  contentType: "application/json",
490
490
  requestType: "json",
491
491
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -550,7 +550,7 @@ class Tools {
550
550
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
551
551
  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/tools/add-base-tools"),
552
552
  method: "POST",
553
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
553
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
554
554
  contentType: "application/json",
555
555
  requestType: "json",
556
556
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -620,7 +620,7 @@ class Tools {
620
620
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
621
621
  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/tools/run"),
622
622
  method: "POST",
623
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
623
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
624
624
  contentType: "application/json",
625
625
  requestType: "json",
626
626
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -687,7 +687,7 @@ class Tools {
687
687
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
688
688
  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/tools/composio/apps"),
689
689
  method: "GET",
690
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
690
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
691
691
  contentType: "application/json",
692
692
  requestType: "json",
693
693
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -752,7 +752,7 @@ class Tools {
752
752
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
753
753
  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/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
754
754
  method: "GET",
755
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
755
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
756
756
  contentType: "application/json",
757
757
  requestType: "json",
758
758
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -817,7 +817,7 @@ class Tools {
817
817
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
818
818
  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/tools/composio/${encodeURIComponent(composioActionName)}`),
819
819
  method: "POST",
820
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
820
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
821
821
  contentType: "application/json",
822
822
  requestType: "json",
823
823
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -883,7 +883,7 @@ class Tools {
883
883
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
884
884
  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/tools/mcp/servers"),
885
885
  method: "GET",
886
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
886
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
887
887
  contentType: "application/json",
888
888
  requestType: "json",
889
889
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -952,7 +952,7 @@ class Tools {
952
952
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
953
953
  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/tools/mcp/servers"),
954
954
  method: "PUT",
955
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
955
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
956
956
  contentType: "application/json",
957
957
  requestType: "json",
958
958
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1018,7 +1018,7 @@ class Tools {
1018
1018
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1019
1019
  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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/tools`),
1020
1020
  method: "GET",
1021
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
1021
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
1022
1022
  contentType: "application/json",
1023
1023
  requestType: "json",
1024
1024
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1084,7 +1084,7 @@ class Tools {
1084
1084
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1085
1085
  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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}/${encodeURIComponent(mcpToolName)}`),
1086
1086
  method: "POST",
1087
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
1087
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
1088
1088
  contentType: "application/json",
1089
1089
  requestType: "json",
1090
1090
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1149,7 +1149,7 @@ class Tools {
1149
1149
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
1150
1150
  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/tools/mcp/servers/${encodeURIComponent(mcpServerName)}`),
1151
1151
  method: "DELETE",
1152
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
1152
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
1153
1153
  contentType: "application/json",
1154
1154
  requestType: "json",
1155
1155
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Voice {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
86
86
  method: "POST",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.124", "User-Agent": "@letta-ai/letta-client/0.1.124", "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),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.125", "User-Agent": "@letta-ai/letta-client/0.1.125", "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),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface Base64Image {
5
+ type: "base64";
6
+ /** The media type for the image. */
7
+ mediaType: string;
8
+ /** The base64 encoded image data. */
9
+ data: string;
10
+ /** What level of detail to use when processing and understanding the image (low, high, or auto to let the model decide) */
11
+ detail?: string;
12
+ }
@@ -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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface ImageContent {
6
+ type: "image";
7
+ /** The source of the image. */
8
+ source: Letta.ImageContentSource;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * The source of the image.
7
+ */
8
+ export type ImageContentSource = Letta.Base64Image | Letta.LettaImage | Letta.UrlImage;
@@ -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,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface LettaImage {
5
+ type: "letta";
6
+ /** The unique identifier of the image file persisted in storage. */
7
+ fileId: string;
8
+ /** The media type for the image. */
9
+ mediaType?: string;
10
+ /** The base64 encoded image data. */
11
+ data?: string;
12
+ /** What level of detail to use when processing and understanding the image (low, high, or auto to let the model decide) */
13
+ detail?: string;
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 });
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export type LettaMessageContentUnion = Letta.TextContent | Letta.ToolCallContent | Letta.ReasoningContent | Letta.RedactedReasoningContent | Letta.OmittedReasoningContent;
5
+ export type LettaMessageContentUnion = Letta.TextContent | Letta.ImageContent | Letta.ToolCallContent | Letta.ReasoningContent | Letta.RedactedReasoningContent | Letta.OmittedReasoningContent;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export type LettaUserMessageContentUnion = Letta.TextContent | Letta.ImageContent;
@@ -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 });
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Letta from "../index";
5
- export type MessageContentItem = Letta.OmittedReasoningContent | Letta.ReasoningContent | Letta.RedactedReasoningContent | Letta.TextContent | Letta.ToolCallContent | Letta.ToolReturnContent;
5
+ export type MessageContentItem = Letta.ImageContent | Letta.OmittedReasoningContent | Letta.ReasoningContent | Letta.RedactedReasoningContent | Letta.TextContent | Letta.ToolCallContent | Letta.ToolReturnContent;
@@ -5,4 +5,4 @@ import * as Letta from "../index";
5
5
  /**
6
6
  * The message content sent by the user (can be a string or an array of multi-modal content parts)
7
7
  */
8
- export type UpdateUserMessageContent = Letta.ComponentsSchemasTextContent[] | string;
8
+ export type UpdateUserMessageContent = Letta.LettaUserMessageContentUnion[] | string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface UrlImage {
5
+ type: "url";
6
+ /** The URL of the image. */
7
+ url: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,4 +5,4 @@ import * as Letta from "../index";
5
5
  /**
6
6
  * The message content sent by the user (can be a string or an array of multi-modal content parts)
7
7
  */
8
- export type UserMessageContent = Letta.ComponentsSchemasTextContent[] | string;
8
+ export type UserMessageContent = Letta.LettaUserMessageContentUnion[] | string;
@@ -23,6 +23,7 @@ export * from "./Audio";
23
23
  export * from "./AuthRequest";
24
24
  export * from "./AuthResponse";
25
25
  export * from "./AuthSchemeField";
26
+ export * from "./Base64Image";
26
27
  export * from "./BaseToolRuleSchema";
27
28
  export * from "./BatchJob";
28
29
  export * from "./Block";
@@ -107,6 +108,8 @@ export * from "./IdentityPropertyValue";
107
108
  export * from "./IdentityProperty";
108
109
  export * from "./IdentityPropertyType";
109
110
  export * from "./IdentityType";
111
+ export * from "./ImageContentSource";
112
+ export * from "./ImageContent";
110
113
  export * from "./ImageUrlDetail";
111
114
  export * from "./ImageUrl";
112
115
  export * from "./InitToolRule";
@@ -123,6 +126,7 @@ export * from "./LlmConfigReasoningEffort";
123
126
  export * from "./LlmConfig";
124
127
  export * from "./LettaBatchMessages";
125
128
  export * from "./LettaBatchRequest";
129
+ export * from "./LettaImage";
126
130
  export * from "./LettaRequest";
127
131
  export * from "./LettaRequestConfig";
128
132
  export * from "./LettaResponse";
@@ -210,6 +214,7 @@ export * from "./UpdateReasoningMessage";
210
214
  export * from "./UpdateSystemMessage";
211
215
  export * from "./UpdateUserMessageContent";
212
216
  export * from "./UpdateUserMessage";
217
+ export * from "./UrlImage";
213
218
  export * from "./UsageStatistics";
214
219
  export * from "./UsageStatisticsCompletionTokenDetails";
215
220
  export * from "./UsageStatisticsPromptTokenDetails";
@@ -232,3 +237,4 @@ export * from "./OpenaiTypesChatCompletionCreateParamsFunction";
232
237
  export * from "./LettaMessageUnion";
233
238
  export * from "./LettaMessageContentUnion";
234
239
  export * from "./ComponentsSchemasTextContent";
240
+ export * from "./LettaUserMessageContentUnion";
@@ -39,6 +39,7 @@ __exportStar(require("./Audio"), exports);
39
39
  __exportStar(require("./AuthRequest"), exports);
40
40
  __exportStar(require("./AuthResponse"), exports);
41
41
  __exportStar(require("./AuthSchemeField"), exports);
42
+ __exportStar(require("./Base64Image"), exports);
42
43
  __exportStar(require("./BaseToolRuleSchema"), exports);
43
44
  __exportStar(require("./BatchJob"), exports);
44
45
  __exportStar(require("./Block"), exports);
@@ -123,6 +124,8 @@ __exportStar(require("./IdentityPropertyValue"), exports);
123
124
  __exportStar(require("./IdentityProperty"), exports);
124
125
  __exportStar(require("./IdentityPropertyType"), exports);
125
126
  __exportStar(require("./IdentityType"), exports);
127
+ __exportStar(require("./ImageContentSource"), exports);
128
+ __exportStar(require("./ImageContent"), exports);
126
129
  __exportStar(require("./ImageUrlDetail"), exports);
127
130
  __exportStar(require("./ImageUrl"), exports);
128
131
  __exportStar(require("./InitToolRule"), exports);
@@ -139,6 +142,7 @@ __exportStar(require("./LlmConfigReasoningEffort"), exports);
139
142
  __exportStar(require("./LlmConfig"), exports);
140
143
  __exportStar(require("./LettaBatchMessages"), exports);
141
144
  __exportStar(require("./LettaBatchRequest"), exports);
145
+ __exportStar(require("./LettaImage"), exports);
142
146
  __exportStar(require("./LettaRequest"), exports);
143
147
  __exportStar(require("./LettaRequestConfig"), exports);
144
148
  __exportStar(require("./LettaResponse"), exports);
@@ -226,6 +230,7 @@ __exportStar(require("./UpdateReasoningMessage"), exports);
226
230
  __exportStar(require("./UpdateSystemMessage"), exports);
227
231
  __exportStar(require("./UpdateUserMessageContent"), exports);
228
232
  __exportStar(require("./UpdateUserMessage"), exports);
233
+ __exportStar(require("./UrlImage"), exports);
229
234
  __exportStar(require("./UsageStatistics"), exports);
230
235
  __exportStar(require("./UsageStatisticsCompletionTokenDetails"), exports);
231
236
  __exportStar(require("./UsageStatisticsPromptTokenDetails"), exports);
@@ -248,3 +253,4 @@ __exportStar(require("./OpenaiTypesChatCompletionCreateParamsFunction"), exports
248
253
  __exportStar(require("./LettaMessageUnion"), exports);
249
254
  __exportStar(require("./LettaMessageContentUnion"), exports);
250
255
  __exportStar(require("./ComponentsSchemasTextContent"), exports);
256
+ __exportStar(require("./LettaUserMessageContentUnion"), exports);