@letta-ai/letta-client 0.1.124 → 0.1.126

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 (174) hide show
  1. package/api/resources/agents/client/Client.d.ts +2 -1
  2. package/api/resources/agents/client/Client.js +24 -12
  3. package/api/resources/agents/client/requests/AgentsRetrieveRequest.d.ts +13 -0
  4. package/api/resources/agents/client/requests/AgentsRetrieveRequest.js +5 -0
  5. package/api/resources/agents/client/requests/index.d.ts +1 -0
  6. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  7. package/api/resources/agents/resources/context/client/Client.js +1 -1
  8. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  9. package/api/resources/agents/resources/groups/client/Client.js +1 -1
  10. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  11. package/api/resources/agents/resources/messages/client/Client.js +6 -6
  12. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  13. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  14. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  15. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  16. package/api/resources/batches/client/Client.js +4 -4
  17. package/api/resources/blocks/client/Client.js +6 -6
  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.js +6 -6
  22. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  23. package/api/resources/health/client/Client.js +1 -1
  24. package/api/resources/identities/client/Client.js +7 -7
  25. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  26. package/api/resources/jobs/client/Client.js +4 -4
  27. package/api/resources/messages/client/Client.js +1 -1
  28. package/api/resources/models/client/Client.js +1 -1
  29. package/api/resources/projects/client/Client.js +1 -1
  30. package/api/resources/providers/client/Client.js +5 -5
  31. package/api/resources/runs/client/Client.js +4 -4
  32. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  33. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  34. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  35. package/api/resources/sources/client/Client.js +7 -7
  36. package/api/resources/sources/resources/files/client/Client.js +3 -3
  37. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  38. package/api/resources/steps/client/Client.js +2 -2
  39. package/api/resources/tags/client/Client.js +1 -1
  40. package/api/resources/telemetry/client/Client.js +1 -1
  41. package/api/resources/templates/client/Client.js +1 -1
  42. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  43. package/api/resources/tools/client/Client.js +17 -17
  44. package/api/resources/voice/client/Client.js +1 -1
  45. package/api/types/Base64Image.d.ts +12 -0
  46. package/api/types/Base64Image.js +5 -0
  47. package/api/types/ImageContent.d.ts +9 -0
  48. package/api/types/ImageContent.js +5 -0
  49. package/api/types/ImageContentSource.d.ts +8 -0
  50. package/api/types/ImageContentSource.js +5 -0
  51. package/api/types/LettaImage.d.ts +14 -0
  52. package/api/types/LettaImage.js +5 -0
  53. package/api/types/LettaMessageContentUnion.d.ts +1 -1
  54. package/api/types/LettaUserMessageContentUnion.d.ts +5 -0
  55. package/api/types/LettaUserMessageContentUnion.js +5 -0
  56. package/api/types/MessageContentItem.d.ts +1 -1
  57. package/api/types/UpdateUserMessageContent.d.ts +1 -1
  58. package/api/types/UrlImage.d.ts +8 -0
  59. package/api/types/UrlImage.js +5 -0
  60. package/api/types/UserMessageContent.d.ts +1 -1
  61. package/api/types/index.d.ts +6 -0
  62. package/api/types/index.js +6 -0
  63. package/dist/api/resources/agents/client/Client.d.ts +2 -1
  64. package/dist/api/resources/agents/client/Client.js +24 -12
  65. package/dist/api/resources/agents/client/requests/AgentsRetrieveRequest.d.ts +13 -0
  66. package/dist/api/resources/agents/client/requests/AgentsRetrieveRequest.js +5 -0
  67. package/dist/api/resources/agents/client/requests/index.d.ts +1 -0
  68. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  69. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  70. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  71. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  72. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  73. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  74. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  75. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  76. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  77. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  78. package/dist/api/resources/batches/client/Client.js +4 -4
  79. package/dist/api/resources/blocks/client/Client.js +6 -6
  80. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  81. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  82. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  83. package/dist/api/resources/groups/client/Client.js +6 -6
  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/jobs/client/Client.js +4 -4
  89. package/dist/api/resources/messages/client/Client.js +1 -1
  90. package/dist/api/resources/models/client/Client.js +1 -1
  91. package/dist/api/resources/projects/client/Client.js +1 -1
  92. package/dist/api/resources/providers/client/Client.js +5 -5
  93. package/dist/api/resources/runs/client/Client.js +4 -4
  94. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  95. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  96. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  97. package/dist/api/resources/sources/client/Client.js +7 -7
  98. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  99. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  100. package/dist/api/resources/steps/client/Client.js +2 -2
  101. package/dist/api/resources/tags/client/Client.js +1 -1
  102. package/dist/api/resources/telemetry/client/Client.js +1 -1
  103. package/dist/api/resources/templates/client/Client.js +1 -1
  104. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  105. package/dist/api/resources/tools/client/Client.js +17 -17
  106. package/dist/api/resources/voice/client/Client.js +1 -1
  107. package/dist/api/types/Base64Image.d.ts +12 -0
  108. package/dist/api/types/Base64Image.js +5 -0
  109. package/dist/api/types/ImageContent.d.ts +9 -0
  110. package/dist/api/types/ImageContent.js +5 -0
  111. package/dist/api/types/ImageContentSource.d.ts +8 -0
  112. package/dist/api/types/ImageContentSource.js +5 -0
  113. package/dist/api/types/LettaImage.d.ts +14 -0
  114. package/dist/api/types/LettaImage.js +5 -0
  115. package/dist/api/types/LettaMessageContentUnion.d.ts +1 -1
  116. package/dist/api/types/LettaUserMessageContentUnion.d.ts +5 -0
  117. package/dist/api/types/LettaUserMessageContentUnion.js +5 -0
  118. package/dist/api/types/MessageContentItem.d.ts +1 -1
  119. package/dist/api/types/UpdateUserMessageContent.d.ts +1 -1
  120. package/dist/api/types/UrlImage.d.ts +8 -0
  121. package/dist/api/types/UrlImage.js +5 -0
  122. package/dist/api/types/UserMessageContent.d.ts +1 -1
  123. package/dist/api/types/index.d.ts +6 -0
  124. package/dist/api/types/index.js +6 -0
  125. package/dist/serialization/types/Base64Image.d.ts +15 -0
  126. package/dist/serialization/types/Base64Image.js +46 -0
  127. package/dist/serialization/types/ImageContent.d.ts +14 -0
  128. package/dist/serialization/types/ImageContent.js +45 -0
  129. package/dist/serialization/types/ImageContentSource.d.ts +13 -0
  130. package/dist/serialization/types/ImageContentSource.js +44 -0
  131. package/dist/serialization/types/LettaImage.d.ts +16 -0
  132. package/dist/serialization/types/LettaImage.js +47 -0
  133. package/dist/serialization/types/LettaMessageContentUnion.d.ts +2 -1
  134. package/dist/serialization/types/LettaMessageContentUnion.js +2 -0
  135. package/dist/serialization/types/LettaUserMessageContentUnion.d.ts +12 -0
  136. package/dist/serialization/types/LettaUserMessageContentUnion.js +43 -0
  137. package/dist/serialization/types/MessageContentItem.d.ts +2 -1
  138. package/dist/serialization/types/MessageContentItem.js +2 -0
  139. package/dist/serialization/types/UpdateUserMessageContent.d.ts +2 -2
  140. package/dist/serialization/types/UpdateUserMessageContent.js +2 -2
  141. package/dist/serialization/types/UrlImage.d.ts +13 -0
  142. package/dist/serialization/types/UrlImage.js +44 -0
  143. package/dist/serialization/types/UserMessageContent.d.ts +2 -2
  144. package/dist/serialization/types/UserMessageContent.js +2 -2
  145. package/dist/serialization/types/index.d.ts +6 -0
  146. package/dist/serialization/types/index.js +6 -0
  147. package/dist/version.d.ts +1 -1
  148. package/dist/version.js +1 -1
  149. package/package.json +1 -1
  150. package/reference.md +9 -1
  151. package/serialization/types/Base64Image.d.ts +15 -0
  152. package/serialization/types/Base64Image.js +46 -0
  153. package/serialization/types/ImageContent.d.ts +14 -0
  154. package/serialization/types/ImageContent.js +45 -0
  155. package/serialization/types/ImageContentSource.d.ts +13 -0
  156. package/serialization/types/ImageContentSource.js +44 -0
  157. package/serialization/types/LettaImage.d.ts +16 -0
  158. package/serialization/types/LettaImage.js +47 -0
  159. package/serialization/types/LettaMessageContentUnion.d.ts +2 -1
  160. package/serialization/types/LettaMessageContentUnion.js +2 -0
  161. package/serialization/types/LettaUserMessageContentUnion.d.ts +12 -0
  162. package/serialization/types/LettaUserMessageContentUnion.js +43 -0
  163. package/serialization/types/MessageContentItem.d.ts +2 -1
  164. package/serialization/types/MessageContentItem.js +2 -0
  165. package/serialization/types/UpdateUserMessageContent.d.ts +2 -2
  166. package/serialization/types/UpdateUserMessageContent.js +2 -2
  167. package/serialization/types/UrlImage.d.ts +13 -0
  168. package/serialization/types/UrlImage.js +44 -0
  169. package/serialization/types/UserMessageContent.d.ts +2 -2
  170. package/serialization/types/UserMessageContent.js +2 -2
  171. package/serialization/types/index.d.ts +6 -0
  172. package/serialization/types/index.js +6 -0
  173. package/version.d.ts +1 -1
  174. package/version.js +1 -1
