@archastro/sdk 0.14.0 → 0.16.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 +8 -0
- package/dist/channels/api_chat_channel.d.ts.map +1 -1
- package/dist/channels/api_chat_channel.js +17 -1
- package/dist/channels/api_chat_channel.js.map +1 -1
- package/dist/client.d.ts +6 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +7 -1
- package/dist/client.js.map +1 -1
- package/dist/effective-access.d.ts +34 -0
- package/dist/effective-access.d.ts.map +1 -0
- package/dist/effective-access.js +51 -0
- package/dist/effective-access.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/types/ai.d.ts +109 -109
- package/dist/types/ai.js +10 -10
- package/dist/types/ai.js.map +1 -1
- package/dist/types/automations.d.ts +15 -15
- package/dist/types/automations.js +6 -6
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +3005 -2434
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/chat.js +22 -4
- package/dist/types/chat.js.map +1 -1
- package/dist/types/common.d.ts +2703 -3254
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +235 -227
- package/dist/types/common.js.map +1 -1
- package/dist/types/config.d.ts +11 -11
- package/dist/types/config.js +3 -3
- package/dist/types/config.js.map +1 -1
- package/dist/types/events.d.ts +810 -0
- package/dist/types/events.d.ts.map +1 -0
- package/dist/types/events.js +77 -0
- package/dist/types/events.js.map +1 -0
- package/dist/types/expressions.d.ts +66 -0
- package/dist/types/expressions.d.ts.map +1 -0
- package/dist/types/expressions.js +27 -0
- package/dist/types/expressions.js.map +1 -0
- package/dist/types/extractions.d.ts +3 -3
- package/dist/types/extractions.js +2 -2
- package/dist/types/extractions.js.map +1 -1
- package/dist/types/graph.d.ts +34 -0
- package/dist/types/graph.d.ts.map +1 -0
- package/dist/types/graph.js +16 -0
- package/dist/types/graph.js.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +6 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/notifications.d.ts +3 -3
- package/dist/types/notifications.js +2 -2
- package/dist/types/notifications.js.map +1 -1
- package/dist/types/oauth.d.ts +5 -5
- package/dist/types/scripts.d.ts +800 -0
- package/dist/types/scripts.d.ts.map +1 -0
- package/dist/types/scripts.js +112 -0
- package/dist/types/scripts.js.map +1 -0
- package/dist/types/status.d.ts +8 -8
- package/dist/types/status.js +2 -2
- package/dist/types/status.js.map +1 -1
- package/dist/types/system.d.ts +2 -2
- package/dist/types/tasks.d.ts +12 -6
- package/dist/types/tasks.d.ts.map +1 -1
- package/dist/types/tasks.js +5 -3
- package/dist/types/tasks.js.map +1 -1
- package/dist/types/teams.d.ts +334 -334
- package/dist/types/teams.js +5 -5
- package/dist/types/teams.js.map +1 -1
- package/dist/types/threads.d.ts +242 -202
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +6 -6
- package/dist/types/threads.js.map +1 -1
- package/dist/types/users.d.ts +50 -6
- package/dist/types/users.d.ts.map +1 -1
- package/dist/types/users.js +18 -3
- package/dist/types/users.js.map +1 -1
- package/dist/types/workflows.d.ts +544 -0
- package/dist/types/workflows.d.ts.map +1 -0
- package/dist/types/workflows.js +91 -0
- package/dist/types/workflows.js.map +1 -0
- package/dist/v1/resources/agents.d.ts +4 -3
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +1 -1
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +2 -2
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +1 -1
- package/dist/v1/resources/event_subscriptions.d.ts +1 -1
- package/dist/v1/resources/event_subscriptions.js +1 -1
- package/dist/v1/resources/index.d.ts +3 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +4 -1
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/scripts.d.ts +117 -0
- package/dist/v1/resources/scripts.d.ts.map +1 -0
- package/dist/v1/resources/scripts.js +116 -0
- package/dist/v1/resources/scripts.js.map +1 -0
- package/dist/v1/resources/ssh_keys.d.ts +13 -0
- package/dist/v1/resources/ssh_keys.d.ts.map +1 -0
- package/dist/v1/resources/ssh_keys.js +19 -0
- package/dist/v1/resources/ssh_keys.js.map +1 -0
- package/dist/v1/resources/tasks.d.ts +7 -0
- package/dist/v1/resources/tasks.d.ts.map +1 -1
- package/dist/v1/resources/tasks.js +4 -1
- package/dist/v1/resources/tasks.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +10 -0
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +1 -1
- package/dist/v1/resources/threads.d.ts +6 -0
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +1 -1
- package/dist/v1/resources/users.d.ts +66 -4
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +52 -3
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1/resources/work_items.d.ts +1 -1
- package/dist/v1/resources/work_items.d.ts.map +1 -1
- package/dist/v1/resources/work_items.js +1 -1
- package/dist/v1/resources/workflows.d.ts +205 -0
- package/dist/v1/resources/workflows.d.ts.map +1 -0
- package/dist/v1/resources/workflows.js +205 -0
- package/dist/v1/resources/workflows.js.map +1 -0
- package/dist/v1.d.ts +6 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +10 -1
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
package/dist/types/ai.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: 935df40aa8b4
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
/** Runtime validator for {@link AIChatStreamDone}. */
|
|
6
6
|
export const aIChatStreamDoneSchema = z.object({
|
|
@@ -9,9 +9,9 @@ export const aIChatStreamDoneSchema = z.object({
|
|
|
9
9
|
/** Number of model runs executed, including continuations triggered by tool calls. */
|
|
10
10
|
run_count: z.number().int().optional().describe("Number of model runs executed, including continuations triggered by tool calls."),
|
|
11
11
|
/** Aggregate token usage across every run in the completion (including tool-call continuations), keyed by model ID. */
|
|
12
|
-
total_usage: z.record(z.
|
|
12
|
+
total_usage: z.record(z.custom((value) => value !== undefined)).optional().describe("Aggregate token usage across every run in the completion (including tool-call continuations), keyed by model ID."),
|
|
13
13
|
/** Token usage for the final run, keyed by model ID. */
|
|
14
|
-
usage: z.record(z.
|
|
14
|
+
usage: z.record(z.custom((value) => value !== undefined)).optional().describe("Token usage for the final run, keyed by model ID."),
|
|
15
15
|
}).describe("Terminal event marking the end of a streaming chat completion (SSE `done` event).");
|
|
16
16
|
/** Runtime validator for {@link AIChatStreamError}. */
|
|
17
17
|
export const aIChatStreamErrorSchema = z.object({
|
|
@@ -21,7 +21,7 @@ export const aIChatStreamErrorSchema = z.object({
|
|
|
21
21
|
/** Runtime validator for {@link AIToolCall}. */
|
|
22
22
|
export const aIToolCallSchema = z.object({
|
|
23
23
|
/** Arguments the model wants to pass to the tool, as a key-value map. Deserialize and validate these against the tool's input schema before executing. */
|
|
24
|
-
arguments: z.record(z.
|
|
24
|
+
arguments: z.record(z.custom((value) => value !== undefined)).describe("Arguments the model wants to pass to the tool, as a key-value map. Deserialize and validate these against the tool's input schema before executing."),
|
|
25
25
|
/** Unique identifier for this tool call, assigned by the model. Use this value as `id` when submitting the corresponding tool result. */
|
|
26
26
|
id: z.string().describe("Unique identifier for this tool call, assigned by the model. Use this value as `id` when submitting the corresponding tool result."),
|
|
27
27
|
/** Name of the tool or function the model wants to invoke, e.g. `"web_search"` or `"run_code"`. */
|
|
@@ -38,20 +38,20 @@ export const aIToolResultSchema = z.object({
|
|
|
38
38
|
/** Name of the tool or function that was executed, e.g. `"web_search"`. Must match the `name` from the corresponding `AIToolCall`. */
|
|
39
39
|
name: z.string().describe("Name of the tool or function that was executed, e.g. `\"web_search\"`. Must match the `name` from the corresponding `AIToolCall`."),
|
|
40
40
|
/** Structured result data from the tool execution. Shape varies by tool. `null` when the result is expressed as plain text in `content`. */
|
|
41
|
-
resolution: z.
|
|
41
|
+
resolution: z.custom((value) => value !== undefined).optional().describe("Structured result data from the tool execution. Shape varies by tool. `null` when the result is expressed as plain text in `content`."),
|
|
42
42
|
}).describe("The result of executing a tool call, submitted back to the model as a tool-role message. Mirrors the OpenAI tool-result object format.");
|
|
43
43
|
/** Runtime validator for {@link AIMessage}. */
|
|
44
44
|
export const aIMessageSchema = z.object({
|
|
45
45
|
/** Plain-text content of the message. Present for `system`, `user`, and `assistant` messages. `null` when the message body is expressed through `content_parts` or `tool_calls`. */
|
|
46
46
|
content: z.string().optional().describe("Plain-text content of the message. Present for `system`, `user`, and `assistant` messages. `null` when the message body is expressed through `content_parts` or `tool_calls`."),
|
|
47
47
|
/** Multimodal content parts for the message, used when the body includes images or mixed media. Each part is a map with a `type` key (`"text"`, `"image_url"`, or `"image_data"`). `null` when `content` is set. */
|
|
48
|
-
content_parts: z.array(z.record(z.
|
|
48
|
+
content_parts: z.array(z.record(z.custom((value) => value !== undefined))).optional().describe("Multimodal content parts for the message, used when the body includes images or mixed media. Each part is a map with a `type` key (`\"text\"`, `\"image_url\"`, or `\"image_data\"`). `null` when `content` is set."),
|
|
49
49
|
/** Opaque token that can be passed on a subsequent request to resume this conversation from the current state. `null` when the provider does not support conversation resumption. */
|
|
50
50
|
resume_token: z.string().optional().describe("Opaque token that can be passed on a subsequent request to resume this conversation from the current state. `null` when the provider does not support conversation resumption."),
|
|
51
51
|
/** The speaker role for this message. One of `"system"`, `"user"`, `"assistant"`, or `"tool"`. */
|
|
52
52
|
role: z.string().describe("The speaker role for this message. One of `\"system\"`, `\"user\"`, `\"assistant\"`, or `\"tool\"`."),
|
|
53
53
|
/** Parsed structured data returned by the model when a JSON schema or structured-output mode was requested. Shape varies by the schema supplied at call time. `null` when structured output was not requested. */
|
|
54
|
-
structured_output: z.
|
|
54
|
+
structured_output: z.custom((value) => value !== undefined).optional().describe("Parsed structured data returned by the model when a JSON schema or structured-output mode was requested. Shape varies by the schema supplied at call time. `null` when structured output was not requested."),
|
|
55
55
|
/** Tool calls requested by the model in an `assistant` message. Present only on assistant messages that invoke one or more tools. `null` on all other message roles. */
|
|
56
56
|
tool_calls: z.array(aIToolCallSchema).optional().describe("Tool calls requested by the model in an `assistant` message. Present only on assistant messages that invoke one or more tools. `null` on all other message roles."),
|
|
57
57
|
/** Tool execution results provided in a `tool` message. Each entry corresponds to a prior tool call by its `id`. `null` on all other message roles. */
|
|
@@ -64,7 +64,7 @@ export const aIChatStreamMessageCompleteSchema = z.object({
|
|
|
64
64
|
/** The complete assistant message for this run, assembled from the preceding deltas. */
|
|
65
65
|
message: aIMessageSchema.describe("The complete assistant message for this run, assembled from the preceding deltas."),
|
|
66
66
|
/** Token consumption for this run, keyed by model ID. `null` when usage data is unavailable. */
|
|
67
|
-
usage: z.record(z.
|
|
67
|
+
usage: z.record(z.custom((value) => value !== undefined)).optional().describe("Token consumption for this run, keyed by model ID. `null` when usage data is unavailable."),
|
|
68
68
|
}).describe("The fully assembled assistant message for one run of a streaming chat completion (SSE `message_complete` event).");
|
|
69
69
|
/** Runtime validator for {@link AIChatStreamMessageDelta}. */
|
|
70
70
|
export const aIChatStreamMessageDeltaSchema = z.object({
|
|
@@ -105,7 +105,7 @@ export const aICompletionResultSchema = z.object({
|
|
|
105
105
|
/** The complete message history for the conversation, including all user, assistant, and tool messages in order. */
|
|
106
106
|
messages: z.array(aIMessageSchema).describe("The complete message history for the conversation, including all user, assistant, and tool messages in order."),
|
|
107
107
|
/** Token consumption breakdown keyed by model ID. Each value is a map with `"input_tokens"` and `"output_tokens"` counts. `null` when usage data is unavailable. */
|
|
108
|
-
token_usage: z.record(z.
|
|
108
|
+
token_usage: z.record(z.custom((value) => value !== undefined)).optional().describe("Token consumption breakdown keyed by model ID. Each value is a map with `\"input_tokens\"` and `\"output_tokens\"` counts. `null` when usage data is unavailable."),
|
|
109
109
|
}).describe("The result of an AI chat completion request. Returned by chat completion endpoints after the model finishes generating.");
|
|
110
110
|
/** Runtime validator for {@link AIImageResult}. */
|
|
111
111
|
export const aIImageResultSchema = z.object({
|
|
@@ -128,7 +128,7 @@ export const aIImageResultSchema = z.object({
|
|
|
128
128
|
/** Canonical size string as returned by the provider, e.g. `"1024x1024"`. `null` when not reported. */
|
|
129
129
|
size: z.string().optional().describe("Canonical size string as returned by the provider, e.g. `\"1024x1024\"`. `null` when not reported."),
|
|
130
130
|
/** Provider-reported token and compute usage for the request. Structure varies by provider. `null` when usage data is unavailable. */
|
|
131
|
-
usage: z.record(z.
|
|
131
|
+
usage: z.record(z.custom((value) => value !== undefined)).optional().describe("Provider-reported token and compute usage for the request. Structure varies by provider. `null` when usage data is unavailable."),
|
|
132
132
|
/** Width of the generated image in pixels. `null` when the provider does not report dimensions. */
|
|
133
133
|
width: z.number().int().optional().describe("Width of the generated image in pixels. `null` when the provider does not report dimensions."),
|
|
134
134
|
}).describe("The result returned by an AI image generation or editing operation. Contains the generated image (as inline data or a URL) along with dimension, size, and usage metadata.");
|
package/dist/types/ai.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai.js","sourceRoot":"","sources":["../../src/types/ai.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,sDAAsD;AACtD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,oDAAoD;IACpD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CA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MAAM,CAAC,CAAC,CAAC,MAAM,CAAY,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iIAAiI,CAAC;IAC3N,mGAAmG;IACnG,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8FAA8F,CAAC;CAC5I,CAAC,CAAC,QAAQ,CAAC,4KAA4K,CAAoC,CAAC"}
|
|
@@ -41,15 +41,15 @@ export interface AutomationPrefills {
|
|
|
41
41
|
/** Runtime validator for {@link AutomationPrefills}. */
|
|
42
42
|
export declare const automationPrefillsSchema: z.ZodObject<{
|
|
43
43
|
/** Participant slot-to-agent mappings applied by the platform. Caller values at these slots must match exactly. */
|
|
44
|
-
participants: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
44
|
+
participants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
45
45
|
/** Partial invocation payload applied by the platform. A caller may omit these values, but supplying a different value at any locked path is rejected. */
|
|
46
|
-
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
46
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
47
47
|
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
participants?: Record<string,
|
|
49
|
-
payload?: Record<string,
|
|
48
|
+
participants?: Record<string, {} | null> | undefined;
|
|
49
|
+
payload?: Record<string, {} | null> | undefined;
|
|
50
50
|
}, {
|
|
51
|
-
participants?: Record<string,
|
|
52
|
-
payload?: Record<string,
|
|
51
|
+
participants?: Record<string, {} | null> | undefined;
|
|
52
|
+
payload?: Record<string, {} | null> | undefined;
|
|
53
53
|
}>;
|
|
54
54
|
/** A single execution of an automation triggered by a platform event or direct invocation. Captures the run's status, input payload, and final result. */
|
|
55
55
|
export interface AutomationRun {
|
|
@@ -91,11 +91,11 @@ export declare const automationRunSchema: z.ZodObject<{
|
|
|
91
91
|
/** Automation run ID (`atr_...`). */
|
|
92
92
|
id: z.ZodString;
|
|
93
93
|
/** Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied. */
|
|
94
|
-
participants: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
94
|
+
participants: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
95
95
|
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
|
|
96
|
-
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
96
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
97
97
|
/** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. */
|
|
98
|
-
result: z.ZodOptional<z.ZodRecord<z.ZodString, z.
|
|
98
|
+
result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
99
99
|
/** Current execution status of the run. One of `"pending"` (queued, not yet started), `"running"` (actively executing), `"completed"` (finished successfully), `"failed"` (finished with an error), or `"cancelled"` (stopped before completion). */
|
|
100
100
|
status: z.ZodString;
|
|
101
101
|
/** ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team. */
|
|
@@ -110,11 +110,11 @@ export declare const automationRunSchema: z.ZodObject<{
|
|
|
110
110
|
app: string;
|
|
111
111
|
id: string;
|
|
112
112
|
team?: string | undefined;
|
|
113
|
-
participants?: Record<string,
|
|
114
|
-
payload?: Record<string,
|
|
113
|
+
participants?: Record<string, {} | null> | undefined;
|
|
114
|
+
payload?: Record<string, {} | null> | undefined;
|
|
115
115
|
created_at?: string | undefined;
|
|
116
116
|
event_id?: string | undefined;
|
|
117
|
-
result?: Record<string,
|
|
117
|
+
result?: Record<string, {} | null> | undefined;
|
|
118
118
|
updated_at?: string | undefined;
|
|
119
119
|
user?: string | undefined;
|
|
120
120
|
}, {
|
|
@@ -123,11 +123,11 @@ export declare const automationRunSchema: z.ZodObject<{
|
|
|
123
123
|
app: string;
|
|
124
124
|
id: string;
|
|
125
125
|
team?: string | undefined;
|
|
126
|
-
participants?: Record<string,
|
|
127
|
-
payload?: Record<string,
|
|
126
|
+
participants?: Record<string, {} | null> | undefined;
|
|
127
|
+
payload?: Record<string, {} | null> | undefined;
|
|
128
128
|
created_at?: string | undefined;
|
|
129
129
|
event_id?: string | undefined;
|
|
130
|
-
result?: Record<string,
|
|
130
|
+
result?: Record<string, {} | null> | undefined;
|
|
131
131
|
updated_at?: string | undefined;
|
|
132
132
|
user?: string | undefined;
|
|
133
133
|
}>;
|
|
@@ -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: 3334c83f45c4
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
/** Runtime validator for {@link AutomationParticipantSlot}. */
|
|
6
6
|
export const automationParticipantSlotSchema = z.object({
|
|
@@ -16,9 +16,9 @@ export const automationParticipantSlotSchema = z.object({
|
|
|
16
16
|
/** Runtime validator for {@link AutomationPrefills}. */
|
|
17
17
|
export const automationPrefillsSchema = z.object({
|
|
18
18
|
/** Participant slot-to-agent mappings applied by the platform. Caller values at these slots must match exactly. */
|
|
19
|
-
participants: z.record(z.
|
|
19
|
+
participants: z.record(z.custom((value) => value !== undefined)).optional().describe("Participant slot-to-agent mappings applied by the platform. Caller values at these slots must match exactly."),
|
|
20
20
|
/** Partial invocation payload applied by the platform. A caller may omit these values, but supplying a different value at any locked path is rejected. */
|
|
21
|
-
payload: z.record(z.
|
|
21
|
+
payload: z.record(z.custom((value) => value !== undefined)).optional().describe("Partial invocation payload applied by the platform. A caller may omit these values, but supplying a different value at any locked path is rejected."),
|
|
22
22
|
}).describe("Locked payload and participant values supplied by the automation owner.");
|
|
23
23
|
/** Runtime validator for {@link AutomationRun}. */
|
|
24
24
|
export const automationRunSchema = z.object({
|
|
@@ -33,11 +33,11 @@ export const automationRunSchema = z.object({
|
|
|
33
33
|
/** Automation run ID (`atr_...`). */
|
|
34
34
|
id: z.string().describe("Automation run ID (`atr_...`)."),
|
|
35
35
|
/** Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied. */
|
|
36
|
-
participants: z.record(z.
|
|
36
|
+
participants: z.record(z.custom((value) => value !== undefined)).optional().describe("Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied."),
|
|
37
37
|
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
|
|
38
|
-
payload: z.record(z.
|
|
38
|
+
payload: z.record(z.custom((value) => value !== undefined)).optional().describe("The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided."),
|
|
39
39
|
/** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. */
|
|
40
|
-
result: z.record(z.
|
|
40
|
+
result: z.record(z.custom((value) => value !== undefined)).optional().describe("The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed."),
|
|
41
41
|
/** Current execution status of the run. One of `"pending"` (queued, not yet started), `"running"` (actively executing), `"completed"` (finished successfully), `"failed"` (finished with an error), or `"cancelled"` (stopped before completion). */
|
|
42
42
|
status: z.string().describe("Current execution status of the run. One of `\"pending\"` (queued, not yet started), `\"running\"` (actively executing), `\"completed\"` (finished successfully), `\"failed\"` (finished with an error), or `\"cancelled\"` (stopped before completion)."),
|
|
43
43
|
/** ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automations.js","sourceRoot":"","sources":["../../src/types/automations.ts"],"names":[],"mapp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