@letta-ai/letta-client 0.1.67 → 0.1.69

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 (317) 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/memoryVariables/client/Client.js +1 -1
  6. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  7. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  8. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  9. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  10. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  11. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.d.ts +8 -0
  12. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.d.ts +4 -0
  13. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  14. package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFour.d.ts} +2 -2
  15. package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts → api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.d.ts} +1 -1
  16. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +9 -0
  17. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +4 -0
  18. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  19. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +4 -0
  20. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +1 -0
  21. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.d.ts +5 -0
  22. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.d.ts +4 -0
  23. package/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  24. package/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  25. package/api/resources/agents/types/index.d.ts +10 -4
  26. package/api/resources/agents/types/index.js +10 -4
  27. package/api/resources/blocks/client/Client.js +6 -6
  28. package/api/resources/groups/client/Client.js +7 -7
  29. package/api/resources/health/client/Client.js +1 -1
  30. package/api/resources/identities/client/Client.js +6 -6
  31. package/api/resources/jobs/client/Client.js +4 -4
  32. package/api/resources/models/client/Client.js +2 -2
  33. package/api/resources/providers/client/Client.js +4 -4
  34. package/api/resources/runs/client/Client.js +7 -7
  35. package/api/resources/sources/client/Client.js +6 -6
  36. package/api/resources/sources/resources/files/client/Client.js +3 -3
  37. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  38. package/api/resources/steps/client/Client.js +2 -2
  39. package/api/resources/tag/client/Client.js +1 -1
  40. package/api/resources/templates/client/Client.js +1 -1
  41. package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.d.ts → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.d.ts} +2 -2
  42. package/api/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.d.ts} +1 -1
  43. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  44. package/api/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.d.ts} +2 -2
  45. package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.d.ts → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.d.ts} +1 -1
  46. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +9 -0
  47. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +4 -0
  48. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  49. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
  50. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +4 -0
  51. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.js +5 -0
  52. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +1 -0
  53. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.d.ts +5 -0
  54. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.js +5 -0
  55. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.d.ts +4 -0
  56. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.js +5 -0
  57. package/api/resources/templates/types/index.d.ts +10 -4
  58. package/api/resources/templates/types/index.js +10 -4
  59. package/api/resources/tools/client/Client.js +16 -16
  60. package/api/resources/voice/client/Client.js +1 -1
  61. package/api/types/AgentSchema.d.ts +1 -1
  62. package/api/types/AgentStateToolRulesItem.d.ts +1 -1
  63. package/api/types/MaxCountPerStepToolRule.d.ts +13 -0
  64. package/api/types/MaxCountPerStepToolRule.js +5 -0
  65. package/api/types/Tool.d.ts +2 -0
  66. package/api/types/ToolSchema.d.ts +1 -0
  67. package/api/types/index.d.ts +1 -0
  68. package/api/types/index.js +1 -0
  69. package/dist/api/resources/agents/client/Client.js +10 -10
  70. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  71. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  72. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  73. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  74. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  75. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  76. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  77. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  78. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  79. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.d.ts +8 -0
  80. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.js +5 -0
  81. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.d.ts +4 -0
  82. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.js +5 -0
  83. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  84. package/dist/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFour.d.ts} +2 -2
  85. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFour.js +5 -0
  86. package/{api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts → dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.d.ts} +1 -1
  87. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.js +5 -0
  88. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +9 -0
  89. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.js +5 -0
  90. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +4 -0
  91. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +5 -0
  92. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  93. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
  94. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +4 -0
  95. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.js +5 -0
  96. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +1 -0
  97. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.d.ts +5 -0
  98. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.js +5 -0
  99. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.d.ts +4 -0
  100. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.js +5 -0
  101. package/dist/api/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +1 -1
  102. package/dist/api/resources/agents/types/UpdateAgentToolRulesItem.d.ts +1 -1
  103. package/dist/api/resources/agents/types/index.d.ts +10 -4
  104. package/dist/api/resources/agents/types/index.js +10 -4
  105. package/dist/api/resources/blocks/client/Client.js +6 -6
  106. package/dist/api/resources/groups/client/Client.js +7 -7
  107. package/dist/api/resources/health/client/Client.js +1 -1
  108. package/dist/api/resources/identities/client/Client.js +6 -6
  109. package/dist/api/resources/jobs/client/Client.js +4 -4
  110. package/dist/api/resources/models/client/Client.js +2 -2
  111. package/dist/api/resources/providers/client/Client.js +4 -4
  112. package/dist/api/resources/runs/client/Client.js +7 -7
  113. package/dist/api/resources/sources/client/Client.js +6 -6
  114. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  115. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  116. package/dist/api/resources/steps/client/Client.js +2 -2
  117. package/dist/api/resources/tag/client/Client.js +1 -1
  118. package/dist/api/resources/templates/client/Client.js +1 -1
  119. package/dist/api/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.d.ts} +2 -2
  120. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.js +5 -0
  121. package/{api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.d.ts → dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.d.ts} +1 -1
  122. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.js +5 -0
  123. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.d.ts +1 -1
  124. package/{api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.d.ts → dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.d.ts} +2 -2
  125. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.js +5 -0
  126. package/dist/api/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.d.ts} +1 -1
  127. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.js +5 -0
  128. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +9 -0
  129. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.js +5 -0
  130. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +4 -0
  131. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +5 -0
  132. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +9 -0
  133. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.js +5 -0
  134. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +4 -0
  135. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.js +5 -0
  136. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +1 -0
  137. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.d.ts +5 -0
  138. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.js +5 -0
  139. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.d.ts +4 -0
  140. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.js +5 -0
  141. package/dist/api/resources/templates/types/index.d.ts +10 -4
  142. package/dist/api/resources/templates/types/index.js +10 -4
  143. package/dist/api/resources/tools/client/Client.js +16 -16
  144. package/dist/api/resources/voice/client/Client.js +1 -1
  145. package/dist/api/types/AgentSchema.d.ts +1 -1
  146. package/dist/api/types/AgentStateToolRulesItem.d.ts +1 -1
  147. package/dist/api/types/MaxCountPerStepToolRule.d.ts +13 -0
  148. package/dist/api/types/MaxCountPerStepToolRule.js +5 -0
  149. package/dist/api/types/Tool.d.ts +2 -0
  150. package/dist/api/types/ToolSchema.d.ts +1 -0
  151. package/dist/api/types/index.d.ts +1 -0
  152. package/dist/api/types/index.js +1 -0
  153. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.d.ts +14 -0
  154. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemFour.js} +4 -4
  155. package/{serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts → dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.d.ts} +2 -2
  156. package/{serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js → dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.js} +2 -2
  157. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +3 -2
  158. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.js +4 -2
  159. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFour.d.ts} +4 -4
  160. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemItemFour.js} +4 -4
  161. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolNameType.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFourType.d.ts} +2 -2
  162. package/{serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js → dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.js} +2 -2
  163. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +15 -0
  164. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.js +46 -0
  165. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +10 -0
  166. package/dist/serialization/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.js} +3 -3
  167. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  168. package/dist/serialization/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.js} +5 -4
  169. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +10 -0
  170. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.js +44 -0
  171. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +2 -0
  172. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.js +2 -0
  173. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.d.ts +11 -0
  174. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.js +46 -0
  175. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.d.ts +10 -0
  176. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.js +41 -0
  177. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
  178. package/dist/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +2 -0
  179. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
  180. package/dist/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +2 -0
  181. package/dist/serialization/resources/agents/types/index.d.ts +10 -4
  182. package/dist/serialization/resources/agents/types/index.js +10 -4
  183. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.d.ts} +4 -4
  184. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.js +45 -0
  185. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.d.ts} +2 -2
  186. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.js +44 -0
  187. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.d.ts +3 -2
  188. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.js +4 -2
  189. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.d.ts} +4 -4
  190. package/{serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.js → dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.js} +4 -4
  191. package/{serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.d.ts → dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.d.ts} +2 -2
  192. package/{serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.js → dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.js} +2 -2
  193. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +15 -0
  194. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.js +46 -0
  195. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +10 -0
  196. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +44 -0
  197. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  198. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
  199. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +10 -0
  200. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.js +44 -0
  201. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +2 -0
  202. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.js +2 -0
  203. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.d.ts +11 -0
  204. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.js +46 -0
  205. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.d.ts +10 -0
  206. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.js +41 -0
  207. package/dist/serialization/resources/templates/types/index.d.ts +10 -4
  208. package/dist/serialization/resources/templates/types/index.js +10 -4
  209. package/dist/serialization/types/AgentSchema.d.ts +1 -1
  210. package/dist/serialization/types/AgentSchema.js +1 -1
  211. package/dist/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
  212. package/dist/serialization/types/AgentStateToolRulesItem.js +2 -0
  213. package/dist/serialization/types/MaxCountPerStepToolRule.d.ts +14 -0
  214. package/dist/serialization/types/MaxCountPerStepToolRule.js +45 -0
  215. package/dist/serialization/types/Tool.d.ts +1 -0
  216. package/dist/serialization/types/Tool.js +1 -0
  217. package/dist/serialization/types/ToolSchema.d.ts +1 -0
  218. package/dist/serialization/types/ToolSchema.js +1 -0
  219. package/dist/serialization/types/index.d.ts +1 -0
  220. package/dist/serialization/types/index.js +1 -0
  221. package/dist/version.d.ts +1 -1
  222. package/dist/version.js +1 -1
  223. package/package.json +1 -1
  224. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFour.d.ts +14 -0
  225. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemFour.js} +4 -4
  226. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts → AgentsSearchResponseAgentsItemToolRulesItemFourType.d.ts} +2 -2
  227. package/{dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js → serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemFourType.js} +2 -2
  228. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.d.ts +3 -2
  229. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItem.js +4 -2
  230. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts → AgentsSearchResponseAgentsItemToolRulesItemItemFour.d.ts} +4 -4
  231. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemItemFour.js} +4 -4
  232. package/{dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts → serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.d.ts} +2 -2
  233. package/{dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js → serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemFourType.js} +2 -2
  234. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +15 -0
  235. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.js +46 -0
  236. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +10 -0
  237. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +44 -0
  238. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  239. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
  240. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +10 -0
  241. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.js +44 -0
  242. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.d.ts +2 -0
  243. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItem.js +2 -0
  244. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.d.ts +11 -0
  245. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.js +46 -0
  246. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.d.ts +10 -0
  247. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.js +41 -0
  248. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.d.ts +2 -1
  249. package/serialization/resources/agents/types/CreateAgentRequestToolRulesItem.js +2 -0
  250. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.d.ts +2 -1
  251. package/serialization/resources/agents/types/UpdateAgentToolRulesItem.js +2 -0
  252. package/serialization/resources/agents/types/index.d.ts +10 -4
  253. package/serialization/resources/agents/types/index.js +10 -4
  254. package/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.d.ts} +4 -4
  255. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.js +45 -0
  256. package/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.d.ts} +2 -2
  257. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.js +44 -0
  258. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.d.ts +3 -2
  259. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItem.js +4 -2
  260. package/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.d.ts → TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.d.ts} +4 -4
  261. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.js → serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.js} +4 -4
  262. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.d.ts → serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.d.ts} +2 -2
  263. package/{dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.js → serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.js} +2 -2
  264. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.d.ts +15 -0
  265. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.js +46 -0
  266. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.d.ts +10 -0
  267. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.js +44 -0
  268. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.d.ts +15 -0
  269. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimit.js +46 -0
  270. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.d.ts +10 -0
  271. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemMaxCountLimitType.js +44 -0
  272. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.d.ts +2 -0
  273. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItem.js +2 -0
  274. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.d.ts +11 -0
  275. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadata.js +46 -0
  276. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.d.ts +10 -0
  277. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolsItemMetadataItem.js +41 -0
  278. package/serialization/resources/templates/types/index.d.ts +10 -4
  279. package/serialization/resources/templates/types/index.js +10 -4
  280. package/serialization/types/AgentSchema.d.ts +1 -1
  281. package/serialization/types/AgentSchema.js +1 -1
  282. package/serialization/types/AgentStateToolRulesItem.d.ts +2 -1
  283. package/serialization/types/AgentStateToolRulesItem.js +2 -0
  284. package/serialization/types/MaxCountPerStepToolRule.d.ts +14 -0
  285. package/serialization/types/MaxCountPerStepToolRule.js +45 -0
  286. package/serialization/types/Tool.d.ts +1 -0
  287. package/serialization/types/Tool.js +1 -0
  288. package/serialization/types/ToolSchema.d.ts +1 -0
  289. package/serialization/types/ToolSchema.js +1 -0
  290. package/serialization/types/index.d.ts +1 -0
  291. package/serialization/types/index.js +1 -0
  292. package/version.d.ts +1 -1
  293. package/version.js +1 -1
  294. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts +0 -4
  295. package/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts +0 -8
  296. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.d.ts +0 -4
  297. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.d.ts +0 -8
  298. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts +0 -14
  299. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.d.ts +0 -14
  300. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.js +0 -45
  301. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.js +0 -44
  302. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemFour.js} +0 -0
  303. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js → AgentsSearchResponseAgentsItemToolRulesItemFourType.js} +0 -0
  304. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolName.js → AgentsSearchResponseAgentsItemToolRulesItemItemFour.js} +0 -0
  305. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js → AgentsSearchResponseAgentsItemToolRulesItemItemFourType.js} +0 -0
  306. /package/api/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimit.js} +0 -0
  307. /package/api/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemMaxCountLimitType.js} +0 -0
  308. /package/api/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimit.js} +0 -0
  309. /package/api/resources/{templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.js → agents/types/AgentsSearchResponseAgentsItemToolRulesItemMaxCountLimitType.js} +0 -0
  310. /package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolName.js → api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadata.js} +0 -0
  311. /package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType.js → api/resources/agents/types/AgentsSearchResponseAgentsItemToolsItemMetadataItem.js} +0 -0
  312. /package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolName.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFour.js} +0 -0
  313. /package/{dist/api/resources/agents/types/AgentsSearchResponseAgentsItemToolRulesItemToolNameType.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemFourType.js} +0 -0
  314. /package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolName.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFour.js} +0 -0
  315. /package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemToolNameType.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemFourType.js} +0 -0
  316. /package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolName.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimit.js} +0 -0
  317. /package/{dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemToolNameType.js → api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemToolRulesItemItemMaxCountLimitType.js} +0 -0
