@letta-ai/letta-client 0.1.202 → 0.1.204

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 (156) hide show
  1. package/api/resources/agents/client/Client.js +11 -11
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/files/client/Client.js +4 -4
  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.js +8 -8
  10. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  11. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  12. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  13. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  14. package/api/resources/batches/client/Client.js +4 -4
  15. package/api/resources/blocks/client/Client.js +6 -6
  16. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  17. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  18. package/api/resources/embeddingModels/client/Client.js +1 -1
  19. package/api/resources/folders/client/Client.js +9 -9
  20. package/api/resources/folders/resources/files/client/Client.js +3 -3
  21. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  22. package/api/resources/groups/client/Client.js +6 -6
  23. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  24. package/api/resources/health/client/Client.js +1 -1
  25. package/api/resources/identities/client/Client.js +7 -7
  26. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  27. package/api/resources/jobs/client/Client.js +5 -5
  28. package/api/resources/messages/client/Client.js +1 -1
  29. package/api/resources/models/client/Client.js +2 -2
  30. package/api/resources/projects/client/Client.js +1 -1
  31. package/api/resources/providers/client/Client.js +6 -6
  32. package/api/resources/runs/client/Client.js +5 -5
  33. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  34. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  35. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  36. package/api/resources/sources/client/Client.js +10 -10
  37. package/api/resources/sources/resources/files/client/Client.js +3 -3
  38. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  39. package/api/resources/steps/client/Client.js +3 -3
  40. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  41. package/api/resources/tags/client/Client.js +1 -1
  42. package/api/resources/telemetry/client/Client.js +1 -1
  43. package/api/resources/templates/client/Client.d.ts +18 -1
  44. package/api/resources/templates/client/Client.js +89 -10
  45. package/api/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.d.ts +11 -0
  46. package/api/resources/templates/client/requests/index.d.ts +1 -1
  47. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  48. package/api/resources/templates/types/TemplatesCreateTemplateRequest.d.ts +14 -0
  49. package/api/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.d.ts +13 -0
  50. package/api/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.js +5 -0
  51. package/api/resources/templates/{client/requests/TemplatesCreateTemplateRequest.d.ts → types/TemplatesCreateTemplateRequestAgentId.d.ts} +3 -5
  52. package/api/resources/templates/types/TemplatesCreateTemplateRequestAgentId.js +5 -0
  53. package/api/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.d.ts +6 -0
  54. package/api/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.js +5 -0
  55. package/api/resources/templates/types/index.d.ts +4 -0
  56. package/api/resources/templates/types/index.js +4 -0
  57. package/api/resources/tools/client/Client.js +20 -20
  58. package/api/resources/voice/client/Client.js +1 -1
  59. package/dist/api/resources/agents/client/Client.js +11 -11
  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/files/client/Client.js +4 -4
  64. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  65. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  66. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  67. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  68. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  69. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  70. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  71. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  72. package/dist/api/resources/batches/client/Client.js +4 -4
  73. package/dist/api/resources/blocks/client/Client.js +6 -6
  74. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  75. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  76. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  77. package/dist/api/resources/folders/client/Client.js +9 -9
  78. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  79. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  80. package/dist/api/resources/groups/client/Client.js +6 -6
  81. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  82. package/dist/api/resources/health/client/Client.js +1 -1
  83. package/dist/api/resources/identities/client/Client.js +7 -7
  84. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  85. package/dist/api/resources/jobs/client/Client.js +5 -5
  86. package/dist/api/resources/messages/client/Client.js +1 -1
  87. package/dist/api/resources/models/client/Client.js +2 -2
  88. package/dist/api/resources/projects/client/Client.js +1 -1
  89. package/dist/api/resources/providers/client/Client.js +6 -6
  90. package/dist/api/resources/runs/client/Client.js +5 -5
  91. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  92. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  93. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  94. package/dist/api/resources/sources/client/Client.js +10 -10
  95. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  96. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  97. package/dist/api/resources/steps/client/Client.js +3 -3
  98. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  99. package/dist/api/resources/tags/client/Client.js +1 -1
  100. package/dist/api/resources/telemetry/client/Client.js +1 -1
  101. package/dist/api/resources/templates/client/Client.d.ts +18 -1
  102. package/dist/api/resources/templates/client/Client.js +89 -10
  103. package/dist/api/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.d.ts +11 -0
  104. package/dist/api/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.js +5 -0
  105. package/dist/api/resources/templates/client/requests/index.d.ts +1 -1
  106. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  107. package/dist/api/resources/templates/types/TemplatesCreateTemplateRequest.d.ts +14 -0
  108. package/dist/api/resources/templates/types/TemplatesCreateTemplateRequest.js +5 -0
  109. package/dist/api/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.d.ts +13 -0
  110. package/dist/api/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.js +5 -0
  111. package/dist/api/resources/templates/{client/requests/TemplatesCreateTemplateRequest.d.ts → types/TemplatesCreateTemplateRequestAgentId.d.ts} +3 -5
  112. package/dist/api/resources/templates/types/TemplatesCreateTemplateRequestAgentId.js +5 -0
  113. package/dist/api/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.d.ts +6 -0
  114. package/dist/api/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.js +5 -0
  115. package/dist/api/resources/templates/types/index.d.ts +4 -0
  116. package/dist/api/resources/templates/types/index.js +4 -0
  117. package/dist/api/resources/tools/client/Client.js +20 -20
  118. package/dist/api/resources/voice/client/Client.js +1 -1
  119. package/dist/serialization/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.d.ts +12 -0
  120. package/dist/serialization/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.js +43 -0
  121. package/dist/serialization/resources/templates/client/requests/index.d.ts +1 -1
  122. package/dist/serialization/resources/templates/client/requests/index.js +3 -3
  123. package/dist/serialization/resources/templates/types/TemplatesCreateTemplateRequest.d.ts +12 -0
  124. package/dist/serialization/resources/templates/types/TemplatesCreateTemplateRequest.js +46 -0
  125. package/dist/serialization/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.d.ts +14 -0
  126. package/dist/serialization/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.js +45 -0
  127. package/dist/serialization/resources/templates/types/TemplatesCreateTemplateRequestAgentId.d.ts +14 -0
  128. package/dist/serialization/resources/templates/{client/requests/TemplatesCreateTemplateRequest.js → types/TemplatesCreateTemplateRequestAgentId.js} +4 -3
  129. package/dist/serialization/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.d.ts +12 -0
  130. package/dist/serialization/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.js +43 -0
  131. package/dist/serialization/resources/templates/types/index.d.ts +4 -0
  132. package/dist/serialization/resources/templates/types/index.js +4 -0
  133. package/dist/version.d.ts +1 -1
  134. package/dist/version.js +1 -1
  135. package/package.json +1 -1
  136. package/reference.md +81 -1
  137. package/serialization/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.d.ts +12 -0
  138. package/serialization/resources/templates/client/requests/TemplatesUpdateTemplateDescriptionRequest.js +43 -0
  139. package/serialization/resources/templates/client/requests/index.d.ts +1 -1
  140. package/serialization/resources/templates/client/requests/index.js +3 -3
  141. package/serialization/resources/templates/types/TemplatesCreateTemplateRequest.d.ts +12 -0
  142. package/serialization/resources/templates/types/TemplatesCreateTemplateRequest.js +46 -0
  143. package/serialization/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.d.ts +14 -0
  144. package/serialization/resources/templates/types/TemplatesCreateTemplateRequestAgentFile.js +45 -0
  145. package/serialization/resources/templates/types/TemplatesCreateTemplateRequestAgentId.d.ts +14 -0
  146. package/serialization/resources/templates/{client/requests/TemplatesCreateTemplateRequest.js → types/TemplatesCreateTemplateRequestAgentId.js} +4 -3
  147. package/serialization/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.d.ts +12 -0
  148. package/serialization/resources/templates/types/TemplatesUpdateTemplateDescriptionResponse.js +43 -0
  149. package/serialization/resources/templates/types/index.d.ts +4 -0
  150. package/serialization/resources/templates/types/index.js +4 -0
  151. package/version.d.ts +1 -1
  152. package/version.js +1 -1
  153. package/dist/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +0 -13
  154. package/serialization/resources/templates/client/requests/TemplatesCreateTemplateRequest.d.ts +0 -13
  155. /package/api/resources/templates/client/requests/{TemplatesCreateTemplateRequest.js → TemplatesUpdateTemplateDescriptionRequest.js} +0 -0
  156. /package/{dist/api/resources/templates/client/requests → api/resources/templates/types}/TemplatesCreateTemplateRequest.js +0 -0
