@letta-ai/letta-client 0.1.31 → 0.1.33

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 (218) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +23 -18
  3. package/api/resources/agents/client/Client.js +24 -9
  4. package/api/resources/agents/client/requests/AgentsListRequest.d.ts +4 -0
  5. package/api/resources/agents/client/requests/CreateAgentRequest.d.ts +4 -1
  6. package/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  7. package/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
  8. package/api/resources/agents/resources/context/client/Client.js +1 -1
  9. package/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
  10. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  11. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  12. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  13. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  14. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  15. package/api/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +1 -0
  16. package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +5 -0
  17. package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +5 -0
  18. package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +4 -0
  19. package/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js +5 -0
  20. package/api/resources/agents/types/index.d.ts +2 -0
  21. package/api/resources/agents/types/index.js +2 -0
  22. package/api/resources/blocks/client/Client.js +6 -6
  23. package/api/resources/health/client/Client.js +1 -1
  24. package/api/resources/identities/client/Client.d.ts +44 -0
  25. package/api/resources/identities/client/Client.js +155 -0
  26. package/api/resources/identities/client/index.d.ts +1 -0
  27. package/api/resources/identities/client/index.js +17 -0
  28. package/api/resources/identities/client/requests/ListIdentitiesRequest.d.ts +16 -0
  29. package/api/resources/identities/client/requests/ListIdentitiesRequest.js +5 -0
  30. package/api/resources/identities/client/requests/index.d.ts +1 -0
  31. package/api/resources/identities/client/requests/index.js +2 -0
  32. package/api/resources/identities/index.d.ts +1 -0
  33. package/api/resources/identities/index.js +17 -0
  34. package/api/resources/index.d.ts +2 -0
  35. package/api/resources/index.js +3 -1
  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/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +1 -0
  47. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.d.ts +5 -0
  48. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.js +5 -0
  49. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.d.ts +4 -0
  50. package/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.js +5 -0
  51. package/api/resources/templates/types/index.d.ts +2 -0
  52. package/api/resources/templates/types/index.js +2 -0
  53. package/api/resources/tools/client/Client.js +11 -11
  54. package/api/types/ActionParametersModel.d.ts +1 -0
  55. package/api/types/ActionResponseModel.d.ts +1 -0
  56. package/api/types/AgentState.d.ts +2 -0
  57. package/api/types/AppAuthSchemeAuthMode.d.ts +2 -1
  58. package/api/types/AppAuthSchemeAuthMode.js +1 -0
  59. package/api/types/Identity.d.ts +18 -0
  60. package/api/types/Identity.js +5 -0
  61. package/api/types/IdentityType.d.ts +12 -0
  62. package/api/types/IdentityType.js +11 -0
  63. package/api/types/index.d.ts +2 -0
  64. package/api/types/index.js +2 -0
  65. package/dist/Client.d.ts +3 -0
  66. package/dist/Client.js +23 -18
  67. package/dist/api/resources/agents/client/Client.js +24 -9
  68. package/dist/api/resources/agents/client/requests/AgentsListRequest.d.ts +4 -0
  69. package/dist/api/resources/agents/client/requests/CreateAgentRequest.d.ts +4 -1
  70. package/dist/api/resources/agents/client/requests/UpdateAgent.d.ts +2 -0
  71. package/dist/api/resources/agents/resources/archivalMemory/client/Client.js +3 -3
  72. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  73. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +6 -6
  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/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/AgentsSearchResponseAgentsItem.d.ts +1 -0
  80. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +5 -0
  81. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +5 -0
  82. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +4 -0
  83. package/dist/api/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js +5 -0
  84. package/dist/api/resources/agents/types/index.d.ts +2 -0
  85. package/dist/api/resources/agents/types/index.js +2 -0
  86. package/dist/api/resources/blocks/client/Client.js +6 -6
  87. package/dist/api/resources/health/client/Client.js +1 -1
  88. package/dist/api/resources/identities/client/Client.d.ts +44 -0
  89. package/dist/api/resources/identities/client/Client.js +155 -0
  90. package/dist/api/resources/identities/client/index.d.ts +1 -0
  91. package/dist/api/resources/identities/client/index.js +17 -0
  92. package/dist/api/resources/identities/client/requests/ListIdentitiesRequest.d.ts +16 -0
  93. package/dist/api/resources/identities/client/requests/ListIdentitiesRequest.js +5 -0
  94. package/dist/api/resources/identities/client/requests/index.d.ts +1 -0
  95. package/dist/api/resources/identities/client/requests/index.js +2 -0
  96. package/dist/api/resources/identities/index.d.ts +1 -0
  97. package/dist/api/resources/identities/index.js +17 -0
  98. package/dist/api/resources/index.d.ts +2 -0
  99. package/dist/api/resources/index.js +3 -1
  100. package/dist/api/resources/jobs/client/Client.js +4 -4
  101. package/dist/api/resources/models/client/Client.js +2 -2
  102. package/dist/api/resources/providers/client/Client.js +4 -4
  103. package/dist/api/resources/runs/client/Client.js +6 -6
  104. package/dist/api/resources/sources/client/Client.js +6 -6
  105. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  106. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  107. package/dist/api/resources/steps/client/Client.js +2 -2
  108. package/dist/api/resources/tag/client/Client.js +1 -1
  109. package/dist/api/resources/templates/client/Client.js +1 -1
  110. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +1 -0
  111. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.d.ts +5 -0
  112. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.js +5 -0
  113. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.d.ts +4 -0
  114. package/dist/api/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.js +5 -0
  115. package/dist/api/resources/templates/types/index.d.ts +2 -0
  116. package/dist/api/resources/templates/types/index.js +2 -0
  117. package/dist/api/resources/tools/client/Client.js +11 -11
  118. package/dist/api/types/ActionParametersModel.d.ts +1 -0
  119. package/dist/api/types/ActionResponseModel.d.ts +1 -0
  120. package/dist/api/types/AgentState.d.ts +2 -0
  121. package/dist/api/types/AppAuthSchemeAuthMode.d.ts +2 -1
  122. package/dist/api/types/AppAuthSchemeAuthMode.js +1 -0
  123. package/dist/api/types/Identity.d.ts +18 -0
  124. package/dist/api/types/Identity.js +5 -0
  125. package/dist/api/types/IdentityType.d.ts +12 -0
  126. package/dist/api/types/IdentityType.js +11 -0
  127. package/dist/api/types/index.d.ts +2 -0
  128. package/dist/api/types/index.js +2 -0
  129. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -1
  130. package/dist/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  131. package/dist/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  132. package/dist/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
  133. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +2 -0
  134. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.js +2 -0
  135. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +11 -0
  136. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +47 -0
  137. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +10 -0
  138. package/dist/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js +41 -0
  139. package/dist/serialization/resources/agents/types/index.d.ts +2 -0
  140. package/dist/serialization/resources/agents/types/index.js +2 -0
  141. package/dist/serialization/resources/identities/client/index.d.ts +1 -0
  142. package/dist/serialization/resources/identities/client/index.js +37 -0
  143. package/dist/serialization/resources/identities/client/listIdentities.d.ts +11 -0
  144. package/dist/serialization/resources/identities/client/listIdentities.js +42 -0
  145. package/dist/serialization/resources/identities/index.d.ts +1 -0
  146. package/dist/serialization/resources/identities/index.js +17 -0
  147. package/dist/serialization/resources/index.d.ts +1 -0
  148. package/dist/serialization/resources/index.js +2 -1
  149. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +2 -0
  150. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.js +2 -0
  151. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.d.ts +11 -0
  152. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.js +47 -0
  153. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.d.ts +10 -0
  154. package/dist/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.js +41 -0
  155. package/dist/serialization/resources/templates/types/index.d.ts +2 -0
  156. package/dist/serialization/resources/templates/types/index.js +2 -0
  157. package/dist/serialization/types/ActionParametersModel.d.ts +1 -0
  158. package/dist/serialization/types/ActionParametersModel.js +1 -0
  159. package/dist/serialization/types/ActionResponseModel.d.ts +1 -0
  160. package/dist/serialization/types/ActionResponseModel.js +1 -0
  161. package/dist/serialization/types/AgentState.d.ts +1 -0
  162. package/dist/serialization/types/AgentState.js +1 -0
  163. package/dist/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
  164. package/dist/serialization/types/AppAuthSchemeAuthMode.js +1 -1
  165. package/dist/serialization/types/Identity.d.ts +19 -0
  166. package/dist/serialization/types/Identity.js +50 -0
  167. package/dist/serialization/types/IdentityType.d.ts +10 -0
  168. package/dist/serialization/types/IdentityType.js +41 -0
  169. package/dist/serialization/types/index.d.ts +2 -0
  170. package/dist/serialization/types/index.js +2 -0
  171. package/dist/version.d.ts +1 -1
  172. package/dist/version.js +1 -1
  173. package/package.json +1 -1
  174. package/reference.md +65 -0
  175. package/serialization/resources/agents/client/requests/CreateAgentRequest.d.ts +2 -1
  176. package/serialization/resources/agents/client/requests/CreateAgentRequest.js +1 -0
  177. package/serialization/resources/agents/client/requests/UpdateAgent.d.ts +1 -0
  178. package/serialization/resources/agents/client/requests/UpdateAgent.js +1 -0
  179. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.d.ts +2 -0
  180. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItem.js +2 -0
  181. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.d.ts +11 -0
  182. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKey.js +47 -0
  183. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.d.ts +10 -0
  184. package/serialization/resources/agents/types/AgentsSearchResponseAgentsItemIdentifierKeyItem.js +41 -0
  185. package/serialization/resources/agents/types/index.d.ts +2 -0
  186. package/serialization/resources/agents/types/index.js +2 -0
  187. package/serialization/resources/identities/client/index.d.ts +1 -0
  188. package/serialization/resources/identities/client/index.js +37 -0
  189. package/serialization/resources/identities/client/listIdentities.d.ts +11 -0
  190. package/serialization/resources/identities/client/listIdentities.js +42 -0
  191. package/serialization/resources/identities/index.d.ts +1 -0
  192. package/serialization/resources/identities/index.js +17 -0
  193. package/serialization/resources/index.d.ts +1 -0
  194. package/serialization/resources/index.js +2 -1
  195. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.d.ts +2 -0
  196. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItem.js +2 -0
  197. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.d.ts +11 -0
  198. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey.js +47 -0
  199. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.d.ts +10 -0
  200. package/serialization/resources/templates/types/TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem.js +41 -0
  201. package/serialization/resources/templates/types/index.d.ts +2 -0
  202. package/serialization/resources/templates/types/index.js +2 -0
  203. package/serialization/types/ActionParametersModel.d.ts +1 -0
  204. package/serialization/types/ActionParametersModel.js +1 -0
  205. package/serialization/types/ActionResponseModel.d.ts +1 -0
  206. package/serialization/types/ActionResponseModel.js +1 -0
  207. package/serialization/types/AgentState.d.ts +1 -0
  208. package/serialization/types/AgentState.js +1 -0
  209. package/serialization/types/AppAuthSchemeAuthMode.d.ts +1 -1
  210. package/serialization/types/AppAuthSchemeAuthMode.js +1 -1
  211. package/serialization/types/Identity.d.ts +19 -0
  212. package/serialization/types/Identity.js +50 -0
  213. package/serialization/types/IdentityType.d.ts +10 -0
  214. package/serialization/types/IdentityType.js +41 -0
  215. package/serialization/types/index.d.ts +2 -0
  216. package/serialization/types/index.js +2 -0
  217. package/version.d.ts +1 -1
  218. package/version.js +1 -1
