@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,6 +56,8 @@ const serializers = __importStar(require("../../../../serialization/index"));
56
56
  const url_join_1 = __importDefault(require("url-join"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  const Client_1 = require("../resources/properties/client/Client");
59
+ const Client_2 = require("../resources/agents/client/Client");
60
+ const Client_3 = require("../resources/blocks/client/Client");
59
61
  class Identities {
60
62
  constructor(_options = {}) {
61
63
  this._options = _options;
@@ -64,6 +66,14 @@ class Identities {
64
66
  var _a;
65
67
  return ((_a = this._properties) !== null && _a !== void 0 ? _a : (this._properties = new Client_1.Properties(this._options)));
66
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
+ }
73
+ get blocks() {
74
+ var _a;
75
+ return ((_a = this._blocks) !== null && _a !== void 0 ? _a : (this._blocks = new Client_3.Blocks(this._options)));
76
+ }
67
77
  /**
68
78
  * Get a list of all identities in the database
69
79
  *
@@ -119,7 +129,7 @@ class Identities {
119
129
  method: "GET",
120
130
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
121
131
  ? yield core.Supplier.get(this._options.project)
122
- : 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),
132
+ : 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),
123
133
  contentType: "application/json",
124
134
  queryParameters: _queryParams,
125
135
  requestType: "json",
@@ -198,7 +208,7 @@ class Identities {
198
208
  method: "POST",
199
209
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
200
210
  ? yield core.Supplier.get(this._options.project)
201
- : 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),
211
+ : 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),
202
212
  contentType: "application/json",
203
213
  requestType: "json",
204
214
  body: serializers.IdentityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -277,7 +287,7 @@ class Identities {
277
287
  method: "PUT",
278
288
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
279
289
  ? yield core.Supplier.get(this._options.project)
280
- : 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),
290
+ : 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),
281
291
  contentType: "application/json",
282
292
  requestType: "json",
283
293
  body: serializers.IdentityUpsert.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -353,7 +363,7 @@ class Identities {
353
363
  method: "GET",
354
364
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
355
365
  ? yield core.Supplier.get(this._options.project)
356
- : 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),
366
+ : 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),
357
367
  contentType: "application/json",
358
368
  requestType: "json",
359
369
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -427,7 +437,7 @@ class Identities {
427
437
  method: "GET",
428
438
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
429
439
  ? yield core.Supplier.get(this._options.project)
430
- : 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),
440
+ : 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),
431
441
  contentType: "application/json",
432
442
  requestType: "json",
433
443
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -503,7 +513,7 @@ class Identities {
503
513
  method: "DELETE",
504
514
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
505
515
  ? yield core.Supplier.get(this._options.project)
506
- : 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),
516
+ : 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),
507
517
  contentType: "application/json",
508
518
  requestType: "json",
509
519
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -569,7 +579,7 @@ class Identities {
569
579
  method: "PATCH",
570
580
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
571
581
  ? yield core.Supplier.get(this._options.project)
572
- : 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),
582
+ : 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),
573
583
  contentType: "application/json",
574
584
  requestType: "json",
575
585
  body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -0,0 +1,44 @@
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
+ * @param {string} identityId
34
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @example
37
+ * await client.identities.agents.list("identity_id")
38
+ */
39
+ list(identityId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<void>;
40
+ private __list;
41
+ protected _getCustomAuthorizationHeaders(): Promise<{
42
+ Authorization: string;
43
+ }>;
44
+ }
@@ -0,0 +1,119 @@
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 url_join_1 = __importDefault(require("url-join"));
55
+ const errors = __importStar(require("../../../../../../errors/index"));
56
+ class Agents {
57
+ constructor(_options = {}) {
58
+ this._options = _options;
59
+ }
60
+ /**
61
+ * @param {string} identityId
62
+ * @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @example
65
+ * await client.identities.agents.list("identity_id")
66
+ */
67
+ list(identityId, requestOptions) {
68
+ return core.HttpResponsePromise.fromPromise(this.__list(identityId, requestOptions));
69
+ }
70
+ __list(identityId, requestOptions) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ var _a, _b, _c;
73
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
74
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/identities/${encodeURIComponent(identityId)}/agents`),
75
+ method: "GET",
76
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
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.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
+ contentType: "application/json",
80
+ requestType: "json",
81
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
82
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
+ });
85
+ if (_response.ok) {
86
+ return { data: undefined, rawResponse: _response.rawResponse };
87
+ }
88
+ if (_response.error.reason === "status-code") {
89
+ throw new errors.LettaError({
90
+ statusCode: _response.error.statusCode,
91
+ body: _response.error.body,
92
+ rawResponse: _response.rawResponse,
93
+ });
94
+ }
95
+ switch (_response.error.reason) {
96
+ case "non-json":
97
+ throw new errors.LettaError({
98
+ statusCode: _response.error.statusCode,
99
+ body: _response.error.rawBody,
100
+ rawResponse: _response.rawResponse,
101
+ });
102
+ case "timeout":
103
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/identities/{identity_id}/agents.");
104
+ case "unknown":
105
+ throw new errors.LettaError({
106
+ message: _response.error.errorMessage,
107
+ rawResponse: _response.rawResponse,
108
+ });
109
+ }
110
+ });
111
+ }
112
+ _getCustomAuthorizationHeaders() {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const tokenValue = yield core.Supplier.get(this._options.token);
115
+ return { Authorization: `Bearer ${tokenValue}` };
116
+ });
117
+ }
118
+ }
119
+ 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);
@@ -0,0 +1,44 @@
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 Blocks {
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 Blocks {
30
+ protected readonly _options: Blocks.Options;
31
+ constructor(_options?: Blocks.Options);
32
+ /**
33
+ * @param {string} identityId
34
+ * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @example
37
+ * await client.identities.blocks.list("identity_id")
38
+ */
39
+ list(identityId: string, requestOptions?: Blocks.RequestOptions): core.HttpResponsePromise<void>;
40
+ private __list;
41
+ protected _getCustomAuthorizationHeaders(): Promise<{
42
+ Authorization: string;
43
+ }>;
44
+ }
@@ -0,0 +1,119 @@
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.Blocks = void 0;
52
+ const environments = __importStar(require("../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../core"));
54
+ const url_join_1 = __importDefault(require("url-join"));
55
+ const errors = __importStar(require("../../../../../../errors/index"));
56
+ class Blocks {
57
+ constructor(_options = {}) {
58
+ this._options = _options;
59
+ }
60
+ /**
61
+ * @param {string} identityId
62
+ * @param {Blocks.RequestOptions} requestOptions - Request-specific configuration.
63
+ *
64
+ * @example
65
+ * await client.identities.blocks.list("identity_id")
66
+ */
67
+ list(identityId, requestOptions) {
68
+ return core.HttpResponsePromise.fromPromise(this.__list(identityId, requestOptions));
69
+ }
70
+ __list(identityId, requestOptions) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ var _a, _b, _c;
73
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
74
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/identities/${encodeURIComponent(identityId)}/blocks`),
75
+ method: "GET",
76
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
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.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
+ contentType: "application/json",
80
+ requestType: "json",
81
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
82
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
+ });
85
+ if (_response.ok) {
86
+ return { data: undefined, rawResponse: _response.rawResponse };
87
+ }
88
+ if (_response.error.reason === "status-code") {
89
+ throw new errors.LettaError({
90
+ statusCode: _response.error.statusCode,
91
+ body: _response.error.body,
92
+ rawResponse: _response.rawResponse,
93
+ });
94
+ }
95
+ switch (_response.error.reason) {
96
+ case "non-json":
97
+ throw new errors.LettaError({
98
+ statusCode: _response.error.statusCode,
99
+ body: _response.error.rawBody,
100
+ rawResponse: _response.rawResponse,
101
+ });
102
+ case "timeout":
103
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling GET /v1/identities/{identity_id}/blocks.");
104
+ case "unknown":
105
+ throw new errors.LettaError({
106
+ message: _response.error.errorMessage,
107
+ rawResponse: _response.rawResponse,
108
+ });
109
+ }
110
+ });
111
+ }
112
+ _getCustomAuthorizationHeaders() {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const tokenValue = yield core.Supplier.get(this._options.token);
115
+ return { Authorization: `Bearer ${tokenValue}` };
116
+ });
117
+ }
118
+ }
119
+ exports.Blocks = Blocks;
@@ -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);
@@ -1 +1,3 @@
1
1
  export * as properties from "./properties";
