@letta-ai/letta-client 0.0.68656 → 0.0.68657

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 (229) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +45 -40
  3. package/README.md +9 -9
  4. package/api/resources/agents/client/Client.js +9 -9
  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/files/client/Client.js +4 -4
  9. package/api/resources/agents/resources/folders/client/Client.js +3 -3
  10. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  11. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  12. package/api/resources/agents/resources/messages/client/Client.js +10 -10
  13. package/api/resources/agents/resources/passages/client/Client.js +5 -5
  14. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  15. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  16. package/api/resources/agents/resources/tools/client/Client.js +4 -4
  17. package/api/resources/archives/client/Client.d.ts +78 -0
  18. package/api/resources/archives/client/Client.js +325 -0
  19. package/api/resources/archives/client/index.d.ts +1 -0
  20. package/api/resources/archives/client/index.js +17 -0
  21. package/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  22. package/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
  23. package/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
  24. package/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
  25. package/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
  26. package/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
  27. package/api/resources/archives/client/requests/index.d.ts +3 -0
  28. package/api/resources/archives/client/requests/index.js +2 -0
  29. package/api/resources/archives/index.d.ts +2 -0
  30. package/api/resources/archives/index.js +18 -0
  31. package/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
  32. package/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
  33. package/api/resources/archives/types/index.d.ts +1 -0
  34. package/api/resources/archives/types/index.js +17 -0
  35. package/api/resources/batches/client/Client.js +4 -4
  36. package/api/resources/batches/resources/messages/client/Client.js +1 -1
  37. package/api/resources/blocks/client/Client.js +6 -6
  38. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  39. package/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  40. package/api/resources/folders/client/Client.js +8 -8
  41. package/api/resources/folders/resources/agents/client/Client.js +1 -1
  42. package/api/resources/folders/resources/files/client/Client.js +3 -3
  43. package/api/resources/folders/resources/passages/client/Client.js +1 -1
  44. package/api/resources/groups/client/Client.js +6 -6
  45. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  46. package/api/resources/health/client/Client.js +1 -1
  47. package/api/resources/identities/client/Client.js +7 -7
  48. package/api/resources/identities/resources/agents/client/Client.js +1 -1
  49. package/api/resources/identities/resources/blocks/client/Client.js +1 -1
  50. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  51. package/api/resources/index.d.ts +3 -0
  52. package/api/resources/index.js +4 -1
  53. package/api/resources/jobs/client/Client.d.ts +0 -1
  54. package/api/resources/jobs/client/Client.js +9 -7
  55. package/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
  56. package/api/resources/models/client/Client.js +2 -2
  57. package/api/resources/models/resources/embeddings/client/Client.js +1 -1
  58. package/api/resources/projects/client/Client.js +1 -1
  59. package/api/resources/providers/client/Client.js +6 -6
  60. package/api/resources/runs/client/Client.js +15 -7
  61. package/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
  62. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  63. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  64. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  65. package/api/resources/sources/client/Client.js +10 -10
  66. package/api/resources/sources/resources/files/client/Client.js +3 -3
  67. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  68. package/api/resources/steps/client/Client.js +2 -2
  69. package/api/resources/steps/resources/feedback/client/Client.js +1 -1
  70. package/api/resources/steps/resources/metrics/client/Client.js +1 -1
  71. package/api/resources/steps/resources/trace/client/Client.js +1 -1
  72. package/api/resources/tags/client/Client.js +1 -1
  73. package/api/resources/telemetry/client/Client.js +1 -1
  74. package/api/resources/templates/client/Client.js +9 -9
  75. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  76. package/api/resources/tools/client/Client.js +20 -20
  77. package/api/resources/voice/client/Client.js +1 -1
  78. package/api/types/Archive.d.ts +35 -0
  79. package/api/types/Archive.js +5 -0
  80. package/api/types/BatchJob.d.ts +2 -0
  81. package/api/types/Job.d.ts +2 -0
  82. package/api/types/Run.d.ts +2 -0
  83. package/api/types/index.d.ts +1 -0
  84. package/api/types/index.js +1 -0
  85. package/dist/Client.d.ts +3 -0
  86. package/dist/Client.js +45 -40
  87. package/dist/api/resources/agents/client/Client.js +9 -9
  88. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  89. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  90. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  91. package/dist/api/resources/agents/resources/files/client/Client.js +4 -4
  92. package/dist/api/resources/agents/resources/folders/client/Client.js +3 -3
  93. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  94. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  95. package/dist/api/resources/agents/resources/messages/client/Client.js +10 -10
  96. package/dist/api/resources/agents/resources/passages/client/Client.js +5 -5
  97. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  98. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  99. package/dist/api/resources/agents/resources/tools/client/Client.js +4 -4
  100. package/dist/api/resources/archives/client/Client.d.ts +78 -0
  101. package/dist/api/resources/archives/client/Client.js +325 -0
  102. package/dist/api/resources/archives/client/index.d.ts +1 -0
  103. package/dist/api/resources/archives/client/index.js +17 -0
  104. package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  105. package/dist/api/resources/archives/client/requests/ArchiveCreateRequest.js +5 -0
  106. package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +11 -0
  107. package/dist/api/resources/archives/client/requests/ArchiveUpdateRequest.js +5 -0
  108. package/dist/api/resources/archives/client/requests/ListArchivesRequest.d.ts +34 -0
  109. package/dist/api/resources/archives/client/requests/ListArchivesRequest.js +5 -0
  110. package/dist/api/resources/archives/client/requests/index.d.ts +3 -0
  111. package/dist/api/resources/archives/client/requests/index.js +2 -0
  112. package/dist/api/resources/archives/index.d.ts +2 -0
  113. package/dist/api/resources/archives/index.js +18 -0
  114. package/dist/api/resources/archives/types/ListArchivesRequestOrder.d.ts +11 -0
  115. package/dist/api/resources/archives/types/ListArchivesRequestOrder.js +10 -0
  116. package/dist/api/resources/archives/types/index.d.ts +1 -0
  117. package/dist/api/resources/archives/types/index.js +17 -0
  118. package/dist/api/resources/batches/client/Client.js +4 -4
  119. package/dist/api/resources/batches/resources/messages/client/Client.js +1 -1
  120. package/dist/api/resources/blocks/client/Client.js +6 -6
  121. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  122. package/dist/api/resources/clientSideAccessTokens/client/Client.js +3 -3
  123. package/dist/api/resources/folders/client/Client.js +8 -8
  124. package/dist/api/resources/folders/resources/agents/client/Client.js +1 -1
  125. package/dist/api/resources/folders/resources/files/client/Client.js +3 -3
  126. package/dist/api/resources/folders/resources/passages/client/Client.js +1 -1
  127. package/dist/api/resources/groups/client/Client.js +6 -6
  128. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  129. package/dist/api/resources/health/client/Client.js +1 -1
  130. package/dist/api/resources/identities/client/Client.js +7 -7
  131. package/dist/api/resources/identities/resources/agents/client/Client.js +1 -1
  132. package/dist/api/resources/identities/resources/blocks/client/Client.js +1 -1
  133. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  134. package/dist/api/resources/index.d.ts +3 -0
  135. package/dist/api/resources/index.js +4 -1
  136. package/dist/api/resources/jobs/client/Client.d.ts +0 -1
  137. package/dist/api/resources/jobs/client/Client.js +9 -7
  138. package/dist/api/resources/jobs/client/requests/JobsListRequest.d.ts +4 -0
  139. package/dist/api/resources/models/client/Client.js +2 -2
  140. package/dist/api/resources/models/resources/embeddings/client/Client.js +1 -1
  141. package/dist/api/resources/projects/client/Client.js +1 -1
  142. package/dist/api/resources/providers/client/Client.js +6 -6
  143. package/dist/api/resources/runs/client/Client.js +15 -7
  144. package/dist/api/resources/runs/client/requests/RunsListRequest.d.ts +9 -0
  145. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  146. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  147. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  148. package/dist/api/resources/sources/client/Client.js +10 -10
  149. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  150. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  151. package/dist/api/resources/steps/client/Client.js +2 -2
  152. package/dist/api/resources/steps/resources/feedback/client/Client.js +1 -1
  153. package/dist/api/resources/steps/resources/metrics/client/Client.js +1 -1
  154. package/dist/api/resources/steps/resources/trace/client/Client.js +1 -1
  155. package/dist/api/resources/tags/client/Client.js +1 -1
  156. package/dist/api/resources/telemetry/client/Client.js +1 -1
  157. package/dist/api/resources/templates/client/Client.js +9 -9
  158. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  159. package/dist/api/resources/tools/client/Client.js +20 -20
  160. package/dist/api/resources/voice/client/Client.js +1 -1
  161. package/dist/api/types/Archive.d.ts +35 -0
  162. package/dist/api/types/Archive.js +5 -0
  163. package/dist/api/types/BatchJob.d.ts +2 -0
  164. package/dist/api/types/Job.d.ts +2 -0
  165. package/dist/api/types/Run.d.ts +2 -0
  166. package/dist/api/types/index.d.ts +1 -0
  167. package/dist/api/types/index.js +1 -0
  168. package/dist/serialization/resources/archives/client/index.d.ts +2 -0
  169. package/dist/serialization/resources/archives/client/index.js +41 -0
  170. package/dist/serialization/resources/archives/client/listArchives.d.ts +11 -0
  171. package/dist/serialization/resources/archives/client/listArchives.js +42 -0
  172. package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  173. package/dist/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
  174. package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
  175. package/dist/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
  176. package/dist/serialization/resources/archives/client/requests/index.d.ts +2 -0
  177. package/dist/serialization/resources/archives/client/requests/index.js +7 -0
  178. package/dist/serialization/resources/archives/index.d.ts +2 -0
  179. package/dist/serialization/resources/archives/index.js +18 -0
  180. package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
  181. package/dist/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
  182. package/dist/serialization/resources/archives/types/index.d.ts +1 -0
  183. package/dist/serialization/resources/archives/types/index.js +17 -0
  184. package/dist/serialization/resources/index.d.ts +3 -0
  185. package/dist/serialization/resources/index.js +4 -1
  186. package/dist/serialization/types/Archive.d.ts +21 -0
  187. package/dist/serialization/types/Archive.js +52 -0
  188. package/dist/serialization/types/BatchJob.d.ts +2 -0
  189. package/dist/serialization/types/BatchJob.js +2 -0
  190. package/dist/serialization/types/Job.d.ts +2 -0
  191. package/dist/serialization/types/Job.js +2 -0
  192. package/dist/serialization/types/Run.d.ts +2 -0
  193. package/dist/serialization/types/Run.js +2 -0
  194. package/dist/serialization/types/index.d.ts +1 -0
  195. package/dist/serialization/types/index.js +1 -0
  196. package/dist/version.d.ts +1 -1
  197. package/dist/version.js +1 -1
  198. package/package.json +1 -1
  199. package/reference.md +201 -1
  200. package/serialization/resources/archives/client/index.d.ts +2 -0
  201. package/serialization/resources/archives/client/index.js +41 -0
  202. package/serialization/resources/archives/client/listArchives.d.ts +11 -0
  203. package/serialization/resources/archives/client/listArchives.js +42 -0
  204. package/serialization/resources/archives/client/requests/ArchiveCreateRequest.d.ts +13 -0
  205. package/serialization/resources/archives/client/requests/ArchiveCreateRequest.js +44 -0
  206. package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.d.ts +13 -0
  207. package/serialization/resources/archives/client/requests/ArchiveUpdateRequest.js +44 -0
  208. package/serialization/resources/archives/client/requests/index.d.ts +2 -0
  209. package/serialization/resources/archives/client/requests/index.js +7 -0
  210. package/serialization/resources/archives/index.d.ts +2 -0
  211. package/serialization/resources/archives/index.js +18 -0
  212. package/serialization/resources/archives/types/ListArchivesRequestOrder.d.ts +10 -0
  213. package/serialization/resources/archives/types/ListArchivesRequestOrder.js +41 -0
  214. package/serialization/resources/archives/types/index.d.ts +1 -0
  215. package/serialization/resources/archives/types/index.js +17 -0
  216. package/serialization/resources/index.d.ts +3 -0
  217. package/serialization/resources/index.js +4 -1
  218. package/serialization/types/Archive.d.ts +21 -0
  219. package/serialization/types/Archive.js +52 -0
  220. package/serialization/types/BatchJob.d.ts +2 -0
  221. package/serialization/types/BatchJob.js +2 -0
  222. package/serialization/types/Job.d.ts +2 -0
  223. package/serialization/types/Job.js +2 -0
  224. package/serialization/types/Run.d.ts +2 -0
  225. package/serialization/types/Run.js +2 -0
  226. package/serialization/types/index.d.ts +1 -0
  227. package/serialization/types/index.js +1 -0
  228. package/version.d.ts +1 -1
  229. package/version.js +1 -1
