@letta-ai/letta-client 0.1.37 → 0.1.39

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 (295) hide show
  1. package/api/resources/agents/client/Client.d.ts +6 -3
  2. package/api/resources/agents/client/Client.js +29 -19
  3. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +2 -2
  4. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  5. package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -2
  6. package/api/resources/agents/resources/blocks/client/Client.d.ts +97 -0
  7. package/api/resources/agents/resources/blocks/client/Client.js +400 -0
  8. package/api/resources/agents/resources/blocks/client/index.d.ts +1 -0
  9. package/api/resources/agents/resources/context/client/Client.js +1 -1
  10. package/api/resources/agents/resources/coreMemory/client/Client.d.ts +0 -65
  11. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -332
  12. package/api/resources/agents/resources/index.d.ts +3 -2
  13. package/api/resources/agents/resources/index.js +4 -3
  14. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  15. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  16. package/api/resources/agents/resources/{archivalMemory → passages}/client/Client.d.ts +14 -14
  17. package/{dist/api/resources/agents/resources/archivalMemory → api/resources/agents/resources/passages}/client/Client.js +15 -15
  18. package/api/resources/agents/resources/{archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts → passages/client/requests/PassagesListRequest.d.ts} +1 -1
  19. package/api/resources/agents/resources/passages/client/requests/index.d.ts +2 -0
  20. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  21. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  22. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  23. package/api/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +1 -1
  24. package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.d.ts +4 -0
  25. package/api/resources/agents/types/index.d.ts +1 -2
  26. package/api/resources/agents/types/index.js +1 -2
  27. package/api/resources/blocks/client/Client.js +6 -6
  28. package/api/resources/health/client/Client.js +1 -1
  29. package/api/resources/identities/client/Client.d.ts +18 -18
  30. package/api/resources/identities/client/Client.js +36 -33
  31. package/api/resources/identities/client/requests/{UpsertIdentityRequest.d.ts → IdentitiesCreateRequest.d.ts} +1 -1
  32. package/{dist/api/resources/identities/client/requests/ListIdentitiesRequest.d.ts → api/resources/identities/client/requests/IdentitiesListRequest.d.ts} +2 -1
  33. package/{dist/api/resources/identities/client/requests/CreateIdentityRequest.d.ts → api/resources/identities/client/requests/IdentitiesUpsertRequest.d.ts} +1 -1
  34. package/api/resources/identities/client/requests/IdentityUpdate.d.ts +4 -0
  35. package/api/resources/identities/client/requests/index.d.ts +3 -3
  36. package/api/resources/jobs/client/Client.js +4 -4
  37. package/api/resources/models/client/Client.js +2 -2
  38. package/api/resources/providers/client/Client.js +4 -4
  39. package/api/resources/runs/client/Client.js +6 -6
  40. package/api/resources/sources/client/Client.js +6 -6
  41. package/api/resources/sources/resources/files/client/Client.js +3 -3
  42. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  43. package/api/resources/steps/client/Client.js +2 -2
  44. package/api/resources/tag/client/Client.js +1 -1
  45. package/api/resources/templates/client/Client.js +1 -1
  46. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.d.ts +1 -1
  47. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.d.ts +4 -0
  48. package/api/resources/templates/types/index.d.ts +1 -2
  49. package/api/resources/templates/types/index.js +1 -2
  50. package/api/resources/tools/client/Client.js +11 -11
  51. package/api/types/AgentState.d.ts +2 -2
  52. package/api/types/Identity.d.ts +4 -2
  53. package/api/types/IdentityCreate.d.ts +2 -0
  54. package/api/types/IdentityProperty.d.ts +15 -0
  55. package/api/types/IdentityPropertyType.d.ts +13 -0
  56. package/api/types/IdentityPropertyType.js +12 -0
  57. package/api/types/IdentityPropertyValue.d.ts +7 -0
  58. package/api/types/index.d.ts +3 -0
  59. package/api/types/index.js +3 -0
  60. package/dist/api/resources/agents/client/Client.d.ts +6 -3
  61. package/dist/api/resources/agents/client/Client.js +29 -19
  62. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +2 -2
  63. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -2
  64. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -2
  65. package/dist/api/resources/agents/resources/blocks/client/Client.d.ts +97 -0
  66. package/dist/api/resources/agents/resources/blocks/client/Client.js +400 -0
  67. package/dist/api/resources/agents/resources/blocks/client/index.d.ts +1 -0
  68. package/dist/api/resources/agents/resources/blocks/client/index.js +2 -0
  69. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  70. package/dist/api/resources/agents/resources/coreMemory/client/Client.d.ts +0 -65
  71. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -332
  72. package/dist/api/resources/agents/resources/index.d.ts +3 -2
  73. package/dist/api/resources/agents/resources/index.js +4 -3
  74. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  75. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  76. package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/Client.d.ts +14 -14
  77. package/{api/resources/agents/resources/archivalMemory → dist/api/resources/agents/resources/passages}/client/Client.js +15 -15
  78. package/dist/api/resources/agents/resources/{archivalMemory/client/requests/ArchivalMemoryListRequest.d.ts → passages/client/requests/PassagesListRequest.d.ts} +1 -1
  79. package/dist/api/resources/agents/resources/passages/client/requests/index.d.ts +2 -0
  80. package/dist/api/resources/agents/resources/passages/client/requests/index.js +2 -0
  81. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  82. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  83. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  84. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +1 -1
  85. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.d.ts +4 -0
  86. package/dist/api/resources/agents/types/index.d.ts +1 -2
  87. package/dist/api/resources/agents/types/index.js +1 -2
  88. package/dist/api/resources/blocks/client/Client.js +6 -6
  89. package/dist/api/resources/health/client/Client.js +1 -1
  90. package/dist/api/resources/identities/client/Client.d.ts +18 -18
  91. package/dist/api/resources/identities/client/Client.js +36 -33
  92. package/dist/api/resources/identities/client/requests/{UpsertIdentityRequest.d.ts → IdentitiesCreateRequest.d.ts} +1 -1
  93. package/{api/resources/identities/client/requests/ListIdentitiesRequest.d.ts → dist/api/resources/identities/client/requests/IdentitiesListRequest.d.ts} +2 -1
  94. package/{api/resources/identities/client/requests/CreateIdentityRequest.d.ts → dist/api/resources/identities/client/requests/IdentitiesUpsertRequest.d.ts} +1 -1
  95. package/dist/api/resources/identities/client/requests/IdentityUpdate.d.ts +4 -0
  96. package/dist/api/resources/identities/client/requests/index.d.ts +3 -3
  97. package/dist/api/resources/jobs/client/Client.js +4 -4
  98. package/dist/api/resources/models/client/Client.js +2 -2
  99. package/dist/api/resources/providers/client/Client.js +4 -4
  100. package/dist/api/resources/runs/client/Client.js +6 -6
  101. package/dist/api/resources/sources/client/Client.js +6 -6
  102. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  103. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  104. package/dist/api/resources/steps/client/Client.js +2 -2
  105. package/dist/api/resources/tag/client/Client.js +1 -1
  106. package/dist/api/resources/templates/client/Client.js +1 -1
  107. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.d.ts +1 -1
  108. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.d.ts +4 -0
  109. package/dist/api/resources/templates/types/index.d.ts +1 -2
  110. package/dist/api/resources/templates/types/index.js +1 -2
  111. package/dist/api/resources/tools/client/Client.js +11 -11
  112. package/dist/api/types/AgentState.d.ts +2 -2
  113. package/dist/api/types/Identity.d.ts +4 -2
  114. package/dist/api/types/IdentityCreate.d.ts +2 -0
  115. package/dist/api/types/IdentityProperty.d.ts +15 -0
  116. package/dist/api/types/IdentityPropertyType.d.ts +13 -0
  117. package/dist/api/types/IdentityPropertyType.js +12 -0
  118. package/dist/api/types/IdentityPropertyValue.d.ts +7 -0
  119. package/dist/api/types/index.d.ts +3 -0
  120. package/dist/api/types/index.js +3 -0
  121. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  122. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
  123. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -1
  124. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -1
  125. package/dist/serialization/resources/agents/resources/blocks/client/index.d.ts +1 -0
  126. package/dist/serialization/resources/agents/resources/{coreMemory → blocks}/client/index.js +2 -2
  127. package/dist/serialization/resources/agents/resources/{coreMemory/client/listBlocks.d.ts → blocks/client/list.d.ts} +1 -1
  128. package/dist/serialization/resources/agents/resources/index.d.ts +3 -3
  129. package/dist/serialization/resources/agents/resources/index.js +4 -4
  130. package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.d.ts +1 -1
  131. package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.d.ts +1 -1
  132. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +2 -2
  133. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.js +2 -2
  134. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.d.ts +10 -0
  135. package/dist/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemIdentifierKeyItem.js → AgentsSearchResponseAgentsItemIdentityIds.js} +5 -2
  136. package/dist/serialization/resources/agents/types/index.d.ts +1 -2
  137. package/dist/serialization/resources/agents/types/index.js +1 -2
  138. package/dist/serialization/resources/identities/client/index.d.ts +1 -1
  139. package/dist/serialization/resources/identities/client/index.js +2 -2
  140. package/dist/serialization/resources/identities/client/{listIdentities.d.ts → list.d.ts} +1 -1
  141. package/dist/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +3 -0
  142. package/dist/serialization/resources/identities/client/requests/IdentityUpdate.js +3 -0
  143. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.d.ts +2 -2
  144. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.js +2 -2
  145. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.d.ts → TemplatesCreateAgentsResponseAgentsItemIdentityIds.d.ts} +3 -3
  146. package/dist/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.js → TemplatesCreateAgentsResponseAgentsItemIdentityIds.js} +5 -2
  147. package/dist/serialization/resources/templates/types/index.d.ts +1 -2
  148. package/dist/serialization/resources/templates/types/index.js +1 -2
  149. package/dist/serialization/types/AgentState.d.ts +1 -1
  150. package/dist/serialization/types/AgentState.js +1 -1
  151. package/dist/serialization/types/Identity.d.ts +3 -2
  152. package/dist/serialization/types/Identity.js +3 -2
  153. package/dist/serialization/types/IdentityCreate.d.ts +2 -0
  154. package/dist/serialization/types/IdentityCreate.js +2 -0
  155. package/dist/serialization/types/IdentityProperty.d.ts +16 -0
  156. package/dist/serialization/types/IdentityProperty.js +47 -0
  157. package/dist/serialization/types/IdentityPropertyType.d.ts +10 -0
  158. package/dist/serialization/types/IdentityPropertyType.js +41 -0
  159. package/dist/serialization/types/IdentityPropertyValue.d.ts +10 -0
  160. package/dist/serialization/types/IdentityPropertyValue.js +47 -0
  161. package/dist/serialization/types/index.d.ts +3 -0
  162. package/dist/serialization/types/index.js +3 -0
  163. package/dist/version.d.ts +1 -1
  164. package/dist/version.js +1 -1
  165. package/package.json +1 -1
  166. package/reference.md +46 -44
  167. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +1 -1
  168. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -1
  169. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -1
  170. package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -1
  171. package/serialization/resources/agents/resources/blocks/client/index.d.ts +1 -0
  172. package/serialization/resources/agents/resources/{coreMemory → blocks}/client/index.js +2 -2
  173. package/serialization/resources/agents/resources/{coreMemory/client/listBlocks.d.ts → blocks/client/list.d.ts} +1 -1
  174. package/serialization/resources/agents/resources/blocks/index.d.ts +1 -0
  175. package/serialization/resources/agents/resources/blocks/index.js +17 -0
  176. package/serialization/resources/agents/resources/index.d.ts +3 -3
  177. package/serialization/resources/agents/resources/index.js +4 -4
  178. package/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.d.ts +1 -1
  179. package/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.d.ts +1 -1
  180. package/serialization/resources/agents/resources/passages/index.d.ts +1 -0
  181. package/serialization/resources/agents/resources/passages/index.js +17 -0
  182. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +2 -2
  183. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.js +2 -2
  184. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentityIds.d.ts +10 -0
  185. package/serialization/resources/agents/types/{AgentsSearchResponseAgentsItemIdentifierKeyItem.js → AgentsSearchResponseAgentsItemIdentityIds.js} +5 -2
  186. package/serialization/resources/agents/types/index.d.ts +1 -2
  187. package/serialization/resources/agents/types/index.js +1 -2
  188. package/serialization/resources/identities/client/index.d.ts +1 -1
  189. package/serialization/resources/identities/client/index.js +2 -2
  190. package/serialization/resources/identities/client/{listIdentities.d.ts → list.d.ts} +1 -1
  191. package/serialization/resources/identities/client/requests/IdentityUpdate.d.ts +3 -0
  192. package/serialization/resources/identities/client/requests/IdentityUpdate.js +3 -0
  193. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.d.ts +2 -2
  194. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItem.js +2 -2
  195. package/serialization/resources/templates/types/{TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.d.ts → TemplatesCreateAgentsResponseAgentsItemIdentityIds.d.ts} +3 -3
  196. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.js +44 -0
  197. package/serialization/resources/templates/types/index.d.ts +1 -2
  198. package/serialization/resources/templates/types/index.js +1 -2
  199. package/serialization/types/AgentState.d.ts +1 -1
  200. package/serialization/types/AgentState.js +1 -1
  201. package/serialization/types/Identity.d.ts +3 -2
  202. package/serialization/types/Identity.js +3 -2
  203. package/serialization/types/IdentityCreate.d.ts +2 -0
  204. package/serialization/types/IdentityCreate.js +2 -0
  205. package/serialization/types/IdentityProperty.d.ts +16 -0
  206. package/serialization/types/IdentityProperty.js +47 -0
  207. package/serialization/types/IdentityPropertyType.d.ts +10 -0
  208. package/serialization/types/IdentityPropertyType.js +41 -0
  209. package/serialization/types/IdentityPropertyValue.d.ts +10 -0
  210. package/serialization/types/IdentityPropertyValue.js +47 -0
  211. package/serialization/types/index.d.ts +3 -0
  212. package/serialization/types/index.js +3 -0
  213. package/version.d.ts +1 -1
  214. package/version.js +1 -1
  215. package/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -2
  216. package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +0 -5
  217. package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +0 -4
  218. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.d.ts +0 -5
  219. package/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.d.ts +0 -4
  220. package/dist/api/resources/agents/resources/archivalMemory/client/requests/index.d.ts +0 -2
  221. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +0 -5
  222. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +0 -4
  223. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.d.ts +0 -5
  224. package/dist/api/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.d.ts +0 -4
  225. package/dist/serialization/resources/agents/resources/coreMemory/client/index.d.ts +0 -1
  226. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +0 -11
  227. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +0 -47
  228. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +0 -10
  229. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.d.ts +0 -11
  230. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.js +0 -47
  231. package/serialization/resources/agents/resources/coreMemory/client/index.d.ts +0 -1
  232. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +0 -11
  233. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +0 -47
  234. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +0 -10
  235. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.d.ts +0 -11
  236. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.js +0 -47
  237. package/serialization/resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.js +0 -41
  238. /package/api/resources/agents/resources/{archivalMemory/client/requests → blocks/client}/index.js +0 -0
  239. /package/api/resources/agents/resources/{archivalMemory → blocks}/index.d.ts +0 -0
  240. /package/api/resources/agents/resources/{archivalMemory → blocks}/index.js +0 -0
  241. /package/api/resources/agents/resources/{archivalMemory → passages}/client/index.d.ts +0 -0
  242. /package/api/resources/agents/resources/{archivalMemory → passages}/client/index.js +0 -0
  243. /package/api/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.d.ts +0 -0
  244. /package/api/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.js +0 -0
  245. /package/api/resources/agents/resources/{archivalMemory/client/requests/ArchivalMemoryListRequest.js → passages/client/requests/PassagesListRequest.js} +0 -0
  246. /package/{dist/api/resources/agents/resources/archivalMemory → api/resources/agents/resources/passages}/client/requests/index.js +0 -0
  247. /package/{dist/api/resources/agents/resources/archivalMemory → api/resources/agents/resources/passages}/index.d.ts +0 -0
  248. /package/{dist/api/resources/agents/resources/archivalMemory → api/resources/agents/resources/passages}/index.js +0 -0
  249. /package/api/resources/agents/types/{AgentsSearchResponseAgentsItemIdentifierKey.js → AgentsSearchResponseAgentsItemIdentityIds.js} +0 -0
  250. /package/api/resources/{agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js → identities/client/requests/IdentitiesCreateRequest.js} +0 -0
  251. /package/api/resources/identities/client/requests/{CreateIdentityRequest.js → IdentitiesListRequest.js} +0 -0
  252. /package/api/resources/identities/client/requests/{ListIdentitiesRequest.js → IdentitiesUpsertRequest.js} +0 -0
  253. /package/api/resources/{identities/client/requests/UpsertIdentityRequest.js → templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.js} +0 -0
  254. /package/api/{resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.js → types/IdentityProperty.js} +0 -0
  255. /package/api/{resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.js → types/IdentityPropertyValue.js} +0 -0
  256. /package/dist/{serialization/resources/agents/resources/archivalMemory → api/resources/agents/resources/blocks}/index.d.ts +0 -0
  257. /package/dist/{serialization/resources/agents/resources/archivalMemory → api/resources/agents/resources/blocks}/index.js +0 -0
  258. /package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/index.d.ts +0 -0
  259. /package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/index.js +0 -0
  260. /package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.d.ts +0 -0
  261. /package/dist/api/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.js +0 -0
  262. /package/dist/api/resources/agents/resources/{archivalMemory/client/requests/ArchivalMemoryListRequest.js → passages/client/requests/PassagesListRequest.js} +0 -0
  263. /package/dist/{serialization/resources/agents/resources/coreMemory → api/resources/agents/resources/passages}/index.d.ts +0 -0
  264. /package/dist/{serialization/resources/agents/resources/coreMemory → api/resources/agents/resources/passages}/index.js +0 -0
  265. /package/dist/api/resources/agents/types/{AgentsSearchResponseAgentsItemIdentifierKey.js → AgentsSearchResponseAgentsItemIdentityIds.js} +0 -0
  266. /package/dist/api/resources/{agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js → identities/client/requests/IdentitiesCreateRequest.js} +0 -0
  267. /package/dist/api/resources/identities/client/requests/{CreateIdentityRequest.js → IdentitiesListRequest.js} +0 -0
  268. /package/dist/api/resources/identities/client/requests/{ListIdentitiesRequest.js → IdentitiesUpsertRequest.js} +0 -0
  269. /package/dist/api/resources/{identities/client/requests/UpsertIdentityRequest.js → templates/types/TemplatesCreateAgentsResponseAgentsItemIdentityIds.js} +0 -0
  270. /package/dist/api/{resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKey.js → types/IdentityProperty.js} +0 -0
  271. /package/dist/api/{resources/templates/types/TemplatesCreateAgentsResponseAgentsItemIdentifierKeyItem.js → types/IdentityPropertyValue.js} +0 -0
  272. /package/dist/serialization/resources/agents/resources/{coreMemory/client/listBlocks.js → blocks/client/list.js} +0 -0
  273. /package/{serialization/resources/agents/resources/archivalMemory → dist/serialization/resources/agents/resources/blocks}/index.d.ts +0 -0
  274. /package/{serialization/resources/agents/resources/archivalMemory → dist/serialization/resources/agents/resources/blocks}/index.js +0 -0
  275. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.js +0 -0
  276. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/index.d.ts +0 -0
  277. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/index.js +0 -0
  278. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.js +0 -0
  279. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.d.ts +0 -0
  280. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.js +0 -0
  281. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/index.d.ts +0 -0
  282. /package/dist/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/index.js +0 -0
  283. /package/{serialization/resources/agents/resources/coreMemory → dist/serialization/resources/agents/resources/passages}/index.d.ts +0 -0
  284. /package/{serialization/resources/agents/resources/coreMemory → dist/serialization/resources/agents/resources/passages}/index.js +0 -0
  285. /package/dist/serialization/resources/identities/client/{listIdentities.js → list.js} +0 -0
  286. /package/serialization/resources/agents/resources/{coreMemory/client/listBlocks.js → blocks/client/list.js} +0 -0
  287. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/create.js +0 -0
  288. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/index.d.ts +0 -0
  289. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/index.js +0 -0
  290. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/list.js +0 -0
  291. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.d.ts +0 -0
  292. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/CreateArchivalMemory.js +0 -0
  293. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/index.d.ts +0 -0
  294. /package/serialization/resources/agents/resources/{archivalMemory → passages}/client/requests/index.js +0 -0
  295. /package/serialization/resources/identities/client/{listIdentities.js → list.js} +0 -0