2
+ export * as agents from "./agents";
3
+ export * as blocks from "./blocks";
@@ -33,5 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.properties = void 0;
36
+ exports.blocks = exports.agents = exports.properties = void 0;
37
37
  exports.properties = __importStar(require("./properties"));
38
+ exports.agents = __importStar(require("./agents"));
39
+ exports.blocks = __importStar(require("./blocks"));
@@ -84,7 +84,7 @@ class Properties {
84
84
  method: "PUT",
85
85
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
86
86
  ? yield core.Supplier.get(this._options.project)
87
- : 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),
87
+ : 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),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.identities.properties.upsert.Request.jsonOrThrow(request, {
@@ -99,7 +99,7 @@ class Jobs {
99
99
  method: "GET",
100
100
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
101
101
  ? yield core.Supplier.get(this._options.project)
102
- : 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),
102
+ : 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),
103
103
  contentType: "application/json",
104
104
  queryParameters: _queryParams,
105
105
  requestType: "json",
@@ -193,7 +193,7 @@ class Jobs {
193
193
  method: "GET",
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
  queryParameters: _queryParams,
199
199
  requestType: "json",
@@ -270,7 +270,7 @@ class Jobs {
270
270
  method: "GET",
271
271
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
272
272
  ? yield core.Supplier.get(this._options.project)
273
- : 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),
273
+ : 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),
274
274
  contentType: "application/json",
275
275
  requestType: "json",
276
276
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -346,7 +346,7 @@ class Jobs {
346
346
  method: "DELETE",
347
347
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
348
348
  ? yield core.Supplier.get(this._options.project)
349
- : 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),
349
+ : 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),
350
350
  contentType: "application/json",