@@ -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("./ListArchivesRequestOrder"), exports);
@@ -1,3 +1,5 @@
1
+ export * as archives from "./archives";
2
+ export * from "./archives/types";
1
3
  export * as tools from "./tools";
2
4
  export * from "./tools/types";
3
5
  export * as folders from "./folders";
@@ -31,6 +33,7 @@ export * as models from "./models";
31
33
  export * as jobs from "./jobs";
32
34
  export * as telemetry from "./telemetry";
33
35
  export * as voice from "./voice";
36
+ export * from "./archives/client/requests";
34
37
  export * from "./tools/client/requests";
35
38
  export * from "./agents/client/requests";
36
39
  export * from "./groups/client/requests";
@@ -36,7 +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.voice = exports.telemetry = exports.jobs = exports.models = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.blocks = exports.identities = exports.groups = exports.agents = exports.folders = exports.tools = void 0;
39
+ exports.voice = exports.telemetry = exports.jobs = exports.models = exports.sources = exports.projects = exports.clientSideAccessTokens = exports.templates = exports.batches = exports.tags = exports.steps = exports.runs = exports.providers = exports.blocks = exports.identities = exports.groups = exports.agents = exports.folders = exports.tools = exports.archives = void 0;
40
+ exports.archives = __importStar(require("./archives"));
41
+ __exportStar(require("./archives/types"), exports);
40
42
  exports.tools = __importStar(require("./tools"));
