@archastro/sdk 0.9.0 → 0.11.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/client.d.ts +14 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +15 -1
- package/dist/client.js.map +1 -1
- package/dist/types/ai.d.ts +2 -2
- package/dist/types/chat.d.ts +111 -50
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/common.d.ts +1096 -468
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +155 -62
- package/dist/types/common.js.map +1 -1
- package/dist/types/extractions.d.ts +36 -0
- package/dist/types/extractions.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/status.d.ts +121 -0
- package/dist/types/status.d.ts.map +1 -0
- package/dist/types/status.js +18 -0
- package/dist/types/status.js.map +1 -0
- package/dist/types/tasks.d.ts +601 -0
- package/dist/types/tasks.d.ts.map +1 -0
- package/dist/types/tasks.js +118 -0
- package/dist/types/tasks.js.map +1 -0
- package/dist/types/threads.d.ts +542 -5
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +45 -2
- package/dist/types/threads.js.map +1 -1
- package/dist/v1/resources/activity_feed.d.ts +1 -1
- package/dist/v1/resources/activity_feed.js +2 -2
- package/dist/v1/resources/agents.d.ts +2 -2
- package/dist/v1/resources/agents.js +3 -3
- package/dist/v1/resources/custom_objects.d.ts +86 -20
- package/dist/v1/resources/custom_objects.d.ts.map +1 -1
- package/dist/v1/resources/custom_objects.js +41 -19
- package/dist/v1/resources/custom_objects.js.map +1 -1
- package/dist/v1/resources/files.d.ts +19 -0
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +3 -1
- package/dist/v1/resources/files.js.map +1 -1
- package/dist/v1/resources/index.d.ts +7 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +8 -1
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/private_service_definitions.d.ts +12 -0
- package/dist/v1/resources/private_service_definitions.d.ts.map +1 -0
- package/dist/v1/resources/private_service_definitions.js +18 -0
- package/dist/v1/resources/private_service_definitions.js.map +1 -0
- package/dist/v1/resources/private_service_enrollments.d.ts +42 -0
- package/dist/v1/resources/private_service_enrollments.d.ts.map +1 -0
- package/dist/v1/resources/private_service_enrollments.js +56 -0
- package/dist/v1/resources/private_service_enrollments.js.map +1 -0
- package/dist/v1/resources/private_services.d.ts +46 -0
- package/dist/v1/resources/private_services.d.ts.map +1 -0
- package/dist/v1/resources/private_services.js +55 -0
- package/dist/v1/resources/private_services.js.map +1 -0
- package/dist/v1/resources/sandboxes.d.ts +81 -0
- package/dist/v1/resources/sandboxes.d.ts.map +1 -0
- package/dist/v1/resources/sandboxes.js +84 -0
- package/dist/v1/resources/sandboxes.js.map +1 -0
- package/dist/v1/resources/slack_channel_bindings.d.ts +37 -0
- package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.js +31 -1
- package/dist/v1/resources/slack_channel_bindings.js.map +1 -1
- package/dist/v1/resources/solutions.d.ts +2 -0
- package/dist/v1/resources/solutions.d.ts.map +1 -1
- package/dist/v1/resources/solutions.js +2 -1
- package/dist/v1/resources/solutions.js.map +1 -1
- package/dist/v1/resources/status.d.ts +22 -0
- package/dist/v1/resources/status.d.ts.map +1 -0
- package/dist/v1/resources/status.js +27 -0
- package/dist/v1/resources/status.js.map +1 -0
- package/dist/v1/resources/tasks.d.ts +599 -0
- package/dist/v1/resources/tasks.d.ts.map +1 -0
- package/dist/v1/resources/tasks.js +436 -0
- package/dist/v1/resources/tasks.js.map +1 -0
- package/dist/v1/resources/teams.d.ts +463 -0
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +281 -1
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/thread_messages.d.ts +25 -3
- package/dist/v1/resources/thread_messages.d.ts.map +1 -1
- package/dist/v1/resources/thread_messages.js +25 -4
- package/dist/v1/resources/thread_messages.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +40 -0
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +36 -1
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/trajectories.d.ts +34 -0
- package/dist/v1/resources/trajectories.d.ts.map +1 -0
- package/dist/v1/resources/trajectories.js +41 -0
- package/dist/v1/resources/trajectories.js.map +1 -0
- package/dist/v1/resources/users.d.ts +353 -0
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +208 -1
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1.d.ts +14 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +22 -1
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
package/dist/types/common.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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: 76c7762b600d
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { automationParticipantSlotSchema, automationPrefillsSchema } from "./automations.js";
|
|
6
6
|
import { configSchema } from "./config.js";
|
|
@@ -353,6 +353,8 @@ export const messageSchema = z.object({
|
|
|
353
353
|
reply_count: z.number().int().optional().describe("Total number of direct replies to this message. Only present when explicitly requested or computed by the server."),
|
|
354
354
|
/** The parent message this message is a reply to, expanded as a full message object when loaded. `null` if this is a top-level message or the association is not preloaded. */
|
|
355
355
|
reply_to: z.record(z.unknown()).optional().describe("The parent message this message is a reply to, expanded as a full message object when loaded. `null` if this is a top-level message or the association is not preloaded."),
|
|
356
|
+
/** ID of the root message in this reply chain (`msg_...`). `null` for a top-level message. The value is persisted when the reply is created, so callers can correlate a multi-turn session without walking parent messages. */
|
|
357
|
+
root_message_id: z.string().nullable().optional().describe("ID of the root message in this reply chain (`msg_...`). `null` for a top-level message. The value is persisted when the reply is created, so callers can correlate a multi-turn session without walking parent messages."),
|
|
356
358
|
/** ID of the developer sandbox this message belongs to (`dsb_...`). `null` for non-sandbox messages. */
|
|
357
359
|
sandbox: z.string().optional().describe("ID of the developer sandbox this message belongs to (`dsb_...`). `null` for non-sandbox messages."),
|
|
358
360
|
/** ID of the team this message is scoped to (`tem_...`). `null` if the message is not team-scoped. */
|
|
@@ -458,8 +460,20 @@ export const contextIngestionSchema = z.object({
|
|
|
458
460
|
/** ID of the user that initiated this ingestion (`usr_...`). `null` if initiated by an agent. */
|
|
459
461
|
user: z.string().optional().describe("ID of the user that initiated this ingestion (`usr_...`). `null` if initiated by an agent."),
|
|
460
462
|
}).describe("A context ingestion job that processes a context source and populates its documents. Tracks status and timing from submission through completion or failure.");
|
|
463
|
+
/** Runtime validator for {@link CreatedPrivateServiceEnrollment}. */
|
|
464
|
+
export const createdPrivateServiceEnrollmentSchema = z.object({
|
|
465
|
+
/** One-time connector enrollment token. Store it immediately. */
|
|
466
|
+
enrollment_token: z.string().describe("One-time connector enrollment token. Store it immediately."),
|
|
467
|
+
/** When the one-time enrollment token expires. */
|
|
468
|
+
enrollment_token_expires_at: z.string().describe("When the one-time enrollment token expires."),
|
|
469
|
+
generation: z.number().int(),
|
|
470
|
+
id: z.string(),
|
|
471
|
+
private_service: z.string(),
|
|
472
|
+
}).describe("Creation-only private service enrollment response. The raw token is shown once and is omitted from every read schema.");
|
|
461
473
|
/** Runtime validator for {@link CustomObject}. */
|
|
462
474
|
export const customObjectSchema = z.object({
|
|
475
|
+
/** Access control list governing read and write access to this custom object. Only returned to resource owners and privileged or organization-admin viewers; `null` for everyone else. */
|
|
476
|
+
acl: aclSchema.optional().describe("Access control list governing read and write access to this custom object. Only returned to resource owners and privileged or organization-admin viewers; `null` for everyone else."),
|
|
463
477
|
/** When the custom object was created (ISO 8601). */
|
|
464
478
|
created_at: z.string().optional().describe("When the custom object was created (ISO 8601)."),
|
|
465
479
|
/** Map of field names to their current values as defined by the object's schema type. */
|
|
@@ -532,8 +546,17 @@ export const customObjectUpdateFieldsResponseSchema = z.object({
|
|
|
532
546
|
/** Idempotency key acknowledged for this update. */
|
|
533
547
|
operation_id: z.string().describe("Idempotency key acknowledged for this update."),
|
|
534
548
|
}).describe("Response returned after updating one or more fields on a custom object. Confirms the object that was modified and the field values that were applied.");
|
|
549
|
+
/** Runtime validator for {@link Deployment}. */
|
|
550
|
+
export const deploymentSchema = z.object({
|
|
551
|
+
/** Deployment environment, or `null` when it is not configured. */
|
|
552
|
+
environment: z.string().nullable().optional().describe("Deployment environment, or `null` when it is not configured."),
|
|
553
|
+
/** Opaque SHA-256 fingerprint of the image reference, or `null` in local development. */
|
|
554
|
+
release: z.string().nullable().optional().describe("Opaque SHA-256 fingerprint of the image reference, or `null` in local development."),
|
|
555
|
+
}).describe("Deployment metadata.");
|
|
535
556
|
/** Runtime validator for {@link StorageFile}. */
|
|
536
557
|
export const storageFileSchema = z.object({
|
|
558
|
+
/** ID of the app this file belongs to (`app_...`). */
|
|
559
|
+
app: z.string().optional().describe("ID of the app this file belongs to (`app_...`)."),
|
|
537
560
|
/** MIME type of the file, e.g. `"image/png"` or `"application/pdf"`. */
|
|
538
561
|
content_type: z.string().optional().describe("MIME type of the file, e.g. `\"image/png\"` or `\"application/pdf\"`."),
|
|
539
562
|
/** When the file was uploaded (ISO 8601). */
|
|
@@ -552,10 +575,14 @@ export const storageFileSchema = z.object({
|
|
|
552
575
|
share_url: z.string().optional().describe("Stable public URL for the file, fetchable without authentication. Present only when the file was shared (`share: true`); does not expire until sharing is disabled. Disabling and re-enabling sharing reactivates the same URL. `null` otherwise."),
|
|
553
576
|
/** Size of the file in bytes. */
|
|
554
577
|
size: z.number().int().optional().describe("Size of the file in bytes."),
|
|
578
|
+
/** ID of the team that owns this file (`team_...`). `null` if not team-owned. */
|
|
579
|
+
team: z.string().optional().describe("ID of the team that owns this file (`team_...`). `null` if not team-owned."),
|
|
555
580
|
/** When the file record was last modified (ISO 8601). */
|
|
556
581
|
updated_at: z.string().optional().describe("When the file record was last modified (ISO 8601)."),
|
|
557
582
|
/** Short-lived signed URL for downloading the file. `null` if a URL could not be generated. */
|
|
558
583
|
url: z.string().optional().describe("Short-lived signed URL for downloading the file. `null` if a URL could not be generated."),
|
|
584
|
+
/** ID of the user that owns this file (`user_...`). `null` if not user-owned. */
|
|
585
|
+
user: z.string().optional().describe("ID of the user that owns this file (`user_...`). `null` if not user-owned."),
|
|
559
586
|
}).describe("A file stored in the platform's object storage, with metadata and a signed URL for downloading its contents.");
|
|
560
587
|
/** Runtime validator for {@link AgentHealthAction}. */
|
|
561
588
|
export const agentHealthActionSchema = z.object({
|
|
@@ -794,6 +821,53 @@ export const paginatedRepliesSchema = z.object({
|
|
|
794
821
|
/** Total number of replies in the thread across all pages. */
|
|
795
822
|
total_count: z.number().int().optional().describe("Total number of replies in the thread across all pages."),
|
|
796
823
|
}).describe("A paginated list of reply messages for a thread. The reply array is returned directly, not nested inside a `data` wrapper.");
|
|
824
|
+
/** Runtime validator for {@link PrivateServiceFunction}. */
|
|
825
|
+
export const privateServiceFunctionSchema = z.object({
|
|
826
|
+
/** Human-readable guidance describing when and why to call the operation. */
|
|
827
|
+
description: z.string().describe("Human-readable guidance describing when and why to call the operation."),
|
|
828
|
+
/** JSON Schema Draft 7 object describing the operation's argument object. */
|
|
829
|
+
input_schema: z.record(z.unknown()).describe("JSON Schema Draft 7 object describing the operation's argument object."),
|
|
830
|
+
/** Stable operation name used when invoking the private service. */
|
|
831
|
+
name: z.string().describe("Stable operation name used when invoking the private service."),
|
|
832
|
+
/** Optional JSON Schema Draft 7 object describing the successful result. */
|
|
833
|
+
output_schema: z.record(z.unknown()).optional().describe("Optional JSON Schema Draft 7 object describing the successful result."),
|
|
834
|
+
}).describe("A documented callable operation exposed by a private service.");
|
|
835
|
+
/** Runtime validator for {@link PrivateService}. */
|
|
836
|
+
export const privateServiceSchema = z.object({
|
|
837
|
+
/** Sorted callable definitions exposed by this private service. */
|
|
838
|
+
functions: z.array(privateServiceFunctionSchema).describe("Sorted callable definitions exposed by this private service."),
|
|
839
|
+
/** Private service ID (`pvs_...`). */
|
|
840
|
+
id: z.string().describe("Private service ID (`pvs_...`)."),
|
|
841
|
+
}).describe("An immutable private service with complete callable operation contracts.");
|
|
842
|
+
/** Runtime validator for {@link PrivateServiceEnrollment}. */
|
|
843
|
+
export const privateServiceEnrollmentSchema = z.object({
|
|
844
|
+
/** Latest committed connector certificate generation, or zero before enrollment. */
|
|
845
|
+
generation: z.number().int().describe("Latest committed connector certificate generation, or zero before enrollment."),
|
|
846
|
+
/** Canonical certificate-bound service identity. */
|
|
847
|
+
id: z.string().describe("Canonical certificate-bound service identity."),
|
|
848
|
+
/** Immutable private service ID (`pvs_...`). */
|
|
849
|
+
private_service: z.string().describe("Immutable private service ID (`pvs_...`)."),
|
|
850
|
+
}).describe("A private service's durable connector identity. Read responses never contain an enrollment token or certificate.");
|
|
851
|
+
/** Runtime validator for {@link PrivateServiceEnrollmentPage}. */
|
|
852
|
+
export const privateServiceEnrollmentPageSchema = z.object({
|
|
853
|
+
data: z.array(privateServiceEnrollmentSchema),
|
|
854
|
+
has_next: z.boolean(),
|
|
855
|
+
has_prev: z.boolean(),
|
|
856
|
+
page: z.number().int(),
|
|
857
|
+
page_size: z.number().int(),
|
|
858
|
+
total_entries: z.number().int(),
|
|
859
|
+
total_pages: z.number().int(),
|
|
860
|
+
}).describe("A secret-free page of private service enrollments.");
|
|
861
|
+
/** Runtime validator for {@link PrivateServicePage}. */
|
|
862
|
+
export const privateServicePageSchema = z.object({
|
|
863
|
+
data: z.array(privateServiceSchema),
|
|
864
|
+
has_next: z.boolean(),
|
|
865
|
+
has_prev: z.boolean(),
|
|
866
|
+
page: z.number().int(),
|
|
867
|
+
page_size: z.number().int(),
|
|
868
|
+
total_entries: z.number().int(),
|
|
869
|
+
total_pages: z.number().int(),
|
|
870
|
+
}).describe("A page of private services.");
|
|
797
871
|
/** Runtime validator for {@link RoutinePreset}. */
|
|
798
872
|
export const routinePresetSchema = z.object({
|
|
799
873
|
/** Event types that routines using this preset may be triggered by. `["*"]` means the preset accepts any event type. Routines assigned to this preset will be rejected at creation time if their trigger event is not in this list. */
|
|
@@ -860,6 +934,52 @@ export const runJournalPageSchema = z.object({
|
|
|
860
934
|
/** Durable execution summary. `null` when this run has no journal, which is valid for script-backed, preview, or legacy runs. */
|
|
861
935
|
journal: workflowJournalSchema.optional().describe("Durable execution summary. `null` when this run has no journal, which is valid for script-backed, preview, or legacy runs."),
|
|
862
936
|
}).describe("A forward-paginated journal entry page for an automation or routine run.");
|
|
937
|
+
/** Runtime validator for {@link SandboxKey}. */
|
|
938
|
+
export const sandboxKeySchema = z.object({
|
|
939
|
+
/** When this key was created (ISO 8601). */
|
|
940
|
+
created_at: z.string().optional().describe("When this key was created (ISO 8601)."),
|
|
941
|
+
/** When this key expires and becomes invalid. `null` if the key does not expire. */
|
|
942
|
+
expires_at: z.string().optional().describe("When this key expires and becomes invalid. `null` if the key does not expire."),
|
|
943
|
+
/** The complete secret key value, returned only once when the key is first created. `null` on subsequent retrievals. */
|
|
944
|
+
full_key: z.string().optional().describe("The complete secret key value, returned only once when the key is first created. `null` on subsequent retrievals."),
|
|
945
|
+
/** Sandbox key ID (`dsk_...`). */
|
|
946
|
+
id: z.string().describe("Sandbox key ID (`dsk_...`)."),
|
|
947
|
+
/** A short hint showing the last four characters of the key, used for identification. `null` if no hint is available. */
|
|
948
|
+
key_hint: z.string().optional().describe("A short hint showing the last four characters of the key, used for identification. `null` if no hint is available."),
|
|
949
|
+
/** The full key value for `"publishable"` keys. `null` for `"secret"` keys; use `full_key` instead, which is returned only at creation time. */
|
|
950
|
+
key_value: z.string().optional().describe("The full key value for `\"publishable\"` keys. `null` for `\"secret\"` keys; use `full_key` instead, which is returned only at creation time."),
|
|
951
|
+
/** When this key was last used to authenticate a request. `null` if the key has never been used. */
|
|
952
|
+
last_used_at: z.string().optional().describe("When this key was last used to authenticate a request. `null` if the key has never been used."),
|
|
953
|
+
/** Current lifecycle status of the key. One of `"active"` (usable) or `"revoked"` (permanently disabled). */
|
|
954
|
+
status: z.string().describe("Current lifecycle status of the key. One of `\"active\"` (usable) or `\"revoked\"` (permanently disabled)."),
|
|
955
|
+
/** The kind of key. One of `"publishable"` (safe for client-side use) or `"secret"` (server-side only). */
|
|
956
|
+
type: z.string().describe("The kind of key. One of `\"publishable\"` (safe for client-side use) or `\"secret\"` (server-side only)."),
|
|
957
|
+
}).describe("An API key scoped to a developer sandbox, used to authenticate requests against sandbox resources.");
|
|
958
|
+
/** Runtime validator for {@link Sandbox}. */
|
|
959
|
+
export const sandboxSchema = z.object({
|
|
960
|
+
/** When this sandbox was created (ISO 8601). */
|
|
961
|
+
created_at: z.string().optional().describe("When this sandbox was created (ISO 8601)."),
|
|
962
|
+
/** When an eval sandbox expires and becomes eligible for platform cleanup. `null` for ordinary developer sandboxes. */
|
|
963
|
+
expires_at: z.string().optional().describe("When an eval sandbox expires and becomes eligible for platform cleanup. `null` for ordinary developer sandboxes."),
|
|
964
|
+
/** Sandbox ID (`dsb_...`). */
|
|
965
|
+
id: z.string().describe("Sandbox ID (`dsb_...`)."),
|
|
966
|
+
/** API keys associated with this sandbox. `null` if keys were not loaded with this response. */
|
|
967
|
+
keys: z.array(sandboxKeySchema).optional().describe("API keys associated with this sandbox. `null` if keys were not loaded with this response."),
|
|
968
|
+
/** Human-readable display name for the sandbox. */
|
|
969
|
+
name: z.string().describe("Human-readable display name for the sandbox."),
|
|
970
|
+
/** Organization ID this sandbox is scoped to, or `null` for an app-level sandbox. */
|
|
971
|
+
org: z.string().optional().describe("Organization ID this sandbox is scoped to, or `null` for an app-level sandbox."),
|
|
972
|
+
/** Logo of the owning organization, when present. */
|
|
973
|
+
org_logo: imageSourceSchema.optional().describe("Logo of the owning organization, when present."),
|
|
974
|
+
/** Display name of the owning organization, when org-scoped. */
|
|
975
|
+
org_name: z.string().optional().describe("Display name of the owning organization, when org-scoped."),
|
|
976
|
+
/** Sandbox purpose marker. `"eval"` marks a remote-eval sandbox; `null` for ordinary developer sandboxes. */
|
|
977
|
+
purpose: z.string().optional().describe("Sandbox purpose marker. `\"eval\"` marks a remote-eval sandbox; `null` for ordinary developer sandboxes."),
|
|
978
|
+
/** URL-safe identifier for the sandbox, unique within the application (e.g. `"my-sandbox"`). */
|
|
979
|
+
slug: z.string().describe("URL-safe identifier for the sandbox, unique within the application (e.g. `\"my-sandbox\"`)."),
|
|
980
|
+
/** When this sandbox was last modified (ISO 8601). */
|
|
981
|
+
updated_at: z.string().optional().describe("When this sandbox was last modified (ISO 8601)."),
|
|
982
|
+
}).describe("An isolated developer sandbox environment used for testing integrations without affecting production data or sending real emails.");
|
|
863
983
|
/** Runtime validator for {@link SlackChannelBinding}. */
|
|
864
984
|
export const slackChannelBindingSchema = z.object({
|
|
865
985
|
/** IDs of every agent attached to this binding, including legacy concierge attachments. Use `resident_agent` and `route_kind` for the effective runtime route. */
|
|
@@ -872,6 +992,8 @@ export const slackChannelBindingSchema = z.object({
|
|
|
872
992
|
customer_label: z.string().optional().describe("Human-readable label identifying the customer, derived from the binding's embedded config. `null` when not set."),
|
|
873
993
|
/** Staging thread the deposit pipe copies this channel's mirror content into (`thr_…` public ID). `null` when the pipe is off for this binding. */
|
|
874
994
|
deposit_thread: z.string().optional().describe("Staging thread the deposit pipe copies this channel's mirror content into (`thr_…` public ID). `null` when the pipe is off for this binding."),
|
|
995
|
+
/** Slack Connect lifecycle: `pending` while the customer has not accepted the invite (nothing mirrors), `posted` once the AI disclosure is in the channel and the channel is live, `suppressed` when relay is stopped. `null` for a binding that never went through Connect provisioning. */
|
|
996
|
+
disclosure_state: z.enum(["pending", "posted", "suppressed"]).optional().describe("Slack Connect lifecycle: `pending` while the customer has not accepted the invite (nothing mirrors), `posted` once the AI disclosure is in the channel and the channel is live, `suppressed` when relay is stopped. `null` for a binding that never went through Connect provisioning."),
|
|
875
997
|
/** Unique identifier for this Slack channel binding. */
|
|
876
998
|
id: z.string().describe("Unique identifier for this Slack channel binding."),
|
|
877
999
|
/** ID of the Slack integration that owns this binding. */
|
|
@@ -890,8 +1012,12 @@ export const slackChannelBindingSchema = z.object({
|
|
|
890
1012
|
resident_agent: z.string().optional().describe("ID of the non-concierge agent selected by Slack ingress. `null` when ingress falls back to the concierge."),
|
|
891
1013
|
/** Effective Slack ingress route: `fda` for a team-bound resident, `resident` for an unbound resident, or `concierge` when no non-concierge agent is attached. */
|
|
892
1014
|
route_kind: z.enum(["fda", "resident", "concierge"]).describe("Effective Slack ingress route: `fda` for a team-bound resident, `resident` for an unbound resident, or `concierge` when no non-concierge agent is attached."),
|
|
1015
|
+
/** The customer key this channel's agent is locked to, written when adding the customer finishes. A `posted` binding whose `scope_key` is still null has been accepted but not finished — the addition is either in flight or was refused. */
|
|
1016
|
+
scope_key: z.string().optional().describe("The customer key this channel's agent is locked to, written when adding the customer finishes. A `posted` binding whose `scope_key` is still null has been accepted but not finished — the addition is either in flight or was refused."),
|
|
893
1017
|
/** ID of the ArchAstro team this channel is bound to. */
|
|
894
1018
|
team: z.string().optional().describe("ID of the ArchAstro team this channel is bound to."),
|
|
1019
|
+
/** Whether the admin who added this customer ended up inside a Connect channel we created for them: `invited` (we put them in), `already_member` (they were in it already), `no_slack_user` (their account email is not a Slack account in your workspace, so nobody was invited), or `failed` (Slack refused). A created Connect channel is private and has no self-join, so the last two mean the channel has no human from your side until someone already in it adds one. `null` when nobody was added: the channel was adopted rather than created (an existing channel already has its own members), the binding never went through Connect provisioning, or the call had no admin behind it. */
|
|
1020
|
+
vendor_admin_channel_access: z.enum(["invited", "already_member", "no_slack_user", "failed"]).optional().describe("Whether the admin who added this customer ended up inside a Connect channel we created for them: `invited` (we put them in), `already_member` (they were in it already), `no_slack_user` (their account email is not a Slack account in your workspace, so nobody was invited), or `failed` (Slack refused). A created Connect channel is private and has no self-join, so the last two mean the channel has no human from your side until someone already in it adds one. `null` when nobody was added: the channel was adopted rather than created (an existing channel already has its own members), the binding never went through Connect provisioning, or the call had no admin behind it."),
|
|
895
1021
|
}).describe("A binding that connects a Slack channel to an ArchAstro team and one or more agents, enabling those agents to receive and respond to messages in that channel.");
|
|
896
1022
|
/** Runtime validator for {@link SlackChannelBindingListResponse}. */
|
|
897
1023
|
export const slackChannelBindingListResponseSchema = z.object({
|
|
@@ -906,67 +1032,25 @@ export const slackChannelBindingListResponseSchema = z.object({
|
|
|
906
1032
|
/** Total number of pages available at the current `per_page` size. */
|
|
907
1033
|
total_pages: z.number().int().describe("Total number of pages available at the current `per_page` size."),
|
|
908
1034
|
}).describe("Paginated list of Slack channel bindings for the requested integration or team. Use the `page` and `per_page` fields to navigate pages of results.");
|
|
909
|
-
/** Runtime validator for {@link
|
|
910
|
-
export const
|
|
911
|
-
/**
|
|
912
|
-
|
|
913
|
-
/**
|
|
914
|
-
|
|
915
|
-
/**
|
|
916
|
-
|
|
917
|
-
/**
|
|
918
|
-
|
|
919
|
-
/**
|
|
920
|
-
|
|
921
|
-
/**
|
|
922
|
-
|
|
923
|
-
/** ID of the
|
|
924
|
-
|
|
925
|
-
/**
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
description: z.string().optional().describe("Long-form description or notes for the task. `null` if no description has been provided."),
|
|
929
|
-
/** Date and time by which the task should be completed (ISO 8601). `null` if no due date is set. */
|
|
930
|
-
due_date: z.string().optional().describe("Date and time by which the task should be completed (ISO 8601). `null` if no due date is set."),
|
|
931
|
-
/** Task ID (`tsk_...`). */
|
|
932
|
-
id: z.string().describe("Task ID (`tsk_...`)."),
|
|
933
|
-
/** `true` while at least one blocking task is not yet done. Informational only — a blocked task can still change status — and derived at read time, so the task un-blocks automatically when its last open blocker completes. Computed on list/show reads; create/update responses report `false` until the next read. */
|
|
934
|
-
is_blocked: z.boolean().optional().describe("`true` while at least one blocking task is not yet done. Informational only — a blocked task can still change status — and derived at read time, so the task un-blocks automatically when its last open blocker completes. Computed on list/show reads; create/update responses report `false` until the next read."),
|
|
935
|
-
/** Key-value map of named URLs or references associated with the task. Returns an empty object when no links have been set. */
|
|
936
|
-
links: z.record(z.unknown()).optional().describe("Key-value map of named URLs or references associated with the task. Returns an empty object when no links have been set."),
|
|
937
|
-
/** Arbitrary key-value map of application-specific data stored alongside the task. Returns an empty object when no metadata has been set. */
|
|
938
|
-
metadata: z.record(z.unknown()).optional().describe("Arbitrary key-value map of application-specific data stored alongside the task. Returns an empty object when no metadata has been set."),
|
|
939
|
-
/** Human-readable title of the task. */
|
|
940
|
-
name: z.string().describe("Human-readable title of the task."),
|
|
941
|
-
/** ID of the organization this task belongs to (`org_...`). `null` for tasks outside an org context. */
|
|
942
|
-
org: z.string().optional().describe("ID of the organization this task belongs to (`org_...`). `null` for tasks outside an org context."),
|
|
943
|
-
/** Resolved owner details including `id`, `name`, `alias`, and `profile_picture`. `null` if the task is unassigned or the owner cannot be resolved (e.g. assigned agent was deleted). */
|
|
944
|
-
owner_actor: actorSchema.optional().describe("Resolved owner details including `id`, `name`, `alias`, and `profile_picture`. `null` if the task is unassigned or the owner cannot be resolved (e.g. assigned agent was deleted)."),
|
|
945
|
-
/** ID of the agent assigned as owner (`agi_...`). `null` if the owner is a human user, the task is unassigned, or the assigned agent was deleted. */
|
|
946
|
-
owner_agent: z.string().optional().describe("ID of the agent assigned as owner (`agi_...`). `null` if the owner is a human user, the task is unassigned, or the assigned agent was deleted."),
|
|
947
|
-
/** ID of the user assigned as owner (`usr_...`). `null` if the owner is an agent, the task is unassigned, or the assigned agent was deleted. */
|
|
948
|
-
owner_user: z.string().optional().describe("ID of the user assigned as owner (`usr_...`). `null` if the owner is an agent, the task is unassigned, or the assigned agent was deleted."),
|
|
949
|
-
/** ID of the parent task when this task is a subtask (`tsk_...`). `null` for top-level tasks. Subtasks nest exactly one level. */
|
|
950
|
-
parent: z.string().optional().describe("ID of the parent task when this task is a subtask (`tsk_...`). `null` for top-level tasks. Subtasks nest exactly one level."),
|
|
951
|
-
/** Priority level of the task from `0` (highest) to `4` (lowest). Defaults to `2` (medium) when not explicitly set. */
|
|
952
|
-
priority: z.number().int().optional().describe("Priority level of the task from `0` (highest) to `4` (lowest). Defaults to `2` (medium) when not explicitly set."),
|
|
953
|
-
/** ID of the developer sandbox this task is scoped to (`dsb_...`). `null` for tasks outside a sandbox environment. */
|
|
954
|
-
sandbox: z.string().optional().describe("ID of the developer sandbox this task is scoped to (`dsb_...`). `null` for tasks outside a sandbox environment."),
|
|
955
|
-
/** Current status of the task. One of `"open"`, `"in_progress"`, or `"done"`. */
|
|
956
|
-
status: z.string().describe("Current status of the task. One of `\"open\"`, `\"in_progress\"`, or `\"done\"`."),
|
|
957
|
-
/** Number of subtasks under this task. Computed on list/show reads; create/update responses may report 0 until the next read. Always 0 for subtasks. */
|
|
958
|
-
subtasks_count: z.number().int().optional().describe("Number of subtasks under this task. Computed on list/show reads; create/update responses may report 0 until the next read. Always 0 for subtasks."),
|
|
959
|
-
/** Labels for grouping and filtering, stored lowercase and de-duplicated. Empty array when untagged. */
|
|
960
|
-
tags: z.array(z.string()).optional().describe("Labels for grouping and filtering, stored lowercase and de-duplicated. Empty array when untagged."),
|
|
961
|
-
/** ID of the team that owns this task (`tem_...`). `null` if the task is not scoped to a team. */
|
|
962
|
-
team: z.string().optional().describe("ID of the team that owns this task (`tem_...`). `null` if the task is not scoped to a team."),
|
|
963
|
-
/** ID of the thread this task is bound to (`thr_...`) — the conversation it was filed from, or the thread passed at creation. `null` for tasks not tied to a thread. */
|
|
964
|
-
thread: z.string().optional().describe("ID of the thread this task is bound to (`thr_...`) — the conversation it was filed from, or the thread passed at creation. `null` for tasks not tied to a thread."),
|
|
965
|
-
/** When the task was last modified (ISO 8601). */
|
|
966
|
-
updated_at: z.string().optional().describe("When the task was last modified (ISO 8601)."),
|
|
967
|
-
/** ID of the user that owns this task (`usr_...`). `null` if the task is scoped to a team. */
|
|
968
|
-
user: z.string().optional().describe("ID of the user that owns this task (`usr_...`). `null` if the task is scoped to a team."),
|
|
969
|
-
}).describe("A task representing a unit of work, optionally assignable to a user or agent.");
|
|
1035
|
+
/** Runtime validator for {@link Trajectory}. */
|
|
1036
|
+
export const trajectorySchema = z.object({
|
|
1037
|
+
/** When the trajectory was recorded (ISO 8601). */
|
|
1038
|
+
created_at: z.string().optional().describe("When the trajectory was recorded (ISO 8601)."),
|
|
1039
|
+
/** ID of the storage file that persists the raw trajectory data (`fil_...`). `null` if the trajectory has not been written to a file. */
|
|
1040
|
+
file: z.string().optional().describe("ID of the storage file that persists the raw trajectory data (`fil_...`). `null` if the trajectory has not been written to a file."),
|
|
1041
|
+
/** Trajectory ID (`trj_...`). */
|
|
1042
|
+
id: z.string().describe("Trajectory ID (`trj_...`)."),
|
|
1043
|
+
/** Serialized message log for this trajectory. Contains the ordered sequence of AI and tool messages produced during the session. */
|
|
1044
|
+
messages: z.record(z.unknown()).optional().describe("Serialized message log for this trajectory. Contains the ordered sequence of AI and tool messages produced during the session."),
|
|
1045
|
+
/** ID of the organization this trajectory belongs to (`org_...`). `null` for trajectories outside an org context. */
|
|
1046
|
+
org: z.string().optional().describe("ID of the organization this trajectory belongs to (`org_...`). `null` for trajectories outside an org context."),
|
|
1047
|
+
/** ID of the developer sandbox this trajectory is scoped to (`sbx_...`). `null` for production trajectories. */
|
|
1048
|
+
sandbox: z.string().optional().describe("ID of the developer sandbox this trajectory is scoped to (`sbx_...`). `null` for production trajectories."),
|
|
1049
|
+
/** ID of the team this trajectory is scoped to (`team_...`). `null` for trajectories not associated with a team. */
|
|
1050
|
+
team: z.string().optional().describe("ID of the team this trajectory is scoped to (`team_...`). `null` for trajectories not associated with a team."),
|
|
1051
|
+
/** When the trajectory record was last updated (ISO 8601). */
|
|
1052
|
+
updated_at: z.string().optional().describe("When the trajectory record was last updated (ISO 8601)."),
|
|
1053
|
+
}).describe("A recorded sequence of AI messages and tool interactions representing a single AI reasoning session. Trajectories are stored as structured message logs and can be replayed or inspected after execution.");
|
|
970
1054
|
/** Runtime validator for {@link ValidationResult}. */
|
|
971
1055
|
export const validationResultSchema = z.object({
|
|
972
1056
|
/** List of human-readable error messages describing why validation failed. Empty or absent when `valid` is `true`. */
|
|
@@ -1871,6 +1955,11 @@ export const solutionImportResponseSchema = z.object({
|
|
|
1871
1955
|
/** The `virtual_path` stored on the Solution config, used as the stable dedupe key across owner scopes. `null` when no virtual path was assigned. */
|
|
1872
1956
|
virtual_path: z.string().optional().describe("The `virtual_path` stored on the Solution config, used as the stable dedupe key across owner scopes. `null` when no virtual path was assigned."),
|
|
1873
1957
|
}).describe("The result of importing a Solution bundle into the library, including the Solution config record, a structured import result, and the list of all configs persisted during the transaction.");
|
|
1958
|
+
/** Runtime validator for {@link SolutionInstallResponseWebhook}. */
|
|
1959
|
+
export const solutionInstallResponseWebhookSchema = z.object({
|
|
1960
|
+
signing_secret: z.string(),
|
|
1961
|
+
url: z.string(),
|
|
1962
|
+
}).describe("One-time connection details for a webhook-auth Automation install.");
|
|
1874
1963
|
/** Runtime validator for {@link SolutionInstallResponse}. */
|
|
1875
1964
|
export const solutionInstallResponseSchema = z.object({
|
|
1876
1965
|
/** Public ID of the provisioned resource. The prefix reflects the resource kind: `agi_...` for Agent, `aut_...` for Automation, `art_...` for AgentRoutine, `att_...` for AgentTool, `ask_...` for AgentSkill, `cmp_...` for AgentComputer. */
|
|
@@ -1881,11 +1970,15 @@ export const solutionInstallResponseSchema = z.object({
|
|
|
1881
1970
|
lookup_key: z.string().optional().describe("The `lookup_key` stamped on the provisioned resource. `null` for `AgentSkill`, which is a join record and does not carry a lookup key."),
|
|
1882
1971
|
/** Solution config ID (`cfg_...`) that was used as the source for this install. */
|
|
1883
1972
|
solution: z.string().describe("Solution config ID (`cfg_...`) that was used as the source for this install."),
|
|
1973
|
+
/** One-time connection details for a webhook-auth Automation install. */
|
|
1974
|
+
webhook: solutionInstallResponseWebhookSchema.optional().describe("One-time connection details for a webhook-auth Automation install."),
|
|
1884
1975
|
}).describe("The runtime resource provisioned by installing a Solution, along with a reference back to the source Solution config.");
|
|
1885
1976
|
/** Runtime validator for {@link SolutionInstance}. */
|
|
1886
1977
|
export const solutionInstanceSchema = z.object({
|
|
1887
1978
|
/** Materialized agent for this customer (`agi_...`). `null` for a row without an agent. */
|
|
1888
1979
|
agent: z.string().optional().describe("Materialized agent for this customer (`agi_...`). `null` for a row without an agent."),
|
|
1980
|
+
/** Human-readable display name of the materialized agent. `null` when no agent is visible. */
|
|
1981
|
+
agent_name: z.string().optional().describe("Human-readable display name of the materialized agent. `null` when no agent is visible."),
|
|
1889
1982
|
/** Opaque tagged reference to the deployment target. Consumers interpret its kind. */
|
|
1890
1983
|
attachment_ref: z.record(z.unknown()).optional().describe("Opaque tagged reference to the deployment target. Consumers interpret its kind."),
|
|
1891
1984
|
/** When this instance was stamped. */
|