@@ -96,7 +96,7 @@ class Blocks {
96
96
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
97
97
  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/blocks/"),
98
98
  method: "GET",
99
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
99
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  requestType: "json",
@@ -163,7 +163,7 @@ class Blocks {
163
163
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
164
164
  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/blocks/"),
165
165
  method: "POST",
166
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
166
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
167
  contentType: "application/json",
168
168
  requestType: "json",
169
169
  body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -227,7 +227,7 @@ class Blocks {
227
227
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
228
228
  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/blocks/${encodeURIComponent(blockId)}`),
229
229
  method: "GET",
230
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
230
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
231
231
  contentType: "application/json",
232
232
  requestType: "json",
233
233
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -290,7 +290,7 @@ class Blocks {
290
290
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
291
291
  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/blocks/${encodeURIComponent(blockId)}`),
292
292
  method: "DELETE",
293
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
293
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
294
294
  contentType: "application/json",
295
295
  requestType: "json",
296
296
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -354,7 +354,7 @@ class Blocks {
354
354
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
355
355
  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/blocks/${encodeURIComponent(blockId)}`),
356
356
  method: "PATCH",
357
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
357
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
358
358
  contentType: "application/json",
359
359
  requestType: "json",
360
360
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -421,7 +421,7 @@ class Blocks {
421
421
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
422
422
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/blocks/${encodeURIComponent(blockId)}/agents`),
423
423
  method: "GET",
424
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
424
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
425
425
  contentType: "application/json",
426
426
  requestType: "json",
427
427
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -93,7 +93,7 @@ class Groups {
93
93
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
94
94
  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/groups/"),
95
95
  method: "GET",
96
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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",
@@ -165,7 +165,7 @@ class Groups {
165
165
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
166
166
  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/groups/"),
167
167
  method: "POST",
168
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  body: serializers.GroupCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class Groups {
237
237
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
238
238
  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/groups/"),
239
239
  method: "PUT",
240
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
241
241
  contentType: "application/json",
242
242
  requestType: "json",
243
243
  body: serializers.GroupCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -303,7 +303,7 @@ class Groups {
303
303
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
304
304
  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/groups/${encodeURIComponent(groupId)}`),
305
305
  method: "DELETE",
306
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
306
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
307
307
  contentType: "application/json",
308
308
  requestType: "json",
309
309
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -383,7 +383,7 @@ class Groups {
383
383
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
384
384
  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/groups/${encodeURIComponent(groupId)}/messages`),
385
385
  method: "GET",
386
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
386
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
387
387
  contentType: "application/json",
388
388
  queryParameters: _queryParams,
389
389
  requestType: "json",
@@ -465,7 +465,7 @@ class Groups {
465
465
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
466
466
  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/groups/${encodeURIComponent(groupId)}/messages`),
467
467
  method: "POST",
468
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
468
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
469
469
  contentType: "application/json",
470
470
  queryParameters: _queryParams,
471
471
  requestType: "json",
@@ -543,7 +543,7 @@ class Groups {
543
543
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
544
544
  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/groups/${encodeURIComponent(groupId)}/messages/stream`),
545
545
  method: "POST",
546
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
546
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
547
547
  contentType: "application/json",
548
548
  requestType: "json",
549
549
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -70,7 +70,7 @@ class Health {
70
70
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
71
  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/health/"),
72
72
  method: "GET",
73
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
73
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
74
74
  contentType: "application/json",
75
75
  requestType: "json",
76
76
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -99,7 +99,7 @@ class Identities {
99
99
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
100
100
  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/identities/"),
101
101
  method: "GET",
102
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
102
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
103
103
  contentType: "application/json",
104
104
  queryParameters: _queryParams,
105
105
  requestType: "json",
@@ -170,7 +170,7 @@ class Identities {
170
170
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
171
171
  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/identities/"),
172
172
  method: "POST",
173
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
173
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
174
174
  contentType: "application/json",
175
175
  requestType: "json",
176
176
  body: serializers.IdentityCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -241,7 +241,7 @@ class Identities {
241
241
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
242
242
  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/identities/"),
243
243
  method: "PUT",
244
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
244
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "X-Project": project != null ? project : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
245
245
  contentType: "application/json",
246
246
  requestType: "json",
247
247
  body: serializers.IdentityCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -305,7 +305,7 @@ class Identities {
305
305
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
306
306
  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/identities/${encodeURIComponent(identityId)}`),
307
307
  method: "GET",
308
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
308
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
309
309
  contentType: "application/json",
310
310
  requestType: "json",
311
311
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -370,7 +370,7 @@ class Identities {
370
370
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
371
371
  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/identities/${encodeURIComponent(identityId)}`),
372
372
  method: "DELETE",
373
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
373
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
374
374
  contentType: "application/json",
375
375
  requestType: "json",
376
376
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -428,7 +428,7 @@ class Identities {
428
428
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
429
429
  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/identities/${encodeURIComponent(identityId)}`),
430
430
  method: "PATCH",
431
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
431
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
432
432
  contentType: "application/json",
433
433
  requestType: "json",
434
434
  body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -81,7 +81,7 @@ class Jobs {
81
81
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
82
  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/jobs/"),
83
83
  method: "GET",
84
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -146,7 +146,7 @@ class Jobs {
146
146
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
147
147
  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/jobs/active"),
148
148
  method: "GET",
149
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
150
150
  contentType: "application/json",
151
151
  requestType: "json",
152
152
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Jobs {
211
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
212
  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/jobs/${encodeURIComponent(jobId)}`),
213
213
  method: "GET",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
215
215
  contentType: "application/json",
216
216
  requestType: "json",
217
217
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -276,7 +276,7 @@ class Jobs {
276
276
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
277
277
  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/jobs/${encodeURIComponent(jobId)}`),
278
278
  method: "DELETE",
279
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
279
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
280
280
  contentType: "application/json",
281
281
  requestType: "json",
282
282
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -70,7 +70,7 @@ class Models {
70
70
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
71
71
  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/models/"),
72
72
  method: "GET",
73
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
73
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
74
74
  contentType: "application/json",
75
75
  requestType: "json",
76
76
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -119,7 +119,7 @@ class Models {
119
119
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
120
120
  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/models/embedding"),
121
121
  method: "GET",
122
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
123
123
  contentType: "application/json",
124
124
  requestType: "json",
125
125
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -84,7 +84,7 @@ class Providers {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/providers/"),
86
86
  method: "GET",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -153,7 +153,7 @@ class Providers {
153
153
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
154
154
  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/providers/"),
155
155
  method: "POST",
156
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
156
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
157
  contentType: "application/json",
158
158
  requestType: "json",
159
159
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -224,7 +224,7 @@ class Providers {
224
224
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
225
225
  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/providers/"),
226
226
  method: "DELETE",
227
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
227
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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
228
  contentType: "application/json",
229
229
  queryParameters: _queryParams,
230
230
  requestType: "json",
@@ -287,7 +287,7 @@ class Providers {
287
287
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
288
288
  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/providers/"),
289
289
  method: "PATCH",
290
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
290
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
291
291
  contentType: "application/json",
292
292
  requestType: "json",
293
293
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -75,7 +75,7 @@ class Runs {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  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/runs/"),
77
77
  method: "GET",
78
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -139,7 +139,7 @@ class Runs {
139
139
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
140
140
  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/runs/active"),
141
141
  method: "GET",
142
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
142
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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
143
  contentType: "application/json",
144
144
  requestType: "json",
145
145
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -204,7 +204,7 @@ class Runs {
204
204
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
205
205
  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/runs/${encodeURIComponent(runId)}`),
206
206
  method: "GET",
207
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
207
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
208
208
  contentType: "application/json",
209
209
  requestType: "json",
210
210
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -269,7 +269,7 @@ class Runs {
269
269
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
270
270
  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/runs/${encodeURIComponent(runId)}`),
271
271
  method: "DELETE",
272
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
272
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
273
273
  contentType: "application/json",
274
274
  requestType: "json",
275
275
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -365,7 +365,7 @@ class Runs {
365
365
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
366
366
  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/runs/${encodeURIComponent(runId)}/messages`),
367
367
  method: "GET",
368
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
368
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
369
369
  contentType: "application/json",
370
370
  queryParameters: _queryParams,
371
371
  requestType: "json",
@@ -431,7 +431,7 @@ class Runs {
431
431
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
432
432
  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/runs/${encodeURIComponent(runId)}/usage`),
433
433
  method: "GET",
434
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
434
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
435
435
  contentType: "application/json",
436
436
  requestType: "json",
437
437
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -521,7 +521,7 @@ class Runs {
521
521
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
522
522
  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/runs/${encodeURIComponent(runId)}/steps`),
523
523
  method: "GET",
524
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
524
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
525
525
  contentType: "application/json",
526
526
  queryParameters: _queryParams,
527
527
  requestType: "json",
@@ -86,7 +86,7 @@ class Sources {
86
86
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
87
87
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
88
88
  method: "GET",
89
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
89
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
90
  contentType: "application/json",
91
91
  requestType: "json",
92
92
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -151,7 +151,7 @@ class Sources {
151
151
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
152
152
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
153
153
  method: "DELETE",
154
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
154
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
155
155
  contentType: "application/json",
156
156
  requestType: "json",
157
157
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -211,7 +211,7 @@ class Sources {
211
211
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
212
212
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}`),
213
213
  method: "PATCH",
214
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
214
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
215
215
  contentType: "application/json",
216
216
  requestType: "json",
217
217
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -277,7 +277,7 @@ class Sources {
277
277
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
278
278
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/name/${encodeURIComponent(sourceName)}`),
279
279
  method: "GET",
280
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
280
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
281
281
  contentType: "application/json",
282
282
  requestType: "json",
283
283
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -341,7 +341,7 @@ class Sources {
341
341
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
342
342
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
343
343
  method: "GET",
344
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
344
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
345
345
  contentType: "application/json",
346
346
  requestType: "json",
347
347
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -408,7 +408,7 @@ class Sources {
408
408
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
409
409
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/sources/"),
410
410
  method: "POST",
411
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
411
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
412
412
  contentType: "application/json",
413
413
  requestType: "json",
414
414
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -80,7 +80,7 @@ class Files {
80
80
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
81
81
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/upload`),
82
82
  method: "POST",
83
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
83
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
84
84
  requestType: "file",
85
85
  duplex: _maybeEncodedRequest.duplex,
86
86
  body: _maybeEncodedRequest.body,
@@ -155,7 +155,7 @@ class Files {
155
155
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
156
156
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/files`),
157
157
  method: "GET",
158
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
158
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
159
159
  contentType: "application/json",
160
160
  queryParameters: _queryParams,
161
161
  requestType: "json",
@@ -222,7 +222,7 @@ class Files {
222
222
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
223
223
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/${encodeURIComponent(fileId)}`),
224
224
  method: "DELETE",
225
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
225
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
226
226
  contentType: "application/json",
227
227
  requestType: "json",
228
228
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -76,7 +76,7 @@ class Passages {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/sources/${encodeURIComponent(sourceId)}/passages`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -103,7 +103,7 @@ class Steps {
103
103
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
104
104
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/steps"),
105
105
  method: "GET",
106
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -169,7 +169,7 @@ class Steps {
169
169
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
170
170
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/steps/${encodeURIComponent(stepId)}`),
171
171
  method: "GET",
172
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "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),
172
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "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),
173
173
  contentType: "application/json",
174
174
  requestType: "json",
175
175
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -87,7 +87,7 @@ class Tag {
87
87
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
88
88
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tags/"),
89
89
  method: "GET",
90
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -75,7 +75,7 @@ class Templates {
75
75
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
76
76
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/templates/${encodeURIComponent(project)}/${encodeURIComponent(templateVersion)}/agents`),
77
77
  method: "POST",
78
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.67", "User-Agent": "@letta-ai/letta-client/0.1.67", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.69", "User-Agent": "@letta-ai/letta-client/0.1.69", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  body: serializers.TemplatesCreateAgentsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),