@letta-ai/letta-client 0.1.93 → 0.1.94

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 (176) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +13 -8
  3. package/api/resources/agents/client/Client.d.ts +0 -34
  4. package/api/resources/agents/client/Client.js +11 -154
  5. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  6. package/api/resources/agents/resources/context/client/Client.js +1 -1
  7. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  10. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  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/blocks/client/Client.js +6 -6
  15. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  16. package/api/resources/groups/client/Client.js +6 -6
  17. package/api/resources/groups/resources/messages/client/Client.js +4 -4
  18. package/api/resources/health/client/Client.js +1 -1
  19. package/api/resources/identities/client/Client.js +7 -7
  20. package/api/resources/index.d.ts +1 -0
  21. package/api/resources/index.js +2 -1
  22. package/api/resources/jobs/client/Client.js +4 -4
  23. package/api/resources/messages/client/Client.d.ts +46 -0
  24. package/api/resources/messages/client/Client.js +133 -0
  25. package/api/resources/messages/client/index.d.ts +1 -0
  26. package/api/resources/messages/client/index.js +2 -0
  27. package/api/resources/messages/index.d.ts +2 -0
  28. package/api/resources/messages/index.js +18 -0
  29. package/api/resources/messages/resources/batches/client/Client.d.ts +87 -0
  30. package/api/resources/messages/resources/batches/client/Client.js +320 -0
  31. package/api/resources/messages/resources/batches/client/index.d.ts +1 -0
  32. package/api/resources/messages/resources/batches/client/index.js +17 -0
  33. package/api/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +23 -0
  34. package/api/resources/messages/resources/batches/client/requests/index.d.ts +1 -0
  35. package/api/resources/messages/resources/batches/client/requests/index.js +2 -0
  36. package/api/resources/messages/resources/batches/index.d.ts +1 -0
  37. package/api/resources/messages/resources/batches/index.js +17 -0
  38. package/api/resources/messages/resources/index.d.ts +2 -0
  39. package/api/resources/messages/resources/index.js +41 -0
  40. package/api/resources/models/client/Client.js +2 -2
  41. package/api/resources/projects/client/Client.js +1 -1
  42. package/api/resources/providers/client/Client.js +4 -4
  43. package/api/resources/runs/client/Client.js +7 -7
  44. package/api/resources/sources/client/Client.js +6 -6
  45. package/api/resources/sources/resources/files/client/Client.js +3 -3
  46. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  47. package/api/resources/steps/client/Client.js +2 -2
  48. package/api/resources/tag/client/Client.js +1 -1
  49. package/api/resources/templates/client/Client.js +2 -2
  50. package/api/resources/tools/client/Client.js +16 -16
  51. package/api/resources/voice/client/Client.js +1 -1
  52. package/api/types/BatchJob.d.ts +23 -0
  53. package/api/types/JobType.d.ts +2 -1
  54. package/api/types/JobType.js +1 -0
  55. package/api/types/index.d.ts +1 -1
  56. package/api/types/index.js +1 -1
  57. package/dist/Client.d.ts +3 -0
  58. package/dist/Client.js +13 -8
  59. package/dist/api/resources/agents/client/Client.d.ts +0 -34
  60. package/dist/api/resources/agents/client/Client.js +11 -154
  61. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  62. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  63. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  64. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  65. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  66. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  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/blocks/client/Client.js +6 -6
  71. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  72. package/dist/api/resources/groups/client/Client.js +6 -6
  73. package/dist/api/resources/groups/resources/messages/client/Client.js +4 -4
  74. package/dist/api/resources/health/client/Client.js +1 -1
  75. package/dist/api/resources/identities/client/Client.js +7 -7
  76. package/dist/api/resources/index.d.ts +1 -0
  77. package/dist/api/resources/index.js +2 -1
  78. package/dist/api/resources/jobs/client/Client.js +4 -4
  79. package/dist/api/resources/messages/client/Client.d.ts +46 -0
  80. package/dist/api/resources/messages/client/Client.js +133 -0
  81. package/dist/api/resources/messages/client/index.d.ts +1 -0
  82. package/dist/api/resources/messages/client/index.js +2 -0
  83. package/dist/api/resources/messages/index.d.ts +2 -0
  84. package/dist/api/resources/messages/index.js +18 -0
  85. package/dist/api/resources/messages/resources/batches/client/Client.d.ts +87 -0
  86. package/dist/api/resources/messages/resources/batches/client/Client.js +320 -0
  87. package/dist/api/resources/messages/resources/batches/client/index.d.ts +1 -0
  88. package/dist/api/resources/messages/resources/batches/client/index.js +17 -0
  89. package/dist/api/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +23 -0
  90. package/dist/api/resources/messages/resources/batches/client/requests/CreateBatch.js +5 -0
  91. package/dist/api/resources/messages/resources/batches/client/requests/index.d.ts +1 -0
  92. package/dist/api/resources/messages/resources/batches/client/requests/index.js +2 -0
  93. package/dist/api/resources/messages/resources/batches/index.d.ts +1 -0
  94. package/dist/api/resources/messages/resources/batches/index.js +17 -0
  95. package/dist/api/resources/messages/resources/index.d.ts +2 -0
  96. package/dist/api/resources/messages/resources/index.js +41 -0
  97. package/dist/api/resources/models/client/Client.js +2 -2
  98. package/dist/api/resources/projects/client/Client.js +1 -1
  99. package/dist/api/resources/providers/client/Client.js +4 -4
  100. package/dist/api/resources/runs/client/Client.js +7 -7
  101. package/dist/api/resources/sources/client/Client.js +6 -6
  102. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  103. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  104. package/dist/api/resources/steps/client/Client.js +2 -2
  105. package/dist/api/resources/tag/client/Client.js +1 -1
  106. package/dist/api/resources/templates/client/Client.js +2 -2
  107. package/dist/api/resources/tools/client/Client.js +16 -16
  108. package/dist/api/resources/voice/client/Client.js +1 -1
  109. package/dist/api/types/BatchJob.d.ts +23 -0
  110. package/dist/api/types/BatchJob.js +5 -0
  111. package/dist/api/types/JobType.d.ts +2 -1
  112. package/dist/api/types/JobType.js +1 -0
  113. package/dist/api/types/index.d.ts +1 -1
  114. package/dist/api/types/index.js +1 -1
  115. package/dist/serialization/resources/agents/client/index.d.ts +0 -1
  116. package/dist/serialization/resources/agents/client/index.js +1 -2
  117. package/dist/serialization/resources/index.d.ts +1 -0
  118. package/dist/serialization/resources/index.js +2 -1
  119. package/dist/serialization/resources/messages/index.d.ts +1 -0
  120. package/dist/serialization/resources/messages/index.js +17 -0
  121. package/dist/serialization/resources/messages/resources/batches/client/index.d.ts +2 -0
  122. package/dist/serialization/resources/messages/resources/batches/client/index.js +41 -0
  123. package/dist/serialization/resources/messages/resources/batches/client/list.d.ts +11 -0
  124. package/dist/serialization/resources/{agents/client/createBatchMessageRequest.js → messages/resources/batches/client/list.js} +4 -4
  125. package/dist/serialization/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +13 -0
  126. package/dist/serialization/{types/LettaBatchResponse.js → resources/messages/resources/batches/client/requests/CreateBatch.js} +5 -9
  127. package/dist/serialization/resources/messages/resources/batches/client/requests/index.d.ts +1 -0
  128. package/dist/serialization/resources/messages/resources/batches/client/requests/index.js +5 -0
  129. package/dist/serialization/resources/messages/resources/batches/index.d.ts +1 -0
  130. package/dist/serialization/resources/messages/resources/batches/index.js +17 -0
  131. package/dist/serialization/resources/messages/resources/index.d.ts +2 -0
  132. package/dist/serialization/resources/messages/resources/index.js +41 -0
  133. package/dist/serialization/types/BatchJob.d.ts +22 -0
  134. package/dist/serialization/types/BatchJob.js +53 -0
  135. package/dist/serialization/types/JobType.d.ts +1 -1
  136. package/dist/serialization/types/JobType.js +1 -0
  137. package/dist/serialization/types/index.d.ts +1 -1
  138. package/dist/serialization/types/index.js +1 -1
  139. package/dist/version.d.ts +1 -1
  140. package/dist/version.js +1 -1
  141. package/package.json +1 -1
  142. package/reference.md +314 -142
  143. package/serialization/resources/agents/client/index.d.ts +0 -1
  144. package/serialization/resources/agents/client/index.js +1 -2
  145. package/serialization/resources/index.d.ts +1 -0
  146. package/serialization/resources/index.js +2 -1
  147. package/serialization/resources/messages/index.d.ts +1 -0
  148. package/serialization/resources/messages/index.js +17 -0
  149. package/serialization/resources/messages/resources/batches/client/index.d.ts +2 -0
  150. package/serialization/resources/messages/resources/batches/client/index.js +41 -0
  151. package/serialization/resources/messages/resources/batches/client/list.d.ts +11 -0
  152. package/serialization/resources/{agents/client/createBatchMessageRequest.js → messages/resources/batches/client/list.js} +4 -4
  153. package/serialization/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +13 -0
  154. package/serialization/{types/LettaBatchResponse.js → resources/messages/resources/batches/client/requests/CreateBatch.js} +5 -9
  155. package/serialization/resources/messages/resources/batches/client/requests/index.d.ts +1 -0
  156. package/serialization/resources/messages/resources/batches/client/requests/index.js +5 -0
  157. package/serialization/resources/messages/resources/batches/index.d.ts +1 -0
  158. package/serialization/resources/messages/resources/batches/index.js +17 -0
  159. package/serialization/resources/messages/resources/index.d.ts +2 -0
  160. package/serialization/resources/messages/resources/index.js +41 -0
  161. package/serialization/types/BatchJob.d.ts +22 -0
  162. package/serialization/types/BatchJob.js +53 -0
  163. package/serialization/types/JobType.d.ts +1 -1
  164. package/serialization/types/JobType.js +1 -0
  165. package/serialization/types/index.d.ts +1 -1
  166. package/serialization/types/index.js +1 -1
  167. package/version.d.ts +1 -1
  168. package/version.js +1 -1
  169. package/api/types/LettaBatchResponse.d.ts +0 -16
  170. package/dist/api/types/LettaBatchResponse.d.ts +0 -16
  171. package/dist/serialization/resources/agents/client/createBatchMessageRequest.d.ts +0 -11
  172. package/dist/serialization/types/LettaBatchResponse.d.ts +0 -17
  173. package/serialization/resources/agents/client/createBatchMessageRequest.d.ts +0 -11
  174. package/serialization/types/LettaBatchResponse.d.ts +0 -17
  175. /package/api/{types/LettaBatchResponse.js → resources/messages/resources/batches/client/requests/CreateBatch.js} +0 -0
  176. /package/{dist/api/types/LettaBatchResponse.js → api/types/BatchJob.js} +0 -0
