@archastro/sdk 0.7.0 → 0.8.0
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.
- package/dist/auth.d.ts +5 -3
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +7 -5
- package/dist/auth.js.map +1 -1
- package/dist/channels/api_activity_feed_channel.js +2 -2
- package/dist/channels/api_activity_feed_channel.js.map +1 -1
- package/dist/channels/api_chat_channel.js +2 -2
- package/dist/channels/api_chat_channel.js.map +1 -1
- package/dist/channels/api_object_channel.d.ts +13 -2
- package/dist/channels/api_object_channel.d.ts.map +1 -1
- package/dist/channels/api_object_channel.js +21 -6
- package/dist/channels/api_object_channel.js.map +1 -1
- package/dist/channels/api_tasks_channel.d.ts +30 -0
- package/dist/channels/api_tasks_channel.d.ts.map +1 -0
- package/dist/channels/api_tasks_channel.js +45 -0
- package/dist/channels/api_tasks_channel.js.map +1 -0
- package/dist/client.d.ts +10 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +12 -2
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/types/ai.d.ts +66 -52
- package/dist/types/ai.d.ts.map +1 -1
- package/dist/types/ai.js +7 -2
- package/dist/types/ai.js.map +1 -1
- package/dist/types/artifacts.d.ts +8 -8
- package/dist/types/artifacts.js +2 -2
- package/dist/types/artifacts.js.map +1 -1
- package/dist/types/automations.d.ts +68 -10
- package/dist/types/automations.d.ts.map +1 -1
- package/dist/types/automations.js +22 -2
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +18446 -3559
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/chat.js +2 -2
- package/dist/types/chat.js.map +1 -1
- package/dist/types/common.d.ts +12646 -2316
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +372 -80
- package/dist/types/common.js.map +1 -1
- package/dist/types/config.d.ts +22 -10
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +4 -2
- package/dist/types/config.js.map +1 -1
- package/dist/types/device.d.ts +60 -0
- package/dist/types/device.d.ts.map +1 -0
- package/dist/types/device.js +25 -0
- package/dist/types/device.js.map +1 -0
- package/dist/types/extractions.d.ts +452 -0
- package/dist/types/extractions.d.ts.map +1 -0
- package/dist/types/extractions.js +52 -0
- package/dist/types/extractions.js.map +1 -0
- package/dist/types/image.js +2 -2
- package/dist/types/image.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +5 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/invites.js +2 -2
- package/dist/types/invites.js.map +1 -1
- package/dist/types/notifications.d.ts +2 -2
- package/dist/types/notifications.js +2 -2
- package/dist/types/notifications.js.map +1 -1
- package/dist/types/oauth.d.ts +117 -0
- package/dist/types/oauth.d.ts.map +1 -0
- package/dist/types/oauth.js +21 -0
- package/dist/types/oauth.js.map +1 -0
- package/dist/types/teams.d.ts +2402 -242
- package/dist/types/teams.d.ts.map +1 -1
- package/dist/types/teams.js +2 -2
- package/dist/types/teams.js.map +1 -1
- package/dist/types/threads.d.ts +1419 -328
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +18 -17
- package/dist/types/threads.js.map +1 -1
- package/dist/types/users.d.ts +2 -2
- package/dist/types/users.js +2 -2
- package/dist/types/users.js.map +1 -1
- package/dist/v1/resources/activity_feed.d.ts +84 -0
- package/dist/v1/resources/activity_feed.d.ts.map +1 -1
- package/dist/v1/resources/activity_feed.js +2 -2
- package/dist/v1/resources/activity_feed.js.map +1 -1
- package/dist/v1/resources/agent_computers.js +2 -2
- package/dist/v1/resources/agent_computers.js.map +1 -1
- package/dist/v1/resources/agent_env_vars.js +2 -2
- package/dist/v1/resources/agent_env_vars.js.map +1 -1
- package/dist/v1/resources/agent_health_actions.js +2 -2
- package/dist/v1/resources/agent_health_actions.js.map +1 -1
- package/dist/v1/resources/agent_installations.d.ts +2 -2
- package/dist/v1/resources/agent_installations.d.ts.map +1 -1
- package/dist/v1/resources/agent_installations.js +3 -3
- package/dist/v1/resources/agent_installations.js.map +1 -1
- package/dist/v1/resources/agent_routine_runs.d.ts +16 -1
- package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -1
- package/dist/v1/resources/agent_routine_runs.js +16 -2
- package/dist/v1/resources/agent_routine_runs.js.map +1 -1
- package/dist/v1/resources/agent_routines.d.ts +47 -3
- package/dist/v1/resources/agent_routines.d.ts.map +1 -1
- package/dist/v1/resources/agent_routines.js +42 -3
- package/dist/v1/resources/agent_routines.js.map +1 -1
- package/dist/v1/resources/agent_sessions.d.ts +14 -2
- package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
- package/dist/v1/resources/agent_sessions.js +14 -3
- package/dist/v1/resources/agent_sessions.js.map +1 -1
- package/dist/v1/resources/agent_skills.js +2 -2
- package/dist/v1/resources/agent_skills.js.map +1 -1
- package/dist/v1/resources/agent_tools.d.ts +2 -2
- package/dist/v1/resources/agent_tools.d.ts.map +1 -1
- package/dist/v1/resources/agent_tools.js +3 -3
- package/dist/v1/resources/agent_tools.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +152 -35
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +148 -42
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +81 -40
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +52 -17
- package/dist/v1/resources/ai.js.map +1 -1
- package/dist/v1/resources/artifacts.js +2 -2
- package/dist/v1/resources/artifacts.js.map +1 -1
- package/dist/v1/resources/automation_runs.d.ts +41 -6
- package/dist/v1/resources/automation_runs.d.ts.map +1 -1
- package/dist/v1/resources/automation_runs.js +47 -8
- package/dist/v1/resources/automation_runs.js.map +1 -1
- package/dist/v1/resources/automations.d.ts +14 -1
- package/dist/v1/resources/automations.d.ts.map +1 -1
- package/dist/v1/resources/automations.js +15 -3
- package/dist/v1/resources/automations.js.map +1 -1
- package/dist/v1/resources/bug_reports.js +2 -2
- package/dist/v1/resources/bug_reports.js.map +1 -1
- package/dist/v1/resources/config.d.ts +3 -0
- package/dist/v1/resources/config.d.ts.map +1 -1
- package/dist/v1/resources/config.js +2 -2
- package/dist/v1/resources/config.js.map +1 -1
- package/dist/v1/resources/custom_objects.js +2 -2
- package/dist/v1/resources/custom_objects.js.map +1 -1
- package/dist/v1/resources/extractions.d.ts +50 -0
- package/dist/v1/resources/extractions.d.ts.map +1 -0
- package/dist/v1/resources/extractions.js +48 -0
- package/dist/v1/resources/extractions.js.map +1 -0
- package/dist/v1/resources/files.d.ts +88 -1
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +86 -3
- package/dist/v1/resources/files.js.map +1 -1
- package/dist/v1/resources/index.d.ts +5 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +7 -2
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/installation_sources.js +2 -2
- package/dist/v1/resources/installation_sources.js.map +1 -1
- package/dist/v1/resources/invites.js +2 -2
- package/dist/v1/resources/invites.js.map +1 -1
- package/dist/v1/resources/knowledge_documents.d.ts +33 -1
- package/dist/v1/resources/knowledge_documents.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_documents.js +25 -2
- package/dist/v1/resources/knowledge_documents.js.map +1 -1
- package/dist/v1/resources/knowledge_ingestions.d.ts +16 -0
- package/dist/v1/resources/knowledge_ingestions.d.ts.map +1 -0
- package/dist/v1/resources/knowledge_ingestions.js +21 -0
- package/dist/v1/resources/knowledge_ingestions.js.map +1 -0
- package/dist/v1/resources/knowledge_sources.d.ts +2 -0
- package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_sources.js +3 -2
- package/dist/v1/resources/knowledge_sources.js.map +1 -1
- package/dist/v1/resources/kv.js +2 -2
- package/dist/v1/resources/kv.js.map +1 -1
- package/dist/v1/resources/notification_preferences.js +2 -2
- package/dist/v1/resources/notification_preferences.js.map +1 -1
- package/dist/v1/resources/notifications.js +2 -2
- package/dist/v1/resources/notifications.js.map +1 -1
- package/dist/v1/resources/oauth.d.ts +115 -0
- package/dist/v1/resources/oauth.d.ts.map +1 -0
- package/dist/v1/resources/oauth.js +112 -0
- package/dist/v1/resources/oauth.js.map +1 -0
- package/dist/v1/resources/orgs.js +2 -2
- package/dist/v1/resources/orgs.js.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.d.ts +25 -0
- package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.js +24 -2
- package/dist/v1/resources/slack_channel_bindings.js.map +1 -1
- package/dist/v1/resources/solution_categories.js +2 -2
- package/dist/v1/resources/solution_categories.js.map +1 -1
- package/dist/v1/resources/solution_instances.d.ts +26 -0
- package/dist/v1/resources/solution_instances.d.ts.map +1 -0
- package/dist/v1/resources/solution_instances.js +35 -0
- package/dist/v1/resources/solution_instances.js.map +1 -0
- package/dist/v1/resources/solution_tags.js +2 -2
- package/dist/v1/resources/solution_tags.js.map +1 -1
- package/dist/v1/resources/solutions.d.ts +85 -1
- package/dist/v1/resources/solutions.d.ts.map +1 -1
- package/dist/v1/resources/solutions.js +67 -3
- package/dist/v1/resources/solutions.js.map +1 -1
- package/dist/v1/resources/team_memberships.js +2 -2
- package/dist/v1/resources/team_memberships.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +210 -4
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +16 -6
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/thread_messages.d.ts +24 -4
- package/dist/v1/resources/thread_messages.d.ts.map +1 -1
- package/dist/v1/resources/thread_messages.js +9 -6
- package/dist/v1/resources/thread_messages.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +158 -42
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +121 -32
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +132 -1
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +4 -2
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1/resources/work_items.d.ts +78 -0
- package/dist/v1/resources/work_items.d.ts.map +1 -0
- package/dist/v1/resources/work_items.js +86 -0
- package/dist/v1/resources/work_items.js.map +1 -0
- package/dist/v1.d.ts +10 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +17 -2
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from "../../runtime/http-client.js";
|
|
2
|
-
import type { AgentRoutine, AgentRoutineListResponse, AgentRoutineRun, AgentRoutineRunListResponse, RoutinePreset } from "../../types/common.js";
|
|
2
|
+
import type { AgentRoutine, AgentRoutineListResponse, AgentRoutineRun, AgentRoutineRunListResponse, RoutinePreset, RunJournalPage } from "../../types/common.js";
|
|
3
3
|
export declare class AgentRoutineRunResource {
|
|
4
4
|
private http;
|
|
5
5
|
constructor(http: HttpClient);
|
|
@@ -14,6 +14,24 @@ export declare class AgentRoutineRunResource {
|
|
|
14
14
|
* @returns The requested routine run.
|
|
15
15
|
*/
|
|
16
16
|
get(run: string): Promise<AgentRoutineRun>;
|
|
17
|
+
/**
|
|
18
|
+
* List a routine run journal
|
|
19
|
+
* Returns the durable workflow journal entries for one agent routine run in
|
|
20
|
+
* ascending sequence order. Script-backed, preset-backed, and legacy runs may
|
|
21
|
+
* have no journal; those runs return `journal: null` and an empty `data` array
|
|
22
|
+
* with HTTP 200.
|
|
23
|
+
* Pagination is forward-only. Pass `after_cursor` from the previous response
|
|
24
|
+
* to retrieve the next page.
|
|
25
|
+
* @param run - Routine run ID (`arr_...`) whose journal to retrieve.
|
|
26
|
+
* @param params - Query parameters.
|
|
27
|
+
* @param params.limit - Maximum number of entries to return. Defaults to 50; maximum is 100.
|
|
28
|
+
* @param params.afterCursor - Opaque cursor from the previous response's `after_cursor` field.
|
|
29
|
+
* @returns Forward-paginated routine run journal entries.
|
|
30
|
+
*/
|
|
31
|
+
journal(run: string, params?: {
|
|
32
|
+
limit?: number;
|
|
33
|
+
afterCursor?: string;
|
|
34
|
+
}): Promise<RunJournalPage>;
|
|
17
35
|
}
|
|
18
36
|
export declare class AgentRoutineResource {
|
|
19
37
|
private http;
|
|
@@ -28,12 +46,12 @@ export declare class AgentRoutineResource {
|
|
|
28
46
|
* returns 404 rather than an empty list. Results are not paginated; all matching
|
|
29
47
|
* routines are returned in a single response. Requires app scope.
|
|
30
48
|
* @param params - Query parameters.
|
|
31
|
-
* @param params.agent - Agent
|
|
49
|
+
* @param params.agent - Agent IDs (`agi_...`) to filter routines by. Omit to return routines across all agents. Multiple values are OR'd.
|
|
32
50
|
* @param params.eventType - Event type string to filter by (e.g. `"agentroutine.invoked"`). Omit to return routines for all event types.
|
|
33
51
|
* @returns Object containing a `data` array of matching routines.
|
|
34
52
|
*/
|
|
35
53
|
list(params?: {
|
|
36
|
-
agent?: string;
|
|
54
|
+
agent?: string[];
|
|
37
55
|
eventType?: string;
|
|
38
56
|
}): Promise<AgentRoutineListResponse>;
|
|
39
57
|
/**
|
|
@@ -88,6 +106,7 @@ export declare class AgentRoutineResource {
|
|
|
88
106
|
* @param input.event_type - Event type that triggers this routine. Deprecated — use `event_config` instead.
|
|
89
107
|
* @param input.handler_type - New execution model. One of `"workflow_graph"`, `"script"`, `"preset"`, or `"chain"`.
|
|
90
108
|
* @param input.lookup_key - New stable, unique key for deterministic lookup. Must be unique within the app.
|
|
109
|
+
* @param input.message_policy - Updated visibility and explicit recipient selection for emitted messages.
|
|
91
110
|
* @param input.metadata - Updated arbitrary key-value metadata. Replaces the existing metadata entirely.
|
|
92
111
|
* @param input.name - New human-readable display name for the routine.
|
|
93
112
|
* @param input.preset_config - Updated configuration passed to the preset at runtime.
|
|
@@ -97,6 +116,7 @@ export declare class AgentRoutineResource {
|
|
|
97
116
|
* @param input.steps - Updated ordered list of steps for a chain handler. Required when `handler_type` is `"chain"`; must be omitted or empty otherwise. Replaces the entire existing step list — send the full desired list, not a partial diff.
|
|
98
117
|
* @param input.template - AgentRoutineTemplate config ID (`cfg_...`) or lookup key. When provided, the routine's configuration is re-resolved from the template before applying other param overrides. The routine's `status`, `lookup_key`, and agent attachment are always preserved.
|
|
99
118
|
* @param input.trigger_context - Updated trigger context. One of `"chat_session"` or `"event"`.
|
|
119
|
+
* @param input.user - Optional co-owner user ID (`usr_...`) to set on the routine. Must be supplied explicitly — the caller's identity is never auto-stamped. Omit to leave the existing value unchanged; send `null` (or an empty string) to clear the current co-owner.
|
|
100
120
|
* @returns The updated routine.
|
|
101
121
|
*/
|
|
102
122
|
update(routine: string, input: {
|
|
@@ -122,6 +142,10 @@ export declare class AgentRoutineResource {
|
|
|
122
142
|
event_type?: string | undefined;
|
|
123
143
|
handler_type?: string | undefined;
|
|
124
144
|
lookup_key?: string | undefined;
|
|
145
|
+
message_policy?: {
|
|
146
|
+
recipients?: string[] | undefined;
|
|
147
|
+
visibility?: string | undefined;
|
|
148
|
+
} | undefined;
|
|
125
149
|
metadata?: Record<string, unknown> | undefined;
|
|
126
150
|
name?: string | undefined;
|
|
127
151
|
preset_config?: {
|
|
@@ -157,6 +181,7 @@ export declare class AgentRoutineResource {
|
|
|
157
181
|
}[] | undefined;
|
|
158
182
|
template?: string | undefined;
|
|
159
183
|
trigger_context?: string | undefined;
|
|
184
|
+
user?: string | undefined;
|
|
160
185
|
}): Promise<AgentRoutine>;
|
|
161
186
|
/**
|
|
162
187
|
* Activate a routine
|
|
@@ -185,20 +210,39 @@ export declare class AgentRoutineResource {
|
|
|
185
210
|
* already exists for that key a 409 Conflict is returned rather than creating
|
|
186
211
|
* a duplicate run. Entitlement for LLM calls is checked at request time;
|
|
187
212
|
* customers on plans that do not include this feature receive 402.
|
|
213
|
+
* Use `delivery` to propagate the final textual result into a conversation.
|
|
214
|
+
* `{"type":"reply","message":"msg_..."}` preserves the message's external
|
|
215
|
+
* origin (for example Slack), while `{"type":"thread","thread":"thr_..."}`
|
|
216
|
+
* posts without a reply anchor. Chain routines deliver only their final result.
|
|
217
|
+
* For workflow-graph routines that dispatch distributed work, pass optional
|
|
218
|
+
* `participants` (map of symbolic refs to agent ids, e.g.
|
|
219
|
+
* `{"investigator":"agi_..."}`) as a **top-level** field next to free-form
|
|
220
|
+
* invoke inputs — same shape as automation invoke. Free-form fields stay on
|
|
221
|
+
* `event_payload`; participants are stored in the run's top-level
|
|
222
|
+
* `participants` field and exposed through workflow system context so
|
|
223
|
+
* `embed_agent` nodes can resolve assignees.
|
|
188
224
|
* @param routine - Routine ID (`arn_...`) or `lookup_key` of the routine to invoke.
|
|
189
225
|
* @param input - Request body.
|
|
226
|
+
* @param input.delivery - Typed final-result delivery: reply to a `message`, post to a `thread`, or `none` (the default).
|
|
190
227
|
* @param input.idempotency_key - Unique key used to deduplicate invocations. Resubmitting the same key returns 409 if a completed run already exists.
|
|
191
228
|
* @param input.message - The user message to send to the agent for this invocation.
|
|
192
229
|
* @param input.metadata - Arbitrary key-value metadata attached to this invocation. Not interpreted by the platform.
|
|
230
|
+
* @param input.participants - Map of symbolic participant refs to agent ids (`agi_...` or UUID) for distributed embed_agent handoffs. Stored in the run's top-level `participants` field.
|
|
193
231
|
* @param input.session_key - Arbitrary key used to identify and resume a session when `session_scope` is `"per_key"`. Required in that mode.
|
|
194
232
|
* @param input.thread_id - Thread ID (`thr_...`) to post the preset output into. Omit to skip thread posting.
|
|
195
233
|
* @param input.user - User ID to associate with the session. For S2S and developer callers only; authenticated client callers always use their own identity.
|
|
196
234
|
* @returns The agent routine run created by this invocation.
|
|
197
235
|
*/
|
|
198
236
|
invoke(routine: string, input: {
|
|
237
|
+
delivery?: {
|
|
238
|
+
message?: string | undefined;
|
|
239
|
+
thread?: string | undefined;
|
|
240
|
+
type: "none" | "thread" | "reply";
|
|
241
|
+
} | undefined;
|
|
199
242
|
idempotency_key?: string | undefined;
|
|
200
243
|
message: string;
|
|
201
244
|
metadata?: Record<string, unknown> | undefined;
|
|
245
|
+
participants?: Record<string, unknown> | undefined;
|
|
202
246
|
session_key?: string | undefined;
|
|
203
247
|
thread_id?: string | undefined;
|
|
204
248
|
user?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent_routines.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/agent_routines.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,wBAAwB,EAAE,eAAe,EAAE,2BAA2B,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent_routines.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/agent_routines.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,wBAAwB,EAAE,eAAe,EAAE,2BAA2B,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEjK,qBAAa,uBAAuB;IACtB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;OASG;IACG,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAIhD;;;;;;;;;;;;;OAaG;IACG,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,cAAc,CAAC;CAWvG;AAED,qBAAa,oBAAoB;IAGnB,OAAO,CAAC,IAAI;IAFxB,QAAQ,CAAC,kBAAkB,EAAE,uBAAuB,CAAC;gBAEjC,IAAI,EAAE,UA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YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,eAAe,CAAC;IAInb;;;;;;;;OAQG;IACG,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAInD;;;;;;;;;;;;;;;;OAgBG;IACG,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAiB7J"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2026 ArchAstro Inc.
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: ee9592639fde
|
|
4
4
|
export class AgentRoutineRunResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -19,6 +19,30 @@ export class AgentRoutineRunResource {
|
|
|
19
19
|
async get(run) {
|
|
20
20
|
return this.http.request(`/api/v1/agent_routines/runs/${run}`);
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* List a routine run journal
|
|
24
|
+
* Returns the durable workflow journal entries for one agent routine run in
|
|
25
|
+
* ascending sequence order. Script-backed, preset-backed, and legacy runs may
|
|
26
|
+
* have no journal; those runs return `journal: null` and an empty `data` array
|
|
27
|
+
* with HTTP 200.
|
|
28
|
+
* Pagination is forward-only. Pass `after_cursor` from the previous response
|
|
29
|
+
* to retrieve the next page.
|
|
30
|
+
* @param run - Routine run ID (`arr_...`) whose journal to retrieve.
|
|
31
|
+
* @param params - Query parameters.
|
|
32
|
+
* @param params.limit - Maximum number of entries to return. Defaults to 50; maximum is 100.
|
|
33
|
+
* @param params.afterCursor - Opaque cursor from the previous response's `after_cursor` field.
|
|
34
|
+
* @returns Forward-paginated routine run journal entries.
|
|
35
|
+
*/
|
|
36
|
+
async journal(run, params) {
|
|
37
|
+
const query = {};
|
|
38
|
+
if (params?.limit !== undefined) {
|
|
39
|
+
query["limit"] = params?.limit;
|
|
40
|
+
}
|
|
41
|
+
if (params?.afterCursor !== undefined) {
|
|
42
|
+
query["after_cursor"] = params?.afterCursor;
|
|
43
|
+
}
|
|
44
|
+
return this.http.request(`/api/v1/agent_routines/runs/${run}/journal`, { query });
|
|
45
|
+
}
|
|
22
46
|
}
|
|
23
47
|
export class AgentRoutineResource {
|
|
24
48
|
http;
|
|
@@ -36,7 +60,7 @@ export class AgentRoutineResource {
|
|
|
36
60
|
* returns 404 rather than an empty list. Results are not paginated; all matching
|
|
37
61
|
* routines are returned in a single response. Requires app scope.
|
|
38
62
|
* @param params - Query parameters.
|
|
39
|
-
* @param params.agent - Agent
|
|
63
|
+
* @param params.agent - Agent IDs (`agi_...`) to filter routines by. Omit to return routines across all agents. Multiple values are OR'd.
|
|
40
64
|
* @param params.eventType - Event type string to filter by (e.g. `"agentroutine.invoked"`). Omit to return routines for all event types.
|
|
41
65
|
* @returns Object containing a `data` array of matching routines.
|
|
42
66
|
*/
|
|
@@ -108,6 +132,7 @@ export class AgentRoutineResource {
|
|
|
108
132
|
* @param input.event_type - Event type that triggers this routine. Deprecated — use `event_config` instead.
|
|
109
133
|
* @param input.handler_type - New execution model. One of `"workflow_graph"`, `"script"`, `"preset"`, or `"chain"`.
|
|
110
134
|
* @param input.lookup_key - New stable, unique key for deterministic lookup. Must be unique within the app.
|
|
135
|
+
* @param input.message_policy - Updated visibility and explicit recipient selection for emitted messages.
|
|
111
136
|
* @param input.metadata - Updated arbitrary key-value metadata. Replaces the existing metadata entirely.
|
|
112
137
|
* @param input.name - New human-readable display name for the routine.
|
|
113
138
|
* @param input.preset_config - Updated configuration passed to the preset at runtime.
|
|
@@ -117,6 +142,7 @@ export class AgentRoutineResource {
|
|
|
117
142
|
* @param input.steps - Updated ordered list of steps for a chain handler. Required when `handler_type` is `"chain"`; must be omitted or empty otherwise. Replaces the entire existing step list — send the full desired list, not a partial diff.
|
|
118
143
|
* @param input.template - AgentRoutineTemplate config ID (`cfg_...`) or lookup key. When provided, the routine's configuration is re-resolved from the template before applying other param overrides. The routine's `status`, `lookup_key`, and agent attachment are always preserved.
|
|
119
144
|
* @param input.trigger_context - Updated trigger context. One of `"chat_session"` or `"event"`.
|
|
145
|
+
* @param input.user - Optional co-owner user ID (`usr_...`) to set on the routine. Must be supplied explicitly — the caller's identity is never auto-stamped. Omit to leave the existing value unchanged; send `null` (or an empty string) to clear the current co-owner.
|
|
120
146
|
* @returns The updated routine.
|
|
121
147
|
*/
|
|
122
148
|
async update(routine, input) {
|
|
@@ -151,11 +177,24 @@ export class AgentRoutineResource {
|
|
|
151
177
|
* already exists for that key a 409 Conflict is returned rather than creating
|
|
152
178
|
* a duplicate run. Entitlement for LLM calls is checked at request time;
|
|
153
179
|
* customers on plans that do not include this feature receive 402.
|
|
180
|
+
* Use `delivery` to propagate the final textual result into a conversation.
|
|
181
|
+
* `{"type":"reply","message":"msg_..."}` preserves the message's external
|
|
182
|
+
* origin (for example Slack), while `{"type":"thread","thread":"thr_..."}`
|
|
183
|
+
* posts without a reply anchor. Chain routines deliver only their final result.
|
|
184
|
+
* For workflow-graph routines that dispatch distributed work, pass optional
|
|
185
|
+
* `participants` (map of symbolic refs to agent ids, e.g.
|
|
186
|
+
* `{"investigator":"agi_..."}`) as a **top-level** field next to free-form
|
|
187
|
+
* invoke inputs — same shape as automation invoke. Free-form fields stay on
|
|
188
|
+
* `event_payload`; participants are stored in the run's top-level
|
|
189
|
+
* `participants` field and exposed through workflow system context so
|
|
190
|
+
* `embed_agent` nodes can resolve assignees.
|
|
154
191
|
* @param routine - Routine ID (`arn_...`) or `lookup_key` of the routine to invoke.
|
|
155
192
|
* @param input - Request body.
|
|
193
|
+
* @param input.delivery - Typed final-result delivery: reply to a `message`, post to a `thread`, or `none` (the default).
|
|
156
194
|
* @param input.idempotency_key - Unique key used to deduplicate invocations. Resubmitting the same key returns 409 if a completed run already exists.
|
|
157
195
|
* @param input.message - The user message to send to the agent for this invocation.
|
|
158
196
|
* @param input.metadata - Arbitrary key-value metadata attached to this invocation. Not interpreted by the platform.
|
|
197
|
+
* @param input.participants - Map of symbolic participant refs to agent ids (`agi_...` or UUID) for distributed embed_agent handoffs. Stored in the run's top-level `participants` field.
|
|
159
198
|
* @param input.session_key - Arbitrary key used to identify and resume a session when `session_scope` is `"per_key"`. Required in that mode.
|
|
160
199
|
* @param input.thread_id - Thread ID (`thr_...`) to post the preset output into. Omit to skip thread posting.
|
|
161
200
|
* @param input.user - User ID to associate with the session. For S2S and developer callers only; authenticated client callers always use their own identity.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent_routines.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_routines.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"agent_routines.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_routines.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,uBAAuB;IACd;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;OASG;IACH,KAAK,CAAC,GAAG,CAAC,GAAW;QACnB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,+BAA+B,GAAG,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;;;OAaG;I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;;;;OAgBG;IACH,KAAK,CAAC,IAAI,CAAC,OAAe,EAAE,MAAyF;QACnH,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;YACjC,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,EAAE,MAAM,CAAC;QACnC,CAAC;QACD,IAAI,MAAM,EAAE,KAAK,KAAK,SAAS,EAAE,CAAC;YAChC,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QACjC,CAAC;QACD,IAAI,MAAM,EAAE,YAAY,KAAK,SAAS,EAAE,CAAC;YACvC,KAAK,CAAC,eAAe,CAAC,GAAG,MAAM,EAAE,YAAY,CAAC;QAChD,CAAC;QACD,IAAI,MAAM,EAAE,WAAW,KAAK,SAAS,EAAE,CAAC;YACtC,KAAK,CAAC,cAAc,CAAC,GAAG,MAAM,EAAE,WAAW,CAAC;QAC9C,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,0BAA0B,OAAO,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAChF,CAAC;CACF"}
|
|
@@ -14,7 +14,7 @@ export declare class AgentSessionResource {
|
|
|
14
14
|
* Requires an app-scoped API key. Results are limited to sessions that belong
|
|
15
15
|
* to agents owned by the authenticated app.
|
|
16
16
|
* @param params - Query parameters.
|
|
17
|
-
* @param params.agent - Filter by agent
|
|
17
|
+
* @param params.agent - Filter by agent IDs (`agi_...`). Omit to return sessions for all agents in the app. Multiple values are OR'd.
|
|
18
18
|
* @param params.status - Filter by one or more session statuses. Accepted values are `"pending"`, `"running"`, `"waiting"`, `"completed"`, `"failed"`, and `"cancelled"`. Omit to return sessions in any status.
|
|
19
19
|
* @param params.routineRun - Filter to sessions that were created by the specified routine run IDs. Accepts up to 100 IDs. Omit to return sessions regardless of their originating routine run.
|
|
20
20
|
* @param params.excludeSystem - When `true`, omits sessions that were created automatically by the platform rather than by your app. Defaults to `false`.
|
|
@@ -22,7 +22,7 @@ export declare class AgentSessionResource {
|
|
|
22
22
|
* @returns A list of agent sessions matching the supplied filters.
|
|
23
23
|
*/
|
|
24
24
|
list(params?: {
|
|
25
|
-
agent?: string;
|
|
25
|
+
agent?: string[];
|
|
26
26
|
status?: string[];
|
|
27
27
|
routineRun?: string[];
|
|
28
28
|
excludeSystem?: boolean;
|
|
@@ -150,5 +150,17 @@ export declare class AgentSessionResource {
|
|
|
150
150
|
metadata?: Record<string, unknown> | undefined;
|
|
151
151
|
role?: string | undefined;
|
|
152
152
|
}): Promise<AgentSession>;
|
|
153
|
+
/**
|
|
154
|
+
* Stream agent session status
|
|
155
|
+
* Opens a Server-Sent Events connection that emits a `session_update` event
|
|
156
|
+
* whenever the agent session's status changes, replaying the current status on
|
|
157
|
+
* connect and closing on a terminal status (`completed`, `failed`, `cancelled`).
|
|
158
|
+
* @param agentSession - ID of the agent session to stream.
|
|
159
|
+
* @returns Server-Sent Events stream
|
|
160
|
+
*/
|
|
161
|
+
stream(agentSession: string): AsyncIterable<{
|
|
162
|
+
event: "session_update";
|
|
163
|
+
data: AgentSession;
|
|
164
|
+
}>;
|
|
153
165
|
}
|
|
154
166
|
//# sourceMappingURL=agent_sessions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent_sessions.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/agent_sessions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEpF,qBAAa,oBAAoB;IACnB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;;OAiBG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,EA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not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: c1dde0539d26
|
|
4
4
|
export class AgentSessionResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -17,7 +17,7 @@ export class AgentSessionResource {
|
|
|
17
17
|
* Requires an app-scoped API key. Results are limited to sessions that belong
|
|
18
18
|
* to agents owned by the authenticated app.
|
|
19
19
|
* @param params - Query parameters.
|
|
20
|
-
* @param params.agent - Filter by agent
|
|
20
|
+
* @param params.agent - Filter by agent IDs (`agi_...`). Omit to return sessions for all agents in the app. Multiple values are OR'd.
|
|
21
21
|
* @param params.status - Filter by one or more session statuses. Accepted values are `"pending"`, `"running"`, `"waiting"`, `"completed"`, `"failed"`, and `"cancelled"`. Omit to return sessions in any status.
|
|
22
22
|
* @param params.routineRun - Filter to sessions that were created by the specified routine run IDs. Accepts up to 100 IDs. Omit to return sessions regardless of their originating routine run.
|
|
23
23
|
* @param params.excludeSystem - When `true`, omits sessions that were created automatically by the platform rather than by your app. Defaults to `false`.
|
|
@@ -159,5 +159,16 @@ export class AgentSessionResource {
|
|
|
159
159
|
async message(agentSession, input) {
|
|
160
160
|
return this.http.request(`/api/v1/agent_sessions/${agentSession}/message`, { method: "POST", body: input });
|
|
161
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* Stream agent session status
|
|
164
|
+
* Opens a Server-Sent Events connection that emits a `session_update` event
|
|
165
|
+
* whenever the agent session's status changes, replaying the current status on
|
|
166
|
+
* connect and closing on a terminal status (`completed`, `failed`, `cancelled`).
|
|
167
|
+
* @param agentSession - ID of the agent session to stream.
|
|
168
|
+
* @returns Server-Sent Events stream
|
|
169
|
+
*/
|
|
170
|
+
async *stream(agentSession) {
|
|
171
|
+
yield* this.http.streamSSE(`/api/v1/agent_sessions/${agentSession}/stream`);
|
|
172
|
+
}
|
|
162
173
|
}
|
|
163
174
|
//# sourceMappingURL=agent_sessions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent_sessions.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_sessions.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"agent_sessions.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_sessions.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,oBAAoB;IACX;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,IAAI,CAAC,MAAgH;QACzH,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,KAAK,KAAK,SAAS,EAAE,CAAC;YAChC,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QACjC,CAAC;QACD,IAAI,MAAM,EAAE,MAAM,KAAK,SAAS,EAAE,CAAC;YACjC,KAAK,CAAC,QAAQ,CAAC,GAAG,MAAM,EAAE,MAAM,CAAC;QACnC,CAAC;QACD,IAAI,MAAM,EAAE,UAAU,KAAK,SAAS,EAAE,CAAC;YACrC,KAAK,CAAC,aAAa,CAAC,GAAG,MAAM,EAAE,UAAU,CAAC;QAC5C,CAAC;QACD,IAAI,MAAM,EAAE,aAAa,KAAK,SAAS,EAAE,CAAC;YACxC,KAAK,CAAC,gBAAgB,CAAC,GAAG,MAAM,EAAE,aAAa,CAAC;QAClD,CAAC;QACD,IAAI,MAAM,EAAE,KAAK,KAAK,SAAS,EAAE,CAAC;YAChC,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QACjC,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,KAAK,CAAC,MAAM,CAAC,KAAuV;QAClW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AAI,CAAC,SAAS,CAAC,0BAA0B,YAAY,SAAS,CAAmE,CAAC;IAChJ,CAAC;CACF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2026 ArchAstro Inc.
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: 28dc5925e69e
|
|
4
4
|
export class AgentSkillResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent_skills.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_skills.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"agent_skills.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_skills.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,kBAAkB;IACT;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,IAAI,CAAC,MAA6B;QACtC,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,KAAK,KAAK,SAAS,EAAE,CAAC;YAChC,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC;QACjC,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,MAAM,CAAC,KAA0H;QACrI,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,MAAM,CAAC,UAAkB;QAC7B,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,UAAU,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,GAAG,CAAC,UAAkB;QAC1B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,UAAU,EAAE,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,MAAM,CAAC,UAAkB,EAAE,KAA0H;QACzJ,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,UAAU,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,QAAQ,CAAC,UAAkB;QAC/B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,UAAU,WAAW,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9F,CAAC;IAED;;;;;;;;;OASG;IACH,KAAK,CAAC,UAAU,CAAC,UAAkB;QACjC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,wBAAwB,UAAU,aAAa,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAChG,CAAC;CACF"}
|
|
@@ -16,12 +16,12 @@ export declare class AgentToolResource {
|
|
|
16
16
|
* `agent` ID that does not belong to the authenticated app returns 404.
|
|
17
17
|
* Requires app scope.
|
|
18
18
|
* @param params - Query parameters.
|
|
19
|
-
* @param params.agent - Filter results to tools belonging to
|
|
19
|
+
* @param params.agent - Filter results to tools belonging to these agents (`agi_...`). Omit to return tools across all agents in the app. Multiple values are OR'd.
|
|
20
20
|
* @param params.kind - Filter by tool kind. One of `"builtin"` or `"custom"`. Omit to return tools of all kinds.
|
|
21
21
|
* @returns List of tools matching the supplied filters.
|
|
22
22
|
*/
|
|
23
23
|
list(params?: {
|
|
24
|
-
agent?: string;
|
|
24
|
+
agent?: string[];
|
|
25
25
|
kind?: string;
|
|
26
26
|
}): Promise<AgentToolListResponse>;
|
|
27
27
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent_tools.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/agent_tools.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEvG,qBAAa,iBAAiB;IAChB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;OAgBG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent_tools.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/agent_tools.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEvG,qBAAa,iBAAiB;IAChB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;OAgBG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAYxF;;;;;;;;;;;;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AE,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC;CAGnD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Copyright (c) 2026 ArchAstro Inc.
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: 3b843682c58a
|
|
4
4
|
export class AgentToolResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -19,7 +19,7 @@ export class AgentToolResource {
|
|
|
19
19
|
* `agent` ID that does not belong to the authenticated app returns 404.
|
|
20
20
|
* Requires app scope.
|
|
21
21
|
* @param params - Query parameters.
|
|
22
|
-
* @param params.agent - Filter results to tools belonging to
|
|
22
|
+
* @param params.agent - Filter results to tools belonging to these agents (`agi_...`). Omit to return tools across all agents in the app. Multiple values are OR'd.
|
|
23
23
|
* @param params.kind - Filter by tool kind. One of `"builtin"` or `"custom"`. Omit to return tools of all kinds.
|
|
24
24
|
* @returns List of tools matching the supplied filters.
|
|
25
25
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent_tools.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_tools.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"agent_tools.js","sourceRoot":"","sources":["../../../src/v1/resources/agent_tools.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,iBAAiB;IACR;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;OAgBG;IACH,KAAK,CAAC,IAAI,CAAC,MAA4C;QACrD,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,KAAK,KAAK,SAAS,EAAE,CAAC;YAChC,KAAK,CAAC,OAAO,CAAC,G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