@letta-ai/letta-client 0.1.177 → 0.1.178

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 (118) 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/files/client/Client.js +3 -3
  6. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  7. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.d.ts +2 -4
  10. package/api/resources/agents/resources/messages/client/Client.js +12 -14
  11. package/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +1 -5
  12. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  13. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  14. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  15. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  16. package/api/resources/batches/client/Client.js +4 -4
  17. package/api/resources/blocks/client/Client.js +6 -6
  18. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  19. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  20. package/api/resources/embeddingModels/client/Client.js +1 -1
  21. package/api/resources/folders/client/Client.js +9 -9
  22. package/api/resources/folders/resources/files/client/Client.js +3 -3
  23. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  24. package/api/resources/groups/client/Client.js +6 -6
  25. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  26. package/api/resources/health/client/Client.js +1 -1
  27. package/api/resources/identities/client/Client.js +7 -7
  28. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  29. package/api/resources/jobs/client/Client.js +5 -5
  30. package/api/resources/messages/client/Client.js +1 -1
  31. package/api/resources/models/client/Client.js +1 -1
  32. package/api/resources/projects/client/Client.js +1 -1
  33. package/api/resources/providers/client/Client.js +6 -6
  34. package/api/resources/runs/client/Client.js +4 -4
  35. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  36. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  37. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  38. package/api/resources/sources/client/Client.js +10 -10
  39. package/api/resources/sources/resources/files/client/Client.js +3 -3
  40. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  41. package/api/resources/steps/client/Client.js +3 -3
  42. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  43. package/api/resources/tags/client/Client.js +1 -1
  44. package/api/resources/telemetry/client/Client.js +1 -1
  45. package/api/resources/templates/client/Client.js +1 -1
  46. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  47. package/api/resources/tools/client/Client.js +20 -20
  48. package/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  49. package/api/resources/voice/client/Client.js +1 -1
  50. package/api/types/CodeInput.d.ts +3 -1
  51. package/dist/api/resources/agents/client/Client.js +10 -10
  52. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  53. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  54. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  55. package/dist/api/resources/agents/resources/files/client/Client.js +3 -3
  56. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  57. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  58. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  59. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +2 -4
  60. package/dist/api/resources/agents/resources/messages/client/Client.js +12 -14
  61. package/dist/api/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +1 -5
  62. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  63. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  64. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  65. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  66. package/dist/api/resources/batches/client/Client.js +4 -4
  67. package/dist/api/resources/blocks/client/Client.js +6 -6
  68. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  69. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  70. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  71. package/dist/api/resources/folders/client/Client.js +9 -9
  72. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  73. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  74. package/dist/api/resources/groups/client/Client.js +6 -6
  75. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  76. package/dist/api/resources/health/client/Client.js +1 -1
  77. package/dist/api/resources/identities/client/Client.js +7 -7
  78. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  79. package/dist/api/resources/jobs/client/Client.js +5 -5
  80. package/dist/api/resources/messages/client/Client.js +1 -1
  81. package/dist/api/resources/models/client/Client.js +1 -1
  82. package/dist/api/resources/projects/client/Client.js +1 -1
  83. package/dist/api/resources/providers/client/Client.js +6 -6
  84. package/dist/api/resources/runs/client/Client.js +4 -4
  85. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  86. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  87. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  88. package/dist/api/resources/sources/client/Client.js +10 -10
  89. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  90. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  91. package/dist/api/resources/steps/client/Client.js +3 -3
  92. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  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 +20 -20
  98. package/dist/api/resources/tools/client/requests/ToolUpdate.d.ts +2 -0
  99. package/dist/api/resources/voice/client/Client.js +1 -1
  100. package/dist/api/types/CodeInput.d.ts +3 -1
  101. package/dist/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +0 -1
  102. package/dist/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +0 -1
  103. package/dist/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  104. package/dist/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  105. package/dist/serialization/types/CodeInput.d.ts +1 -0
  106. package/dist/serialization/types/CodeInput.js +1 -0
  107. package/dist/version.d.ts +1 -1
  108. package/dist/version.js +1 -1
  109. package/package.json +1 -1
  110. package/reference.md +1 -3
  111. package/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.d.ts +0 -1
  112. package/serialization/resources/agents/resources/messages/client/requests/CancelAgentRunRequest.js +0 -1
  113. package/serialization/resources/tools/client/requests/ToolUpdate.d.ts +1 -0
  114. package/serialization/resources/tools/client/requests/ToolUpdate.js +1 -0
  115. package/serialization/types/CodeInput.d.ts +1 -0
  116. package/serialization/types/CodeInput.js +1 -0
  117. package/version.d.ts +1 -1
  118. package/version.js +1 -1
