@archastro/sdk 0.20.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_artifact_channel.d.ts +48 -0
- package/dist/channels/api_artifact_channel.d.ts.map +1 -0
- package/dist/channels/api_artifact_channel.js +85 -0
- package/dist/channels/api_artifact_channel.js.map +1 -0
- 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 +10 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +11 -1
- 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 +2 -1
- package/dist/index.js.map +1 -1
- package/dist/types/ai.d.ts +124 -10
- package/dist/types/ai.d.ts.map +1 -1
- package/dist/types/ai.js +27 -7
- package/dist/types/ai.js.map +1 -1
- package/dist/types/artifacts.d.ts +448 -0
- package/dist/types/artifacts.d.ts.map +1 -1
- package/dist/types/artifacts.js +65 -1
- package/dist/types/artifacts.js.map +1 -1
- package/dist/types/automations.d.ts +26 -26
- package/dist/types/automations.d.ts.map +1 -1
- package/dist/types/automations.js +10 -10
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +4150 -0
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/common.d.ts +3635 -357
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +186 -32
- package/dist/types/common.js.map +1 -1
- package/dist/types/computers.d.ts +42 -0
- package/dist/types/computers.d.ts.map +1 -0
- package/dist/types/computers.js +19 -0
- package/dist/types/computers.js.map +1 -0
- package/dist/types/events.d.ts +34 -16
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/events.js +3 -1
- package/dist/types/events.js.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/relays.d.ts +22 -0
- package/dist/types/relays.d.ts.map +1 -0
- package/dist/types/relays.js +12 -0
- package/dist/types/relays.js.map +1 -0
- package/dist/types/tasks.d.ts +839 -14
- package/dist/types/tasks.d.ts.map +1 -1
- package/dist/types/tasks.js +85 -11
- 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 +421 -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 +48 -1
- package/dist/v1/resources/agent_computers.d.ts.map +1 -1
- package/dist/v1/resources/agent_computers.js +17 -1
- package/dist/v1/resources/agent_computers.js.map +1 -1
- package/dist/v1/resources/agent_requests.d.ts +62 -0
- package/dist/v1/resources/agent_requests.d.ts.map +1 -0
- package/dist/v1/resources/agent_requests.js +79 -0
- package/dist/v1/resources/agent_requests.js.map +1 -0
- 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/agent_sessions.d.ts +23 -1
- package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
- package/dist/v1/resources/agent_sessions.js +26 -1
- package/dist/v1/resources/agent_sessions.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +96 -1
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +13 -2
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +55 -4
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +44 -4
- package/dist/v1/resources/ai.js.map +1 -1
- package/dist/v1/resources/artifacts.d.ts +64 -2
- package/dist/v1/resources/artifacts.d.ts.map +1 -1
- package/dist/v1/resources/artifacts.js +3 -2
- 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 +154 -0
- package/dist/v1/resources/custom_objects.d.ts.map +1 -1
- package/dist/v1/resources/custom_objects.js +60 -1
- package/dist/v1/resources/custom_objects.js.map +1 -1
- package/dist/v1/resources/event_subscriptions.d.ts +12 -0
- package/dist/v1/resources/event_subscriptions.d.ts.map +1 -1
- package/dist/v1/resources/event_subscriptions.js +7 -1
- package/dist/v1/resources/event_subscriptions.js.map +1 -1
- package/dist/v1/resources/files.d.ts +56 -10
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +39 -11
- 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 +6 -1
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/knowledge_sources.d.ts +4 -0
- package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
- package/dist/v1/resources/knowledge_sources.js +1 -1
- package/dist/v1/resources/kv.d.ts +75 -31
- package/dist/v1/resources/kv.d.ts.map +1 -1
- package/dist/v1/resources/kv.js +79 -32
- package/dist/v1/resources/kv.js.map +1 -1
- package/dist/v1/resources/notifications.d.ts +14 -0
- package/dist/v1/resources/notifications.d.ts.map +1 -1
- package/dist/v1/resources/notifications.js +13 -1
- package/dist/v1/resources/notifications.js.map +1 -1
- package/dist/v1/resources/oauth.d.ts +2 -0
- package/dist/v1/resources/oauth.d.ts.map +1 -1
- package/dist/v1/resources/oauth.js +2 -1
- package/dist/v1/resources/oauth.js.map +1 -1
- package/dist/v1/resources/orgs.d.ts +907 -1
- package/dist/v1/resources/orgs.d.ts.map +1 -1
- package/dist/v1/resources/orgs.js +471 -2
- package/dist/v1/resources/orgs.js.map +1 -1
- package/dist/v1/resources/private_service_enrollments.d.ts +7 -0
- package/dist/v1/resources/private_service_enrollments.d.ts.map +1 -1
- package/dist/v1/resources/private_service_enrollments.js +10 -1
- package/dist/v1/resources/private_service_enrollments.js.map +1 -1
- package/dist/v1/resources/relays.d.ts +38 -0
- package/dist/v1/resources/relays.d.ts.map +1 -0
- package/dist/v1/resources/relays.js +44 -0
- package/dist/v1/resources/relays.js.map +1 -0
- package/dist/v1/resources/scripts.d.ts +20 -9
- package/dist/v1/resources/scripts.d.ts.map +1 -1
- package/dist/v1/resources/scripts.js +18 -10
- package/dist/v1/resources/scripts.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/task_ownership_conversions.d.ts +14 -0
- package/dist/v1/resources/task_ownership_conversions.d.ts.map +1 -0
- package/dist/v1/resources/task_ownership_conversions.js +19 -0
- package/dist/v1/resources/task_ownership_conversions.js.map +1 -0
- package/dist/v1/resources/tasks.d.ts +122 -1
- package/dist/v1/resources/tasks.d.ts.map +1 -1
- package/dist/v1/resources/tasks.js +73 -1
- package/dist/v1/resources/tasks.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +415 -1
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +137 -1
- 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 +126 -0
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +43 -1
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +372 -3
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +167 -3
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1/resources/workflows.d.ts +5 -1
- package/dist/v1/resources/workflows.d.ts.map +1 -1
- package/dist/v1/resources/workflows.js +6 -2
- package/dist/v1/resources/workflows.js.map +1 -1
- package/dist/v1.d.ts +10 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +16 -1
- package/dist/v1.js.map +1 -1
- package/package.json +1 -1
|
@@ -59,24 +59,24 @@ export interface AutomationRun {
|
|
|
59
59
|
automation: string;
|
|
60
60
|
/** When the automation run was created (ISO 8601). */
|
|
61
61
|
created_at?: string | undefined;
|
|
62
|
-
/**
|
|
63
|
-
event_id?: string | undefined;
|
|
62
|
+
/** Event or invocation identifier for this run. Direct invocations use the supplied idempotency key or a generated UUID. `null` when no event identifier was recorded. */
|
|
63
|
+
event_id?: string | null | undefined;
|
|
64
64
|
/** Automation run ID (`atr_...`). */
|
|
65
65
|
id: string;
|
|
66
66
|
/** Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied. */
|
|
67
|
-
participants?: Record<string, unknown> | undefined;
|
|
68
|
-
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
|
|
67
|
+
participants?: Record<string, unknown> | null | undefined;
|
|
68
|
+
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. Omitted on retrieval when include_payload=false. */
|
|
69
69
|
payload?: Record<string, unknown> | undefined;
|
|
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. */
|
|
71
|
-
result?: Record<string, unknown> | undefined;
|
|
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. Omitted on retrieval when include_payload=false. */
|
|
71
|
+
result?: Record<string, unknown> | null | undefined;
|
|
72
72
|
/** 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). */
|
|
73
73
|
status: string;
|
|
74
74
|
/** ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team. */
|
|
75
|
-
team?: string | undefined;
|
|
75
|
+
team?: string | null | undefined;
|
|
76
76
|
/** When the automation run record was last updated (ISO 8601). */
|
|
77
77
|
updated_at?: string | undefined;
|
|
78
78
|
/** ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user. */
|
|
79
|
-
user?: string | undefined;
|
|
79
|
+
user?: string | null | undefined;
|
|
80
80
|
}
|
|
81
81
|
/** Runtime validator for {@link AutomationRun}. */
|
|
82
82
|
export declare const automationRunSchema: z.ZodObject<{
|
|
@@ -86,49 +86,49 @@ export declare const automationRunSchema: z.ZodObject<{
|
|
|
86
86
|
automation: z.ZodString;
|
|
87
87
|
/** When the automation run was created (ISO 8601). */
|
|
88
88
|
created_at: z.ZodOptional<z.ZodString>;
|
|
89
|
-
/**
|
|
90
|
-
event_id: z.ZodOptional<z.ZodString
|
|
89
|
+
/** Event or invocation identifier for this run. Direct invocations use the supplied idempotency key or a generated UUID. `null` when no event identifier was recorded. */
|
|
90
|
+
event_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
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.ZodType<{} | null, z.ZodTypeDef, {} | null
|
|
95
|
-
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
|
|
94
|
+
participants: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>>;
|
|
95
|
+
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. Omitted on retrieval when include_payload=false. */
|
|
96
96
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
|
|
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.ZodType<{} | null, z.ZodTypeDef, {} | null
|
|
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. Omitted on retrieval when include_payload=false. */
|
|
98
|
+
result: z.ZodOptional<z.ZodNullable<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. */
|
|
102
|
-
team: z.ZodOptional<z.ZodString
|
|
102
|
+
team: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
103
|
/** When the automation run record was last updated (ISO 8601). */
|
|
104
104
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
105
105
|
/** ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user. */
|
|
106
|
-
user: z.ZodOptional<z.ZodString
|
|
106
|
+
user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
108
|
automation: string;
|
|
109
109
|
status: string;
|
|
110
110
|
app: string;
|
|
111
111
|
id: string;
|
|
112
|
-
user?: string | undefined;
|
|
113
|
-
team?: string | undefined;
|
|
114
|
-
participants?: Record<string, {} | null> | undefined;
|
|
112
|
+
user?: string | null | undefined;
|
|
113
|
+
team?: string | null | undefined;
|
|
114
|
+
participants?: Record<string, {} | null> | null | undefined;
|
|
115
115
|
payload?: Record<string, {} | null> | undefined;
|
|
116
116
|
created_at?: string | undefined;
|
|
117
|
-
event_id?: string | undefined;
|
|
118
|
-
result?: Record<string, {} | null> | undefined;
|
|
117
|
+
event_id?: string | null | undefined;
|
|
118
|
+
result?: Record<string, {} | null> | null | undefined;
|
|
119
119
|
updated_at?: string | undefined;
|
|
120
120
|
}, {
|
|
121
121
|
automation: string;
|
|
122
122
|
status: string;
|
|
123
123
|
app: string;
|
|
124
124
|
id: string;
|
|
125
|
-
user?: string | undefined;
|
|
126
|
-
team?: string | undefined;
|
|
127
|
-
participants?: Record<string, {} | null> | undefined;
|
|
125
|
+
user?: string | null | undefined;
|
|
126
|
+
team?: string | null | undefined;
|
|
127
|
+
participants?: Record<string, {} | null> | null | undefined;
|
|
128
128
|
payload?: Record<string, {} | null> | undefined;
|
|
129
129
|
created_at?: string | undefined;
|
|
130
|
-
event_id?: string | undefined;
|
|
131
|
-
result?: Record<string, {} | null> | undefined;
|
|
130
|
+
event_id?: string | null | undefined;
|
|
131
|
+
result?: Record<string, {} | null> | null | undefined;
|
|
132
132
|
updated_at?: string | undefined;
|
|
133
133
|
}>;
|
|
134
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,4IA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AM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,8GAA8G;IAC9G,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAClC;AAED,mDAAmD;AACnD,eAAO,MAAM,mBAAmB;IAC9B,+DAA+D;;IAE/D,0DAA0D;;IAE1D,sDAAsD;;IAEtD,0KAA0K;;IAE1K,qCAAqC;;IAErC,kHAAkH;;IAElH,qMAAqM;;IAErM,2NAA2N;;IAE3N,qPAAqP;;IAErP,8GAA8G;;IAE9G,kEAAkE;;IAElE,8GAA8G;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEqF,CAAC"}
|
|
@@ -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: fd9fc8344b08
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
/** Runtime validator for {@link AutomationParticipantSlot}. */
|
|
6
6
|
export const automationParticipantSlotSchema = z.object({
|
|
@@ -28,23 +28,23 @@ export const automationRunSchema = z.object({
|
|
|
28
28
|
automation: z.string().describe("ID of the automation that was executed (`aut_...`)."),
|
|
29
29
|
/** When the automation run was created (ISO 8601). */
|
|
30
30
|
created_at: z.string().optional().describe("When the automation run was created (ISO 8601)."),
|
|
31
|
-
/**
|
|
32
|
-
event_id: z.string().optional().describe("
|
|
31
|
+
/** Event or invocation identifier for this run. Direct invocations use the supplied idempotency key or a generated UUID. `null` when no event identifier was recorded. */
|
|
32
|
+
event_id: z.string().nullable().optional().describe("Event or invocation identifier for this run. Direct invocations use the supplied idempotency key or a generated UUID. `null` when no event identifier was recorded."),
|
|
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.custom((value) => value !== undefined)).optional().describe("Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied."),
|
|
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.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
|
-
/** 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.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."),
|
|
36
|
+
participants: z.record(z.custom((value) => value !== undefined)).nullable().optional().describe("Invoke-time map of symbolic participant references to agent IDs. `null` when no participants were supplied."),
|
|
37
|
+
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. Omitted on retrieval when include_payload=false. */
|
|
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. Omitted on retrieval when include_payload=false."),
|
|
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. Omitted on retrieval when include_payload=false. */
|
|
40
|
+
result: z.record(z.custom((value) => value !== undefined)).nullable().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. Omitted on retrieval when include_payload=false."),
|
|
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. */
|
|
44
|
-
team: z.string().optional().describe("ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team."),
|
|
44
|
+
team: z.string().nullable().optional().describe("ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team."),
|
|
45
45
|
/** When the automation run record was last updated (ISO 8601). */
|
|
46
46
|
updated_at: z.string().optional().describe("When the automation run record was last updated (ISO 8601)."),
|
|
47
47
|
/** ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user. */
|
|
48
|
-
user: z.string().optional().describe("ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user."),
|
|
48
|
+
user: z.string().nullable().optional().describe("ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user."),
|
|
49
49
|
}).describe("A single execution of an automation triggered by a platform event or direct invocation. Captures the run's status, input payload, and final result.");
|
|
50
50
|
//# sourceMappingURL=automations.js.map
|
|
@@ -1 +1 @@
|
|
|
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,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2FAA2F,CAAC;IACnJ,4IAA4I;IAC5I,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uIAAuI,CAAC;IAClK,wGAAwG;IACxG,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,mGAAmG,CAAC;IACnI,yIAAyI;IACzI,IAAI,EAAE,CAA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