@@ -1,8 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type JobType = "job" | "run";
4
+ export type JobType = "job" | "run" | "batch";
5
5
  export declare const JobType: {
6
6
  readonly Job: "job";
7
7
  readonly Run: "run";
8
+ readonly Batch: "batch";
8
9
  };
@@ -7,4 +7,5 @@ exports.JobType = void 0;
7
7
  exports.JobType = {
8
8
  Job: "job",
9
9
  Run: "run",
10
+ Batch: "batch",
10
11
  };
@@ -22,6 +22,7 @@ export * from "./AuthRequest";
22
22
  export * from "./AuthResponse";
23
23
  export * from "./AuthSchemeField";
24
24
  export * from "./BaseToolRuleSchema";
25
+ export * from "./BatchJob";
25
26
  export * from "./Block";
26
27
  export * from "./BlockUpdate";
27
28
  export * from "./ChatCompletionAssistantMessageParamContentItem";
@@ -116,7 +117,6 @@ export * from "./LlmConfigModelEndpointType";
116
117
  export * from "./LlmConfigReasoningEffort";
117
118
  export * from "./LlmConfig";
118
119
  export * from "./LettaBatchRequest";
119
- export * from "./LettaBatchResponse";
120
120
  export * from "./LettaRequest";
121
121
  export * from "./LettaRequestConfig";
