@letta-ai/letta-client 1.0.0-alpha.19 → 1.0.0-alpha.20

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 (159) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +15 -56
  3. package/client.d.mts +16 -16
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +16 -16
  6. package/client.d.ts.map +1 -1
  7. package/package.json +1 -1
  8. package/resources/agents/agents.d.mts +139 -129
  9. package/resources/agents/agents.d.mts.map +1 -1
  10. package/resources/agents/agents.d.ts +139 -129
  11. package/resources/agents/agents.d.ts.map +1 -1
  12. package/resources/agents/agents.js +6 -6
  13. package/resources/agents/agents.js.map +1 -1
  14. package/resources/agents/agents.mjs +6 -6
  15. package/resources/agents/agents.mjs.map +1 -1
  16. package/resources/agents/blocks.d.mts +21 -21
  17. package/resources/agents/blocks.d.mts.map +1 -1
  18. package/resources/agents/blocks.d.ts +21 -21
  19. package/resources/agents/blocks.d.ts.map +1 -1
  20. package/resources/agents/blocks.js +10 -10
  21. package/resources/agents/blocks.js.map +1 -1
  22. package/resources/agents/blocks.mjs +10 -10
  23. package/resources/agents/blocks.mjs.map +1 -1
  24. package/resources/agents/index.d.mts +3 -3
  25. package/resources/agents/index.d.mts.map +1 -1
  26. package/resources/agents/index.d.ts +3 -3
  27. package/resources/agents/index.d.ts.map +1 -1
  28. package/resources/agents/messages.d.mts +136 -136
  29. package/resources/agents/messages.d.mts.map +1 -1
  30. package/resources/agents/messages.d.ts +136 -136
  31. package/resources/agents/messages.d.ts.map +1 -1
  32. package/resources/agents/messages.js +21 -21
  33. package/resources/agents/messages.js.map +1 -1
  34. package/resources/agents/messages.mjs +21 -21
  35. package/resources/agents/messages.mjs.map +1 -1
  36. package/resources/archives/archives.d.mts +16 -12
  37. package/resources/archives/archives.d.mts.map +1 -1
  38. package/resources/archives/archives.d.ts +16 -12
  39. package/resources/archives/archives.d.ts.map +1 -1
  40. package/resources/archives/archives.js +6 -6
  41. package/resources/archives/archives.js.map +1 -1
  42. package/resources/archives/archives.mjs +6 -6
  43. package/resources/archives/archives.mjs.map +1 -1
  44. package/resources/archives/index.d.mts +1 -1
  45. package/resources/archives/index.d.mts.map +1 -1
  46. package/resources/archives/index.d.ts +1 -1
  47. package/resources/archives/index.d.ts.map +1 -1
  48. package/resources/blocks/blocks.d.mts +61 -61
  49. package/resources/blocks/blocks.d.mts.map +1 -1
  50. package/resources/blocks/blocks.d.ts +61 -61
  51. package/resources/blocks/blocks.d.ts.map +1 -1
  52. package/resources/blocks/blocks.js +6 -6
  53. package/resources/blocks/blocks.js.map +1 -1
  54. package/resources/blocks/blocks.mjs +6 -6
  55. package/resources/blocks/blocks.mjs.map +1 -1
  56. package/resources/blocks/index.d.mts +1 -1
  57. package/resources/blocks/index.d.mts.map +1 -1
  58. package/resources/blocks/index.d.ts +1 -1
  59. package/resources/blocks/index.d.ts.map +1 -1
  60. package/resources/folders/folders.d.mts +12 -12
  61. package/resources/folders/folders.d.mts.map +1 -1
  62. package/resources/folders/folders.d.ts +12 -12
  63. package/resources/folders/folders.d.ts.map +1 -1
  64. package/resources/folders/folders.js +6 -6
  65. package/resources/folders/folders.js.map +1 -1
  66. package/resources/folders/folders.mjs +6 -6
  67. package/resources/folders/folders.mjs.map +1 -1
  68. package/resources/folders/index.d.mts +1 -1
  69. package/resources/folders/index.d.mts.map +1 -1
  70. package/resources/folders/index.d.ts +1 -1
  71. package/resources/folders/index.d.ts.map +1 -1
  72. package/resources/groups/groups.d.mts +20 -20
  73. package/resources/groups/groups.d.mts.map +1 -1
  74. package/resources/groups/groups.d.ts +20 -20
  75. package/resources/groups/groups.d.ts.map +1 -1
  76. package/resources/groups/groups.js +6 -6
  77. package/resources/groups/groups.js.map +1 -1
  78. package/resources/groups/groups.mjs +6 -6
  79. package/resources/groups/groups.mjs.map +1 -1
  80. package/resources/groups/index.d.mts +2 -2
  81. package/resources/groups/index.d.mts.map +1 -1
  82. package/resources/groups/index.d.ts +2 -2
  83. package/resources/groups/index.d.ts.map +1 -1
  84. package/resources/groups/messages.d.mts +84 -84
  85. package/resources/groups/messages.d.mts.map +1 -1
  86. package/resources/groups/messages.d.ts +84 -84
  87. package/resources/groups/messages.d.ts.map +1 -1
  88. package/resources/groups/messages.js +15 -15
  89. package/resources/groups/messages.js.map +1 -1
  90. package/resources/groups/messages.mjs +15 -15
  91. package/resources/groups/messages.mjs.map +1 -1
  92. package/resources/identities/identities.d.mts +15 -15
  93. package/resources/identities/identities.d.mts.map +1 -1
  94. package/resources/identities/identities.d.ts +15 -15
  95. package/resources/identities/identities.d.ts.map +1 -1
  96. package/resources/identities/identities.js +6 -6
  97. package/resources/identities/identities.js.map +1 -1
  98. package/resources/identities/identities.mjs +6 -6
  99. package/resources/identities/identities.mjs.map +1 -1
  100. package/resources/identities/index.d.mts +1 -1
  101. package/resources/identities/index.d.mts.map +1 -1
  102. package/resources/identities/index.d.ts +1 -1
  103. package/resources/identities/index.d.ts.map +1 -1
  104. package/resources/index.d.mts +8 -8
  105. package/resources/index.d.mts.map +1 -1
  106. package/resources/index.d.ts +8 -8
  107. package/resources/index.d.ts.map +1 -1
  108. package/resources/mcp-servers/index.d.mts +1 -1
  109. package/resources/mcp-servers/index.d.mts.map +1 -1
  110. package/resources/mcp-servers/index.d.ts +1 -1
  111. package/resources/mcp-servers/index.d.ts.map +1 -1
  112. package/resources/mcp-servers/mcp-servers.d.mts +10 -10
  113. package/resources/mcp-servers/mcp-servers.d.mts.map +1 -1
  114. package/resources/mcp-servers/mcp-servers.d.ts +10 -10
  115. package/resources/mcp-servers/mcp-servers.d.ts.map +1 -1
  116. package/resources/mcp-servers/mcp-servers.js +6 -6
  117. package/resources/mcp-servers/mcp-servers.js.map +1 -1
  118. package/resources/mcp-servers/mcp-servers.mjs +6 -6
  119. package/resources/mcp-servers/mcp-servers.mjs.map +1 -1
  120. package/resources/models/models.d.mts +5 -0
  121. package/resources/models/models.d.mts.map +1 -1
  122. package/resources/models/models.d.ts +5 -0
  123. package/resources/models/models.d.ts.map +1 -1
  124. package/resources/models/models.js.map +1 -1
  125. package/resources/models/models.mjs.map +1 -1
  126. package/resources/tools.d.mts +36 -36
  127. package/resources/tools.d.mts.map +1 -1
  128. package/resources/tools.d.ts +36 -36
  129. package/resources/tools.d.ts.map +1 -1
  130. package/resources/tools.js +6 -6
  131. package/resources/tools.js.map +1 -1
  132. package/resources/tools.mjs +6 -6
  133. package/resources/tools.mjs.map +1 -1
  134. package/src/client.ts +18 -18
  135. package/src/resources/agents/agents.ts +187 -177
  136. package/src/resources/agents/blocks.ts +35 -35
  137. package/src/resources/agents/index.ts +9 -9
  138. package/src/resources/agents/messages.ts +200 -200
  139. package/src/resources/archives/archives.ts +22 -17
  140. package/src/resources/archives/index.ts +1 -1
  141. package/src/resources/blocks/blocks.ts +69 -69
  142. package/src/resources/blocks/index.ts +1 -1
  143. package/src/resources/folders/folders.ts +16 -16
  144. package/src/resources/folders/index.ts +1 -1
  145. package/src/resources/groups/groups.ts +33 -33
  146. package/src/resources/groups/index.ts +4 -4
  147. package/src/resources/groups/messages.ts +126 -126
  148. package/src/resources/identities/identities.ts +22 -22
  149. package/src/resources/identities/index.ts +1 -1
  150. package/src/resources/index.ts +9 -9
  151. package/src/resources/mcp-servers/index.ts +2 -2
  152. package/src/resources/mcp-servers/mcp-servers.ts +23 -23
  153. package/src/resources/models/models.ts +5 -0
  154. package/src/resources/tools.ts +46 -46
  155. package/src/version.ts +1 -1
  156. package/version.d.mts +1 -1
  157. package/version.d.ts +1 -1
  158. package/version.js +1 -1
  159. package/version.mjs +1 -1