@@ -90,7 +90,7 @@ class Sources {
90
90
  method: "GET",
91
91
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
92
92
  ? yield core.Supplier.get(this._options.project)
93
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  requestType: "json",
96
96
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -166,7 +166,7 @@ class Sources {
166
166
  method: "GET",
167
167
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
168
168
  ? yield core.Supplier.get(this._options.project)
169
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
169
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
170
170
  contentType: "application/json",
171
171
  requestType: "json",
172
172
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -242,7 +242,7 @@ class Sources {
242
242
  method: "DELETE",
243
243
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
244
244
  ? yield core.Supplier.get(this._options.project)
245
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
245
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
246
246
  contentType: "application/json",
247
247
  requestType: "json",
248
248
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -310,7 +310,7 @@ class Sources {
310
310
  method: "PATCH",
311
311
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
312
312
  ? yield core.Supplier.get(this._options.project)
313
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
313
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
314
314
  contentType: "application/json",
315
315
  requestType: "json",
316
316
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -387,7 +387,7 @@ class Sources {
387
387
  method: "GET",
388
388
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
389
389
  ? yield core.Supplier.get(this._options.project)
390
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
390
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
391
391
  contentType: "application/json",
392
392
  requestType: "json",
393
393
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -474,7 +474,7 @@ class Sources {
474
474
  method: "GET",
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.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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
  queryParameters: _queryParams,
480
480
  requestType: "json",
@@ -550,7 +550,7 @@ class Sources {
550
550
  method: "GET",
551
551
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
552
552
  ? yield core.Supplier.get(this._options.project)
553
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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,
@@ -628,7 +628,7 @@ class Sources {
628
628
  method: "POST",
629
629
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
630
630
  ? yield core.Supplier.get(this._options.project)
631
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
631
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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
632
  contentType: "application/json",
633
633
  requestType: "json",
634
634
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -705,7 +705,7 @@ class Sources {
705
705
  method: "GET",
706
706
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
707
707
  ? yield core.Supplier.get(this._options.project)
708
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
708
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
709
709
  contentType: "application/json",
710
710
  requestType: "json",
711
711
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -788,7 +788,7 @@ class Sources {
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.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
791
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
792
792
  contentType: "application/json",
793
793
  queryParameters: _queryParams,
794
794
  requestType: "json",
@@ -93,7 +93,7 @@ class Files {
93
93
  method: "POST",
94
94
  headers: Object.assign(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.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
97
  queryParameters: _queryParams,
98
98
  requestType: "file",
99
99
  duplex: _maybeEncodedRequest.duplex,
@@ -186,7 +186,7 @@ class Files {
186
186
  method: "GET",
187
187
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
188
188
  ? yield core.Supplier.get(this._options.project)
189
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
189
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
190
190
  contentType: "application/json",
191
191
  queryParameters: _queryParams,
192
192
  requestType: "json",
@@ -264,7 +264,7 @@ class Files {
264
264
  method: "DELETE",
265
265
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
266
266
  ? yield core.Supplier.get(this._options.project)
267
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
267
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
268
268
  contentType: "application/json",
269
269
  requestType: "json",
270
270
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -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.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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,
@@ -102,7 +102,7 @@ export declare class Templates {
102
102
  forktemplate(project: string, templateVersion: string, request?: Letta.TemplatesForkTemplateRequest, requestOptions?: Templates.RequestOptions): core.HttpResponsePromise<Letta.TemplatesForkTemplateResponse>;
103
103
  private __forktemplate;
104
104
  /**
105
- * Creates a new template from an existing agent
105
+ * Creates a new template from an existing agent or agent file
106
106
  *
107
107
  * @param {string} project - The project slug
108
108
  * @param {Letta.TemplatesCreateTemplateRequest} request
@@ -112,6 +112,7 @@ export declare class Templates {
112
112
  *
113
113
  * @example
114
114
  * await client.templates.createtemplate("project", {
115
+ * type: "agent",
115
116
  * agentId: "agent_id"
116
117
  * })
117
118
  */
@@ -136,6 +137,22 @@ export declare class Templates {
136
137
  */
137
138
  renametemplate(project: string, templateName: string, request: Letta.TemplatesRenameTemplateRequest, requestOptions?: Templates.RequestOptions): core.HttpResponsePromise<Letta.TemplatesRenameTemplateResponse>;
138
139
  private __renametemplate;
140
+ /**
141
+ * Updates the description for all versions of a template with the specified name. Versions are automatically stripped from the current template name if accidentally included.
142
+ *
143
+ * @param {string} project - The project slug
144
+ * @param {string} templateName - The template name (version will be automatically stripped if included)
145
+ * @param {Letta.TemplatesUpdateTemplateDescriptionRequest} request
146
+ * @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
147
+ *
148
+ * @throws {@link Letta.BadRequestError}
149
+ * @throws {@link Letta.NotFoundError}
150
+ *
151
+ * @example
152
+ * await client.templates.updatetemplatedescription("project", "template_name")
153
+ */
154
+ updatetemplatedescription(project: string, templateName: string, request?: Letta.TemplatesUpdateTemplateDescriptionRequest, requestOptions?: Templates.RequestOptions): core.HttpResponsePromise<Letta.TemplatesUpdateTemplateDescriptionResponse>;
155
+ private __updatetemplatedescription;
139
156
  /**
140
157
  * List all versions of a specific template
141
158
  *
@@ -118,7 +118,7 @@ class Templates {
118
118
  method: "GET",
119
119
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
120
120
  ? yield core.Supplier.get(this._options.project)
121
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
121
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
122
122
  contentType: "application/json",
123
123
  queryParameters: _queryParams,
124
124
  requestType: "json",
@@ -186,7 +186,7 @@ class Templates {
186
186
  method: "POST",
187
187
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
188
188
  ? yield core.Supplier.get(this._options.project)
189
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
189
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
190
190
  contentType: "application/json",
191
191
  requestType: "json",
192
192
  body: serializers.TemplatesSaveTemplateVersionRequest.jsonOrThrow(request, {
@@ -261,7 +261,7 @@ class Templates {
261
261
  method: "DELETE",
262
262
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
263
263
  ? yield core.Supplier.get(this._options.project)
264
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
264
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  body: serializers.TemplatesDeleteTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -331,7 +331,7 @@ class Templates {
331
331
  method: "GET",
332
332
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
333
333
  ? yield core.Supplier.get(this._options.project)
334
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
334
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
335
335
  contentType: "application/json",
336
336
  requestType: "json",
337
337
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -398,7 +398,7 @@ class Templates {
398
398
  method: "POST",
399
399
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
400
400
  ? yield core.Supplier.get(this._options.project)
401
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
401
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
402
402
  contentType: "application/json",
403
403
  requestType: "json",
404
404
  body: serializers.TemplatesForkTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -448,7 +448,7 @@ class Templates {
448
448
  });
449
449
  }
450
450
  /**
451
- * Creates a new template from an existing agent
451
+ * Creates a new template from an existing agent or agent file
452
452
  *
453
453
  * @param {string} project - The project slug
454
454
  * @param {Letta.TemplatesCreateTemplateRequest} request
@@ -458,6 +458,7 @@ class Templates {
458
458
  *
459
459
  * @example
460
460
  * await client.templates.createtemplate("project", {
461
+ * type: "agent",
461
462
  * agentId: "agent_id"
462
463
  * })
463
464
  */
@@ -472,10 +473,10 @@ class Templates {
472
473
  method: "POST",
473
474
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
474
475
  ? yield core.Supplier.get(this._options.project)
475
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
476
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
476
477
  contentType: "application/json",
477
478
  requestType: "json",
478
- body: Object.assign(Object.assign({}, serializers.TemplatesCreateTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" })), { type: "agent" }),
479
+ body: serializers.TemplatesCreateTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
479
480
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
480
481
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
481
482
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -549,7 +550,7 @@ class Templates {
549
550
  method: "PATCH",
550
551
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
551
552
  ? yield core.Supplier.get(this._options.project)
552
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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
554
  contentType: "application/json",
554
555
  requestType: "json",
555
556
  body: serializers.TemplatesRenameTemplateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -608,6 +609,84 @@ class Templates {
608
609
  }
609
610
  });
610
611
  }
612
+ /**
613
+ * Updates the description for all versions of a template with the specified name. Versions are automatically stripped from the current template name if accidentally included.
614
+ *
615
+ * @param {string} project - The project slug
616
+ * @param {string} templateName - The template name (version will be automatically stripped if included)
617
+ * @param {Letta.TemplatesUpdateTemplateDescriptionRequest} request
618
+ * @param {Templates.RequestOptions} requestOptions - Request-specific configuration.
619
+ *
620
+ * @throws {@link Letta.BadRequestError}
621
+ * @throws {@link Letta.NotFoundError}
622
+ *
623
+ * @example
624
+ * await client.templates.updatetemplatedescription("project", "template_name")
625
+ */
626
+ updatetemplatedescription(project, templateName, request = {}, requestOptions) {
627
+ return core.HttpResponsePromise.fromPromise(this.__updatetemplatedescription(project, templateName, request, requestOptions));
628
+ }
629
+ __updatetemplatedescription(project_1, templateName_1) {
630
+ return __awaiter(this, arguments, void 0, function* (project, templateName, request = {}, requestOptions) {
631
+ var _a, _b, _c;
632
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
633
+ 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(templateName)}/description`),
634
+ method: "PATCH",
635
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
636
+ ? yield core.Supplier.get(this._options.project)
637
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
638
+ contentType: "application/json",
639
+ requestType: "json",
640
+ body: serializers.TemplatesUpdateTemplateDescriptionRequest.jsonOrThrow(request, {
641
+ unrecognizedObjectKeys: "strip",
642
+ }),
643
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
644
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
645
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
646
+ });
647
+ if (_response.ok) {
648
+ return {
649
+ data: serializers.TemplatesUpdateTemplateDescriptionResponse.parseOrThrow(_response.body, {
650
+ unrecognizedObjectKeys: "passthrough",
651
+ allowUnrecognizedUnionMembers: true,
652
+ allowUnrecognizedEnumValues: true,
653
+ skipValidation: true,
654
+ breadcrumbsPrefix: ["response"],
655
+ }),
656
+ rawResponse: _response.rawResponse,
657
+ };
658
+ }
659
+ if (_response.error.reason === "status-code") {
660
+ switch (_response.error.statusCode) {
661
+ case 400:
662
+ throw new Letta.BadRequestError(_response.error.body, _response.rawResponse);
663
+ case 404:
664
+ throw new Letta.NotFoundError(_response.error.body, _response.rawResponse);
665
+ default:
666
+ throw new errors.LettaError({
667
+ statusCode: _response.error.statusCode,
668
+ body: _response.error.body,
669
+ rawResponse: _response.rawResponse,
670
+ });
671
+ }
672
+ }
673
+ switch (_response.error.reason) {
674
+ case "non-json":
675
+ throw new errors.LettaError({
676
+ statusCode: _response.error.statusCode,
677
+ body: _response.error.rawBody,
678
+ rawResponse: _response.rawResponse,
679
+ });
680
+ case "timeout":
681
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/templates/{project}/{template_name}/description.");
682
+ case "unknown":
683
+ throw new errors.LettaError({
684
+ message: _response.error.errorMessage,
685
+ rawResponse: _response.rawResponse,
686
+ });
687
+ }
688
+ });
689
+ }
611
690
  /**
612
691
  * List all versions of a specific template
613
692
  *
@@ -640,7 +719,7 @@ class Templates {
640
719
  method: "GET",
641
720
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
642
721
  ? yield core.Supplier.get(this._options.project)
643
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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),
722
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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),
644
723
  contentType: "application/json",
645
724
  queryParameters: _queryParams,
646
725
  requestType: "json",
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface TemplatesUpdateTemplateDescriptionRequest {
9
+ /** The new description for the template */
10
+ description?: string;
11
+ }
@@ -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,6 +2,6 @@ export { type TemplatesListRequest } from "./TemplatesListRequest";
2
2
  export { type TemplatesSaveTemplateVersionRequest } from "./TemplatesSaveTemplateVersionRequest";
3
3
  export { type TemplatesDeleteTemplateRequest } from "./TemplatesDeleteTemplateRequest";
4
4
  export { type TemplatesForkTemplateRequest } from "./TemplatesForkTemplateRequest";
5
- export { type TemplatesCreateTemplateRequest } from "./TemplatesCreateTemplateRequest";
6
5
  export { type TemplatesRenameTemplateRequest } from "./TemplatesRenameTemplateRequest";
6
+ export { type TemplatesUpdateTemplateDescriptionRequest } from "./TemplatesUpdateTemplateDescriptionRequest";
7
7
  export { type TemplatesListTemplateVersionsRequest } from "./TemplatesListTemplateVersionsRequest";
@@ -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.202", "User-Agent": "@letta-ai/letta-client/0.1.202", "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.204", "User-Agent": "@letta-ai/letta-client/0.1.204", "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" }),
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ /**
6
+ * The type of template to create, currently only agent templates are supported
7
+ */
8
+ export type TemplatesCreateTemplateRequest =
9
+ /**
10
+ * Create a template from an existing agent */
11
+ Letta.TemplatesCreateTemplateRequestAgentId
12
+ /**
13
+ * Create a template from an uploaded agent file */
14
+ | Letta.TemplatesCreateTemplateRequestAgentFile;
@@ -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,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Create a template from an uploaded agent file
6
+ */
7
+ export interface TemplatesCreateTemplateRequestAgentFile {
8
+ type: "agent_file";
9
+ /** The agent file to use as a template, this should be a JSON file exported from the platform */
10
+ agentFile: Record<string, unknown>;
11
+ /** Optional custom name for the template. If not provided, a random name will be generated. */
12
+ name?: string;
13
+ }
@@ -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,12 +2,10 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * @example
6
- * {
7
- * agentId: "agent_id"
8
- * }
5
+ * Create a template from an existing agent
9
6
  */
10
- export interface TemplatesCreateTemplateRequest {
7
+ export interface TemplatesCreateTemplateRequestAgentId {
8
+ type: "agent";
11
9
  /** The ID of the agent to use as a template, can be from any project */
12
10
  agentId: string;
13
11
  /** Optional custom name for the template. If not provided, a random name will be generated. */
@@ -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,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TemplatesUpdateTemplateDescriptionResponse {
5
+ success: boolean;
6
+ }
@@ -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 });
@@ -25,7 +25,11 @@ export * from "./TemplatesGetTemplateSnapshotResponseConfiguration";
25
25
  export * from "./TemplatesGetTemplateSnapshotResponseType";
26
26
  export * from "./TemplatesGetTemplateSnapshotResponse";
27
27
  export * from "./TemplatesForkTemplateResponse";
28
+ export * from "./TemplatesCreateTemplateRequestAgentId";
29
+ export * from "./TemplatesCreateTemplateRequestAgentFile";
30
+ export * from "./TemplatesCreateTemplateRequest";
28
31
  export * from "./TemplatesCreateTemplateResponse";
29
32
  export * from "./TemplatesRenameTemplateResponse";
33
+ export * from "./TemplatesUpdateTemplateDescriptionResponse";
30
34
  export * from "./TemplatesListTemplateVersionsResponseVersionsItem";
31
35
  export * from "./TemplatesListTemplateVersionsResponse";
@@ -41,7 +41,11 @@ __exportStar(require("./TemplatesGetTemplateSnapshotResponseConfiguration"), exp
41
41
  __exportStar(require("./TemplatesGetTemplateSnapshotResponseType"), exports);
42
42
  __exportStar(require("./TemplatesGetTemplateSnapshotResponse"), exports);
43
43
  __exportStar(require("./TemplatesForkTemplateResponse"), exports);
44
+ __exportStar(require("./TemplatesCreateTemplateRequestAgentId"), exports);
45
+ __exportStar(require("./TemplatesCreateTemplateRequestAgentFile"), exports);
46
+ __exportStar(require("./TemplatesCreateTemplateRequest"), exports);
44
47
  __exportStar(require("./TemplatesCreateTemplateResponse"), exports);
45
48
  __exportStar(require("./TemplatesRenameTemplateResponse"), exports);
49
+ __exportStar(require("./TemplatesUpdateTemplateDescriptionResponse"), exports);
46
50
  __exportStar(require("./TemplatesListTemplateVersionsResponseVersionsItem"), exports);
47
51
  __exportStar(require("./TemplatesListTemplateVersionsResponse"), exports);