@letta-ai/letta-client 1.6.6 → 1.6.7

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 (226) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/client.d.mts +2 -11
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -11
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -9
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -9
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agents/agents.d.mts +165 -13
  12. package/resources/agents/agents.d.mts.map +1 -1
  13. package/resources/agents/agents.d.ts +165 -13
  14. package/resources/agents/agents.d.ts.map +1 -1
  15. package/resources/agents/agents.js +0 -8
  16. package/resources/agents/agents.js.map +1 -1
  17. package/resources/agents/agents.mjs +0 -8
  18. package/resources/agents/agents.mjs.map +1 -1
  19. package/resources/agents/index.d.mts +1 -3
  20. package/resources/agents/index.d.mts.map +1 -1
  21. package/resources/agents/index.d.ts +1 -3
  22. package/resources/agents/index.d.ts.map +1 -1
  23. package/resources/agents/index.js +1 -5
  24. package/resources/agents/index.js.map +1 -1
  25. package/resources/agents/index.mjs +0 -2
  26. package/resources/agents/index.mjs.map +1 -1
  27. package/resources/agents/messages.d.mts +1 -2
  28. package/resources/agents/messages.d.mts.map +1 -1
  29. package/resources/agents/messages.d.ts +1 -2
  30. package/resources/agents/messages.d.ts.map +1 -1
  31. package/resources/agents/messages.js.map +1 -1
  32. package/resources/agents/messages.mjs.map +1 -1
  33. package/resources/conversations/conversations.d.mts +2 -2
  34. package/resources/conversations/conversations.d.mts.map +1 -1
  35. package/resources/conversations/conversations.d.ts +2 -2
  36. package/resources/conversations/conversations.d.ts.map +1 -1
  37. package/resources/conversations/conversations.js.map +1 -1
  38. package/resources/conversations/conversations.mjs.map +1 -1
  39. package/resources/conversations/index.d.mts +1 -1
  40. package/resources/conversations/index.d.mts.map +1 -1
  41. package/resources/conversations/index.d.ts +1 -1
  42. package/resources/conversations/index.d.ts.map +1 -1
  43. package/resources/conversations/index.js.map +1 -1
  44. package/resources/conversations/index.mjs.map +1 -1
  45. package/resources/conversations/messages.d.mts +12 -16
  46. package/resources/conversations/messages.d.mts.map +1 -1
  47. package/resources/conversations/messages.d.ts +12 -16
  48. package/resources/conversations/messages.d.ts.map +1 -1
  49. package/resources/conversations/messages.js +3 -3
  50. package/resources/conversations/messages.js.map +1 -1
  51. package/resources/conversations/messages.mjs +3 -3
  52. package/resources/conversations/messages.mjs.map +1 -1
  53. package/resources/index.d.mts +1 -4
  54. package/resources/index.d.mts.map +1 -1
  55. package/resources/index.d.ts +1 -4
  56. package/resources/index.d.ts.map +1 -1
  57. package/resources/index.js +1 -7
  58. package/resources/index.js.map +1 -1
  59. package/resources/index.mjs +0 -3
  60. package/resources/index.mjs.map +1 -1
  61. package/resources/messages.d.mts +6 -1
  62. package/resources/messages.d.mts.map +1 -1
  63. package/resources/messages.d.ts +6 -1
  64. package/resources/messages.d.ts.map +1 -1
  65. package/resources/messages.js +7 -0
  66. package/resources/messages.js.map +1 -1
  67. package/resources/messages.mjs +7 -0
  68. package/resources/messages.mjs.map +1 -1
  69. package/src/client.ts +2 -79
  70. package/src/resources/agents/agents.ts +210 -37
  71. package/src/resources/agents/index.ts +0 -13
  72. package/src/resources/agents/messages.ts +1 -3
  73. package/src/resources/conversations/conversations.ts +0 -2
  74. package/src/resources/conversations/index.ts +0 -1
  75. package/src/resources/conversations/messages.ts +17 -19
  76. package/src/resources/index.ts +1 -35
  77. package/src/resources/messages.ts +11 -0
  78. package/src/version.ts +1 -1
  79. package/version.d.mts +1 -1
  80. package/version.d.ts +1 -1
  81. package/version.js +1 -1
  82. package/version.mjs +1 -1
  83. package/resources/agents/groups.d.mts +0 -22
  84. package/resources/agents/groups.d.mts.map +0 -1
  85. package/resources/agents/groups.d.ts +0 -22
  86. package/resources/agents/groups.d.ts.map +0 -1
  87. package/resources/agents/groups.js +0 -20
  88. package/resources/agents/groups.js.map +0 -1
  89. package/resources/agents/groups.mjs +0 -16
  90. package/resources/agents/groups.mjs.map +0 -1
  91. package/resources/agents/schedule.d.mts +0 -197
  92. package/resources/agents/schedule.d.mts.map +0 -1
  93. package/resources/agents/schedule.d.ts +0 -197
  94. package/resources/agents/schedule.d.ts.map +0 -1
  95. package/resources/agents/schedule.js +0 -40
  96. package/resources/agents/schedule.js.map +0 -1
  97. package/resources/agents/schedule.mjs +0 -36
  98. package/resources/agents/schedule.mjs.map +0 -1
  99. package/resources/batches/batches.d.mts +0 -240
  100. package/resources/batches/batches.d.mts.map +0 -1
  101. package/resources/batches/batches.d.ts +0 -240
  102. package/resources/batches/batches.d.ts.map +0 -1
  103. package/resources/batches/batches.js +0 -46
  104. package/resources/batches/batches.js.map +0 -1
  105. package/resources/batches/batches.mjs +0 -41
  106. package/resources/batches/batches.mjs.map +0 -1
  107. package/resources/batches/index.d.mts +0 -3
  108. package/resources/batches/index.d.mts.map +0 -1
  109. package/resources/batches/index.d.ts +0 -3
  110. package/resources/batches/index.d.ts.map +0 -1
  111. package/resources/batches/index.js +0 -9
  112. package/resources/batches/index.js.map +0 -1
  113. package/resources/batches/index.mjs +0 -4
  114. package/resources/batches/index.mjs.map +0 -1
  115. package/resources/batches/messages.d.mts +0 -22
  116. package/resources/batches/messages.d.mts.map +0 -1
  117. package/resources/batches/messages.d.ts +0 -22
  118. package/resources/batches/messages.d.ts.map +0 -1
  119. package/resources/batches/messages.js +0 -17
  120. package/resources/batches/messages.js.map +0 -1
  121. package/resources/batches/messages.mjs +0 -13
  122. package/resources/batches/messages.mjs.map +0 -1
  123. package/resources/batches.d.mts +0 -2
  124. package/resources/batches.d.mts.map +0 -1
  125. package/resources/batches.d.ts +0 -2
  126. package/resources/batches.d.ts.map +0 -1
  127. package/resources/batches.js +0 -6
  128. package/resources/batches.js.map +0 -1
  129. package/resources/batches.mjs +0 -3
  130. package/resources/batches.mjs.map +0 -1
  131. package/resources/groups/groups.d.mts +0 -197
  132. package/resources/groups/groups.d.mts.map +0 -1
  133. package/resources/groups/groups.d.ts +0 -197
  134. package/resources/groups/groups.d.ts.map +0 -1
  135. package/resources/groups/groups.js +0 -49
  136. package/resources/groups/groups.js.map +0 -1
  137. package/resources/groups/groups.mjs +0 -44
  138. package/resources/groups/groups.mjs.map +0 -1
  139. package/resources/groups/index.d.mts +0 -3
  140. package/resources/groups/index.d.mts.map +0 -1
  141. package/resources/groups/index.d.ts +0 -3
  142. package/resources/groups/index.d.ts.map +0 -1
  143. package/resources/groups/index.js +0 -9
  144. package/resources/groups/index.js.map +0 -1
  145. package/resources/groups/index.mjs +0 -4
  146. package/resources/groups/index.mjs.map +0 -1
  147. package/resources/groups/messages.d.mts +0 -360
  148. package/resources/groups/messages.d.mts.map +0 -1
  149. package/resources/groups/messages.d.ts +0 -360
  150. package/resources/groups/messages.d.ts.map +0 -1
  151. package/resources/groups/messages.js +0 -54
  152. package/resources/groups/messages.js.map +0 -1
  153. package/resources/groups/messages.mjs +0 -50
  154. package/resources/groups/messages.mjs.map +0 -1
  155. package/resources/groups.d.mts +0 -2
  156. package/resources/groups.d.mts.map +0 -1
  157. package/resources/groups.d.ts +0 -2
  158. package/resources/groups.d.ts.map +0 -1
  159. package/resources/groups.js +0 -6
  160. package/resources/groups.js.map +0 -1
  161. package/resources/groups.mjs +0 -3
  162. package/resources/groups.mjs.map +0 -1
  163. package/resources/identities/agents.d.mts +0 -23
  164. package/resources/identities/agents.d.mts.map +0 -1
  165. package/resources/identities/agents.d.ts +0 -23
  166. package/resources/identities/agents.d.ts.map +0 -1
  167. package/resources/identities/agents.js +0 -17
  168. package/resources/identities/agents.js.map +0 -1
  169. package/resources/identities/agents.mjs +0 -13
  170. package/resources/identities/agents.mjs.map +0 -1
  171. package/resources/identities/blocks.d.mts +0 -18
  172. package/resources/identities/blocks.d.mts.map +0 -1
  173. package/resources/identities/blocks.d.ts +0 -18
  174. package/resources/identities/blocks.d.ts.map +0 -1
  175. package/resources/identities/blocks.js +0 -17
  176. package/resources/identities/blocks.js.map +0 -1
  177. package/resources/identities/blocks.mjs +0 -13
  178. package/resources/identities/blocks.mjs.map +0 -1
  179. package/resources/identities/identities.d.mts +0 -204
  180. package/resources/identities/identities.d.mts.map +0 -1
  181. package/resources/identities/identities.d.ts +0 -204
  182. package/resources/identities/identities.d.ts.map +0 -1
  183. package/resources/identities/identities.js +0 -63
  184. package/resources/identities/identities.js.map +0 -1
  185. package/resources/identities/identities.mjs +0 -58
  186. package/resources/identities/identities.mjs.map +0 -1
  187. package/resources/identities/index.d.mts +0 -5
  188. package/resources/identities/index.d.mts.map +0 -1
  189. package/resources/identities/index.d.ts +0 -5
  190. package/resources/identities/index.d.ts.map +0 -1
  191. package/resources/identities/index.js +0 -13
  192. package/resources/identities/index.js.map +0 -1
  193. package/resources/identities/index.mjs +0 -6
  194. package/resources/identities/index.mjs.map +0 -1
  195. package/resources/identities/properties.d.mts +0 -18
  196. package/resources/identities/properties.d.mts.map +0 -1
  197. package/resources/identities/properties.d.ts +0 -18
  198. package/resources/identities/properties.d.ts.map +0 -1
  199. package/resources/identities/properties.js +0 -17
  200. package/resources/identities/properties.js.map +0 -1
  201. package/resources/identities/properties.mjs +0 -13
  202. package/resources/identities/properties.mjs.map +0 -1
  203. package/resources/identities.d.mts +0 -2
  204. package/resources/identities.d.mts.map +0 -1
  205. package/resources/identities.d.ts +0 -2
  206. package/resources/identities.d.ts.map +0 -1
  207. package/resources/identities.js +0 -6
  208. package/resources/identities.js.map +0 -1
  209. package/resources/identities.mjs +0 -3
  210. package/resources/identities.mjs.map +0 -1
  211. package/src/resources/agents/groups.ts +0 -37
  212. package/src/resources/agents/schedule.ts +0 -361
  213. package/src/resources/batches/batches.ts +0 -317
  214. package/src/resources/batches/index.ts +0 -11
  215. package/src/resources/batches/messages.ts +0 -38
  216. package/src/resources/batches.ts +0 -3
  217. package/src/resources/groups/groups.ts +0 -334
  218. package/src/resources/groups/index.ts +0 -27
  219. package/src/resources/groups/messages.ts +0 -505
  220. package/src/resources/groups.ts +0 -3
  221. package/src/resources/identities/agents.ts +0 -48
  222. package/src/resources/identities/blocks.ts +0 -33
  223. package/src/resources/identities/identities.ts +0 -286
  224. package/src/resources/identities/index.ts +0 -17
  225. package/src/resources/identities/properties.ts +0 -30
  226. package/src/resources/identities.ts +0 -3
