@letta-ai/letta-client 0.1.160 → 0.1.161

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 (200) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +43 -38
  3. package/api/resources/agents/client/Client.js +13 -13
  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 +8 -8
  10. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  11. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  12. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  13. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  14. package/api/resources/batches/client/Client.js +4 -4
  15. package/api/resources/blocks/client/Client.js +6 -6
  16. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  17. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  18. package/api/resources/embeddingModels/client/Client.js +1 -1
  19. package/api/resources/folders/client/Client.d.ts +206 -0
  20. package/api/resources/folders/client/Client.js +981 -0
  21. package/api/resources/folders/client/index.d.ts +1 -0
  22. package/api/resources/folders/client/index.js +17 -0
  23. package/api/resources/folders/client/requests/BodyUploadFileToFolder.d.ts +14 -0
  24. package/api/resources/folders/client/requests/BodyUploadFileToFolder.js +5 -0
  25. package/api/resources/folders/client/requests/FolderCreate.d.ts +26 -0
  26. package/api/resources/folders/client/requests/FolderCreate.js +5 -0
  27. package/api/resources/folders/client/requests/FolderUpdate.d.ts +20 -0
  28. package/api/resources/folders/client/requests/FolderUpdate.js +5 -0
  29. package/api/resources/folders/client/requests/GetFoldersMetadataRequest.d.ts +10 -0
  30. package/api/resources/folders/client/requests/GetFoldersMetadataRequest.js +5 -0
  31. package/api/resources/folders/client/requests/ListFolderFilesRequest.d.ts +21 -0
  32. package/api/resources/folders/client/requests/ListFolderFilesRequest.js +5 -0
  33. package/api/resources/folders/client/requests/ListFolderPassagesRequest.d.ts +21 -0
  34. package/api/resources/folders/client/requests/ListFolderPassagesRequest.js +5 -0
  35. package/api/resources/folders/client/requests/index.d.ts +6 -0
  36. package/api/resources/folders/client/requests/index.js +2 -0
  37. package/api/resources/folders/index.d.ts +1 -0
  38. package/api/resources/folders/index.js +17 -0
  39. package/api/resources/groups/client/Client.js +6 -6
  40. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  41. package/api/resources/health/client/Client.js +1 -1
  42. package/api/resources/identities/client/Client.js +7 -7
  43. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  44. package/api/resources/index.d.ts +2 -0
  45. package/api/resources/index.js +3 -1
  46. package/api/resources/jobs/client/Client.js +5 -5
  47. package/api/resources/messages/client/Client.js +1 -1
  48. package/api/resources/models/client/Client.js +1 -1
  49. package/api/resources/projects/client/Client.js +1 -1
  50. package/api/resources/providers/client/Client.js +5 -5
  51. package/api/resources/runs/client/Client.js +4 -4
  52. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  53. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  54. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  55. package/api/resources/sources/client/Client.js +10 -10
  56. package/api/resources/sources/resources/files/client/Client.js +3 -3
  57. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  58. package/api/resources/steps/client/Client.js +2 -2
  59. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  60. package/api/resources/tags/client/Client.js +1 -1
  61. package/api/resources/telemetry/client/Client.js +1 -1
  62. package/api/resources/templates/client/Client.js +1 -1
  63. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  64. package/api/resources/tools/client/Client.js +19 -19
  65. package/api/resources/voice/client/Client.js +1 -1
  66. package/api/types/Folder.d.ts +37 -0
  67. package/api/types/Folder.js +5 -0
  68. package/api/types/index.d.ts +1 -0
  69. package/api/types/index.js +1 -0
  70. package/dist/Client.d.ts +3 -0
  71. package/dist/Client.js +43 -38
  72. package/dist/api/resources/agents/client/Client.js +13 -13
  73. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  74. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  75. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  76. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  77. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  78. package/dist/api/resources/agents/resources/messages/client/Client.js +8 -8
  79. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  80. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  81. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  82. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  83. package/dist/api/resources/batches/client/Client.js +4 -4
  84. package/dist/api/resources/blocks/client/Client.js +6 -6
  85. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  86. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  87. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  88. package/dist/api/resources/folders/client/Client.d.ts +206 -0
  89. package/dist/api/resources/folders/client/Client.js +981 -0
  90. package/dist/api/resources/folders/client/index.d.ts +1 -0
  91. package/dist/api/resources/folders/client/index.js +17 -0
  92. package/dist/api/resources/folders/client/requests/BodyUploadFileToFolder.d.ts +14 -0
  93. package/dist/api/resources/folders/client/requests/BodyUploadFileToFolder.js +5 -0
  94. package/dist/api/resources/folders/client/requests/FolderCreate.d.ts +26 -0
  95. package/dist/api/resources/folders/client/requests/FolderCreate.js +5 -0
  96. package/dist/api/resources/folders/client/requests/FolderUpdate.d.ts +20 -0
  97. package/dist/api/resources/folders/client/requests/FolderUpdate.js +5 -0
  98. package/dist/api/resources/folders/client/requests/GetFoldersMetadataRequest.d.ts +10 -0
  99. package/dist/api/resources/folders/client/requests/GetFoldersMetadataRequest.js +5 -0
  100. package/dist/api/resources/folders/client/requests/ListFolderFilesRequest.d.ts +21 -0
  101. package/dist/api/resources/folders/client/requests/ListFolderFilesRequest.js +5 -0
  102. package/dist/api/resources/folders/client/requests/ListFolderPassagesRequest.d.ts +21 -0
  103. package/dist/api/resources/folders/client/requests/ListFolderPassagesRequest.js +5 -0
  104. package/dist/api/resources/folders/client/requests/index.d.ts +6 -0
  105. package/dist/api/resources/folders/client/requests/index.js +2 -0
  106. package/dist/api/resources/folders/index.d.ts +1 -0
  107. package/dist/api/resources/folders/index.js +17 -0
  108. package/dist/api/resources/groups/client/Client.js +6 -6
  109. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  110. package/dist/api/resources/health/client/Client.js +1 -1
  111. package/dist/api/resources/identities/client/Client.js +7 -7
  112. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  113. package/dist/api/resources/index.d.ts +2 -0
  114. package/dist/api/resources/index.js +3 -1
  115. package/dist/api/resources/jobs/client/Client.js +5 -5
  116. package/dist/api/resources/messages/client/Client.js +1 -1
  117. package/dist/api/resources/models/client/Client.js +1 -1
  118. package/dist/api/resources/projects/client/Client.js +1 -1
  119. package/dist/api/resources/providers/client/Client.js +5 -5
  120. package/dist/api/resources/runs/client/Client.js +4 -4
  121. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  122. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  123. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  124. package/dist/api/resources/sources/client/Client.js +10 -10
  125. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  126. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  127. package/dist/api/resources/steps/client/Client.js +2 -2
  128. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  129. package/dist/api/resources/tags/client/Client.js +1 -1
  130. package/dist/api/resources/telemetry/client/Client.js +1 -1
  131. package/dist/api/resources/templates/client/Client.js +1 -1
  132. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  133. package/dist/api/resources/tools/client/Client.js +19 -19
  134. package/dist/api/resources/voice/client/Client.js +1 -1
  135. package/dist/api/types/Folder.d.ts +37 -0
  136. package/dist/api/types/Folder.js +5 -0
  137. package/dist/api/types/index.d.ts +1 -0
  138. package/dist/api/types/index.js +1 -0
  139. package/dist/serialization/resources/folders/client/countFolders.d.ts +9 -0
  140. package/dist/serialization/resources/folders/client/countFolders.js +41 -0
  141. package/dist/serialization/resources/folders/client/getAgentsForFolder.d.ts +9 -0
  142. package/dist/serialization/resources/folders/client/getAgentsForFolder.js +41 -0
  143. package/dist/serialization/resources/folders/client/getFolderIdByName.d.ts +9 -0
  144. package/dist/serialization/resources/folders/client/getFolderIdByName.js +41 -0
  145. package/dist/serialization/resources/folders/client/index.d.ts +7 -0
  146. package/dist/serialization/resources/folders/client/index.js +46 -0
  147. package/dist/serialization/resources/folders/client/listFolderFiles.d.ts +11 -0
  148. package/dist/serialization/resources/folders/client/listFolderFiles.js +42 -0
  149. package/dist/serialization/resources/folders/client/listFolderPassages.d.ts +11 -0
  150. package/dist/serialization/resources/folders/client/listFolderPassages.js +42 -0
  151. package/dist/serialization/resources/folders/client/listFolders.d.ts +11 -0
  152. package/dist/serialization/resources/folders/client/listFolders.js +42 -0
  153. package/dist/serialization/resources/folders/client/requests/FolderCreate.d.ts +19 -0
  154. package/dist/serialization/resources/folders/client/requests/FolderCreate.js +50 -0
  155. package/dist/serialization/resources/folders/client/requests/FolderUpdate.d.ts +17 -0
  156. package/dist/serialization/resources/folders/client/requests/FolderUpdate.js +48 -0
  157. package/dist/serialization/resources/folders/client/requests/index.d.ts +2 -0
  158. package/dist/serialization/resources/folders/client/requests/index.js +7 -0
  159. package/dist/serialization/resources/folders/index.d.ts +1 -0
  160. package/dist/serialization/resources/folders/index.js +17 -0
  161. package/dist/serialization/resources/index.d.ts +2 -0
  162. package/dist/serialization/resources/index.js +3 -1
  163. package/dist/serialization/types/Folder.d.ts +22 -0
  164. package/dist/serialization/types/Folder.js +53 -0
  165. package/dist/serialization/types/index.d.ts +1 -0
  166. package/dist/serialization/types/index.js +1 -0
  167. package/dist/version.d.ts +1 -1
  168. package/dist/version.js +1 -1
  169. package/package.json +1 -1
  170. package/reference.md +861 -0
  171. package/serialization/resources/folders/client/countFolders.d.ts +9 -0
  172. package/serialization/resources/folders/client/countFolders.js +41 -0
  173. package/serialization/resources/folders/client/getAgentsForFolder.d.ts +9 -0
  174. package/serialization/resources/folders/client/getAgentsForFolder.js +41 -0
  175. package/serialization/resources/folders/client/getFolderIdByName.d.ts +9 -0
  176. package/serialization/resources/folders/client/getFolderIdByName.js +41 -0
  177. package/serialization/resources/folders/client/index.d.ts +7 -0
  178. package/serialization/resources/folders/client/index.js +46 -0
  179. package/serialization/resources/folders/client/listFolderFiles.d.ts +11 -0
  180. package/serialization/resources/folders/client/listFolderFiles.js +42 -0
  181. package/serialization/resources/folders/client/listFolderPassages.d.ts +11 -0
  182. package/serialization/resources/folders/client/listFolderPassages.js +42 -0
  183. package/serialization/resources/folders/client/listFolders.d.ts +11 -0
  184. package/serialization/resources/folders/client/listFolders.js +42 -0
  185. package/serialization/resources/folders/client/requests/FolderCreate.d.ts +19 -0
  186. package/serialization/resources/folders/client/requests/FolderCreate.js +50 -0
  187. package/serialization/resources/folders/client/requests/FolderUpdate.d.ts +17 -0
  188. package/serialization/resources/folders/client/requests/FolderUpdate.js +48 -0
  189. package/serialization/resources/folders/client/requests/index.d.ts +2 -0
  190. package/serialization/resources/folders/client/requests/index.js +7 -0
  191. package/serialization/resources/folders/index.d.ts +1 -0
  192. package/serialization/resources/folders/index.js +17 -0
  193. package/serialization/resources/index.d.ts +2 -0
  194. package/serialization/resources/index.js +3 -1
  195. package/serialization/types/Folder.d.ts +22 -0
  196. package/serialization/types/Folder.js +53 -0
  197. package/serialization/types/index.d.ts +1 -0
  198. package/serialization/types/index.js +1 -0
  199. package/version.d.ts +1 -1
  200. package/version.js +1 -1
