@letta-ai/letta-client 0.1.146 → 0.1.148

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 (154) hide show
  1. package/api/resources/agents/client/Client.d.ts +30 -0
  2. package/api/resources/agents/client/Client.js +155 -10
  3. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  4. package/api/resources/agents/resources/context/client/Client.js +1 -1
  5. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  6. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  7. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  8. package/api/resources/agents/resources/messages/client/Client.d.ts +3 -0
  9. package/api/resources/agents/resources/messages/client/Client.js +9 -6
  10. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  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 +3 -3
  14. package/api/resources/batches/client/Client.js +4 -4
  15. package/api/resources/blocks/client/Client.js +6 -6
  16. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  17. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  18. package/api/resources/embeddingModels/client/Client.js +1 -1
  19. package/api/resources/groups/client/Client.js +6 -6
  20. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  21. package/api/resources/health/client/Client.js +1 -1
  22. package/api/resources/identities/client/Client.js +7 -7
  23. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  24. package/api/resources/jobs/client/Client.d.ts +16 -0
  25. package/api/resources/jobs/client/Client.js +101 -6
  26. package/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +16 -0
  27. package/api/resources/jobs/client/requests/JobsListRequest.d.ts +16 -0
  28. package/api/resources/messages/client/Client.js +1 -1
  29. package/api/resources/models/client/Client.js +1 -1
  30. package/api/resources/projects/client/Client.js +1 -1
  31. package/api/resources/providers/client/Client.js +5 -5
  32. package/api/resources/runs/client/Client.js +4 -4
  33. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  34. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  35. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  36. package/api/resources/sources/client/Client.js +8 -8
  37. package/api/resources/sources/resources/files/client/Client.js +3 -3
  38. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  39. package/api/resources/steps/client/Client.js +6 -3
  40. package/api/resources/steps/client/requests/StepsListRequest.d.ts +4 -0
  41. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  42. package/api/resources/tags/client/Client.js +1 -1
  43. package/api/resources/telemetry/client/Client.js +1 -1
  44. package/api/resources/templates/client/Client.js +1 -1
  45. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  46. package/api/resources/tools/client/Client.js +19 -19
  47. package/api/resources/voice/client/Client.js +1 -1
  48. package/api/types/CodeInput.d.ts +7 -0
  49. package/api/types/CodeInput.js +5 -0
  50. package/api/types/Step.d.ts +2 -0
  51. package/api/types/StopReasonType.d.ts +2 -1
  52. package/api/types/StopReasonType.js +1 -0
  53. package/api/types/UpdateSsemcpServer.d.ts +2 -0
  54. package/api/types/UpdateStreamableHttpmcpServer.d.ts +2 -0
  55. package/api/types/index.d.ts +1 -0
  56. package/api/types/index.js +1 -0
  57. package/dist/api/resources/agents/client/Client.d.ts +30 -0
  58. package/dist/api/resources/agents/client/Client.js +155 -10
  59. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  60. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  61. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  62. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  63. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  64. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +3 -0
  65. package/dist/api/resources/agents/resources/messages/client/Client.js +9 -6
  66. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  67. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  68. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  69. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  70. package/dist/api/resources/batches/client/Client.js +4 -4
  71. package/dist/api/resources/blocks/client/Client.js +6 -6
  72. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  73. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  74. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  75. package/dist/api/resources/groups/client/Client.js +6 -6
  76. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  77. package/dist/api/resources/health/client/Client.js +1 -1
  78. package/dist/api/resources/identities/client/Client.js +7 -7
  79. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  80. package/dist/api/resources/jobs/client/Client.d.ts +16 -0
  81. package/dist/api/resources/jobs/client/Client.js +101 -6
  82. package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +16 -0
  83. package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +16 -0
  84. package/dist/api/resources/messages/client/Client.js +1 -1
  85. package/dist/api/resources/models/client/Client.js +1 -1
  86. package/dist/api/resources/projects/client/Client.js +1 -1
  87. package/dist/api/resources/providers/client/Client.js +5 -5
  88. package/dist/api/resources/runs/client/Client.js +4 -4
  89. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  90. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  91. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  92. package/dist/api/resources/sources/client/Client.js +8 -8
  93. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  94. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  95. package/dist/api/resources/steps/client/Client.js +6 -3
  96. package/dist/api/resources/steps/client/requests/StepsListRequest.d.ts +4 -0
  97. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  98. package/dist/api/resources/tags/client/Client.js +1 -1
  99. package/dist/api/resources/telemetry/client/Client.js +1 -1
  100. package/dist/api/resources/templates/client/Client.js +1 -1
  101. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  102. package/dist/api/resources/tools/client/Client.js +19 -19
  103. package/dist/api/resources/voice/client/Client.js +1 -1
  104. package/dist/api/types/CodeInput.d.ts +7 -0
  105. package/dist/api/types/CodeInput.js +5 -0
  106. package/dist/api/types/Step.d.ts +2 -0
  107. package/dist/api/types/StopReasonType.d.ts +2 -1
  108. package/dist/api/types/StopReasonType.js +1 -0
  109. package/dist/api/types/UpdateSsemcpServer.d.ts +2 -0
  110. package/dist/api/types/UpdateStreamableHttpmcpServer.d.ts +2 -0
  111. package/dist/api/types/index.d.ts +1 -0
  112. package/dist/api/types/index.js +1 -0
  113. package/dist/serialization/resources/agents/client/cancelAgentRun.d.ts +13 -0
  114. package/dist/serialization/resources/agents/client/cancelAgentRun.js +42 -0
  115. package/dist/serialization/resources/agents/client/closeAllOpenFiles.d.ts +9 -0
  116. package/dist/serialization/resources/agents/client/closeAllOpenFiles.js +41 -0
  117. package/dist/serialization/resources/agents/client/index.d.ts +2 -0
  118. package/dist/serialization/resources/agents/client/index.js +3 -1
  119. package/dist/serialization/types/CodeInput.d.ts +12 -0
  120. package/dist/serialization/types/CodeInput.js +43 -0
  121. package/dist/serialization/types/Step.d.ts +1 -0
  122. package/dist/serialization/types/Step.js +1 -0
  123. package/dist/serialization/types/StopReasonType.d.ts +1 -1
  124. package/dist/serialization/types/StopReasonType.js +9 -1
  125. package/dist/serialization/types/UpdateSsemcpServer.d.ts +1 -0
  126. package/dist/serialization/types/UpdateSsemcpServer.js +1 -0
  127. package/dist/serialization/types/UpdateStreamableHttpmcpServer.d.ts +1 -0
  128. package/dist/serialization/types/UpdateStreamableHttpmcpServer.js +1 -0
  129. package/dist/serialization/types/index.d.ts +1 -0
  130. package/dist/serialization/types/index.js +1 -0
  131. package/dist/version.d.ts +1 -1
  132. package/dist/version.js +1 -1
  133. package/package.json +1 -1
  134. package/reference.md +209 -0
  135. package/serialization/resources/agents/client/cancelAgentRun.d.ts +13 -0
  136. package/serialization/resources/agents/client/cancelAgentRun.js +42 -0
  137. package/serialization/resources/agents/client/closeAllOpenFiles.d.ts +9 -0
  138. package/serialization/resources/agents/client/closeAllOpenFiles.js +41 -0
  139. package/serialization/resources/agents/client/index.d.ts +2 -0
  140. package/serialization/resources/agents/client/index.js +3 -1
  141. package/serialization/types/CodeInput.d.ts +12 -0
  142. package/serialization/types/CodeInput.js +43 -0
  143. package/serialization/types/Step.d.ts +1 -0
  144. package/serialization/types/Step.js +1 -0
  145. package/serialization/types/StopReasonType.d.ts +1 -1
  146. package/serialization/types/StopReasonType.js +9 -1
  147. package/serialization/types/UpdateSsemcpServer.d.ts +1 -0
  148. package/serialization/types/UpdateSsemcpServer.js +1 -0
  149. package/serialization/types/UpdateStreamableHttpmcpServer.d.ts +1 -0
  150. package/serialization/types/UpdateStreamableHttpmcpServer.js +1 -0
  151. package/serialization/types/index.d.ts +1 -0
  152. package/serialization/types/index.js +1 -0
  153. package/version.d.ts +1 -1
  154. package/version.js +1 -1