122
122
  export * from "./LettaResponse";
@@ -38,6 +38,7 @@ __exportStar(require("./AuthRequest"), exports);
38
38
  __exportStar(require("./AuthResponse"), exports);
39
39
  __exportStar(require("./AuthSchemeField"), exports);
40
40
  __exportStar(require("./BaseToolRuleSchema"), exports);
41
+ __exportStar(require("./BatchJob"), exports);
41
42
  __exportStar(require("./Block"), exports);
42
43
  __exportStar(require("./BlockUpdate"), exports);
43
44
  __exportStar(require("./ChatCompletionAssistantMessageParamContentItem"), exports);
@@ -132,7 +133,6 @@ __exportStar(require("./LlmConfigModelEndpointType"), exports);
132
133
  __exportStar(require("./LlmConfigReasoningEffort"), exports);
133
134
  __exportStar(require("./LlmConfig"), exports);
134
135
  __exportStar(require("./LettaBatchRequest"), exports);
135
- __exportStar(require("./LettaBatchResponse"), exports);
136
136
  __exportStar(require("./LettaRequest"), exports);
137
137
  __exportStar(require("./LettaRequestConfig"), exports);
138
138
  __exportStar(require("./LettaResponse"), exports);
@@ -2,5 +2,4 @@ export * as list from "./list";
2
2
  export * as exportAgentSerialized from "./exportAgentSerialized";