@@ -5,7 +5,7 @@
5
5
  * @example
6
6
  * {}
7
7
  */
8
- export interface ArchivalMemoryListRequest {
8
+ export interface PassagesListRequest {
9
9
  /**
10
10
  * Unique ID of the memory to start the query range at.
11
11
  */
@@ -0,0 +1,2 @@
1
+ export { type PassagesListRequest } from "./PassagesListRequest";
2
+ export { type CreateArchivalMemory } from "./CreateArchivalMemory";
@@ -77,7 +77,7 @@ class Sources {
77
77
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
78
78
  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/agents/${encodeURIComponent(agentId)}/sources/attach/${encodeURIComponent(sourceId)}`),
79
79
  method: "PATCH",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -143,7 +143,7 @@ class Sources {
143
143
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
144
144
  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/agents/${encodeURIComponent(agentId)}/sources/detach/${encodeURIComponent(sourceId)}`),
145
145
  method: "PATCH",
146
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
147
  contentType: "application/json",
148
148
  requestType: "json",
149
149
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -208,7 +208,7 @@ class Sources {
208
208
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
209
209
  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/agents/${encodeURIComponent(agentId)}/sources`),
210
210
  method: "GET",
211
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -96,7 +96,7 @@ class Templates {
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/agents/${encodeURIComponent(agentId)}/version-template`),
98
98
  method: "POST",
99
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-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.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-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 Templates {
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/agents/${encodeURIComponent(agentId)}/migrate`),
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.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-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.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-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.agents.TemplatesMigrateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -236,7 +236,7 @@ class Templates {
236
236
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
237
237
  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/agents/${encodeURIComponent(agentId)}/template`),
238
238
  method: "POST",
239
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
240
  contentType: "application/json",
241
241
  requestType: "json",
242
242
  body: serializers.agents.TemplatesCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/agents/${encodeURIComponent(agentId)}/tools`),
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.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-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.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-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,
@@ -142,7 +142,7 @@ class Tools {
142
142
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
143
143
  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/agents/${encodeURIComponent(agentId)}/tools/attach/${encodeURIComponent(toolId)}`),
144
144
  method: "PATCH",
145
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
146
  contentType: "application/json",
147
147
  requestType: "json",
148
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -208,7 +208,7 @@ class Tools {
208
208
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
209
209
  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/agents/${encodeURIComponent(agentId)}/tools/detach/${encodeURIComponent(toolId)}`),
210
210
  method: "PATCH",
211
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
212
  contentType: "application/json",
213
213
  requestType: "json",
214
214
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -26,7 +26,7 @@ export interface AgentsSearchResponseAgentsItem {
26
26
  projectId?: Letta.AgentsSearchResponseAgentsItemProjectId;
27
27
  templateId?: Letta.AgentsSearchResponseAgentsItemTemplateId;
28
28
  baseTemplateId?: Letta.AgentsSearchResponseAgentsItemBaseTemplateId;
29
- identifierKey?: Letta.AgentsSearchResponseAgentsItemIdentifierKey;
29
+ identityIds?: Letta.AgentsSearchResponseAgentsItemIdentityIds;
30
30
  messageBufferAutoclear?: Letta.AgentsSearchResponseAgentsItemMessageBufferAutoclear;
31
31
  template?: string;
32
32
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type AgentsSearchResponseAgentsItemIdentityIds = string[] | unknown;
@@ -167,8 +167,7 @@ export * from "./AgentsSearchResponseAgentsItemTemplateIdItem";
167
167
  export * from "./AgentsSearchResponseAgentsItemTemplateId";
168
168
  export * from "./AgentsSearchResponseAgentsItemBaseTemplateIdItem";
169
169
  export * from "./AgentsSearchResponseAgentsItemBaseTemplateId";
170
- export * from "./AgentsSearchResponseAgentsItemIdentifierKeyItem";
171
- export * from "./AgentsSearchResponseAgentsItemIdentifierKey";
170
+ export * from "./AgentsSearchResponseAgentsItemIdentityIds";
172
171
  export * from "./AgentsSearchResponseAgentsItemMessageBufferAutoclear";
173
172
  export * from "./AgentsSearchResponseAgentsItem";
174
173
  export * from "./AgentsSearchResponse";
@@ -183,8 +183,7 @@ __exportStar(require("./AgentsSearchResponseAgentsItemTemplateIdItem"), exports)
183
183
  __exportStar(require("./AgentsSearchResponseAgentsItemTemplateId"), exports);
184
184
  __exportStar(require("./AgentsSearchResponseAgentsItemBaseTemplateIdItem"), exports);
185
185
  __exportStar(require("./AgentsSearchResponseAgentsItemBaseTemplateId"), exports);
186
- __exportStar(require("./AgentsSearchResponseAgentsItemIdentifierKeyItem"), exports);
187
- __exportStar(require("./AgentsSearchResponseAgentsItemIdentifierKey"), exports);
186
+ __exportStar(require("./AgentsSearchResponseAgentsItemIdentityIds"), exports);
188
187
  __exportStar(require("./AgentsSearchResponseAgentsItemMessageBufferAutoclear"), exports);
189
188
  __exportStar(require("./AgentsSearchResponseAgentsItem"), exports);
190
189
  __exportStar(require("./AgentsSearchResponse"), exports);
@@ -85,7 +85,7 @@ class Blocks {
85
85
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
86
86
  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/"),
87
87
  method: "GET",
88
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-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
89
  contentType: "application/json",
90
90
  queryParameters: _queryParams,
91
91
  requestType: "json",
@@ -152,7 +152,7 @@ class Blocks {
152
152
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
153
153
  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/"),
154
154
  method: "POST",
155
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-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
156
  contentType: "application/json",
157
157
  requestType: "json",
158
158
  body: serializers.CreateBlock.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -216,7 +216,7 @@ class Blocks {
216
216
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
217
217
  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)}`),
218
218
  method: "GET",
219
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -279,7 +279,7 @@ class Blocks {
279
279
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
280
280
  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)}`),
281
281
  method: "DELETE",
282
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
282
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
283
283
  contentType: "application/json",
284
284
  requestType: "json",
285
285
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -343,7 +343,7 @@ class Blocks {
343
343
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
344
344
  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)}`),