351
351
  requestType: "json",
352
352
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -425,7 +425,7 @@ class Jobs {
425
425
  method: "PATCH",
426
426
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
427
427
  ? yield core.Supplier.get(this._options.project)
428
- : 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),
428
+ : 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),
429
429
  contentType: "application/json",
430
430
  requestType: "json",
431
431
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -106,7 +106,7 @@ class Models {
106
106
  method: "GET",
107
107
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
108
108
  ? yield core.Supplier.get(this._options.project)
109
- : 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),
109
+ : 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),
110
110
  contentType: "application/json",
111
111
  queryParameters: _queryParams,
112
112
  requestType: "json",
@@ -178,7 +178,7 @@ class Models {
178
178
  method: "GET",
179
179
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
180
180
  ? yield core.Supplier.get(this._options.project)
181
- : 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),
181
+ : 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),
182
182
  contentType: "application/json",
183
183
  requestType: "json",
184
184
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -80,7 +80,7 @@ class Embeddings {
80
80
  method: "GET",
81
81
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
82
82
  ? yield core.Supplier.get(this._options.project)
83
- : 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),
83
+ : 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),
84
84
  contentType: "application/json",
85
85
  requestType: "json",
86
86
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -89,7 +89,7 @@ class Projects {
89
89
  method: "GET",
90
90
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
91
91
  ? yield core.Supplier.get(this._options.project)
92
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.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),
92
+ : 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),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",