41
43
  __exportStar(require("./tools/types"), exports);
42
44
  exports.folders = __importStar(require("./folders"));
@@ -70,6 +72,7 @@ exports.models = __importStar(require("./models"));
70
72
  exports.jobs = __importStar(require("./jobs"));
71
73
  exports.telemetry = __importStar(require("./telemetry"));
72
74
  exports.voice = __importStar(require("./voice"));
75
+ __exportStar(require("./archives/client/requests"), exports);
73
76
  __exportStar(require("./tools/client/requests"), exports);
74
77
  __exportStar(require("./agents/client/requests"), exports);
75
78
  __exportStar(require("./groups/client/requests"), exports);
@@ -0,0 +1,21 @@
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 { VectorDbProvider } from "./VectorDbProvider";
8
+ export declare const Archive: core.serialization.ObjectSchema<serializers.Archive.Raw, Letta.Archive>;
9
+ export declare namespace Archive {
10
+ interface Raw {
11
+ created_by_id?: string | null;
12
+ last_updated_by_id?: string | null;
13
+ created_at: string;
14
+ updated_at?: string | null;
15
+ name: string;
16
+ description?: string | null;
17
+ vector_db_provider?: VectorDbProvider.Raw | null;
18
+ metadata?: Record<string, unknown> | null;
19
+ id?: string | null;
20
+ }
21
+ }
@@ -0,0 +1,52 @@
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.Archive = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const VectorDbProvider_1 = require("./VectorDbProvider");
42
+ exports.Archive = core.serialization.object({
43
+ createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
44
+ lastUpdatedById: core.serialization.property("last_updated_by_id", core.serialization.string().optional()),
45
+ createdAt: core.serialization.property("created_at", core.serialization.date()),
46
+ updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
47
+ name: core.serialization.string(),
48
+ description: core.serialization.string().optional(),
49
+ vectorDbProvider: core.serialization.property("vector_db_provider", VectorDbProvider_1.VectorDbProvider.optional()),
50
+ metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
51
+ id: core.serialization.string().optional(),
52
+ });
@@ -5,6 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { JobStatus } from "./JobStatus";
8
+ import { StopReasonType } from "./StopReasonType";
8
9
  import { JobType } from "./JobType";
