@letta-ai/letta-client 1.0.0-alpha.15 → 1.0.0-alpha.16

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 (253) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/client.d.mts +20 -20
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +20 -20
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/agents/agents.d.mts +163 -52
  10. package/resources/agents/agents.d.mts.map +1 -1
  11. package/resources/agents/agents.d.ts +163 -52
  12. package/resources/agents/agents.d.ts.map +1 -1
  13. package/resources/agents/agents.js +0 -6
  14. package/resources/agents/agents.js.map +1 -1
  15. package/resources/agents/agents.mjs +1 -7
  16. package/resources/agents/agents.mjs.map +1 -1
  17. package/resources/agents/folders.d.mts +52 -76
  18. package/resources/agents/folders.d.mts.map +1 -1
  19. package/resources/agents/folders.d.ts +52 -76
  20. package/resources/agents/folders.d.ts.map +1 -1
  21. package/resources/agents/folders.js +5 -1
  22. package/resources/agents/folders.js.map +1 -1
  23. package/resources/agents/folders.mjs +5 -1
  24. package/resources/agents/folders.mjs.map +1 -1
  25. package/resources/agents/index.d.mts +4 -4
  26. package/resources/agents/index.d.mts.map +1 -1
  27. package/resources/agents/index.d.ts +4 -4
  28. package/resources/agents/index.d.ts.map +1 -1
  29. package/resources/agents/index.js.map +1 -1
  30. package/resources/agents/index.mjs.map +1 -1
  31. package/resources/agents/messages.d.mts +87 -18
  32. package/resources/agents/messages.d.mts.map +1 -1
  33. package/resources/agents/messages.d.ts +87 -18
  34. package/resources/agents/messages.d.ts.map +1 -1
  35. package/resources/agents/messages.js +5 -5
  36. package/resources/agents/messages.js.map +1 -1
  37. package/resources/agents/messages.mjs +5 -5
  38. package/resources/agents/messages.mjs.map +1 -1
  39. package/resources/agents/tools.d.mts +6 -27
  40. package/resources/agents/tools.d.mts.map +1 -1
  41. package/resources/agents/tools.d.ts +6 -27
  42. package/resources/agents/tools.d.ts.map +1 -1
  43. package/resources/agents/tools.js +5 -1
  44. package/resources/agents/tools.js.map +1 -1
  45. package/resources/agents/tools.mjs +5 -1
  46. package/resources/agents/tools.mjs.map +1 -1
  47. package/resources/archives.d.mts +9 -31
  48. package/resources/archives.d.mts.map +1 -1
  49. package/resources/archives.d.ts +9 -31
  50. package/resources/archives.d.ts.map +1 -1
  51. package/resources/archives.js +2 -1
  52. package/resources/archives.js.map +1 -1
  53. package/resources/archives.mjs +2 -1
  54. package/resources/archives.mjs.map +1 -1
  55. package/resources/batches/batches.d.mts +8 -30
  56. package/resources/batches/batches.d.mts.map +1 -1
  57. package/resources/batches/batches.d.ts +8 -30
  58. package/resources/batches/batches.d.ts.map +1 -1
  59. package/resources/batches/batches.js +2 -1
  60. package/resources/batches/batches.js.map +1 -1
  61. package/resources/batches/batches.mjs +2 -1
  62. package/resources/batches/batches.mjs.map +1 -1
  63. package/resources/batches/index.d.mts +2 -2
  64. package/resources/batches/index.d.mts.map +1 -1
  65. package/resources/batches/index.d.ts +2 -2
  66. package/resources/batches/index.d.ts.map +1 -1
  67. package/resources/batches/index.js.map +1 -1
  68. package/resources/batches/index.mjs.map +1 -1
  69. package/resources/batches/messages.d.mts +6 -30
  70. package/resources/batches/messages.d.mts.map +1 -1
  71. package/resources/batches/messages.d.ts +6 -30
  72. package/resources/batches/messages.d.ts.map +1 -1
  73. package/resources/batches/messages.js +2 -1
  74. package/resources/batches/messages.js.map +1 -1
  75. package/resources/batches/messages.mjs +2 -1
  76. package/resources/batches/messages.mjs.map +1 -1
  77. package/resources/blocks/blocks.d.mts +1 -6
  78. package/resources/blocks/blocks.d.mts.map +1 -1
  79. package/resources/blocks/blocks.d.ts +1 -6
  80. package/resources/blocks/blocks.d.ts.map +1 -1
  81. package/resources/blocks/blocks.js +0 -6
  82. package/resources/blocks/blocks.js.map +1 -1
  83. package/resources/blocks/blocks.mjs +0 -6
  84. package/resources/blocks/blocks.mjs.map +1 -1
  85. package/resources/blocks/index.d.mts +1 -1
  86. package/resources/blocks/index.d.mts.map +1 -1
  87. package/resources/blocks/index.d.ts +1 -1
  88. package/resources/blocks/index.d.ts.map +1 -1
  89. package/resources/blocks/index.js.map +1 -1
  90. package/resources/blocks/index.mjs.map +1 -1
  91. package/resources/folders/files.d.mts +73 -97
  92. package/resources/folders/files.d.mts.map +1 -1
  93. package/resources/folders/files.d.ts +73 -97
  94. package/resources/folders/files.d.ts.map +1 -1
  95. package/resources/folders/files.js +5 -1
  96. package/resources/folders/files.js.map +1 -1
  97. package/resources/folders/files.mjs +5 -1
  98. package/resources/folders/files.mjs.map +1 -1
  99. package/resources/folders/folders.d.mts +11 -38
  100. package/resources/folders/folders.d.mts.map +1 -1
  101. package/resources/folders/folders.d.ts +11 -38
  102. package/resources/folders/folders.d.ts.map +1 -1
  103. package/resources/folders/folders.js +2 -7
  104. package/resources/folders/folders.js.map +1 -1
  105. package/resources/folders/folders.mjs +2 -7
  106. package/resources/folders/folders.mjs.map +1 -1
  107. package/resources/folders/index.d.mts +2 -2
  108. package/resources/folders/index.d.mts.map +1 -1
  109. package/resources/folders/index.d.ts +2 -2
  110. package/resources/folders/index.d.ts.map +1 -1
  111. package/resources/folders/index.js.map +1 -1
  112. package/resources/folders/index.mjs.map +1 -1
  113. package/resources/groups/groups.d.mts +1 -6
  114. package/resources/groups/groups.d.mts.map +1 -1
  115. package/resources/groups/groups.d.ts +1 -6
  116. package/resources/groups/groups.d.ts.map +1 -1
  117. package/resources/groups/groups.js +0 -6
  118. package/resources/groups/groups.js.map +1 -1
  119. package/resources/groups/groups.mjs +0 -6
  120. package/resources/groups/groups.mjs.map +1 -1
  121. package/resources/groups/index.d.mts +1 -1
  122. package/resources/groups/index.d.mts.map +1 -1
  123. package/resources/groups/index.d.ts +1 -1
  124. package/resources/groups/index.d.ts.map +1 -1
  125. package/resources/groups/index.js.map +1 -1
  126. package/resources/groups/index.mjs.map +1 -1
  127. package/resources/groups/messages.d.mts +9 -3
  128. package/resources/groups/messages.d.mts.map +1 -1
  129. package/resources/groups/messages.d.ts +9 -3
  130. package/resources/groups/messages.d.ts.map +1 -1
  131. package/resources/identities/identities.d.mts +9 -36
  132. package/resources/identities/identities.d.mts.map +1 -1
  133. package/resources/identities/identities.d.ts +9 -36
  134. package/resources/identities/identities.d.ts.map +1 -1
  135. package/resources/identities/identities.js +2 -7
  136. package/resources/identities/identities.js.map +1 -1
  137. package/resources/identities/identities.mjs +2 -7
  138. package/resources/identities/identities.mjs.map +1 -1
  139. package/resources/identities/index.d.mts +1 -1
  140. package/resources/identities/index.d.mts.map +1 -1
  141. package/resources/identities/index.d.ts +1 -1
  142. package/resources/identities/index.d.ts.map +1 -1
  143. package/resources/identities/index.js.map +1 -1
  144. package/resources/identities/index.mjs.map +1 -1
  145. package/resources/index.d.mts +10 -10
  146. package/resources/index.d.mts.map +1 -1
  147. package/resources/index.d.ts +10 -10
  148. package/resources/index.d.ts.map +1 -1
  149. package/resources/index.js.map +1 -1
  150. package/resources/index.mjs.map +1 -1
  151. package/resources/mcp-servers/index.d.mts +2 -3
  152. package/resources/mcp-servers/index.d.mts.map +1 -1
  153. package/resources/mcp-servers/index.d.ts +2 -3
  154. package/resources/mcp-servers/index.d.ts.map +1 -1
  155. package/resources/mcp-servers/index.js +1 -3
  156. package/resources/mcp-servers/index.js.map +1 -1
  157. package/resources/mcp-servers/index.mjs +1 -2
  158. package/resources/mcp-servers/index.mjs.map +1 -1
  159. package/resources/mcp-servers/mcp-servers.d.mts +302 -378
  160. package/resources/mcp-servers/mcp-servers.d.mts.map +1 -1
  161. package/resources/mcp-servers/mcp-servers.d.ts +302 -378
  162. package/resources/mcp-servers/mcp-servers.d.ts.map +1 -1
  163. package/resources/mcp-servers/mcp-servers.js +17 -4
  164. package/resources/mcp-servers/mcp-servers.js.map +1 -1
  165. package/resources/mcp-servers/mcp-servers.mjs +17 -4
  166. package/resources/mcp-servers/mcp-servers.mjs.map +1 -1
  167. package/resources/mcp-servers/tools.d.mts +3 -41
  168. package/resources/mcp-servers/tools.d.mts.map +1 -1
  169. package/resources/mcp-servers/tools.d.ts +3 -41
  170. package/resources/mcp-servers/tools.d.ts.map +1 -1
  171. package/resources/mcp-servers/tools.js.map +1 -1
  172. package/resources/mcp-servers/tools.mjs.map +1 -1
  173. package/resources/models/embeddings.d.mts +71 -2
  174. package/resources/models/embeddings.d.mts.map +1 -1
  175. package/resources/models/embeddings.d.ts +71 -2
  176. package/resources/models/embeddings.d.ts.map +1 -1
  177. package/resources/models/embeddings.js +5 -1
  178. package/resources/models/embeddings.js.map +1 -1
  179. package/resources/models/embeddings.mjs +5 -1
  180. package/resources/models/embeddings.mjs.map +1 -1
  181. package/resources/models/models.d.mts +113 -2
  182. package/resources/models/models.d.mts.map +1 -1
  183. package/resources/models/models.d.ts +113 -2
  184. package/resources/models/models.d.ts.map +1 -1
  185. package/resources/models/models.js +5 -1
  186. package/resources/models/models.js.map +1 -1
  187. package/resources/models/models.mjs +5 -1
  188. package/resources/models/models.mjs.map +1 -1
  189. package/resources/runs/index.d.mts +1 -1
  190. package/resources/runs/index.d.mts.map +1 -1
  191. package/resources/runs/index.d.ts +1 -1
  192. package/resources/runs/index.d.ts.map +1 -1
  193. package/resources/runs/index.js.map +1 -1
  194. package/resources/runs/index.mjs.map +1 -1
  195. package/resources/runs/runs.d.mts +6 -27
  196. package/resources/runs/runs.d.mts.map +1 -1
  197. package/resources/runs/runs.d.ts +6 -27
  198. package/resources/runs/runs.d.ts.map +1 -1
  199. package/resources/runs/runs.js +2 -1
  200. package/resources/runs/runs.js.map +1 -1
  201. package/resources/runs/runs.mjs +2 -1
  202. package/resources/runs/runs.mjs.map +1 -1
  203. package/resources/tools.d.mts +6 -64
  204. package/resources/tools.d.mts.map +1 -1
  205. package/resources/tools.d.ts +6 -64
  206. package/resources/tools.d.ts.map +1 -1
  207. package/resources/tools.js +2 -7
  208. package/resources/tools.js.map +1 -1
  209. package/resources/tools.mjs +2 -7
  210. package/resources/tools.mjs.map +1 -1
  211. package/src/client.ts +37 -28
  212. package/src/resources/agents/agents.ts +181 -60
  213. package/src/resources/agents/folders.ts +60 -85
  214. package/src/resources/agents/index.ts +5 -2
  215. package/src/resources/agents/messages.ts +123 -18
  216. package/src/resources/agents/tools.ts +10 -34
  217. package/src/resources/archives.ts +12 -39
  218. package/src/resources/batches/batches.ts +10 -41
  219. package/src/resources/batches/index.ts +2 -2
  220. package/src/resources/batches/messages.ts +12 -37
  221. package/src/resources/blocks/blocks.ts +0 -10
  222. package/src/resources/blocks/index.ts +0 -1
  223. package/src/resources/folders/files.ts +88 -113
  224. package/src/resources/folders/folders.ts +14 -49
  225. package/src/resources/folders/index.ts +2 -2
  226. package/src/resources/groups/groups.ts +0 -10
  227. package/src/resources/groups/index.ts +0 -1
  228. package/src/resources/groups/messages.ts +10 -3
  229. package/src/resources/identities/identities.ts +12 -49
  230. package/src/resources/identities/index.ts +1 -2
  231. package/src/resources/index.ts +19 -14
  232. package/src/resources/mcp-servers/index.ts +14 -9
  233. package/src/resources/mcp-servers/mcp-servers.ts +313 -402
  234. package/src/resources/mcp-servers/tools.ts +6 -47
  235. package/src/resources/models/embeddings.ts +105 -2
  236. package/src/resources/models/models.ts +158 -2
  237. package/src/resources/runs/index.ts +1 -1
  238. package/src/resources/runs/runs.ts +11 -39
  239. package/src/resources/tools.ts +8 -88
  240. package/src/version.ts +1 -1
  241. package/version.d.mts +1 -1
  242. package/version.d.ts +1 -1
  243. package/version.js +1 -1
  244. package/version.mjs +1 -1
  245. package/resources/mcp-servers/refresh.d.mts +0 -24
  246. package/resources/mcp-servers/refresh.d.mts.map +0 -1
  247. package/resources/mcp-servers/refresh.d.ts +0 -24
  248. package/resources/mcp-servers/refresh.d.ts.map +0 -1
  249. package/resources/mcp-servers/refresh.js +0 -27
  250. package/resources/mcp-servers/refresh.js.map +0 -1
  251. package/resources/mcp-servers/refresh.mjs +0 -23
  252. package/resources/mcp-servers/refresh.mjs.map +0 -1
  253. package/src/resources/mcp-servers/refresh.ts +0 -43
