@letta-ai/letta-client 0.1.147 → 0.1.149

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 (188) hide show
  1. package/api/resources/agents/client/Client.js +11 -11
  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/groups/client/Client.js +1 -1
  6. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  7. package/api/resources/agents/resources/messages/client/Client.d.ts +18 -0
  8. package/api/resources/agents/resources/messages/client/Client.js +84 -6
  9. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  10. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  11. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  12. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  13. package/api/resources/batches/client/Client.js +4 -4
  14. package/api/resources/blocks/client/Client.js +6 -6
  15. package/api/resources/blocks/resources/agents/client/Client.d.ts +2 -1
  16. package/api/resources/blocks/resources/agents/client/Client.js +15 -3
  17. package/api/resources/blocks/resources/agents/client/index.d.ts +1 -1
  18. package/api/resources/blocks/resources/agents/client/index.js +15 -0
  19. package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +13 -0
  20. package/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.js +5 -0
  21. package/api/resources/blocks/resources/agents/client/requests/index.d.ts +1 -0
  22. package/api/resources/blocks/resources/agents/client/requests/index.js +2 -0
  23. package/api/resources/blocks/resources/index.d.ts +1 -0
  24. package/api/resources/blocks/resources/index.js +4 -0
  25. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  26. package/api/resources/embeddingModels/client/Client.js +1 -1
  27. package/api/resources/groups/client/Client.js +6 -6
  28. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  29. package/api/resources/health/client/Client.js +1 -1
  30. package/api/resources/identities/client/Client.js +7 -7
  31. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  32. package/api/resources/jobs/client/Client.d.ts +16 -0
  33. package/api/resources/jobs/client/Client.js +101 -6
  34. package/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +16 -0
  35. package/api/resources/jobs/client/requests/JobsListRequest.d.ts +16 -0
  36. package/api/resources/messages/client/Client.js +1 -1
  37. package/api/resources/models/client/Client.js +1 -1
  38. package/api/resources/projects/client/Client.js +1 -1
  39. package/api/resources/providers/client/Client.js +5 -5
  40. package/api/resources/runs/client/Client.js +4 -4
  41. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  42. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  43. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  44. package/api/resources/sources/client/Client.d.ts +17 -0
  45. package/api/resources/sources/client/Client.js +80 -8
  46. package/api/resources/sources/resources/files/client/Client.js +3 -3
  47. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  48. package/api/resources/steps/client/Client.js +2 -2
  49. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  50. package/api/resources/tags/client/Client.js +1 -1
  51. package/api/resources/telemetry/client/Client.js +1 -1
  52. package/api/resources/templates/client/Client.js +1 -1
  53. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  54. package/api/resources/tools/client/Client.js +19 -19
  55. package/api/resources/voice/client/Client.js +1 -1
  56. package/api/types/FileMetadata.d.ts +4 -0
  57. package/api/types/FileStats.d.ts +14 -0
  58. package/api/types/FileStats.js +5 -0
  59. package/api/types/LlmConfig.d.ts +2 -0
  60. package/api/types/OrganizationSourcesStats.d.ts +17 -0
  61. package/api/types/OrganizationSourcesStats.js +5 -0
  62. package/api/types/SourceStats.d.ts +19 -0
  63. package/api/types/SourceStats.js +5 -0
  64. package/api/types/StopReasonType.d.ts +2 -1
  65. package/api/types/StopReasonType.js +1 -0
  66. package/api/types/UpdateSsemcpServer.d.ts +2 -0
  67. package/api/types/UpdateStreamableHttpmcpServer.d.ts +2 -0
  68. package/api/types/index.d.ts +3 -0
  69. package/api/types/index.js +3 -0
  70. package/dist/api/resources/agents/client/Client.js +11 -11
  71. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  72. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  73. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  74. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  75. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  76. package/dist/api/resources/agents/resources/messages/client/Client.d.ts +18 -0
  77. package/dist/api/resources/agents/resources/messages/client/Client.js +84 -6
  78. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  79. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  80. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  81. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  82. package/dist/api/resources/batches/client/Client.js +4 -4
  83. package/dist/api/resources/blocks/client/Client.js +6 -6
  84. package/dist/api/resources/blocks/resources/agents/client/Client.d.ts +2 -1
  85. package/dist/api/resources/blocks/resources/agents/client/Client.js +15 -3
  86. package/dist/api/resources/blocks/resources/agents/client/index.d.ts +1 -1
  87. package/dist/api/resources/blocks/resources/agents/client/index.js +15 -0
  88. package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.d.ts +13 -0
  89. package/dist/api/resources/blocks/resources/agents/client/requests/AgentsListRequest.js +5 -0
  90. package/dist/api/resources/blocks/resources/agents/client/requests/index.d.ts +1 -0
  91. package/dist/api/resources/blocks/resources/agents/client/requests/index.js +2 -0
  92. package/dist/api/resources/blocks/resources/index.d.ts +1 -0
  93. package/dist/api/resources/blocks/resources/index.js +4 -0
  94. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  95. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  96. package/dist/api/resources/groups/client/Client.js +6 -6
  97. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  98. package/dist/api/resources/health/client/Client.js +1 -1
  99. package/dist/api/resources/identities/client/Client.js +7 -7
  100. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  101. package/dist/api/resources/jobs/client/Client.d.ts +16 -0
  102. package/dist/api/resources/jobs/client/Client.js +101 -6
  103. package/dist/api/resources/jobs/client/requests/JobsListActiveRequest.d.ts +16 -0
  104. package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +16 -0
  105. package/dist/api/resources/messages/client/Client.js +1 -1
  106. package/dist/api/resources/models/client/Client.js +1 -1
  107. package/dist/api/resources/projects/client/Client.js +1 -1
  108. package/dist/api/resources/providers/client/Client.js +5 -5
  109. package/dist/api/resources/runs/client/Client.js +4 -4
  110. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  111. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  112. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  113. package/dist/api/resources/sources/client/Client.d.ts +17 -0
  114. package/dist/api/resources/sources/client/Client.js +80 -8
  115. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  116. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  117. package/dist/api/resources/steps/client/Client.js +2 -2
  118. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  119. package/dist/api/resources/tags/client/Client.js +1 -1
  120. package/dist/api/resources/telemetry/client/Client.js +1 -1
  121. package/dist/api/resources/templates/client/Client.js +1 -1
  122. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  123. package/dist/api/resources/tools/client/Client.js +19 -19
  124. package/dist/api/resources/voice/client/Client.js +1 -1
  125. package/dist/api/types/FileMetadata.d.ts +4 -0
  126. package/dist/api/types/FileStats.d.ts +14 -0
  127. package/dist/api/types/FileStats.js +5 -0
  128. package/dist/api/types/LlmConfig.d.ts +2 -0
  129. package/dist/api/types/OrganizationSourcesStats.d.ts +17 -0
  130. package/dist/api/types/OrganizationSourcesStats.js +5 -0
  131. package/dist/api/types/SourceStats.d.ts +19 -0
  132. package/dist/api/types/SourceStats.js +5 -0
  133. package/dist/api/types/StopReasonType.d.ts +2 -1
  134. package/dist/api/types/StopReasonType.js +1 -0
  135. package/dist/api/types/UpdateSsemcpServer.d.ts +2 -0
  136. package/dist/api/types/UpdateStreamableHttpmcpServer.d.ts +2 -0
  137. package/dist/api/types/index.d.ts +3 -0
  138. package/dist/api/types/index.js +3 -0
  139. package/dist/serialization/resources/agents/resources/messages/client/cancel.d.ts +13 -0
  140. package/dist/serialization/resources/agents/resources/messages/client/cancel.js +42 -0
  141. package/dist/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
  142. package/dist/serialization/resources/agents/resources/messages/client/index.js +2 -1
  143. package/dist/serialization/types/FileMetadata.d.ts +2 -0
  144. package/dist/serialization/types/FileMetadata.js +2 -0
  145. package/dist/serialization/types/FileStats.d.ts +14 -0
  146. package/dist/serialization/types/FileStats.js +45 -0
  147. package/dist/serialization/types/LlmConfig.d.ts +1 -0
  148. package/dist/serialization/types/LlmConfig.js +1 -0
  149. package/dist/serialization/types/OrganizationSourcesStats.d.ts +16 -0
  150. package/dist/serialization/types/OrganizationSourcesStats.js +47 -0
  151. package/dist/serialization/types/SourceStats.d.ts +17 -0
  152. package/dist/serialization/types/SourceStats.js +48 -0
  153. package/dist/serialization/types/StopReasonType.d.ts +1 -1
  154. package/dist/serialization/types/StopReasonType.js +9 -1
  155. package/dist/serialization/types/UpdateSsemcpServer.d.ts +1 -0
  156. package/dist/serialization/types/UpdateSsemcpServer.js +1 -0
  157. package/dist/serialization/types/UpdateStreamableHttpmcpServer.d.ts +1 -0
  158. package/dist/serialization/types/UpdateStreamableHttpmcpServer.js +1 -0
  159. package/dist/serialization/types/index.d.ts +3 -0
  160. package/dist/serialization/types/index.js +3 -0
  161. package/dist/version.d.ts +1 -1
  162. package/dist/version.js +1 -1
  163. package/package.json +1 -1
  164. package/reference.md +213 -1
  165. package/serialization/resources/agents/resources/messages/client/cancel.d.ts +13 -0
  166. package/serialization/resources/agents/resources/messages/client/cancel.js +42 -0
  167. package/serialization/resources/agents/resources/messages/client/index.d.ts +1 -0
  168. package/serialization/resources/agents/resources/messages/client/index.js +2 -1
  169. package/serialization/types/FileMetadata.d.ts +2 -0
  170. package/serialization/types/FileMetadata.js +2 -0
  171. package/serialization/types/FileStats.d.ts +14 -0
  172. package/serialization/types/FileStats.js +45 -0
  173. package/serialization/types/LlmConfig.d.ts +1 -0
  174. package/serialization/types/LlmConfig.js +1 -0
  175. package/serialization/types/OrganizationSourcesStats.d.ts +16 -0
  176. package/serialization/types/OrganizationSourcesStats.js +47 -0
  177. package/serialization/types/SourceStats.d.ts +17 -0
  178. package/serialization/types/SourceStats.js +48 -0
  179. package/serialization/types/StopReasonType.d.ts +1 -1
  180. package/serialization/types/StopReasonType.js +9 -1
  181. package/serialization/types/UpdateSsemcpServer.d.ts +1 -0
  182. package/serialization/types/UpdateSsemcpServer.js +1 -0
  183. package/serialization/types/UpdateStreamableHttpmcpServer.d.ts +1 -0
  184. package/serialization/types/UpdateStreamableHttpmcpServer.js +1 -0
  185. package/serialization/types/index.d.ts +3 -0
  186. package/serialization/types/index.js +3 -0
  187. package/version.d.ts +1 -1
  188. package/version.js +1 -1
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.OrganizationSourcesStats = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const SourceStats_1 = require("./SourceStats");
42
+ exports.OrganizationSourcesStats = core.serialization.object({
43
+ totalSources: core.serialization.property("total_sources", core.serialization.number().optional()),
44
+ totalFiles: core.serialization.property("total_files", core.serialization.number().optional()),
45
+ totalSize: core.serialization.property("total_size", core.serialization.number().optional()),
46
+ sources: core.serialization.list(SourceStats_1.SourceStats).optional(),
47
+ });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { FileStats } from "./FileStats";
8
+ export declare const SourceStats: core.serialization.ObjectSchema<serializers.SourceStats.Raw, Letta.SourceStats>;
9
+ export declare namespace SourceStats {
10
+ interface Raw {
11
+ source_id: string;
12
+ source_name: string;
13
+ file_count?: number | null;
14
+ total_size?: number | null;
15
+ files?: FileStats.Raw[] | null;
16
+ }
17
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.SourceStats = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const FileStats_1 = require("./FileStats");
42
+ exports.SourceStats = core.serialization.object({
43
+ sourceId: core.serialization.property("source_id", core.serialization.string()),
44
+ sourceName: core.serialization.property("source_name", core.serialization.string()),
45
+ fileCount: core.serialization.property("file_count", core.serialization.number().optional()),
46
+ totalSize: core.serialization.property("total_size", core.serialization.number().optional()),
47
+ files: core.serialization.list(FileStats_1.FileStats).optional(),
48
+ });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const StopReasonType: core.serialization.Schema<serializers.StopReasonType.Raw, Letta.StopReasonType>;
8
8
  export declare namespace StopReasonType {
9
- type Raw = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule";
9
+ type Raw = "end_turn" | "error" | "invalid_tool_call" | "max_steps" | "no_tool_call" | "tool_rule" | "cancelled";
10
10
  }
@@ -38,4 +38,12 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.StopReasonType = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.StopReasonType = core.serialization.enum_(["end_turn", "error", "invalid_tool_call", "max_steps", "no_tool_call", "tool_rule"]);
41
+ exports.StopReasonType = core.serialization.enum_([
42
+ "end_turn",
43
+ "error",
44
+ "invalid_tool_call",
45
+ "max_steps",
46
+ "no_tool_call",
47
+ "tool_rule",
48
+ "cancelled",
49
+ ]);
@@ -10,5 +10,6 @@ export declare namespace UpdateSsemcpServer {
10
10
  server_name?: string | null;
11
11
  server_url?: string | null;
12
12
  token?: string | null;
13
+ custom_headers?: Record<string, string | null | undefined> | null;
13
14
  }
14
15
  }
