@letta-ai/letta-client 0.1.114 → 0.1.115

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 (104) hide show
  1. package/api/resources/agents/client/Client.js +9 -9
  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/groups/client/Client.js +1 -1
  6. package/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  7. package/api/resources/agents/resources/messages/client/Client.js +6 -6
  8. package/api/resources/agents/resources/passages/client/Client.js +4 -4
  9. package/api/resources/agents/resources/sources/client/Client.js +3 -3
  10. package/api/resources/agents/resources/templates/client/Client.js +3 -3
  11. package/api/resources/agents/resources/tools/client/Client.js +3 -3
  12. package/api/resources/batches/client/Client.js +4 -4
  13. package/api/resources/blocks/client/Client.d.ts +11 -0
  14. package/api/resources/blocks/client/Client.js +69 -5
  15. package/api/resources/blocks/resources/agents/client/Client.js +1 -1
  16. package/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  17. package/api/resources/embeddingModels/client/Client.js +1 -1
  18. package/api/resources/groups/client/Client.d.ts +11 -0
  19. package/api/resources/groups/client/Client.js +69 -5
  20. package/api/resources/groups/resources/messages/client/Client.js +5 -5
  21. package/api/resources/health/client/Client.js +1 -1
  22. package/api/resources/identities/client/Client.js +7 -7
  23. package/api/resources/identities/resources/properties/client/Client.js +1 -1
  24. package/api/resources/jobs/client/Client.js +4 -4
  25. package/api/resources/messages/client/Client.js +1 -1
  26. package/api/resources/models/client/Client.js +1 -1
  27. package/api/resources/projects/client/Client.js +1 -1
  28. package/api/resources/providers/client/Client.js +4 -4
  29. package/api/resources/runs/client/Client.js +4 -4
  30. package/api/resources/runs/resources/messages/client/Client.js +1 -1
  31. package/api/resources/runs/resources/steps/client/Client.js +1 -1
  32. package/api/resources/runs/resources/usage/client/Client.js +1 -1
  33. package/api/resources/sources/client/Client.js +7 -7
  34. package/api/resources/sources/resources/files/client/Client.js +3 -3
  35. package/api/resources/sources/resources/passages/client/Client.js +1 -1
  36. package/api/resources/steps/client/Client.js +2 -2
  37. package/api/resources/tags/client/Client.js +1 -1
  38. package/api/resources/templates/client/Client.js +1 -1
  39. package/api/resources/templates/resources/agents/client/Client.js +1 -1
  40. package/api/resources/tools/client/Client.js +17 -17
  41. package/api/resources/voice/client/Client.js +1 -1
  42. package/dist/api/resources/agents/client/Client.js +9 -9
  43. package/dist/api/resources/agents/resources/blocks/client/Client.js +5 -5
  44. package/dist/api/resources/agents/resources/context/client/Client.js +1 -1
  45. package/dist/api/resources/agents/resources/coreMemory/client/Client.js +1 -1
  46. package/dist/api/resources/agents/resources/groups/client/Client.js +1 -1
  47. package/dist/api/resources/agents/resources/memoryVariables/client/Client.js +1 -1
  48. package/dist/api/resources/agents/resources/messages/client/Client.js +6 -6
  49. package/dist/api/resources/agents/resources/passages/client/Client.js +4 -4
  50. package/dist/api/resources/agents/resources/sources/client/Client.js +3 -3
  51. package/dist/api/resources/agents/resources/templates/client/Client.js +3 -3
  52. package/dist/api/resources/agents/resources/tools/client/Client.js +3 -3
  53. package/dist/api/resources/batches/client/Client.js +4 -4
  54. package/dist/api/resources/blocks/client/Client.d.ts +11 -0
  55. package/dist/api/resources/blocks/client/Client.js +69 -5
  56. package/dist/api/resources/blocks/resources/agents/client/Client.js +1 -1
  57. package/dist/api/resources/clientSideAccessTokens/client/Client.js +2 -2
  58. package/dist/api/resources/embeddingModels/client/Client.js +1 -1
  59. package/dist/api/resources/groups/client/Client.d.ts +11 -0
  60. package/dist/api/resources/groups/client/Client.js +69 -5
  61. package/dist/api/resources/groups/resources/messages/client/Client.js +5 -5
  62. package/dist/api/resources/health/client/Client.js +1 -1
  63. package/dist/api/resources/identities/client/Client.js +7 -7
  64. package/dist/api/resources/identities/resources/properties/client/Client.js +1 -1
  65. package/dist/api/resources/jobs/client/Client.js +4 -4
  66. package/dist/api/resources/messages/client/Client.js +1 -1
  67. package/dist/api/resources/models/client/Client.js +1 -1
  68. package/dist/api/resources/projects/client/Client.js +1 -1
  69. package/dist/api/resources/providers/client/Client.js +4 -4
  70. package/dist/api/resources/runs/client/Client.js +4 -4
  71. package/dist/api/resources/runs/resources/messages/client/Client.js +1 -1
  72. package/dist/api/resources/runs/resources/steps/client/Client.js +1 -1
  73. package/dist/api/resources/runs/resources/usage/client/Client.js +1 -1
  74. package/dist/api/resources/sources/client/Client.js +7 -7
  75. package/dist/api/resources/sources/resources/files/client/Client.js +3 -3
  76. package/dist/api/resources/sources/resources/passages/client/Client.js +1 -1
  77. package/dist/api/resources/steps/client/Client.js +2 -2
  78. package/dist/api/resources/tags/client/Client.js +1 -1
  79. package/dist/api/resources/templates/client/Client.js +1 -1
  80. package/dist/api/resources/templates/resources/agents/client/Client.js +1 -1
  81. package/dist/api/resources/tools/client/Client.js +17 -17
  82. package/dist/api/resources/voice/client/Client.js +1 -1
  83. package/dist/serialization/resources/blocks/client/count.d.ts +9 -0
  84. package/dist/serialization/resources/blocks/client/count.js +41 -0
  85. package/dist/serialization/resources/blocks/client/index.d.ts +1 -0
  86. package/dist/serialization/resources/blocks/client/index.js +2 -1
  87. package/dist/serialization/resources/groups/client/count.d.ts +9 -0
  88. package/dist/serialization/resources/groups/client/count.js +41 -0
  89. package/dist/serialization/resources/groups/client/index.d.ts +1 -0
  90. package/dist/serialization/resources/groups/client/index.js +2 -1
  91. package/dist/version.d.ts +1 -1
  92. package/dist/version.js +1 -1
  93. package/package.json +1 -1
  94. package/reference.md +110 -0
  95. package/serialization/resources/blocks/client/count.d.ts +9 -0
  96. package/serialization/resources/blocks/client/count.js +41 -0
  97. package/serialization/resources/blocks/client/index.d.ts +1 -0
  98. package/serialization/resources/blocks/client/index.js +2 -1
  99. package/serialization/resources/groups/client/count.d.ts +9 -0
  100. package/serialization/resources/groups/client/count.js +41 -0
  101. package/serialization/resources/groups/client/index.d.ts +1 -0
  102. package/serialization/resources/groups/client/index.js +2 -1
  103. package/version.d.ts +1 -1
  104. package/version.js +1 -1
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.Response = core.serialization.number();
@@ -1,2 +1,3 @@
1
1
  export * as list from "./list";