@@ -100,7 +100,7 @@ class Steps {
100
100
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
101
101
  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"),
102
102
  method: "GET",
103
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
104
  contentType: "application/json",
105
105
  queryParameters: _queryParams,
106
106
  requestType: "json",
@@ -166,7 +166,7 @@ class Steps {
166
166
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
167
167
  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)}`),
168
168
  method: "GET",
169
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
170
  contentType: "application/json",
171
171
  requestType: "json",
172
172
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -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.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-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.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-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.TemplatesCreateAgentsFromTemplateRequest.jsonOrThrow(request, {
@@ -26,5 +26,6 @@ export interface TemplatesCreateAgentsFromTemplateResponseAgentsItem {
26
26
  projectId?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemProjectId;
27
27
  templateId?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId;
28
28
  baseTemplateId?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId;
29
+ identifierKey?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey;
29
30
  messageBufferAutoclear?: Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemMessageBufferAutoclear;
30
31
  }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../../../index";
5
+ export type TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey = string | string | undefined | (Letta.TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem | undefined)[] | unknown;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem = string | string | undefined;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -156,6 +156,8 @@ export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateIdIt
156
156
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId";
157
157
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem";
158
158
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId";
159
+ export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem";
160
+ export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey";
159
161
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItemMessageBufferAutoclear";
160
162
  export * from "./TemplatesCreateAgentsFromTemplateResponseAgentsItem";
161
163
  export * from "./TemplatesCreateAgentsFromTemplateResponse";
@@ -172,6 +172,8 @@ __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemTempl
172
172
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemTemplateId"), exports);
173
173
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateIdItem"), exports);
174
174
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemBaseTemplateId"), exports);
175
+ __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKeyItem"), exports);
176
+ __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemIdentifierKey"), exports);
175
177
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItemMessageBufferAutoclear"), exports);
176
178
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponseAgentsItem"), exports);
177
179
  __exportStar(require("./TemplatesCreateAgentsFromTemplateResponse"), exports);
@@ -76,7 +76,7 @@ class Tools {
76
76
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
77
77
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-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.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -141,7 +141,7 @@ class Tools {
141
141
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
142
142
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
143
143
  method: "DELETE",
144
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
144
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
145
  contentType: "application/json",
146
146
  requestType: "json",
147
147
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -201,7 +201,7 @@ class Tools {
201
201
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
202
202
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/${encodeURIComponent(toolId)}`),
203
203
  method: "PATCH",
