@letta-ai/letta-client 0.1.94 → 0.1.95

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 (127) hide show
  1. package/api/resources/agents/client/Client.js +11 -11
  2. package/api/resources/agents/resources/blocks/client/Client.js +5 -5
  3. package/api/resources/agents/resources/context/client/Client.js +1 -1
  4. package/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  5. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  6. package/api/resources/agents/resources/messages/client/Client.js +5 -5
  7. package/api/resources/agents/resources/passages/client/Client.js +3 -3
  8. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  9. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  10. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  11. package/api/resources/blocks/client/Client.js +6 -6
  12. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  13. package/api/resources/groups/client/Client.js +6 -6
  14. package/api/resources/groups/resources/messages/client/Client.js +4 -4
  15. package/api/resources/health/client/Client.js +1 -1
  16. package/api/resources/identities/client/Client.js +7 -7
  17. package/api/resources/jobs/client/Client.js +4 -4
  18. package/api/resources/messages/client/Client.js +1 -1
  19. package/api/resources/messages/resources/batches/client/Client.js +4 -4
  20. package/api/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +2 -0
  21. package/api/resources/models/client/Client.js +2 -2
  22. package/api/resources/projects/client/Client.js +1 -1
  23. package/api/resources/providers/client/Client.js +4 -4
  24. package/api/resources/runs/client/Client.js +7 -7
  25. package/api/resources/sources/client/Client.js +6 -6
  26. package/api/resources/sources/resources/files/client/Client.js +3 -3
  27. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  28. package/api/resources/steps/client/Client.js +2 -2
  29. package/api/resources/tag/client/Client.js +1 -1
  30. package/api/resources/templates/client/Client.js +2 -2
  31. package/api/resources/tools/client/Client.js +16 -16
  32. package/api/resources/voice/client/Client.js +1 -1
  33. package/api/types/BatchJob.d.ts +6 -0
  34. package/api/types/ChatCompletionAudioParamFormat.d.ts +2 -1
  35. package/api/types/ChatCompletionAudioParamFormat.js +1 -0
  36. package/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  37. package/api/types/CompletionCreateParamsNonStreamingServiceTier.d.ts +2 -1
  38. package/api/types/CompletionCreateParamsNonStreamingServiceTier.js +1 -0
  39. package/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  40. package/api/types/CompletionCreateParamsStreamingServiceTier.d.ts +2 -1
  41. package/api/types/CompletionCreateParamsStreamingServiceTier.js +1 -0
  42. package/api/types/Job.d.ts +6 -0
  43. package/api/types/Run.d.ts +6 -0
  44. package/dist/api/resources/agents/client/Client.js +11 -11
  45. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  46. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  47. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  48. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  49. package/dist/api/resources/agents/resources/messages/client/Client.js +5 -5
  50. package/dist/api/resources/agents/resources/passages/client/Client.js +3 -3
  51. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  52. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  53. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  54. package/dist/api/resources/blocks/client/Client.js +6 -6
  55. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  56. package/dist/api/resources/groups/client/Client.js +6 -6
  57. package/dist/api/resources/groups/resources/messages/client/Client.js +4 -4
  58. package/dist/api/resources/health/client/Client.js +1 -1
  59. package/dist/api/resources/identities/client/Client.js +7 -7
  60. package/dist/api/resources/jobs/client/Client.js +4 -4
  61. package/dist/api/resources/messages/client/Client.js +1 -1
  62. package/dist/api/resources/messages/resources/batches/client/Client.js +4 -4
  63. package/dist/api/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +2 -0
  64. package/dist/api/resources/models/client/Client.js +2 -2
  65. package/dist/api/resources/projects/client/Client.js +1 -1
  66. package/dist/api/resources/providers/client/Client.js +4 -4
  67. package/dist/api/resources/runs/client/Client.js +7 -7
  68. package/dist/api/resources/sources/client/Client.js +6 -6
  69. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  70. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  71. package/dist/api/resources/steps/client/Client.js +2 -2
  72. package/dist/api/resources/tag/client/Client.js +1 -1
  73. package/dist/api/resources/templates/client/Client.js +2 -2
  74. package/dist/api/resources/tools/client/Client.js +16 -16
  75. package/dist/api/resources/voice/client/Client.js +1 -1
  76. package/dist/api/types/BatchJob.d.ts +6 -0
  77. package/dist/api/types/ChatCompletionAudioParamFormat.d.ts +2 -1
  78. package/dist/api/types/ChatCompletionAudioParamFormat.js +1 -0
  79. package/dist/api/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  80. package/dist/api/types/CompletionCreateParamsNonStreamingServiceTier.d.ts +2 -1
  81. package/dist/api/types/CompletionCreateParamsNonStreamingServiceTier.js +1 -0
  82. package/dist/api/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  83. package/dist/api/types/CompletionCreateParamsStreamingServiceTier.d.ts +2 -1
  84. package/dist/api/types/CompletionCreateParamsStreamingServiceTier.js +1 -0
  85. package/dist/api/types/Job.d.ts +6 -0
  86. package/dist/api/types/Run.d.ts +6 -0
  87. package/dist/serialization/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +1 -0
  88. package/dist/serialization/resources/messages/resources/batches/client/requests/CreateBatch.js +1 -0
  89. package/dist/serialization/types/BatchJob.d.ts +3 -0
  90. package/dist/serialization/types/BatchJob.js +3 -0
  91. package/dist/serialization/types/ChatCompletionAudioParamFormat.d.ts +1 -1
  92. package/dist/serialization/types/ChatCompletionAudioParamFormat.js +1 -1
  93. package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  94. package/dist/serialization/types/CompletionCreateParamsNonStreamingModel.js +10 -0
  95. package/dist/serialization/types/CompletionCreateParamsNonStreamingServiceTier.d.ts +1 -1
  96. package/dist/serialization/types/CompletionCreateParamsNonStreamingServiceTier.js +1 -1
  97. package/dist/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  98. package/dist/serialization/types/CompletionCreateParamsStreamingModel.js +10 -0
  99. package/dist/serialization/types/CompletionCreateParamsStreamingServiceTier.d.ts +1 -1
  100. package/dist/serialization/types/CompletionCreateParamsStreamingServiceTier.js +1 -1
  101. package/dist/serialization/types/Job.d.ts +3 -0
  102. package/dist/serialization/types/Job.js +3 -0
  103. package/dist/serialization/types/Run.d.ts +3 -0
  104. package/dist/serialization/types/Run.js +3 -0
  105. package/dist/version.d.ts +1 -1
  106. package/dist/version.js +1 -1
  107. package/package.json +1 -1
  108. package/serialization/resources/messages/resources/batches/client/requests/CreateBatch.d.ts +1 -0
  109. package/serialization/resources/messages/resources/batches/client/requests/CreateBatch.js +1 -0
  110. package/serialization/types/BatchJob.d.ts +3 -0
  111. package/serialization/types/BatchJob.js +3 -0
  112. package/serialization/types/ChatCompletionAudioParamFormat.d.ts +1 -1
  113. package/serialization/types/ChatCompletionAudioParamFormat.js +1 -1
  114. package/serialization/types/CompletionCreateParamsNonStreamingModel.d.ts +1 -1
  115. package/serialization/types/CompletionCreateParamsNonStreamingModel.js +10 -0
  116. package/serialization/types/CompletionCreateParamsNonStreamingServiceTier.d.ts +1 -1
  117. package/serialization/types/CompletionCreateParamsNonStreamingServiceTier.js +1 -1
  118. package/serialization/types/CompletionCreateParamsStreamingModel.d.ts +1 -1
  119. package/serialization/types/CompletionCreateParamsStreamingModel.js +10 -0
  120. package/serialization/types/CompletionCreateParamsStreamingServiceTier.d.ts +1 -1
  121. package/serialization/types/CompletionCreateParamsStreamingServiceTier.js +1 -1
  122. package/serialization/types/Job.d.ts +3 -0
  123. package/serialization/types/Job.js +3 -0
  124. package/serialization/types/Run.d.ts +3 -0
  125. package/serialization/types/Run.js +3 -0
  126. package/version.d.ts +1 -1
  127. package/version.js +1 -1
