@archastro/sdk 0.5.2 → 0.5.3
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/README.md +86 -0
- package/dist/auth.d.ts +143 -0
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +187 -1
- package/dist/auth.js.map +1 -1
- package/dist/client.d.ts +26 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +27 -1
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/types/ai.d.ts +150 -12
- package/dist/types/ai.d.ts.map +1 -1
- package/dist/types/ai.js +71 -41
- package/dist/types/ai.js.map +1 -1
- package/dist/types/artifacts.d.ts +81 -24
- package/dist/types/artifacts.d.ts.map +1 -1
- package/dist/types/artifacts.js +39 -21
- package/dist/types/artifacts.js.map +1 -1
- package/dist/types/automations.d.ts +41 -9
- package/dist/types/automations.d.ts.map +1 -1
- package/dist/types/automations.js +25 -17
- package/dist/types/automations.js.map +1 -1
- package/dist/types/chat.d.ts +21418 -0
- package/dist/types/chat.d.ts.map +1 -0
- package/dist/types/chat.js +70 -0
- package/dist/types/chat.js.map +1 -0
- package/dist/types/common.d.ts +16970 -2136
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +1695 -332
- package/dist/types/common.js.map +1 -1
- package/dist/types/config.d.ts +239 -31
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +86 -34
- package/dist/types/config.js.map +1 -1
- package/dist/types/image.d.ts +27 -4
- package/dist/types/image.d.ts.map +1 -1
- package/dist/types/image.js +17 -10
- package/dist/types/image.js.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/invites.d.ts +20 -11
- package/dist/types/invites.d.ts.map +1 -1
- package/dist/types/invites.js +9 -12
- package/dist/types/invites.js.map +1 -1
- package/dist/types/notifications.d.ts +163 -0
- package/dist/types/notifications.d.ts.map +1 -0
- package/dist/types/notifications.js +44 -0
- package/dist/types/notifications.js.map +1 -0
- package/dist/types/teams.d.ts +1628 -231
- package/dist/types/teams.d.ts.map +1 -1
- package/dist/types/teams.js +76 -45
- package/dist/types/teams.js.map +1 -1
- package/dist/types/threads.d.ts +997 -243
- package/dist/types/threads.d.ts.map +1 -1
- package/dist/types/threads.js +84 -51
- package/dist/types/threads.js.map +1 -1
- package/dist/types/users.d.ts +98 -18
- package/dist/types/users.d.ts.map +1 -1
- package/dist/types/users.js +43 -18
- package/dist/types/users.js.map +1 -1
- package/dist/v1/resources/activity_feed.d.ts +89 -0
- package/dist/v1/resources/activity_feed.d.ts.map +1 -1
- package/dist/v1/resources/activity_feed.js +56 -2
- package/dist/v1/resources/activity_feed.js.map +1 -1
- package/dist/v1/resources/agent_computers.d.ts +48 -2
- package/dist/v1/resources/agent_computers.d.ts.map +1 -1
- package/dist/v1/resources/agent_computers.js +48 -1
- package/dist/v1/resources/agent_computers.js.map +1 -1
- package/dist/v1/resources/agent_env_vars.d.ts +50 -0
- package/dist/v1/resources/agent_env_vars.d.ts.map +1 -0
- package/dist/v1/resources/agent_env_vars.js +56 -0
- package/dist/v1/resources/agent_env_vars.js.map +1 -0
- package/dist/v1/resources/agent_health_actions.d.ts +43 -0
- package/dist/v1/resources/agent_health_actions.d.ts.map +1 -0
- package/dist/v1/resources/agent_health_actions.js +50 -0
- package/dist/v1/resources/agent_health_actions.js.map +1 -0
- package/dist/v1/resources/agent_installations.d.ts +100 -0
- package/dist/v1/resources/agent_installations.d.ts.map +1 -1
- package/dist/v1/resources/agent_installations.js +106 -2
- package/dist/v1/resources/agent_installations.js.map +1 -1
- package/dist/v1/resources/agent_routine_runs.d.ts +33 -0
- package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -0
- package/dist/v1/resources/agent_routine_runs.js +48 -0
- package/dist/v1/resources/agent_routine_runs.js.map +1 -0
- package/dist/v1/resources/agent_routines.d.ts +148 -2
- package/dist/v1/resources/agent_routines.d.ts.map +1 -1
- package/dist/v1/resources/agent_routines.js +168 -3
- package/dist/v1/resources/agent_routines.js.map +1 -1
- package/dist/v1/resources/agent_sessions.d.ts +118 -1
- package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
- package/dist/v1/resources/agent_sessions.js +134 -2
- package/dist/v1/resources/agent_sessions.js.map +1 -1
- package/dist/v1/resources/agent_skills.d.ts +83 -1
- package/dist/v1/resources/agent_skills.d.ts.map +1 -1
- package/dist/v1/resources/agent_skills.js +87 -2
- package/dist/v1/resources/agent_skills.js.map +1 -1
- package/dist/v1/resources/agent_tools.d.ts +109 -2
- package/dist/v1/resources/agent_tools.d.ts.map +1 -1
- package/dist/v1/resources/agent_tools.js +114 -2
- package/dist/v1/resources/agent_tools.js.map +1 -1
- package/dist/v1/resources/agents.d.ts +517 -9
- package/dist/v1/resources/agents.d.ts.map +1 -1
- package/dist/v1/resources/agents.js +515 -12
- package/dist/v1/resources/agents.js.map +1 -1
- package/dist/v1/resources/ai.d.ts +93 -0
- package/dist/v1/resources/ai.d.ts.map +1 -1
- package/dist/v1/resources/ai.js +89 -1
- package/dist/v1/resources/ai.js.map +1 -1
- package/dist/v1/resources/artifacts.d.ts +73 -0
- package/dist/v1/resources/artifacts.d.ts.map +1 -1
- package/dist/v1/resources/artifacts.js +74 -2
- package/dist/v1/resources/artifacts.js.map +1 -1
- package/dist/v1/resources/automation_runs.d.ts +8 -4
- package/dist/v1/resources/automation_runs.d.ts.map +1 -1
- package/dist/v1/resources/automation_runs.js +9 -5
- package/dist/v1/resources/automation_runs.js.map +1 -1
- package/dist/v1/resources/automations.d.ts +20 -0
- package/dist/v1/resources/automations.d.ts.map +1 -1
- package/dist/v1/resources/automations.js +21 -1
- package/dist/v1/resources/automations.js.map +1 -1
- package/dist/v1/resources/bug_reports.d.ts +29 -0
- package/dist/v1/resources/bug_reports.d.ts.map +1 -0
- package/dist/v1/resources/bug_reports.js +29 -0
- package/dist/v1/resources/bug_reports.js.map +1 -0
- package/dist/v1/resources/config.d.ts +429 -4
- package/dist/v1/resources/config.d.ts.map +1 -1
- package/dist/v1/resources/config.js +493 -9
- package/dist/v1/resources/config.js.map +1 -1
- package/dist/v1/resources/custom_objects.d.ts +117 -2
- package/dist/v1/resources/custom_objects.d.ts.map +1 -1
- package/dist/v1/resources/custom_objects.js +132 -3
- package/dist/v1/resources/custom_objects.js.map +1 -1
- package/dist/v1/resources/files.d.ts +62 -0
- package/dist/v1/resources/files.d.ts.map +1 -0
- package/dist/v1/resources/files.js +58 -0
- package/dist/v1/resources/files.js.map +1 -0
- package/dist/v1/resources/index.d.ts +13 -0
- package/dist/v1/resources/index.d.ts.map +1 -1
- package/dist/v1/resources/index.js +14 -1
- package/dist/v1/resources/index.js.map +1 -1
- package/dist/v1/resources/installation_sources.d.ts +12 -0
- package/dist/v1/resources/installation_sources.d.ts.map +1 -1
- package/dist/v1/resources/installation_sources.js +13 -1
- package/dist/v1/resources/installation_sources.js.map +1 -1
- package/dist/v1/resources/invites.d.ts +15 -0
- package/dist/v1/resources/invites.d.ts.map +1 -1
- package/dist/v1/resources/invites.js +16 -1
- package/dist/v1/resources/invites.js.map +1 -1
- package/dist/v1/resources/knowledge_documents.d.ts +104 -0
- package/dist/v1/resources/knowledge_documents.d.ts.map +1 -0
- package/dist/v1/resources/knowledge_documents.js +112 -0
- package/dist/v1/resources/knowledge_documents.js.map +1 -0
- package/dist/v1/resources/knowledge_sources.d.ts +190 -0
- package/dist/v1/resources/knowledge_sources.d.ts.map +1 -0
- package/dist/v1/resources/knowledge_sources.js +176 -0
- package/dist/v1/resources/knowledge_sources.js.map +1 -0
- package/dist/v1/resources/kv.d.ts +73 -0
- package/dist/v1/resources/kv.d.ts.map +1 -1
- package/dist/v1/resources/kv.js +96 -3
- package/dist/v1/resources/kv.js.map +1 -1
- package/dist/v1/resources/notification_preferences.d.ts +61 -0
- package/dist/v1/resources/notification_preferences.d.ts.map +1 -0
- package/dist/v1/resources/notification_preferences.js +65 -0
- package/dist/v1/resources/notification_preferences.js.map +1 -0
- package/dist/v1/resources/notifications.d.ts +133 -0
- package/dist/v1/resources/notifications.d.ts.map +1 -0
- package/dist/v1/resources/notifications.js +136 -0
- package/dist/v1/resources/notifications.js.map +1 -0
- package/dist/v1/resources/orgs.d.ts +18 -0
- package/dist/v1/resources/orgs.d.ts.map +1 -1
- package/dist/v1/resources/orgs.js +30 -2
- package/dist/v1/resources/orgs.js.map +1 -1
- package/dist/v1/resources/slack_channel_bindings.d.ts +101 -0
- package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -0
- package/dist/v1/resources/slack_channel_bindings.js +114 -0
- package/dist/v1/resources/slack_channel_bindings.js.map +1 -0
- package/dist/v1/resources/solution_categories.d.ts +36 -0
- package/dist/v1/resources/solution_categories.d.ts.map +1 -0
- package/dist/v1/resources/solution_categories.js +55 -0
- package/dist/v1/resources/solution_categories.js.map +1 -0
- package/dist/v1/resources/solution_tags.d.ts +37 -0
- package/dist/v1/resources/solution_tags.d.ts.map +1 -0
- package/dist/v1/resources/solution_tags.js +54 -0
- package/dist/v1/resources/solution_tags.js.map +1 -0
- package/dist/v1/resources/solutions.d.ts +309 -0
- package/dist/v1/resources/solutions.d.ts.map +1 -0
- package/dist/v1/resources/solutions.js +214 -0
- package/dist/v1/resources/solutions.js.map +1 -0
- package/dist/v1/resources/team_memberships.d.ts +31 -0
- package/dist/v1/resources/team_memberships.d.ts.map +1 -1
- package/dist/v1/resources/team_memberships.js +49 -2
- package/dist/v1/resources/team_memberships.js.map +1 -1
- package/dist/v1/resources/teams.d.ts +458 -49
- package/dist/v1/resources/teams.d.ts.map +1 -1
- package/dist/v1/resources/teams.js +319 -27
- package/dist/v1/resources/teams.js.map +1 -1
- package/dist/v1/resources/thread_messages.d.ts +70 -0
- package/dist/v1/resources/thread_messages.d.ts.map +1 -1
- package/dist/v1/resources/thread_messages.js +85 -2
- package/dist/v1/resources/thread_messages.js.map +1 -1
- package/dist/v1/resources/threads.d.ts +201 -0
- package/dist/v1/resources/threads.d.ts.map +1 -1
- package/dist/v1/resources/threads.js +220 -4
- package/dist/v1/resources/threads.js.map +1 -1
- package/dist/v1/resources/users.d.ts +213 -39
- package/dist/v1/resources/users.d.ts.map +1 -1
- package/dist/v1/resources/users.js +121 -16
- package/dist/v1/resources/users.js.map +1 -1
- package/dist/v1.d.ts +26 -0
- package/dist/v1.d.ts.map +1 -1
- package/dist/v1.js +40 -1
- package/dist/v1.js.map +1 -1
- package/package.json +3 -1
- package/dist/types/agents.d.ts +0 -2084
- package/dist/types/agents.d.ts.map +0 -1
- package/dist/types/agents.js +0 -203
- package/dist/types/agents.js.map +0 -1
|
@@ -1,15 +1,65 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
2
|
+
import type { ImageSource } from "./image.js";
|
|
3
|
+
/** A versioned artifact produced or managed by an agent, such as a generated file, report, or code output. */
|
|
4
|
+
export interface Artifact {
|
|
5
|
+
/** ID of the agent that produced this artifact (`agt_...`). `null` if not agent-produced. */
|
|
6
|
+
agent?: string | undefined;
|
|
7
|
+
/** MIME type of the current version's file, e.g. `"text/csv"` or `"image/png"`. `null` if no file is attached. */
|
|
8
|
+
content_type?: string | undefined;
|
|
9
|
+
/** When the artifact was first created (ISO 8601). */
|
|
10
|
+
created_at?: string | undefined;
|
|
11
|
+
/** ID of the current (latest published) artifact version (`artv_...`). `null` if no version has been published. */
|
|
12
|
+
current_version?: string | undefined;
|
|
13
|
+
/** Optional longer description of the artifact's contents or purpose. `null` if not set. */
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
/** Storage file ID for the current version (`fil_...`). `null` if no file is attached. */
|
|
16
|
+
file?: string | undefined;
|
|
17
|
+
/** Original filename of the current version's file, e.g. `"output.csv"`. `null` if no file is attached. */
|
|
18
|
+
file_name?: string | undefined;
|
|
19
|
+
/** Short-lived signed URL for downloading the current version's file. `null` if no file is attached. */
|
|
20
|
+
file_url?: string | undefined;
|
|
21
|
+
/** Artifact ID (`art_...`). */
|
|
22
|
+
id: string;
|
|
23
|
+
/** Image source metadata for rendering the current version's file inline. Present only when `content_type` starts with `"image/"`. `null` otherwise. */
|
|
24
|
+
image_source?: ImageSource | undefined;
|
|
25
|
+
/** Human-readable name for the artifact, e.g. `"Q2 Report"`. `null` if not set. */
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
/** ID of the organization this artifact belongs to (`org_...`). */
|
|
28
|
+
org?: string | undefined;
|
|
29
|
+
/** Identifier of the sandbox environment associated with this artifact. `null` if not sandbox-scoped. */
|
|
30
|
+
sandbox?: string | undefined;
|
|
31
|
+
/** ID of the team that owns this artifact (`tea_...`). `null` if not team-scoped. */
|
|
32
|
+
team?: string | undefined;
|
|
33
|
+
/** ID of the thread in which this artifact was created (`thr_...`). `null` if not thread-scoped. */
|
|
34
|
+
thread?: string | undefined;
|
|
35
|
+
/** When the artifact record was last modified (ISO 8601). */
|
|
36
|
+
updated_at?: string | undefined;
|
|
37
|
+
/** ID of the user who created this artifact (`usr_...`). `null` if not user-scoped. */
|
|
38
|
+
user?: string | undefined;
|
|
39
|
+
/** Current version number of the artifact. Increments each time a new version is published. */
|
|
40
|
+
version?: number | undefined;
|
|
41
|
+
}
|
|
42
|
+
/** Runtime validator for {@link Artifact}. */
|
|
3
43
|
export declare const artifactSchema: z.ZodObject<{
|
|
44
|
+
/** ID of the agent that produced this artifact (`agt_...`). `null` if not agent-produced. */
|
|
4
45
|
agent: z.ZodOptional<z.ZodString>;
|
|
46
|
+
/** MIME type of the current version's file, e.g. `"text/csv"` or `"image/png"`. `null` if no file is attached. */
|
|
5
47
|
content_type: z.ZodOptional<z.ZodString>;
|
|
48
|
+
/** When the artifact was first created (ISO 8601). */
|
|
6
49
|
created_at: z.ZodOptional<z.ZodString>;
|
|
50
|
+
/** ID of the current (latest published) artifact version (`artv_...`). `null` if no version has been published. */
|
|
7
51
|
current_version: z.ZodOptional<z.ZodString>;
|
|
52
|
+
/** Optional longer description of the artifact's contents or purpose. `null` if not set. */
|
|
8
53
|
description: z.ZodOptional<z.ZodString>;
|
|
54
|
+
/** Storage file ID for the current version (`fil_...`). `null` if no file is attached. */
|
|
9
55
|
file: z.ZodOptional<z.ZodString>;
|
|
56
|
+
/** Original filename of the current version's file, e.g. `"output.csv"`. `null` if no file is attached. */
|
|
10
57
|
file_name: z.ZodOptional<z.ZodString>;
|
|
58
|
+
/** Short-lived signed URL for downloading the current version's file. `null` if no file is attached. */
|
|
11
59
|
file_url: z.ZodOptional<z.ZodString>;
|
|
60
|
+
/** Artifact ID (`art_...`). */
|
|
12
61
|
id: z.ZodString;
|
|
62
|
+
/** Image source metadata for rendering the current version's file inline. Present only when `content_type` starts with `"image/"`. `null` otherwise. */
|
|
13
63
|
image_source: z.ZodOptional<z.ZodObject<{
|
|
14
64
|
file: z.ZodOptional<z.ZodString>;
|
|
15
65
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -19,84 +69,91 @@ export declare const artifactSchema: z.ZodObject<{
|
|
|
19
69
|
url: z.ZodOptional<z.ZodString>;
|
|
20
70
|
width: z.ZodOptional<z.ZodNumber>;
|
|
21
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
mime_type?: string | undefined;
|
|
22
73
|
file?: string | undefined;
|
|
23
74
|
height?: number | undefined;
|
|
24
75
|
media?: string | undefined;
|
|
25
|
-
mime_type?: string | undefined;
|
|
26
76
|
refresh_url?: string | undefined;
|
|
27
77
|
url?: string | undefined;
|
|
28
78
|
width?: number | undefined;
|
|
29
79
|
}, {
|
|
80
|
+
mime_type?: string | undefined;
|
|
30
81
|
file?: string | undefined;
|
|
31
82
|
height?: number | undefined;
|
|
32
83
|
media?: string | undefined;
|
|
33
|
-
mime_type?: string | undefined;
|
|
34
84
|
refresh_url?: string | undefined;
|
|
35
85
|
url?: string | undefined;
|
|
36
86
|
width?: number | undefined;
|
|
37
87
|
}>>;
|
|
88
|
+
/** Human-readable name for the artifact, e.g. `"Q2 Report"`. `null` if not set. */
|
|
38
89
|
name: z.ZodOptional<z.ZodString>;
|
|
90
|
+
/** ID of the organization this artifact belongs to (`org_...`). */
|
|
39
91
|
org: z.ZodOptional<z.ZodString>;
|
|
92
|
+
/** Identifier of the sandbox environment associated with this artifact. `null` if not sandbox-scoped. */
|
|
40
93
|
sandbox: z.ZodOptional<z.ZodString>;
|
|
94
|
+
/** ID of the team that owns this artifact (`tea_...`). `null` if not team-scoped. */
|
|
41
95
|
team: z.ZodOptional<z.ZodString>;
|
|
96
|
+
/** ID of the thread in which this artifact was created (`thr_...`). `null` if not thread-scoped. */
|
|
42
97
|
thread: z.ZodOptional<z.ZodString>;
|
|
98
|
+
/** When the artifact record was last modified (ISO 8601). */
|
|
43
99
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
100
|
+
/** ID of the user who created this artifact (`usr_...`). `null` if not user-scoped. */
|
|
44
101
|
user: z.ZodOptional<z.ZodString>;
|
|
102
|
+
/** Current version number of the artifact. Increments each time a new version is published. */
|
|
45
103
|
version: z.ZodOptional<z.ZodNumber>;
|
|
46
104
|
}, "strip", z.ZodTypeAny, {
|
|
47
105
|
id: string;
|
|
48
|
-
|
|
49
|
-
|
|
106
|
+
agent?: string | undefined;
|
|
107
|
+
thread?: string | undefined;
|
|
108
|
+
team?: string | undefined;
|
|
50
109
|
org?: string | undefined;
|
|
51
|
-
sandbox?: string | undefined;
|
|
52
110
|
created_at?: string | undefined;
|
|
53
|
-
|
|
111
|
+
sandbox?: string | undefined;
|
|
112
|
+
current_version?: string | undefined;
|
|
113
|
+
updated_at?: string | undefined;
|
|
54
114
|
user?: string | undefined;
|
|
115
|
+
file?: string | undefined;
|
|
116
|
+
name?: string | undefined;
|
|
117
|
+
description?: string | undefined;
|
|
55
118
|
content_type?: string | undefined;
|
|
56
119
|
image_source?: {
|
|
120
|
+
mime_type?: string | undefined;
|
|
57
121
|
file?: string | undefined;
|
|
58
122
|
height?: number | undefined;
|
|
59
123
|
media?: string | undefined;
|
|
60
|
-
mime_type?: string | undefined;
|
|
61
124
|
refresh_url?: string | undefined;
|
|
62
125
|
url?: string | undefined;
|
|
63
126
|
width?: number | undefined;
|
|
64
127
|
} | undefined;
|
|
65
|
-
updated_at?: string | undefined;
|
|
66
|
-
description?: string | undefined;
|
|
67
128
|
version?: number | undefined;
|
|
68
|
-
team?: string | undefined;
|
|
69
|
-
agent?: string | undefined;
|
|
70
|
-
current_version?: string | undefined;
|
|
71
129
|
file_name?: string | undefined;
|
|
72
130
|
file_url?: string | undefined;
|
|
73
131
|
}, {
|
|
74
132
|
id: string;
|
|
75
|
-
|
|
76
|
-
|
|
133
|
+
agent?: string | undefined;
|
|
134
|
+
thread?: string | undefined;
|
|
135
|
+
team?: string | undefined;
|
|
77
136
|
org?: string | undefined;
|
|
78
|
-
sandbox?: string | undefined;
|
|
79
137
|
created_at?: string | undefined;
|
|
80
|
-
|
|
138
|
+
sandbox?: string | undefined;
|
|
139
|
+
current_version?: string | undefined;
|
|
140
|
+
updated_at?: string | undefined;
|
|
81
141
|
user?: string | undefined;
|
|
142
|
+
file?: string | undefined;
|
|
143
|
+
name?: string | undefined;
|
|
144
|
+
description?: string | undefined;
|
|
82
145
|
content_type?: string | undefined;
|
|
83
146
|
image_source?: {
|
|
147
|
+
mime_type?: string | undefined;
|
|
84
148
|
file?: string | undefined;
|
|
85
149
|
height?: number | undefined;
|
|
86
150
|
media?: string | undefined;
|
|
87
|
-
mime_type?: string | undefined;
|
|
88
151
|
refresh_url?: string | undefined;
|
|
89
152
|
url?: string | undefined;
|
|
90
153
|
width?: number | undefined;
|
|
91
154
|
} | undefined;
|
|
92
|
-
updated_at?: string | undefined;
|
|
93
|
-
description?: string | undefined;
|
|
94
155
|
version?: number | undefined;
|
|
95
|
-
team?: string | undefined;
|
|
96
|
-
agent?: string | undefined;
|
|
97
|
-
current_version?: string | undefined;
|
|
98
156
|
file_name?: string | undefined;
|
|
99
157
|
file_url?: string | undefined;
|
|
100
158
|
}>;
|
|
101
|
-
export type Artifact = z.infer<typeof artifactSchema>;
|
|
102
159
|
//# 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;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,8GAA8G;AAC9G,MAAM,WAAW,QAAQ;IACvB,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,GAAG,SAAS,CAAC;IAChC,mHAAmH;IACnH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,4FAA4F;IAC5F,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,0FAA0F;IAC1F,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,2GAA2G;IAC3G,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,wGAAwG;IACxG,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,+BAA+B;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,wJAAwJ;IACxJ,YAAY,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACvC,mFAAmF;IACnF,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,mEAAmE;IACnE,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,yGAAyG;IACzG,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,oGAAoG;IACpG,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,6DAA6D;IAC7D,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,+FAA+F;IAC/F,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED,8CAA8C;AAC9C,eAAO,MAAM,cAAc;IACzB,6FAA6F;;IAE7F,kHAAkH;;IAElH,sDAAsD;;IAEtD,mHAAmH;;IAEnH,4FAA4F;;IAE5F,0FAA0F;;IAE1F,2GAA2G;;IAE3G,wGAAwG;;IAExG,+BAA+B;;IAE/B,wJAAwJ;;;;;;;;;;;;;;;;;;;;;;;;;;IAExJ,mFAAmF;;IAEnF,mEAAmE;;IAEnE,yGAAyG;;IAEzG,qFAAqF;;IAErF,oGAAoG;;IAEpG,6DAA6D;;IAE7D,uFAAuF;;IAEvF,+FAA+F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEmD,CAAC"}
|
package/dist/types/artifacts.js
CHANGED
|
@@ -1,27 +1,45 @@
|
|
|
1
1
|
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: bcb128cc379a
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { imageSourceSchema } from "./image.js";
|
|
6
|
-
/**
|
|
6
|
+
/** Runtime validator for {@link Artifact}. */
|
|
7
7
|
export const artifactSchema = z.object({
|
|
8
|
-
agent
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
8
|
+
/** ID of the agent that produced this artifact (`agt_...`). `null` if not agent-produced. */
|
|
9
|
+
agent: z.string().optional().describe("ID of the agent that produced this artifact (`agt_...`). `null` if not agent-produced."),
|
|
10
|
+
/** MIME type of the current version's file, e.g. `"text/csv"` or `"image/png"`. `null` if no file is attached. */
|
|
11
|
+
content_type: z.string().optional().describe("MIME type of the current version's file, e.g. `\"text/csv\"` or `\"image/png\"`. `null` if no file is attached."),
|
|
12
|
+
/** When the artifact was first created (ISO 8601). */
|
|
13
|
+
created_at: z.string().optional().describe("When the artifact was first created (ISO 8601)."),
|
|
14
|
+
/** ID of the current (latest published) artifact version (`artv_...`). `null` if no version has been published. */
|
|
15
|
+
current_version: z.string().optional().describe("ID of the current (latest published) artifact version (`artv_...`). `null` if no version has been published."),
|
|
16
|
+
/** Optional longer description of the artifact's contents or purpose. `null` if not set. */
|
|
17
|
+
description: z.string().optional().describe("Optional longer description of the artifact's contents or purpose. `null` if not set."),
|
|
18
|
+
/** Storage file ID for the current version (`fil_...`). `null` if no file is attached. */
|
|
19
|
+
file: z.string().optional().describe("Storage file ID for the current version (`fil_...`). `null` if no file is attached."),
|
|
20
|
+
/** Original filename of the current version's file, e.g. `"output.csv"`. `null` if no file is attached. */
|
|
21
|
+
file_name: z.string().optional().describe("Original filename of the current version's file, e.g. `\"output.csv\"`. `null` if no file is attached."),
|
|
22
|
+
/** Short-lived signed URL for downloading the current version's file. `null` if no file is attached. */
|
|
23
|
+
file_url: z.string().optional().describe("Short-lived signed URL for downloading the current version's file. `null` if no file is attached."),
|
|
24
|
+
/** Artifact ID (`art_...`). */
|
|
25
|
+
id: z.string().describe("Artifact ID (`art_...`)."),
|
|
26
|
+
/** Image source metadata for rendering the current version's file inline. Present only when `content_type` starts with `"image/"`. `null` otherwise. */
|
|
27
|
+
image_source: imageSourceSchema.optional().describe("Image source metadata for rendering the current version's file inline. Present only when `content_type` starts with `\"image/\"`. `null` otherwise."),
|
|
28
|
+
/** Human-readable name for the artifact, e.g. `"Q2 Report"`. `null` if not set. */
|
|
29
|
+
name: z.string().optional().describe("Human-readable name for the artifact, e.g. `\"Q2 Report\"`. `null` if not set."),
|
|
30
|
+
/** ID of the organization this artifact belongs to (`org_...`). */
|
|
31
|
+
org: z.string().optional().describe("ID of the organization this artifact belongs to (`org_...`)."),
|
|
32
|
+
/** Identifier of the sandbox environment associated with this artifact. `null` if not sandbox-scoped. */
|
|
33
|
+
sandbox: z.string().optional().describe("Identifier of the sandbox environment associated with this artifact. `null` if not sandbox-scoped."),
|
|
34
|
+
/** ID of the team that owns this artifact (`tea_...`). `null` if not team-scoped. */
|
|
35
|
+
team: z.string().optional().describe("ID of the team that owns this artifact (`tea_...`). `null` if not team-scoped."),
|
|
36
|
+
/** ID of the thread in which this artifact was created (`thr_...`). `null` if not thread-scoped. */
|
|
37
|
+
thread: z.string().optional().describe("ID of the thread in which this artifact was created (`thr_...`). `null` if not thread-scoped."),
|
|
38
|
+
/** When the artifact record was last modified (ISO 8601). */
|
|
39
|
+
updated_at: z.string().optional().describe("When the artifact record was last modified (ISO 8601)."),
|
|
40
|
+
/** ID of the user who created this artifact (`usr_...`). `null` if not user-scoped. */
|
|
41
|
+
user: z.string().optional().describe("ID of the user who created this artifact (`usr_...`). `null` if not user-scoped."),
|
|
42
|
+
/** Current version number of the artifact. Increments each time a new version is published. */
|
|
43
|
+
version: z.number().int().optional().describe("Current version number of the artifact. Increments each time a new version is published."),
|
|
44
|
+
}).describe("A versioned artifact produced or managed by an agent, such as a generated file, report, or code output.");
|
|
27
45
|
//# sourceMappingURL=artifacts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../src/types/artifac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AAQ,CAAC,yGAAyG,CAA+B,CAAC"}
|
|
@@ -1,29 +1,62 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
/** 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
|
+
export interface AutomationRun {
|
|
4
|
+
/** ID of the app that owns this automation run (`dap_...`). */
|
|
5
|
+
app: string;
|
|
6
|
+
/** ID of the automation that was executed (`aut_...`). */
|
|
7
|
+
automation: string;
|
|
8
|
+
/** When the automation run was created (ISO 8601). */
|
|
9
|
+
created_at?: string | undefined;
|
|
10
|
+
/** ID of the platform event that triggered this run. `null` for directly invoked automations. */
|
|
11
|
+
event_id?: string | undefined;
|
|
12
|
+
/** Automation run ID (`atr_...`). */
|
|
13
|
+
id: string;
|
|
14
|
+
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
|
|
15
|
+
payload?: Record<string, unknown> | undefined;
|
|
16
|
+
/** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. */
|
|
17
|
+
result?: Record<string, unknown> | undefined;
|
|
18
|
+
/** 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). */
|
|
19
|
+
status: string;
|
|
20
|
+
/** ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team. */
|
|
21
|
+
team?: string | undefined;
|
|
22
|
+
/** When the automation run record was last updated (ISO 8601). */
|
|
23
|
+
updated_at?: string | undefined;
|
|
24
|
+
/** ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user. */
|
|
25
|
+
user?: string | undefined;
|
|
26
|
+
}
|
|
27
|
+
/** Runtime validator for {@link AutomationRun}. */
|
|
6
28
|
export declare const automationRunSchema: z.ZodObject<{
|
|
29
|
+
/** ID of the app that owns this automation run (`dap_...`). */
|
|
7
30
|
app: z.ZodString;
|
|
31
|
+
/** ID of the automation that was executed (`aut_...`). */
|
|
8
32
|
automation: z.ZodString;
|
|
33
|
+
/** When the automation run was created (ISO 8601). */
|
|
9
34
|
created_at: z.ZodOptional<z.ZodString>;
|
|
35
|
+
/** ID of the platform event that triggered this run. `null` for directly invoked automations. */
|
|
10
36
|
event_id: z.ZodOptional<z.ZodString>;
|
|
37
|
+
/** Automation run ID (`atr_...`). */
|
|
11
38
|
id: z.ZodString;
|
|
39
|
+
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
|
|
12
40
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
41
|
+
/** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. */
|
|
13
42
|
result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
43
|
+
/** 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). */
|
|
14
44
|
status: z.ZodString;
|
|
45
|
+
/** ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team. */
|
|
15
46
|
team: z.ZodOptional<z.ZodString>;
|
|
47
|
+
/** When the automation run record was last updated (ISO 8601). */
|
|
16
48
|
updated_at: z.ZodOptional<z.ZodString>;
|
|
49
|
+
/** ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user. */
|
|
17
50
|
user: z.ZodOptional<z.ZodString>;
|
|
18
51
|
}, "strip", z.ZodTypeAny, {
|
|
19
52
|
status: string;
|
|
20
53
|
id: string;
|
|
21
54
|
app: string;
|
|
22
55
|
automation: string;
|
|
56
|
+
team?: string | undefined;
|
|
23
57
|
created_at?: string | undefined;
|
|
24
|
-
user?: string | undefined;
|
|
25
58
|
updated_at?: string | undefined;
|
|
26
|
-
|
|
59
|
+
user?: string | undefined;
|
|
27
60
|
payload?: Record<string, unknown> | undefined;
|
|
28
61
|
event_id?: string | undefined;
|
|
29
62
|
result?: Record<string, unknown> | undefined;
|
|
@@ -32,13 +65,12 @@ export declare const automationRunSchema: z.ZodObject<{
|
|
|
32
65
|
id: string;
|
|
33
66
|
app: string;
|
|
34
67
|
automation: string;
|
|
68
|
+
team?: string | undefined;
|
|
35
69
|
created_at?: string | undefined;
|
|
36
|
-
user?: string | undefined;
|
|
37
70
|
updated_at?: string | undefined;
|
|
38
|
-
|
|
71
|
+
user?: string | undefined;
|
|
39
72
|
payload?: Record<string, unknown> | undefined;
|
|
40
73
|
event_id?: string | undefined;
|
|
41
74
|
result?: Record<string, unknown> | undefined;
|
|
42
75
|
}>;
|
|
43
|
-
export type AutomationRun = z.infer<typeof automationRunSchema>;
|
|
44
76
|
//# 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
|
|
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,OAAO,CAAC,GAAG,SAAS,CAAC;IAC9C,0KAA0K;IAC1K,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAC7C,qPAAqP;IACrP,MAAM,EAAE,MAAM,CAAC;IACf,8GAA8G;IAC9G,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,8GAA8G;IAC9G,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED,mDAAmD;AACnD,eAAO,MAAM,mBAAmB;IAC9B,+DAA+D;;IAE/D,0DAA0D;;IAE1D,sDAAsD;;IAEtD,iGAAiG;;IAEjG,qCAAqC;;IAErC,oJAAoJ;;IAEpJ,0KAA0K;;IAE1K,qPAAqP;;IAErP,8GAA8G;;IAE9G,kEAAkE;;IAElE,8GAA8G;;;;;;;;;;;;;;;;;;;;;;;;;;EAEqF,CAAC"}
|
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
// Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
|
|
2
2
|
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
-
// Content hash:
|
|
3
|
+
// Content hash: 6f9b2344ac6b
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
Maps to serialized automation run output from developer portal API.
|
|
8
|
-
*/
|
|
5
|
+
/** Runtime validator for {@link AutomationRun}. */
|
|
9
6
|
export const automationRunSchema = z.object({
|
|
10
|
-
app
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
7
|
+
/** ID of the app that owns this automation run (`dap_...`). */
|
|
8
|
+
app: z.string().describe("ID of the app that owns this automation run (`dap_...`)."),
|
|
9
|
+
/** ID of the automation that was executed (`aut_...`). */
|
|
10
|
+
automation: z.string().describe("ID of the automation that was executed (`aut_...`)."),
|
|
11
|
+
/** When the automation run was created (ISO 8601). */
|
|
12
|
+
created_at: z.string().optional().describe("When the automation run was created (ISO 8601)."),
|
|
13
|
+
/** ID of the platform event that triggered this run. `null` for directly invoked automations. */
|
|
14
|
+
event_id: z.string().optional().describe("ID of the platform event that triggered this run. `null` for directly invoked automations."),
|
|
15
|
+
/** Automation run ID (`atr_...`). */
|
|
16
|
+
id: z.string().describe("Automation run ID (`atr_...`)."),
|
|
17
|
+
/** The input event payload that triggered this run. Structure varies by automation type. Defaults to an empty object if no payload was provided. */
|
|
18
|
+
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
|
+
/** The output produced after the automation finished executing. Contains workflow-defined keys alongside any returned output. `null` if the run has not yet completed. */
|
|
20
|
+
result: z.record(z.unknown()).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."),
|
|
21
|
+
/** 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). */
|
|
22
|
+
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)."),
|
|
23
|
+
/** ID of the team that owns this run (`tea_...`). `null` if the run is owned by a user rather than a team. */
|
|
24
|
+
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."),
|
|
25
|
+
/** When the automation run record was last updated (ISO 8601). */
|
|
26
|
+
updated_at: z.string().optional().describe("When the automation run record was last updated (ISO 8601)."),
|
|
27
|
+
/** ID of the user that owns this run (`usr_...`). `null` if the run is owned by a team rather than a user. */
|
|
28
|
+
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."),
|
|
29
|
+
}).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.");
|
|
22
30
|
//# sourceMappingURL=automations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automations.js","sourceRoot":"","sources":["../../src/types/automations.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"automations.js","sourceRoot":"","sources":["../../src/types/automations.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4BxB,mDAAmD;AACnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,+DAA+D;IAC/D,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,0DAA0D,CAAC;IACpF,0DAA0D;IAC1D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qDAAqD,CAAC;IACtF,sDAAsD;IACtD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iDAAiD,CAAC;IAC7F,iGAAiG;IACjG,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4FAA4F,CAAC;IACtI,qCAAqC;IACrC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IACzD,oJAAoJ;IACpJ,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+IAA+I,CAAC;IACnM,0KAA0K;IAC1K,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE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