@letta-ai/letta-client 1.0.0-alpha.10 → 1.0.0-alpha.11

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 (113) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/client.d.mts +7 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +7 -1
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -1
  9. package/client.mjs.map +1 -1
  10. package/core/streaming.d.mts.map +1 -1
  11. package/core/streaming.d.ts.map +1 -1
  12. package/core/streaming.js +0 -5
  13. package/core/streaming.js.map +1 -1
  14. package/core/streaming.mjs +0 -5
  15. package/core/streaming.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/agents/agents.d.mts +59 -69
  18. package/resources/agents/agents.d.mts.map +1 -1
  19. package/resources/agents/agents.d.ts +59 -69
  20. package/resources/agents/agents.d.ts.map +1 -1
  21. package/resources/agents/agents.js +2 -10
  22. package/resources/agents/agents.js.map +1 -1
  23. package/resources/agents/agents.mjs +2 -10
  24. package/resources/agents/agents.mjs.map +1 -1
  25. package/resources/groups/groups.d.mts +7 -33
  26. package/resources/groups/groups.d.mts.map +1 -1
  27. package/resources/groups/groups.d.ts +7 -33
  28. package/resources/groups/groups.d.ts.map +1 -1
  29. package/resources/groups/groups.js +4 -21
  30. package/resources/groups/groups.js.map +1 -1
  31. package/resources/groups/groups.mjs +4 -21
  32. package/resources/groups/groups.mjs.map +1 -1
  33. package/resources/identities/identities.d.mts +16 -24
  34. package/resources/identities/identities.d.mts.map +1 -1
  35. package/resources/identities/identities.d.ts +16 -24
  36. package/resources/identities/identities.d.ts.map +1 -1
  37. package/resources/identities/identities.js +4 -21
  38. package/resources/identities/identities.js.map +1 -1
  39. package/resources/identities/identities.mjs +4 -21
  40. package/resources/identities/identities.mjs.map +1 -1
  41. package/resources/index.d.mts +1 -0
  42. package/resources/index.d.mts.map +1 -1
  43. package/resources/index.d.ts +1 -0
  44. package/resources/index.d.ts.map +1 -1
  45. package/resources/index.js +3 -1
  46. package/resources/index.js.map +1 -1
  47. package/resources/index.mjs +1 -0
  48. package/resources/index.mjs.map +1 -1
  49. package/resources/mcp-servers/index.d.mts +4 -0
  50. package/resources/mcp-servers/index.d.mts.map +1 -0
  51. package/resources/mcp-servers/index.d.ts +4 -0
  52. package/resources/mcp-servers/index.d.ts.map +1 -0
  53. package/resources/mcp-servers/index.js +11 -0
  54. package/resources/mcp-servers/index.js.map +1 -0
  55. package/resources/mcp-servers/index.mjs +5 -0
  56. package/resources/mcp-servers/index.mjs.map +1 -0
  57. package/resources/mcp-servers/mcp-servers.d.mts +603 -0
  58. package/resources/mcp-servers/mcp-servers.d.mts.map +1 -0
  59. package/resources/mcp-servers/mcp-servers.d.ts +603 -0
  60. package/resources/mcp-servers/mcp-servers.d.ts.map +1 -0
  61. package/resources/mcp-servers/mcp-servers.js +63 -0
  62. package/resources/mcp-servers/mcp-servers.js.map +1 -0
  63. package/resources/mcp-servers/mcp-servers.mjs +58 -0
  64. package/resources/mcp-servers/mcp-servers.mjs.map +1 -0
  65. package/resources/mcp-servers/refresh.d.mts +24 -0
  66. package/resources/mcp-servers/refresh.d.mts.map +1 -0
  67. package/resources/mcp-servers/refresh.d.ts +24 -0
  68. package/resources/mcp-servers/refresh.d.ts.map +1 -0
  69. package/resources/mcp-servers/refresh.js +27 -0
  70. package/resources/mcp-servers/refresh.js.map +1 -0
  71. package/resources/mcp-servers/refresh.mjs +23 -0
  72. package/resources/mcp-servers/refresh.mjs.map +1 -0
  73. package/resources/mcp-servers/tools.d.mts +80 -0
  74. package/resources/mcp-servers/tools.d.mts.map +1 -0
  75. package/resources/mcp-servers/tools.d.ts +80 -0
  76. package/resources/mcp-servers/tools.d.ts.map +1 -0
  77. package/resources/mcp-servers/tools.js +36 -0
  78. package/resources/mcp-servers/tools.js.map +1 -0
  79. package/resources/mcp-servers/tools.mjs +32 -0
  80. package/resources/mcp-servers/tools.mjs.map +1 -0
  81. package/resources/mcp-servers.d.mts +2 -0
  82. package/resources/mcp-servers.d.mts.map +1 -0
  83. package/resources/mcp-servers.d.ts +2 -0
  84. package/resources/mcp-servers.d.ts.map +1 -0
  85. package/resources/mcp-servers.js +6 -0
  86. package/resources/mcp-servers.js.map +1 -0
  87. package/resources/mcp-servers.mjs +3 -0
  88. package/resources/mcp-servers.mjs.map +1 -0
  89. package/resources/steps/steps.d.mts +10 -17
  90. package/resources/steps/steps.d.mts.map +1 -1
  91. package/resources/steps/steps.d.ts +10 -17
  92. package/resources/steps/steps.d.ts.map +1 -1
  93. package/resources/steps/steps.js +2 -11
  94. package/resources/steps/steps.js.map +1 -1
  95. package/resources/steps/steps.mjs +2 -11
  96. package/resources/steps/steps.mjs.map +1 -1
  97. package/src/client.ts +34 -0
  98. package/src/core/streaming.ts +0 -7
  99. package/src/resources/agents/agents.ts +60 -79
  100. package/src/resources/groups/groups.ts +9 -54
  101. package/src/resources/identities/identities.ts +18 -45
  102. package/src/resources/index.ts +11 -0
  103. package/src/resources/mcp-servers/index.ts +21 -0
  104. package/src/resources/mcp-servers/mcp-servers.ts +762 -0
  105. package/src/resources/mcp-servers/refresh.ts +43 -0
  106. package/src/resources/mcp-servers/tools.ts +110 -0
  107. package/src/resources/mcp-servers.ts +3 -0
  108. package/src/resources/steps/steps.ts +11 -28
  109. package/src/version.ts +1 -1
  110. package/version.d.mts +1 -1
  111. package/version.d.ts +1 -1
  112. package/version.js +1 -1
  113. package/version.mjs +1 -1