@@ -29,6 +29,12 @@ export interface Job {
29
29
  metadata?: Record<string, unknown>;
30
30
  /** The type of the job. */
31
31
  jobType?: Letta.JobType;
32
+ /** If set, POST to this URL when the job completes. */
33
+ callbackUrl?: string;
34
+ /** Timestamp when the callback was last attempted. */
35
+ callbackSentAt?: Date;
36
+ /** HTTP status code returned by the callback endpoint. */
37
+ callbackStatusCode?: number;
32
38
  /** The human-friendly ID of the Job */
33
39
  id?: string;
34
40
  }
@@ -29,6 +29,12 @@ export interface Run {
29
29
  /** The metadata of the job. */
30
30
  metadata?: Record<string, unknown>;
31
31
  jobType?: Letta.JobType;
32
+ /** If set, POST to this URL when the job completes. */
33
+ callbackUrl?: string;
34
+ /** Timestamp when the callback was last attempted. */
35
+ callbackSentAt?: Date;
36
+ /** HTTP status code returned by the callback endpoint. */
37
+ callbackStatusCode?: number;
32
38
  /** The human-friendly ID of the Run */
33
39
  id?: string;
34
40
  /** The request configuration for the run. */
@@ -9,5 +9,6 @@ export declare const CreateBatch: core.serialization.Schema<serializers.messages
9
9
  export declare namespace CreateBatch {
10
10
  interface Raw {
11
11
  requests: LettaBatchRequest.Raw[];
12
+ callback_url?: string | null;
12
13
  }
13
14
  }
@@ -41,4 +41,5 @@ const core = __importStar(require("../../../../../../../core"));
41
41
  const LettaBatchRequest_1 = require("../../../../../../types/LettaBatchRequest");
42
42
  exports.CreateBatch = core.serialization.object({
43
43
  requests: core.serialization.list(LettaBatchRequest_1.LettaBatchRequest),
44
+ callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
44
45
  });
@@ -17,6 +17,9 @@ export declare namespace BatchJob {
17
17
  completed_at?: string | null;
18
18
  metadata?: Record<string, unknown> | null;
19
19
  job_type?: JobType.Raw | null;
20
+ callback_url?: string | null;
21
+ callback_sent_at?: string | null;
22
+ callback_status_code?: number | null;
20
23
  id?: string | null;
21
24
  }
22
25
  }