@@ -1 +1 @@
1
- {"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,KAAK,SAAS;OACd,EAQL,MAAM,GACP;OACM,KAAK,QAAQ;OACb,EASL,KAAK,GACN;OACM,KAAK,UAAU;OACf,EAKL,OAAO,GACR;OACM,KAAK,SAAS;OACd,EAAmB,MAAM,EAAE;OAC3B,KAAK,WAAW;OAChB,EA8BL,QAAQ,GAoBT;OACM,KAAK,cAAc;OACnB,EAML,KAAK,GACN;OAMM,EAAE,SAAS,EAAqC;OAEhD,EAAE,YAAY,EAAE;OAEhB,EAAE,2BAA2B,EAAE;OAC/B,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,UAAK,GAAyB,IAAI,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAwF1E,CAAC;IAtFC;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;I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ACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,OAAO,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;OAGG;IACH,UAAU,CAAC,MAA6B,EAAE,OAAwB;QAChE,MAAM,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAClF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,mBAAmB,EACnB,2BAA2B,CACzB;YACE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,uBAAuB,IAAI,IAAI,CAAC,CAAC;wBACnC,EAAE,4BAA4B,EAAE,uBAAuB,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,EACD,IAAI,CAAC,OAAO,CACb,CACF,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAwiDD,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;AACrB,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;AACzB,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;AACrB,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;AACvB,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;AACvB,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -3,12 +3,13 @@ import * as ArchivesAPI from "../archives.mjs";
3
3
  import * as AgentsAPI from "./agents.mjs";
4
4
  import * as ModelsAPI from "../models/models.mjs";
5
5
  import { APIPromise } from "../../core/api-promise.mjs";
6
+ import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.mjs";
6
7
  import { RequestOptions } from "../../internal/request-options.mjs";
7
8
  export declare class Folders extends APIResource {
8
9
  /**
9
10
  * Get the folders associated with an agent.
10
11
  */
11
- list(agentID: string, query?: FolderListParams | null | undefined, options?: RequestOptions): APIPromise<FolderListResponse>;
12
+ list(agentID: string, query?: FolderListParams | null | undefined, options?: RequestOptions): PagePromise<FolderListResponsesArrayPage, FolderListResponse>;
12
13
  /**
13
14
  * Attach a folder to an agent.
14
15
  */
@@ -18,90 +19,65 @@ export declare class Folders extends APIResource {
18
19
  */
19
20
  detach(folderID: string, params: FolderDetachParams, options?: RequestOptions): APIPromise<AgentsAPI.AgentState>;
20
21
  }
21
- export type FolderListResponse = Array<FolderListResponse.FolderListResponseItem>;
22
- export declare namespace FolderListResponse {
23
- /**
24
- * Representation of a source, which is a collection of files and passages.
25
- *
26
- * Parameters: id (str): The ID of the source name (str): The name of the source.
27
- * embedding_config (EmbeddingConfig): The embedding configuration used by the
28
- * source. user_id (str): The ID of the user that created the source. metadata
29
- * (dict): Metadata associated with the source. description (str): The description
30
- * of the source.
31
- */
32
- interface FolderListResponseItem {
33
- /**
34
- * The embedding configuration used by the source.
35
- */
36
- embedding_config: ModelsAPI.EmbeddingConfig;
37
- /**
38
- * The name of the source.
39
- */
40
- name: string;
41
- /**
42
- * The human-friendly ID of the Source
43
- */
44
- id?: string;
45
- /**
46
- * The timestamp when the source was created.
47
- */
48
- created_at?: string | null;
49
- /**
50
- * The id of the user that made this Tool.
51
- */
52
- created_by_id?: string | null;
53
- /**
54
- * The description of the source.
55
- */
56
- description?: string | null;
57
- /**
58
- * Instructions for how to use the source.
59
- */
60
- instructions?: string | null;
61
- /**
62
- * The id of the user that made this Tool.
63
- */
64
- last_updated_by_id?: string | null;
65
- /**
66
- * Metadata associated with the source.
67
- */
68
- metadata?: {
69
- [key: string]: unknown;
70
- } | null;
71
- /**
72
- * The timestamp when the source was last updated.
73
- */
74
- updated_at?: string | null;
75
- /**
76
- * The vector database provider used for this source's passages
77
- */
78
- vector_db_provider?: ArchivesAPI.VectorDBProvider;
79
- }
80
- }
81
- export interface FolderListParams {
22
+ export type FolderListResponsesArrayPage = ArrayPage<FolderListResponse>;
23
+ /**
24
+ * Representation of a source, which is a collection of files and passages.
25
+ *
26
+ * Parameters: id (str): The ID of the source name (str): The name of the source.
27
+ * embedding_config (EmbeddingConfig): The embedding configuration used by the
28
+ * source. user_id (str): The ID of the user that created the source. metadata
29
+ * (dict): Metadata associated with the source. description (str): The description
30
+ * of the source.
31
+ */
32
+ export interface FolderListResponse {
33
+ /**
34
+ * The human-friendly ID of the Source
35
+ */
36
+ id: string;
37
+ /**
38
+ * The embedding configuration used by the source.
39
+ */
40
+ embedding_config: ModelsAPI.EmbeddingConfig;
41
+ /**
42
+ * The name of the source.
43
+ */
44
+ name: string;
82
45
  /**
83
- * Source ID cursor for pagination. Returns sources that come after this source ID
84
- * in the specified sort order
46
+ * The timestamp when the source was created.
85
47
  */
86
- after?: string | null;
48
+ created_at?: string | null;
87
49
  /**
88
- * Source ID cursor for pagination. Returns sources that come before this source ID
89
- * in the specified sort order
50
+ * The id of the user that made this Tool.
90
51
  */
91
- before?: string | null;
52
+ created_by_id?: string | null;
92
53
  /**
93
- * Maximum number of sources to return
54
+ * The description of the source.
94
55
  */
95
- limit?: number | null;
56
+ description?: string | null;
96
57
  /**
97
- * Sort order for sources by creation time. 'asc' for oldest first, 'desc' for
98
- * newest first
58
+ * Instructions for how to use the source.
99
59
  */
100
- order?: 'asc' | 'desc';
60
+ instructions?: string | null;
101
61
  /**
102
- * Field to sort by
62
+ * The id of the user that made this Tool.
103
63
  */
104
- order_by?: 'created_at';
64
+ last_updated_by_id?: string | null;
65
+ /**
66
+ * Metadata associated with the source.
67
+ */
68
+ metadata?: {
69
+ [key: string]: unknown;
70
+ } | null;
71
+ /**
72
+ * The timestamp when the source was last updated.
73
+ */
74
+ updated_at?: string | null;
75
+ /**
76
+ * The vector database provider used for this source's passages
77
+ */
78
+ vector_db_provider?: ArchivesAPI.VectorDBProvider;
79
+ }
80
+ export interface FolderListParams extends ArrayPageParams {
105
81
  }
106
82
  export interface FolderAttachParams {
107
83
  /**
@@ -116,6 +92,6 @@ export interface FolderDetachParams {
116
92
  agent_id: string;
117
93
  }
118
94
  export declare namespace Folders {
119
- export { type FolderListResponse as FolderListResponse, type FolderListParams as FolderListParams, type FolderAttachParams as FolderAttachParams, type FolderDetachParams as FolderDetachParams, };
95
+ export { type FolderListResponse as FolderListResponse, type FolderListResponsesArrayPage as FolderListResponsesArrayPage, type FolderListParams as FolderListParams, type FolderAttachParams as FolderAttachParams, type FolderDetachParams as FolderDetachParams, };
120
96
  }
121
97
  //# sourceMappingURL=folders.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"folders.d.mts","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,SAAS;OACd,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC;IAKnC;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC;CA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MAAM,CAAC;IAEX;;OAEG;IACH,gBAAgB,EAAE,SAAS,CAAC,eAAe,CAAC;IAE5C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAE7C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,kBAAkB,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC;CACnD;AAED,MAAM,WAAW,gBAAiB,SAAQ,eAAe;CAAG;AAE5D,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -3,12 +3,13 @@ import * as ArchivesAPI from "../archives.js";
3
3
  import * as AgentsAPI from "./agents.js";
4
4
  import * as ModelsAPI from "../models/models.js";
5
5
  import { APIPromise } from "../../core/api-promise.js";
6
+ import { ArrayPage, type ArrayPageParams, PagePromise } from "../../core/pagination.js";
6
7
  import { RequestOptions } from "../../internal/request-options.js";
7
8
  export declare class Folders extends APIResource {
8
9
  /**
9
10
  * Get the folders associated with an agent.
10
11
  */
11
- list(agentID: string, query?: FolderListParams | null | undefined, options?: RequestOptions): APIPromise<FolderListResponse>;
12
+ list(agentID: string, query?: FolderListParams | null | undefined, options?: RequestOptions): PagePromise<FolderListResponsesArrayPage, FolderListResponse>;
12
13
  /**
13
14
  * Attach a folder to an agent.
14
15
  */
@@ -18,90 +19,65 @@ export declare class Folders extends APIResource {
18
19
  */
19
20
  detach(folderID: string, params: FolderDetachParams, options?: RequestOptions): APIPromise<AgentsAPI.AgentState>;
20
21
  }
21
- export type FolderListResponse = Array<FolderListResponse.FolderListResponseItem>;
22
- export declare namespace FolderListResponse {
23
- /**
24
- * Representation of a source, which is a collection of files and passages.
25
- *
26
- * Parameters: id (str): The ID of the source name (str): The name of the source.
27
- * embedding_config (EmbeddingConfig): The embedding configuration used by the
28
- * source. user_id (str): The ID of the user that created the source. metadata
29
- * (dict): Metadata associated with the source. description (str): The description
30
- * of the source.
31
- */
32
- interface FolderListResponseItem {
33
- /**
34
- * The embedding configuration used by the source.
35
- */
36
- embedding_config: ModelsAPI.EmbeddingConfig;
37
- /**
38
- * The name of the source.
39
- */
40
- name: string;
41
- /**
42
- * The human-friendly ID of the Source
43
- */
44
- id?: string;
45
- /**
46
- * The timestamp when the source was created.
47
- */
48
- created_at?: string | null;
49
- /**
50
- * The id of the user that made this Tool.
51
- */
52
- created_by_id?: string | null;
53
- /**
54
- * The description of the source.
55
- */
56
- description?: string | null;
57
- /**
58
- * Instructions for how to use the source.
59
- */
60
- instructions?: string | null;
61
- /**
62
- * The id of the user that made this Tool.
63
- */
64
- last_updated_by_id?: string | null;
65
- /**
66
- * Metadata associated with the source.
67
- */
68
- metadata?: {
69
- [key: string]: unknown;
70
- } | null;
71
- /**
72
- * The timestamp when the source was last updated.
73
- */
74
- updated_at?: string | null;
75
- /**
76
- * The vector database provider used for this source's passages
77
- */
78
- vector_db_provider?: ArchivesAPI.VectorDBProvider;
79
- }
80
- }
81
- export interface FolderListParams {
22
+ export type FolderListResponsesArrayPage = ArrayPage<FolderListResponse>;
23
+ /**
24
+ * Representation of a source, which is a collection of files and passages.
25
+ *
26
+ * Parameters: id (str): The ID of the source name (str): The name of the source.
27
+ * embedding_config (EmbeddingConfig): The embedding configuration used by the
28
+ * source. user_id (str): The ID of the user that created the source. metadata
29
+ * (dict): Metadata associated with the source. description (str): The description
30
+ * of the source.
31
+ */
32
+ export interface FolderListResponse {
33
+ /**
34
+ * The human-friendly ID of the Source
35
+ */
36
+ id: string;
37
+ /**
38
+ * The embedding configuration used by the source.
39
+ */
40
+ embedding_config: ModelsAPI.EmbeddingConfig;
41
+ /**
42
+ * The name of the source.
43
+ */
44
+ name: string;
82
45
  /**
83
- * Source ID cursor for pagination. Returns sources that come after this source ID
84
- * in the specified sort order
46
+ * The timestamp when the source was created.
85
47
  */
86
- after?: string | null;
48
+ created_at?: string | null;
87
49
  /**
88
- * Source ID cursor for pagination. Returns sources that come before this source ID
89
- * in the specified sort order
50
+ * The id of the user that made this Tool.
90
51
  */
91
- before?: string | null;
52
+ created_by_id?: string | null;
92
53
  /**
93
- * Maximum number of sources to return
54
+ * The description of the source.
94
55
  */
95
- limit?: number | null;
56
+ description?: string | null;
96
57
  /**
97
- * Sort order for sources by creation time. 'asc' for oldest first, 'desc' for
98
- * newest first
58
+ * Instructions for how to use the source.
99
59
  */
100
- order?: 'asc' | 'desc';
60
+ instructions?: string | null;
101
61
  /**
102
- * Field to sort by
62
+ * The id of the user that made this Tool.
103
63
  */
104
- order_by?: 'created_at';
64
+ last_updated_by_id?: string | null;
65
+ /**
66
+ * Metadata associated with the source.
67
+ */
68
+ metadata?: {
69
+ [key: string]: unknown;
70
+ } | null;
71
+ /**
72
+ * The timestamp when the source was last updated.
73
+ */
74
+ updated_at?: string | null;
75
+ /**
76
+ * The vector database provider used for this source's passages
77
+ */
78
+ vector_db_provider?: ArchivesAPI.VectorDBProvider;
79
+ }
80
+ export interface FolderListParams extends ArrayPageParams {
105
81
  }
106
82
  export interface FolderAttachParams {
107
83
  /**
@@ -116,6 +92,6 @@ export interface FolderDetachParams {
116
92
  agent_id: string;
117
93
  }
118
94
  export declare namespace Folders {
119
- export { type FolderListResponse as FolderListResponse, type FolderListParams as FolderListParams, type FolderAttachParams as FolderAttachParams, type FolderDetachParams as FolderDetachParams, };
95
+ export { type FolderListResponse as FolderListResponse, type FolderListResponsesArrayPage as FolderListResponsesArrayPage, type FolderListParams as FolderListParams, type FolderAttachParams as FolderAttachParams, type FolderDetachParams as FolderDetachParams, };
120
96
  }
121
97
  //# sourceMappingURL=folders.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,SAAS;OACd,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAIjC;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC;IAKnC;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,SAAS,CAAC,UAAU,CAAC;CAIpC;AAED,MAAM,MAAM,kBAAkB,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gBAAgB,EAAE,SAAS,CAAC,eAAe,CAAC;IAE5C;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAE7C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;OAEG;IACH,kBAAkB,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAC;CACnD;AAED,MAAM,WAAW,gBAAiB,SAAQ,eAAe;CAAG;AAE5D,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -3,13 +3,17 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Folders = void 0;
5
5
  const resource_1 = require("../../core/resource.js");
6
+ const pagination_1 = require("../../core/pagination.js");
6
7
  const path_1 = require("../../internal/utils/path.js");
7
8
  class Folders extends resource_1.APIResource {
8
9
  /**
9
10
  * Get the folders associated with an agent.
10
11
  */
11
12
  list(agentID, query = {}, options) {
12
- return this._client.get((0, path_1.path) `/v1/agents/${agentID}/folders`, { query, ...options });
13
+ return this._client.getAPIList((0, path_1.path) `/v1/agents/${agentID}/folders`, (pagination_1.ArrayPage), {
14
+ query,
15
+ ...options,
16
+ });
13
17
  }
14
18
  /**
15
19
  * Attach a folder to an agent.
@@ -1 +1 @@
1
- {"version":3,"file":"folders.js","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAMlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,mBAAmB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,mBAAmB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF;AAnCD,0BAmCC"}
1
+ {"version":3,"file":"folders.js","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,yDAAqF;AAErF,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,UAAU,EAAE,CAAA,sBAA6B,CAAA,EAAE;YACjG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,mBAAmB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,mBAAmB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF;AAtCD,0BAsCC"}
@@ -1,12 +1,16 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
+ import { ArrayPage } from "../../core/pagination.mjs";
3
4
  import { path } from "../../internal/utils/path.mjs";
4
5
  export class Folders extends APIResource {
5
6
  /**
6
7
  * Get the folders associated with an agent.
7
8
  */
8
9
  list(agentID, query = {}, options) {
9
- return this._client.get(path `/v1/agents/${agentID}/folders`, { query, ...options });
10
+ return this._client.getAPIList(path `/v1/agents/${agentID}/folders`, (ArrayPage), {
11
+ query,
12
+ ...options,
13
+ });
10
14
  }
11
15
  /**
12
16
  * Attach a folder to an agent.
@@ -1 +1 @@
1
- {"version":3,"file":"folders.mjs","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAMf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,OAAO,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,QAAQ,mBAAmB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,QAAQ,mBAAmB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF"}
1
+ {"version":3,"file":"folders.mjs","sourceRoot":"","sources":["../../src/resources/agents/folders.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAKf,EAAE,SAAS,EAAqC;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,cAAc,OAAO,UAAU,EAAE,CAAA,SAA6B,CAAA,EAAE;YACjG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,QAAQ,mBAAmB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,QAAQ,mBAAmB,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9F,CAAC;CACF"}
@@ -1,8 +1,8 @@
1
- export { Agents, type AgentEnvironmentVariable, type AgentState, type AgentType, type ChildToolRule, type ConditionalToolRule, type ContinueToolRule, type InitToolRule, type JsonObjectResponseFormat, type JsonSchemaResponseFormat, type LettaMessageContentUnion, type MaxCountPerStepToolRule, type MessageCreate, type ParentToolRule, type RequiredBeforeExitToolRule, type RequiresApprovalToolRule, type TerminalToolRule, type TextResponseFormat, type AgentDeleteResponse, type AgentCountResponse, type AgentExportFileResponse, type AgentImportFileResponse, type AgentCreateParams, type AgentRetrieveParams, type AgentListParams, type AgentExportFileParams, type AgentImportFileParams, type AgentModifyParams, type AgentStatesArrayPage, } from "./agents.mjs";
1
+ export { Agents, type AgentEnvironmentVariable, type AgentState, type AgentType, type ChildToolRule, type ConditionalToolRule, type ContinueToolRule, type InitToolRule, type JsonObjectResponseFormat, type JsonSchemaResponseFormat, type LettaMessageContentUnion, type MaxCountPerStepToolRule, type MessageCreate, type ParentToolRule, type RequiredBeforeExitToolRule, type RequiresApprovalToolRule, type TerminalToolRule, type TextResponseFormat, type AgentDeleteResponse, type AgentExportFileResponse, type AgentImportFileResponse, type AgentCreateParams, type AgentRetrieveParams, type AgentListParams, type AgentExportFileParams, type AgentImportFileParams, type AgentModifyParams, type AgentStatesArrayPage, } from "./agents.mjs";
2
2
  export { Blocks, type Block, type BlockModify, type BlockRetrieveParams, type BlockListParams, type BlockAttachParams, type BlockDetachParams, type BlockModifyParams, } from "./blocks.mjs";
3
3
  export { Files, type FileListResponse, type FileCloseResponse, type FileCloseAllResponse, type FileOpenResponse, type FileListParams, type FileCloseParams, type FileOpenParams, type FileListResponsesNextFilesPage, } from "./files.mjs";
4
- export { Folders, type FolderListResponse, type FolderListParams, type FolderAttachParams, type FolderDetachParams, } from "./folders.mjs";
4
+ export { Folders, type FolderListResponse, type FolderListParams, type FolderAttachParams, type FolderDetachParams, type FolderListResponsesArrayPage, } from "./folders.mjs";
5
5
  export { Groups, type GroupListParams } from "./groups.mjs";
6
- export { Messages, type ApprovalCreate, type ApprovalRequestMessage, type ApprovalResponseMessage, type AssistantMessage, type EventMessage, type HiddenReasoningMessage, type ImageContent, type JobStatus, type JobType, type LettaAssistantMessageContentUnion, type LettaMessageUnion, type LettaRequest, type LettaResponse, type LettaStreamingRequest, type LettaStreamingResponse, type LettaUserMessageContentUnion, type Message, type MessageRole, type MessageType, type OmittedReasoningContent, type ReasoningContent, type ReasoningMessage, type RedactedReasoningContent, type Run, type SummaryMessage, type SystemMessage, type TextContent, type ToolCall, type ToolCallContent, type ToolCallDelta, type ToolCallMessage, type ToolReturn, type ToolReturnContent, type UpdateAssistantMessage, type UpdateReasoningMessage, type UpdateSystemMessage, type UpdateUserMessage, type UserMessage, type MessageCancelResponse, type MessageModifyResponse, type MessageListParams, type MessageCancelParams, type MessageModifyParams, type MessageResetParams, type MessageSendParams, type MessageSendAsyncParams, type MessageStreamParams, type LettaMessageUnionsArrayPage, } from "./messages.mjs";
7
- export { Tools, type ToolListResponse, type ToolListParams, type ToolAttachParams, type ToolDetachParams, type ToolUpdateApprovalParams, } from "./tools.mjs";
6
+ export { Messages, type ApprovalCreate, type ApprovalRequestMessage, type ApprovalResponseMessage, type AssistantMessage, type EventMessage, type HiddenReasoningMessage, type ImageContent, type JobStatus, type JobType, type LettaAssistantMessageContentUnion, type LettaMessageUnion, type LettaRequest, type LettaResponse, type LettaStreamingRequest, type LettaStreamingResponse, type LettaUserMessageContentUnion, type Message, type MessageRole, type MessageType, type OmittedReasoningContent, type ReasoningContent, type ReasoningMessage, type RedactedReasoningContent, type Run, type SummaryMessage, type SystemMessage, type TextContent, type ToolCall, type ToolCallContent, type ToolCallDelta, type ToolCallMessage, type ToolReturn, type ToolReturnContent, type UpdateAssistantMessage, type UpdateReasoningMessage, type UpdateSystemMessage, type UpdateUserMessage, type UserMessage, type MessageCancelResponse, type MessageModifyResponse, type MessageListParams, type MessageCancelParams, type MessageModifyParams, type MessageResetParams, type MessageSendParams, type MessageSendParamsNonStreaming, type MessageSendParamsStreaming, type MessageSendAsyncParams, type MessageStreamParams, type LettaMessageUnionsArrayPage, type RunsArrayPage, type MessagesObjectPage, } from "./messages.mjs";
7
+ export { Tools, type ToolListParams, type ToolAttachParams, type ToolDetachParams, type ToolUpdateApprovalParams, } from "./tools.mjs";
8
8
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC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B,EAC5B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,GAAG,EACR,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,GACjC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,GAC9B"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,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AK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,aAAa,EAClB,KAAK,kBAAkB,GACxB;OACM,EACL,KAAK,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,GAC9B"}
@@ -1,8 +1,8 @@
1
- export { Agents, type AgentEnvironmentVariable, type AgentState, type AgentType, type ChildToolRule, type ConditionalToolRule, type ContinueToolRule, type InitToolRule, type JsonObjectResponseFormat, type JsonSchemaResponseFormat, type LettaMessageContentUnion, type MaxCountPerStepToolRule, type MessageCreate, type ParentToolRule, type RequiredBeforeExitToolRule, type RequiresApprovalToolRule, type TerminalToolRule, type TextResponseFormat, type AgentDeleteResponse, type AgentCountResponse, type AgentExportFileResponse, type AgentImportFileResponse, type AgentCreateParams, type AgentRetrieveParams, type AgentListParams, type AgentExportFileParams, type AgentImportFileParams, type AgentModifyParams, type AgentStatesArrayPage, } from "./agents.js";
1
+ export { Agents, type AgentEnvironmentVariable, type AgentState, type AgentType, type ChildToolRule, type ConditionalToolRule, type ContinueToolRule, type InitToolRule, type JsonObjectResponseFormat, type JsonSchemaResponseFormat, type LettaMessageContentUnion, type MaxCountPerStepToolRule, type MessageCreate, type ParentToolRule, type RequiredBeforeExitToolRule, type RequiresApprovalToolRule, type TerminalToolRule, type TextResponseFormat, type AgentDeleteResponse, type AgentExportFileResponse, type AgentImportFileResponse, type AgentCreateParams, type AgentRetrieveParams, type AgentListParams, type AgentExportFileParams, type AgentImportFileParams, type AgentModifyParams, type AgentStatesArrayPage, } from "./agents.js";
2
2
  export { Blocks, type Block, type BlockModify, type BlockRetrieveParams, type BlockListParams, type BlockAttachParams, type BlockDetachParams, type BlockModifyParams, } from "./blocks.js";
3
3
  export { Files, type FileListResponse, type FileCloseResponse, type FileCloseAllResponse, type FileOpenResponse, type FileListParams, type FileCloseParams, type FileOpenParams, type FileListResponsesNextFilesPage, } from "./files.js";
4
- export { Folders, type FolderListResponse, type FolderListParams, type FolderAttachParams, type FolderDetachParams, } from "./folders.js";
4
+ export { Folders, type FolderListResponse, type FolderListParams, type FolderAttachParams, type FolderDetachParams, type FolderListResponsesArrayPage, } from "./folders.js";
5
5
  export { Groups, type GroupListParams } from "./groups.js";
6
- export { Messages, type ApprovalCreate, type ApprovalRequestMessage, type ApprovalResponseMessage, type AssistantMessage, type EventMessage, type HiddenReasoningMessage, type ImageContent, type JobStatus, type JobType, type LettaAssistantMessageContentUnion, type LettaMessageUnion, type LettaRequest, type LettaResponse, type LettaStreamingRequest, type LettaStreamingResponse, type LettaUserMessageContentUnion, type Message, type MessageRole, type MessageType, type OmittedReasoningContent, type ReasoningContent, type ReasoningMessage, type RedactedReasoningContent, type Run, type SummaryMessage, type SystemMessage, type TextContent, type ToolCall, type ToolCallContent, type ToolCallDelta, type ToolCallMessage, type ToolReturn, type ToolReturnContent, type UpdateAssistantMessage, type UpdateReasoningMessage, type UpdateSystemMessage, type UpdateUserMessage, type UserMessage, type MessageCancelResponse, type MessageModifyResponse, type MessageListParams, type MessageCancelParams, type MessageModifyParams, type MessageResetParams, type MessageSendParams, type MessageSendAsyncParams, type MessageStreamParams, type LettaMessageUnionsArrayPage, } from "./messages.js";
7
- export { Tools, type ToolListResponse, type ToolListParams, type ToolAttachParams, type ToolDetachParams, type ToolUpdateApprovalParams, } from "./tools.js";
6
+ export { Messages, type ApprovalCreate, type ApprovalRequestMessage, type ApprovalResponseMessage, type AssistantMessage, type EventMessage, type HiddenReasoningMessage, type ImageContent, type JobStatus, type JobType, type LettaAssistantMessageContentUnion, type LettaMessageUnion, type LettaRequest, type LettaResponse, type LettaStreamingRequest, type LettaStreamingResponse, type LettaUserMessageContentUnion, type Message, type MessageRole, type MessageType, type OmittedReasoningContent, type ReasoningContent, type ReasoningMessage, type RedactedReasoningContent, type Run, type SummaryMessage, type SystemMessage, type TextContent, type ToolCall, type ToolCallContent, type ToolCallDelta, type ToolCallMessage, type ToolReturn, type ToolReturnContent, type UpdateAssistantMessage, type UpdateReasoningMessage, type UpdateSystemMessage, type UpdateUserMessage, type UserMessage, type MessageCancelResponse, type MessageModifyResponse, type MessageListParams, type MessageCancelParams, type MessageModifyParams, type MessageResetParams, type MessageSendParams, type MessageSendParamsNonStreaming, type MessageSendParamsStreaming, type MessageSendAsyncParams, type MessageStreamParams, type LettaMessageUnionsArrayPage, type RunsArrayPage, type MessagesObjectPage, } from "./messages.js";
7
+ export { Tools, type ToolListParams, type ToolAttachParams, type ToolDetachParams, type ToolUpdateApprovalParams, } from "./tools.js";
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,iBA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AK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,GACjC;OACM,EACL,KAAK,EACL,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,GAC9B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B;OACM,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,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,EACxB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,aAAa,EAClB,KAAK,kBAAkB,GACxB;OACM,EACL,KAAK,EACL,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,GAC9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCA8BkB;AA7BhB,gGAAA,MAAM,OAAA;AA8BR,sCASkB;AARhB,gGAAA,MAAM,OAAA;AASR,oCAUiB;AATf,8FAAA,KAAK,OAAA;AAUP,wCAMmB;AALjB,kGAAA,OAAO,OAAA;AAMT,sCAAwD;AAA/C,gGAAA,MAAM,OAAA;AACf,0CAkDoB;AAjDlB,oGAAA,QAAQ,OAAA;AAkDV,oCAOiB;AANf,8FAAA,KAAK,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCA6BkB;AA5BhB,gGAAA,MAAM,OAAA;AA6BR,sCASkB;AARhB,gGAAA,MAAM,OAAA;AASR,oCAUiB;AATf,8FAAA,KAAK,OAAA;AAUP,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,sCAAwD;AAA/C,gGAAA,MAAM,OAAA;AACf,0CAsDoB;AArDlB,oGAAA,QAAQ,OAAA;AAsDV,oCAMiB;AALf,8FAAA,KAAK,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GA6BP;OACM,EACL,MAAM,GAQP;OACM,EACL,KAAK,GASN;OACM,EACL,OAAO,GAKR;OACM,EAAE,MAAM,EAAwB;OAChC,EACL,QAAQ,GAiDT;OACM,EACL,KAAK,GAMN"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/agents/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GA4BP;OACM,EACL,MAAM,GAQP;OACM,EACL,KAAK,GASN;OACM,EACL,OAAO,GAMR;OACM,EAAE,MAAM,EAAwB;OAChC,EACL,QAAQ,GAqDT;OACM,EACL,KAAK,GAKN"}