@@ -0,0 +1,15 @@
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 Base64Image: core.serialization.ObjectSchema<serializers.Base64Image.Raw, Letta.Base64Image>;
8
+ export declare namespace Base64Image {
9
+ interface Raw {
10
+ type: "base64";
11
+ media_type: string;
12
+ data: string;
13
+ detail?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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.Base64Image = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.Base64Image = core.serialization.object({
42
+ type: core.serialization.stringLiteral("base64"),
43
+ mediaType: core.serialization.property("media_type", core.serialization.string()),
44
+ data: core.serialization.string(),
45
+ detail: core.serialization.string().optional(),
46
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Letta from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { ImageContentSource } from "./ImageContentSource";
8
+ export declare const ImageContent: core.serialization.ObjectSchema<serializers.ImageContent.Raw, Letta.ImageContent>;
9
+ export declare namespace ImageContent {
10
+ interface Raw {
11
+ type: "image";
12
+ source: ImageContentSource.Raw;
13
+ }
14
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ImageContent = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const ImageContentSource_1 = require("./ImageContentSource");
42
+ exports.ImageContent = core.serialization.object({
43
+ type: core.serialization.stringLiteral("image"),
44
+ source: ImageContentSource_1.ImageContentSource,
45
+ });
@@ -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 { Base64Image } from "./Base64Image";
8
+ import { LettaImage } from "./LettaImage";
9
+ import { UrlImage } from "./UrlImage";
10
+ export declare const ImageContentSource: core.serialization.Schema<serializers.ImageContentSource.Raw, Letta.ImageContentSource>;
11
+ export declare namespace ImageContentSource {
12
+ type Raw = Base64Image.Raw | LettaImage.Raw | UrlImage.Raw;
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.ImageContentSource = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const Base64Image_1 = require("./Base64Image");
42
+ const LettaImage_1 = require("./LettaImage");
43
+ const UrlImage_1 = require("./UrlImage");
44
+ exports.ImageContentSource = core.serialization.undiscriminatedUnion([Base64Image_1.Base64Image, LettaImage_1.LettaImage, UrlImage_1.UrlImage]);
@@ -0,0 +1,16 @@
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 LettaImage: core.serialization.ObjectSchema<serializers.LettaImage.Raw, Letta.LettaImage>;
8
+ export declare namespace LettaImage {
9
+ interface Raw {
10
+ type: "letta";
11
+ file_id: string;
12
+ media_type?: string | null;
13
+ data?: string | null;
14
+ detail?: string | null;
15
+ }
16
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.LettaImage = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.LettaImage = core.serialization.object({
42
+ type: core.serialization.stringLiteral("letta"),
43
+ fileId: core.serialization.property("file_id", core.serialization.string()),
44
+ mediaType: core.serialization.property("media_type", core.serialization.string().optional()),
45
+ data: core.serialization.string().optional(),
46
+ detail: core.serialization.string().optional(),
47
+ });
@@ -5,11 +5,12 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { TextContent } from "./TextContent";
8
+ import { ImageContent } from "./ImageContent";
8
9
  import { ToolCallContent } from "./ToolCallContent";
9
10
  import { ReasoningContent } from "./ReasoningContent";
10
11
  import { RedactedReasoningContent } from "./RedactedReasoningContent";
11
12
  import { OmittedReasoningContent } from "./OmittedReasoningContent";
12
13
  export declare const LettaMessageContentUnion: core.serialization.Schema<serializers.LettaMessageContentUnion.Raw, Letta.LettaMessageContentUnion>;
13
14
  export declare namespace LettaMessageContentUnion {
14
- type Raw = TextContent.Raw | ToolCallContent.Raw | ReasoningContent.Raw | RedactedReasoningContent.Raw | OmittedReasoningContent.Raw;
15
+ type Raw = TextContent.Raw | ImageContent.Raw | ToolCallContent.Raw | ReasoningContent.Raw | RedactedReasoningContent.Raw | OmittedReasoningContent.Raw;
15
16
  }
@@ -39,12 +39,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.LettaMessageContentUnion = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const TextContent_1 = require("./TextContent");
42
+ const ImageContent_1 = require("./ImageContent");
42
43
  const ToolCallContent_1 = require("./ToolCallContent");
43
44
  const ReasoningContent_1 = require("./ReasoningContent");
44
45
  const RedactedReasoningContent_1 = require("./RedactedReasoningContent");
45
46
  const OmittedReasoningContent_1 = require("./OmittedReasoningContent");
46
47
  exports.LettaMessageContentUnion = core.serialization.undiscriminatedUnion([
47
48
  TextContent_1.TextContent,
49
+ ImageContent_1.ImageContent,
48
50
  ToolCallContent_1.ToolCallContent,
49
51
  ReasoningContent_1.ReasoningContent,
50
52
  RedactedReasoningContent_1.RedactedReasoningContent,
@@ -0,0 +1,12 @@
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 { TextContent } from "./TextContent";
8
+ import { ImageContent } from "./ImageContent";
9
+ export declare const LettaUserMessageContentUnion: core.serialization.Schema<serializers.LettaUserMessageContentUnion.Raw, Letta.LettaUserMessageContentUnion>;
10
+ export declare namespace LettaUserMessageContentUnion {
11
+ type Raw = TextContent.Raw | ImageContent.Raw;
12
+ }
@@ -0,0 +1,43 @@
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.LettaUserMessageContentUnion = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const TextContent_1 = require("./TextContent");
42
+ const ImageContent_1 = require("./ImageContent");
43
+ exports.LettaUserMessageContentUnion = core.serialization.undiscriminatedUnion([TextContent_1.TextContent, ImageContent_1.ImageContent]);
@@ -4,6 +4,7 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { ImageContent } from "./ImageContent";
7
8
  import { OmittedReasoningContent } from "./OmittedReasoningContent";
8
9
  import { ReasoningContent } from "./ReasoningContent";
9
10
  import { RedactedReasoningContent } from "./RedactedReasoningContent";
@@ -12,5 +13,5 @@ import { ToolCallContent } from "./ToolCallContent";
12
13
  import { ToolReturnContent } from "./ToolReturnContent";
13
14
  export declare const MessageContentItem: core.serialization.Schema<serializers.MessageContentItem.Raw, Letta.MessageContentItem>;
14
15
  export declare namespace MessageContentItem {
15
- type Raw = OmittedReasoningContent.Raw | ReasoningContent.Raw | RedactedReasoningContent.Raw | TextContent.Raw | ToolCallContent.Raw | ToolReturnContent.Raw;
16
+ type Raw = ImageContent.Raw | OmittedReasoningContent.Raw | ReasoningContent.Raw | RedactedReasoningContent.Raw | TextContent.Raw | ToolCallContent.Raw | ToolReturnContent.Raw;
16
17
  }
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.MessageContentItem = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const ImageContent_1 = require("./ImageContent");
41
42
  const OmittedReasoningContent_1 = require("./OmittedReasoningContent");
42
43
  const ReasoningContent_1 = require("./ReasoningContent");
43
44
  const RedactedReasoningContent_1 = require("./RedactedReasoningContent");
@@ -45,6 +46,7 @@ const TextContent_1 = require("./TextContent");
45
46
  const ToolCallContent_1 = require("./ToolCallContent");
46
47
  const ToolReturnContent_1 = require("./ToolReturnContent");
47
48
  exports.MessageContentItem = core.serialization.undiscriminatedUnion([
49
+ ImageContent_1.ImageContent,
48
50
  OmittedReasoningContent_1.OmittedReasoningContent,
49
51
  ReasoningContent_1.ReasoningContent,
50
52
  RedactedReasoningContent_1.RedactedReasoningContent,
@@ -4,8 +4,8 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { ComponentsSchemasTextContent } from "./ComponentsSchemasTextContent";
7
+ import { LettaUserMessageContentUnion } from "./LettaUserMessageContentUnion";
8
8
  export declare const UpdateUserMessageContent: core.serialization.Schema<serializers.UpdateUserMessageContent.Raw, Letta.UpdateUserMessageContent>;
9
9
  export declare namespace UpdateUserMessageContent {
10
- type Raw = ComponentsSchemasTextContent.Raw[] | string;
10
+ type Raw = LettaUserMessageContentUnion.Raw[] | string;
11
11
  }
@@ -38,8 +38,8 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.UpdateUserMessageContent = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- const ComponentsSchemasTextContent_1 = require("./ComponentsSchemasTextContent");
41
+ const LettaUserMessageContentUnion_1 = require("./LettaUserMessageContentUnion");
42
42
  exports.UpdateUserMessageContent = core.serialization.undiscriminatedUnion([
43
- core.serialization.list(ComponentsSchemasTextContent_1.ComponentsSchemasTextContent),
43
+ core.serialization.list(LettaUserMessageContentUnion_1.LettaUserMessageContentUnion),
44
44
  core.serialization.string(),
45
45
  ]);
@@ -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 UrlImage: core.serialization.ObjectSchema<serializers.UrlImage.Raw, Letta.UrlImage>;
8
+ export declare namespace UrlImage {
9
+ interface Raw {
10
+ type: "url";
11
+ url: string;
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.UrlImage = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.UrlImage = core.serialization.object({
42
+ type: core.serialization.stringLiteral("url"),
43
+ url: core.serialization.string(),
44
+ });
@@ -4,8 +4,8 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
- import { ComponentsSchemasTextContent } from "./ComponentsSchemasTextContent";
7
+ import { LettaUserMessageContentUnion } from "./LettaUserMessageContentUnion";
8
8
  export declare const UserMessageContent: core.serialization.Schema<serializers.UserMessageContent.Raw, Letta.UserMessageContent>;
9
9
  export declare namespace UserMessageContent {
10
- type Raw = ComponentsSchemasTextContent.Raw[] | string;
10
+ type Raw = LettaUserMessageContentUnion.Raw[] | string;
11
11
  }
@@ -38,8 +38,8 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.UserMessageContent = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- const ComponentsSchemasTextContent_1 = require("./ComponentsSchemasTextContent");
41
+ const LettaUserMessageContentUnion_1 = require("./LettaUserMessageContentUnion");
42
42
  exports.UserMessageContent = core.serialization.undiscriminatedUnion([
43
- core.serialization.list(ComponentsSchemasTextContent_1.ComponentsSchemasTextContent),
43
+ core.serialization.list(LettaUserMessageContentUnion_1.LettaUserMessageContentUnion),
44
44
  core.serialization.string(),
45
45
  ]);
@@ -23,6 +23,7 @@ export * from "./Audio";
23
23
  export * from "./AuthRequest";
24
24
  export * from "./AuthResponse";
25
25
  export * from "./AuthSchemeField";
26
+ export * from "./Base64Image";
26
27
  export * from "./BaseToolRuleSchema";
27
28
  export * from "./BatchJob";
28
29
  export * from "./Block";
@@ -107,6 +108,8 @@ export * from "./IdentityPropertyValue";
107
108
  export * from "./IdentityProperty";
108
109
  export * from "./IdentityPropertyType";
109
110
  export * from "./IdentityType";
111
+ export * from "./ImageContentSource";
112
+ export * from "./ImageContent";
110
113
  export * from "./ImageUrlDetail";
111
114
  export * from "./ImageUrl";
112
115
  export * from "./InitToolRule";
@@ -123,6 +126,7 @@ export * from "./LlmConfigReasoningEffort";
123
126
  export * from "./LlmConfig";
124
127
  export * from "./LettaBatchMessages";
125
128
  export * from "./LettaBatchRequest";
129
+ export * from "./LettaImage";
126
130
  export * from "./LettaRequest";
127
131
  export * from "./LettaRequestConfig";
128
132
  export * from "./LettaResponse";
@@ -210,6 +214,7 @@ export * from "./UpdateReasoningMessage";
210
214
  export * from "./UpdateSystemMessage";
211
215
  export * from "./UpdateUserMessageContent";
212
216
  export * from "./UpdateUserMessage";
217
+ export * from "./UrlImage";
213
218
  export * from "./UsageStatistics";
214
219
  export * from "./UsageStatisticsCompletionTokenDetails";
215
220
  export * from "./UsageStatisticsPromptTokenDetails";
@@ -232,3 +237,4 @@ export * from "./OpenaiTypesChatCompletionCreateParamsFunction";
232
237
  export * from "./LettaMessageUnion";
233
238
  export * from "./LettaMessageContentUnion";
234
239
  export * from "./ComponentsSchemasTextContent";
240
+ export * from "./LettaUserMessageContentUnion";
@@ -39,6 +39,7 @@ __exportStar(require("./Audio"), exports);
39
39
  __exportStar(require("./AuthRequest"), exports);
40
40
  __exportStar(require("./AuthResponse"), exports);
41
41
  __exportStar(require("./AuthSchemeField"), exports);
42
+ __exportStar(require("./Base64Image"), exports);
42
43
  __exportStar(require("./BaseToolRuleSchema"), exports);
43
44
  __exportStar(require("./BatchJob"), exports);
44
45
  __exportStar(require("./Block"), exports);
@@ -123,6 +124,8 @@ __exportStar(require("./IdentityPropertyValue"), exports);
123
124
  __exportStar(require("./IdentityProperty"), exports);
124
125
  __exportStar(require("./IdentityPropertyType"), exports);
125
126
  __exportStar(require("./IdentityType"), exports);
127
+ __exportStar(require("./ImageContentSource"), exports);
128
+ __exportStar(require("./ImageContent"), exports);
126
129
  __exportStar(require("./ImageUrlDetail"), exports);
127
130
  __exportStar(require("./ImageUrl"), exports);
128
131
  __exportStar(require("./InitToolRule"), exports);
@@ -139,6 +142,7 @@ __exportStar(require("./LlmConfigReasoningEffort"), exports);
139
142
  __exportStar(require("./LlmConfig"), exports);
140
143
  __exportStar(require("./LettaBatchMessages"), exports);
141
144
  __exportStar(require("./LettaBatchRequest"), exports);
145
+ __exportStar(require("./LettaImage"), exports);
142
146
  __exportStar(require("./LettaRequest"), exports);
143
147
  __exportStar(require("./LettaRequestConfig"), exports);
144
148
  __exportStar(require("./LettaResponse"), exports);
@@ -226,6 +230,7 @@ __exportStar(require("./UpdateReasoningMessage"), exports);
226
230
  __exportStar(require("./UpdateSystemMessage"), exports);
227
231
  __exportStar(require("./UpdateUserMessageContent"), exports);
228
232
  __exportStar(require("./UpdateUserMessage"), exports);
233
+ __exportStar(require("./UrlImage"), exports);
229
234
  __exportStar(require("./UsageStatistics"), exports);
230
235
  __exportStar(require("./UsageStatisticsCompletionTokenDetails"), exports);
231
236
  __exportStar(require("./UsageStatisticsPromptTokenDetails"), exports);
@@ -248,3 +253,4 @@ __exportStar(require("./OpenaiTypesChatCompletionCreateParamsFunction"), exports
248
253
  __exportStar(require("./LettaMessageUnion"), exports);
249
254
  __exportStar(require("./LettaMessageContentUnion"), exports);
250
255
  __exportStar(require("./ComponentsSchemasTextContent"), exports);
256
+ __exportStar(require("./LettaUserMessageContentUnion"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.124";
1
+ export declare const SDK_VERSION = "0.1.126";
package/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.124";
4
+ exports.SDK_VERSION = "0.1.126";