204
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
204
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
205
205
  contentType: "application/json",
206
206
  requestType: "json",
207
207
  body: serializers.ToolUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -278,7 +278,7 @@ class Tools {
278
278
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
279
279
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
280
280
  method: "GET",
281
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-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
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-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
282
  contentType: "application/json",
283
283
  queryParameters: _queryParams,
284
284
  requestType: "json",
@@ -346,7 +346,7 @@ class Tools {
346
346
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
347
347
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
348
348
  method: "POST",
349
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
349
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
350
350
  contentType: "application/json",
351
351
  requestType: "json",
352
352
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -414,7 +414,7 @@ class Tools {
414
414
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
415
415
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/"),
416
416
  method: "PUT",
417
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
417
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
418
418
  contentType: "application/json",
419
419
  requestType: "json",
420
420
  body: serializers.ToolCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -479,7 +479,7 @@ class Tools {
479
479
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
480
480
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/add-base-tools"),
481
481
  method: "POST",
482
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
482
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
483
483
  contentType: "application/json",
484
484
  requestType: "json",
485
485
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -549,7 +549,7 @@ class Tools {
549
549
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
550
550
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/run"),
551
551
  method: "POST",
552
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
552
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
553
553
  contentType: "application/json",
554
554
  requestType: "json",
555
555
  body: serializers.ToolRunFromSource.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -614,7 +614,7 @@ class Tools {
614
614
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
615
615
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/tools/composio/apps"),
616
616
  method: "GET",
617
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
617
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
618
618
  contentType: "application/json",
619
619
  requestType: "json",
620
620
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -679,7 +679,7 @@ class Tools {
679
679
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
680
680
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/apps/${encodeURIComponent(composioAppName)}/actions`),
681
681
  method: "GET",
682
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
682
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
683
683
  contentType: "application/json",
684
684
  requestType: "json",
685
685
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -744,7 +744,7 @@ class Tools {
744
744
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
745
745
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/tools/composio/${encodeURIComponent(composioActionName)}`),
746
746
  method: "POST",
747
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.31", "User-Agent": "@letta-ai/letta-client/0.1.31", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
747
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.33", "User-Agent": "@letta-ai/letta-client/0.1.33", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
748
748
  contentType: "application/json",
749
749
  requestType: "json",
750
750
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -9,4 +9,5 @@ export interface ActionParametersModel {
9
9
  title: string;
10
10
  type: string;
11
11
  required?: string[];
12
+ examples?: unknown[];
12
13
  }
@@ -9,4 +9,5 @@ export interface ActionResponseModel {
9
9
  title: string;
10
10
  type: string;
11
11
  required?: string[];
12
+ examples?: unknown[];
12
13
  }
@@ -61,6 +61,8 @@ export interface AgentState {
61
61
  templateId?: string;
62
62
  /** The base template id of the agent. */
63
63
  baseTemplateId?: string;
64
+ /** The identifier key belonging to the identity associated with this agent. */
65
+ identifierKey?: string;
64
66
  /** If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case. */
65
67
  messageBufferAutoclear?: boolean;
66
68
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type AppAuthSchemeAuthMode = "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BASIC_WITH_JWT";
4
+ export type AppAuthSchemeAuthMode = "OAUTH2" | "OAUTH1" | "API_KEY" | "BASIC" | "BEARER_TOKEN" | "BASIC_WITH_JWT" | "NO_AUTH";
5
5
  export declare const AppAuthSchemeAuthMode: {
6
6
  readonly Oauth2: "OAUTH2";
7
7
  readonly Oauth1: "OAUTH1";
@@ -9,4 +9,5 @@ export declare const AppAuthSchemeAuthMode: {
9
9
  readonly Basic: "BASIC";
10
10
  readonly BearerToken: "BEARER_TOKEN";
11
11
  readonly BasicWithJwt: "BASIC_WITH_JWT";
12
+ readonly NoAuth: "NO_AUTH";
12
13
  };
@@ -11,4 +11,5 @@ exports.AppAuthSchemeAuthMode = {
11
11
  Basic: "BASIC",
12
12
  BearerToken: "BEARER_TOKEN",
13
13
  BasicWithJwt: "BASIC_WITH_JWT",
14
+ NoAuth: "NO_AUTH",
14
15
  };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface Identity {
6
+ /** The internal id of the identity. */
7
+ id: string;
8
+ /** External, user-generated identifier key of the identity. */
9
+ identifierKey: string;
10
+ /** The name of the identity. */
11
+ name: string;
12
+ /** The type of the identity. */
13
+ identityType: Letta.IdentityType;
14
+ /** The project id of the identity, if applicable. */
15
+ projectId?: string;
16
+ /** The ids of the agents associated with the identity. */
17
+ agents: Letta.AgentState[];
18
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Enum to represent the type of the identity.
6
+ */
7
+ export type IdentityType = "org" | "user" | "other";
8
+ export declare const IdentityType: {
9
+ readonly Org: "org";
10
+ readonly User: "user";
11
+ readonly Other: "other";
12
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.IdentityType = void 0;
7
+ exports.IdentityType = {
8
+ Org: "org",
9
+ User: "user",
10
+ Other: "other",
11
+ };
@@ -84,6 +84,8 @@ export * from "./FunctionDefinitionOutput";
84
84
  export * from "./FunctionTool";
85
85
  export * from "./HttpValidationError";
86
86
  export * from "./Health";
87
+ export * from "./Identity";
88
+ export * from "./IdentityType";
87
89
  export * from "./ImageUrlDetail";
88
90
  export * from "./ImageUrl";
89
91
  export * from "./InitToolRule";
@@ -100,6 +100,8 @@ __exportStar(require("./FunctionDefinitionOutput"), exports);
100
100
  __exportStar(require("./FunctionTool"), exports);
101
101
  __exportStar(require("./HttpValidationError"), exports);
102
102
  __exportStar(require("./Health"), exports);
103
+ __exportStar(require("./Identity"), exports);
104
+ __exportStar(require("./IdentityType"), exports);
103
105
  __exportStar(require("./ImageUrlDetail"), exports);
104
106
  __exportStar(require("./ImageUrl"), exports);
105
107
  __exportStar(require("./InitToolRule"), exports);
@@ -10,7 +10,7 @@ import { AgentType } from "../../../../types/AgentType";
10
10
  import { LlmConfig } from "../../../../types/LlmConfig";
11
11
  import { EmbeddingConfig } from "../../../../types/EmbeddingConfig";
12
12
  import { MessageCreate } from "../../../../types/MessageCreate";
13
- export declare const CreateAgentRequest: core.serialization.Schema<serializers.CreateAgentRequest.Raw, Letta.CreateAgentRequest>;
13
+ export declare const CreateAgentRequest: core.serialization.Schema<serializers.CreateAgentRequest.Raw, Omit<Letta.CreateAgentRequest, "projectSlug">>;
14
14
  export declare namespace CreateAgentRequest {
15
15
  interface Raw {
16
16
  name?: string | null;
@@ -42,6 +42,7 @@ export declare namespace CreateAgentRequest {
42
42
  project_id?: string | null;
43
43
  template_id?: string | null;
44
44
  base_template_id?: string | null;
45
+ identifier_key?: string | null;
45
46
  message_buffer_autoclear?: boolean | null;
46
47
  }
47
48
  }
@@ -74,5 +74,6 @@ exports.CreateAgentRequest = core.serialization.object({
74
74
  projectId: core.serialization.property("project_id", core.serialization.string().optional()),
75
75
  templateId: core.serialization.property("template_id", core.serialization.string().optional()),
76
76
  baseTemplateId: core.serialization.property("base_template_id", core.serialization.string().optional()),
77
+ identifierKey: core.serialization.property("identifier_key", core.serialization.string().optional()),
77
78
  messageBufferAutoclear: core.serialization.property("message_buffer_autoclear", core.serialization.boolean().optional()),
78
79
  });
@@ -26,6 +26,7 @@ export declare namespace UpdateAgent {
26
26
  project_id?: string | null;
27
27
  template_id?: string | null;
28
28
  base_template_id?: string | null;
29
+ identifier_key?: string | null;
29
30
  message_buffer_autoclear?: boolean | null;
30
31
  }
31
32
  }
@@ -58,5 +58,6 @@ exports.UpdateAgent = core.serialization.object({
58
58
  projectId: core.serialization.property("project_id", core.serialization.string().optional()),
59
59
  templateId: core.serialization.property("template_id", core.serialization.string().optional()),
60
60
  baseTemplateId: core.serialization.property("base_template_id", core.serialization.string().optional()),
61
+ identifierKey: core.serialization.property("identifier_key", core.serialization.string().optional()),
61
62
  messageBufferAutoclear: core.serialization.property("message_buffer_autoclear", core.serialization.boolean().optional()),
62
63
  });
@@ -23,6 +23,7 @@ import { AgentsSearchResponseAgentsItemToolExecEnvironmentVariables } from "./Ag
23
23
  import { AgentsSearchResponseAgentsItemProjectId } from "./AgentsSearchResponseAgentsItemProjectId";
24
24
  import { AgentsSearchResponseAgentsItemTemplateId } from "./AgentsSearchResponseAgentsItemTemplateId";
25
25
  import { AgentsSearchResponseAgentsItemBaseTemplateId } from "./AgentsSearchResponseAgentsItemBaseTemplateId";
26
+ import { AgentsSearchResponseAgentsItemIdentifierKey } from "./AgentsSearchResponseAgentsItemIdentifierKey";
26
27
  import { AgentsSearchResponseAgentsItemMessageBufferAutoclear } from "./AgentsSearchResponseAgentsItemMessageBufferAutoclear";
27
28
  export declare const AgentsSearchResponseAgentsItem: core.serialization.ObjectSchema<serializers.AgentsSearchResponseAgentsItem.Raw, Letta.AgentsSearchResponseAgentsItem>;
28
29
  export declare namespace AgentsSearchResponseAgentsItem {
@@ -50,6 +51,7 @@ export declare namespace AgentsSearchResponseAgentsItem {
50
51
  project_id?: AgentsSearchResponseAgentsItemProjectId.Raw | null;
51
52
  template_id?: AgentsSearchResponseAgentsItemTemplateId.Raw | null;
52
53
  base_template_id?: AgentsSearchResponseAgentsItemBaseTemplateId.Raw | null;
54
+ identifier_key?: AgentsSearchResponseAgentsItemIdentifierKey.Raw | null;
53
55
  message_buffer_autoclear?: AgentsSearchResponseAgentsItemMessageBufferAutoclear.Raw | null;
54
56
  template?: string | null;
55
57
  }
@@ -57,6 +57,7 @@ const AgentsSearchResponseAgentsItemToolExecEnvironmentVariables_1 = require("./
57
57
  const AgentsSearchResponseAgentsItemProjectId_1 = require("./AgentsSearchResponseAgentsItemProjectId");
58
58
  const AgentsSearchResponseAgentsItemTemplateId_1 = require("./AgentsSearchResponseAgentsItemTemplateId");
59
59
  const AgentsSearchResponseAgentsItemBaseTemplateId_1 = require("./AgentsSearchResponseAgentsItemBaseTemplateId");
60
+ const AgentsSearchResponseAgentsItemIdentifierKey_1 = require("./AgentsSearchResponseAgentsItemIdentifierKey");
60
61
  const AgentsSearchResponseAgentsItemMessageBufferAutoclear_1 = require("./AgentsSearchResponseAgentsItemMessageBufferAutoclear");
61
62
  exports.AgentsSearchResponseAgentsItem = core.serialization.object({
62
63
  createdById: core.serialization.property("created_by_id", AgentsSearchResponseAgentsItemCreatedById_1.AgentsSearchResponseAgentsItemCreatedById.optional()),
@@ -82,6 +83,7 @@ exports.AgentsSearchResponseAgentsItem = core.serialization.object({
82
83
  projectId: core.serialization.property("project_id", AgentsSearchResponseAgentsItemProjectId_1.AgentsSearchResponseAgentsItemProjectId.optional()),
83
84
  templateId: core.serialization.property("template_id", AgentsSearchResponseAgentsItemTemplateId_1.AgentsSearchResponseAgentsItemTemplateId.optional()),
84
85
  baseTemplateId: core.serialization.property("base_template_id", AgentsSearchResponseAgentsItemBaseTemplateId_1.AgentsSearchResponseAgentsItemBaseTemplateId.optional()),
86
+ identifierKey: core.serialization.property("identifier_key", AgentsSearchResponseAgentsItemIdentifierKey_1.AgentsSearchResponseAgentsItemIdentifierKey.optional()),
85
87
  messageBufferAutoclear: core.serialization.property("message_buffer_autoclear", AgentsSearchResponseAgentsItemMessageBufferAutoclear_1.AgentsSearchResponseAgentsItemMessageBufferAutoclear.optional()),
86
88
  template: core.serialization.string().optional(),
87
89
  });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Letta from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { AgentsSearchResponseAgentsItemIdentifierKeyItem } from "./AgentsSearchResponseAgentsItemIdentifierKeyItem";
8
+ export declare const AgentsSearchResponseAgentsItemIdentifierKey: core.serialization.Schema<serializers.AgentsSearchResponseAgentsItemIdentifierKey.Raw, Letta.AgentsSearchResponseAgentsItemIdentifierKey>;
9
+ export declare namespace AgentsSearchResponseAgentsItemIdentifierKey {
10
+ type Raw = string | (string | null | undefined) | (AgentsSearchResponseAgentsItemIdentifierKeyItem.Raw | null | undefined)[] | unknown;
11
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AgentsSearchResponseAgentsItemIdentifierKey = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const AgentsSearchResponseAgentsItemIdentifierKeyItem_1 = require("./AgentsSearchResponseAgentsItemIdentifierKeyItem");
42
+ exports.AgentsSearchResponseAgentsItemIdentifierKey = core.serialization.undiscriminatedUnion([
43
+ core.serialization.string(),
44
+ core.serialization.string().optional(),
45
+ core.serialization.list(AgentsSearchResponseAgentsItemIdentifierKeyItem_1.AgentsSearchResponseAgentsItemIdentifierKeyItem.optional()),
46
+ core.serialization.unknown(),
47
+ ]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Letta from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const AgentsSearchResponseAgentsItemIdentifierKeyItem: core.serialization.Schema<serializers.AgentsSearchResponseAgentsItemIdentifierKeyItem.Raw, Letta.AgentsSearchResponseAgentsItemIdentifierKeyItem>;
8
+ export declare namespace AgentsSearchResponseAgentsItemIdentifierKeyItem {
9
+ type Raw = string | (string | null | undefined);
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AgentsSearchResponseAgentsItemIdentifierKeyItem = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.AgentsSearchResponseAgentsItemIdentifierKeyItem = core.serialization.undiscriminatedUnion([core.serialization.string(), core.serialization.string().optional()]);
@@ -163,6 +163,8 @@ export * from "./AgentsSearchResponseAgentsItemTemplateIdItem";
163
163
  export * from "./AgentsSearchResponseAgentsItemTemplateId";
164
164
  export * from "./AgentsSearchResponseAgentsItemBaseTemplateIdItem";
165
165
  export * from "./AgentsSearchResponseAgentsItemBaseTemplateId";
166
+ export * from "./AgentsSearchResponseAgentsItemIdentifierKeyItem";
167
+ export * from "./AgentsSearchResponseAgentsItemIdentifierKey";
166
168
  export * from "./AgentsSearchResponseAgentsItemMessageBufferAutoclear";
167
169
  export * from "./AgentsSearchResponseAgentsItem";
168
170
  export * from "./AgentsSearchResponse";
@@ -179,6 +179,8 @@ __exportStar(require("./AgentsSearchResponseAgentsItemTemplateIdItem"), exports)
179
179
  __exportStar(require("./AgentsSearchResponseAgentsItemTemplateId"), exports);
180
180
  __exportStar(require("./AgentsSearchResponseAgentsItemBaseTemplateIdItem"), exports);
181
181
  __exportStar(require("./AgentsSearchResponseAgentsItemBaseTemplateId"), exports);
182
+ __exportStar(require("./AgentsSearchResponseAgentsItemIdentifierKeyItem"), exports);
183
+ __exportStar(require("./AgentsSearchResponseAgentsItemIdentifierKey"), exports);
182
184
  __exportStar(require("./AgentsSearchResponseAgentsItemMessageBufferAutoclear"), exports);
183
185
  __exportStar(require("./AgentsSearchResponseAgentsItem"), exports);
184
186
  __exportStar(require("./AgentsSearchResponse"), exports);
@@ -0,0 +1 @@
1
+ export * as listIdentities from "./listIdentities";
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.listIdentities = void 0;
37
+ exports.listIdentities = __importStar(require("./listIdentities"));