@@ -49,5 +49,8 @@ exports.BatchJob = core.serialization.object({
49
49
  completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
50
50
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
51
51
  jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
52
+ callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
53
+ callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
54
+ callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
52
55
  id: core.serialization.string().optional(),
53
56
  });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ChatCompletionAudioParamFormat: core.serialization.Schema<serializers.ChatCompletionAudioParamFormat.Raw, Letta.ChatCompletionAudioParamFormat>;
8
8
  export declare namespace ChatCompletionAudioParamFormat {
9
- type Raw = "wav" | "mp3" | "flac" | "opus" | "pcm16";
9
+ type Raw = "wav" | "aac" | "mp3" | "flac" | "opus" | "pcm16";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ChatCompletionAudioParamFormat = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.ChatCompletionAudioParamFormat = core.serialization.enum_(["wav", "mp3", "flac", "opus", "pcm16"]);
41
+ exports.ChatCompletionAudioParamFormat = core.serialization.enum_(["wav", "aac", "mp3", "flac", "opus", "pcm16"]);
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsNonStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsNonStreamingModel.Raw, Letta.CompletionCreateParamsNonStreamingModel>;
8
8
  export declare namespace CompletionCreateParamsNonStreamingModel {
9
- type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
9
+ type Raw = string | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "o4-mini" | "o4-mini-2025-04-16" | "o3" | "o3-2025-04-16" | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
10
10
  }
@@ -40,6 +40,16 @@ exports.CompletionCreateParamsNonStreamingModel = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.CompletionCreateParamsNonStreamingModel = core.serialization.undiscriminatedUnion([
42
42
  core.serialization.string(),
43
+ core.serialization.stringLiteral("gpt-4.1"),
44
+ core.serialization.stringLiteral("gpt-4.1-mini"),
45
+ core.serialization.stringLiteral("gpt-4.1-nano"),
46
+ core.serialization.stringLiteral("gpt-4.1-2025-04-14"),
47
+ core.serialization.stringLiteral("gpt-4.1-mini-2025-04-14"),
48
+ core.serialization.stringLiteral("gpt-4.1-nano-2025-04-14"),
49
+ core.serialization.stringLiteral("o4-mini"),
50
+ core.serialization.stringLiteral("o4-mini-2025-04-16"),
51
+ core.serialization.stringLiteral("o3"),
52
+ core.serialization.stringLiteral("o3-2025-04-16"),
43
53
  core.serialization.stringLiteral("o3-mini"),
44
54
  core.serialization.stringLiteral("o3-mini-2025-01-31"),
45
55
  core.serialization.stringLiteral("o1"),
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsNonStreamingServiceTier: core.serialization.Schema<serializers.CompletionCreateParamsNonStreamingServiceTier.Raw, Letta.CompletionCreateParamsNonStreamingServiceTier>;
8
8
  export declare namespace CompletionCreateParamsNonStreamingServiceTier {
9
- type Raw = "auto" | "default";
9
+ type Raw = "auto" | "default" | "flex";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CompletionCreateParamsNonStreamingServiceTier = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.CompletionCreateParamsNonStreamingServiceTier = core.serialization.enum_(["auto", "default"]);
41
+ exports.CompletionCreateParamsNonStreamingServiceTier = core.serialization.enum_(["auto", "default", "flex"]);
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsStreamingModel.Raw, Letta.CompletionCreateParamsStreamingModel>;
8
8
  export declare namespace CompletionCreateParamsStreamingModel {
9
- type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
9
+ type Raw = string | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "o4-mini" | "o4-mini-2025-04-16" | "o3" | "o3-2025-04-16" | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
10
10
  }
@@ -40,6 +40,16 @@ exports.CompletionCreateParamsStreamingModel = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.CompletionCreateParamsStreamingModel = core.serialization.undiscriminatedUnion([
42
42
  core.serialization.string(),
43
+ core.serialization.stringLiteral("gpt-4.1"),
44
+ core.serialization.stringLiteral("gpt-4.1-mini"),
45
+ core.serialization.stringLiteral("gpt-4.1-nano"),
46
+ core.serialization.stringLiteral("gpt-4.1-2025-04-14"),
47
+ core.serialization.stringLiteral("gpt-4.1-mini-2025-04-14"),
48
+ core.serialization.stringLiteral("gpt-4.1-nano-2025-04-14"),
49
+ core.serialization.stringLiteral("o4-mini"),
50
+ core.serialization.stringLiteral("o4-mini-2025-04-16"),
51
+ core.serialization.stringLiteral("o3"),
52
+ core.serialization.stringLiteral("o3-2025-04-16"),
43
53
  core.serialization.stringLiteral("o3-mini"),
44
54
  core.serialization.stringLiteral("o3-mini-2025-01-31"),
45
55
  core.serialization.stringLiteral("o1"),
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsStreamingServiceTier: core.serialization.Schema<serializers.CompletionCreateParamsStreamingServiceTier.Raw, Letta.CompletionCreateParamsStreamingServiceTier>;
8
8
  export declare namespace CompletionCreateParamsStreamingServiceTier {
9
- type Raw = "auto" | "default";
9
+ type Raw = "auto" | "default" | "flex";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CompletionCreateParamsStreamingServiceTier = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.CompletionCreateParamsStreamingServiceTier = core.serialization.enum_(["auto", "default"]);
41
+ exports.CompletionCreateParamsStreamingServiceTier = core.serialization.enum_(["auto", "default", "flex"]);
@@ -17,6 +17,9 @@ export declare namespace Job {
17
17
  completed_at?: string | null;
18
18
  metadata?: Record<string, unknown> | null;
19
19
  job_type?: JobType.Raw | null;
20
+ callback_url?: string | null;
21
+ callback_sent_at?: string | null;
22
+ callback_status_code?: number | null;
20
23
  id?: string | null;
21
24
  }
22
25
  }
@@ -49,5 +49,8 @@ exports.Job = core.serialization.object({
49
49
  completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
50
50
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
51
51
  jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
52
+ callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
53
+ callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
54
+ callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
52
55
  id: core.serialization.string().optional(),
53
56
  });
@@ -18,6 +18,9 @@ export declare namespace Run {
18
18
  completed_at?: string | null;
19
19
  metadata?: Record<string, unknown> | null;
20
20
  job_type?: JobType.Raw | null;
21
+ callback_url?: string | null;
22
+ callback_sent_at?: string | null;
23
+ callback_status_code?: number | null;
21
24
  id?: string | null;
22
25
  request_config?: LettaRequestConfig.Raw | null;
23
26
  }
@@ -50,6 +50,9 @@ exports.Run = core.serialization.object({
50
50
  completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
51
51
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
52
52
  jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
53
+ callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
54
+ callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
55
+ callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
53
56
  id: core.serialization.string().optional(),
54
57
  requestConfig: core.serialization.property("request_config", LettaRequestConfig_1.LettaRequestConfig.optional()),
55
58
  });
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.94";
1
+ export declare const SDK_VERSION = "0.1.95";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.94";
4
+ exports.SDK_VERSION = "0.1.95";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.94",
3
+ "version": "0.1.95",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
@@ -9,5 +9,6 @@ export declare const CreateBatch: core.serialization.Schema<serializers.messages
9
9
  export declare namespace CreateBatch {
10
10
  interface Raw {
11
11
  requests: LettaBatchRequest.Raw[];
12
+ callback_url?: string | null;
12
13
  }
13
14
  }
@@ -41,4 +41,5 @@ const core = __importStar(require("../../../../../../../core"));
41
41
  const LettaBatchRequest_1 = require("../../../../../../types/LettaBatchRequest");
42
42
  exports.CreateBatch = core.serialization.object({
43
43
  requests: core.serialization.list(LettaBatchRequest_1.LettaBatchRequest),
44
+ callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
44
45
  });
@@ -17,6 +17,9 @@ export declare namespace BatchJob {
17
17
  completed_at?: string | null;
18
18
  metadata?: Record<string, unknown> | null;
19
19
  job_type?: JobType.Raw | null;
20
+ callback_url?: string | null;
21
+ callback_sent_at?: string | null;
22
+ callback_status_code?: number | null;
20
23
  id?: string | null;
21
24
  }
22
25
  }
@@ -49,5 +49,8 @@ exports.BatchJob = core.serialization.object({
49
49
  completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
50
50
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
51
51
  jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
52
+ callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
53
+ callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
54
+ callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
52
55
  id: core.serialization.string().optional(),
53
56
  });
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ChatCompletionAudioParamFormat: core.serialization.Schema<serializers.ChatCompletionAudioParamFormat.Raw, Letta.ChatCompletionAudioParamFormat>;
8
8
  export declare namespace ChatCompletionAudioParamFormat {
9
- type Raw = "wav" | "mp3" | "flac" | "opus" | "pcm16";
9
+ type Raw = "wav" | "aac" | "mp3" | "flac" | "opus" | "pcm16";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ChatCompletionAudioParamFormat = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.ChatCompletionAudioParamFormat = core.serialization.enum_(["wav", "mp3", "flac", "opus", "pcm16"]);
41
+ exports.ChatCompletionAudioParamFormat = core.serialization.enum_(["wav", "aac", "mp3", "flac", "opus", "pcm16"]);
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsNonStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsNonStreamingModel.Raw, Letta.CompletionCreateParamsNonStreamingModel>;
8
8
  export declare namespace CompletionCreateParamsNonStreamingModel {
9
- type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
9
+ type Raw = string | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "o4-mini" | "o4-mini-2025-04-16" | "o3" | "o3-2025-04-16" | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
10
10
  }
@@ -40,6 +40,16 @@ exports.CompletionCreateParamsNonStreamingModel = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.CompletionCreateParamsNonStreamingModel = core.serialization.undiscriminatedUnion([
42
42
  core.serialization.string(),
43
+ core.serialization.stringLiteral("gpt-4.1"),
44
+ core.serialization.stringLiteral("gpt-4.1-mini"),
45
+ core.serialization.stringLiteral("gpt-4.1-nano"),
46
+ core.serialization.stringLiteral("gpt-4.1-2025-04-14"),
47
+ core.serialization.stringLiteral("gpt-4.1-mini-2025-04-14"),
48
+ core.serialization.stringLiteral("gpt-4.1-nano-2025-04-14"),
49
+ core.serialization.stringLiteral("o4-mini"),
50
+ core.serialization.stringLiteral("o4-mini-2025-04-16"),
51
+ core.serialization.stringLiteral("o3"),
52
+ core.serialization.stringLiteral("o3-2025-04-16"),
43
53
  core.serialization.stringLiteral("o3-mini"),
44
54
  core.serialization.stringLiteral("o3-mini-2025-01-31"),
45
55
  core.serialization.stringLiteral("o1"),
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsNonStreamingServiceTier: core.serialization.Schema<serializers.CompletionCreateParamsNonStreamingServiceTier.Raw, Letta.CompletionCreateParamsNonStreamingServiceTier>;
8
8
  export declare namespace CompletionCreateParamsNonStreamingServiceTier {
9
- type Raw = "auto" | "default";
9
+ type Raw = "auto" | "default" | "flex";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CompletionCreateParamsNonStreamingServiceTier = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.CompletionCreateParamsNonStreamingServiceTier = core.serialization.enum_(["auto", "default"]);
41
+ exports.CompletionCreateParamsNonStreamingServiceTier = core.serialization.enum_(["auto", "default", "flex"]);
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsStreamingModel: core.serialization.Schema<serializers.CompletionCreateParamsStreamingModel.Raw, Letta.CompletionCreateParamsStreamingModel>;
8
8
  export declare namespace CompletionCreateParamsStreamingModel {
9
- type Raw = string | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
9
+ type Raw = string | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4.1-2025-04-14" | "gpt-4.1-mini-2025-04-14" | "gpt-4.1-nano-2025-04-14" | "o4-mini" | "o4-mini-2025-04-16" | "o3" | "o3-2025-04-16" | "o3-mini" | "o3-mini-2025-01-31" | "o1" | "o1-2024-12-17" | "o1-preview" | "o1-preview-2024-09-12" | "o1-mini" | "o1-mini-2024-09-12" | "gpt-4o" | "gpt-4o-2024-11-20" | "gpt-4o-2024-08-06" | "gpt-4o-2024-05-13" | "gpt-4o-audio-preview" | "gpt-4o-audio-preview-2024-10-01" | "gpt-4o-audio-preview-2024-12-17" | "gpt-4o-mini-audio-preview" | "gpt-4o-mini-audio-preview-2024-12-17" | "gpt-4o-search-preview" | "gpt-4o-mini-search-preview" | "gpt-4o-search-preview-2025-03-11" | "gpt-4o-mini-search-preview-2025-03-11" | "chatgpt-4o-latest" | "gpt-4o-mini" | "gpt-4o-mini-2024-07-18" | "gpt-4-turbo" | "gpt-4-turbo-2024-04-09" | "gpt-4-0125-preview" | "gpt-4-turbo-preview" | "gpt-4-1106-preview" | "gpt-4-vision-preview" | "gpt-4" | "gpt-4-0314" | "gpt-4-0613" | "gpt-4-32k" | "gpt-4-32k-0314" | "gpt-4-32k-0613" | "gpt-3.5-turbo" | "gpt-3.5-turbo-16k" | "gpt-3.5-turbo-0301" | "gpt-3.5-turbo-0613" | "gpt-3.5-turbo-1106" | "gpt-3.5-turbo-0125" | "gpt-3.5-turbo-16k-0613";
10
10
  }
@@ -40,6 +40,16 @@ exports.CompletionCreateParamsStreamingModel = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.CompletionCreateParamsStreamingModel = core.serialization.undiscriminatedUnion([
42
42
  core.serialization.string(),
43
+ core.serialization.stringLiteral("gpt-4.1"),
44
+ core.serialization.stringLiteral("gpt-4.1-mini"),
45
+ core.serialization.stringLiteral("gpt-4.1-nano"),
46
+ core.serialization.stringLiteral("gpt-4.1-2025-04-14"),
47
+ core.serialization.stringLiteral("gpt-4.1-mini-2025-04-14"),
48
+ core.serialization.stringLiteral("gpt-4.1-nano-2025-04-14"),
49
+ core.serialization.stringLiteral("o4-mini"),
50
+ core.serialization.stringLiteral("o4-mini-2025-04-16"),
51
+ core.serialization.stringLiteral("o3"),
52
+ core.serialization.stringLiteral("o3-2025-04-16"),
43
53
  core.serialization.stringLiteral("o3-mini"),
44
54
  core.serialization.stringLiteral("o3-mini-2025-01-31"),
45
55
  core.serialization.stringLiteral("o1"),
@@ -6,5 +6,5 @@ import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CompletionCreateParamsStreamingServiceTier: core.serialization.Schema<serializers.CompletionCreateParamsStreamingServiceTier.Raw, Letta.CompletionCreateParamsStreamingServiceTier>;
8
8
  export declare namespace CompletionCreateParamsStreamingServiceTier {
9
- type Raw = "auto" | "default";
9
+ type Raw = "auto" | "default" | "flex";
10
10
  }
@@ -38,4 +38,4 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.CompletionCreateParamsStreamingServiceTier = void 0;
40
40
  const core = __importStar(require("../../core"));
41
- exports.CompletionCreateParamsStreamingServiceTier = core.serialization.enum_(["auto", "default"]);
41
+ exports.CompletionCreateParamsStreamingServiceTier = core.serialization.enum_(["auto", "default", "flex"]);
@@ -17,6 +17,9 @@ export declare namespace Job {
17
17
  completed_at?: string | null;
18
18
  metadata?: Record<string, unknown> | null;
19
19
  job_type?: JobType.Raw | null;
20
+ callback_url?: string | null;
21
+ callback_sent_at?: string | null;
22
+ callback_status_code?: number | null;
20
23
  id?: string | null;
21
24
  }
22
25
  }
@@ -49,5 +49,8 @@ exports.Job = core.serialization.object({
49
49
  completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
50
50
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
51
51
  jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
52
+ callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
53
+ callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
54
+ callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
52
55
  id: core.serialization.string().optional(),
53
56
  });
@@ -18,6 +18,9 @@ export declare namespace Run {
18
18
  completed_at?: string | null;
19
19
  metadata?: Record<string, unknown> | null;
20
20
  job_type?: JobType.Raw | null;
21
+ callback_url?: string | null;
22
+ callback_sent_at?: string | null;
23
+ callback_status_code?: number | null;
21
24
  id?: string | null;
22
25
  request_config?: LettaRequestConfig.Raw | null;
23
26
  }
@@ -50,6 +50,9 @@ exports.Run = core.serialization.object({
50
50
  completedAt: core.serialization.property("completed_at", core.serialization.date().optional()),
51
51
  metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
52
52
  jobType: core.serialization.property("job_type", JobType_1.JobType.optional()),
53
+ callbackUrl: core.serialization.property("callback_url", core.serialization.string().optional()),
54
+ callbackSentAt: core.serialization.property("callback_sent_at", core.serialization.date().optional()),
55
+ callbackStatusCode: core.serialization.property("callback_status_code", core.serialization.number().optional()),
53
56
  id: core.serialization.string().optional(),
54
57
  requestConfig: core.serialization.property("request_config", LettaRequestConfig_1.LettaRequestConfig.optional()),
55
58
  });
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.94";
1
+ export declare const SDK_VERSION = "0.1.95";
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.94";
4
+ exports.SDK_VERSION = "0.1.95";