@archastro/sdk 0.21.0 → 0.22.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/channels/api_chat_channel.d.ts +3 -1
- package/dist/channels/api_chat_channel.d.ts.map +1 -1
- package/dist/channels/api_chat_channel.js +6 -2
- package/dist/channels/api_chat_channel.js.map +1 -1
- package/dist/client.d.ts +4 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +5 -1
- package/dist/client.js.map +1 -1
- package/dist/types/artifacts.d.ts +97 -0
- package/dist/types/artifacts.d.ts.map +1 -1
- package/dist/types/automations.d.ts +4 -4
- package/dist/types/automations.d.ts.map +1 -1
- package/dist/types/automations.js +5 -5
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +3762 -0
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/common.d.ts +2585 -152
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +48 -12
- package/dist/types/common.js.map +1 -1
- package/dist/types/computers.d.ts +20 -0
- package/dist/types/computers.d.ts.map +1 -1
- package/dist/types/computers.js +8 -1
- package/dist/types/computers.js.map +1 -1
- package/dist/types/tasks.d.ts +244 -3
- package/dist/types/tasks.d.ts.map +1 -1
- package/dist/types/tasks.js +46 -4
- package/dist/types/tasks.js.map +1 -1
- package/dist/types/teams.d.ts +381 -0
- package/dist/types/teams.d.ts.map +1 -1
- package/dist/types/threads.d.ts +357 -0
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +3 -1
- package/dist/types/threads.js.map +1 -1
- package/dist/v1/resources/activity_feed.d.ts +15 -0
- package/dist/v1/resources/activity_feed.d.ts.map +1 -1
- package/dist/v1/resources/activity_feed.js +1 -1
- package/dist/v1/resources/agent_computers.d.ts +15 -0
- package/dist/v1/resources/agent_computers.d.ts.map +1 -1
- package/dist/v1/resources/agent_computers.js +1 -1
- package/dist/v1/resources/agent_computers.js.map +1 -1
- package/dist/v1/resources/agent_requests.d.ts +8 -0
- package/dist/v1/resources/agent_requests.d.ts.map +1 -1
- package/dist/v1/resources/agent_requests.js +9 -1
- package/dist/v1/resources/agent_requests.js.map +1 -1
- package/dist/v1/resources/agent_routines.d.ts +15 -0
- package/dist/v1/resources/agent_routines.d.ts.map +1 -1
- package/dist/v1/resources/agent_routines.js +1 -1
- package/dist/v1/resources/agent_routines.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +65 -0
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +2 -1
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/artifacts.d.ts +30 -0
- package/dist/v1/resources/artifacts.d.ts.map +1 -1
- package/dist/v1/resources/artifacts.js +1 -1
- package/dist/v1/resources/artifacts.js.map +1 -1
- package/dist/v1/resources/automation_runs.d.ts +6 -2
- package/dist/v1/resources/automation_runs.d.ts.map +1 -1
- package/dist/v1/resources/automation_runs.js +10 -4
- package/dist/v1/resources/automation_runs.js.map +1 -1
- package/dist/v1/resources/computers.d.ts +113 -0
- package/dist/v1/resources/computers.d.ts.map +1 -0
- package/dist/v1/resources/computers.js +113 -0
- package/dist/v1/resources/computers.js.map +1 -0
- package/dist/v1/resources/custom_objects.d.ts +60 -0
- package/dist/v1/resources/custom_objects.d.ts.map +1 -1
- package/dist/v1/resources/custom_objects.js +1 -1
- package/dist/v1/resources/custom_objects.js.map +1 -1
- package/dist/v1/resources/files.d.ts +24 -0
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +8 -1
- package/dist/v1/resources/files.js.map +1 -1
- package/dist/v1/resources/index.d.ts +2 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +3 -1
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/orgs.d.ts +317 -40
- package/dist/v1/resources/orgs.d.ts.map +1 -1
- package/dist/v1/resources/orgs.js +151 -31
- package/dist/v1/resources/orgs.js.map +1 -1
- package/dist/v1/resources/solutions.d.ts +15 -0
- package/dist/v1/resources/solutions.d.ts.map +1 -1
- package/dist/v1/resources/solutions.js +1 -1
- package/dist/v1/resources/solutions.js.map +1 -1
- package/dist/v1/resources/task_epics.d.ts +85 -0
- package/dist/v1/resources/task_epics.d.ts.map +1 -0
- package/dist/v1/resources/task_epics.js +71 -0
- package/dist/v1/resources/task_epics.js.map +1 -0
- package/dist/v1/resources/tasks.d.ts +61 -1
- package/dist/v1/resources/tasks.d.ts.map +1 -1
- package/dist/v1/resources/tasks.js +40 -2
- package/dist/v1/resources/tasks.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +337 -51
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +111 -45
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/thread_messages.d.ts +15 -0
- package/dist/v1/resources/thread_messages.d.ts.map +1 -1
- package/dist/v1/resources/thread_messages.js +1 -1
- package/dist/v1/resources/thread_messages.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +53 -3
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +5 -4
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +294 -51
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +139 -45
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1.d.ts +4 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +7 -1
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
package/dist/types/common.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
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: e322067d3dcd
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { automationParticipantSlotSchema, automationPrefillsSchema } from "./automations.js";
|
|
6
|
+
import { computerRepositorySchema } from "./computers.js";
|
|
6
7
|
import { configSchema } from "./config.js";
|
|
7
8
|
import { imageSourceSchema } from "./image.js";
|
|
8
9
|
import { userSchema } from "./users.js";
|
|
@@ -32,15 +33,23 @@ export const aclRemoveTargetSchema = z.object({
|
|
|
32
33
|
export const aclSchema = z.object({
|
|
33
34
|
/** Patch mode: grants to add or merge into the existing list. Cannot be combined with `grants`. */
|
|
34
35
|
add: z.array(aclGrantSchema).optional().describe("Patch mode: grants to add or merge into the existing list. Cannot be combined with `grants`."),
|
|
36
|
+
/** Patch mode: denies to add or merge, replacing any grant for the same principal. */
|
|
37
|
+
add_denies: z.array(aclGrantSchema).optional().describe("Patch mode: denies to add or merge, replacing any grant for the same principal."),
|
|
38
|
+
/** Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support. */
|
|
39
|
+
denies: z.array(aclGrantSchema).optional().describe("Replace mode: the complete deny list. Supplying grants or denies replaces both lists. Requires schema deny support."),
|
|
35
40
|
/** Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`. */
|
|
36
41
|
grants: z.array(aclGrantSchema).optional().describe("Replace mode: the complete new list of grants that replaces all existing entries. Send an empty array (`[]`) to clear all grants. Cannot be combined with `add` or `remove`."),
|
|
42
|
+
/** Retain current server denies atomically in replacement or patch mode; current denies win. */
|
|
43
|
+
preserve_denies: z.boolean().optional().describe("Retain current server denies atomically in replacement or patch mode; current denies win."),
|
|
37
44
|
/** Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`. */
|
|
38
45
|
remove: z.array(aclRemoveTargetSchema).optional().describe("Patch mode: principals whose grants should be removed from the existing list. Cannot be combined with `grants`."),
|
|
46
|
+
/** Patch mode: principals whose denies should be removed. */
|
|
47
|
+
remove_denies: z.array(aclRemoveTargetSchema).optional().describe("Patch mode: principals whose denies should be removed."),
|
|
39
48
|
}).describe("An access-control list payload that supports either full replacement or targeted patch operations on a resource's grants.");
|
|
40
49
|
/** Runtime validator for {@link ActivityFeedEntry}. */
|
|
41
50
|
export const activityFeedEntrySchema = z.object({
|
|
42
51
|
/** The agent that produced this event. Returns an agent ID (`agi_...`) by default, or an expanded agent object when the association is loaded. `null` if no agent is associated. */
|
|
43
|
-
agent: z.union([z.string(), z.object({ acl: z.object({ add: z.array(z.object({ actions: z.array(z.string()), principal: z.string().optional(), principal_type: z.string() })).optional(), grants: z.array(z.object({ actions: z.array(z.string()), principal: z.string().optional(), principal_type: z.string() })).optional(), remove: z.array(z.object({ principal: z.string().optional(), principal_type: z.string() })).optional() }).nullable().optional(), app: z.string().optional(), created_at: z.string().optional(), default_model: z.string().nullable().optional(), description: z.string().nullable().optional(), email: z.string().nullable().optional(), id: z.string(), identity: z.string().nullable().optional(), last_applied_template_config: z.string().nullable().optional(), lookup_key: z.string().nullable().optional(), metadata: z.record(z.custom((value) => value !== undefined)).optional(), name: z.string().optional(), org: z.string().nullable().optional(), org_name: z.string().nullable().optional(), originator: z.string().nullable().optional(), phone_number: z.string().nullable().optional(), sandbox: z.string().nullable().optional(), source_solution: z.object({ current_solution: z.object({ category_keys: z.array(z.string()).optional(), created_at: z.string().optional(), description: z.string().nullable().optional(), events: z.record(z.custom((value) => value !== undefined)).optional(), id: z.string(), image_url: z.string().nullable().optional(), installed_config_ids: z.array(z.string()), kind: z.string(), latest_solution: z.string().nullable().optional(), latest_version: z.string().nullable().optional(), lookup_key: z.string().nullable().optional(), metadata: z.record(z.custom((value) => value !== undefined)).optional(), name: z.string().nullable().optional(), org: z.string().nullable().optional(), org_logo: z.object({ file: z.string().nullable().optional(), height: z.number().int().nullable().optional(), media: z.string().nullable().optional(), mime_type: z.string().nullable().optional(), refresh_url: z.string().nullable().optional(), url: z.string().nullable().optional(), width: z.number().int().nullable().optional() }).nullable().optional(), org_name: z.string().nullable().optional(), org_slug: z.string().nullable().optional(), owners: z.array(z.string()), readme_url: z.string().nullable().optional(), screenshot_urls: z.array(z.string()).optional(), solution_id: z.string().nullable().optional(), solution_version: z.string().nullable().optional(), tag_keys: z.array(z.string()).optional(), template_kind: z.string().nullable().optional(), templates: z.array(z.object({ description: z.string().nullable().optional(), details: z.object({ automation_type: z.string().nullable().optional(), invoke_contract: z.object({ input_schema: z.record(z.custom((value) => value !== undefined)).nullable().optional(), participants: z.array(z.object({ description: z.string().nullable().optional(), name: z.string(), required: z.boolean(), type: z.string() })).nullable().optional(), prefills: z.object({ participants: z.record(z.custom((value) => value !== undefined)).optional(), payload: z.record(z.custom((value) => value !== undefined)).optional() }) }).nullable().optional(), type: z.literal("automation") }).nullable().optional(), display_name: z.string().nullable().optional(), id: z.string().nullable().optional(), kind: z.string(), lookup_key: z.string().nullable().optional(), name: z.string().nullable().optional(), readme_url: z.string().nullable().optional(), virtual_path: z.string().nullable().optional() })), updated_at: z.string().optional(), upgrade_available: z.boolean(), virtual_path: z.string().nullable().optional() }).optional(), solution: z.object({ category_keys: z.array(z.string()).optional(), created_at: z.string().optional(), description: z.string().nullable().optional(), events: z.record(z.custom((value) => value !== undefined)).optional(), id: z.string(), image_url: z.string().nullable().optional(), installed_config_ids: z.array(z.string()), kind: z.string(), latest_solution: z.string().nullable().optional(), latest_version: z.string().nullable().optional(), lookup_key: z.string().nullable().optional(), metadata: z.record(z.custom((value) => value !== undefined)).optional(), name: z.string().nullable().optional(), org: z.string().nullable().optional(), org_logo: z.object({ file: z.string().nullable().optional(), height: z.number().int().nullable().optional(), media: z.string().nullable().optional(), mime_type: z.string().nullable().optional(), refresh_url: z.string().nullable().optional(), url: z.string().nullable().optional(), width: z.number().int().nullable().optional() }).nullable().optional(), org_name: z.string().nullable().optional(), org_slug: z.string().nullable().optional(), owners: z.array(z.string()), readme_url: z.string().nullable().optional(), screenshot_urls: z.array(z.string()).optional(), solution_id: z.string().nullable().optional(), solution_version: z.string().nullable().optional(), tag_keys: z.array(z.string()).optional(), template_kind: z.string().nullable().optional(), templates: z.array(z.object({ description: z.string().nullable().optional(), details: z.object({ automation_type: z.string().nullable().optional(), invoke_contract: z.object({ input_schema: z.record(z.custom((value) => value !== undefined)).nullable().optional(), participants: z.array(z.object({ description: z.string().nullable().optional(), name: z.string(), required: z.boolean(), type: z.string() })).nullable().optional(), prefills: z.object({ participants: z.record(z.custom((value) => value !== undefined)).optional(), payload: z.record(z.custom((value) => value !== undefined)).optional() }) }).nullable().optional(), type: z.literal("automation") }).nullable().optional(), display_name: z.string().nullable().optional(), id: z.string().nullable().optional(), kind: z.string(), lookup_key: z.string().nullable().optional(), name: z.string().nullable().optional(), readme_url: z.string().nullable().optional(), virtual_path: z.string().nullable().optional() })), updated_at: z.string().optional(), upgrade_available: z.boolean(), virtual_path: z.string().nullable().optional() }), template: z.object({ created_at: z.string().optional(), description: z.string().nullable().optional(), display_name: z.string().nullable().optional(), id: z.string(), kind: z.string(), lookup_key: z.string().nullable().optional(), name: z.string().nullable().optional(), updated_at: z.string().optional(), virtual_path: z.string().nullable().optional() }) }).nullable().optional(), team: z.string().nullable().optional(), template_upgrade_available: z.boolean().nullable().optional(), updated_at: z.string().optional(), user: z.string().nullable().optional() })]).optional().describe("The agent that produced this event. Returns an agent ID (`agi_...`) by default, or an expanded agent object when the association is loaded. `null` if no agent is associated."),
|
|
52
|
+
agent: z.union([z.string(), z.object({ acl: z.object({ add: z.array(z.object({ actions: z.array(z.string()), principal: z.string().optional(), principal_type: z.string() })).optional(), add_denies: z.array(z.object({ actions: z.array(z.string()), principal: z.string().optional(), principal_type: z.string() })).optional(), denies: z.array(z.object({ actions: z.array(z.string()), principal: z.string().optional(), principal_type: z.string() })).optional(), grants: z.array(z.object({ actions: z.array(z.string()), principal: z.string().optional(), principal_type: z.string() })).optional(), preserve_denies: z.boolean().optional(), remove: z.array(z.object({ principal: z.string().optional(), principal_type: z.string() })).optional(), remove_denies: z.array(z.object({ principal: z.string().optional(), principal_type: z.string() })).optional() }).nullable().optional(), app: z.string().optional(), created_at: z.string().optional(), default_model: z.string().nullable().optional(), description: z.string().nullable().optional(), email: z.string().nullable().optional(), id: z.string(), identity: z.string().nullable().optional(), last_applied_template_config: z.string().nullable().optional(), lookup_key: z.string().nullable().optional(), metadata: z.record(z.custom((value) => value !== undefined)).optional(), name: z.string().optional(), org: z.string().nullable().optional(), org_name: z.string().nullable().optional(), originator: z.string().nullable().optional(), phone_number: z.string().nullable().optional(), sandbox: z.string().nullable().optional(), source_solution: z.object({ current_solution: z.object({ category_keys: z.array(z.string()).optional(), created_at: z.string().optional(), description: z.string().nullable().optional(), events: z.record(z.custom((value) => value !== undefined)).optional(), id: z.string(), image_url: z.string().nullable().optional(), installed_config_ids: z.array(z.string()), kind: z.string(), latest_solution: z.string().nullable().optional(), latest_version: z.string().nullable().optional(), lookup_key: z.string().nullable().optional(), metadata: z.record(z.custom((value) => value !== undefined)).optional(), name: z.string().nullable().optional(), org: z.string().nullable().optional(), org_logo: z.object({ file: z.string().nullable().optional(), height: z.number().int().nullable().optional(), media: z.string().nullable().optional(), mime_type: z.string().nullable().optional(), refresh_url: z.string().nullable().optional(), url: z.string().nullable().optional(), width: z.number().int().nullable().optional() }).nullable().optional(), org_name: z.string().nullable().optional(), org_slug: z.string().nullable().optional(), owners: z.array(z.string()), readme_url: z.string().nullable().optional(), screenshot_urls: z.array(z.string()).optional(), solution_id: z.string().nullable().optional(), solution_version: z.string().nullable().optional(), tag_keys: z.array(z.string()).optional(), template_kind: z.string().nullable().optional(), templates: z.array(z.object({ description: z.string().nullable().optional(), details: z.object({ automation_type: z.string().nullable().optional(), invoke_contract: z.object({ input_schema: z.record(z.custom((value) => value !== undefined)).nullable().optional(), participants: z.array(z.object({ description: z.string().nullable().optional(), name: z.string(), required: z.boolean(), type: z.string() })).nullable().optional(), prefills: z.object({ participants: z.record(z.custom((value) => value !== undefined)).optional(), payload: z.record(z.custom((value) => value !== undefined)).optional() }) }).nullable().optional(), type: z.literal("automation") }).nullable().optional(), display_name: z.string().nullable().optional(), id: z.string().nullable().optional(), kind: z.string(), lookup_key: z.string().nullable().optional(), name: z.string().nullable().optional(), readme_url: z.string().nullable().optional(), virtual_path: z.string().nullable().optional() })), updated_at: z.string().optional(), upgrade_available: z.boolean(), virtual_path: z.string().nullable().optional() }).optional(), solution: z.object({ category_keys: z.array(z.string()).optional(), created_at: z.string().optional(), description: z.string().nullable().optional(), events: z.record(z.custom((value) => value !== undefined)).optional(), id: z.string(), image_url: z.string().nullable().optional(), installed_config_ids: z.array(z.string()), kind: z.string(), latest_solution: z.string().nullable().optional(), latest_version: z.string().nullable().optional(), lookup_key: z.string().nullable().optional(), metadata: z.record(z.custom((value) => value !== undefined)).optional(), name: z.string().nullable().optional(), org: z.string().nullable().optional(), org_logo: z.object({ file: z.string().nullable().optional(), height: z.number().int().nullable().optional(), media: z.string().nullable().optional(), mime_type: z.string().nullable().optional(), refresh_url: z.string().nullable().optional(), url: z.string().nullable().optional(), width: z.number().int().nullable().optional() }).nullable().optional(), org_name: z.string().nullable().optional(), org_slug: z.string().nullable().optional(), owners: z.array(z.string()), readme_url: z.string().nullable().optional(), screenshot_urls: z.array(z.string()).optional(), solution_id: z.string().nullable().optional(), solution_version: z.string().nullable().optional(), tag_keys: z.array(z.string()).optional(), template_kind: z.string().nullable().optional(), templates: z.array(z.object({ description: z.string().nullable().optional(), details: z.object({ automation_type: z.string().nullable().optional(), invoke_contract: z.object({ input_schema: z.record(z.custom((value) => value !== undefined)).nullable().optional(), participants: z.array(z.object({ description: z.string().nullable().optional(), name: z.string(), required: z.boolean(), type: z.string() })).nullable().optional(), prefills: z.object({ participants: z.record(z.custom((value) => value !== undefined)).optional(), payload: z.record(z.custom((value) => value !== undefined)).optional() }) }).nullable().optional(), type: z.literal("automation") }).nullable().optional(), display_name: z.string().nullable().optional(), id: z.string().nullable().optional(), kind: z.string(), lookup_key: z.string().nullable().optional(), name: z.string().nullable().optional(), readme_url: z.string().nullable().optional(), virtual_path: z.string().nullable().optional() })), updated_at: z.string().optional(), upgrade_available: z.boolean(), virtual_path: z.string().nullable().optional() }), template: z.object({ created_at: z.string().optional(), description: z.string().nullable().optional(), display_name: z.string().nullable().optional(), id: z.string(), kind: z.string(), lookup_key: z.string().nullable().optional(), name: z.string().nullable().optional(), updated_at: z.string().optional(), virtual_path: z.string().nullable().optional() }) }).nullable().optional(), team: z.string().nullable().optional(), template_upgrade_available: z.boolean().nullable().optional(), updated_at: z.string().optional(), user: z.string().nullable().optional() })]).optional().describe("The agent that produced this event. Returns an agent ID (`agi_...`) by default, or an expanded agent object when the association is loaded. `null` if no agent is associated."),
|
|
44
53
|
/** ID of the application that produced this entry (`dap_...`). `null` if not scoped to an app. */
|
|
45
54
|
app: z.string().optional().describe("ID of the application that produced this entry (`dap_...`). `null` if not scoped to an app."),
|
|
46
55
|
/** Array of attachment objects associated with this entry. Each attachment has a `type` field (e.g. `"file"`, `"task"`, `"artifact"`) and type-specific additional fields. Empty array when there are no attachments. */
|
|
@@ -144,14 +153,35 @@ export const originSchema = z.object({
|
|
|
144
153
|
session_id: z.string().nullable().optional(),
|
|
145
154
|
thread_id: z.string().nullable().optional(),
|
|
146
155
|
}).describe("Origin references.");
|
|
156
|
+
/** Runtime validator for {@link SelfUpdateChange}. */
|
|
157
|
+
export const selfUpdateChangeSchema = z.object({
|
|
158
|
+
action: z.string().optional(),
|
|
159
|
+
class: z.string().optional(),
|
|
160
|
+
path: z.string().optional(),
|
|
161
|
+
tier: z.string().optional(),
|
|
162
|
+
}).describe("Public review fields for one proposed self-update change.");
|
|
147
163
|
/** Runtime validator for {@link Payload}. */
|
|
148
164
|
export const payloadSchema = z.object({
|
|
149
|
-
|
|
150
|
-
|
|
165
|
+
changes: z.array(selfUpdateChangeSchema).optional(),
|
|
166
|
+
from_version: z.string().optional(),
|
|
167
|
+
instructions_md: z.string().optional(),
|
|
168
|
+
key: z.string().optional(),
|
|
169
|
+
overwrite: z.boolean().optional(),
|
|
170
|
+
prompt: z.string().optional(),
|
|
171
|
+
proposal_id: z.string().optional(),
|
|
172
|
+
question: z.string().optional(),
|
|
173
|
+
rationale: z.string().optional(),
|
|
174
|
+
to_version: z.string().optional(),
|
|
175
|
+
validate_script: z.string().optional(),
|
|
176
|
+
}).describe("Kind-safe request payload.");
|
|
151
177
|
/** Runtime validator for {@link Resolution}. */
|
|
152
178
|
export const resolutionSchema = z.object({
|
|
153
179
|
answer: z.string().optional(),
|
|
180
|
+
key: z.string().optional(),
|
|
154
181
|
reason: z.string().optional(),
|
|
182
|
+
set: z.boolean().optional(),
|
|
183
|
+
status: z.string().optional(),
|
|
184
|
+
to_version: z.string().optional(),
|
|
155
185
|
}).describe("Answer or rejection reason; null before resolution.");
|
|
156
186
|
/** Runtime validator for {@link Summary}. */
|
|
157
187
|
export const summarySchema = z.object({
|
|
@@ -607,6 +637,8 @@ export const currentUserSchema = z.object({
|
|
|
607
637
|
app: z.string().nullable().optional().describe("ID of the token-scoped app (`dap_...`)."),
|
|
608
638
|
/** Display name of the token-scoped app. */
|
|
609
639
|
app_name: z.string().nullable().optional().describe("Display name of the token-scoped app."),
|
|
640
|
+
/** Stable public URL of the profile picture. Unlike `profile_picture.url` it does not expire, so clients can store it; it stops resolving when the picture is replaced. `null` when the user has no profile picture. */
|
|
641
|
+
avatar_url: z.string().nullable().optional().describe("Stable public URL of the profile picture. Unlike `profile_picture.url` it does not expire, so clients can store it; it stops resolving when the picture is replaced. `null` when the user has no profile picture."),
|
|
610
642
|
/** Present only when the request supplies one or more `entitlement[]` values. */
|
|
611
643
|
effective_access: effectiveAccessSchema.optional().describe("Present only when the request supplies one or more `entitlement[]` values."),
|
|
612
644
|
/** Email address of the user. */
|
|
@@ -1580,6 +1612,8 @@ export const agentComputerSchema = z.object({
|
|
|
1580
1612
|
agent: z.string().nullable().optional().describe("ID of the agent that owns this computer (`agi_...`). `null` if the computer is not yet assigned to an agent."),
|
|
1581
1613
|
/** ID of the app this computer belongs to (`dap_...`). */
|
|
1582
1614
|
app: z.string().optional().describe("ID of the app this computer belongs to (`dap_...`)."),
|
|
1615
|
+
/** Bootstrap results, including each repository's status, commit and error. */
|
|
1616
|
+
bootstrap: z.record(z.custom((value) => value !== undefined)).optional().describe("Bootstrap results, including each repository's status, commit and error."),
|
|
1583
1617
|
/** Provider-specific configuration key-value pairs for the computer. Structure depends on the underlying compute provider. */
|
|
1584
1618
|
config: z.record(z.custom((value) => value !== undefined)).optional().describe("Provider-specific configuration key-value pairs for the computer. Structure depends on the underlying compute provider."),
|
|
1585
1619
|
/** When the computer was created (ISO 8601). */
|
|
@@ -1598,14 +1632,16 @@ export const agentComputerSchema = z.object({
|
|
|
1598
1632
|
metadata: z.record(z.custom((value) => value !== undefined)).optional().describe("Arbitrary key-value metadata you attached to the computer. `null` if none was provided."),
|
|
1599
1633
|
/** Human-readable display name for the computer. `null` if not set. */
|
|
1600
1634
|
name: z.string().optional().describe("Human-readable display name for the computer. `null` if not set."),
|
|
1601
|
-
/** Compute backend powering this computer: `"sprites"` (Fly Sprites), `"vercel"` (Vercel Sandbox)
|
|
1602
|
-
provider: z.string().optional().describe("Compute backend powering this computer: `\"sprites\"` (Fly Sprites), `\"vercel\"` (Vercel Sandbox)
|
|
1635
|
+
/** Compute backend powering this computer: `"sprites"` (Fly Sprites), `"vercel"` (Vercel Sandbox), `"e2b"` (E2B) or `"devbox"` (an ArchAstro devbox owned by the computer's user). */
|
|
1636
|
+
provider: z.string().optional().describe("Compute backend powering this computer: `\"sprites\"` (Fly Sprites), `\"vercel\"` (Vercel Sandbox), `\"e2b\"` (E2B) or `\"devbox\"` (an ArchAstro devbox owned by the computer's user)."),
|
|
1603
1637
|
/** Cloud region where the computer is hosted, e.g. `"us-east-1"`. `null` if not yet assigned or when the provider has no region concept (e.g. `"vercel"`, `"e2b"`). */
|
|
1604
1638
|
region: z.string().nullable().optional().describe("Cloud region where the computer is hosted, e.g. `\"us-east-1\"`. `null` if not yet assigned or when the provider has no region concept (e.g. `\"vercel\"`, `\"e2b\"`)."),
|
|
1639
|
+
/** Ordered GitHub checkouts with repository and nullable ref; the first checkout is primary. */
|
|
1640
|
+
repositories: z.array(computerRepositorySchema).optional().describe("Ordered GitHub checkouts with repository and nullable ref; the first checkout is primary."),
|
|
1605
1641
|
/** URL of the live screenshot sprite used to render a real-time preview of the computer's screen. `null` when no sprite is available. */
|
|
1606
1642
|
sprite_url: z.string().nullable().optional().describe("URL of the live screenshot sprite used to render a real-time preview of the computer's screen. `null` when no sprite is available."),
|
|
1607
|
-
/** Current lifecycle state of the computer. Common values include `"provisioning"`, `"ready"`, `"error"`, and `"
|
|
1608
|
-
status: z.string().nullable().optional().describe("Current lifecycle state of the computer. Common values include `\"provisioning\"`, `\"ready\"`, `\"error\"`, and `\"
|
|
1643
|
+
/** Current lifecycle state of the computer. Common values include `"provisioning"`, `"ready"`, `"paused"` (resumes on use), `"error"`, and `"destroyed"`. */
|
|
1644
|
+
status: z.string().nullable().optional().describe("Current lifecycle state of the computer. Common values include `\"provisioning\"`, `\"ready\"`, `\"paused\"` (resumes on use), `\"error\"`, and `\"destroyed\"`."),
|
|
1609
1645
|
/** Thread this computer belongs to, or null for a non-thread computer. */
|
|
1610
1646
|
thread_id: z.string().nullable().optional().describe("Thread this computer belongs to, or null for a non-thread computer."),
|
|
1611
1647
|
/** When the computer record was last modified (ISO 8601). */
|
|
@@ -1743,8 +1779,8 @@ export const agentRequestSchema = z.object({
|
|
|
1743
1779
|
kind: z.string().optional().describe("Registered request kind."),
|
|
1744
1780
|
/** Origin references. */
|
|
1745
1781
|
origin: originSchema.optional().describe("Origin references."),
|
|
1746
|
-
/**
|
|
1747
|
-
payload: payloadSchema.optional().describe("
|
|
1782
|
+
/** Kind-safe request payload. */
|
|
1783
|
+
payload: payloadSchema.optional().describe("Kind-safe request payload."),
|
|
1748
1784
|
/** Answer or rejection reason; null before resolution. */
|
|
1749
1785
|
resolution: resolutionSchema.nullable().optional().describe("Answer or rejection reason; null before resolution."),
|
|
1750
1786
|
/** Resolution time. */
|
|
@@ -2085,8 +2121,8 @@ export const agentUpgradeChangeSchema = z.object({
|
|
|
2085
2121
|
parent_template_config: upgradeTemplateSummarySchema.describe("Summary of the parent AgentTemplate config (`cfg_...`) being applied in this upgrade."),
|
|
2086
2122
|
/** Resource-type-specific identity details. Tools: `tool_type`, `builtin_tool_key`, `name_prefix`, `handler_type`, `instruction`. Routines: `handler_type`, `preset_name`, `event_type`, `schedule`, `trigger_context`. Skills: `instruction`. Computers: `region`. Knowledge: `mode`, `knowledge_key`, `extraction_output_ref`. Only populated keys are present; `null` when nothing is known. */
|
|
2087
2123
|
resource: z.record(z.custom((value) => value !== undefined)).optional().describe("Resource-type-specific identity details. Tools: `tool_type`, `builtin_tool_key`, `name_prefix`, `handler_type`, `instruction`. Routines: `handler_type`, `preset_name`, `event_type`, `schedule`, `trigger_context`. Skills: `instruction`. Computers: `region`. Knowledge: `mode`, `knowledge_key`, `extraction_output_ref`. Only populated keys are present; `null` when nothing is known."),
|
|
2088
|
-
/** Type of the resource being changed. One of `"agent"`, `"tool"`, `"routine"`, `"skill"`, `"computer"`, or `"knowledge"`. */
|
|
2089
|
-
resource_type: z.string().describe("Type of the resource being changed. One of `\"agent\"`, `\"tool\"`, `\"routine\"`, `\"skill\"`, `\"computer\"`, or `\"knowledge\"`."),
|
|
2124
|
+
/** Type of the resource being changed. One of `"agent"`, `"tool"`, `"routine"`, `"skill"`, `"computer"`, `"endpoint"`, or `"knowledge"`. */
|
|
2125
|
+
resource_type: z.string().describe("Type of the resource being changed. One of `\"agent\"`, `\"tool\"`, `\"routine\"`, `\"skill\"`, `\"computer\"`, `\"endpoint\"`, or `\"knowledge\"`."),
|
|
2090
2126
|
/** Summary of the specific child template config (`cfg_...`) that defines this resource. `null` when no source template is resolvable. */
|
|
2091
2127
|
source_template_config: upgradeTemplateSummarySchema.optional().describe("Summary of the specific child template config (`cfg_...`) that defines this resource. `null` when no source template is resolvable."),
|
|
2092
2128
|
}).describe("One child-resource change produced by an agent upgrade, describing the action to be taken on a single resource.");
|