@@ -42,4 +42,5 @@ exports.UpdateSsemcpServer = core.serialization.object({
42
42
  serverName: core.serialization.property("server_name", core.serialization.string().optional()),
43
43
  serverUrl: core.serialization.property("server_url", core.serialization.string().optional()),
44
44
  token: core.serialization.string().optional(),
45
+ customHeaders: core.serialization.property("custom_headers", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
45
46
  });
@@ -11,5 +11,6 @@ export declare namespace UpdateStreamableHttpmcpServer {
11
11
  server_url?: string | null;
12
12
  auth_header?: string | null;
13
13
  auth_token?: string | null;
14
+ custom_headers?: Record<string, string | null | undefined> | null;
14
15
  }
15
16
  }
@@ -43,4 +43,5 @@ exports.UpdateStreamableHttpmcpServer = core.serialization.object({
43
43
  serverUrl: core.serialization.property("server_url", core.serialization.string().optional()),
44
44
  authHeader: core.serialization.property("auth_header", core.serialization.string().optional()),
45
45
  authToken: core.serialization.property("auth_token", core.serialization.string().optional()),
46
+ customHeaders: core.serialization.property("custom_headers", core.serialization.record(core.serialization.string(), core.serialization.string().optional()).optional()),
46
47
  });
@@ -95,6 +95,7 @@ export * from "./File_";
95
95
  export * from "./FileFile";
