@letta-ai/letta-client 0.1.116 → 0.1.118

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 (133) hide show
  1. package/api/errors/PaymentRequiredError.d.ts +8 -0
  2. package/api/errors/PaymentRequiredError.js +51 -0
  3. package/api/errors/index.d.ts +1 -0
  4. package/api/errors/index.js +1 -0
  5. package/api/resources/agents/client/Client.js +9 -9
  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.d.ts +2 -0
  21. package/api/resources/embeddingModels/client/Client.js +19 -5
  22. package/api/resources/groups/client/Client.js +6 -6
  23. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  24. package/api/resources/health/client/Client.js +1 -1
  25. package/api/resources/identities/client/Client.js +7 -7
  26. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  27. package/api/resources/jobs/client/Client.js +4 -4
  28. package/api/resources/messages/client/Client.js +1 -1
  29. package/api/resources/models/client/Client.js +14 -6
  30. package/api/resources/models/client/requests/ModelsListRequest.d.ts +4 -2
  31. package/api/resources/projects/client/Client.js +1 -1
  32. package/api/resources/providers/client/Client.js +4 -4
  33. package/api/resources/runs/client/Client.js +4 -4
  34. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  35. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  36. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  37. package/api/resources/sources/client/Client.js +7 -7
  38. package/api/resources/sources/resources/files/client/Client.js +3 -3
  39. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  40. package/api/resources/steps/client/Client.js +2 -2
  41. package/api/resources/tags/client/Client.js +1 -1
  42. package/api/resources/templates/client/Client.js +1 -1
  43. package/api/resources/templates/resources/agents/client/Client.d.ts +2 -0
  44. package/api/resources/templates/resources/agents/client/Client.js +19 -5
  45. package/api/resources/tools/client/Client.js +17 -17
  46. package/api/resources/voice/client/Client.js +1 -1
  47. package/api/types/LlmConfig.d.ts +2 -0
  48. package/api/types/PaymentRequiredErrorBody.d.ts +7 -0
  49. package/api/types/PaymentRequiredErrorBody.js +5 -0
  50. package/api/types/Provider.d.ts +2 -0
  51. package/api/types/ProviderCategory.d.ts +8 -0
  52. package/api/types/ProviderCategory.js +10 -0
  53. package/api/types/index.d.ts +2 -0
  54. package/api/types/index.js +2 -0
  55. package/dist/api/errors/PaymentRequiredError.d.ts +8 -0
  56. package/dist/api/errors/PaymentRequiredError.js +51 -0
  57. package/dist/api/errors/index.d.ts +1 -0
  58. package/dist/api/errors/index.js +1 -0
  59. package/dist/api/resources/agents/client/Client.js +9 -9
  60. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  61. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  62. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  63. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  64. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  65. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  66. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  67. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  68. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  69. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  70. package/dist/api/resources/batches/client/Client.js +4 -4
  71. package/dist/api/resources/blocks/client/Client.js +6 -6
  72. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  73. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  74. package/dist/api/resources/embeddingModels/client/Client.d.ts +2 -0
  75. package/dist/api/resources/embeddingModels/client/Client.js +19 -5
  76. package/dist/api/resources/groups/client/Client.js +6 -6
  77. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  78. package/dist/api/resources/health/client/Client.js +1 -1
  79. package/dist/api/resources/identities/client/Client.js +7 -7
  80. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  81. package/dist/api/resources/jobs/client/Client.js +4 -4
  82. package/dist/api/resources/messages/client/Client.js +1 -1
  83. package/dist/api/resources/models/client/Client.js +14 -6
  84. package/dist/api/resources/models/client/requests/ModelsListRequest.d.ts +4 -2
  85. package/dist/api/resources/projects/client/Client.js +1 -1
  86. package/dist/api/resources/providers/client/Client.js +4 -4
  87. package/dist/api/resources/runs/client/Client.js +4 -4
  88. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  89. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  90. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  91. package/dist/api/resources/sources/client/Client.js +7 -7
  92. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  93. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  94. package/dist/api/resources/steps/client/Client.js +2 -2
  95. package/dist/api/resources/tags/client/Client.js +1 -1
  96. package/dist/api/resources/templates/client/Client.js +1 -1
  97. package/dist/api/resources/templates/resources/agents/client/Client.d.ts +2 -0
  98. package/dist/api/resources/templates/resources/agents/client/Client.js +19 -5
  99. package/dist/api/resources/tools/client/Client.js +17 -17
  100. package/dist/api/resources/voice/client/Client.js +1 -1
  101. package/dist/api/types/LlmConfig.d.ts +2 -0
  102. package/dist/api/types/PaymentRequiredErrorBody.d.ts +7 -0
  103. package/dist/api/types/PaymentRequiredErrorBody.js +5 -0
  104. package/dist/api/types/Provider.d.ts +2 -0
  105. package/dist/api/types/ProviderCategory.d.ts +8 -0
  106. package/dist/api/types/ProviderCategory.js +10 -0
  107. package/dist/api/types/index.d.ts +2 -0
  108. package/dist/api/types/index.js +2 -0
  109. package/dist/serialization/types/LlmConfig.d.ts +2 -0
  110. package/dist/serialization/types/LlmConfig.js +2 -0
  111. package/dist/serialization/types/PaymentRequiredErrorBody.d.ts +13 -0
  112. package/dist/serialization/types/PaymentRequiredErrorBody.js +44 -0
  113. package/dist/serialization/types/Provider.d.ts +2 -0
  114. package/dist/serialization/types/Provider.js +2 -0
  115. package/dist/serialization/types/ProviderCategory.d.ts +10 -0
  116. package/dist/serialization/types/ProviderCategory.js +41 -0
  117. package/dist/serialization/types/index.d.ts +2 -0
  118. package/dist/serialization/types/index.js +2 -0
  119. package/dist/version.d.ts +1 -1
  120. package/dist/version.js +1 -1
  121. package/package.json +1 -1
  122. package/serialization/types/LlmConfig.d.ts +2 -0
  123. package/serialization/types/LlmConfig.js +2 -0
  124. package/serialization/types/PaymentRequiredErrorBody.d.ts +13 -0
  125. package/serialization/types/PaymentRequiredErrorBody.js +44 -0
  126. package/serialization/types/Provider.d.ts +2 -0
  127. package/serialization/types/Provider.js +2 -0
  128. package/serialization/types/ProviderCategory.d.ts +10 -0
  129. package/serialization/types/ProviderCategory.js +41 -0
  130. package/serialization/types/index.d.ts +2 -0
  131. package/serialization/types/index.js +2 -0
  132. package/version.d.ts +1 -1
  133. package/version.js +1 -1