@@ -14,7 +14,6 @@ import {
14
14
  } from './messages';
15
15
  import { APIPromise } from '../../core/api-promise';
16
16
  import { ArrayPage, type ArrayPageParams, PagePromise } from '../../core/pagination';
17
- import { buildHeaders } from '../../internal/headers';
18
17
  import { RequestOptions } from '../../internal/request-options';
19
18
  import { path } from '../../internal/utils/path';
20
19
 
@@ -24,16 +23,8 @@ export class Groups extends APIResource {
24
23
  /**
25
24
  * Create a new multi-agent group with the specified configuration.
26
25
  */
27
- create(params: GroupCreateParams, options?: RequestOptions): APIPromise<Group> {
28
- const { 'X-Project': xProject, ...body } = params;
29
- return this._client.post('/v1/groups/', {
30
- body,
31
- ...options,
32
- headers: buildHeaders([
33
- { ...(xProject != null ? { 'X-Project': xProject } : undefined) },
34
- options?.headers,
35
- ]),
36
- });
26
+ create(body: GroupCreateParams, options?: RequestOptions): APIPromise<Group> {
27
+ return this._client.post('/v1/groups/', { body, ...options });
37
28
  }
38
29
 
39
30
  /**
@@ -70,16 +61,8 @@ export class Groups extends APIResource {
70
61
  /**
71
62
  * Create a new multi-agent group with the specified configuration.
72
63
  */
73
- modify(groupID: string, params: GroupModifyParams, options?: RequestOptions): APIPromise<Group> {
74
- const { 'X-Project': xProject, ...body } = params;
75
- return this._client.patch(path`/v1/groups/${groupID}`, {
76
- body,
77
- ...options,
78
- headers: buildHeaders([
79
- { ...(xProject != null ? { 'X-Project': xProject } : undefined) },
80
- options?.headers,
81
- ]),
82
- });
64
+ modify(groupID: string, body: GroupModifyParams, options?: RequestOptions): APIPromise<Group> {
65
+ return this._client.patch(path`/v1/groups/${groupID}`, { body, ...options });
83
66
  }
84
67
  }
85
68
 
@@ -215,24 +198,15 @@ export type GroupDeleteResponse = unknown;
215
198
  export type GroupCountResponse = number;
216
199
 
217
200
  export interface GroupCreateParams {
218
- /**
219
- * Body param:
220
- */
221
201
  agent_ids: Array<string>;
222
202
 
223
- /**
224
- * Body param:
225
- */
226
203
  description: string;
227
204
 
228
205
  /**
229
- * Body param: If set to True, the group will be hidden.
206
+ * If set to True, the group will be hidden.
230
207
  */
231
208
  hidden?: boolean | null;
232
209
 
233
- /**
234
- * Body param:
235
- */
236
210
  manager_config?:
237
211
  | RoundRobinManager
238
212
  | SupervisorManager
@@ -241,19 +215,14 @@ export interface GroupCreateParams {
241
215
  | VoiceSleeptimeManager;
242
216
 
243
217
  /**
244
- * Body param: The associated project id.
218
+ * The associated project id.
245
219
  */
246
220
  project_id?: string | null;
247
221
 
248
222
  /**
249
- * @deprecated Body param:
223
+ * @deprecated
250
224
  */
251
225
  shared_block_ids?: Array<string>;
252
-
253
- /**
254
- * Header param: The project slug to associate with the group (cloud only).
255
- */
256
- 'X-Project'?: string;
257
226
  }
258
227
 
259
228
  export interface GroupListParams extends ArrayPageParams {
@@ -269,19 +238,10 @@ export interface GroupListParams extends ArrayPageParams {
269
238
  }
270
239
 
271
240
  export interface GroupModifyParams {
272
- /**
273
- * Body param:
274
- */
275
241
  agent_ids?: Array<string> | null;
276
242
 
277
- /**
278
- * Body param:
279
- */
280
243
  description?: string | null;
281
244
 
282
- /**
283
- * Body param:
284
- */
285
245
  manager_config?:
286
246
  | GroupModifyParams.RoundRobinManagerUpdate
287
247
  | GroupModifyParams.SupervisorManagerUpdate
@@ -291,19 +251,14 @@ export interface GroupModifyParams {
291
251
  | null;
292
252
 
293
253
  /**
294
- * Body param: The associated project id.
254
+ * The associated project id.
295
255
  */
296
256
  project_id?: string | null;
297
257
 
298
258
  /**
299
- * @deprecated Body param:
259
+ * @deprecated
300
260
  */
301
261
  shared_block_ids?: Array<string> | null;
302
-
303
- /**
304
- * Header param: The project slug to associate with the group (cloud only).
305
- */
306
- 'X-Project'?: string;
307
262
  }
308
263
 
309
264
  export namespace GroupModifyParams {
@@ -8,7 +8,6 @@ import { BlockListParams, Blocks } from './blocks';
8
8
  import * as PropertiesAPI from './properties';
9
9
  import { Properties, PropertyUpsertParams, PropertyUpsertResponse } from './properties';
10
10
  import { APIPromise } from '../../core/api-promise';
11
- import { buildHeaders } from '../../internal/headers';
12
11
  import { RequestOptions } from '../../internal/request-options';
13
12
  import { path } from '../../internal/utils/path';
14
13
 
@@ -20,16 +19,8 @@ export class Identities extends APIResource {
20
19
  /**
21
20
  * Create Identity
22
21
  */
23
- create(params: IdentityCreateParams, options?: RequestOptions): APIPromise<Identity> {
24
- const { 'X-Project': xProject, ...body } = params;
25
- return this._client.post('/v1/identities/', {
26
- body,
27
- ...options,
28
- headers: buildHeaders([
29
- { ...(xProject != null ? { 'X-Project': xProject } : undefined) },
30
- options?.headers,
31
- ]),
32
- });
22
+ create(body: IdentityCreateParams, options?: RequestOptions): APIPromise<Identity> {
23
+ return this._client.post('/v1/identities/', { body, ...options });
33
24
  }
34
25
 
35
26
  /**
@@ -73,16 +64,8 @@ export class Identities extends APIResource {
73
64
  /**
74
65
  * Upsert Identity
75
66
  */
76
- upsert(params: IdentityUpsertParams, options?: RequestOptions): APIPromise<Identity> {
77
- const { 'X-Project': xProject, ...body } = params;
78
- return this._client.put('/v1/identities/', {
79
- body,
80
- ...options,
81
- headers: buildHeaders([
82
- { ...(xProject != null ? { 'X-Project': xProject } : undefined) },
83
- options?.headers,
84
- ]),
85
- });
67
+ upsert(body: IdentityUpsertParams, options?: RequestOptions): APIPromise<Identity> {
68
+ return this._client.put('/v1/identities/', { body, ...options });
86
69
  }
87
70
  }
88
71
 
@@ -161,44 +144,39 @@ export type IdentityCountResponse = number;
161
144
 
162
145
  export interface IdentityCreateParams {
163
146
  /**
164
- * Body param: External, user-generated identifier key of the identity.
147
+ * External, user-generated identifier key of the identity.
165
148
  */
166
149
  identifier_key: string;
167
150
 
168
151
  /**
169
- * Body param: The type of the identity.
152
+ * The type of the identity.
170
153
  */
171
154
  identity_type: IdentityType;
172
155
 
173
156
  /**
174
- * Body param: The name of the identity.
157
+ * The name of the identity.
175
158
  */
176
159
  name: string;
177
160
 
178
161
  /**
179
- * @deprecated Body param: The agent ids that are associated with the identity.
162
+ * @deprecated The agent ids that are associated with the identity.
180
163
  */
181
164
  agent_ids?: Array<string> | null;
182
165
 
183
166
  /**
184
- * @deprecated Body param: The IDs of the blocks associated with the identity.
167
+ * @deprecated The IDs of the blocks associated with the identity.
185
168
  */
186
169
  block_ids?: Array<string> | null;
187
170
 
188
171
  /**
189
- * Body param: The project id of the identity, if applicable.
172
+ * The project id of the identity, if applicable.
190
173
  */
191
174
  project_id?: string | null;
192
175
 
193
176
  /**
194
- * Body param: List of properties associated with the identity.
177
+ * List of properties associated with the identity.
195
178
  */
196
179
  properties?: Array<IdentityProperty> | null;
197
-
198
- /**
199
- * Header param: The project slug to associate with the identity (cloud only).
200
- */
201
- 'X-Project'?: string;
202
180
  }
203
181
 
204
182
  export interface IdentityListParams {
@@ -276,44 +254,39 @@ export interface IdentityModifyParams {
276
254
 
277
255
  export interface IdentityUpsertParams {
278
256
  /**
279
- * Body param: External, user-generated identifier key of the identity.
257
+ * External, user-generated identifier key of the identity.
280
258
  */
281
259
  identifier_key: string;
282
260
 
283
261
  /**
284
- * Body param: The type of the identity.
262
+ * The type of the identity.
285
263
  */
286
264
  identity_type: IdentityType;
287
265
 
288
266
  /**
289
- * Body param: The name of the identity.
267
+ * The name of the identity.
290
268
  */
291
269
  name: string;
292
270
 
293
271
  /**
294
- * @deprecated Body param: The agent ids that are associated with the identity.
272
+ * @deprecated The agent ids that are associated with the identity.
295
273
  */
296
274
  agent_ids?: Array<string> | null;
297
275
 
298
276
  /**
299
- * @deprecated Body param: The IDs of the blocks associated with the identity.
277
+ * @deprecated The IDs of the blocks associated with the identity.
300
278
  */
301
279
  block_ids?: Array<string> | null;
302
280
 
303
281
  /**
304
- * Body param: The project id of the identity, if applicable.
282
+ * The project id of the identity, if applicable.
305
283
  */
306
284
  project_id?: string | null;
307
285
 
308
286
  /**
309
- * Body param: List of properties associated with the identity.
287
+ * List of properties associated with the identity.
310
288
  */
311
289
  properties?: Array<IdentityProperty> | null;
312
-
313
- /**
314
- * Header param: The project slug to associate with the identity (cloud only).
315
- */
316
- 'X-Project'?: string;
317
290
  }
318
291
 
319
292
  Identities.Properties = Properties;
@@ -98,6 +98,17 @@ export {
98
98
  type IdentityModifyParams,
99
99
  type IdentityUpsertParams,
100
100
  } from './identities/identities';
101
+ export {
102
+ McpServers,
103
+ type McpServerSchema,
104
+ type McpServerCreateResponse,
105
+ type McpServerRetrieveResponse,
106
+ type McpServerListResponse,
107
+ type McpServerConnectResponse,
108
+ type McpServerModifyResponse,
109
+ type McpServerCreateParams,
110
+ type McpServerModifyParams,
111
+ } from './mcp-servers/mcp-servers';
101
112
  export {
102
113
  Models,
103
114
  type EmbeddingConfig,
@@ -0,0 +1,21 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ McpServers,
5
+ type McpServerSchema,
6
+ type McpServerCreateResponse,
7
+ type McpServerRetrieveResponse,
8
+ type McpServerListResponse,
9
+ type McpServerConnectResponse,
10
+ type McpServerModifyResponse,
11
+ type McpServerCreateParams,
12
+ type McpServerModifyParams,
13
+ } from './mcp-servers';
14
+ export { Refresh, type RefreshTriggerResponse, type RefreshTriggerParams } from './refresh';
15
+ export {
16
+ Tools,
17
+ type ToolListResponse,
18
+ type ToolRunResponse,
19
+ type ToolRetrieveParams,
20
+ type ToolRunParams,
21
+ } from './tools';