96
96
  export * from "./FileMetadata";
97
97
  export * from "./FileProcessingStatus";
98
+ export * from "./FileStats";
98
99
  export * from "./FunctionOutput";
99
100
  export * from "./FunctionCall";
100
101
  export * from "./FunctionDefinitionInput";
@@ -153,6 +154,7 @@ export * from "./MessageType";
153
154
  export * from "./OmittedReasoningContent";
154
155
  export * from "./Organization";
155
156
  export * from "./OrganizationCreate";
157
+ export * from "./OrganizationSourcesStats";
156
158
  export * from "./OrganizationUpdate";
157
159
  export * from "./ParameterProperties";
158
160
  export * from "./ParametersSchema";
@@ -188,6 +190,7 @@ export * from "./SandboxType";
188
190
  export * from "./SleeptimeManager";
189
191
  export * from "./SleeptimeManagerUpdate";
190
192
  export * from "./Source";
193
+ export * from "./SourceStats";
191
194
  export * from "./StdioServerConfig";
192
195
  export * from "./StepFeedback";
193
196
  export * from "./Step";
@@ -111,6 +111,7 @@ __exportStar(require("./File_"), exports);
111
111
  __exportStar(require("./FileFile"), exports);
112
112
  __exportStar(require("./FileMetadata"), exports);