@@ -93,7 +93,7 @@ class Passages {
93
93
  method: "GET",
94
94
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
95
95
  ? yield core.Supplier.get(this._options.project)
96
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
97
  contentType: "application/json",
98
98
  queryParameters: _queryParams,
99
99
  requestType: "json",
@@ -140,7 +140,7 @@ class Steps {
140
140
  method: "GET",
141
141
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
142
142
  ? yield core.Supplier.get(this._options.project)
143
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
143
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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
144
  contentType: "application/json",
145
145
  queryParameters: _queryParams,
146
146
  requestType: "json",
@@ -217,7 +217,7 @@ class Steps {
217
217
  method: "GET",
218
218
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
219
219
  ? yield core.Supplier.get(this._options.project)
220
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
220
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
221
221
  contentType: "application/json",
222
222
  requestType: "json",
223
223
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -293,7 +293,7 @@ class Steps {
293
293
  method: "GET",
294
294
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
295
295
  ? yield core.Supplier.get(this._options.project)
296
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
296
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
297
297
  contentType: "application/json",
298
298
  requestType: "json",
299
299
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -89,7 +89,7 @@ class Feedback {
89
89
  method: "PATCH",
90
90
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
91
91
  ? yield core.Supplier.get(this._options.project)
92
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -92,7 +92,7 @@ class Tags {
92
92
  method: "GET",
93
93
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
94
94
  ? yield core.Supplier.get(this._options.project)
95
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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",
@@ -79,7 +79,7 @@ class Telemetry {
79
79
  method: "GET",
80
80
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
81
81
  ? yield core.Supplier.get(this._options.project)
82
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
83
83
  contentType: "application/json",
84
84
  requestType: "json",
85
85
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -97,7 +97,7 @@ class Templates {
97
97
  method: "GET",
98
98
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
99
99
  ? yield core.Supplier.get(this._options.project)
100
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
100
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
101
101
  contentType: "application/json",
102
102
  queryParameters: _queryParams,
103
103
  requestType: "json",
@@ -83,7 +83,7 @@ class Agents {
83
83
  method: "POST",
84
84
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
85
85
  ? yield core.Supplier.get(this._options.project)
86
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
86
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
87
  contentType: "application/json",
88
88
  requestType: "json",
89
89
  body: serializers.templates.AgentsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -81,7 +81,7 @@ class Tools {
81
81
  method: "GET",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
83
  ? yield core.Supplier.get(this._options.project)
84
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -157,7 +157,7 @@ class Tools {
157
157
  method: "DELETE",
158
158
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
159
159
  ? yield core.Supplier.get(this._options.project)
160
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
160
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
161
161
  contentType: "application/json",
162
162
  requestType: "json",
163
163
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -225,7 +225,7 @@ class Tools {
225
225
  method: "PATCH",
226
226
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
227
227
  ? yield core.Supplier.get(this._options.project)
228
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
229
229
  contentType: "application/json",
230
230
  requestType: "json",
231
231
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -307,7 +307,7 @@ class Tools {
307
307
  method: "GET",
308
308
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
309
309
  ? yield core.Supplier.get(this._options.project)
310
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
310
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
311
311
  contentType: "application/json",
312
312
  queryParameters: _queryParams,
313
313
  requestType: "json",
@@ -395,7 +395,7 @@ class Tools {
395
395
  method: "GET",
396
396
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
397
397
  ? yield core.Supplier.get(this._options.project)
398
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
398
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
399
399
  contentType: "application/json",
400
400
  queryParameters: _queryParams,
401
401
  requestType: "json",
@@ -474,7 +474,7 @@ class Tools {
474
474
  method: "POST",
475
475
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
476
476
  ? yield core.Supplier.get(this._options.project)
477
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
477
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
478
478
  contentType: "application/json",
479
479
  requestType: "json",
480
480
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -553,7 +553,7 @@ class Tools {
553
553
  method: "PUT",
554
554
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
555
555
  ? yield core.Supplier.get(this._options.project)
556
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
556
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
557
557
  contentType: "application/json",
558
558
  requestType: "json",
559
559
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -629,7 +629,7 @@ class Tools {
629
629
  method: "POST",
630
630
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
631
631
  ? yield core.Supplier.get(this._options.project)
632
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
632
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
633
633
  contentType: "application/json",
634
634
  requestType: "json",
635
635
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -710,7 +710,7 @@ class Tools {
710
710
  method: "POST",
711
711
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
712
712
  ? yield core.Supplier.get(this._options.project)
713
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
713
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
714
714
  contentType: "application/json",
715
715
  requestType: "json",
716
716
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -788,7 +788,7 @@ class Tools {
788
788
  method: "GET",
789
789
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
790
790
  ? yield core.Supplier.get(this._options.project)
791
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
791
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
792
792
  contentType: "application/json",
793
793
  requestType: "json",
794
794
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -864,7 +864,7 @@ class Tools {
864
864
  method: "GET",
865
865
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
866
866
  ? yield core.Supplier.get(this._options.project)
867
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
867
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
868
868
  contentType: "application/json",
869
869
  requestType: "json",
870
870
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -940,7 +940,7 @@ class Tools {
940
940
  method: "POST",
941
941
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
942
942
  ? yield core.Supplier.get(this._options.project)
943
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
943
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
944
944
  contentType: "application/json",
945
945
  requestType: "json",
946
946
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1017,7 +1017,7 @@ class Tools {
1017
1017
  method: "GET",
1018
1018
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1019
1019
  ? yield core.Supplier.get(this._options.project)
1020
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
1020
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
1021
1021
  contentType: "application/json",
1022
1022
  requestType: "json",
1023
1023
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1097,7 +1097,7 @@ class Tools {
1097
1097
  method: "PUT",
1098
1098
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1099
1099
  ? yield core.Supplier.get(this._options.project)
1100
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
1100
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
1101
1101
  contentType: "application/json",
1102
1102
  requestType: "json",
1103
1103
  body: serializers.AddMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1174,7 +1174,7 @@ class Tools {
1174
1174
  method: "GET",
1175
1175
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1176
1176
  ? yield core.Supplier.get(this._options.project)
1177
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
1177
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
1178
1178
  contentType: "application/json",
1179
1179
  requestType: "json",
1180
1180
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1251,7 +1251,7 @@ class Tools {
1251
1251
  method: "POST",
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.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1327,7 +1327,7 @@ class Tools {
1327
1327
  method: "DELETE",
1328
1328
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1329
1329
  ? yield core.Supplier.get(this._options.project)
1330
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
1330
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
1331
1331
  contentType: "application/json",
1332
1332
  requestType: "json",
1333
1333
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1404,7 +1404,7 @@ class Tools {
1404
1404
  method: "PATCH",
1405
1405
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1406
1406
  ? yield core.Supplier.get(this._options.project)
1407
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
1407
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
1408
1408
  contentType: "application/json",
1409
1409
  requestType: "json",
1410
1410
  body: serializers.UpdateMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1486,7 +1486,7 @@ class Tools {
1486
1486
  method: "POST",
1487
1487
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1488
1488
  ? yield core.Supplier.get(this._options.project)
1489
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
1489
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
1490
1490
  contentType: "application/json",
1491
1491
  requestType: "json",
1492
1492
  body: serializers.TestMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1547,7 +1547,7 @@ class Tools {
1547
1547
  method: "POST",
1548
1548
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
1549
1549
  ? yield core.Supplier.get(this._options.project)
1550
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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),
1550
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
1551
1551
  contentType: "application/json",
1552
1552
  requestType: "json",
1553
1553
  body: serializers.ConnectMcpServerRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -25,4 +25,6 @@ export interface ToolUpdate {
25
25
  pipRequirements?: Letta.PipRequirement[];
26
26
  /** Optional list of npm packages required by this tool. */
27
27
  npmRequirements?: Letta.NpmRequirement[];
28
+ /** A dictionary of additional metadata for the tool. */
29
+ metadata?: Record<string, unknown>;
28
30
  }
@@ -85,7 +85,7 @@ class Voice {
85
85
  method: "POST",
86
86
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
87
87
  ? yield core.Supplier.get(this._options.project)
88
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.177", "User-Agent": "@letta-ai/letta-client/0.1.177", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.178", "User-Agent": "@letta-ai/letta-client/0.1.178", "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),
89
89
  contentType: "application/json",
90
90
  requestType: "json",
91
91
  body: serializers.voice.createVoiceChatCompletions.Request.jsonOrThrow(_body, {
@@ -2,6 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export interface CodeInput {
5
- /** Python source code to parse for JSON schema */
5
+ /** Source code to parse for JSON schema */
6
6
  code: string;
7
+ /** The source type of the code (python or typescript) */
8
+ sourceType?: string;
7
9
  }
@@ -7,7 +7,6 @@ import * as core from "../../../../../../../core";
7
7
  export declare const CancelAgentRunRequest: core.serialization.Schema<serializers.agents.CancelAgentRunRequest.Raw, Letta.agents.CancelAgentRunRequest>;
8
8
  export declare namespace CancelAgentRunRequest {
9
9
  interface Raw {
10
- agent_id: string;
11
10
  run_ids?: string[] | null;
12
11
  }
13
12
  }
@@ -39,6 +39,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CancelAgentRunRequest = void 0;
40
40
  const core = __importStar(require("../../../../../../../core"));
41
41
  exports.CancelAgentRunRequest = core.serialization.object({
42
- cancelAgentRunRequestAgentId: core.serialization.property("agent_id", core.serialization.string()),
43
42
  runIds: core.serialization.property("run_ids", core.serialization.list(core.serialization.string()).optional()),
44
43
  });
@@ -18,5 +18,6 @@ export declare namespace ToolUpdate {
18
18
  return_char_limit?: number | null;
19
19
  pip_requirements?: PipRequirement.Raw[] | null;
20
20
  npm_requirements?: NpmRequirement.Raw[] | null;
21
+ metadata_?: Record<string, unknown> | null;
21
22
  }
22
23
  }
@@ -50,4 +50,5 @@ exports.ToolUpdate = core.serialization.object({
50
50
  returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
51
51
  pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
52
52
  npmRequirements: core.serialization.property("npm_requirements", core.serialization.list(NpmRequirement_1.NpmRequirement).optional()),
53
+ metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
53
54
  });
@@ -8,5 +8,6 @@ export declare const CodeInput: core.serialization.ObjectSchema<serializers.Code
8
8
  export declare namespace CodeInput {
9
9
  interface Raw {
10
10
  code: string;
11
+ source_type?: string | null;
11
12
  }
12
13
  }
@@ -40,4 +40,5 @@ exports.CodeInput = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.CodeInput = core.serialization.object({
42
42
  code: core.serialization.string(),
43
+ sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
43
44
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.177";
1
+ export declare const SDK_VERSION = "0.1.178";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.177";
4
+ exports.SDK_VERSION = "0.1.178";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.177",
3
+ "version": "0.1.178",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -8413,9 +8413,7 @@ Note to cancel active runs associated with an agent, redis is required.
8413
8413
  <dd>
8414
8414
 
8415
8415
  ```typescript
8416
- await client.agents.messages.cancel("agent_id", {
8417
- cancelAgentRunRequestAgentId: "agent_id",
8418
- });
8416
+ await client.agents.messages.cancel("agent_id");
8419
8417
  ```
8420
8418
 
8421
8419
  </dd>
@@ -7,7 +7,6 @@ import * as core from "../../../../../../../core";
7
7
  export declare const CancelAgentRunRequest: core.serialization.Schema<serializers.agents.CancelAgentRunRequest.Raw, Letta.agents.CancelAgentRunRequest>;
8
8
  export declare namespace CancelAgentRunRequest {
9
9
  interface Raw {
10
- agent_id: string;
11
10
  run_ids?: string[] | null;
12
11
  }
13
12
  }
@@ -39,6 +39,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CancelAgentRunRequest = void 0;
40
40
  const core = __importStar(require("../../../../../../../core"));
41
41
  exports.CancelAgentRunRequest = core.serialization.object({
42
- cancelAgentRunRequestAgentId: core.serialization.property("agent_id", core.serialization.string()),
43
42
  runIds: core.serialization.property("run_ids", core.serialization.list(core.serialization.string()).optional()),
44
43
  });
@@ -18,5 +18,6 @@ export declare namespace ToolUpdate {
18
18
  return_char_limit?: number | null;
19
19
  pip_requirements?: PipRequirement.Raw[] | null;
20
20
  npm_requirements?: NpmRequirement.Raw[] | null;
21
+ metadata_?: Record<string, unknown> | null;
21
22
  }
22
23
  }
@@ -50,4 +50,5 @@ exports.ToolUpdate = core.serialization.object({
50
50
  returnCharLimit: core.serialization.property("return_char_limit", core.serialization.number().optional()),
51
51
  pipRequirements: core.serialization.property("pip_requirements", core.serialization.list(PipRequirement_1.PipRequirement).optional()),
52
52
  npmRequirements: core.serialization.property("npm_requirements", core.serialization.list(NpmRequirement_1.NpmRequirement).optional()),
53
+ metadata: core.serialization.property("metadata_", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
53
54
  });
@@ -8,5 +8,6 @@ export declare const CodeInput: core.serialization.ObjectSchema<serializers.Code
8
8
  export declare namespace CodeInput {
9
9
  interface Raw {
10
10
  code: string;
11
+ source_type?: string | null;
11
12
  }
12
13
  }
@@ -40,4 +40,5 @@ exports.CodeInput = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.CodeInput = core.serialization.object({
42
42
  code: core.serialization.string(),
43
+ sourceType: core.serialization.property("source_type", core.serialization.string().optional()),
43
44
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.177";
1
+ export declare const SDK_VERSION = "0.1.178";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.177";
4
+ exports.SDK_VERSION = "0.1.178";