@letta-ai/letta-client 0.0.68652 → 0.0.68654

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 (170) hide show
  1. package/api/resources/agents/client/Client.js +9 -9
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/files/client/Client.js +4 -4
  6. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  7. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  10. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  11. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  12. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  13. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  14. package/api/resources/batches/client/Client.js +4 -4
  15. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  16. package/api/resources/blocks/client/Client.js +6 -6
  17. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  18. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  19. package/api/resources/folders/client/Client.d.ts +3 -13
  20. package/api/resources/folders/client/Client.js +15 -86
  21. package/api/resources/folders/resources/agents/client/Client.d.ts +48 -0
  22. package/api/resources/folders/resources/agents/client/Client.js +145 -0
  23. package/api/resources/folders/resources/agents/client/index.d.ts +1 -0
  24. package/api/resources/folders/resources/agents/client/index.js +2 -0
  25. package/api/resources/folders/resources/agents/index.d.ts +1 -0
  26. package/api/resources/folders/resources/agents/index.js +17 -0
  27. package/api/resources/folders/resources/files/client/Client.js +3 -3
  28. package/api/resources/folders/resources/index.d.ts +1 -0
  29. package/api/resources/folders/resources/index.js +2 -1
  30. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  31. package/api/resources/groups/client/Client.js +6 -6
  32. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  33. package/api/resources/health/client/Client.js +1 -1
  34. package/api/resources/identities/client/Client.d.ts +6 -0
  35. package/api/resources/identities/client/Client.js +17 -7
  36. package/api/resources/identities/resources/agents/client/Client.d.ts +44 -0
  37. package/api/resources/identities/resources/agents/client/Client.js +119 -0
  38. package/api/resources/identities/resources/agents/client/index.d.ts +1 -0
  39. package/api/resources/identities/resources/agents/client/index.js +2 -0
  40. package/api/resources/identities/resources/agents/index.d.ts +1 -0
  41. package/api/resources/identities/resources/agents/index.js +17 -0
  42. package/api/resources/identities/resources/blocks/client/Client.d.ts +44 -0
  43. package/api/resources/identities/resources/blocks/client/Client.js +119 -0
  44. package/api/resources/identities/resources/blocks/client/index.d.ts +1 -0
  45. package/api/resources/identities/resources/blocks/client/index.js +2 -0
  46. package/api/resources/identities/resources/blocks/index.d.ts +1 -0
  47. package/api/resources/identities/resources/blocks/index.js +17 -0
  48. package/api/resources/identities/resources/index.d.ts +2 -0
  49. package/api/resources/identities/resources/index.js +3 -1
  50. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  51. package/api/resources/jobs/client/Client.js +5 -5
  52. package/api/resources/models/client/Client.js +2 -2
  53. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  54. package/api/resources/projects/client/Client.js +1 -1
  55. package/api/resources/providers/client/Client.js +6 -6
  56. package/api/resources/runs/client/Client.js +5 -5
  57. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  58. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  59. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  60. package/api/resources/sources/client/Client.js +10 -10
  61. package/api/resources/sources/resources/files/client/Client.js +3 -3
  62. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  63. package/api/resources/steps/client/Client.js +2 -2
  64. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  65. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  66. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  67. package/api/resources/tags/client/Client.js +1 -1
  68. package/api/resources/telemetry/client/Client.js +1 -1
  69. package/api/resources/templates/client/Client.js +9 -9
  70. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  71. package/api/resources/tools/client/Client.js +20 -20
  72. package/api/resources/voice/client/Client.js +1 -1
  73. package/dist/api/resources/agents/client/Client.js +9 -9
  74. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  75. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  76. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  77. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  78. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  79. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  80. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  81. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  82. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  83. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  84. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  85. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  86. package/dist/api/resources/batches/client/Client.js +4 -4
  87. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  88. package/dist/api/resources/blocks/client/Client.js +6 -6
  89. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  90. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  91. package/dist/api/resources/folders/client/Client.d.ts +3 -13
  92. package/dist/api/resources/folders/client/Client.js +15 -86
  93. package/dist/api/resources/folders/resources/agents/client/Client.d.ts +48 -0
  94. package/dist/api/resources/folders/resources/agents/client/Client.js +145 -0
  95. package/dist/api/resources/folders/resources/agents/client/index.d.ts +1 -0
  96. package/dist/api/resources/folders/resources/agents/client/index.js +2 -0
  97. package/dist/api/resources/folders/resources/agents/index.d.ts +1 -0
  98. package/dist/api/resources/folders/resources/agents/index.js +17 -0
  99. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  100. package/dist/api/resources/folders/resources/index.d.ts +1 -0
  101. package/dist/api/resources/folders/resources/index.js +2 -1
  102. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  103. package/dist/api/resources/groups/client/Client.js +6 -6
  104. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  105. package/dist/api/resources/health/client/Client.js +1 -1
  106. package/dist/api/resources/identities/client/Client.d.ts +6 -0
  107. package/dist/api/resources/identities/client/Client.js +17 -7
  108. package/dist/api/resources/identities/resources/agents/client/Client.d.ts +44 -0
  109. package/dist/api/resources/identities/resources/agents/client/Client.js +119 -0
  110. package/dist/api/resources/identities/resources/agents/client/index.d.ts +1 -0
  111. package/dist/api/resources/identities/resources/agents/client/index.js +2 -0
  112. package/dist/api/resources/identities/resources/agents/index.d.ts +1 -0
  113. package/dist/api/resources/identities/resources/agents/index.js +17 -0
  114. package/dist/api/resources/identities/resources/blocks/client/Client.d.ts +44 -0
  115. package/dist/api/resources/identities/resources/blocks/client/Client.js +119 -0
  116. package/dist/api/resources/identities/resources/blocks/client/index.d.ts +1 -0
  117. package/dist/api/resources/identities/resources/blocks/client/index.js +2 -0
  118. package/dist/api/resources/identities/resources/blocks/index.d.ts +1 -0
  119. package/dist/api/resources/identities/resources/blocks/index.js +17 -0
  120. package/dist/api/resources/identities/resources/index.d.ts +2 -0
  121. package/dist/api/resources/identities/resources/index.js +3 -1
  122. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  123. package/dist/api/resources/jobs/client/Client.js +5 -5
  124. package/dist/api/resources/models/client/Client.js +2 -2
  125. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  126. package/dist/api/resources/projects/client/Client.js +1 -1
  127. package/dist/api/resources/providers/client/Client.js +6 -6
  128. package/dist/api/resources/runs/client/Client.js +5 -5
  129. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  130. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  131. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  132. package/dist/api/resources/sources/client/Client.js +10 -10
  133. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  134. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  135. package/dist/api/resources/steps/client/Client.js +2 -2
  136. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  137. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  138. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  139. package/dist/api/resources/tags/client/Client.js +1 -1
  140. package/dist/api/resources/telemetry/client/Client.js +1 -1
  141. package/dist/api/resources/templates/client/Client.js +9 -9
  142. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  143. package/dist/api/resources/tools/client/Client.js +20 -20
  144. package/dist/api/resources/voice/client/Client.js +1 -1
  145. package/dist/serialization/resources/folders/client/index.d.ts +0 -1
  146. package/dist/serialization/resources/folders/client/index.js +1 -2
  147. package/dist/serialization/resources/folders/resources/agents/client/index.d.ts +1 -0
  148. package/dist/serialization/resources/folders/resources/agents/client/index.js +37 -0
  149. package/dist/serialization/resources/folders/{client/getAgentsForFolder.d.ts → resources/agents/client/list.d.ts} +3 -3
  150. package/dist/serialization/resources/folders/{client/getAgentsForFolder.js → resources/agents/client/list.js} +1 -1
  151. package/dist/serialization/resources/folders/resources/agents/index.d.ts +1 -0
  152. package/dist/serialization/resources/folders/resources/agents/index.js +17 -0
  153. package/dist/serialization/resources/folders/resources/index.d.ts +1 -0
  154. package/dist/serialization/resources/folders/resources/index.js +2 -1
  155. package/dist/version.d.ts +1 -1
  156. package/dist/version.js +1 -1
  157. package/package.json +1 -1
  158. package/reference.md +165 -63
  159. package/serialization/resources/folders/client/index.d.ts +0 -1
  160. package/serialization/resources/folders/client/index.js +1 -2
  161. package/serialization/resources/folders/resources/agents/client/index.d.ts +1 -0
  162. package/serialization/resources/folders/resources/agents/client/index.js +37 -0
  163. package/serialization/resources/folders/{client/getAgentsForFolder.d.ts → resources/agents/client/list.d.ts} +3 -3
  164. package/serialization/resources/folders/{client/getAgentsForFolder.js → resources/agents/client/list.js} +1 -1
  165. package/serialization/resources/folders/resources/agents/index.d.ts +1 -0
  166. package/serialization/resources/folders/resources/agents/index.js +17 -0
  167. package/serialization/resources/folders/resources/index.d.ts +1 -0
  168. package/serialization/resources/folders/resources/index.js +2 -1
  169. package/version.d.ts +1 -1
  170. package/version.js +1 -1