113
113
  __exportStar(require("./FileProcessingStatus"), exports);
114
+ __exportStar(require("./FileStats"), exports);
114
115
  __exportStar(require("./FunctionOutput"), exports);
115
116
  __exportStar(require("./FunctionCall"), exports);
116
117
  __exportStar(require("./FunctionDefinitionInput"), exports);
@@ -169,6 +170,7 @@ __exportStar(require("./MessageType"), exports);
169
170
  __exportStar(require("./OmittedReasoningContent"), exports);
170
171
  __exportStar(require("./Organization"), exports);
171
172
  __exportStar(require("./OrganizationCreate"), exports);
173
+ __exportStar(require("./OrganizationSourcesStats"), exports);
172
174
  __exportStar(require("./OrganizationUpdate"), exports);
173
175
  __exportStar(require("./ParameterProperties"), exports);
174
176
  __exportStar(require("./ParametersSchema"), exports);
@@ -204,6 +206,7 @@ __exportStar(require("./SandboxType"), exports);
204
206
  __exportStar(require("./SleeptimeManager"), exports);
205
207
  __exportStar(require("./SleeptimeManagerUpdate"), exports);
206
208
  __exportStar(require("./Source"), exports);
209
+ __exportStar(require("./SourceStats"), exports);
207
210
  __exportStar(require("./StdioServerConfig"), exports);