@@ -26,6 +26,13 @@ export class Archives extends APIResource {
26
26
  return this._client.get(path`/v1/archives/${archiveID}`, options);
27
27
  }
28
28
 
29
+ /**
30
+ * Update an existing archive's name and/or description.
31
+ */
32
+ update(archiveID: string, body: ArchiveUpdateParams, options?: RequestOptions): APIPromise<Archive> {
33
+ return this._client.patch(path`/v1/archives/${archiveID}`, { body, ...options });
34
+ }
35
+
29
36
  /**
30
37
  * Get a list of all archives for the current organization with optional filters
31
38
  * and pagination.
@@ -43,13 +50,6 @@ export class Archives extends APIResource {
43
50
  delete(archiveID: string, options?: RequestOptions): APIPromise<Archive> {
44
51
  return this._client.delete(path`/v1/archives/${archiveID}`, options);
45
52
  }
46
-
47
- /**
48
- * Update an existing archive's name and/or description.
49
- */
50
- modify(archiveID: string, body: ArchiveModifyParams, options?: RequestOptions): APIPromise<Archive> {
51
- return this._client.patch(path`/v1/archives/${archiveID}`, { body, ...options });
52
- }
53
53
  }
54
54
 
55
55
  export type ArchivesArrayPage = ArrayPage<Archive>;