9
10
  export declare const BatchJob: core.serialization.ObjectSchema<serializers.BatchJob.Raw, Letta.BatchJob>;
10
11
  export declare namespace BatchJob {
@@ -15,6 +16,7 @@ export declare namespace BatchJob {
15
16
  updated_at?: string | null;
16
17
  status?: JobStatus.Raw | null;
17
18
  completed_at?: string | null;
19
+ stop_reason?: StopReasonType.Raw | null;
18
20
  metadata?: Record<string, unknown> | null;
19
21
  job_type?: JobType.Raw | null;
20
22
  callback_url?: string | null;
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.BatchJob = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const JobStatus_1 = require("./JobStatus");
42
+ const StopReasonType_1 = require("./StopReasonType");
42
43
  const JobType_1 = require("./JobType");
43
44
  exports.BatchJob = core.serialization.object({
44
45
  createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
@@ -47,6 +48,7 @@ exports.BatchJob = core.serialization.object({
47
48
  updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
48
49
  status: JobStatus_1.JobStatus.optional(),
49
50
  completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
51
+ stopReason: core.serialization.property("stop_reason", StopReasonType_1.StopReasonType.optional()),
50
52
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
51
53
  jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
52
54
  callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
@@ -5,6 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { JobStatus } from "./JobStatus";
8
+ import { StopReasonType } from "./StopReasonType";
8
9
  import { JobType } from "./JobType";
9
10
  export declare const Job: core.serialization.ObjectSchema<serializers.Job.Raw, Letta.Job>;
10
11
  export declare namespace Job {
@@ -15,6 +16,7 @@ export declare namespace Job {
15
16
  updated_at?: string | null;
16
17
  status?: JobStatus.Raw | null;
17
18
  completed_at?: string | null;
19
+ stop_reason?: StopReasonType.Raw | null;
18
20
  metadata?: Record<string, unknown> | null;
19
21
  job_type?: JobType.Raw | null;
20
22
  callback_url?: string | null;
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Job = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const JobStatus_1 = require("./JobStatus");
42
+ const StopReasonType_1 = require("./StopReasonType");
42
43
  const JobType_1 = require("./JobType");
43
44
  exports.Job = core.serialization.object({
44
45
  createdById: core.serialization.property("created_by_id", core.serialization.string().optional()),
@@ -47,6 +48,7 @@ exports.Job = core.serialization.object({
47
48
  updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
48
49
  status: JobStatus_1.JobStatus.optional(),
49
50
  completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
51
+ stopReason: core.serialization.property("stop_reason", StopReasonType_1.StopReasonType.optional()),
50
52
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
51
53
  jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
52
54
  callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
@@ -5,6 +5,7 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { JobStatus } from "./JobStatus";
8
+ import { StopReasonType } from "./StopReasonType";
8
9
  import { JobType } from "./JobType";
9
10
  import { LettaRequestConfig } from "./LettaRequestConfig";
10
11
  export declare const Run: core.serialization.ObjectSchema<serializers.Run.Raw, Letta.Run>;
@@ -16,6 +17,7 @@ export declare namespace Run {
16
17
  updated_at?: string | null;
17
18
  status?: JobStatus.Raw | null;
18
19
  completed_at?: string | null;
20
+ stop_reason?: StopReasonType.Raw | null;
19
21
  metadata?: Record<string, unknown> | null;
20
22
  job_type?: JobType.Raw | null;
21
23
  callback_url?: string | null;
@@ -39,6 +39,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Run = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const JobStatus_1 = require("./JobStatus");
42
+ const StopReasonType_1 = require("./StopReasonType");
42
43
  const JobType_1 = require("./JobType");
43
44
  const LettaRequestConfig_1 = require("./LettaRequestConfig");
44
45
  exports.Run = core.serialization.object({
@@ -48,6 +49,7 @@ exports.Run = core.serialization.object({
48
49
  updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
49
50
  status: JobStatus_1.JobStatus.optional(),
50
51
  completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
52
+ stopReason: core.serialization.property("stop_reason", StopReasonType_1.StopReasonType.optional()),
51
53
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
52
54
  jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
53
55
  callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
@@ -21,6 +21,7 @@ export * from "./ApprovalRequestMessage";
21
21
  export * from "./ApprovalResponseMessage";
22
22
  export * from "./ArchivalMemorySearchResponse";
23
23
  export * from "./ArchivalMemorySearchResult";
24
+ export * from "./Archive";
24
25
  export * from "./AssistantMessageContent";
25
26
  export * from "./AssistantMessage";
26
27
  export * from "./Audio";
@@ -37,6 +37,7 @@ __exportStar(require("./ApprovalRequestMessage"), exports);
37
37
  __exportStar(require("./ApprovalResponseMessage"), exports);
38
38
  __exportStar(require("./ArchivalMemorySearchResponse"), exports);
39
39
  __exportStar(require("./ArchivalMemorySearchResult"), exports);
40
+ __exportStar(require("./Archive"), exports);
40
41
  __exportStar(require("./AssistantMessageContent"), exports);
41
42
  __exportStar(require("./AssistantMessage"), exports);
42
43
  __exportStar(require("./Audio"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.68656";
1
+ export declare const SDK_VERSION = "0.0.68657";
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.0.68656";
4
+ exports.SDK_VERSION = "0.0.68657";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.0.68656",
3
+ "version": "0.0.68657",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -1,5 +1,206 @@
1
1
  # Reference
2
2
 
3
+ ## Archives
4
+
5
+ <details><summary><code>client.archives.<a href="/src/api/resources/archives/client/Client.ts">listArchives</a>({ ...params }) -> Letta.Archive[]</code></summary>
6
+ <dl>
7
+ <dd>
8
+
9
+ #### 📝 Description
10
+
11
+ <dl>
12
+ <dd>
13
+
14
+ <dl>
15
+ <dd>
16
+
17
+ Get a list of all archives for the current organization with optional filters and pagination.
18
+
19
+ </dd>
20
+ </dl>
21
+ </dd>
22
+ </dl>
23
+
24
+ #### 🔌 Usage
25
+
26
+ <dl>
27
+ <dd>
28
+
29
+ <dl>
30
+ <dd>
31
+
32
+ ```typescript
33
+ await client.archives.listArchives();
34
+ ```
35
+
36
+ </dd>
37
+ </dl>
38
+ </dd>
39
+ </dl>
40
+
41
+ #### ⚙️ Parameters
42
+
43
+ <dl>
44
+ <dd>
45
+
46
+ <dl>
47
+ <dd>
48
+
49
+ **request:** `Letta.ListArchivesRequest`
50
+
51
+ </dd>
52
+ </dl>
53
+
54
+ <dl>
55
+ <dd>
56
+
57
+ **requestOptions:** `Archives.RequestOptions`
58
+
59
+ </dd>
60
+ </dl>
61
+ </dd>
62
+ </dl>
63
+
64
+ </dd>
65
+ </dl>
66
+ </details>
67
+
68
+ <details><summary><code>client.archives.<a href="/src/api/resources/archives/client/Client.ts">createArchive</a>({ ...params }) -> Letta.Archive</code></summary>
69
+ <dl>
70
+ <dd>
71
+
72
+ #### 📝 Description
73
+
74
+ <dl>
75
+ <dd>
76
+
77
+ <dl>
78
+ <dd>
79
+
80
+ Create a new archive.
81
+
82
+ </dd>
83
+ </dl>
84
+ </dd>
85
+ </dl>
86
+
87
+ #### 🔌 Usage
88
+
89
+ <dl>
90
+ <dd>
91
+
92
+ <dl>
93
+ <dd>
94
+
95
+ ```typescript
96
+ await client.archives.createArchive({
97
+ name: "name",
98
+ });
99
+ ```
100
+
101
+ </dd>
102
+ </dl>
103
+ </dd>
104
+ </dl>
105
+
106
+ #### ⚙️ Parameters
107
+
108
+ <dl>
109
+ <dd>
110
+
111
+ <dl>
112
+ <dd>
113
+
114
+ **request:** `Letta.ArchiveCreateRequest`
115
+
116
+ </dd>
117
+ </dl>
118
+
119
+ <dl>
120
+ <dd>
121
+
122
+ **requestOptions:** `Archives.RequestOptions`
123
+
124
+ </dd>
125
+ </dl>
126
+ </dd>
127
+ </dl>
128
+
129
+ </dd>
130
+ </dl>
131
+ </details>
132
+
133
+ <details><summary><code>client.archives.<a href="/src/api/resources/archives/client/Client.ts">modifyArchive</a>(archiveId, { ...params }) -> Letta.Archive</code></summary>
134
+ <dl>
135
+ <dd>
136
+
137
+ #### 📝 Description
138
+
139
+ <dl>
140
+ <dd>
141
+
142
+ <dl>
143
+ <dd>
144
+
145
+ Update an existing archive's name and/or description.
146
+
147
+ </dd>
148
+ </dl>
149
+ </dd>
150
+ </dl>
151
+
152
+ #### 🔌 Usage
153
+
154
+ <dl>
155
+ <dd>
156
+
157
+ <dl>
158
+ <dd>
159
+
160
+ ```typescript
161
+ await client.archives.modifyArchive("archive_id");
162
+ ```
163
+
164
+ </dd>
165
+ </dl>
166
+ </dd>
167
+ </dl>
168
+
169
+ #### ⚙️ Parameters
170
+
171
+ <dl>
172
+ <dd>
173
+
174
+ <dl>
175
+ <dd>
176
+
177
+ **archiveId:** `string`
178
+
179
+ </dd>
180
+ </dl>
181
+
182
+ <dl>
183
+ <dd>
184
+
185
+ **request:** `Letta.ArchiveUpdateRequest`
186
+
187
+ </dd>
188
+ </dl>
189
+
190
+ <dl>
191
+ <dd>
192
+
193
+ **requestOptions:** `Archives.RequestOptions`
194
+
195
+ </dd>
196
+ </dl>
197
+ </dd>
198
+ </dl>
199
+
200
+ </dd>
201
+ </dl>
202
+ </details>
203
+
3
204
  ## Tools
4
205
 
5
206
  <details><summary><code>client.tools.<a href="/src/api/resources/tools/client/Client.ts">retrieve</a>(toolId) -> Letta.Tool</code></summary>
@@ -4254,7 +4455,6 @@ await client.blocks.modify("block_id", {});
4254
4455
  <dd>
4255
4456
 
4256
4457
  List all jobs.
4257
- TODO (cliandy): implementation for pagination
4258
4458
 
4259
4459
  </dd>
4260
4460
  </dl>
@@ -0,0 +1,2 @@
1
+ export * as listArchives from "./listArchives";
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.listArchives = void 0;
40
+ exports.listArchives = __importStar(require("./listArchives"));
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 { Archive } from "../../../types/Archive";
8
+ export declare const Response: core.serialization.Schema<serializers.archives.listArchives.Response.Raw, Letta.Archive[]>;
9
+ export declare namespace Response {
10
+ type Raw = Archive.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 Archive_1 = require("../../../types/Archive");
42
+ exports.Response = core.serialization.list(Archive_1.Archive);
@@ -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
+ export declare const ArchiveCreateRequest: core.serialization.Schema<serializers.ArchiveCreateRequest.Raw, Letta.ArchiveCreateRequest>;
8
+ export declare namespace ArchiveCreateRequest {
9
+ interface Raw {
10
+ name: string;
11
+ description?: string | null;
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.ArchiveCreateRequest = void 0;
40
+ const core = __importStar(require("../../../../../core"));
41
+ exports.ArchiveCreateRequest = core.serialization.object({
42
+ name: core.serialization.string(),
43
+ description: core.serialization.string().optional(),
44
+ });
@@ -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
+ export declare const ArchiveUpdateRequest: core.serialization.Schema<serializers.ArchiveUpdateRequest.Raw, Letta.ArchiveUpdateRequest>;
8
+ export declare namespace ArchiveUpdateRequest {
9
+ interface Raw {
10
+ name?: string | null;
11
+ description?: string | null;
12
+ }
13
+ }