208
211
  __exportStar(require("./StepFeedback"), exports);
209
212
  __exportStar(require("./Step"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.147";
1
+ export declare const SDK_VERSION = "0.1.149";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.147";
4
+ exports.SDK_VERSION = "0.1.149";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.147",
3
+ "version": "0.1.149",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -1550,6 +1550,67 @@ await client.sources.retrieveByName("source_name");
1550
1550
  </dl>
1551
1551
  </details>
1552
1552
 
1553
+ <details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">getSourcesMetadata</a>() -> Letta.OrganizationSourcesStats</code></summary>
1554
+ <dl>
1555
+ <dd>
1556
+
1557
+ #### 📝 Description
1558
+
1559
+ <dl>
1560
+ <dd>
1561
+
1562
+ <dl>
1563
+ <dd>
1564
+
1565
+ Get aggregated metadata for all sources in an organization.
1566
+
1567
+ Returns structured metadata including:
1568
+
1569
+ - Total number of sources
1570
+ - Total number of files across all sources
1571
+ - Total size of all files
1572
+ - Per-source breakdown with file details (file_name, file_size per file)
1573
+ </dd>
1574
+ </dl>
1575
+ </dd>
1576
+ </dl>
1577
+
1578
+ #### 🔌 Usage
1579
+
1580
+ <dl>
1581
+ <dd>
1582
+
1583
+ <dl>
1584
+ <dd>
1585
+
1586
+ ```typescript
1587
+ await client.sources.getSourcesMetadata();
1588
+ ```
1589
+
1590
+ </dd>
1591
+ </dl>
1592
+ </dd>
1593
+ </dl>
1594
+
1595
+ #### ⚙️ Parameters
1596
+
1597
+ <dl>
1598
+ <dd>
1599
+
1600
+ <dl>
1601
+ <dd>
1602
+
1603
+ **requestOptions:** `Sources.RequestOptions`
1604
+
1605
+ </dd>
1606
+ </dl>
1607
+ </dd>
1608
+ </dl>
1609
+
1610
+ </dd>
1611
+ </dl>
1612
+ </details>
1613
+
1553
1614
  <details><summary><code>client.sources.<a href="/src/api/resources/sources/client/Client.ts">list</a>() -> Letta.Source[]</code></summary>
1554
1615
  <dl>
1555
1616
  <dd>
@@ -3700,6 +3761,7 @@ await client.blocks.modify("block_id", {});
3700
3761
  <dd>
3701
3762
 
3702
3763
  List all jobs.
3764
+ TODO (cliandy): implementation for pagination
3703
3765
 
3704
3766
  </dd>
3705
3767
  </dl>
@@ -3939,6 +4001,72 @@ await client.jobs.delete("job_id");
3939
4001
  </dl>
3940
4002
  </details>
3941
4003
 
4004
+ <details><summary><code>client.jobs.<a href="/src/api/resources/jobs/client/Client.ts">cancelJob</a>(jobId) -> Letta.Job</code></summary>
4005
+ <dl>
4006
+ <dd>
4007
+
4008
+ #### 📝 Description
4009
+
4010
+ <dl>
4011
+ <dd>
4012
+
4013
+ <dl>
4014
+ <dd>
4015
+
4016
+ Cancel a job by its job_id.
4017
+
4018
+ This endpoint marks a job as cancelled, which will cause any associated
4019
+ agent execution to terminate as soon as possible.
4020
+
4021
+ </dd>
4022
+ </dl>
4023
+ </dd>
4024
+ </dl>
4025
+
4026
+ #### 🔌 Usage
4027
+
4028
+ <dl>
4029
+ <dd>
4030
+
4031
+ <dl>
4032
+ <dd>
4033
+
4034
+ ```typescript
4035
+ await client.jobs.cancelJob("job_id");
4036
+ ```
4037
+
4038
+ </dd>
4039
+ </dl>
4040
+ </dd>
4041
+ </dl>
4042
+
4043
+ #### ⚙️ Parameters
4044
+
4045
+ <dl>
4046
+ <dd>
4047
+
4048
+ <dl>
4049
+ <dd>
4050
+
4051
+ **jobId:** `string`
4052
+
4053
+ </dd>
4054
+ </dl>
4055
+
4056
+ <dl>
4057
+ <dd>
4058
+
4059
+ **requestOptions:** `Jobs.RequestOptions`
4060
+
4061
+ </dd>
4062
+ </dl>
4063
+ </dd>
4064
+ </dl>
4065
+
4066
+ </dd>
4067
+ </dl>
4068
+ </details>
4069
+
3942
4070
  ## Health
3943
4071
 
3944
4072
  <details><summary><code>client.health.<a href="/src/api/resources/health/client/Client.ts">check</a>() -> Letta.Health</code></summary>
@@ -6996,6 +7124,79 @@ for await (const item of response) {
6996
7124
  </dl>
6997
7125
  </details>
6998
7126
 
7127
+ <details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">cancel</a>(agentId, { ...params }) -> Record<string, unknown></code></summary>
7128
+ <dl>
7129
+ <dd>
7130
+
7131
+ #### 📝 Description
7132
+
7133
+ <dl>
7134
+ <dd>
7135
+
7136
+ <dl>
7137
+ <dd>
7138
+
7139
+ Cancel runs associated with an agent. If run_ids are passed in, cancel those in particular.
7140
+
7141
+ Note to cancel active runs associated with an agent, redis is required.
7142
+
7143
+ </dd>
7144
+ </dl>
7145
+ </dd>
7146
+ </dl>
7147
+
7148
+ #### 🔌 Usage
7149
+
7150
+ <dl>
7151
+ <dd>
7152
+
7153
+ <dl>
7154
+ <dd>
7155
+
7156
+ ```typescript
7157
+ await client.agents.messages.cancel("agent_id", undefined);
7158
+ ```
7159
+
7160
+ </dd>
7161
+ </dl>
7162
+ </dd>
7163
+ </dl>
7164
+
7165
+ #### ⚙️ Parameters
7166
+
7167
+ <dl>
7168
+ <dd>
7169
+
7170
+ <dl>
7171
+ <dd>
7172
+
7173
+ **agentId:** `string`
7174
+
7175
+ </dd>
7176
+ </dl>
7177
+
7178
+ <dl>
7179
+ <dd>
7180
+
7181
+ **request:** `string[]`
7182
+
7183
+ </dd>
7184
+ </dl>
7185
+
7186
+ <dl>
7187
+ <dd>
7188
+
7189
+ **requestOptions:** `Messages.RequestOptions`
7190
+
7191
+ </dd>
7192
+ </dl>
7193
+ </dd>
7194
+ </dl>
7195
+
7196
+ </dd>
7197
+ </dl>
7198
+ </details>
7199
+
6999
7200
  <details><summary><code>client.agents.messages.<a href="/src/api/resources/agents/resources/messages/client/Client.ts">createAsync</a>(agentId, { ...params }) -> Letta.Run</code></summary>
7000
7201
  <dl>
7001
7202
  <dd>
@@ -7011,6 +7212,9 @@ for await (const item of response) {
7011
7212
  Asynchronously process a user message and return a run object.
7012
7213
  The actual processing happens in the background, and the status can be checked using the run ID.
7013
7214
 
7215
+ This is "asynchronous" in the sense that it's a background job and explicitly must be fetched by the run ID.
7216
+ This is more like `send_message_job`
7217
+
7014
7218
  </dd>
7015
7219
  </dl>
7016
7220
  </dd>
@@ -7517,7 +7721,7 @@ await client.agents.memoryVariables.list("agent_id");
7517
7721
 
7518
7722
  ## Blocks Agents
7519
7723
 
7520
- <details><summary><code>client.blocks.agents.<a href="/src/api/resources/blocks/resources/agents/client/Client.ts">list</a>(blockId) -> Letta.AgentState[]</code></summary>
7724
+ <details><summary><code>client.blocks.agents.<a href="/src/api/resources/blocks/resources/agents/client/Client.ts">list</a>(blockId, { ...params }) -> Letta.AgentState[]</code></summary>
7521
7725
  <dl>
7522
7726
  <dd>
7523
7727
 
@@ -7570,6 +7774,14 @@ await client.blocks.agents.list("block_id");
7570
7774
  <dl>
7571
7775
  <dd>
7572
7776
 
7777
+ **request:** `Letta.blocks.AgentsListRequest`
7778
+
7779
+ </dd>
7780
+ </dl>
7781
+
7782
+ <dl>
7783
+ <dd>
7784
+
7573
7785
  **requestOptions:** `Agents.RequestOptions`
7574
7786
 
7575
7787
  </dd>
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export declare const Request: core.serialization.Schema<serializers.agents.messages.cancel.Request.Raw, string[] | undefined>;
7
+ export declare namespace Request {
8
+ type Raw = string[] | null | undefined;
9
+ }
10
+ export declare const Response: core.serialization.Schema<serializers.agents.messages.cancel.Response.Raw, Record<string, unknown>>;
11
+ export declare namespace Response {
12
+ type Raw = Record<string, unknown>;
13
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Response = exports.Request = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ exports.Request = core.serialization.list(core.serialization.string()).optional();
42
+ exports.Response = core.serialization.record(core.serialization.string(), core.serialization.unknown());
@@ -1,2 +1,3 @@
1
1
  export * as list from "./list";
2
+ export * as cancel from "./cancel";
2
3
  export * from "./requests";
@@ -36,6 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.list = void 0;
39
+ exports.cancel = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
+ exports.cancel = __importStar(require("./cancel"));
41
42
  __exportStar(require("./requests"), exports);
@@ -19,6 +19,8 @@ export declare namespace FileMetadata {
19
19
  file_last_modified_date?: string | null;
20
20
  processing_status?: FileProcessingStatus.Raw | null;
21
21
  error_message?: string | null;
22
+ total_chunks?: number | null;
23
+ chunks_embedded?: number | null;
22
24
  created_at?: string | null;
23
25
  updated_at?: string | null;
24
26
  is_deleted?: boolean | null;
@@ -51,6 +51,8 @@ exports.FileMetadata = core.serialization.object({
51
51
  fileLastModifiedDate: core.serialization.property("file_last_modified_date", core.serialization.string().optional()),
52
52
  processingStatus: core.serialization.property("processing_status", FileProcessingStatus_1.FileProcessingStatus.optional()),
53
53
  errorMessage: core.serialization.property("error_message", core.serialization.string().optional()),
54
+ totalChunks: core.serialization.property("total_chunks", core.serialization.number().optional()),
55
+ chunksEmbedded: core.serialization.property("chunks_embedded", core.serialization.number().optional()),
54
56
  createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
55
57
  updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
56
58
  isDeleted: core.serialization.property("is_deleted", core.serialization.boolean().optional()),
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const FileStats: core.serialization.ObjectSchema<serializers.FileStats.Raw, Letta.FileStats>;
8
+ export declare namespace FileStats {
9
+ interface Raw {
10
+ file_id: string;
11
+ file_name: string;
12
+ file_size?: number | null;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.FileStats = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.FileStats = core.serialization.object({
42
+ fileId: core.serialization.property("file_id", core.serialization.string()),
43
+ fileName: core.serialization.property("file_name", core.serialization.string()),
44
+ fileSize: core.serialization.property("file_size", core.serialization.number().optional()),
45
+ });
@@ -24,5 +24,6 @@ export declare namespace LlmConfig {
24
24
  enable_reasoner?: boolean | null;
25
25
  reasoning_effort?: LlmConfigReasoningEffort.Raw | null;
26
26
  max_reasoning_tokens?: number | null;
27
+ frequency_penalty?: number | null;
27
28
  }
28
29
  }
@@ -56,4 +56,5 @@ exports.LlmConfig = core.serialization.object({
56
56
  enableReasoner: core.serialization.property("enable_reasoner", core.serialization.boolean().optional()),
57
57
  reasoningEffort: core.serialization.property("reasoning_effort", LlmConfigReasoningEffort_1.LlmConfigReasoningEffort.optional()),
58
58
  maxReasoningTokens: core.serialization.property("max_reasoning_tokens", core.serialization.number().optional()),
59
+ frequencyPenalty: core.serialization.property("frequency_penalty", core.serialization.number().optional()),
59
60
  });