@@ -56,7 +56,8 @@ const url_join_1 = __importDefault(require("url-join"));
56
56
  const serializers = __importStar(require("../../../../serialization/index"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  const Client_1 = require("../resources/files/client/Client");
59
- const Client_2 = require("../resources/passages/client/Client");
59
+ const Client_2 = require("../resources/agents/client/Client");
60
+ const Client_3 = require("../resources/passages/client/Client");
60
61
  class Folders {
61
62
  constructor(_options = {}) {
62
63
  this._options = _options;
@@ -65,9 +66,13 @@ class Folders {
65
66
  var _a;
66
67
  return ((_a = this._files) !== null && _a !== void 0 ? _a : (this._files = new Client_1.Files(this._options)));
67
68
  }
69
+ get agents() {
70
+ var _a;
71
+ return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Client_2.Agents(this._options)));
72
+ }
68
73
  get passages() {
69
74
  var _a;
70
- return ((_a = this._passages) !== null && _a !== void 0 ? _a : (this._passages = new Client_2.Passages(this._options)));
75
+ return ((_a = this._passages) !== null && _a !== void 0 ? _a : (this._passages = new Client_3.Passages(this._options)));
71
76
  }
72
77
  /**
73
78
  * Count all data folders created by a user.
@@ -90,7 +95,7 @@ class Folders {
90
95
  method: "GET",
91
96
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
92
97
  ? yield core.Supplier.get(this._options.project)
93
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
98
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
99
  contentType: "application/json",
95
100
  requestType: "json",
96
101
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -166,7 +171,7 @@ class Folders {
166
171
  method: "GET",
167
172
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
168
173
  ? yield core.Supplier.get(this._options.project)
169
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
174
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-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
175
  contentType: "application/json",
171
176
  requestType: "json",
172
177
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -242,7 +247,7 @@ class Folders {
242
247
  method: "DELETE",
243
248
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
244
249
  ? yield core.Supplier.get(this._options.project)
245
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
250
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
246
251
  contentType: "application/json",
247
252
  requestType: "json",
248
253
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -310,7 +315,7 @@ class Folders {
310
315
  method: "PATCH",
311
316
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
312
317
  ? yield core.Supplier.get(this._options.project)
313
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
318
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
314
319
  contentType: "application/json",
315
320
  requestType: "json",
316
321
  body: serializers.SourceUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -387,7 +392,7 @@ class Folders {
387
392
  method: "GET",
388
393
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
389
394
  ? yield core.Supplier.get(this._options.project)
390
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
395
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
391
396
  contentType: "application/json",
392
397
  requestType: "json",
393
398
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -474,7 +479,7 @@ class Folders {
474
479
  method: "GET",
475
480
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
476
481
  ? yield core.Supplier.get(this._options.project)
477
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
478
483
  contentType: "application/json",
479
484
  queryParameters: _queryParams,
480
485
  requestType: "json",
@@ -570,7 +575,7 @@ class Folders {
570
575
  method: "GET",
571
576
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
572
577
  ? yield core.Supplier.get(this._options.project)
573
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
578
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
574
579
  contentType: "application/json",
575
580
  queryParameters: _queryParams,
576
581
  requestType: "json",
@@ -649,7 +654,7 @@ class Folders {
649
654
  method: "POST",
650
655
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
651
656
  ? yield core.Supplier.get(this._options.project)
652
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
657
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
653
658
  contentType: "application/json",
654
659
  requestType: "json",
655
660
  body: serializers.SourceCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -704,82 +709,6 @@ class Folders {
704
709
  }
705
710
  });
706
711
  }
707
- /**
708
- * Get all agent IDs that have the specified folder attached.
709
- *
710
- * @param {string} folderId
711
- * @param {Folders.RequestOptions} requestOptions - Request-specific configuration.
712
- *
713
- * @throws {@link Letta.UnprocessableEntityError}
714
- *
715
- * @example
716
- * await client.folders.getAgentsForFolder("folder_id")
717
- */
718
- getAgentsForFolder(folderId, requestOptions) {
719
- return core.HttpResponsePromise.fromPromise(this.__getAgentsForFolder(folderId, requestOptions));
720
- }
721
- __getAgentsForFolder(folderId, requestOptions) {
722
- return __awaiter(this, void 0, void 0, function* () {
723
- var _a, _b, _c;
724
- const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
725
- 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/folders/${encodeURIComponent(folderId)}/agents`),
726
- method: "GET",
727
- headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
728
- ? yield core.Supplier.get(this._options.project)
729
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
730
- contentType: "application/json",
731
- requestType: "json",
732
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
733
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
734
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
735
- });
736
- if (_response.ok) {
737
- return {
738
- data: serializers.folders.getAgentsForFolder.Response.parseOrThrow(_response.body, {
739
- unrecognizedObjectKeys: "passthrough",
740
- allowUnrecognizedUnionMembers: true,
741
- allowUnrecognizedEnumValues: true,
742
- skipValidation: true,
743
- breadcrumbsPrefix: ["response"],
744
- }),
745
- rawResponse: _response.rawResponse,
746
- };
747
- }
748
- if (_response.error.reason === "status-code") {
749
- switch (_response.error.statusCode) {
750
- case 422:
751
- throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
752
- unrecognizedObjectKeys: "passthrough",
753
- allowUnrecognizedUnionMembers: true,
754
- allowUnrecognizedEnumValues: true,
755
- skipValidation: true,
756
- breadcrumbsPrefix: ["response"],
757
- }), _response.rawResponse);
758
- default:
759
- throw new errors.LettaError({
760
- statusCode: _response.error.statusCode,
761
- body: _response.error.body,
762
- rawResponse: _response.rawResponse,
763
- });
764
- }
765
- }
766
- switch (_response.error.reason) {
767
- case "non-json":
768
- throw new errors.LettaError({
769
- statusCode: _response.error.statusCode,
770
- body: _response.error.rawBody,
771
- rawResponse: _response.rawResponse,
772
- });
773
- case "timeout":
774
- throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/folders/{folder_id}/agents.");
775
- case "unknown":
776
- throw new errors.LettaError({
777
- message: _response.error.errorMessage,
778
- rawResponse: _response.rawResponse,
779
- });
780
- }
781
- });
782
- }
783
712
  _getCustomAuthorizationHeaders() {
784
713
  return __awaiter(this, void 0, void 0, function* () {
785
714
  const tokenValue = yield core.Supplier.get(this._options.token);
@@ -0,0 +1,48 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ export declare namespace Agents {
7
+ interface Options {
8
+ environment?: core.Supplier<environments.LettaEnvironment | string>;
9
+ /** Specify a custom URL to connect the client to. */
10
+ baseUrl?: core.Supplier<string>;
11
+ token?: core.Supplier<string | undefined>;
12
+ /** Override the X-Project header */
13
+ project?: core.Supplier<string | undefined>;
14
+ fetcher?: core.FetchFunction;
15
+ }
16
+ interface RequestOptions {
17
+ /** The maximum time to wait for a response in seconds. */
18
+ timeoutInSeconds?: number;
19
+ /** The number of times to retry the request. Defaults to 2. */
20
+ maxRetries?: number;
21
+ /** A hook to abort the request. */
22
+ abortSignal?: AbortSignal;
23
+ /** Override the X-Project header */
24
+ project?: string | undefined;
25
+ /** Additional headers to include in the request. */
26
+ headers?: Record<string, string>;
27
+ }
28
+ }
29
+ export declare class Agents {
30
+ protected readonly _options: Agents.Options;
31
+ constructor(_options?: Agents.Options);
32
+ /**
33
+ * Get all agent IDs that have the specified folder attached.
34
+ *
35
+ * @param {string} folderId
36
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
37
+ *
38
+ * @throws {@link Letta.UnprocessableEntityError}
39
+ *
40
+ * @example
41
+ * await client.folders.agents.list("folder_id")
42
+ */
43
+ list(folderId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<string[]>;
44
+ private __list;
45
+ protected _getCustomAuthorizationHeaders(): Promise<{
46
+ Authorization: string;
47
+ }>;
48
+ }
@@ -0,0 +1,145 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.Agents = void 0;
52
+ const environments = __importStar(require("../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../core"));
54
+ const Letta = __importStar(require("../../../../../index"));
55
+ const url_join_1 = __importDefault(require("url-join"));
56
+ const serializers = __importStar(require("../../../../../../serialization/index"));
57
+ const errors = __importStar(require("../../../../../../errors/index"));
58
+ class Agents {
59
+ constructor(_options = {}) {
60
+ this._options = _options;
61
+ }
62
+ /**
63
+ * Get all agent IDs that have the specified folder attached.
64
+ *
65
+ * @param {string} folderId
66
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link Letta.UnprocessableEntityError}
69
+ *
70
+ * @example
71
+ * await client.folders.agents.list("folder_id")
72
+ */
73
+ list(folderId, requestOptions) {
74
+ return core.HttpResponsePromise.fromPromise(this.__list(folderId, requestOptions));
75
+ }
76
+ __list(folderId, requestOptions) {
77
+ return __awaiter(this, void 0, void 0, function* () {
78
+ var _a, _b, _c;
79
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
80
+ 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/folders/${encodeURIComponent(folderId)}/agents`),
81
+ method: "GET",
82
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
+ ? yield core.Supplier.get(this._options.project)
84
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ contentType: "application/json",
86
+ requestType: "json",
87
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
88
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
89
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
90
+ });
91
+ if (_response.ok) {
92
+ return {
93
+ data: serializers.folders.agents.list.Response.parseOrThrow(_response.body, {
94
+ unrecognizedObjectKeys: "passthrough",
95
+ allowUnrecognizedUnionMembers: true,
96
+ allowUnrecognizedEnumValues: true,
97
+ skipValidation: true,
98
+ breadcrumbsPrefix: ["response"],
99
+ }),
100
+ rawResponse: _response.rawResponse,
101
+ };
102
+ }
103
+ if (_response.error.reason === "status-code") {
104
+ switch (_response.error.statusCode) {
105
+ case 422:
106
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
107
+ unrecognizedObjectKeys: "passthrough",
108
+ allowUnrecognizedUnionMembers: true,
109
+ allowUnrecognizedEnumValues: true,
110
+ skipValidation: true,
111
+ breadcrumbsPrefix: ["response"],
112
+ }), _response.rawResponse);
113
+ default:
114
+ throw new errors.LettaError({
115
+ statusCode: _response.error.statusCode,
116
+ body: _response.error.body,
117
+ rawResponse: _response.rawResponse,
118
+ });
119
+ }
120
+ }
121
+ switch (_response.error.reason) {
122
+ case "non-json":
123
+ throw new errors.LettaError({
124
+ statusCode: _response.error.statusCode,
125
+ body: _response.error.rawBody,
126
+ rawResponse: _response.rawResponse,
127
+ });
128
+ case "timeout":
129
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/folders/{folder_id}/agents.");
130
+ case "unknown":
131
+ throw new errors.LettaError({
132
+ message: _response.error.errorMessage,
133
+ rawResponse: _response.rawResponse,
134
+ });
135
+ }
136
+ });
137
+ }
138
+ _getCustomAuthorizationHeaders() {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ const tokenValue = yield core.Supplier.get(this._options.token);
141
+ return { Authorization: `Bearer ${tokenValue}` };
142
+ });
143
+ }
144
+ }
145
+ exports.Agents = Agents;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -93,7 +93,7 @@ class Files {
93
93
  method: "POST",
94
94
  headers: Object.assign(Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
95
95
  ? yield core.Supplier.get(this._options.project)
96
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
97
  queryParameters: _queryParams,
98
98
  requestType: "file",
99
99
  duplex: _maybeEncodedRequest.duplex,
@@ -183,7 +183,7 @@ class Files {
183
183
  method: "GET",
184
184
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
185
185
  ? yield core.Supplier.get(this._options.project)
186
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
186
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
187
187
  contentType: "application/json",
188
188
  queryParameters: _queryParams,
189
189
  requestType: "json",
@@ -261,7 +261,7 @@ class Files {
261
261
  method: "DELETE",
262
262
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
263
263
  ? yield core.Supplier.get(this._options.project)
264
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
265
265
  contentType: "application/json",
266
266
  requestType: "json",
267
267
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,4 +1,5 @@
1
1
  export * as files from "./files";
2
+ export * as agents from "./agents";
2
3
  export * as passages from "./passages";
3
4
  export * from "./files/client/requests";
4
5
  export * from "./passages/client/requests";
@@ -36,8 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.passages = exports.files = void 0;
39
+ exports.passages = exports.agents = exports.files = void 0;
40
40
  exports.files = __importStar(require("./files"));
41
+ exports.agents = __importStar(require("./agents"));
41
42
  exports.passages = __importStar(require("./passages"));
42
43
  __exportStar(require("./files/client/requests"), exports);
43
44
  __exportStar(require("./passages/client/requests"), exports);
@@ -93,7 +93,7 @@ class Passages {
93
93
  method: "GET",
94
94
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
95
95
  ? yield core.Supplier.get(this._options.project)
96
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
97
  contentType: "application/json",
98
98
  queryParameters: _queryParams,
99
99
  requestType: "json",
@@ -113,7 +113,7 @@ class Groups {
113
113
  method: "GET",
114
114
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
115
115
  ? yield core.Supplier.get(this._options.project)
116
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  queryParameters: _queryParams,
119
119
  requestType: "json",
@@ -193,7 +193,7 @@ class Groups {
193
193
  method: "POST",
194
194
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
195
195
  ? yield core.Supplier.get(this._options.project)
196
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
196
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
197
197
  contentType: "application/json",
198
198
  requestType: "json",
199
199
  body: serializers.GroupCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -269,7 +269,7 @@ class Groups {
269
269
  method: "GET",
270
270
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
271
271
  ? yield core.Supplier.get(this._options.project)
272
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
272
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
273
273
  contentType: "application/json",
274
274
  requestType: "json",
275
275
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -345,7 +345,7 @@ class Groups {
345
345
  method: "GET",
346
346
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
347
347
  ? yield core.Supplier.get(this._options.project)
348
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
348
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-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
349
  contentType: "application/json",
350
350
  requestType: "json",
351
351
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -421,7 +421,7 @@ class Groups {
421
421
  method: "DELETE",
422
422
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
423
423
  ? yield core.Supplier.get(this._options.project)
424
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
424
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
425
425
  contentType: "application/json",
426
426
  requestType: "json",
427
427
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -489,7 +489,7 @@ class Groups {
489
489
  method: "PATCH",
490
490
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
491
491
  ? yield core.Supplier.get(this._options.project)
492
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
492
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
493
493
  contentType: "application/json",
494
494
  requestType: "json",
495
495
  body: serializers.GroupUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -102,7 +102,7 @@ class Messages {
102
102
  method: "GET",
103
103
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
104
104
  ? yield core.Supplier.get(this._options.project)
105
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
105
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
106
  contentType: "application/json",
107
107
  queryParameters: _queryParams,
108
108
  requestType: "json",
@@ -189,7 +189,7 @@ class Messages {
189
189
  method: "POST",
190
190
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
191
191
  ? yield core.Supplier.get(this._options.project)
192
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
192
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
193
193
  contentType: "application/json",
194
194
  requestType: "json",
195
195
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -260,7 +260,7 @@ class Messages {
260
260
  method: "POST",
261
261
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
262
262
  ? yield core.Supplier.get(this._options.project)
263
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
263
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
264
264
  contentType: "application/json",
265
265
  requestType: "json",
266
266
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -352,7 +352,7 @@ class Messages {
352
352
  method: "PATCH",
353
353
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
354
354
  ? yield core.Supplier.get(this._options.project)
355
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
355
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
356
356
  contentType: "application/json",
357
357
  requestType: "json",
358
358
  body: serializers.groups.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -429,7 +429,7 @@ class Messages {
429
429
  method: "PATCH",
430
430
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
431
431
  ? yield core.Supplier.get(this._options.project)
432
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
432
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
433
433
  contentType: "application/json",
434
434
  requestType: "json",
435
435
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -75,7 +75,7 @@ class Health {
75
75
  method: "GET",
76
76
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
77
77
  ? yield core.Supplier.get(this._options.project)
78
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68652", "User-Agent": "@letta-ai/letta-client/0.0.68652", "X-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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.0.68654", "User-Agent": "@letta-ai/letta-client/0.0.68654", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
79
  contentType: "application/json",
80
80
  requestType: "json",
81
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -5,6 +5,8 @@ import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
6
  import * as Letta from "../../../index";
7
7
  import { Properties } from "../resources/properties/client/Client";
8
+ import { Agents } from "../resources/agents/client/Client";
9
+ import { Blocks } from "../resources/blocks/client/Client";
8
10
  export declare namespace Identities {
9
11
  interface Options {
10
12
  environment?: core.Supplier<environments.LettaEnvironment | string>;
@@ -31,8 +33,12 @@ export declare namespace Identities {
31
33
  export declare class Identities {
32
34
  protected readonly _options: Identities.Options;
33
35
  protected _properties: Properties | undefined;
36
+ protected _agents: Agents | undefined;
37
+ protected _blocks: Blocks | undefined;
34
38
  constructor(_options?: Identities.Options);
35
39
  get properties(): Properties;
40
+ get agents(): Agents;
41
+ get blocks(): Blocks;
36
42
  /**
37
43
  * Get a list of all identities in the database
38
44
  *