@@ -0,0 +1,37 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Letta from "../index";
5
+ /**
6
+ * Representation of a folder, which is a collection of files and passages.
7
+ *
8
+ * Parameters:
9
+ * id (str): The ID of the folder
10
+ * name (str): The name of the folder.
11
+ * embedding_config (EmbeddingConfig): The embedding configuration used by the folder.
12
+ * user_id (str): The ID of the user that created the folder.
13
+ * metadata (dict): Metadata associated with the folder.
14
+ * description (str): The description of the folder.
15
+ */
16
+ export interface Folder {
17
+ /** The name of the folder. */
18
+ name: string;
19
+ /** The description of the folder. */
20
+ description?: string;
21
+ /** Instructions for how to use the folder. */
22
+ instructions?: string;
23
+ /** Metadata associated with the folder. */
24
+ metadata?: Record<string, unknown>;
25
+ /** The human-friendly ID of the Folder */
26
+ id?: string;
27
+ /** The embedding configuration used by the folder. */
28
+ embeddingConfig: Letta.EmbeddingConfig;
29
+ /** The id of the user that made this Tool. */
30
+ createdById?: string;
31
+ /** The id of the user that made this Tool. */
32
+ lastUpdatedById?: string;
33
+ /** The timestamp when the folder was created. */
34
+ createdAt?: Date;
35
+ /** The timestamp when the folder was last updated. */
36
+ updatedAt?: Date;
37
+ }
@@ -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 });
@@ -98,6 +98,7 @@ export * from "./FileFile";
98
98
  export * from "./FileMetadata";