3
3
  export * as modifyPassage from "./modifyPassage";
4
4
  export * as listAgentGroups from "./listAgentGroups";
5
- export * as createBatchMessageRequest from "./createBatchMessageRequest";
6
5
  export * from "./requests";
@@ -36,10 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.createBatchMessageRequest = exports.listAgentGroups = exports.modifyPassage = exports.exportAgentSerialized = exports.list = void 0;
39
+ exports.listAgentGroups = exports.modifyPassage = exports.exportAgentSerialized = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
41
  exports.exportAgentSerialized = __importStar(require("./exportAgentSerialized"));
42
42
  exports.modifyPassage = __importStar(require("./modifyPassage"));
43
43
  exports.listAgentGroups = __importStar(require("./listAgentGroups"));
44
- exports.createBatchMessageRequest = __importStar(require("./createBatchMessageRequest"));
45
44
  __exportStar(require("./requests"), exports);
@@ -21,6 +21,7 @@ export * as providers from "./providers";
21
21
  export * as runs from "./runs";
22
22
  export * as steps from "./steps";
23
23
  export * as tag from "./tag";
24
+ export * as messages from "./messages";
24
25
  export * from "./tools/client/requests";
25
26
  export * from "./sources/client/requests";
26
27
  export * from "./agents/client/requests";
@@ -36,7 +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.tag = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
39
+ exports.messages = exports.tag = exports.steps = exports.runs = exports.providers = exports.jobs = exports.blocks = exports.models = exports.identities = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.voice = exports.groups = exports.agents = exports.tools = void 0;
40
40
  exports.tools = __importStar(require("./tools"));
41
41
  __exportStar(require("./tools/types"), exports);
42
42
  exports.agents = __importStar(require("./agents"));