@@ -99,7 +99,7 @@ class Messages {
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.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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",
@@ -177,7 +177,7 @@ class Messages {
177
177
  method: "POST",
178
178
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
179
179
  ? yield core.Supplier.get(this._options.project)
180
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
180
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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
181
  contentType: "application/json",
182
182
  requestType: "json",
183
183
  body: serializers.LettaRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -239,7 +239,7 @@ class Messages {
239
239
  method: "POST",
240
240
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
241
241
  ? yield core.Supplier.get(this._options.project)
242
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
242
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
243
243
  contentType: "application/json",
244
244
  requestType: "json",
245
245
  body: serializers.LettaStreamingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -322,7 +322,7 @@ class Messages {
322
322
  method: "PATCH",
323
323
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
324
324
  ? yield core.Supplier.get(this._options.project)
325
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
325
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
326
326
  contentType: "application/json",
327
327
  requestType: "json",
328
328
  body: serializers.groups.MessagesModifyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -390,7 +390,7 @@ class Messages {
390
390
  method: "PATCH",
391
391
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
392
392
  ? yield core.Supplier.get(this._options.project)
393
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
393
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
394
394
  contentType: "application/json",
395
395
  requestType: "json",
396
396
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -72,7 +72,7 @@ class Health {
72
72
  method: "GET",
73
73
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
74
74
  ? yield core.Supplier.get(this._options.project)
75
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
75
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
76
76
  contentType: "application/json",
77
77
  requestType: "json",
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -106,7 +106,7 @@ class Identities {
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.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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",
@@ -176,7 +176,7 @@ class Identities {
176
176
  method: "POST",
177
177
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
178
178
  ? yield core.Supplier.get(this._options.project)
179
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
179
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
180
180
  contentType: "application/json",
181
181
  requestType: "json",
182
182
  body: serializers.IdentityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -246,7 +246,7 @@ class Identities {
246
246
  method: "PUT",
247
247
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
248
248
  ? yield core.Supplier.get(this._options.project)
249
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
249
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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
250
  contentType: "application/json",
251
251
  requestType: "json",
252
252
  body: serializers.IdentityUpsert.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -313,7 +313,7 @@ class Identities {
313
313
  method: "GET",
314
314
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
315
315
  ? yield core.Supplier.get(this._options.project)
316
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
316
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
317
317
  contentType: "application/json",
318
318
  requestType: "json",
319
319
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -378,7 +378,7 @@ class Identities {
378
378
  method: "GET",
379
379
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
380
380
  ? yield core.Supplier.get(this._options.project)
381
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
381
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
382
382
  contentType: "application/json",
383
383
  requestType: "json",
384
384
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -445,7 +445,7 @@ class Identities {
445
445
  method: "DELETE",
446
446
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
447
447
  ? yield core.Supplier.get(this._options.project)
448
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
448
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
449
449
  contentType: "application/json",
450
450
  requestType: "json",
451
451
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -505,7 +505,7 @@ class Identities {
505
505
  method: "PATCH",
506
506
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
507
507
  ? yield core.Supplier.get(this._options.project)
508
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
508
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
509
509
  contentType: "application/json",
510
510
  requestType: "json",
511
511
  body: serializers.IdentityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -81,7 +81,7 @@ class Properties {
81
81
  method: "PUT",
82
82
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
83
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.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
85
  contentType: "application/json",
86
86
  requestType: "json",
87
87
  body: serializers.identities.properties.upsert.Request.jsonOrThrow(request, {
@@ -32,6 +32,7 @@ export declare class Jobs {
32
32
  constructor(_options?: Jobs.Options);
33
33
  /**
34
34
  * List all jobs.
35
+ * TODO (cliandy): implementation for pagination
35
36
  *
36
37
  * @param {Letta.JobsListRequest} request
37
38
  * @param {Jobs.RequestOptions} requestOptions - Request-specific configuration.
@@ -78,6 +79,21 @@ export declare class Jobs {
78
79
  * await client.jobs.delete("job_id")
79
80
  */
80
81
  delete(jobId: string, requestOptions?: Jobs.RequestOptions): Promise<Letta.Job>;
82
+ /**
83
+ * Cancel a job by its job_id.
84
+ *
85
+ * This endpoint marks a job as cancelled, which will cause any associated
86
+ * agent execution to terminate as soon as possible.
87
+ *
88
+ * @param {string} jobId
89
+ * @param {Jobs.RequestOptions} requestOptions - Request-specific configuration.
90
+ *
91
+ * @throws {@link Letta.UnprocessableEntityError}
92
+ *
93
+ * @example
94
+ * await client.jobs.cancelJob("job_id")
95
+ */
96
+ cancelJob(jobId: string, requestOptions?: Jobs.RequestOptions): Promise<Letta.Job>;
81
97
  protected _getCustomAuthorizationHeaders(): Promise<{
82
98
  Authorization: string;
83
99
  }>;
@@ -61,6 +61,7 @@ class Jobs {
61
61
  }
62
62
  /**
63
63
  * List all jobs.
64
+ * TODO (cliandy): implementation for pagination
64
65
  *
65
66
  * @param {Letta.JobsListRequest} request
66
67
  * @param {Jobs.RequestOptions} requestOptions - Request-specific configuration.
@@ -73,17 +74,29 @@ class Jobs {
73
74
  list() {
74
75
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
75
76
  var _a, _b, _c;
76
- const { sourceId } = request;
77
+ const { sourceId, before, after, limit, ascending } = request;
77
78
  const _queryParams = {};
78
79
  if (sourceId != null) {
79
80
  _queryParams["source_id"] = sourceId;
80
81
  }
82
+ if (before != null) {
83
+ _queryParams["before"] = before;
84
+ }
85
+ if (after != null) {
86
+ _queryParams["after"] = after;
87
+ }
88
+ if (limit != null) {
89
+ _queryParams["limit"] = limit.toString();
90
+ }
91
+ if (ascending != null) {
92
+ _queryParams["ascending"] = ascending.toString();
93
+ }
81
94
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
82
95
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/jobs/"),
83
96
  method: "GET",
84
97
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
85
98
  ? yield core.Supplier.get(this._options.project)
86
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
99
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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
100
  contentType: "application/json",
88
101
  queryParameters: _queryParams,
89
102
  requestType: "json",
@@ -146,17 +159,29 @@ class Jobs {
146
159
  listActive() {
147
160
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
148
161
  var _a, _b, _c;
149
- const { sourceId } = request;
162
+ const { sourceId, before, after, limit, ascending } = request;
150
163
  const _queryParams = {};
151
164
  if (sourceId != null) {
152
165
  _queryParams["source_id"] = sourceId;
153
166
  }
167
+ if (before != null) {
168
+ _queryParams["before"] = before;
169
+ }
170
+ if (after != null) {
171
+ _queryParams["after"] = after;
172
+ }
173
+ if (limit != null) {
174
+ _queryParams["limit"] = limit.toString();
175
+ }
176
+ if (ascending != null) {
177
+ _queryParams["ascending"] = ascending.toString();
178
+ }
154
179
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
155
180
  url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, "v1/jobs/active"),
156
181
  method: "GET",
157
182
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
158
183
  ? yield core.Supplier.get(this._options.project)
159
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
184
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
160
185
  contentType: "application/json",
161
186
  queryParameters: _queryParams,
162
187
  requestType: "json",
@@ -224,7 +249,7 @@ class Jobs {
224
249
  method: "GET",
225
250
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
226
251
  ? yield core.Supplier.get(this._options.project)
227
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
252
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
253
  contentType: "application/json",
229
254
  requestType: "json",
230
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -291,7 +316,7 @@ class Jobs {
291
316
  method: "DELETE",
292
317
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
293
318
  ? yield core.Supplier.get(this._options.project)
294
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
319
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
295
320
  contentType: "application/json",
296
321
  requestType: "json",
297
322
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -339,6 +364,76 @@ class Jobs {
339
364
  }
340
365
  });
341
366
  }
367
+ /**
368
+ * Cancel a job by its job_id.
369
+ *
370
+ * This endpoint marks a job as cancelled, which will cause any associated
371
+ * agent execution to terminate as soon as possible.
372
+ *
373
+ * @param {string} jobId
374
+ * @param {Jobs.RequestOptions} requestOptions - Request-specific configuration.
375
+ *
376
+ * @throws {@link Letta.UnprocessableEntityError}
377
+ *
378
+ * @example
379
+ * await client.jobs.cancelJob("job_id")
380
+ */
381
+ cancelJob(jobId, requestOptions) {
382
+ return __awaiter(this, void 0, void 0, function* () {
383
+ var _a, _b, _c;
384
+ const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
385
+ url: (0, url_join_1.default)((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LettaEnvironment.LettaCloud, `v1/jobs/${encodeURIComponent(jobId)}/cancel`),
386
+ method: "PATCH",
387
+ headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
388
+ ? yield core.Supplier.get(this._options.project)
389
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
390
+ contentType: "application/json",
391
+ requestType: "json",
392
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
393
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
394
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
395
+ });
396
+ if (_response.ok) {
397
+ return serializers.Job.parseOrThrow(_response.body, {
398
+ unrecognizedObjectKeys: "passthrough",
399
+ allowUnrecognizedUnionMembers: true,
400
+ allowUnrecognizedEnumValues: true,
401
+ skipValidation: true,
402
+ breadcrumbsPrefix: ["response"],
403
+ });
404
+ }
405
+ if (_response.error.reason === "status-code") {
406
+ switch (_response.error.statusCode) {
407
+ case 422:
408
+ throw new Letta.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
409
+ unrecognizedObjectKeys: "passthrough",
410
+ allowUnrecognizedUnionMembers: true,
411
+ allowUnrecognizedEnumValues: true,
412
+ skipValidation: true,
413
+ breadcrumbsPrefix: ["response"],
414
+ }));
415
+ default:
416
+ throw new errors.LettaError({
417
+ statusCode: _response.error.statusCode,
418
+ body: _response.error.body,
419
+ });
420
+ }
421
+ }
422
+ switch (_response.error.reason) {
423
+ case "non-json":
424
+ throw new errors.LettaError({
425
+ statusCode: _response.error.statusCode,
426
+ body: _response.error.rawBody,
427
+ });
428
+ case "timeout":
429
+ throw new errors.LettaTimeoutError("Timeout exceeded when calling PATCH /v1/jobs/{job_id}/cancel.");
430
+ case "unknown":
431
+ throw new errors.LettaError({
432
+ message: _response.error.errorMessage,
433
+ });
434
+ }
435
+ });
436
+ }
342
437
  _getCustomAuthorizationHeaders() {
343
438
  return __awaiter(this, void 0, void 0, function* () {
344
439
  const tokenValue = yield core.Supplier.get(this._options.token);
@@ -10,4 +10,20 @@ export interface JobsListActiveRequest {
10
10
  * Only list jobs associated with the source.
11
11
  */
12
12
  sourceId?: string;
13
+ /**
14
+ * Cursor for pagination
15
+ */
16
+ before?: string;
17
+ /**
18
+ * Cursor for pagination
19
+ */
20
+ after?: string;
21
+ /**
22
+ * Limit for pagination
23
+ */
24
+ limit?: number;
25
+ /**
26
+ * Whether to sort jobs oldest to newest (True, default) or newest to oldest (False)
27
+ */
28
+ ascending?: boolean;
13
29
  }
@@ -10,4 +10,20 @@ export interface JobsListRequest {
10
10
  * Only list jobs associated with the source.
11
11
  */
12
12
  sourceId?: string;
13
+ /**
14
+ * Cursor for pagination
15
+ */
16
+ before?: string;
17
+ /**
18
+ * Cursor for pagination
19
+ */
20
+ after?: string;
21
+ /**
22
+ * Limit for pagination
23
+ */
24
+ limit?: number;
25
+ /**
26
+ * Whether to sort jobs oldest to newest (True, default) or newest to oldest (False)
27
+ */
28
+ ascending?: boolean;
13
29
  }
@@ -100,7 +100,7 @@ class Messages {
100
100
  method: "GET",
101
101
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
102
102
  ? yield core.Supplier.get(this._options.project)
103
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
104
104
  contentType: "application/json",
105
105
  queryParameters: _queryParams,
106
106
  requestType: "json",
@@ -94,7 +94,7 @@ class Models {
94
94
  method: "GET",
95
95
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
96
96
  ? yield core.Supplier.get(this._options.project)
97
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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
98
  contentType: "application/json",
99
99
  queryParameters: _queryParams,
100
100
  requestType: "json",
@@ -86,7 +86,7 @@ class Projects {
86
86
  method: "GET",
87
87
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
88
88
  ? yield core.Supplier.get(this._options.project)
89
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
90
  contentType: "application/json",
91
91
  queryParameters: _queryParams,
92
92
  requestType: "json",
@@ -92,7 +92,7 @@ class Providers {
92
92
  method: "GET",
93
93
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
94
94
  ? yield core.Supplier.get(this._options.project)
95
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
95
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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
96
  contentType: "application/json",
97
97
  queryParameters: _queryParams,
98
98
  requestType: "json",
@@ -164,7 +164,7 @@ class Providers {
164
164
  method: "POST",
165
165
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
166
166
  ? yield core.Supplier.get(this._options.project)
167
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.ProviderCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -232,7 +232,7 @@ class Providers {
232
232
  method: "DELETE",
233
233
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
234
234
  ? yield core.Supplier.get(this._options.project)
235
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
235
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
236
236
  contentType: "application/json",
237
237
  requestType: "json",
238
238
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -296,7 +296,7 @@ class Providers {
296
296
  method: "PATCH",
297
297
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
298
298
  ? yield core.Supplier.get(this._options.project)
299
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
299
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
300
300
  contentType: "application/json",
301
301
  requestType: "json",
302
302
  body: serializers.ProviderUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -361,7 +361,7 @@ class Providers {
361
361
  method: "GET",
362
362
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
363
363
  ? yield core.Supplier.get(this._options.project)
364
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
364
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
365
365
  contentType: "application/json",
366
366
  requestType: "json",
367
367
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -103,7 +103,7 @@ class Runs {
103
103
  method: "GET",
104
104
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
105
105
  ? yield core.Supplier.get(this._options.project)
106
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -181,7 +181,7 @@ class Runs {
181
181
  method: "GET",
182
182
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
183
183
  ? yield core.Supplier.get(this._options.project)
184
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
184
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
185
185
  contentType: "application/json",
186
186
  queryParameters: _queryParams,
187
187
  requestType: "json",
@@ -249,7 +249,7 @@ class Runs {
249
249
  method: "GET",
250
250
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
251
251
  ? yield core.Supplier.get(this._options.project)
252
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
252
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
253
253
  contentType: "application/json",
254
254
  requestType: "json",
255
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -316,7 +316,7 @@ class Runs {
316
316
  method: "DELETE",
317
317
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
318
318
  ? yield core.Supplier.get(this._options.project)
319
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
319
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
320
320
  contentType: "application/json",
321
321
  requestType: "json",
322
322
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -109,7 +109,7 @@ class Messages {
109
109
  method: "GET",
110
110
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
111
111
  ? yield core.Supplier.get(this._options.project)
112
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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),
112
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
113
113
  contentType: "application/json",
114
114
  queryParameters: _queryParams,
115
115
  requestType: "json",
@@ -103,7 +103,7 @@ class Steps {
103
103
  method: "GET",
104
104
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
105
105
  ? yield core.Supplier.get(this._options.project)
106
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "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
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -78,7 +78,7 @@ class Usage {
78
78
  method: "GET",
79
79
  headers: Object.assign(Object.assign({ "X-Project": (yield core.Supplier.get(this._options.project)) != null
80
80
  ? yield core.Supplier.get(this._options.project)
81
- : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.146", "User-Agent": "@letta-ai/letta-client/0.1.146", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
+ : undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.148", "User-Agent": "@letta-ai/letta-client/0.1.148", "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),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,