@@ -18,6 +18,7 @@ __exportStar(require("./NotFoundErrorBody"), exports);
18
18
  __exportStar(require("./InternalServerErrorBody"), exports);
19
19
  __exportStar(require("./NotFoundErrorBodyMessage"), exports);
20
20
  __exportStar(require("./ConflictErrorBody"), exports);
21
+ __exportStar(require("./PaymentRequiredErrorBody"), exports);
21
22
  __exportStar(require("./BadRequestErrorBody"), exports);
22
23
  __exportStar(require("./ActionModel"), exports);
23
24
  __exportStar(require("./ActionParametersModel"), exports);
@@ -166,6 +167,7 @@ __exportStar(require("./ParentToolRule"), exports);
166
167
  __exportStar(require("./Passage"), exports);
167
168
  __exportStar(require("./PipRequirement"), exports);
168
169
  __exportStar(require("./Provider"), exports);
170
+ __exportStar(require("./ProviderCategory"), exports);
169
171
  __exportStar(require("./ProviderType"), exports);
170
172
  __exportStar(require("./ReasoningContent"), exports);
171
173
  __exportStar(require("./ReasoningMessageSource"), exports);
@@ -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 { LlmConfigModelEndpointType } from "./LlmConfigModelEndpointType";
8
+ import { ProviderCategory } from "./ProviderCategory";
8
9
  import { LlmConfigReasoningEffort } from "./LlmConfigReasoningEffort";
9
10
  export declare const LlmConfig: core.serialization.ObjectSchema<serializers.LlmConfig.Raw, Letta.LlmConfig>;