@@ -116,14 +116,25 @@ export interface Archive {
116
116
  export type VectorDBProvider = 'native' | 'tpuf' | 'pinecone';
117
117
 
118
118
  export interface ArchiveCreateParams {
119
+ name: string;
120
+
121
+ description?: string | null;
122
+
119
123
  /**
120
- * Embedding configuration for the archive
124
+ * Embedding model handle for the archive
121
125
  */
122
- embedding_config: ModelsAPI.EmbeddingConfig;
126
+ embedding?: string | null;
123
127
 
124
- name: string;
128
+ /**
129
+ * Configuration for embedding model connection and processing parameters.
130
+ */
131
+ embedding_config?: ModelsAPI.EmbeddingConfig | null;
132
+ }
125
133
 
134
+ export interface ArchiveUpdateParams {
126
135
  description?: string | null;
136
+
137
+ name?: string | null;
127
138
  }
128
139
 
129
140
  export interface ArchiveListParams extends ArrayPageParams {
@@ -138,12 +149,6 @@ export interface ArchiveListParams extends ArrayPageParams {
138
149
  name?: string | null;
139
150
  }
140
151
 
141
- export interface ArchiveModifyParams {
142
- description?: string | null;
143
-
144
- name?: string | null;
145
- }
146
-
147
152
  Archives.Passages = Passages;
148
153
 
149
154
  export declare namespace Archives {
@@ -152,8 +157,8 @@ export declare namespace Archives {
152
157
  type VectorDBProvider as VectorDBProvider,
153
158
  type ArchivesArrayPage as ArchivesArrayPage,
154
159
  type ArchiveCreateParams as ArchiveCreateParams,
160
+ type ArchiveUpdateParams as ArchiveUpdateParams,
155
161
  type ArchiveListParams as ArchiveListParams,
156
- type ArchiveModifyParams as ArchiveModifyParams,
157
162
  };
158
163
 
159
164
  export {
@@ -5,8 +5,8 @@ export {
5
5
  type Archive,
6
6
  type VectorDBProvider,
7
7
  type ArchiveCreateParams,
8
+ type ArchiveUpdateParams,
8
9
  type ArchiveListParams,
9
- type ArchiveModifyParams,
10
10
  type ArchivesArrayPage,
11
11
  } from './archives';
12
12
  export {
@@ -25,6 +25,13 @@ export class Blocks extends APIResource {
25
25
  return this._client.get(path`/v1/blocks/${blockID}`, options);
26
26
  }
27
27
 
28
+ /**
29
+ * Update Block
30
+ */
31
+ update(blockID: string, body: BlockUpdateParams, options?: RequestOptions): APIPromise<BlockResponse> {
32
+ return this._client.patch(path`/v1/blocks/${blockID}`, { body, ...options });
33
+ }
34
+
28
35
  /**
29
36
  * List Blocks
30
37
  */
@@ -41,13 +48,6 @@ export class Blocks extends APIResource {
41
48
  delete(blockID: string, options?: RequestOptions): APIPromise<unknown> {
42
49
  return this._client.delete(path`/v1/blocks/${blockID}`, options);
43
50
  }
44
-
45
- /**
46
- * Modify Block
47
- */
48
- modify(blockID: string, body: BlockModifyParams, options?: RequestOptions): APIPromise<BlockResponse> {
49
- return this._client.patch(path`/v1/blocks/${blockID}`, { body, ...options });
50
- }
51
51
  }
52
52
 
53
53
  export type BlockResponsesArrayPage = ArrayPage<BlockResponse>;
@@ -297,148 +297,148 @@ export interface BlockCreateParams {
297
297
  template_name?: string | null;
298
298
  }
299
299
 
300
- export interface BlockListParams extends ArrayPageParams {
300
+ export interface BlockUpdateParams {
301
301
  /**
302
- * Filter blocks by the exact number of connected agents. If provided, returns
303
- * blocks that have exactly this number of connected agents.
302
+ * The base template id of the block.
304
303
  */
305
- connected_to_agents_count_eq?: Array<number> | null;
304
+ base_template_id?: string | null;
306
305
 
307
306
  /**
308
- * Filter blocks by the number of connected agents. If provided, returns blocks
309
- * that have more than this number of connected agents.
307
+ * The id of the deployment.
310
308
  */
311
- connected_to_agents_count_gt?: number | null;
309
+ deployment_id?: string | null;
312
310
 
313
311
  /**
314
- * Filter blocks by the number of connected agents. If provided, returns blocks
315
- * that have less than this number of connected agents.
312
+ * Description of the block.
316
313
  */
317
- connected_to_agents_count_lt?: number | null;
314
+ description?: string | null;
318
315
 
319
316
  /**
320
- * Search blocks by description. If provided, returns blocks that match this
321
- * description. This is a full-text search on block descriptions.
317
+ * The id of the entity within the template.
322
318
  */
323
- description_search?: string | null;
319
+ entity_id?: string | null;
324
320
 
325
321
  /**
326
- * Search agents by identifier keys
322
+ * If set to True, the block will be hidden.
327
323
  */
328
- identifier_keys?: Array<string> | null;
324
+ hidden?: boolean | null;
329
325
 
330
326
  /**
331
- * Search agents by identifier id
327
+ * Whether the block is a template (e.g. saved human/persona options).
332
328
  */
333
- identity_id?: string | null;
329
+ is_template?: boolean;
334
330
 
335
331
  /**
336
- * Labels to include (e.g. human, persona)
332
+ * Label of the block (e.g. 'human', 'persona') in the context window.
337
333
  */
338
334
  label?: string | null;
339
335
 
340
336
  /**
341
- * Search blocks by label. If provided, returns blocks that match this label. This
342
- * is a full-text search on labels.
337
+ * Character limit of the block.
343
338
  */
344
- label_search?: string | null;
339
+ limit?: number | null;
345
340
 
346
341
  /**
347
- * Name of the block
342
+ * Metadata of the block.
348
343
  */
349
- name?: string | null;
344
+ metadata?: { [key: string]: unknown } | null;
350
345
 
351
346
  /**
352
- * Search blocks by project id
347
+ * Preserve the block on template migration.
353
348
  */
354
- project_id?: string | null;
349
+ preserve_on_migration?: boolean | null;
355
350
 
356
351
  /**
357
- * Whether to include only templates
352
+ * The associated project id.
358
353
  */
359
- templates_only?: boolean;
354
+ project_id?: string | null;
360
355
 
361
356
  /**
362
- * Search blocks by value. If provided, returns blocks that match this value.
357
+ * Whether the agent has read-only access to the block.
363
358
  */
364
- value_search?: string | null;
365
- }
359
+ read_only?: boolean;
366
360
 
367
- export interface BlockModifyParams {
368
361
  /**
369
- * The base template id of the block.
362
+ * The id of the template.
370
363
  */
371
- base_template_id?: string | null;
364
+ template_id?: string | null;
372
365
 
373
366
  /**
374
- * The id of the deployment.
367
+ * Name of the block if it is a template.
375
368
  */
376
- deployment_id?: string | null;
369
+ template_name?: string | null;
377
370
 
378
371
  /**
379
- * Description of the block.
372
+ * Value of the block.
380
373
  */
381
- description?: string | null;
374
+ value?: string | null;
375
+ }
382
376
 
377
+ export interface BlockListParams extends ArrayPageParams {
383
378
  /**
384
- * The id of the entity within the template.
379
+ * Filter blocks by the exact number of connected agents. If provided, returns
380
+ * blocks that have exactly this number of connected agents.
385
381
  */
386
- entity_id?: string | null;
382
+ connected_to_agents_count_eq?: Array<number> | null;
387
383
 
388
384
  /**
389
- * If set to True, the block will be hidden.
385
+ * Filter blocks by the number of connected agents. If provided, returns blocks
386
+ * that have more than this number of connected agents.
390
387
  */
391
- hidden?: boolean | null;
388
+ connected_to_agents_count_gt?: number | null;
392
389
 
393
390
  /**
394
- * Whether the block is a template (e.g. saved human/persona options).
391
+ * Filter blocks by the number of connected agents. If provided, returns blocks
392
+ * that have less than this number of connected agents.
395
393
  */
396
- is_template?: boolean;
394
+ connected_to_agents_count_lt?: number | null;
397
395
 
398
396
  /**
399
- * Label of the block (e.g. 'human', 'persona') in the context window.
397
+ * Search blocks by description. If provided, returns blocks that match this
398
+ * description. This is a full-text search on block descriptions.
400
399
  */
401
- label?: string | null;
400
+ description_search?: string | null;
402
401
 
403
402
  /**
404
- * Character limit of the block.
403
+ * Search agents by identifier keys
405
404
  */
406
- limit?: number | null;
405
+ identifier_keys?: Array<string> | null;
407
406
 
408
407
  /**
409
- * Metadata of the block.
408
+ * Search agents by identifier id
410
409
  */
411
- metadata?: { [key: string]: unknown } | null;
410
+ identity_id?: string | null;
412
411
 
413
412
  /**
414
- * Preserve the block on template migration.
413
+ * Labels to include (e.g. human, persona)
415
414
  */
416
- preserve_on_migration?: boolean | null;
415
+ label?: string | null;
417
416
 
418
417
  /**
419
- * The associated project id.
418
+ * Search blocks by label. If provided, returns blocks that match this label. This
419
+ * is a full-text search on labels.
420
420
  */
421
- project_id?: string | null;
421
+ label_search?: string | null;
422
422
 
423
423
  /**
424
- * Whether the agent has read-only access to the block.
424
+ * Name of the block
425
425
  */
426
- read_only?: boolean;
426
+ name?: string | null;
427
427
 
428
428
  /**
429
- * The id of the template.
429
+ * Search blocks by project id
430
430
  */
431
- template_id?: string | null;
431
+ project_id?: string | null;
432
432
 
433
433
  /**
434
- * Name of the block if it is a template.
434
+ * Whether to include only templates
435
435
  */
436
- template_name?: string | null;
436
+ templates_only?: boolean;
437
437
 
438
438
  /**
439
- * Value of the block.
439
+ * Search blocks by value. If provided, returns blocks that match this value.
440
440
  */
441
- value?: string | null;
441
+ value_search?: string | null;
442
442
  }
443
443
 
444
444
  Blocks.Agents = Agents;
@@ -450,8 +450,8 @@ export declare namespace Blocks {
450
450
  type BlockDeleteResponse as BlockDeleteResponse,
451
451
  type BlockResponsesArrayPage as BlockResponsesArrayPage,
452
452
  type BlockCreateParams as BlockCreateParams,
453
+ type BlockUpdateParams as BlockUpdateParams,
453
454
  type BlockListParams as BlockListParams,
454
- type BlockModifyParams as BlockModifyParams,
455
455
  };
456
456
 
457
457
  export { Agents as Agents, type AgentListParams as AgentListParams };
@@ -7,7 +7,7 @@ export {
7
7
  type CreateBlock,
8
8
  type BlockDeleteResponse,
9
9
  type BlockCreateParams,
10
+ type BlockUpdateParams,
10
11
  type BlockListParams,
11
- type BlockModifyParams,
12
12
  type BlockResponsesArrayPage,
13
13
  } from './blocks';
@@ -37,6 +37,13 @@ export class Folders extends APIResource {
37
37
  return this._client.get(path`/v1/folders/${folderID}`, options);
38
38
  }
39
39
 
40
+ /**
41
+ * Update the name or documentation of an existing data folder.
42
+ */
43
+ update(folderID: string, body: FolderUpdateParams, options?: RequestOptions): APIPromise<Folder> {
44
+ return this._client.patch(path`/v1/folders/${folderID}`, { body, ...options });
45
+ }
46
+
40
47
  /**
41
48
  * List all data folders created by a user.
42
49
  */
@@ -53,13 +60,6 @@ export class Folders extends APIResource {
53
60
  delete(folderID: string, options?: RequestOptions): APIPromise<unknown> {
54
61
  return this._client.delete(path`/v1/folders/${folderID}`, options);
55
62
  }
56
-
57
- /**
58
- * Update the name or documentation of an existing data folder.
59
- */
60
- modify(folderID: string, body: FolderModifyParams, options?: RequestOptions): APIPromise<Folder> {
61
- return this._client.patch(path`/v1/folders/${folderID}`, { body, ...options });
62
- }
63
63
  }
64
64
 
65
65
  export type FoldersArrayPage = ArrayPage<Folder>;
@@ -158,14 +158,7 @@ export interface FolderCreateParams {
158
158
  metadata?: { [key: string]: unknown } | null;
159
159
  }
160
160
 
161
- export interface FolderListParams extends ArrayPageParams {
162
- /**
163
- * Folder name to filter by
164
- */
165
- name?: string | null;
166
- }
167
-
168
- export interface FolderModifyParams {
161
+ export interface FolderUpdateParams {
169
162
  /**
170
163
  * The description of the source.
171
164
  */
@@ -192,6 +185,13 @@ export interface FolderModifyParams {
192
185
  name?: string | null;
193
186
  }
194
187
 
188
+ export interface FolderListParams extends ArrayPageParams {
189
+ /**
190
+ * Folder name to filter by
191
+ */
192
+ name?: string | null;
193
+ }
194
+
195
195
  Folders.Files = Files;
196
196
  Folders.Agents = Agents;
197
197
 
@@ -201,8 +201,8 @@ export declare namespace Folders {
201
201
  type FolderDeleteResponse as FolderDeleteResponse,
202
202
  type FoldersArrayPage as FoldersArrayPage,
203
203
  type FolderCreateParams as FolderCreateParams,
204
+ type FolderUpdateParams as FolderUpdateParams,
204
205
  type FolderListParams as FolderListParams,
205
- type FolderModifyParams as FolderModifyParams,
206
206
  };
207
207
 
208
208
  export {
@@ -15,7 +15,7 @@ export {
15
15
  type Folder,
16
16
  type FolderDeleteResponse,
17
17
  type FolderCreateParams,
18
+ type FolderUpdateParams,
18
19
  type FolderListParams,
19
- type FolderModifyParams,
20
20
  type FoldersArrayPage,
21
21
  } from './folders';
@@ -3,13 +3,13 @@
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as MessagesAPI from './messages';
5
5
  import {
6
+ MessageCreateParams,
6
7
  MessageListParams,
7
- MessageModifyParams,
8
- MessageModifyResponse,
9
8
  MessageResetResponse,
10
- MessageSendParams,
11
9
  MessageStreamParams,
12
10
  MessageStreamResponse,
11
+ MessageUpdateParams,
12
+ MessageUpdateResponse,
13
13
  Messages,
14
14
  } from './messages';
15
15
  import { APIPromise } from '../../core/api-promise';
@@ -34,6 +34,13 @@ export class Groups extends APIResource {
34
34
  return this._client.get(path`/v1/groups/${groupID}`, options);
35
35
  }
36
36
 
37
+ /**
38
+ * Create a new multi-agent group with the specified configuration.
39
+ */
40
+ update(groupID: string, body: GroupUpdateParams, options?: RequestOptions): APIPromise<Group> {
41
+ return this._client.patch(path`/v1/groups/${groupID}`, { body, ...options });
42
+ }
43
+
37
44
  /**
38
45
  * Fetch all multi-agent groups matching query.
39
46
  */
@@ -50,13 +57,6 @@ export class Groups extends APIResource {
50
57
  delete(groupID: string, options?: RequestOptions): APIPromise<unknown> {
51
58
  return this._client.delete(path`/v1/groups/${groupID}`, options);
52
59
  }
53
-
54
- /**
55
- * Create a new multi-agent group with the specified configuration.
56
- */
57
- modify(groupID: string, body: GroupModifyParams, options?: RequestOptions): APIPromise<Group> {
58
- return this._client.patch(path`/v1/groups/${groupID}`, { body, ...options });
59
- }
60
60
  }
61
61
 
62
62
  export type GroupsArrayPage = ArrayPage<Group>;
@@ -216,29 +216,17 @@ export interface GroupCreateParams {
216
216
  shared_block_ids?: Array<string>;
217
217
  }
218
218
 
219
- export interface GroupListParams extends ArrayPageParams {
220
- /**
221
- * Search groups by manager type
222
- */
223
- manager_type?: ManagerType | null;
224
-
225
- /**
226
- * Search groups by project id
227
- */
228
- project_id?: string | null;
229
- }
230
-
231
- export interface GroupModifyParams {
219
+ export interface GroupUpdateParams {
232
220
  agent_ids?: Array<string> | null;
233
221
 
234
222
  description?: string | null;
235
223
 
236
224
  manager_config?:
237
- | GroupModifyParams.RoundRobinManagerUpdate
238
- | GroupModifyParams.SupervisorManagerUpdate
239
- | GroupModifyParams.DynamicManagerUpdate
240
- | GroupModifyParams.SleeptimeManagerUpdate
241
- | GroupModifyParams.VoiceSleeptimeManagerUpdate
225
+ | GroupUpdateParams.RoundRobinManagerUpdate
226
+ | GroupUpdateParams.SupervisorManagerUpdate
227
+ | GroupUpdateParams.DynamicManagerUpdate
228
+ | GroupUpdateParams.SleeptimeManagerUpdate
229
+ | GroupUpdateParams.VoiceSleeptimeManagerUpdate
242
230
  | null;
243
231
 
244
232
  /**
@@ -252,7 +240,7 @@ export interface GroupModifyParams {
252
240
  shared_block_ids?: Array<string> | null;
253
241
  }
254
242
 
255
- export namespace GroupModifyParams {
243
+ export namespace GroupUpdateParams {
256
244
  export interface RoundRobinManagerUpdate {
257
245
  manager_type?: 'round_robin';
258
246
 
@@ -303,6 +291,18 @@ export namespace GroupModifyParams {
303
291
  }
304
292
  }
305
293
 
294
+ export interface GroupListParams extends ArrayPageParams {
295
+ /**
296
+ * Search groups by manager type
297
+ */
298
+ manager_type?: ManagerType | null;
299
+
300
+ /**
301
+ * Search groups by project id
302
+ */
303
+ project_id?: string | null;
304
+ }
305
+
306
306
  Groups.Messages = Messages;
307
307
 
308
308
  export declare namespace Groups {
@@ -317,18 +317,18 @@ export declare namespace Groups {
317
317
  type GroupDeleteResponse as GroupDeleteResponse,
318
318
  type GroupsArrayPage as GroupsArrayPage,
319
319
  type GroupCreateParams as GroupCreateParams,
320
+ type GroupUpdateParams as GroupUpdateParams,
320
321
  type GroupListParams as GroupListParams,
321
- type GroupModifyParams as GroupModifyParams,
322
322
  };
323
323
 
324
324
  export {
325
325
  Messages as Messages,
326
- type MessageModifyResponse as MessageModifyResponse,
326
+ type MessageUpdateResponse as MessageUpdateResponse,
327
327
  type MessageResetResponse as MessageResetResponse,
328
328
  type MessageStreamResponse as MessageStreamResponse,
329
+ type MessageCreateParams as MessageCreateParams,
330
+ type MessageUpdateParams as MessageUpdateParams,
329
331
  type MessageListParams as MessageListParams,
330
- type MessageModifyParams as MessageModifyParams,
331
- type MessageSendParams as MessageSendParams,
332
332
  type MessageStreamParams as MessageStreamParams,
333
333
  };
334
334
  }
@@ -11,17 +11,17 @@ export {
11
11
  type VoiceSleeptimeManager,
12
12
  type GroupDeleteResponse,
13
13
  type GroupCreateParams,
14
+ type GroupUpdateParams,
14
15
  type GroupListParams,
15
- type GroupModifyParams,
16
16
  type GroupsArrayPage,
17
17
  } from './groups';
18
18
  export {
19
19
  Messages,
20
- type MessageModifyResponse,
20
+ type MessageUpdateResponse,
21
21
  type MessageResetResponse,
22
22
  type MessageStreamResponse,
23
+ type MessageCreateParams,
24
+ type MessageUpdateParams,
23
25
  type MessageListParams,
24
- type MessageModifyParams,
25
- type MessageSendParams,
26
26
  type MessageStreamParams,
27
27
  } from './messages';