99
99
  export * from "./FileProcessingStatus";
100
100
  export * from "./FileStats";
101
+ export * from "./Folder";
101
102
  export * from "./FunctionOutput";
102
103
  export * from "./FunctionCall";
103
104
  export * from "./FunctionDefinitionInput";
@@ -114,6 +114,7 @@ __exportStar(require("./FileFile"), exports);
114
114
  __exportStar(require("./FileMetadata"), exports);
115
115
  __exportStar(require("./FileProcessingStatus"), exports);
116
116
  __exportStar(require("./FileStats"), exports);
117
+ __exportStar(require("./Folder"), exports);
117
118
  __exportStar(require("./FunctionOutput"), exports);
118
119
  __exportStar(require("./FunctionCall"), exports);
119
120
  __exportStar(require("./FunctionDefinitionInput"), 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.folders.countFolders.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();
@@ -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.folders.getAgentsForFolder.Response.Raw, string[]>;
7
+ export declare namespace Response {
8
+ type Raw = string[];
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.list(core.serialization.string());
@@ -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.folders.getFolderIdByName.Response.Raw, string>;
7
+ export declare namespace Response {
8
+ type Raw = string;
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.string();
@@ -0,0 +1,7 @@
1
+ export * as countFolders from "./countFolders";
2
+ export * as getFolderIdByName from "./getFolderIdByName";
3
+ export * as listFolders from "./listFolders";
4
+ export * as getAgentsForFolder from "./getAgentsForFolder";
5
+ export * as listFolderPassages from "./listFolderPassages";
6
+ export * as listFolderFiles from "./listFolderFiles";
7
+ export * from "./requests";
@@ -0,0 +1,46 @@
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.listFolderFiles = exports.listFolderPassages = exports.getAgentsForFolder = exports.listFolders = exports.getFolderIdByName = exports.countFolders = void 0;
40
+ exports.countFolders = __importStar(require("./countFolders"));
41
+ exports.getFolderIdByName = __importStar(require("./getFolderIdByName"));
42
+ exports.listFolders = __importStar(require("./listFolders"));
43
+ exports.getAgentsForFolder = __importStar(require("./getAgentsForFolder"));
44
+ exports.listFolderPassages = __importStar(require("./listFolderPassages"));
45
+ exports.listFolderFiles = __importStar(require("./listFolderFiles"));
46
+ __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 { FileMetadata } from "../../../types/FileMetadata";
8
+ export declare const Response: core.serialization.Schema<serializers.folders.listFolderFiles.Response.Raw, Letta.FileMetadata[]>;
9
+ export declare namespace Response {
10
+ type Raw = FileMetadata.Raw[];
11
+ }
@@ -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 = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const FileMetadata_1 = require("../../../types/FileMetadata");
42
+ exports.Response = core.serialization.list(FileMetadata_1.FileMetadata);
@@ -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 { Passage } from "../../../types/Passage";
8
+ export declare const Response: core.serialization.Schema<serializers.folders.listFolderPassages.Response.Raw, Letta.Passage[]>;
9
+ export declare namespace Response {
10
+ type Raw = Passage.Raw[];
11
+ }
@@ -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 = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const Passage_1 = require("../../../types/Passage");
42
+ exports.Response = core.serialization.list(Passage_1.Passage);
@@ -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 { Folder } from "../../../types/Folder";
8
+ export declare const Response: core.serialization.Schema<serializers.folders.listFolders.Response.Raw, Letta.Folder[]>;
9
+ export declare namespace Response {
10
+ type Raw = Folder.Raw[];
11
+ }
@@ -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 = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ const Folder_1 = require("../../../types/Folder");
42
+ exports.Response = core.serialization.list(Folder_1.Folder);
@@ -0,0 +1,19 @@
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 { EmbeddingConfig } from "../../../../types/EmbeddingConfig";
8
+ export declare const FolderCreate: core.serialization.Schema<serializers.FolderCreate.Raw, Letta.FolderCreate>;
9
+ export declare namespace FolderCreate {
10
+ interface Raw {
11
+ name: string;
12
+ description?: string | null;
13
+ instructions?: string | null;
14
+ metadata?: Record<string, unknown> | null;
15
+ embedding?: string | null;
16
+ embedding_chunk_size?: number | null;
17
+ embedding_config?: EmbeddingConfig.Raw | null;
18
+ }
19
+ }
@@ -0,0 +1,50 @@
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.FolderCreate = void 0;
40
+ const core = __importStar(require("../../../../../core"));
41
+ const EmbeddingConfig_1 = require("../../../../types/EmbeddingConfig");
42
+ exports.FolderCreate = core.serialization.object({
43
+ name: core.serialization.string(),
44
+ description: core.serialization.string().optional(),
45
+ instructions: core.serialization.string().optional(),
46
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
47
+ embedding: core.serialization.string().optional(),
48
+ embeddingChunkSize: core.serialization.property("embedding_chunk_size", core.serialization.number().optional()),
49
+ embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig.optional()),
50
+ });
@@ -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 { EmbeddingConfig } from "../../../../types/EmbeddingConfig";
8
+ export declare const FolderUpdate: core.serialization.Schema<serializers.FolderUpdate.Raw, Letta.FolderUpdate>;
9
+ export declare namespace FolderUpdate {
10
+ interface Raw {
11
+ name?: string | null;
12
+ description?: string | null;
13
+ instructions?: string | null;
14
+ metadata?: Record<string, unknown> | null;
15
+ embedding_config?: EmbeddingConfig.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.FolderUpdate = void 0;
40
+ const core = __importStar(require("../../../../../core"));
41
+ const EmbeddingConfig_1 = require("../../../../types/EmbeddingConfig");
42
+ exports.FolderUpdate = core.serialization.object({
43
+ name: core.serialization.string().optional(),
44
+ description: core.serialization.string().optional(),
45
+ instructions: core.serialization.string().optional(),
46
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
47
+ embeddingConfig: core.serialization.property("embedding_config", EmbeddingConfig_1.EmbeddingConfig.optional()),
48
+ });
@@ -0,0 +1,2 @@
1
+ export { FolderUpdate } from "./FolderUpdate";
2
+ export { FolderCreate } from "./FolderCreate";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FolderCreate = exports.FolderUpdate = void 0;
4
+ var FolderUpdate_1 = require("./FolderUpdate");
5
+ Object.defineProperty(exports, "FolderUpdate", { enumerable: true, get: function () { return FolderUpdate_1.FolderUpdate; } });
6
+ var FolderCreate_1 = require("./FolderCreate");
7
+ Object.defineProperty(exports, "FolderCreate", { enumerable: true, get: function () { return FolderCreate_1.FolderCreate; } });
@@ -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);
@@ -13,6 +13,7 @@ export * from "./clientSideAccessTokens/types";
13
13
  export * as projects from "./projects";
14
14
  export * from "./projects/types";
15
15
  export * as sources from "./sources";
16
+ export * as folders from "./folders";
16
17
  export * as identities from "./identities";
17
18
  export * as models from "./models";
18
19
  export * as embeddingModels from "./embeddingModels";
@@ -25,6 +26,7 @@ export * as batches from "./batches";
25
26
  export * as voice from "./voice";
26
27
  export * from "./tools/client/requests";
27
28
  export * from "./sources/client/requests";
29
+ export * from "./folders/client/requests";
28
30
  export * from "./agents/client/requests";
29
31
  export * from "./groups/client/requests";
30
32
  export * from "./identities/client/requests";