2
+ export * as count from "./count";
2
3
  export * from "./requests";
@@ -36,6 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.list = void 0;
39
+ exports.count = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
+ exports.count = __importStar(require("./count"));
41
42
  __exportStar(require("./requests"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.114";
1
+ export declare const SDK_VERSION = "0.1.115";
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.114";
4
+ exports.SDK_VERSION = "0.1.115";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@letta-ai/letta-client",
3
- "version": "0.1.114",
3
+ "version": "0.1.115",
4
4
  "private": false,
5
5
  "repository": "https://github.com/letta-ai/letta-node",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -2244,6 +2244,61 @@ await client.groups.create({
2244
2244
  </dl>
2245
2245
  </details>
2246
2246
 
2247
+ <details><summary><code>client.groups.<a href="/src/api/resources/groups/client/Client.ts">count</a>() -> number</code></summary>
2248
+ <dl>
2249
+ <dd>
2250
+
2251
+ #### 📝 Description
2252
+
2253
+ <dl>
2254
+ <dd>
2255
+
2256
+ <dl>
2257
+ <dd>
2258
+
2259
+ Get the count of all groups associated with a given user.
2260
+
2261
+ </dd>
2262
+ </dl>
2263
+ </dd>
2264
+ </dl>
2265
+
2266
+ #### 🔌 Usage
2267
+
2268
+ <dl>
2269
+ <dd>
2270
+
2271
+ <dl>
2272
+ <dd>
2273
+
2274
+ ```typescript
2275
+ await client.groups.count();
2276
+ ```
2277
+
2278
+ </dd>
2279
+ </dl>
2280
+ </dd>
2281
+ </dl>
2282
+
2283
+ #### ⚙️ Parameters
2284
+
2285
+ <dl>
2286
+ <dd>
2287
+
2288
+ <dl>
2289
+ <dd>
2290
+
2291
+ **requestOptions:** `Groups.RequestOptions`
2292
+
2293
+ </dd>
2294
+ </dl>
2295
+ </dd>
2296
+ </dl>
2297
+
2298
+ </dd>
2299
+ </dl>
2300
+ </details>
2301
+
2247
2302
  <details><summary><code>client.groups.<a href="/src/api/resources/groups/client/Client.ts">retrieve</a>(groupId) -> Letta.Group</code></summary>
2248
2303
  <dl>
2249
2304
  <dd>
@@ -3025,6 +3080,61 @@ await client.blocks.create({
3025
3080
  </dl>
3026
3081
  </details>
3027
3082
 
3083
+ <details><summary><code>client.blocks.<a href="/src/api/resources/blocks/client/Client.ts">count</a>() -> number</code></summary>
3084
+ <dl>
3085
+ <dd>
3086
+
3087
+ #### 📝 Description
3088
+
3089
+ <dl>
3090
+ <dd>
3091
+
3092
+ <dl>
3093
+ <dd>
3094
+
3095
+ Count all blocks created by a user.
3096
+
3097
+ </dd>
3098
+ </dl>
3099
+ </dd>
3100
+ </dl>
3101
+
3102
+ #### 🔌 Usage
3103
+
3104
+ <dl>
3105
+ <dd>
3106
+
3107
+ <dl>
3108
+ <dd>
3109
+
3110
+ ```typescript
3111
+ await client.blocks.count();
3112
+ ```
3113
+
3114
+ </dd>
3115
+ </dl>
3116
+ </dd>
3117
+ </dl>
3118
+
3119
+ #### ⚙️ Parameters
3120
+
3121
+ <dl>
3122
+ <dd>
3123
+
3124
+ <dl>
3125
+ <dd>
3126
+
3127
+ **requestOptions:** `Blocks.RequestOptions`
3128
+
3129
+ </dd>
3130
+ </dl>
3131
+ </dd>
3132
+ </dl>
3133
+
3134
+ </dd>
3135
+ </dl>
3136
+ </details>
3137
+
3028
3138
  <details><summary><code>client.blocks.<a href="/src/api/resources/blocks/client/Client.ts">retrieve</a>(blockId) -> Letta.Block</code></summary>
3029
3139
  <dl>
3030
3140
  <dd>
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as core from "../../../../core";
6
+ export declare const Response: core.serialization.Schema<serializers.blocks.count.Response.Raw, number>;
7
+ export declare namespace Response {
8
+ type Raw = number;
9
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.Response = core.serialization.number();
@@ -1 +1,2 @@
1
1
  export * as list from "./list";
2
+ export * as count from "./count";
@@ -33,5 +33,6 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.list = void 0;
36
+ exports.count = exports.list = void 0;
37
37
  exports.list = __importStar(require("./list"));
38
+ exports.count = __importStar(require("./count"));
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as core from "../../../../core";
6
+ export declare const Response: core.serialization.Schema<serializers.groups.count.Response.Raw, number>;
7
+ export declare namespace Response {
8
+ type Raw = number;
9
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Response = void 0;
40
+ const core = __importStar(require("../../../../core"));
41
+ exports.Response = core.serialization.number();
@@ -1,2 +1,3 @@
1
1
  export * as list from "./list";
2
+ export * as count from "./count";
2
3
  export * from "./requests";
@@ -36,6 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.list = void 0;
39
+ exports.count = exports.list = void 0;
40
40
  exports.list = __importStar(require("./list"));
41
+ exports.count = __importStar(require("./count"));
41
42
  __exportStar(require("./requests"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.114";
1
+ export declare const SDK_VERSION = "0.1.115";
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.114";
4
+ exports.SDK_VERSION = "0.1.115";