@letta-ai/letta-client 0.1.113 → 0.1.115

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 (160) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +13 -8
  3. package/api/resources/agents/client/Client.js +9 -9
  4. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  5. package/api/resources/agents/resources/context/client/Client.js +1 -1
  6. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  7. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  8. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  9. package/api/resources/agents/resources/messages/client/Client.js +6 -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/batches/client/requests/CreateBatch.d.ts +1 -1
  16. package/api/resources/blocks/client/Client.d.ts +11 -0
  17. package/api/resources/blocks/client/Client.js +69 -5
  18. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  19. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  20. package/api/resources/embeddingModels/client/Client.js +1 -1
  21. package/api/resources/groups/client/Client.d.ts +11 -0
  22. package/api/resources/groups/client/Client.js +69 -5
  23. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  24. package/api/resources/health/client/Client.js +1 -1
  25. package/api/resources/identities/client/Client.js +7 -7
  26. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  27. package/api/resources/index.d.ts +2 -0
  28. package/api/resources/index.js +3 -1
  29. package/api/resources/jobs/client/Client.js +4 -4
  30. package/api/resources/messages/client/Client.d.ts +52 -0
  31. package/api/resources/messages/client/Client.js +157 -0
  32. package/api/resources/messages/client/index.d.ts +1 -0
  33. package/api/resources/messages/client/index.js +17 -0
  34. package/api/resources/messages/client/requests/ListBatchMessagesRequest.d.ts +25 -0
  35. package/api/resources/messages/client/requests/ListBatchMessagesRequest.js +5 -0
  36. package/api/resources/messages/client/requests/index.d.ts +1 -0
  37. package/api/resources/messages/client/requests/index.js +2 -0
  38. package/api/resources/messages/index.d.ts +1 -0
  39. package/api/resources/messages/index.js +17 -0
  40. package/api/resources/models/client/Client.js +1 -1
  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 +4 -4
  44. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  45. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  46. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  47. package/api/resources/sources/client/Client.js +7 -7
  48. package/api/resources/sources/resources/files/client/Client.js +3 -3
  49. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  50. package/api/resources/steps/client/Client.js +2 -2
  51. package/api/resources/tags/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 +17 -17
  55. package/api/resources/voice/client/Client.js +1 -1
  56. package/api/types/LettaBatchMessages.d.ts +7 -0
  57. package/api/types/LettaBatchMessages.js +5 -0
  58. package/api/types/Message.d.ts +2 -0
  59. package/api/types/MessageCreate.d.ts +2 -0
  60. package/api/types/index.d.ts +1 -0
  61. package/api/types/index.js +1 -0
  62. package/dist/Client.d.ts +3 -0
  63. package/dist/Client.js +13 -8
  64. package/dist/api/resources/agents/client/Client.js +9 -9
  65. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  66. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  67. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  68. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  69. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  70. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  71. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  72. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  73. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  74. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  75. package/dist/api/resources/batches/client/Client.js +4 -4
  76. package/dist/api/resources/batches/client/requests/CreateBatch.d.ts +1 -1
  77. package/dist/api/resources/blocks/client/Client.d.ts +11 -0
  78. package/dist/api/resources/blocks/client/Client.js +69 -5
  79. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  80. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  81. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  82. package/dist/api/resources/groups/client/Client.d.ts +11 -0
  83. package/dist/api/resources/groups/client/Client.js +69 -5
  84. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  85. package/dist/api/resources/health/client/Client.js +1 -1
  86. package/dist/api/resources/identities/client/Client.js +7 -7
  87. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  88. package/dist/api/resources/index.d.ts +2 -0
  89. package/dist/api/resources/index.js +3 -1
  90. package/dist/api/resources/jobs/client/Client.js +4 -4
  91. package/dist/api/resources/messages/client/Client.d.ts +52 -0
  92. package/dist/api/resources/messages/client/Client.js +157 -0
  93. package/dist/api/resources/messages/client/index.d.ts +1 -0
  94. package/dist/api/resources/messages/client/index.js +17 -0
  95. package/dist/api/resources/messages/client/requests/ListBatchMessagesRequest.d.ts +25 -0
  96. package/dist/api/resources/messages/client/requests/ListBatchMessagesRequest.js +5 -0
  97. package/dist/api/resources/messages/client/requests/index.d.ts +1 -0
  98. package/dist/api/resources/messages/client/requests/index.js +2 -0
  99. package/dist/api/resources/messages/index.d.ts +1 -0
  100. package/dist/api/resources/messages/index.js +17 -0
  101. package/dist/api/resources/models/client/Client.js +1 -1
  102. package/dist/api/resources/projects/client/Client.js +1 -1
  103. package/dist/api/resources/providers/client/Client.js +4 -4
  104. package/dist/api/resources/runs/client/Client.js +4 -4
  105. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  106. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  107. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  108. package/dist/api/resources/sources/client/Client.js +7 -7
  109. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  110. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  111. package/dist/api/resources/steps/client/Client.js +2 -2
  112. package/dist/api/resources/tags/client/Client.js +1 -1
  113. package/dist/api/resources/templates/client/Client.js +1 -1
  114. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  115. package/dist/api/resources/tools/client/Client.js +17 -17
  116. package/dist/api/resources/voice/client/Client.js +1 -1
  117. package/dist/api/types/LettaBatchMessages.d.ts +7 -0
  118. package/dist/api/types/LettaBatchMessages.js +5 -0
  119. package/dist/api/types/Message.d.ts +2 -0
  120. package/dist/api/types/MessageCreate.d.ts +2 -0
  121. package/dist/api/types/index.d.ts +1 -0
  122. package/dist/api/types/index.js +1 -0
  123. package/dist/serialization/resources/blocks/client/count.d.ts +9 -0
  124. package/dist/serialization/resources/blocks/client/count.js +41 -0
  125. package/dist/serialization/resources/blocks/client/index.d.ts +1 -0
  126. package/dist/serialization/resources/blocks/client/index.js +2 -1
  127. package/dist/serialization/resources/groups/client/count.d.ts +9 -0
  128. package/dist/serialization/resources/groups/client/count.js +41 -0
  129. package/dist/serialization/resources/groups/client/index.d.ts +1 -0
  130. package/dist/serialization/resources/groups/client/index.js +2 -1
  131. package/dist/serialization/types/LettaBatchMessages.d.ts +13 -0
  132. package/dist/serialization/types/LettaBatchMessages.js +44 -0
  133. package/dist/serialization/types/Message.d.ts +1 -0
  134. package/dist/serialization/types/Message.js +1 -0
  135. package/dist/serialization/types/MessageCreate.d.ts +1 -0
  136. package/dist/serialization/types/MessageCreate.js +1 -0
  137. package/dist/serialization/types/index.d.ts +1 -0
  138. package/dist/serialization/types/index.js +1 -0
  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 +190 -0
  143. package/serialization/resources/blocks/client/count.d.ts +9 -0
  144. package/serialization/resources/blocks/client/count.js +41 -0
  145. package/serialization/resources/blocks/client/index.d.ts +1 -0
  146. package/serialization/resources/blocks/client/index.js +2 -1
  147. package/serialization/resources/groups/client/count.d.ts +9 -0
  148. package/serialization/resources/groups/client/count.js +41 -0
  149. package/serialization/resources/groups/client/index.d.ts +1 -0
  150. package/serialization/resources/groups/client/index.js +2 -1
  151. package/serialization/types/LettaBatchMessages.d.ts +13 -0
  152. package/serialization/types/LettaBatchMessages.js +44 -0
  153. package/serialization/types/Message.d.ts +1 -0
  154. package/serialization/types/Message.js +1 -0
  155. package/serialization/types/MessageCreate.d.ts +1 -0
  156. package/serialization/types/MessageCreate.js +1 -0
  157. package/serialization/types/index.d.ts +1 -0
  158. package/serialization/types/index.js +1 -0
  159. package/version.d.ts +1 -1
  160. package/version.js +1 -1