@@ -1,360 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as ToolsAPI from "../tools.js";
3
- import * as AgentsAPI from "../agents/agents.js";
4
- import * as MessagesAPI from "../agents/messages.js";
5
- import { MessagesArrayPage } from "../agents/messages.js";
6
- import { APIPromise } from "../../core/api-promise.js";
7
- import { type ArrayPageParams, PagePromise } from "../../core/pagination.js";
8
- import { Stream } from "../../core/streaming.js";
9
- import { RequestOptions } from "../../internal/request-options.js";
10
- export declare class Messages extends APIResource {
11
- /**
12
- * Process a user message and return the group's response. This endpoint accepts a
13
- * message from a user and processes it through through agents in the group based
14
- * on the specified pattern
15
- */
16
- create(groupID: string, body: MessageCreateParams, options?: RequestOptions): APIPromise<MessagesAPI.LettaResponse>;
17
- /**
18
- * Update the details of a message associated with an agent.
19
- */
20
- update(messageID: string, params: MessageUpdateParams, options?: RequestOptions): APIPromise<MessageUpdateResponse>;
21
- /**
22
- * Retrieve message history for an agent.
23
- */
24
- list(groupID: string, query?: MessageListParams | null | undefined, options?: RequestOptions): PagePromise<MessagesArrayPage, MessagesAPI.Message>;
25
- /**
26
- * Delete the group messages for all agents that are part of the multi-agent group.
27
- */
28
- reset(groupID: string, options?: RequestOptions): APIPromise<unknown>;
29
- /**
30
- * Process a user message and return the group's responses. This endpoint accepts a
31
- * message from a user and processes it through agents in the group based on the
32
- * specified pattern. It will stream the steps of the response always, and stream
33
- * the tokens if 'stream_tokens' is set to True.
34
- */
35
- stream(groupID: string, body: MessageStreamParams, options?: RequestOptions): APIPromise<Stream<MessagesAPI.LettaStreamingResponse>>;
36
- }
37
- /**
38
- * A message generated by the system. Never streamed back on a response, only used
39
- * for cursor pagination.
40
- *
41
- * Args: id (str): The ID of the message date (datetime): The date the message was
42
- * created in ISO format name (Optional[str]): The name of the sender of the
43
- * message content (str): The message content sent by the system
44
- */
45
- export type MessageUpdateResponse = MessagesAPI.SystemMessage | MessagesAPI.UserMessage | MessagesAPI.ReasoningMessage | MessagesAPI.HiddenReasoningMessage | MessagesAPI.ToolCallMessage | ToolsAPI.ToolReturnMessage | MessagesAPI.AssistantMessage | MessagesAPI.ApprovalRequestMessage | MessagesAPI.ApprovalResponseMessage | MessagesAPI.SummaryMessage | MessagesAPI.EventMessage;
46
- export type MessageResetResponse = unknown;
47
- export type MessageStreamResponse = unknown;
48
- export interface MessageCreateParams {
49
- /**
50
- * @deprecated The name of the message argument in the designated message tool.
51
- * Still supported for legacy agent types, but deprecated for letta_v1_agent
52
- * onward.
53
- */
54
- assistant_message_tool_kwarg?: string;
55
- /**
56
- * @deprecated The name of the designated message tool. Still supported for legacy
57
- * agent types, but deprecated for letta_v1_agent onward.
58
- */
59
- assistant_message_tool_name?: string;
60
- /**
61
- * Client-side tools that the agent can call. When the agent calls a client-side
62
- * tool, execution pauses and returns control to the client to execute the tool and
63
- * provide the result via a ToolReturn.
64
- */
65
- client_tools?: Array<MessageCreateParams.ClientTool> | null;
66
- /**
67
- * @deprecated If set to True, enables reasoning before responses or tool calls
68
- * from the agent.
69
- */
70
- enable_thinking?: string;
71
- /**
72
- * Only return specified message types in the response. If `None` (default) returns
73
- * all messages.
74
- */
75
- include_return_message_types?: Array<MessagesAPI.MessageType> | null;
76
- /**
77
- * Syntactic sugar for a single user message. Equivalent to messages=[{'role':
78
- * 'user', 'content': input}].
79
- */
80
- input?: string | Array<MessagesAPI.TextContent | MessagesAPI.ImageContent | MessagesAPI.ToolCallContent | MessagesAPI.ToolReturnContent | MessagesAPI.ReasoningContent | MessagesAPI.RedactedReasoningContent | MessagesAPI.OmittedReasoningContent | MessageCreateParams.SummarizedReasoningContent> | null;
81
- /**
82
- * Maximum number of steps the agent should take to process the request.
83
- */
84
- max_steps?: number;
85
- /**
86
- * The messages to be sent to the agent.
87
- */
88
- messages?: Array<AgentsAPI.MessageCreate | MessagesAPI.ApprovalCreate> | null;
89
- /**
90
- * @deprecated Whether the server should parse specific tool call arguments
91
- * (default `send_message`) as `AssistantMessage` objects. Still supported for
92
- * legacy agent types, but deprecated for letta_v1_agent onward.
93
- */
94
- use_assistant_message?: boolean;
95
- }
96
- export declare namespace MessageCreateParams {
97
- /**
98
- * Schema for a client-side tool passed in the request.
99
- *
100
- * Client-side tools are executed by the client, not the server. When the agent
101
- * calls a client-side tool, execution pauses and returns control to the client to
102
- * execute the tool and provide the result.
103
- */
104
- interface ClientTool {
105
- /**
106
- * The name of the tool function
107
- */
108
- name: string;
109
- /**
110
- * Description of what the tool does
111
- */
112
- description?: string | null;
113
- /**
114
- * JSON Schema for the function parameters
115
- */
116
- parameters?: {
117
- [key: string]: unknown;
118
- } | null;
119
- }
120
- /**
121
- * The style of reasoning content returned by the OpenAI Responses API
122
- */
123
- interface SummarizedReasoningContent {
124
- /**
125
- * The unique identifier for this reasoning step.
126
- */
127
- id: string;
128
- /**
129
- * Summaries of the reasoning content.
130
- */
131
- summary: Array<SummarizedReasoningContent.Summary>;
132
- /**
133
- * The encrypted reasoning content.
134
- */
135
- encrypted_content?: string;
136
- /**
137
- * Indicates this is a summarized reasoning step.
138
- */
139
- type?: 'summarized_reasoning';
140
- }
141
- namespace SummarizedReasoningContent {
142
- interface Summary {
143
- /**
144
- * The index of the summary part.
145
- */
146
- index: number;
147
- /**
148
- * The text of the summary part.
149
- */
150
- text: string;
151
- }
152
- }
153
- }
154
- export type MessageUpdateParams = MessageUpdateParams.UpdateSystemMessage | MessageUpdateParams.UpdateUserMessage | MessageUpdateParams.UpdateReasoningMessage | MessageUpdateParams.UpdateAssistantMessage;
155
- export declare namespace MessageUpdateParams {
156
- interface UpdateSystemMessage {
157
- /**
158
- * Path param: The ID of the group in the format 'group-<uuid4>'
159
- */
160
- group_id: string;
161
- /**
162
- * Body param: The message content sent by the system (can be a string or an array
163
- * of multi-modal content parts)
164
- */
165
- content: string;
166
- /**
167
- * Body param
168
- */
169
- message_type?: 'system_message';
170
- }
171
- interface UpdateUserMessage {
172
- /**
173
- * Path param: The ID of the group in the format 'group-<uuid4>'
174
- */
175
- group_id: string;
176
- /**
177
- * Body param: The message content sent by the user (can be a string or an array of
178
- * multi-modal content parts)
179
- */
180
- content: Array<MessagesAPI.LettaUserMessageContentUnion> | string;
181
- /**
182
- * Body param
183
- */
184
- message_type?: 'user_message';
185
- }
186
- interface UpdateReasoningMessage {
187
- /**
188
- * Path param: The ID of the group in the format 'group-<uuid4>'
189
- */
190
- group_id: string;
191
- /**
192
- * Body param
193
- */
194
- reasoning: string;
195
- /**
196
- * Body param
197
- */
198
- message_type?: 'reasoning_message';
199
- }
200
- interface UpdateAssistantMessage {
201
- /**
202
- * Path param: The ID of the group in the format 'group-<uuid4>'
203
- */
204
- group_id: string;
205
- /**
206
- * Body param: The message content sent by the assistant (can be a string or an
207
- * array of content parts)
208
- */
209
- content: Array<MessagesAPI.LettaAssistantMessageContentUnion> | string;
210
- /**
211
- * Body param
212
- */
213
- message_type?: 'assistant_message';
214
- }
215
- }
216
- export interface MessageListParams extends ArrayPageParams {
217
- /**
218
- * @deprecated The name of the message argument.
219
- */
220
- assistant_message_tool_kwarg?: string;
221
- /**
222
- * @deprecated The name of the designated message tool.
223
- */
224
- assistant_message_tool_name?: string;
225
- /**
226
- * @deprecated Whether to use assistant messages
227
- */
228
- use_assistant_message?: boolean;
229
- }
230
- export interface MessageStreamParams {
231
- /**
232
- * @deprecated The name of the message argument in the designated message tool.
233
- * Still supported for legacy agent types, but deprecated for letta_v1_agent
234
- * onward.
235
- */
236
- assistant_message_tool_kwarg?: string;
237
- /**
238
- * @deprecated The name of the designated message tool. Still supported for legacy
239
- * agent types, but deprecated for letta_v1_agent onward.
240
- */
241
- assistant_message_tool_name?: string;
242
- /**
243
- * Whether to process the request in the background (only used when
244
- * streaming=true).
245
- */
246
- background?: boolean;
247
- /**
248
- * Client-side tools that the agent can call. When the agent calls a client-side
249
- * tool, execution pauses and returns control to the client to execute the tool and
250
- * provide the result via a ToolReturn.
251
- */
252
- client_tools?: Array<MessageStreamParams.ClientTool> | null;
253
- /**
254
- * @deprecated If set to True, enables reasoning before responses or tool calls
255
- * from the agent.
256
- */
257
- enable_thinking?: string;
258
- /**
259
- * Whether to include periodic keepalive ping messages in the stream to prevent
260
- * connection timeouts (only used when streaming=true).
261
- */
262
- include_pings?: boolean;
263
- /**
264
- * Only return specified message types in the response. If `None` (default) returns
265
- * all messages.
266
- */
267
- include_return_message_types?: Array<MessagesAPI.MessageType> | null;
268
- /**
269
- * Syntactic sugar for a single user message. Equivalent to messages=[{'role':
270
- * 'user', 'content': input}].
271
- */
272
- input?: string | Array<MessagesAPI.TextContent | MessagesAPI.ImageContent | MessagesAPI.ToolCallContent | MessagesAPI.ToolReturnContent | MessagesAPI.ReasoningContent | MessagesAPI.RedactedReasoningContent | MessagesAPI.OmittedReasoningContent | MessageStreamParams.SummarizedReasoningContent> | null;
273
- /**
274
- * Maximum number of steps the agent should take to process the request.
275
- */
276
- max_steps?: number;
277
- /**
278
- * The messages to be sent to the agent.
279
- */
280
- messages?: Array<AgentsAPI.MessageCreate | MessagesAPI.ApprovalCreate> | null;
281
- /**
282
- * Flag to determine if individual tokens should be streamed, rather than streaming
283
- * per step (only used when streaming=true).
284
- */
285
- stream_tokens?: boolean;
286
- /**
287
- * If True, returns a streaming response (Server-Sent Events). If False (default),
288
- * returns a complete response.
289
- */
290
- streaming?: boolean;
291
- /**
292
- * @deprecated Whether the server should parse specific tool call arguments
293
- * (default `send_message`) as `AssistantMessage` objects. Still supported for
294
- * legacy agent types, but deprecated for letta_v1_agent onward.
295
- */
296
- use_assistant_message?: boolean;
297
- }
298
- export declare namespace MessageStreamParams {
299
- /**
300
- * Schema for a client-side tool passed in the request.
301
- *
302
- * Client-side tools are executed by the client, not the server. When the agent
303
- * calls a client-side tool, execution pauses and returns control to the client to
304
- * execute the tool and provide the result.
305
- */
306
- interface ClientTool {
307
- /**
308
- * The name of the tool function
309
- */
310
- name: string;
311
- /**
312
- * Description of what the tool does
313
- */
314
- description?: string | null;
315
- /**
316
- * JSON Schema for the function parameters
317
- */
318
- parameters?: {
319
- [key: string]: unknown;
320
- } | null;
321
- }
322
- /**
323
- * The style of reasoning content returned by the OpenAI Responses API
324
- */
325
- interface SummarizedReasoningContent {
326
- /**
327
- * The unique identifier for this reasoning step.
328
- */
329
- id: string;
330
- /**
331
- * Summaries of the reasoning content.
332
- */
333
- summary: Array<SummarizedReasoningContent.Summary>;
334
- /**
335
- * The encrypted reasoning content.
336
- */
337
- encrypted_content?: string;
338
- /**
339
- * Indicates this is a summarized reasoning step.
340
- */
341
- type?: 'summarized_reasoning';
342
- }
343
- namespace SummarizedReasoningContent {
344
- interface Summary {
345
- /**
346
- * The index of the summary part.
347
- */
348
- index: number;
349
- /**
350
- * The text of the summary part.
351
- */
352
- text: string;
353
- }
354
- }
355
- }
356
- export declare namespace Messages {
357
- export { type MessageUpdateResponse as MessageUpdateResponse, type MessageResetResponse as MessageResetResponse, type MessageStreamResponse as MessageStreamResponse, type MessageCreateParams as MessageCreateParams, type MessageUpdateParams as MessageUpdateParams, type MessageListParams as MessageListParams, type MessageStreamParams as MessageStreamParams, };
358
- }
359
- export { type MessagesArrayPage };
360
- //# sourceMappingURL=messages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/groups/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,KAAK,SAAS;OACd,KAAK,WAAW;OAChB,EAAE,iBAAiB,EAAE;OACrB,EAAE,UAAU,EAAE;OACd,EAAa,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;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AIG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;;;;;OAMG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B;;WAEG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,IAAI,CAAC;KAChD;IAED;;OAEG;IACH,UAAiB,0BAA0B;QACzC;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,OAAO,EAAE,KAAK,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;QAEnD;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAE3B;;WAEG;QACH,IAAI,CAAC,EAAE,sBAAsB,CAAC;KAC/B;IAED,UAAiB,0BAA0B,CAAC;QAC1C,UAAiB,OAAO;YACtB;;eAEG;YACH,KAAK,EAAE,MAAM,CAAC;YAEd;;eAEG;YACH,IAAI,EAAE,MAAM,CAAC;SACd;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH;AAED,OAAO,EAAE,KAAK,iBAAiB,EAAE,CAAC"}
@@ -1,54 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Messages = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const pagination_1 = require("../../core/pagination.js");
7
- const path_1 = require("../../internal/utils/path.js");
8
- class Messages extends resource_1.APIResource {
9
- /**
10
- * Process a user message and return the group's response. This endpoint accepts a
11
- * message from a user and processes it through through agents in the group based
12
- * on the specified pattern
13
- */
14
- create(groupID, body, options) {
15
- return this._client.post((0, path_1.path) `/v1/groups/${groupID}/messages`, { body, ...options });
16
- }
17
- /**
18
- * Update the details of a message associated with an agent.
19
- */
20
- update(messageID, params, options) {
21
- const { group_id, ...body } = params;
22
- return this._client.patch((0, path_1.path) `/v1/groups/${group_id}/messages/${messageID}`, { body, ...options });
23
- }
24
- /**
25
- * Retrieve message history for an agent.
26
- */
27
- list(groupID, query = {}, options) {
28
- return this._client.getAPIList((0, path_1.path) `/v1/groups/${groupID}/messages`, (pagination_1.ArrayPage), {
29
- query,
30
- ...options,
31
- });
32
- }
33
- /**
34
- * Delete the group messages for all agents that are part of the multi-agent group.
35
- */
36
- reset(groupID, options) {
37
- return this._client.patch((0, path_1.path) `/v1/groups/${groupID}/reset-messages`, options);
38
- }
39
- /**
40
- * Process a user message and return the group's responses. This endpoint accepts a
41
- * message from a user and processes it through agents in the group based on the
42
- * specified pattern. It will stream the steps of the response always, and stream
43
- * the tokens if 'stream_tokens' is set to True.
44
- */
45
- stream(groupID, body, options) {
46
- return this._client.post((0, path_1.path) `/v1/groups/${groupID}/messages/stream`, {
47
- body,
48
- ...options,
49
- stream: true,
50
- });
51
- }
52
- }
53
- exports.Messages = Messages;
54
- //# sourceMappingURL=messages.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/groups/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAMlD,yDAAqF;AAGrF,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;OAIG;IACH,MAAM,CACJ,OAAe,EACf,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,MAA2B,EAC3B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,QAAQ,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,WAAW,EAAE,CAAA,sBAA8B,CAAA,EAAE;YACnG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAe,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,OAAe,EACf,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,cAAc,OAAO,kBAAkB,EAAE;YACpE,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI;SACb,CAA2D,CAAC;IAC/D,CAAC;CACF;AAhED,4BAgEC"}
@@ -1,50 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { ArrayPage } from "../../core/pagination.mjs";
4
- import { path } from "../../internal/utils/path.mjs";
5
- export class Messages extends APIResource {
6
- /**
7
- * Process a user message and return the group's response. This endpoint accepts a
8
- * message from a user and processes it through through agents in the group based
9
- * on the specified pattern
10
- */
11
- create(groupID, body, options) {
12
- return this._client.post(path `/v1/groups/${groupID}/messages`, { body, ...options });
13
- }
14
- /**
15
- * Update the details of a message associated with an agent.
16
- */
17
- update(messageID, params, options) {
18
- const { group_id, ...body } = params;
19
- return this._client.patch(path `/v1/groups/${group_id}/messages/${messageID}`, { body, ...options });
20
- }
21
- /**
22
- * Retrieve message history for an agent.
23
- */
24
- list(groupID, query = {}, options) {
25
- return this._client.getAPIList(path `/v1/groups/${groupID}/messages`, (ArrayPage), {
26
- query,
27
- ...options,
28
- });
29
- }
30
- /**
31
- * Delete the group messages for all agents that are part of the multi-agent group.
32
- */
33
- reset(groupID, options) {
34
- return this._client.patch(path `/v1/groups/${groupID}/reset-messages`, options);
35
- }
36
- /**
37
- * Process a user message and return the group's responses. This endpoint accepts a
38
- * message from a user and processes it through agents in the group based on the
39
- * specified pattern. It will stream the steps of the response always, and stream
40
- * the tokens if 'stream_tokens' is set to True.
41
- */
42
- stream(groupID, body, options) {
43
- return this._client.post(path `/v1/groups/${groupID}/messages/stream`, {
44
- body,
45
- ...options,
46
- stream: true,
47
- });
48
- }
49
- }
50
- //# sourceMappingURL=messages.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/groups/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAMf,EAAE,SAAS,EAAqC;OAGhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;OAIG;IACH,MAAM,CACJ,OAAe,EACf,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,cAAc,OAAO,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,MAA2B,EAC3B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,QAAQ,aAAa,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,cAAc,OAAO,WAAW,EAAE,CAAA,SAA8B,CAAA,EAAE;YACnG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAe,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,cAAc,OAAO,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,OAAe,EACf,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,cAAc,OAAO,kBAAkB,EAAE;YACpE,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI;SACb,CAA2D,CAAC;IAC/D,CAAC;CACF"}
@@ -1,2 +0,0 @@
1
- export * from "./groups/index.mjs";
2
- //# sourceMappingURL=groups.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export * from "./groups/index.js";
2
- //# sourceMappingURL=groups.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const tslib_1 = require("../internal/tslib.js");
5
- tslib_1.__exportStar(require("./groups/index.js"), exports);
6
- //# sourceMappingURL=groups.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.js","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./groups/index.mjs";
3
- //# sourceMappingURL=groups.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,23 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as AgentsAPI from "../agents/agents.mjs";
3
- import { AgentStatesArrayPage } from "../agents/agents.mjs";
4
- import { type ArrayPageParams, PagePromise } from "../../core/pagination.mjs";
5
- import { RequestOptions } from "../../internal/request-options.mjs";
6
- export declare class Agents extends APIResource {
7
- /**
8
- * Get all agents associated with the specified identity.
9
- */
10
- list(identityID: string, query?: AgentListParams | null | undefined, options?: RequestOptions): PagePromise<AgentStatesArrayPage, AgentsAPI.AgentState>;
11
- }
12
- export interface AgentListParams extends ArrayPageParams {
13
- /**
14
- * Specify which relational fields to include in the response. No relationships are
15
- * included by default.
16
- */
17
- include?: Array<'agent.blocks' | 'agent.identities' | 'agent.managed_group' | 'agent.pending_approval' | 'agent.secrets' | 'agent.sources' | 'agent.tags' | 'agent.tools'>;
18
- }
19
- export declare namespace Agents {
20
- export { type AgentListParams as AgentListParams };
21
- }
22
- export { type AgentStatesArrayPage };
23
- //# sourceMappingURL=agents.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.d.mts","sourceRoot":"","sources":["../../src/resources/identities/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,oBAAoB,EAAE;OACxB,EAAa,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oBAAoB,EAAE,SAAS,CAAC,UAAU,CAAC;CAO3D;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CACX,cAAc,GACd,kBAAkB,GAClB,qBAAqB,GACrB,wBAAwB,GACxB,eAAe,GACf,eAAe,GACf,YAAY,GACZ,aAAa,CAChB,CAAC;CACH;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD;AAED,OAAO,EAAE,KAAK,oBAAoB,EAAE,CAAC"}
@@ -1,23 +0,0 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import * as AgentsAPI from "../agents/agents.js";
3
- import { AgentStatesArrayPage } from "../agents/agents.js";
4
- import { type ArrayPageParams, PagePromise } from "../../core/pagination.js";
5
- import { RequestOptions } from "../../internal/request-options.js";
6
- export declare class Agents extends APIResource {
7
- /**
8
- * Get all agents associated with the specified identity.
9
- */
10
- list(identityID: string, query?: AgentListParams | null | undefined, options?: RequestOptions): PagePromise<AgentStatesArrayPage, AgentsAPI.AgentState>;
11
- }
12
- export interface AgentListParams extends ArrayPageParams {
13
- /**
14
- * Specify which relational fields to include in the response. No relationships are
15
- * included by default.
16
- */
17
- include?: Array<'agent.blocks' | 'agent.identities' | 'agent.managed_group' | 'agent.pending_approval' | 'agent.secrets' | 'agent.sources' | 'agent.tags' | 'agent.tools'>;
18
- }
19
- export declare namespace Agents {
20
- export { type AgentListParams as AgentListParams };
21
- }
22
- export { type AgentStatesArrayPage };
23
- //# sourceMappingURL=agents.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/resources/identities/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,oBAAoB,EAAE;OACxB,EAAa,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oBAAoB,EAAE,SAAS,CAAC,UAAU,CAAC;CAO3D;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD;;;OAGG;IACH,OAAO,CAAC,EAAE,KAAK,CACX,cAAc,GACd,kBAAkB,GAClB,qBAAqB,GACrB,wBAAwB,GACxB,eAAe,GACf,eAAe,GACf,YAAY,GACZ,aAAa,CAChB,CAAC;CACH;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD;AAED,OAAO,EAAE,KAAK,oBAAoB,EAAE,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Agents = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const pagination_1 = require("../../core/pagination.js");
7
- const path_1 = require("../../internal/utils/path.js");
8
- class Agents extends resource_1.APIResource {
9
- /**
10
- * Get all agents associated with the specified identity.
11
- */
12
- list(identityID, query = {}, options) {
13
- return this._client.getAPIList((0, path_1.path) `/v1/identities/${identityID}/agents`, (pagination_1.ArrayPage), { query, ...options });
14
- }
15
- }
16
- exports.Agents = Agents;
17
- //# sourceMappingURL=agents.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/identities/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAAqF;AAErF,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,IAAI,CACF,UAAkB,EAClB,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,kBAAkB,UAAU,SAAS,EACzC,CAAA,sBAA+B,CAAA,EAC/B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAfD,wBAeC"}
@@ -1,13 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { ArrayPage } from "../../core/pagination.mjs";
4
- import { path } from "../../internal/utils/path.mjs";
5
- export class Agents extends APIResource {
6
- /**
7
- * Get all agents associated with the specified identity.
8
- */
9
- list(identityID, query = {}, options) {
10
- return this._client.getAPIList(path `/v1/identities/${identityID}/agents`, (ArrayPage), { query, ...options });
11
- }
12
- }
13
- //# sourceMappingURL=agents.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"agents.mjs","sourceRoot":"","sources":["../../src/resources/identities/agents.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,SAAS,EAAqC;OAEhD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CACF,UAAkB,EAClB,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,kBAAkB,UAAU,SAAS,EACzC,CAAA,SAA+B,CAAA,EAC/B,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF"}
@@ -1,18 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as BlocksAPI from "../blocks/blocks.mjs";
3
- import { BlockResponsesArrayPage } from "../blocks/blocks.mjs";
4
- import { type ArrayPageParams, PagePromise } from "../../core/pagination.mjs";
5
- import { RequestOptions } from "../../internal/request-options.mjs";
6
- export declare class Blocks extends APIResource {
7
- /**
8
- * Get all blocks associated with the specified identity.
9
- */
10
- list(identityID: string, query?: BlockListParams | null | undefined, options?: RequestOptions): PagePromise<BlockResponsesArrayPage, BlocksAPI.BlockResponse>;
11
- }
12
- export interface BlockListParams extends ArrayPageParams {
13
- }
14
- export declare namespace Blocks {
15
- export { type BlockListParams as BlockListParams };
16
- }
17
- export { type BlockResponsesArrayPage };
18
- //# sourceMappingURL=blocks.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"blocks.d.mts","sourceRoot":"","sources":["../../src/resources/identities/blocks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,uBAAuB,EAAE;OAC3B,EAAa,KAAK,eAAe,EAAE,WAAW,EAAE;OAChD,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,IAAI,CACF,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,uBAAuB,EAAE,SAAS,CAAC,aAAa,CAAC;CAOjE;AAED,MAAM,WAAW,eAAgB,SAAQ,eAAe;CAAG;AAE3D,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD;AAED,OAAO,EAAE,KAAK,uBAAuB,EAAE,CAAC"}