@archastro/sdk 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth.d.ts +5 -3
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +7 -5
- package/dist/auth.js.map +1 -1
- package/dist/channels/api_activity_feed_channel.js +2 -2
- package/dist/channels/api_activity_feed_channel.js.map +1 -1
- package/dist/channels/api_chat_channel.js +2 -2
- package/dist/channels/api_chat_channel.js.map +1 -1
- package/dist/channels/api_object_channel.d.ts +13 -2
- package/dist/channels/api_object_channel.d.ts.map +1 -1
- package/dist/channels/api_object_channel.js +21 -6
- package/dist/channels/api_object_channel.js.map +1 -1
- package/dist/channels/api_tasks_channel.d.ts +30 -0
- package/dist/channels/api_tasks_channel.d.ts.map +1 -0
- package/dist/channels/api_tasks_channel.js +45 -0
- package/dist/channels/api_tasks_channel.js.map +1 -0
- package/dist/client.d.ts +10 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +12 -2
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/types/ai.d.ts +66 -52
- package/dist/types/ai.d.ts.map +1 -1
- package/dist/types/ai.js +7 -2
- package/dist/types/ai.js.map +1 -1
- package/dist/types/artifacts.d.ts +8 -8
- package/dist/types/artifacts.js +2 -2
- package/dist/types/artifacts.js.map +1 -1
- package/dist/types/automations.d.ts +68 -10
- package/dist/types/automations.d.ts.map +1 -1
- package/dist/types/automations.js +22 -2
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +18446 -3559
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/chat.js +2 -2
- package/dist/types/chat.js.map +1 -1
- package/dist/types/common.d.ts +12646 -2316
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +372 -80
- package/dist/types/common.js.map +1 -1
- package/dist/types/config.d.ts +22 -10
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +4 -2
- package/dist/types/config.js.map +1 -1
- package/dist/types/device.d.ts +60 -0
- package/dist/types/device.d.ts.map +1 -0
- package/dist/types/device.js +25 -0
- package/dist/types/device.js.map +1 -0
- package/dist/types/extractions.d.ts +452 -0
- package/dist/types/extractions.d.ts.map +1 -0
- package/dist/types/extractions.js +52 -0
- package/dist/types/extractions.js.map +1 -0
- package/dist/types/image.js +2 -2
- package/dist/types/image.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +5 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/invites.js +2 -2
- package/dist/types/invites.js.map +1 -1
- package/dist/types/notifications.d.ts +2 -2
- package/dist/types/notifications.js +2 -2
- package/dist/types/notifications.js.map +1 -1
- package/dist/types/oauth.d.ts +117 -0
- package/dist/types/oauth.d.ts.map +1 -0
- package/dist/types/oauth.js +21 -0
- package/dist/types/oauth.js.map +1 -0
- package/dist/types/teams.d.ts +2402 -242
- package/dist/types/teams.d.ts.map +1 -1
- package/dist/types/teams.js +2 -2
- package/dist/types/teams.js.map +1 -1
- package/dist/types/threads.d.ts +1419 -328
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +18 -17
- package/dist/types/threads.js.map +1 -1
- package/dist/types/users.d.ts +2 -2
- package/dist/types/users.js +2 -2
- package/dist/types/users.js.map +1 -1
- package/dist/v1/resources/activity_feed.d.ts +84 -0
- package/dist/v1/resources/activity_feed.d.ts.map +1 -1
- package/dist/v1/resources/activity_feed.js +2 -2
- package/dist/v1/resources/activity_feed.js.map +1 -1
- package/dist/v1/resources/agent_computers.js +2 -2
- package/dist/v1/resources/agent_computers.js.map +1 -1
- package/dist/v1/resources/agent_env_vars.js +2 -2
- package/dist/v1/resources/agent_env_vars.js.map +1 -1
- package/dist/v1/resources/agent_health_actions.js +2 -2
- package/dist/v1/resources/agent_health_actions.js.map +1 -1
- package/dist/v1/resources/agent_installations.d.ts +2 -2
- package/dist/v1/resources/agent_installations.d.ts.map +1 -1
- package/dist/v1/resources/agent_installations.js +3 -3
- package/dist/v1/resources/agent_installations.js.map +1 -1
- package/dist/v1/resources/agent_routine_runs.d.ts +16 -1
- package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -1
- package/dist/v1/resources/agent_routine_runs.js +16 -2
- package/dist/v1/resources/agent_routine_runs.js.map +1 -1
- package/dist/v1/resources/agent_routines.d.ts +47 -3
- package/dist/v1/resources/agent_routines.d.ts.map +1 -1
- package/dist/v1/resources/agent_routines.js +42 -3
- package/dist/v1/resources/agent_routines.js.map +1 -1
- package/dist/v1/resources/agent_sessions.d.ts +14 -2
- package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
- package/dist/v1/resources/agent_sessions.js +14 -3
- package/dist/v1/resources/agent_sessions.js.map +1 -1
- package/dist/v1/resources/agent_skills.js +2 -2
- package/dist/v1/resources/agent_skills.js.map +1 -1
- package/dist/v1/resources/agent_tools.d.ts +2 -2
- package/dist/v1/resources/agent_tools.d.ts.map +1 -1
- package/dist/v1/resources/agent_tools.js +3 -3
- package/dist/v1/resources/agent_tools.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +152 -35
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +148 -42
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +81 -40
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +52 -17
- package/dist/v1/resources/ai.js.map +1 -1
- package/dist/v1/resources/artifacts.js +2 -2
- package/dist/v1/resources/artifacts.js.map +1 -1
- package/dist/v1/resources/automation_runs.d.ts +41 -6
- package/dist/v1/resources/automation_runs.d.ts.map +1 -1
- package/dist/v1/resources/automation_runs.js +47 -8
- package/dist/v1/resources/automation_runs.js.map +1 -1
- package/dist/v1/resources/automations.d.ts +14 -1
- package/dist/v1/resources/automations.d.ts.map +1 -1
- package/dist/v1/resources/automations.js +15 -3
- package/dist/v1/resources/automations.js.map +1 -1
- package/dist/v1/resources/bug_reports.js +2 -2
- package/dist/v1/resources/bug_reports.js.map +1 -1
- package/dist/v1/resources/config.d.ts +3 -0
- package/dist/v1/resources/config.d.ts.map +1 -1
- package/dist/v1/resources/config.js +2 -2
- package/dist/v1/resources/config.js.map +1 -1
- package/dist/v1/resources/custom_objects.js +2 -2
- package/dist/v1/resources/custom_objects.js.map +1 -1
- package/dist/v1/resources/extractions.d.ts +50 -0
- package/dist/v1/resources/extractions.d.ts.map +1 -0
- package/dist/v1/resources/extractions.js +48 -0
- package/dist/v1/resources/extractions.js.map +1 -0
- package/dist/v1/resources/files.d.ts +88 -1
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +86 -3
- package/dist/v1/resources/files.js.map +1 -1
- package/dist/v1/resources/index.d.ts +5 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +7 -2
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/installation_sources.js +2 -2
- package/dist/v1/resources/installation_sources.js.map +1 -1
- package/dist/v1/resources/invites.js +2 -2
- package/dist/v1/resources/invites.js.map +1 -1
- package/dist/v1/resources/knowledge_documents.d.ts +33 -1
- package/dist/v1/resources/knowledge_documents.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_documents.js +25 -2
- package/dist/v1/resources/knowledge_documents.js.map +1 -1
- package/dist/v1/resources/knowledge_ingestions.d.ts +16 -0
- package/dist/v1/resources/knowledge_ingestions.d.ts.map +1 -0
- package/dist/v1/resources/knowledge_ingestions.js +21 -0
- package/dist/v1/resources/knowledge_ingestions.js.map +1 -0
- package/dist/v1/resources/knowledge_sources.d.ts +2 -0
- package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_sources.js +3 -2
- package/dist/v1/resources/knowledge_sources.js.map +1 -1
- package/dist/v1/resources/kv.js +2 -2
- package/dist/v1/resources/kv.js.map +1 -1
- package/dist/v1/resources/notification_preferences.js +2 -2
- package/dist/v1/resources/notification_preferences.js.map +1 -1
- package/dist/v1/resources/notifications.js +2 -2
- package/dist/v1/resources/notifications.js.map +1 -1
- package/dist/v1/resources/oauth.d.ts +115 -0
- package/dist/v1/resources/oauth.d.ts.map +1 -0
- package/dist/v1/resources/oauth.js +112 -0
- package/dist/v1/resources/oauth.js.map +1 -0
- package/dist/v1/resources/orgs.js +2 -2
- package/dist/v1/resources/orgs.js.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.d.ts +25 -0
- package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.js +24 -2
- package/dist/v1/resources/slack_channel_bindings.js.map +1 -1
- package/dist/v1/resources/solution_categories.js +2 -2
- package/dist/v1/resources/solution_categories.js.map +1 -1
- package/dist/v1/resources/solution_instances.d.ts +26 -0
- package/dist/v1/resources/solution_instances.d.ts.map +1 -0
- package/dist/v1/resources/solution_instances.js +35 -0
- package/dist/v1/resources/solution_instances.js.map +1 -0
- package/dist/v1/resources/solution_tags.js +2 -2
- package/dist/v1/resources/solution_tags.js.map +1 -1
- package/dist/v1/resources/solutions.d.ts +85 -1
- package/dist/v1/resources/solutions.d.ts.map +1 -1
- package/dist/v1/resources/solutions.js +67 -3
- package/dist/v1/resources/solutions.js.map +1 -1
- package/dist/v1/resources/team_memberships.js +2 -2
- package/dist/v1/resources/team_memberships.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +210 -4
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +16 -6
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/thread_messages.d.ts +24 -4
- package/dist/v1/resources/thread_messages.d.ts.map +1 -1
- package/dist/v1/resources/thread_messages.js +9 -6
- package/dist/v1/resources/thread_messages.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +158 -42
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +121 -32
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +132 -1
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +4 -2
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1/resources/work_items.d.ts +78 -0
- package/dist/v1/resources/work_items.d.ts.map +1 -0
- package/dist/v1/resources/work_items.js +86 -0
- package/dist/v1/resources/work_items.js.map +1 -0
- package/dist/v1.d.ts +10 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +17 -2
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,56 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
/** A named participant slot declared by an automation's workflow. Embedded stages hand work to the agent the invoker names for the slot. */
|
|
3
|
+
export interface AutomationParticipantSlot {
|
|
4
|
+
/** Workflow-authored explanation of the slot's role. `null` when the workflow declares none. */
|
|
5
|
+
description?: string | undefined;
|
|
6
|
+
/** The slot's name, as referenced by the workflow. Supply the chosen agent under the top-level `participants[name]` field when invoking. */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Whether the workflow requires this slot to be filled for the run to complete its embedded stages. */
|
|
9
|
+
required: boolean;
|
|
10
|
+
/** The kind of principal the slot accepts. Currently always `"agent_user"` — the value supplied at invoke is an agent ID (`agi_...`). */
|
|
11
|
+
type: string;
|
|
12
|
+
}
|
|
13
|
+
/** Runtime validator for {@link AutomationParticipantSlot}. */
|
|
14
|
+
export declare const automationParticipantSlotSchema: z.ZodObject<{
|
|
15
|
+
/** Workflow-authored explanation of the slot's role. `null` when the workflow declares none. */
|
|
16
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17
|
+
/** The slot's name, as referenced by the workflow. Supply the chosen agent under the top-level `participants[name]` field when invoking. */
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
/** Whether the workflow requires this slot to be filled for the run to complete its embedded stages. */
|
|
20
|
+
required: z.ZodBoolean;
|
|
21
|
+
/** The kind of principal the slot accepts. Currently always `"agent_user"` — the value supplied at invoke is an agent ID (`agi_...`). */
|
|
22
|
+
type: z.ZodString;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
name: string;
|
|
25
|
+
required: boolean;
|
|
26
|
+
type: string;
|
|
27
|
+
description?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
name: string;
|
|
30
|
+
required: boolean;
|
|
31
|
+
type: string;
|
|
32
|
+
description?: string | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
/** Locked payload and participant values supplied by the automation owner. */
|
|
35
|
+
export interface AutomationPrefills {
|
|
36
|
+
/** Participant slot-to-agent mappings applied by the platform. Caller values at these slots must match exactly. */
|
|
37
|
+
participants?: Record<string, unknown> | undefined;
|
|
38
|
+
/** Partial invocation payload applied by the platform. A caller may omit these values, but supplying a different value at any locked path is rejected. */
|
|
39
|
+
payload?: Record<string, unknown> | undefined;
|
|
40
|
+
}
|
|
41
|
+
/** Runtime validator for {@link AutomationPrefills}. */
|
|
42
|
+
export declare const automationPrefillsSchema: z.ZodObject<{
|
|
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.ZodUnknown>>;
|
|
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.ZodUnknown>>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
participants?: Record<string, unknown> | undefined;
|
|
49
|
+
payload?: Record<string, unknown> | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
participants?: Record<string, unknown> | undefined;
|
|
52
|
+
payload?: Record<string, unknown> | undefined;
|
|
53
|
+
}>;
|
|
2
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. */
|
|
3
55
|
export interface AutomationRun {
|
|
4
56
|
/** ID of the app that owns this automation run (`dap_...`). */
|
|
@@ -11,6 +63,8 @@ export interface AutomationRun {
|
|
|
11
63
|
event_id?: string | undefined;
|
|
12
64
|
/** Automation run ID (`atr_...`). */
|
|
13
65
|
id: string;
|
|
66
|
+
/** Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied. */
|
|
67
|
+
participants?: Record<string, unknown> | undefined;
|
|
14
68
|
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
|
|
15
69
|
payload?: Record<string, unknown> | undefined;
|
|
16
70
|
/** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. */
|
|
@@ -36,6 +90,8 @@ export declare const automationRunSchema: z.ZodObject<{
|
|
|
36
90
|
event_id: z.ZodOptional<z.ZodString>;
|
|
37
91
|
/** Automation run ID (`atr_...`). */
|
|
38
92
|
id: z.ZodString;
|
|
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.ZodUnknown>>;
|
|
39
95
|
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
|
|
40
96
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
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. */
|
|
@@ -49,28 +105,30 @@ export declare const automationRunSchema: z.ZodObject<{
|
|
|
49
105
|
/** ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user. */
|
|
50
106
|
user: z.ZodOptional<z.ZodString>;
|
|
51
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
automation: string;
|
|
52
109
|
status: string;
|
|
53
|
-
id: string;
|
|
54
110
|
app: string;
|
|
55
|
-
|
|
111
|
+
id: string;
|
|
56
112
|
team?: string | undefined;
|
|
57
|
-
|
|
58
|
-
updated_at?: string | undefined;
|
|
59
|
-
user?: string | undefined;
|
|
113
|
+
participants?: Record<string, unknown> | undefined;
|
|
60
114
|
payload?: Record<string, unknown> | undefined;
|
|
115
|
+
created_at?: string | undefined;
|
|
61
116
|
event_id?: string | undefined;
|
|
62
117
|
result?: Record<string, unknown> | undefined;
|
|
118
|
+
updated_at?: string | undefined;
|
|
119
|
+
user?: string | undefined;
|
|
63
120
|
}, {
|
|
121
|
+
automation: string;
|
|
64
122
|
status: string;
|
|
65
|
-
id: string;
|
|
66
123
|
app: string;
|
|
67
|
-
|
|
124
|
+
id: string;
|
|
68
125
|
team?: string | undefined;
|
|
69
|
-
|
|
70
|
-
updated_at?: string | undefined;
|
|
71
|
-
user?: string | undefined;
|
|
126
|
+
participants?: Record<string, unknown> | undefined;
|
|
72
127
|
payload?: Record<string, unknown> | undefined;
|
|
128
|
+
created_at?: string | undefined;
|
|
73
129
|
event_id?: string | undefined;
|
|
74
130
|
result?: Record<string, unknown> | undefined;
|
|
131
|
+
updated_at?: string | undefined;
|
|
132
|
+
user?: string | undefined;
|
|
75
133
|
}>;
|
|
76
134
|
//# sourceMappingURL=automations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../src/types/automations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,0JAA0J;AAC1J,MAAM,WAAW,aAAa;IAC5B,+DAA+D;IAC/D,GAAG,EAAE,MAAM,CAAC;IACZ,0DAA0D;IAC1D,UAAU,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,iGAAiG;IACjG,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,oJAAoJ;IACpJ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,O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G,kEAAkE;;IAElE,8GAA8G;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEqF,CAAC"}
|
|
@@ -1,7 +1,25 @@
|
|
|
1
|
-
// Copyright (c) 2026 ArchAstro Inc.
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: 33374864aa9d
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
/** Runtime validator for {@link AutomationParticipantSlot}. */
|
|
6
|
+
export const automationParticipantSlotSchema = z.object({
|
|
7
|
+
/** Workflow-authored explanation of the slot's role. `null` when the workflow declares none. */
|
|
8
|
+
description: z.string().optional().describe("Workflow-authored explanation of the slot's role. `null` when the workflow declares none."),
|
|
9
|
+
/** The slot's name, as referenced by the workflow. Supply the chosen agent under the top-level `participants[name]` field when invoking. */
|
|
10
|
+
name: z.string().describe("The slot's name, as referenced by the workflow. Supply the chosen agent under the top-level `participants[name]` field when invoking."),
|
|
11
|
+
/** Whether the workflow requires this slot to be filled for the run to complete its embedded stages. */
|
|
12
|
+
required: z.boolean().describe("Whether the workflow requires this slot to be filled for the run to complete its embedded stages."),
|
|
13
|
+
/** The kind of principal the slot accepts. Currently always `"agent_user"` — the value supplied at invoke is an agent ID (`agi_...`). */
|
|
14
|
+
type: z.string().describe("The kind of principal the slot accepts. Currently always `\"agent_user\"` — the value supplied at invoke is an agent ID (`agi_...`)."),
|
|
15
|
+
}).describe("A named participant slot declared by an automation's workflow. Embedded stages hand work to the agent the invoker names for the slot.");
|
|
16
|
+
/** Runtime validator for {@link AutomationPrefills}. */
|
|
17
|
+
export const automationPrefillsSchema = z.object({
|
|
18
|
+
/** Participant slot-to-agent mappings applied by the platform. Caller values at these slots must match exactly. */
|
|
19
|
+
participants: z.record(z.unknown()).optional().describe("Participant slot-to-agent mappings applied by the platform. Caller values at these slots must match exactly."),
|
|
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.unknown()).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
|
+
}).describe("Locked payload and participant values supplied by the automation owner.");
|
|
5
23
|
/** Runtime validator for {@link AutomationRun}. */
|
|
6
24
|
export const automationRunSchema = z.object({
|
|
7
25
|
/** ID of the app that owns this automation run (`dap_...`). */
|
|
@@ -14,6 +32,8 @@ export const automationRunSchema = z.object({
|
|
|
14
32
|
event_id: z.string().optional().describe("ID of the platform event that triggered this run. `null` for directly invoked automations."),
|
|
15
33
|
/** Automation run ID (`atr_...`). */
|
|
16
34
|
id: z.string().describe("Automation run ID (`atr_...`)."),
|
|
35
|
+
/** Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied. */
|
|
36
|
+
participants: z.record(z.unknown()).optional().describe("Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied."),
|
|
17
37
|
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
|
|
18
38
|
payload: z.record(z.unknown()).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."),
|
|
19
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. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automations.js","sourceRoot":"","sources":["../../src/types/automations.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"automations.js","sourceRoot":"","sources":["../../src/types/automations.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,+DAA+D;AAC/D,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,gGAAgG;IAChG,WAAW,EAAE,CAAC,CAAC,MAAM,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