@@ -84,7 +84,7 @@ class Voice {
84
84
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
85
85
  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/voice-beta/${encodeURIComponent(agentId)}/chat/completions`),
86
86
  method: "POST",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.113", "User-Agent": "@letta-ai/letta-client/0.1.113", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@letta-ai/letta-client", "X-Fern-SDK-Version": "0.1.115", "User-Agent": "@letta-ai/letta-client/0.1.115", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, "user-id": userId != null ? userId : undefined }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.CreateVoiceChatCompletionsRequestBody.jsonOrThrow(_body, {
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ export interface LettaBatchMessages {
6
+ messages: Letta.Message[];
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -57,4 +57,6 @@ export interface Message {
57
57
  groupId?: string;
58
58
  /** The id of the sender of the message, can be an identity id or agent id */
59
59
  senderId?: string;
60
+ /** The id of the LLMBatchItem that this message is associated with */
61
+ batchItemId?: string;
60
62
  }
@@ -16,6 +16,8 @@ export interface MessageCreate {
16
16
  otid?: string;
17
17
  /** The id of the sender of the message, can be an identity id or agent id */
18
18
  senderId?: string;
19
+ /** The id of the LLMBatchItem that this message is associated with */
20
+ batchItemId?: string;
19
21
  /** The multi-agent group that the message was sent in */
20
22
  groupId?: string;
21
23
  }
@@ -119,6 +119,7 @@ export * from "./JsonSchemaResponseFormat";
119
119
  export * from "./LlmConfigModelEndpointType";
120
120
  export * from "./LlmConfigReasoningEffort";
121
121
  export * from "./LlmConfig";
122
+ export * from "./LettaBatchMessages";
122
123
  export * from "./LettaBatchRequest";
123
124
  export * from "./LettaRequest";
124
125
  export * from "./LettaRequestConfig";
@@ -135,6 +135,7 @@ __exportStar(require("./JsonSchemaResponseFormat"), exports);
135
135
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
136
136
  __exportStar(require("./LlmConfigReasoningEffort"), exports);
137
137
  __exportStar(require("./LlmConfig"), exports);
138
+ __exportStar(require("./LettaBatchMessages"), exports);
138
139
  __exportStar(require("./LettaBatchRequest"), exports);
139
140
  __exportStar(require("./LettaRequest"), exports);
140
141
  __exportStar(require("./LettaRequestConfig"), exports);
@@ -0,0 +1,9 @@
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 Response: core.serialization.Schema<serializers.blocks.count.Response.Raw, number>;
7
+ export declare namespace Response {
8
+ type Raw = number;
9
+ }
@@ -0,0 +1,41 @@
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 = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.Response = core.serialization.number();
@@ -1 +1,2 @@
1
1
  export * as list from "./list";
2
+ export * as count from "./count";
@@ -33,5 +33,6 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.list = void 0;
36
+ exports.count = exports.list = void 0;
37
37
  exports.list = __importStar(require("./list"));
38
+ exports.count = __importStar(require("./count"));
@@ -0,0 +1,9 @@
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 Response: core.serialization.Schema<serializers.groups.count.Response.Raw, number>;
7
+ export declare namespace Response {
8
+ type Raw = number;
9
+ }
@@ -0,0 +1,41 @@
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 = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.Response = core.serialization.number();
@@ -1,2 +1,3 @@
1
1
  export * as list from "./list";
2
+ export * as count from "./count";
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.count = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
+ exports.count = __importStar(require("./count"));
41
42
  __exportStar(require("./requests"), exports);
@@ -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 { Message } from "./Message";
8
+ export declare const LettaBatchMessages: core.serialization.ObjectSchema<serializers.LettaBatchMessages.Raw, Letta.LettaBatchMessages>;
9
+ export declare namespace LettaBatchMessages {
10
+ interface Raw {
11
+ messages: Message.Raw[];
12
+ }
13
+ }
@@ -0,0 +1,44 @@
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.LettaBatchMessages = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const Message_1 = require("./Message");
42
+ exports.LettaBatchMessages = core.serialization.object({
43
+ messages: core.serialization.list(Message_1.Message),
44
+ });
@@ -28,5 +28,6 @@ export declare namespace Message {
28
28
  tool_returns?: ToolReturn.Raw[] | null;
29
29
  group_id?: string | null;
30
30
  sender_id?: string | null;
31
+ batch_item_id?: string | null;
31
32
  }
32
33
  }
@@ -60,4 +60,5 @@ exports.Message = core.serialization.object({
60
60
  toolReturns: core.serialization.property("tool_returns", core.serialization.list(ToolReturn_1.ToolReturn).optional()),
61
61
  groupId: core.serialization.property("group_id", core.serialization.string().optional()),
62
62
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
63
+ batchItemId: core.serialization.property("batch_item_id", core.serialization.string().optional()),
63
64
  });
@@ -14,6 +14,7 @@ export declare namespace MessageCreate {
14
14
  name?: string | null;
15
15
  otid?: string | null;
16
16
  sender_id?: string | null;
17
+ batch_item_id?: string | null;
17
18
  group_id?: string | null;
18
19
  }
19
20
  }
@@ -46,5 +46,6 @@ exports.MessageCreate = core.serialization.object({
46
46
  name: core.serialization.string().optional(),
47
47
  otid: core.serialization.string().optional(),
48
48
  senderId: core.serialization.property("sender_id", core.serialization.string().optional()),
49
+ batchItemId: core.serialization.property("batch_item_id", core.serialization.string().optional()),
49
50
  groupId: core.serialization.property("group_id", core.serialization.string().optional()),
50
51
  });
@@ -119,6 +119,7 @@ export * from "./JsonSchemaResponseFormat";
119
119
  export * from "./LlmConfigModelEndpointType";
120
120
  export * from "./LlmConfigReasoningEffort";
121
121
  export * from "./LlmConfig";
122
+ export * from "./LettaBatchMessages";
122
123
  export * from "./LettaBatchRequest";
123
124
  export * from "./LettaRequest";
124
125
  export * from "./LettaRequestConfig";
@@ -135,6 +135,7 @@ __exportStar(require("./JsonSchemaResponseFormat"), exports);
135
135
  __exportStar(require("./LlmConfigModelEndpointType"), exports);
136
136
  __exportStar(require("./LlmConfigReasoningEffort"), exports);
137
137
  __exportStar(require("./LlmConfig"), exports);
138
+ __exportStar(require("./LettaBatchMessages"), exports);
138
139
  __exportStar(require("./LettaBatchRequest"), exports);
139
140
  __exportStar(require("./LettaRequest"), exports);
140
141
  __exportStar(require("./LettaRequestConfig"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.113";
1
+ export declare const SDK_VERSION = "0.1.115";
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.113";
4
+ exports.SDK_VERSION = "0.1.115";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.113",
3
+ "version": "0.1.115",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2244,6 +2244,61 @@ await client.groups.create({
2244
2244
  </dl>
2245
2245
  </details>
2246
2246
 
2247
+ <details><summary><code>client.groups.<a href="/src/api/resources/groups/client/Client.ts">count</a>() -> number</code></summary>
2248
+ <dl>
2249
+ <dd>
2250
+
2251
+ #### 📝 Description
2252
+
2253
+ <dl>
2254
+ <dd>
2255
+
2256
+ <dl>
2257
+ <dd>
2258
+
2259
+ Get the count of all groups associated with a given user.
2260
+
2261
+ </dd>
2262
+ </dl>
2263
+ </dd>
2264
+ </dl>
2265
+
2266
+ #### 🔌 Usage
2267
+
2268
+ <dl>
2269
+ <dd>
2270
+
2271
+ <dl>
2272
+ <dd>
2273
+
2274
+ ```typescript
2275
+ await client.groups.count();
2276
+ ```
2277
+
2278
+ </dd>
2279
+ </dl>
2280
+ </dd>
2281
+ </dl>
2282
+
2283
+ #### ⚙️ Parameters
2284
+
2285
+ <dl>
2286
+ <dd>
2287
+
2288
+ <dl>
2289
+ <dd>
2290
+
2291
+ **requestOptions:** `Groups.RequestOptions`
2292
+
2293
+ </dd>
2294
+ </dl>
2295
+ </dd>
2296
+ </dl>
2297
+
2298
+ </dd>
2299
+ </dl>
2300
+ </details>
2301
+
2247
2302
  <details><summary><code>client.groups.<a href="/src/api/resources/groups/client/Client.ts">retrieve</a>(groupId) -> Letta.Group</code></summary>
2248
2303
  <dl>
2249
2304
  <dd>
@@ -3025,6 +3080,61 @@ await client.blocks.create({
3025
3080
  </dl>
3026
3081
  </details>
3027
3082
 
3083
+ <details><summary><code>client.blocks.<a href="/src/api/resources/blocks/client/Client.ts">count</a>() -> number</code></summary>
3084
+ <dl>
3085
+ <dd>
3086
+
3087
+ #### 📝 Description
3088
+
3089
+ <dl>
3090
+ <dd>
3091
+
3092
+ <dl>
3093
+ <dd>
3094
+
3095
+ Count all blocks created by a user.
3096
+
3097
+ </dd>
3098
+ </dl>
3099
+ </dd>
3100
+ </dl>
3101
+
3102
+ #### 🔌 Usage
3103
+
3104
+ <dl>
3105
+ <dd>
3106
+
3107
+ <dl>
3108
+ <dd>
3109
+
3110
+ ```typescript
3111
+ await client.blocks.count();
3112
+ ```
3113
+
3114
+ </dd>
3115
+ </dl>
3116
+ </dd>
3117
+ </dl>
3118
+
3119
+ #### ⚙️ Parameters
3120
+
3121
+ <dl>
3122
+ <dd>
3123
+
3124
+ <dl>
3125
+ <dd>
3126
+
3127
+ **requestOptions:** `Blocks.RequestOptions`
3128
+
3129
+ </dd>
3130
+ </dl>
3131
+ </dd>
3132
+ </dl>
3133
+
3134
+ </dd>
3135
+ </dl>
3136
+ </details>
3137
+
3028
3138
  <details><summary><code>client.blocks.<a href="/src/api/resources/blocks/client/Client.ts">retrieve</a>(blockId) -> Letta.Block</code></summary>
3029
3139
  <dl>
3030
3140
  <dd>
@@ -4445,6 +4555,86 @@ await client.batches.cancel("batch_id");
4445
4555
  </dl>
4446
4556
  </details>
4447
4557
 
4558
+ ## Messages
4559
+
4560
+ <details><summary><code>client.messages.<a href="/src/api/resources/messages/client/Client.ts">listBatchMessages</a>(batchId, { ...params }) -> Letta.LettaBatchMessages</code></summary>
4561
+ <dl>
4562
+ <dd>
4563
+
4564
+ #### 📝 Description
4565
+
4566
+ <dl>
4567
+ <dd>
4568
+
4569
+ <dl>
4570
+ <dd>
4571
+
4572
+ Get messages for a specific batch job.
4573
+
4574
+ Returns messages associated with the batch in chronological order.
4575
+
4576
+ Pagination:
4577
+
4578
+ - For the first page, omit the cursor parameter
4579
+ - For subsequent pages, use the ID of the last message from the previous response as the cursor
4580
+ - Results will include messages before/after the cursor based on sort_descending
4581
+ </dd>
4582
+ </dl>
4583
+ </dd>
4584
+ </dl>
4585
+
4586
+ #### 🔌 Usage
4587
+
4588
+ <dl>
4589
+ <dd>
4590
+
4591
+ <dl>
4592
+ <dd>
4593
+
4594
+ ```typescript
4595
+ await client.messages.listBatchMessages("batch_id");
4596
+ ```
4597
+
4598
+ </dd>
4599
+ </dl>
4600
+ </dd>
4601
+ </dl>
4602
+
4603
+ #### ⚙️ Parameters
4604
+
4605
+ <dl>
4606
+ <dd>
4607
+
4608
+ <dl>
4609
+ <dd>
4610
+
4611
+ **batchId:** `string`
4612
+
4613
+ </dd>
4614
+ </dl>
4615
+
4616
+ <dl>
4617
+ <dd>
4618
+
4619
+ **request:** `Letta.ListBatchMessagesRequest`
4620
+
4621
+ </dd>
4622
+ </dl>
4623
+
4624
+ <dl>
4625
+ <dd>
4626
+
4627
+ **requestOptions:** `Messages.RequestOptions`
4628
+
4629
+ </dd>
4630
+ </dl>
4631
+ </dd>
4632
+ </dl>
4633
+
4634
+ </dd>
4635
+ </dl>
4636
+ </details>
4637
+
4448
4638
  ## Voice
4449
4639
 
4450
4640
  <details><summary><code>client.voice.<a href="/src/api/resources/voice/client/Client.ts">createVoiceChatCompletions</a>(agentId, { ...params }) -> unknown</code></summary>
@@ -0,0 +1,9 @@
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 Response: core.serialization.Schema<serializers.blocks.count.Response.Raw, number>;
7
+ export declare namespace Response {
8
+ type Raw = number;
9
+ }
@@ -0,0 +1,41 @@
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 = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.Response = core.serialization.number();
@@ -1 +1,2 @@
1
1
  export * as list from "./list";
2
+ export * as count from "./count";
@@ -33,5 +33,6 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.list = void 0;
36
+ exports.count = exports.list = void 0;
37
37
  exports.list = __importStar(require("./list"));
38
+ exports.count = __importStar(require("./count"));
@@ -0,0 +1,9 @@
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 Response: core.serialization.Schema<serializers.groups.count.Response.Raw, number>;
7
+ export declare namespace Response {
8
+ type Raw = number;
9
+ }
@@ -0,0 +1,41 @@
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 = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.Response = core.serialization.number();
@@ -1,2 +1,3 @@
1
1
  export * as list from "./list";
2
+ export * as count from "./count";
2
3
  export * from "./requests";