345
345
  method: "PATCH",
346
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
346
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
347
347
  contentType: "application/json",
348
348
  requestType: "json",
349
349
  body: serializers.BlockUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -410,7 +410,7 @@ class Blocks {
410
410
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
411
411
  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`),
412
412
  method: "GET",
413
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
413
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
414
414
  contentType: "application/json",
415
415
  requestType: "json",
416
416
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -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.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-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.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-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,
@@ -29,23 +29,23 @@ export declare class Identities {
29
29
  /**
30
30
  * Get a list of all identities in the database
31
31
  *
32
- * @param {Letta.ListIdentitiesRequest} request
32
+ * @param {Letta.IdentitiesListRequest} request
33
33
  * @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
34
34
  *
35
35
  * @throws {@link Letta.UnprocessableEntityError}
36
36
  *
37
37
  * @example
38
- * await client.identities.listIdentities()
38
+ * await client.identities.list()
39
39
  */
40
- listIdentities(request?: Letta.ListIdentitiesRequest, requestOptions?: Identities.RequestOptions): Promise<Letta.Identity[]>;
40
+ list(request?: Letta.IdentitiesListRequest, requestOptions?: Identities.RequestOptions): Promise<Letta.Identity[]>;
41
41
  /**
42
- * @param {Letta.CreateIdentityRequest} request
42
+ * @param {Letta.IdentitiesCreateRequest} request
43
43
  * @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
44
44
  *
45
45
  * @throws {@link Letta.UnprocessableEntityError}
46
46
  *
47
47
  * @example
48
- * await client.identities.createIdentity({
48
+ * await client.identities.create({
49
49
  * body: {
50
50
  * identifierKey: "identifier_key",
51
51
  * name: "name",
@@ -53,15 +53,15 @@ export declare class Identities {
53
53
  * }
54
54
  * })
55
55
  */
56
- createIdentity(request: Letta.CreateIdentityRequest, requestOptions?: Identities.RequestOptions): Promise<Letta.Identity>;
56
+ create(request: Letta.IdentitiesCreateRequest, requestOptions?: Identities.RequestOptions): Promise<Letta.Identity>;
57
57
  /**
58
- * @param {Letta.UpsertIdentityRequest} request
58
+ * @param {Letta.IdentitiesUpsertRequest} request
59
59
  * @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
60
60
  *
61
61
  * @throws {@link Letta.UnprocessableEntityError}
62
62
  *
63
63
  * @example
64
- * await client.identities.upsertIdentity({
64
+ * await client.identities.upsert({
65
65
  * body: {
66
66
  * identifierKey: "identifier_key",
67
67
  * name: "name",
@@ -69,40 +69,40 @@ export declare class Identities {
69
69
  * }
70
70
  * })
71
71
  */
72
- upsertIdentity(request: Letta.UpsertIdentityRequest, requestOptions?: Identities.RequestOptions): Promise<Letta.Identity>;
72
+ upsert(request: Letta.IdentitiesUpsertRequest, requestOptions?: Identities.RequestOptions): Promise<Letta.Identity>;
73
73
  /**
74
- * @param {string} identifierKey
74
+ * @param {string} identityId
75
75
  * @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
76
76
  *
77
77
  * @throws {@link Letta.UnprocessableEntityError}
78
78
  *
79
79
  * @example
80
- * await client.identities.getIdentityFromIdentifierKey("identifier_key")
80
+ * await client.identities.retrieve("identity_id")
81
81
  */
82
- getIdentityFromIdentifierKey(identifierKey: string, requestOptions?: Identities.RequestOptions): Promise<Letta.Identity>;
82
+ retrieve(identityId: string, requestOptions?: Identities.RequestOptions): Promise<Letta.Identity>;
83
83
  /**
84
84
  * Delete an identity by its identifier key
85
85
  *
86
- * @param {string} identifierKey
86
+ * @param {string} identityId
87
87
  * @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
88
88
  *
89
89
  * @throws {@link Letta.UnprocessableEntityError}
90
90
  *
91
91
  * @example
92
- * await client.identities.deleteIdentity("identifier_key")
92
+ * await client.identities.delete("identity_id")
93
93
  */
94
- deleteIdentity(identifierKey: string, requestOptions?: Identities.RequestOptions): Promise<unknown>;
94
+ delete(identityId: string, requestOptions?: Identities.RequestOptions): Promise<unknown>;
95
95
  /**
96
- * @param {string} identifierKey
96
+ * @param {string} identityId
97
97
  * @param {Letta.IdentityUpdate} request
98
98
  * @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
99
99
  *
100
100
  * @throws {@link Letta.UnprocessableEntityError}
101
101
  *
102
102
  * @example
103
- * await client.identities.updateIdentity("identifier_key")
103
+ * await client.identities.modify("identity_id")
104
104
  */
105
- updateIdentity(identifierKey: string, request?: Letta.IdentityUpdate, requestOptions?: Identities.RequestOptions): Promise<Letta.Identity>;
105
+ modify(identityId: string, request?: Letta.IdentityUpdate, requestOptions?: Identities.RequestOptions): Promise<Letta.Identity>;
106
106
  protected _getCustomAuthorizationHeaders(): Promise<{
107
107
  Authorization: string;
108
108
  }>;
@@ -62,18 +62,18 @@ class Identities {
62
62
  /**
63
63
  * Get a list of all identities in the database
64
64
  *
65
- * @param {Letta.ListIdentitiesRequest} request
65
+ * @param {Letta.IdentitiesListRequest} request
66
66
  * @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
67
67
  *
68
68
  * @throws {@link Letta.UnprocessableEntityError}
69
69
  *
70
70
  * @example
71
- * await client.identities.listIdentities()
71
+ * await client.identities.list()
72
72
  */
73
- listIdentities() {
73
+ list() {
74
74
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
75
75
  var _a, _b, _c;
76
- const { name, projectId, identityType, before, after, limit } = request;
76
+ const { name, projectId, identifierKey, identityType, before, after, limit } = request;
77
77
  const _queryParams = {};
78
78
  if (name != null) {
79
79
  _queryParams["name"] = name;
@@ -81,6 +81,9 @@ class Identities {
81
81
  if (projectId != null) {
82
82
  _queryParams["project_id"] = projectId;
83
83
  }
84
+ if (identifierKey != null) {
85
+ _queryParams["identifier_key"] = identifierKey;
86
+ }
84
87
  if (identityType != null) {
85
88
  _queryParams["identity_type"] = identityType;
86
89
  }
@@ -96,7 +99,7 @@ class Identities {
96
99
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
97
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/"),
98
101
  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.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-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.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-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
103
  contentType: "application/json",
101
104
  queryParameters: _queryParams,
102
105
  requestType: "json",
@@ -105,7 +108,7 @@ class Identities {
105
108
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
106
109
  });
107
110
  if (_response.ok) {
108
- return serializers.identities.listIdentities.Response.parseOrThrow(_response.body, {
111
+ return serializers.identities.list.Response.parseOrThrow(_response.body, {
109
112
  unrecognizedObjectKeys: "passthrough",
110
113
  allowUnrecognizedUnionMembers: true,
111
114
  allowUnrecognizedEnumValues: true,
@@ -146,13 +149,13 @@ class Identities {
146
149
  });
147
150
  }
148
151
  /**
149
- * @param {Letta.CreateIdentityRequest} request
152
+ * @param {Letta.IdentitiesCreateRequest} request
150
153
  * @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
151
154
  *
152
155
  * @throws {@link Letta.UnprocessableEntityError}
153
156
  *
154
157
  * @example
155
- * await client.identities.createIdentity({
158
+ * await client.identities.create({
156
159
  * body: {
157
160
  * identifierKey: "identifier_key",
158
161
  * name: "name",
@@ -160,14 +163,14 @@ class Identities {
160
163
  * }
161
164
  * })
162
165
  */
163
- createIdentity(request, requestOptions) {
166
+ create(request, requestOptions) {
164
167
  return __awaiter(this, void 0, void 0, function* () {
165
168
  var _a, _b, _c;
166
169
  const { project, body: _body } = request;
167
170
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
168
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/"),
169
172
  method: "POST",
170
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "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.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "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),
171
174
  contentType: "application/json",
172
175
  requestType: "json",
173
176
  body: serializers.IdentityCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -217,13 +220,13 @@ class Identities {
217
220
  });
218
221
  }
219
222
  /**
220
- * @param {Letta.UpsertIdentityRequest} request
223
+ * @param {Letta.IdentitiesUpsertRequest} request
221
224
  * @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
222
225
  *
223
226
  * @throws {@link Letta.UnprocessableEntityError}
224
227
  *
225
228
  * @example
226
- * await client.identities.upsertIdentity({
229
+ * await client.identities.upsert({
227
230
  * body: {
228
231
  * identifierKey: "identifier_key",
229
232
  * name: "name",
@@ -231,14 +234,14 @@ class Identities {
231
234
  * }
232
235
  * })
233
236
  */
234
- upsertIdentity(request, requestOptions) {
237
+ upsert(request, requestOptions) {
235
238
  return __awaiter(this, void 0, void 0, function* () {
236
239
  var _a, _b, _c;
237
240
  const { project, body: _body } = request;
238
241
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
239
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/"),
240
243
  method: "PUT",
241
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "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.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "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),
242
245
  contentType: "application/json",
243
246
  requestType: "json",
244
247
  body: serializers.IdentityCreate.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
@@ -288,21 +291,21 @@ class Identities {
288
291
  });
289
292
  }
290
293
  /**
291
- * @param {string} identifierKey
294
+ * @param {string} identityId
292
295
  * @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
293
296
  *
294
297
  * @throws {@link Letta.UnprocessableEntityError}
295
298
  *
296
299
  * @example
297
- * await client.identities.getIdentityFromIdentifierKey("identifier_key")
300
+ * await client.identities.retrieve("identity_id")
298
301
  */
299
- getIdentityFromIdentifierKey(identifierKey, requestOptions) {
302
+ retrieve(identityId, requestOptions) {
300
303
  return __awaiter(this, void 0, void 0, function* () {
301
304
  var _a, _b, _c;
302
305
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
303
- 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(identifierKey)}`),
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)}`),
304
307
  method: "GET",
305
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-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.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-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
309
  contentType: "application/json",
307
310
  requestType: "json",
308
311
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -342,7 +345,7 @@ class Identities {
342
345
  body: _response.error.rawBody,
343
346
  });
344
347
  case "timeout":
345
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/identities/{identifier_key}.");
348
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/identities/{identity_id}.");
346
349
  case "unknown":
347
350
  throw new errors.LettaError({
348
351
  message: _response.error.errorMessage,
@@ -353,21 +356,21 @@ class Identities {
353
356
  /**
354
357
  * Delete an identity by its identifier key
355
358
  *
356
- * @param {string} identifierKey
359
+ * @param {string} identityId
357
360
  * @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
358
361
  *
359
362
  * @throws {@link Letta.UnprocessableEntityError}
360
363
  *
361
364
  * @example
362
- * await client.identities.deleteIdentity("identifier_key")
365
+ * await client.identities.delete("identity_id")
363
366
  */
364
- deleteIdentity(identifierKey, requestOptions) {
367
+ delete(identityId, requestOptions) {
365
368
  return __awaiter(this, void 0, void 0, function* () {
366
369
  var _a, _b, _c;
367
370
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
368
- 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(identifierKey)}`),
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)}`),
369
372
  method: "DELETE",
370
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-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.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
371
374
  contentType: "application/json",
372
375
  requestType: "json",
373
376
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -401,7 +404,7 @@ class Identities {
401
404
  body: _response.error.rawBody,
402
405
  });
403
406
  case "timeout":
404
- throw new errors.LettaTimeoutError("Timeout exceeded when calling DELETE /v1/identities/{identifier_key}.");
407
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling DELETE /v1/identities/{identity_id}.");
405
408
  case "unknown":
406
409
  throw new errors.LettaError({
407
410
  message: _response.error.errorMessage,
@@ -410,22 +413,22 @@ class Identities {
410
413
  });
411
414
  }
412
415
  /**
413
- * @param {string} identifierKey
416
+ * @param {string} identityId
414
417
  * @param {Letta.IdentityUpdate} request
415
418
  * @param {Identities.RequestOptions} requestOptions - Request-specific configuration.
416
419
  *
417
420
  * @throws {@link Letta.UnprocessableEntityError}
418
421
  *
419
422
  * @example
420
- * await client.identities.updateIdentity("identifier_key")
423
+ * await client.identities.modify("identity_id")
421
424
  */
422
- updateIdentity(identifierKey_1) {
423
- return __awaiter(this, arguments, void 0, function* (identifierKey, request = {}, requestOptions) {
425
+ modify(identityId_1) {
426
+ return __awaiter(this, arguments, void 0, function* (identityId, request = {}, requestOptions) {
424
427
  var _a, _b, _c;
425
428
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
426
- 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(identifierKey)}`),
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)}`),
427
430
  method: "PATCH",
428
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.37", "User-Agent": "@letta-ai/letta-client/0.1.37", "X-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.39", "User-Agent": "@letta-ai/letta-client/0.1.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
429
432
  contentType: "application/json",
430
433
  requestType: "json",
431
434
  body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -466,7 +469,7 @@ class Identities {
466
469
  body: _response.error.rawBody,
467
470
  });
468
471
  case "timeout":
469
- throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/identities/{identifier_key}.");
472
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/identities/{identity_id}.");
470
473
  case "unknown":
471
474
  throw new errors.LettaError({
472
475
  message: _response.error.errorMessage,
@@ -12,7 +12,7 @@ import * as Letta from "../../../../index";
12
12
  * }
13
13
  * }
14
14
  */
15
- export interface UpsertIdentityRequest {
15
+ export interface IdentitiesCreateRequest {
16
16
  project?: string;
17
17
  body: Letta.IdentityCreate;
18
18
  }
@@ -6,9 +6,10 @@ import * as Letta from "../../../../index";
6
6
  * @example
7
7
  * {}
8
8
  */
9
- export interface ListIdentitiesRequest {
9
+ export interface IdentitiesListRequest {
10
10
  name?: string;
11
11
  projectId?: string;
12
+ identifierKey?: string;
12
13
  identityType?: Letta.IdentityType;
13
14
  before?: string;
14
15
  after?: string;
@@ -12,7 +12,7 @@ import * as Letta from "../../../../index";
12
12
  * }
13
13
  * }
14
14
  */
15
- export interface CreateIdentityRequest {
15
+ export interface IdentitiesUpsertRequest {
16
16
  project?: string;
17
17
  body: Letta.IdentityCreate;
18
18
  }
@@ -7,10 +7,14 @@ import * as Letta from "../../../../index";
7
7
  * {}
8
8
  */
9
9
  export interface IdentityUpdate {
10
+ /** External, user-generated identifier key of the identity. */
11
+ identifierKey?: string;
10
12
  /** The name of the identity. */
11
13
  name?: string;
12
14
  /** The type of the identity. */
13
15
  identityType?: Letta.IdentityType;
14
16
  /** The agent ids that are associated with the identity. */
15
17
  agentIds?: string[];
18
+ /** List of properties associated with the identity. */
19
+ properties?: Letta.IdentityProperty[];
16
20
  }