10
11
  export declare namespace LlmConfig {
@@ -13,6 +14,7 @@ export declare namespace LlmConfig {
13
14
  model_endpoint_type: LlmConfigModelEndpointType.Raw;
14
15
  model_endpoint?: string | null;
15
16
  provider_name?: string | null;
17
+ provider_category?: ProviderCategory.Raw | null;
16
18
  model_wrapper?: string | null;
17
19
  context_window: number;
18
20
  put_inner_thoughts_in_kwargs?: boolean | null;
@@ -39,12 +39,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.LlmConfig = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const LlmConfigModelEndpointType_1 = require("./LlmConfigModelEndpointType");
42
+ const ProviderCategory_1 = require("./ProviderCategory");
42
43
  const LlmConfigReasoningEffort_1 = require("./LlmConfigReasoningEffort");
43
44
  exports.LlmConfig = core.serialization.object({
44
45
  model: core.serialization.string(),
45
46
  modelEndpointType: core.serialization.property("model_endpoint_type", LlmConfigModelEndpointType_1.LlmConfigModelEndpointType),
46
47
  modelEndpoint: core.serialization.property("model_endpoint", core.serialization.string().optional()),
47
48
  providerName: core.serialization.property("provider_name", core.serialization.string().optional()),
49
+ providerCategory: core.serialization.property("provider_category", ProviderCategory_1.ProviderCategory.optional()),
48
50
  modelWrapper: core.serialization.property("model_wrapper", core.serialization.string().optional()),
49
51
  contextWindow: core.serialization.property("context_window", core.serialization.number()),
50
52
  putInnerThoughtsInKwargs: core.serialization.property("put_inner_thoughts_in_kwargs", core.serialization.boolean().optional()),
@@ -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 PaymentRequiredErrorBody: core.serialization.ObjectSchema<serializers.PaymentRequiredErrorBody.Raw, Letta.PaymentRequiredErrorBody>;
8
+ export declare namespace PaymentRequiredErrorBody {
9
+ interface Raw {
10
+ message: string;
11
+ limit: number;
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.PaymentRequiredErrorBody = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.PaymentRequiredErrorBody = core.serialization.object({
42
+ message: core.serialization.string(),
43
+ limit: core.serialization.number(),
44
+ });
@@ -5,12 +5,14 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { ProviderType } from "./ProviderType";
8
+ import { ProviderCategory } from "./ProviderCategory";
8
9
  export declare const Provider: core.serialization.ObjectSchema<serializers.Provider.Raw, Letta.Provider>;
9
10
  export declare namespace Provider {
10
11
  interface Raw {
11
12
  id?: string | null;
12
13
  name: string;
13
14
  provider_type: ProviderType.Raw;
15
+ provider_category: ProviderCategory.Raw;
14
16
  api_key?: string | null;
15
17
  base_url?: string | null;
16
18
  updated_at?: string | null;
@@ -39,10 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Provider = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const ProviderType_1 = require("./ProviderType");
42
+ const ProviderCategory_1 = require("./ProviderCategory");
42
43
  exports.Provider = core.serialization.object({
43
44
  id: core.serialization.string().optional(),
44
45
  name: core.serialization.string(),
45
46
  providerType: core.serialization.property("provider_type", ProviderType_1.ProviderType),
47
+ providerCategory: core.serialization.property("provider_category", ProviderCategory_1.ProviderCategory),
46
48
  apiKey: core.serialization.property("api_key", core.serialization.string().optional()),
47
49
  baseUrl: core.serialization.property("base_url", core.serialization.string().optional()),
48
50
  updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
@@ -0,0 +1,10 @@
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 ProviderCategory: core.serialization.Schema<serializers.ProviderCategory.Raw, Letta.ProviderCategory>;
8
+ export declare namespace ProviderCategory {
9
+ type Raw = "base" | "byok";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ProviderCategory = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ProviderCategory = core.serialization.enum_(["base", "byok"]);
@@ -2,6 +2,7 @@ export * from "./NotFoundErrorBody";
2
2
  export * from "./InternalServerErrorBody";
3
3
  export * from "./NotFoundErrorBodyMessage";
4
4
  export * from "./ConflictErrorBody";
5
+ export * from "./PaymentRequiredErrorBody";
5
6
  export * from "./BadRequestErrorBody";
6
7
  export * from "./ActionModel";
7
8
  export * from "./ActionParametersModel";
@@ -150,6 +151,7 @@ export * from "./ParentToolRule";
150
151
  export * from "./Passage";
151
152
  export * from "./PipRequirement";
152
153
  export * from "./Provider";
154
+ export * from "./ProviderCategory";
153
155
  export * from "./ProviderType";
154
156
  export * from "./ReasoningContent";
155
157
  export * from "./ReasoningMessageSource";
@@ -18,6 +18,7 @@ __exportStar(require("./NotFoundErrorBody"), exports);
18
18
  __exportStar(require("./InternalServerErrorBody"), exports);
19
19
  __exportStar(require("./NotFoundErrorBodyMessage"), exports);
20
20
  __exportStar(require("./ConflictErrorBody"), exports);
21
+ __exportStar(require("./PaymentRequiredErrorBody"), exports);
21
22
  __exportStar(require("./BadRequestErrorBody"), exports);
22
23
  __exportStar(require("./ActionModel"), exports);
23
24
  __exportStar(require("./ActionParametersModel"), exports);
@@ -166,6 +167,7 @@ __exportStar(require("./ParentToolRule"), exports);
166
167
  __exportStar(require("./Passage"), exports);
167
168
  __exportStar(require("./PipRequirement"), exports);
168
169
  __exportStar(require("./Provider"), exports);
170
+ __exportStar(require("./ProviderCategory"), exports);
169
171
  __exportStar(require("./ProviderType"), exports);
170
172
  __exportStar(require("./ReasoningContent"), exports);
171
173
  __exportStar(require("./ReasoningMessageSource"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.116";
1
+ export declare const SDK_VERSION = "0.1.118";
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.116";
4
+ exports.SDK_VERSION = "0.1.118";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.116",
3
+ "version": "0.1.118",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
@@ -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 { LlmConfigModelEndpointType } from "./LlmConfigModelEndpointType";
8
+ import { ProviderCategory } from "./ProviderCategory";
8
9
  import { LlmConfigReasoningEffort } from "./LlmConfigReasoningEffort";
9
10
  export declare const LlmConfig: core.serialization.ObjectSchema<serializers.LlmConfig.Raw, Letta.LlmConfig>;
10
11
  export declare namespace LlmConfig {
@@ -13,6 +14,7 @@ export declare namespace LlmConfig {
13
14
  model_endpoint_type: LlmConfigModelEndpointType.Raw;
14
15
  model_endpoint?: string | null;
15
16
  provider_name?: string | null;
17
+ provider_category?: ProviderCategory.Raw | null;
16
18
  model_wrapper?: string | null;
17
19
  context_window: number;
18
20
  put_inner_thoughts_in_kwargs?: boolean | null;
@@ -39,12 +39,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.LlmConfig = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const LlmConfigModelEndpointType_1 = require("./LlmConfigModelEndpointType");
42
+ const ProviderCategory_1 = require("./ProviderCategory");
42
43
  const LlmConfigReasoningEffort_1 = require("./LlmConfigReasoningEffort");
43
44
  exports.LlmConfig = core.serialization.object({
44
45
  model: core.serialization.string(),
45
46
  modelEndpointType: core.serialization.property("model_endpoint_type", LlmConfigModelEndpointType_1.LlmConfigModelEndpointType),
46
47
  modelEndpoint: core.serialization.property("model_endpoint", core.serialization.string().optional()),
47
48
  providerName: core.serialization.property("provider_name", core.serialization.string().optional()),
49
+ providerCategory: core.serialization.property("provider_category", ProviderCategory_1.ProviderCategory.optional()),
48
50
  modelWrapper: core.serialization.property("model_wrapper", core.serialization.string().optional()),
49
51
  contextWindow: core.serialization.property("context_window", core.serialization.number()),
50
52
  putInnerThoughtsInKwargs: core.serialization.property("put_inner_thoughts_in_kwargs", core.serialization.boolean().optional()),
@@ -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 PaymentRequiredErrorBody: core.serialization.ObjectSchema<serializers.PaymentRequiredErrorBody.Raw, Letta.PaymentRequiredErrorBody>;
8
+ export declare namespace PaymentRequiredErrorBody {
9
+ interface Raw {
10
+ message: string;
11
+ limit: number;
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.PaymentRequiredErrorBody = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.PaymentRequiredErrorBody = core.serialization.object({
42
+ message: core.serialization.string(),
43
+ limit: core.serialization.number(),
44
+ });
@@ -5,12 +5,14 @@ import * as serializers from "../index";
5
5
  import * as Letta from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { ProviderType } from "./ProviderType";
8
+ import { ProviderCategory } from "./ProviderCategory";
8
9
  export declare const Provider: core.serialization.ObjectSchema<serializers.Provider.Raw, Letta.Provider>;
9
10
  export declare namespace Provider {
10
11
  interface Raw {
11
12
  id?: string | null;
12
13
  name: string;
13
14
  provider_type: ProviderType.Raw;
15
+ provider_category: ProviderCategory.Raw;
14
16
  api_key?: string | null;
15
17
  base_url?: string | null;
16
18
  updated_at?: string | null;
@@ -39,10 +39,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Provider = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const ProviderType_1 = require("./ProviderType");
42
+ const ProviderCategory_1 = require("./ProviderCategory");
42
43
  exports.Provider = core.serialization.object({
43
44
  id: core.serialization.string().optional(),
44
45
  name: core.serialization.string(),
45
46
  providerType: core.serialization.property("provider_type", ProviderType_1.ProviderType),
47
+ providerCategory: core.serialization.property("provider_category", ProviderCategory_1.ProviderCategory),
46
48
  apiKey: core.serialization.property("api_key", core.serialization.string().optional()),
47
49
  baseUrl: core.serialization.property("base_url", core.serialization.string().optional()),
48
50
  updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
@@ -0,0 +1,10 @@
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 ProviderCategory: core.serialization.Schema<serializers.ProviderCategory.Raw, Letta.ProviderCategory>;
8
+ export declare namespace ProviderCategory {
9
+ type Raw = "base" | "byok";
10
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ProviderCategory = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.ProviderCategory = core.serialization.enum_(["base", "byok"]);
@@ -2,6 +2,7 @@ export * from "./NotFoundErrorBody";
2
2
  export * from "./InternalServerErrorBody";
3
3
  export * from "./NotFoundErrorBodyMessage";
4
4
  export * from "./ConflictErrorBody";
5
+ export * from "./PaymentRequiredErrorBody";
5
6
  export * from "./BadRequestErrorBody";
6
7
  export * from "./ActionModel";
7
8
  export * from "./ActionParametersModel";
@@ -150,6 +151,7 @@ export * from "./ParentToolRule";
150
151
  export * from "./Passage";
151
152
  export * from "./PipRequirement";
152
153
  export * from "./Provider";
154
+ export * from "./ProviderCategory";
153
155
  export * from "./ProviderType";
154
156
  export * from "./ReasoningContent";
155
157
  export * from "./ReasoningMessageSource";
@@ -18,6 +18,7 @@ __exportStar(require("./NotFoundErrorBody"), exports);
18
18
  __exportStar(require("./InternalServerErrorBody"), exports);
19
19
  __exportStar(require("./NotFoundErrorBodyMessage"), exports);
20
20
  __exportStar(require("./ConflictErrorBody"), exports);
21
+ __exportStar(require("./PaymentRequiredErrorBody"), exports);
21
22
  __exportStar(require("./BadRequestErrorBody"), exports);
22
23
  __exportStar(require("./ActionModel"), exports);
23
24
  __exportStar(require("./ActionParametersModel"), exports);
@@ -166,6 +167,7 @@ __exportStar(require("./ParentToolRule"), exports);
166
167
  __exportStar(require("./Passage"), exports);
167
168
  __exportStar(require("./PipRequirement"), exports);
168
169
  __exportStar(require("./Provider"), exports);
170
+ __exportStar(require("./ProviderCategory"), exports);
169
171
  __exportStar(require("./ProviderType"), exports);
170
172
  __exportStar(require("./ReasoningContent"), exports);
171
173
  __exportStar(require("./ReasoningMessageSource"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.116";
1
+ export declare const SDK_VERSION = "0.1.118";
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.116";
4
+ exports.SDK_VERSION = "0.1.118";