@@ -60,6 +60,7 @@ exports.providers = __importStar(require("./providers"));
60
60
  exports.runs = __importStar(require("./runs"));
61
61
  exports.steps = __importStar(require("./steps"));
62
62
  exports.tag = __importStar(require("./tag"));
63
+ exports.messages = __importStar(require("./messages"));
63
64
  __exportStar(require("./tools/client/requests"), exports);
64
65
  __exportStar(require("./sources/client/requests"), exports);
65
66
  __exportStar(require("./agents/client/requests"), exports);
@@ -0,0 +1 @@
1
+ export * from "./resources";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./resources"), exports);
@@ -0,0 +1,2 @@
1
+ export * as list from "./list";
2
+ export * from "./requests";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.list = void 0;
40
+ exports.list = __importStar(require("./list"));
41
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../../index";
5
+ import * as Letta from "../../../../../../api/index";
6
+ import * as core from "../../../../../../core";
7
+ import { BatchJob } from "../../../../../types/BatchJob";
8
+ export declare const Response: core.serialization.Schema<serializers.messages.batches.list.Response.Raw, Letta.BatchJob[]>;
9
+ export declare namespace Response {
10
+ type Raw = BatchJob.Raw[];
11
+ }
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Request = void 0;
40
- const core = __importStar(require("../../../../core"));
41
- const LettaBatchRequest_1 = require("../../../types/LettaBatchRequest");
42
- exports.Request = core.serialization.list(LettaBatchRequest_1.LettaBatchRequest);
39
+ exports.Response = void 0;
40
+ const core = __importStar(require("../../../../../../core"));
41
+ const BatchJob_1 = require("../../../../../types/BatchJob");
42
+ exports.Response = core.serialization.list(BatchJob_1.BatchJob);
@@ -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 Letta from "../../../../../../../api/index";
6
+ import * as core from "../../../../../../../core";
7
+ import { LettaBatchRequest } from "../../../../../../types/LettaBatchRequest";
8
+ export declare const CreateBatch: core.serialization.Schema<serializers.messages.CreateBatch.Raw, Letta.messages.CreateBatch>;
9
+ export declare namespace CreateBatch {
10
+ interface Raw {
11
+ requests: LettaBatchRequest.Raw[];
12
+ }
13
+ }
@@ -36,13 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.LettaBatchResponse = void 0;
40
- const core = __importStar(require("../../core"));
41
- const JobStatus_1 = require("./JobStatus");
42
- exports.LettaBatchResponse = core.serialization.object({
43
- batchId: core.serialization.property("batch_id", core.serialization.string()),
44
- status: JobStatus_1.JobStatus,
45
- agentCount: core.serialization.property("agent_count", core.serialization.number()),
46
- lastPolledAt: core.serialization.property("last_polled_at", core.serialization.date()),
47
- createdAt: core.serialization.property("created_at", core.serialization.date()),
39
+ exports.CreateBatch = void 0;
40
+ const core = __importStar(require("../../../../../../../core"));
41
+ const LettaBatchRequest_1 = require("../../../../../../types/LettaBatchRequest");
42
+ exports.CreateBatch = core.serialization.object({
43
+ requests: core.serialization.list(LettaBatchRequest_1.LettaBatchRequest),
48
44
  });
@@ -0,0 +1 @@
1
+ export { CreateBatch } from "./CreateBatch";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateBatch = void 0;
4
+ var CreateBatch_1 = require("./CreateBatch");
5
+ Object.defineProperty(exports, "CreateBatch", { enumerable: true, get: function () { return CreateBatch_1.CreateBatch; } });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -0,0 +1,2 @@
1
+ export * as batches from "./batches";
2
+ export * from "./batches/client/requests";
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.batches = void 0;
40
+ exports.batches = __importStar(require("./batches"));
41
+ __exportStar(require("./batches/client/requests"), exports);
@@ -0,0 +1,22 @@
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 { JobStatus } from "./JobStatus";
8
+ import { JobType } from "./JobType";
9
+ export declare const BatchJob: core.serialization.ObjectSchema<serializers.BatchJob.Raw, Letta.BatchJob>;
10
+ export declare namespace BatchJob {
11
+ interface Raw {
12
+ created_by_id?: string | null;
13
+ last_updated_by_id?: string | null;
14
+ created_at?: string | null;
15
+ updated_at?: string | null;
16
+ status?: JobStatus.Raw | null;
17
+ completed_at?: string | null;
18
+ metadata?: Record<string, unknown> | null;
19
+ job_type?: JobType.Raw | null;
20
+ id?: string | null;
21
+ }
22
+ }
@@ -0,0 +1,53 @@
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.BatchJob = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const JobStatus_1 = require("./JobStatus");
42
+ const JobType_1 = require("./JobType");
43
+ exports.BatchJob = core.serialization.object({
44
+ createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
45
+ lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
46
+ createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
47
+ updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
48
+ status: JobStatus_1.JobStatus.optional(),
49
+ completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
50
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
51
+ jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
52
+ id: core.serialization.string().optional(),
53
+ });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const JobType: core.serialization.Schema<serializers.JobType.Raw, Letta.JobType>;
8
8
  export declare namespace JobType {
9
- type Raw = "job" | "run";
9
+ type Raw = "job" | "run" | "batch";
10
10
  }
@@ -41,4 +41,5 @@ const core = __importStar(require("../../core"));
41
41
  exports.JobType = core.serialization.enum_([
42
42
  "job",
43
43
  "run",
44
+ "batch",
44
45
  ]);
@@ -22,6 +22,7 @@ export * from "./AuthRequest";
22
22
  export * from "./AuthResponse";
23
23
  export * from "./AuthSchemeField";
24
24
  export * from "./BaseToolRuleSchema";
25
+ export * from "./BatchJob";
25
26
  export * from "./Block";
26
27
  export * from "./BlockUpdate";
27
28
  export * from "./ChatCompletionAssistantMessageParamContentItem";
@@ -116,7 +117,6 @@ export * from "./LlmConfigModelEndpointType";
116
117
  export * from "./LlmConfigReasoningEffort";
117
118
  export * from "./LlmConfig";
118
119
  export * from "./LettaBatchRequest";
119
- export * from "./LettaBatchResponse";
120
120
  export * from "./LettaRequest";
121
121
  export * from "./LettaRequestConfig";
122
122
  export * from "./LettaResponse";
@@ -38,6 +38,7 @@ __exportStar(require("./AuthRequest"), exports);
38
38
  __exportStar(require("./AuthResponse"), exports);
39
39
  __exportStar(require("./AuthSchemeField"), exports);
40
40
  __exportStar(require("./BaseToolRuleSchema"), exports);
41
+ __exportStar(require("./BatchJob"), exports);
41
42
  __exportStar(require("./Block"), exports);
42
43
  __exportStar(require("./BlockUpdate"), exports);
43
44
  __exportStar(require("./ChatCompletionAssistantMessageParamContentItem"), exports);
@@ -132,7 +133,6 @@ __exportStar(require("./LlmConfigModelEndpointType"), exports);
132
133
  __exportStar(require("./LlmConfigReasoningEffort"), exports);
133
134
  __exportStar(require("./LlmConfig"), exports);
134
135
  __exportStar(require("./LettaBatchRequest"), exports);
135
- __exportStar(require("./LettaBatchResponse"), exports);
136
136
  __exportStar(require("./LettaRequest"), exports);
137
137
  __exportStar(require("./LettaRequestConfig"), exports);
138
138
  __exportStar(require("./LettaResponse"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.93";
1
+ export declare const SDK_VERSION = "0.1.94";
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.93";
4
+ exports.SDK_VERSION = "0.1.94";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.93",
3
+ "version": "0.1.94",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",