@archastro/sdk 0.20.0 → 0.21.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/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/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 +351 -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 +22 -22
- package/dist/types/automations.d.ts.map +1 -1
- package/dist/types/automations.js +7 -7
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +388 -0
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/common.d.ts +1132 -287
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +146 -28
- package/dist/types/common.js.map +1 -1
- package/dist/types/computers.d.ts +22 -0
- package/dist/types/computers.d.ts.map +1 -0
- package/dist/types/computers.js +12 -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 +598 -14
- package/dist/types/tasks.d.ts.map +1 -1
- package/dist/types/tasks.js +43 -11
- package/dist/types/tasks.js.map +1 -1
- package/dist/types/threads.d.ts +64 -0
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/v1/resources/agent_computers.d.ts +33 -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 +54 -0
- package/dist/v1/resources/agent_requests.d.ts.map +1 -0
- package/dist/v1/resources/agent_requests.js +71 -0
- package/dist/v1/resources/agent_requests.js.map +1 -0
- 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 +31 -1
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +12 -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 +34 -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/custom_objects.d.ts +94 -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 +32 -10
- package/dist/v1/resources/files.d.ts.map +1 -1
- package/dist/v1/resources/files.js +32 -11
- package/dist/v1/resources/files.js.map +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/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 +630 -1
- package/dist/v1/resources/orgs.d.ts.map +1 -1
- package/dist/v1/resources/orgs.js +351 -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/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 +62 -1
- package/dist/v1/resources/tasks.d.ts.map +1 -1
- package/dist/v1/resources/tasks.js +35 -1
- package/dist/v1/resources/tasks.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +129 -1
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +71 -1
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +76 -0
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +42 -1
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +129 -3
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +73 -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 +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
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import type { Acl } from "./common.js";
|
|
2
3
|
import type { ImageSource } from "./image.js";
|
|
3
4
|
/** A versioned artifact produced or managed by an agent, such as a generated file, report, or code output. */
|
|
4
5
|
export interface Artifact {
|
|
6
|
+
/** Access control list for the artifact. Contains a `grants` array where each entry specifies `principal_type`, `principal`, and `actions` (`read`, `write`). `null` when the artifact has no grants or the viewer is not its owner. */
|
|
7
|
+
acl?: Acl | null | undefined;
|
|
5
8
|
/** ID of the agent that produced this artifact (`agt_...`). `null` if not agent-produced. */
|
|
6
9
|
agent?: string | undefined;
|
|
7
10
|
/** MIME type of the current version's file, e.g. `"text/csv"` or `"image/png"`. `null` if no file is attached. */
|
|
@@ -45,6 +48,75 @@ export interface Artifact {
|
|
|
45
48
|
}
|
|
46
49
|
/** Runtime validator for {@link Artifact}. */
|
|
47
50
|
export declare const artifactSchema: z.ZodObject<{
|
|
51
|
+
/** Access control list for the artifact. Contains a `grants` array where each entry specifies `principal_type`, `principal`, and `actions` (`read`, `write`). `null` when the artifact has no grants or the viewer is not its owner. */
|
|
52
|
+
acl: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
53
|
+
add: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
55
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
56
|
+
principal_type: z.ZodString;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
actions: string[];
|
|
59
|
+
principal_type: string;
|
|
60
|
+
principal?: string | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
actions: string[];
|
|
63
|
+
principal_type: string;
|
|
64
|
+
principal?: string | undefined;
|
|
65
|
+
}>, "many">>;
|
|
66
|
+
grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
67
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
68
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
69
|
+
principal_type: z.ZodString;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
actions: string[];
|
|
72
|
+
principal_type: string;
|
|
73
|
+
principal?: string | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
actions: string[];
|
|
76
|
+
principal_type: string;
|
|
77
|
+
principal?: string | undefined;
|
|
78
|
+
}>, "many">>;
|
|
79
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
81
|
+
principal_type: z.ZodString;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
principal_type: string;
|
|
84
|
+
principal?: string | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
principal_type: string;
|
|
87
|
+
principal?: string | undefined;
|
|
88
|
+
}>, "many">>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
add?: {
|
|
91
|
+
actions: string[];
|
|
92
|
+
principal_type: string;
|
|
93
|
+
principal?: string | undefined;
|
|
94
|
+
}[] | undefined;
|
|
95
|
+
grants?: {
|
|
96
|
+
actions: string[];
|
|
97
|
+
principal_type: string;
|
|
98
|
+
principal?: string | undefined;
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
remove?: {
|
|
101
|
+
principal_type: string;
|
|
102
|
+
principal?: string | undefined;
|
|
103
|
+
}[] | undefined;
|
|
104
|
+
}, {
|
|
105
|
+
add?: {
|
|
106
|
+
actions: string[];
|
|
107
|
+
principal_type: string;
|
|
108
|
+
principal?: string | undefined;
|
|
109
|
+
}[] | undefined;
|
|
110
|
+
grants?: {
|
|
111
|
+
actions: string[];
|
|
112
|
+
principal_type: string;
|
|
113
|
+
principal?: string | undefined;
|
|
114
|
+
}[] | undefined;
|
|
115
|
+
remove?: {
|
|
116
|
+
principal_type: string;
|
|
117
|
+
principal?: string | undefined;
|
|
118
|
+
}[] | undefined;
|
|
119
|
+
}>>>;
|
|
48
120
|
/** ID of the agent that produced this artifact (`agt_...`). `null` if not agent-produced. */
|
|
49
121
|
agent: z.ZodOptional<z.ZodString>;
|
|
50
122
|
/** MIME type of the current version's file, e.g. `"text/csv"` or `"image/png"`. `null` if no file is attached. */
|
|
@@ -123,6 +195,22 @@ export declare const artifactSchema: z.ZodObject<{
|
|
|
123
195
|
sandbox?: string | undefined;
|
|
124
196
|
current_version?: string | undefined;
|
|
125
197
|
file?: string | undefined;
|
|
198
|
+
acl?: {
|
|
199
|
+
add?: {
|
|
200
|
+
actions: string[];
|
|
201
|
+
principal_type: string;
|
|
202
|
+
principal?: string | undefined;
|
|
203
|
+
}[] | undefined;
|
|
204
|
+
grants?: {
|
|
205
|
+
actions: string[];
|
|
206
|
+
principal_type: string;
|
|
207
|
+
principal?: string | undefined;
|
|
208
|
+
}[] | undefined;
|
|
209
|
+
remove?: {
|
|
210
|
+
principal_type: string;
|
|
211
|
+
principal?: string | undefined;
|
|
212
|
+
}[] | undefined;
|
|
213
|
+
} | null | undefined;
|
|
126
214
|
content_type?: string | undefined;
|
|
127
215
|
image_source?: {
|
|
128
216
|
mime_type?: string | null | undefined;
|
|
@@ -152,6 +240,22 @@ export declare const artifactSchema: z.ZodObject<{
|
|
|
152
240
|
sandbox?: string | undefined;
|
|
153
241
|
current_version?: string | undefined;
|
|
154
242
|
file?: string | undefined;
|
|
243
|
+
acl?: {
|
|
244
|
+
add?: {
|
|
245
|
+
actions: string[];
|
|
246
|
+
principal_type: string;
|
|
247
|
+
principal?: string | undefined;
|
|
248
|
+
}[] | undefined;
|
|
249
|
+
grants?: {
|
|
250
|
+
actions: string[];
|
|
251
|
+
principal_type: string;
|
|
252
|
+
principal?: string | undefined;
|
|
253
|
+
}[] | undefined;
|
|
254
|
+
remove?: {
|
|
255
|
+
principal_type: string;
|
|
256
|
+
principal?: string | undefined;
|
|
257
|
+
}[] | undefined;
|
|
258
|
+
} | null | undefined;
|
|
155
259
|
content_type?: string | undefined;
|
|
156
260
|
image_source?: {
|
|
157
261
|
mime_type?: string | null | undefined;
|
|
@@ -168,4 +272,251 @@ export declare const artifactSchema: z.ZodObject<{
|
|
|
168
272
|
group_key?: string | null | undefined;
|
|
169
273
|
system?: boolean | undefined;
|
|
170
274
|
}>;
|
|
275
|
+
/** Acknowledges an Artifact editing presence or leave request. */
|
|
276
|
+
export interface ArtifactEditingAck {
|
|
277
|
+
ok: boolean;
|
|
278
|
+
}
|
|
279
|
+
/** Runtime validator for {@link ArtifactEditingAck}. */
|
|
280
|
+
export declare const artifactEditingAckSchema: z.ZodObject<{
|
|
281
|
+
ok: z.ZodBoolean;
|
|
282
|
+
}, "strip", z.ZodTypeAny, {
|
|
283
|
+
ok: boolean;
|
|
284
|
+
}, {
|
|
285
|
+
ok: boolean;
|
|
286
|
+
}>;
|
|
287
|
+
/** A Unicode code-point cursor and optional selection endpoint. */
|
|
288
|
+
export interface ArtifactEditingCursor {
|
|
289
|
+
/** Zero-based Unicode code-point position. */
|
|
290
|
+
position: number;
|
|
291
|
+
/** Zero-based Unicode code-point selection endpoint. */
|
|
292
|
+
selection_end?: number | undefined;
|
|
293
|
+
}
|
|
294
|
+
/** Runtime validator for {@link ArtifactEditingCursor}. */
|
|
295
|
+
export declare const artifactEditingCursorSchema: z.ZodObject<{
|
|
296
|
+
/** Zero-based Unicode code-point position. */
|
|
297
|
+
position: z.ZodNumber;
|
|
298
|
+
/** Zero-based Unicode code-point selection endpoint. */
|
|
299
|
+
selection_end: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
}, "strip", z.ZodTypeAny, {
|
|
301
|
+
position: number;
|
|
302
|
+
selection_end?: number | undefined;
|
|
303
|
+
}, {
|
|
304
|
+
position: number;
|
|
305
|
+
selection_end?: number | undefined;
|
|
306
|
+
}>;
|
|
307
|
+
/** A server-issued collaborator identity and its ephemeral presence. */
|
|
308
|
+
export interface ArtifactEditingActor {
|
|
309
|
+
/** Opaque identity unique to this channel join. */
|
|
310
|
+
actor_id: string;
|
|
311
|
+
/** Current code-point cursor, or null. */
|
|
312
|
+
cursor?: ArtifactEditingCursor | null | undefined;
|
|
313
|
+
/** Server-derived collaborator display metadata. */
|
|
314
|
+
meta: Record<string, unknown>;
|
|
315
|
+
}
|
|
316
|
+
/** Runtime validator for {@link ArtifactEditingActor}. */
|
|
317
|
+
export declare const artifactEditingActorSchema: z.ZodObject<{
|
|
318
|
+
/** Opaque identity unique to this channel join. */
|
|
319
|
+
actor_id: z.ZodString;
|
|
320
|
+
/** Current code-point cursor, or null. */
|
|
321
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
322
|
+
/** Zero-based Unicode code-point position. */
|
|
323
|
+
position: z.ZodNumber;
|
|
324
|
+
/** Zero-based Unicode code-point selection endpoint. */
|
|
325
|
+
selection_end: z.ZodOptional<z.ZodNumber>;
|
|
326
|
+
}, "strip", z.ZodTypeAny, {
|
|
327
|
+
position: number;
|
|
328
|
+
selection_end?: number | undefined;
|
|
329
|
+
}, {
|
|
330
|
+
position: number;
|
|
331
|
+
selection_end?: number | undefined;
|
|
332
|
+
}>>>;
|
|
333
|
+
/** Server-derived collaborator display metadata. */
|
|
334
|
+
meta: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
335
|
+
}, "strip", z.ZodTypeAny, {
|
|
336
|
+
actor_id: string;
|
|
337
|
+
meta: Record<string, {} | null>;
|
|
338
|
+
cursor?: {
|
|
339
|
+
position: number;
|
|
340
|
+
selection_end?: number | undefined;
|
|
341
|
+
} | null | undefined;
|
|
342
|
+
}, {
|
|
343
|
+
actor_id: string;
|
|
344
|
+
meta: Record<string, {} | null>;
|
|
345
|
+
cursor?: {
|
|
346
|
+
position: number;
|
|
347
|
+
selection_end?: number | undefined;
|
|
348
|
+
} | null | undefined;
|
|
349
|
+
}>;
|
|
350
|
+
/** Confirms the exact live revision that reached durable ArtifactVersion storage. */
|
|
351
|
+
export interface ArtifactEditingCheckpointResponse {
|
|
352
|
+
/** New durable ArtifactVersion ID. */
|
|
353
|
+
artifact_version: string;
|
|
354
|
+
artifact_version_number: number;
|
|
355
|
+
checkpointed_revision: number;
|
|
356
|
+
/** True when later live operations remain unsaved. */
|
|
357
|
+
dirty: boolean;
|
|
358
|
+
incarnation: string;
|
|
359
|
+
}
|
|
360
|
+
/** Runtime validator for {@link ArtifactEditingCheckpointResponse}. */
|
|
361
|
+
export declare const artifactEditingCheckpointResponseSchema: z.ZodObject<{
|
|
362
|
+
/** New durable ArtifactVersion ID. */
|
|
363
|
+
artifact_version: z.ZodString;
|
|
364
|
+
artifact_version_number: z.ZodNumber;
|
|
365
|
+
checkpointed_revision: z.ZodNumber;
|
|
366
|
+
/** True when later live operations remain unsaved. */
|
|
367
|
+
dirty: z.ZodBoolean;
|
|
368
|
+
incarnation: z.ZodString;
|
|
369
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
dirty: boolean;
|
|
371
|
+
artifact_version: string;
|
|
372
|
+
artifact_version_number: number;
|
|
373
|
+
checkpointed_revision: number;
|
|
374
|
+
incarnation: string;
|
|
375
|
+
}, {
|
|
376
|
+
dirty: boolean;
|
|
377
|
+
artifact_version: string;
|
|
378
|
+
artifact_version_number: number;
|
|
379
|
+
checkpointed_revision: number;
|
|
380
|
+
incarnation: string;
|
|
381
|
+
}>;
|
|
382
|
+
/** Authoritative live Artifact snapshot returned by an editing-channel join. */
|
|
383
|
+
export interface ArtifactEditingJoinResponse {
|
|
384
|
+
/** Server-issued identity for this channel join. */
|
|
385
|
+
actor_id: string;
|
|
386
|
+
actors: ArtifactEditingActor[];
|
|
387
|
+
/** Public Artifact ID (`art_...`). */
|
|
388
|
+
artifact: string;
|
|
389
|
+
/** Durable version ID (`artv_...`). */
|
|
390
|
+
artifact_version: string;
|
|
391
|
+
artifact_version_number: number;
|
|
392
|
+
can_write: boolean;
|
|
393
|
+
/** Last durable-save failure reason, or null. */
|
|
394
|
+
checkpoint_error?: string | null | undefined;
|
|
395
|
+
/** Latest revision known durable. */
|
|
396
|
+
checkpointed_revision: number;
|
|
397
|
+
/** Server-issued connection identity. */
|
|
398
|
+
connection_id: string;
|
|
399
|
+
/** UTF-8 document content. */
|
|
400
|
+
content: string;
|
|
401
|
+
/** True while a live tail remains crash-loss exposed. */
|
|
402
|
+
dirty: boolean;
|
|
403
|
+
/** Opaque live-session fence token. */
|
|
404
|
+
incarnation: string;
|
|
405
|
+
/** Live OT revision in Unicode code points. */
|
|
406
|
+
revision: number;
|
|
407
|
+
}
|
|
408
|
+
/** Runtime validator for {@link ArtifactEditingJoinResponse}. */
|
|
409
|
+
export declare const artifactEditingJoinResponseSchema: z.ZodObject<{
|
|
410
|
+
/** Server-issued identity for this channel join. */
|
|
411
|
+
actor_id: z.ZodString;
|
|
412
|
+
actors: z.ZodArray<z.ZodObject<{
|
|
413
|
+
/** Opaque identity unique to this channel join. */
|
|
414
|
+
actor_id: z.ZodString;
|
|
415
|
+
/** Current code-point cursor, or null. */
|
|
416
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
417
|
+
/** Zero-based Unicode code-point position. */
|
|
418
|
+
position: z.ZodNumber;
|
|
419
|
+
/** Zero-based Unicode code-point selection endpoint. */
|
|
420
|
+
selection_end: z.ZodOptional<z.ZodNumber>;
|
|
421
|
+
}, "strip", z.ZodTypeAny, {
|
|
422
|
+
position: number;
|
|
423
|
+
selection_end?: number | undefined;
|
|
424
|
+
}, {
|
|
425
|
+
position: number;
|
|
426
|
+
selection_end?: number | undefined;
|
|
427
|
+
}>>>;
|
|
428
|
+
/** Server-derived collaborator display metadata. */
|
|
429
|
+
meta: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
430
|
+
}, "strip", z.ZodTypeAny, {
|
|
431
|
+
actor_id: string;
|
|
432
|
+
meta: Record<string, {} | null>;
|
|
433
|
+
cursor?: {
|
|
434
|
+
position: number;
|
|
435
|
+
selection_end?: number | undefined;
|
|
436
|
+
} | null | undefined;
|
|
437
|
+
}, {
|
|
438
|
+
actor_id: string;
|
|
439
|
+
meta: Record<string, {} | null>;
|
|
440
|
+
cursor?: {
|
|
441
|
+
position: number;
|
|
442
|
+
selection_end?: number | undefined;
|
|
443
|
+
} | null | undefined;
|
|
444
|
+
}>, "many">;
|
|
445
|
+
/** Public Artifact ID (`art_...`). */
|
|
446
|
+
artifact: z.ZodString;
|
|
447
|
+
/** Durable version ID (`artv_...`). */
|
|
448
|
+
artifact_version: z.ZodString;
|
|
449
|
+
artifact_version_number: z.ZodNumber;
|
|
450
|
+
can_write: z.ZodBoolean;
|
|
451
|
+
/** Last durable-save failure reason, or null. */
|
|
452
|
+
checkpoint_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
453
|
+
/** Latest revision known durable. */
|
|
454
|
+
checkpointed_revision: z.ZodNumber;
|
|
455
|
+
/** Server-issued connection identity. */
|
|
456
|
+
connection_id: z.ZodString;
|
|
457
|
+
/** UTF-8 document content. */
|
|
458
|
+
content: z.ZodString;
|
|
459
|
+
/** True while a live tail remains crash-loss exposed. */
|
|
460
|
+
dirty: z.ZodBoolean;
|
|
461
|
+
/** Opaque live-session fence token. */
|
|
462
|
+
incarnation: z.ZodString;
|
|
463
|
+
/** Live OT revision in Unicode code points. */
|
|
464
|
+
revision: z.ZodNumber;
|
|
465
|
+
}, "strip", z.ZodTypeAny, {
|
|
466
|
+
content: string;
|
|
467
|
+
dirty: boolean;
|
|
468
|
+
actors: {
|
|
469
|
+
actor_id: string;
|
|
470
|
+
meta: Record<string, {} | null>;
|
|
471
|
+
cursor?: {
|
|
472
|
+
position: number;
|
|
473
|
+
selection_end?: number | undefined;
|
|
474
|
+
} | null | undefined;
|
|
475
|
+
}[];
|
|
476
|
+
connection_id: string;
|
|
477
|
+
actor_id: string;
|
|
478
|
+
artifact_version: string;
|
|
479
|
+
artifact_version_number: number;
|
|
480
|
+
checkpointed_revision: number;
|
|
481
|
+
incarnation: string;
|
|
482
|
+
artifact: string;
|
|
483
|
+
can_write: boolean;
|
|
484
|
+
revision: number;
|
|
485
|
+
checkpoint_error?: string | null | undefined;
|
|
486
|
+
}, {
|
|
487
|
+
content: string;
|
|
488
|
+
dirty: boolean;
|
|
489
|
+
actors: {
|
|
490
|
+
actor_id: string;
|
|
491
|
+
meta: Record<string, {} | null>;
|
|
492
|
+
cursor?: {
|
|
493
|
+
position: number;
|
|
494
|
+
selection_end?: number | undefined;
|
|
495
|
+
} | null | undefined;
|
|
496
|
+
}[];
|
|
497
|
+
connection_id: string;
|
|
498
|
+
actor_id: string;
|
|
499
|
+
artifact_version: string;
|
|
500
|
+
artifact_version_number: number;
|
|
501
|
+
checkpointed_revision: number;
|
|
502
|
+
incarnation: string;
|
|
503
|
+
artifact: string;
|
|
504
|
+
can_write: boolean;
|
|
505
|
+
revision: number;
|
|
506
|
+
checkpoint_error?: string | null | undefined;
|
|
507
|
+
}>;
|
|
508
|
+
/** Acknowledges an operation only after the authoritative OT server applied it. */
|
|
509
|
+
export interface ArtifactEditingOperationAck {
|
|
510
|
+
/** Authoritative live revision after application. */
|
|
511
|
+
revision: number;
|
|
512
|
+
}
|
|
513
|
+
/** Runtime validator for {@link ArtifactEditingOperationAck}. */
|
|
514
|
+
export declare const artifactEditingOperationAckSchema: z.ZodObject<{
|
|
515
|
+
/** Authoritative live revision after application. */
|
|
516
|
+
revision: z.ZodNumber;
|
|
517
|
+
}, "strip", z.ZodTypeAny, {
|
|
518
|
+
revision: number;
|
|
519
|
+
}, {
|
|
520
|
+
revision: number;
|
|
521
|
+
}>;
|
|
171
522
|
//# sourceMappingURL=artifacts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../src/types/artifacts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../src/types/artifacts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,8GAA8G;AAC9G,MAAM,WAAW,QAAQ;IACvB,wOAAwO;IACxO,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7B,6FAA6F;IAC7F,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,kHAAkH;IAClH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,GAA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uCAAuC;;;;IAIvC,iDAAiD;;IAEjD,qCAAqC;;IAErC,yCAAyC;;IAEzC,8BAA8B;;IAE9B,yDAAyD;;IAEzD,uCAAuC;;IAEvC,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEwF,CAAC;AAE1I,mFAAmF;AACnF,MAAM,WAAW,2BAA2B;IAC1C,qDAAqD;IACrD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,iEAAiE;AACjE,eAAO,MAAM,iCAAiC;IAC5C,qDAAqD;;;;;;EAEqF,CAAC"}
|
package/dist/types/artifacts.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
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: 6ae93195aa02
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
import { aclSchema } from "./common.js";
|
|
5
6
|
import { imageSourceSchema } from "./image.js";
|
|
6
7
|
/** Runtime validator for {@link Artifact}. */
|
|
7
8
|
export const artifactSchema = z.object({
|
|
9
|
+
/** Access control list for the artifact. Contains a `grants` array where each entry specifies `principal_type`, `principal`, and `actions` (`read`, `write`). `null` when the artifact has no grants or the viewer is not its owner. */
|
|
10
|
+
acl: aclSchema.nullable().optional().describe("Access control list for the artifact. Contains a `grants` array where each entry specifies `principal_type`, `principal`, and `actions` (`read`, `write`). `null` when the artifact has no grants or the viewer is not its owner."),
|
|
8
11
|
/** ID of the agent that produced this artifact (`agt_...`). `null` if not agent-produced. */
|
|
9
12
|
agent: z.string().optional().describe("ID of the agent that produced this artifact (`agt_...`). `null` if not agent-produced."),
|
|
10
13
|
/** MIME type of the current version's file, e.g. `"text/csv"` or `"image/png"`. `null` if no file is attached. */
|
|
@@ -46,4 +49,65 @@ export const artifactSchema = z.object({
|
|
|
46
49
|
/** Current version number of the artifact. Increments each time a new version is published. */
|
|
47
50
|
version: z.number().int().optional().describe("Current version number of the artifact. Increments each time a new version is published."),
|
|
48
51
|
}).describe("A versioned artifact produced or managed by an agent, such as a generated file, report, or code output.");
|
|
52
|
+
/** Runtime validator for {@link ArtifactEditingAck}. */
|
|
53
|
+
export const artifactEditingAckSchema = z.object({
|
|
54
|
+
ok: z.boolean(),
|
|
55
|
+
}).describe("Acknowledges an Artifact editing presence or leave request.");
|
|
56
|
+
/** Runtime validator for {@link ArtifactEditingCursor}. */
|
|
57
|
+
export const artifactEditingCursorSchema = z.object({
|
|
58
|
+
/** Zero-based Unicode code-point position. */
|
|
59
|
+
position: z.number().int().describe("Zero-based Unicode code-point position."),
|
|
60
|
+
/** Zero-based Unicode code-point selection endpoint. */
|
|
61
|
+
selection_end: z.number().int().optional().describe("Zero-based Unicode code-point selection endpoint."),
|
|
62
|
+
}).describe("A Unicode code-point cursor and optional selection endpoint.");
|
|
63
|
+
/** Runtime validator for {@link ArtifactEditingActor}. */
|
|
64
|
+
export const artifactEditingActorSchema = z.object({
|
|
65
|
+
/** Opaque identity unique to this channel join. */
|
|
66
|
+
actor_id: z.string().describe("Opaque identity unique to this channel join."),
|
|
67
|
+
/** Current code-point cursor, or null. */
|
|
68
|
+
cursor: artifactEditingCursorSchema.nullable().optional().describe("Current code-point cursor, or null."),
|
|
69
|
+
/** Server-derived collaborator display metadata. */
|
|
70
|
+
meta: z.record(z.custom((value) => value !== undefined)).describe("Server-derived collaborator display metadata."),
|
|
71
|
+
}).describe("A server-issued collaborator identity and its ephemeral presence.");
|
|
72
|
+
/** Runtime validator for {@link ArtifactEditingCheckpointResponse}. */
|
|
73
|
+
export const artifactEditingCheckpointResponseSchema = z.object({
|
|
74
|
+
/** New durable ArtifactVersion ID. */
|
|
75
|
+
artifact_version: z.string().describe("New durable ArtifactVersion ID."),
|
|
76
|
+
artifact_version_number: z.number().int(),
|
|
77
|
+
checkpointed_revision: z.number().int(),
|
|
78
|
+
/** True when later live operations remain unsaved. */
|
|
79
|
+
dirty: z.boolean().describe("True when later live operations remain unsaved."),
|
|
80
|
+
incarnation: z.string(),
|
|
81
|
+
}).describe("Confirms the exact live revision that reached durable ArtifactVersion storage.");
|
|
82
|
+
/** Runtime validator for {@link ArtifactEditingJoinResponse}. */
|
|
83
|
+
export const artifactEditingJoinResponseSchema = z.object({
|
|
84
|
+
/** Server-issued identity for this channel join. */
|
|
85
|
+
actor_id: z.string().describe("Server-issued identity for this channel join."),
|
|
86
|
+
actors: z.array(artifactEditingActorSchema),
|
|
87
|
+
/** Public Artifact ID (`art_...`). */
|
|
88
|
+
artifact: z.string().describe("Public Artifact ID (`art_...`)."),
|
|
89
|
+
/** Durable version ID (`artv_...`). */
|
|
90
|
+
artifact_version: z.string().describe("Durable version ID (`artv_...`)."),
|
|
91
|
+
artifact_version_number: z.number().int(),
|
|
92
|
+
can_write: z.boolean(),
|
|
93
|
+
/** Last durable-save failure reason, or null. */
|
|
94
|
+
checkpoint_error: z.string().nullable().optional().describe("Last durable-save failure reason, or null."),
|
|
95
|
+
/** Latest revision known durable. */
|
|
96
|
+
checkpointed_revision: z.number().int().describe("Latest revision known durable."),
|
|
97
|
+
/** Server-issued connection identity. */
|
|
98
|
+
connection_id: z.string().describe("Server-issued connection identity."),
|
|
99
|
+
/** UTF-8 document content. */
|
|
100
|
+
content: z.string().describe("UTF-8 document content."),
|
|
101
|
+
/** True while a live tail remains crash-loss exposed. */
|
|
102
|
+
dirty: z.boolean().describe("True while a live tail remains crash-loss exposed."),
|
|
103
|
+
/** Opaque live-session fence token. */
|
|
104
|
+
incarnation: z.string().describe("Opaque live-session fence token."),
|
|
105
|
+
/** Live OT revision in Unicode code points. */
|
|
106
|
+
revision: z.number().int().describe("Live OT revision in Unicode code points."),
|
|
107
|
+
}).describe("Authoritative live Artifact snapshot returned by an editing-channel join.");
|
|
108
|
+
/** Runtime validator for {@link ArtifactEditingOperationAck}. */
|
|
109
|
+
export const artifactEditingOperationAckSchema = z.object({
|
|
110
|
+
/** Authoritative live revision after application. */
|
|
111
|
+
revision: z.number().int().describe("Authoritative live revision after application."),
|
|
112
|
+
}).describe("Acknowledges an operation only after the authoritative OT server applied it.");
|
|
49
113
|
//# sourceMappingURL=artifacts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../src/types/artifacts.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../src/types/artifacts.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAkD/C,8CAA8C;AAC9C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,wOAAwO;IACxO,GAAG,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,mOAAmO,CAAC;IAClR,6FAA6F;IAC7F,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,wFAAwF,CAAC;IAC/H,kHAAkH;IAClH,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iHAAiH,CAAC;IAC/J,sDAAsD;IACtD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iDAAiD,CAAC;IAC7F,mHAAmH;IACnH,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE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QAAQ,CAAC,8EAA8E,CAAkD,CAAC"}
|
|
@@ -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;
|
|
67
|
+
participants?: Record<string, unknown> | null | undefined;
|
|
68
68
|
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
|
|
69
69
|
payload?: Record<string, unknown> | undefined;
|
|
70
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;
|
|
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
|
|
94
|
+
participants: z.ZodOptional<z.ZodNullable<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
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.ZodType<{} | null, z.ZodTypeDef, {} | null
|
|
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,4IAA4I;AAC5I,MAAM,WAAW,yBAAyB;IACxC,gGAAgG;IAChG,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,4IAA4I;IAC5I,IAAI,EAAE,MAAM,CAAC;IACb,wGAAwG;IACxG,QAAQ,EAAE,OAAO,CAAC;IAClB,yIAAyI;IACzI,IAAI,EAAE,MAAM,CAAC;CACd;AAED,+DAA+D;AAC/D,eAAO,MAAM,+BAA+B;IAC1C,gGAAgG;;IAEhG,4IAA4I;;IAE5I,wGAAwG;;IAExG,yIAAyI;;;;;;;;;;;;EAEwD,CAAC;AAEpM,8EAA8E;AAC9E,MAAM,WAAW,kBAAkB;IACjC,mHAAmH;IACnH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IACnD,0JAA0J;IAC1J,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;CAC/C;AAED,wDAAwD;AACxD,eAAO,MAAM,wBAAwB;IACnC,mHAAmH;;IAEnH,0JAA0J;;;;;;;;EAE9B,CAAC;AAE/H,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,
|
|
1
|
+
{"version":3,"file":"automations.d.ts","sourceRoot":"","sources":["../../src/types/automations.ts"],"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AC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAC9C,0KAA0K;IAC1K,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD,qPAAqP;IACrP,MAAM,EAAE,MAAM,CAAC;IACf,8GAA8G;IAC9G,IAAI,CAAC,EAAE,MAAM,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,oJAAoJ;;IAEpJ,0KAA0K;;IAE1K,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: 810d52f31fad
|
|
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."),
|
|
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
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
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.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."),
|
|
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."),
|
|
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
|