@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
|
@@ -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,142 @@ 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
|
+
add_denies: 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
|
+
denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
81
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
82
|
+
principal_type: z.ZodString;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
actions: string[];
|
|
85
|
+
principal_type: string;
|
|
86
|
+
principal?: string | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
actions: string[];
|
|
89
|
+
principal_type: string;
|
|
90
|
+
principal?: string | undefined;
|
|
91
|
+
}>, "many">>;
|
|
92
|
+
grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
93
|
+
actions: z.ZodArray<z.ZodString, "many">;
|
|
94
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
95
|
+
principal_type: z.ZodString;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
actions: string[];
|
|
98
|
+
principal_type: string;
|
|
99
|
+
principal?: string | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
actions: string[];
|
|
102
|
+
principal_type: string;
|
|
103
|
+
principal?: string | undefined;
|
|
104
|
+
}>, "many">>;
|
|
105
|
+
preserve_denies: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
107
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
108
|
+
principal_type: z.ZodString;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
principal_type: string;
|
|
111
|
+
principal?: string | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
principal_type: string;
|
|
114
|
+
principal?: string | undefined;
|
|
115
|
+
}>, "many">>;
|
|
116
|
+
remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
117
|
+
principal: z.ZodOptional<z.ZodString>;
|
|
118
|
+
principal_type: z.ZodString;
|
|
119
|
+
}, "strip", z.ZodTypeAny, {
|
|
120
|
+
principal_type: string;
|
|
121
|
+
principal?: string | undefined;
|
|
122
|
+
}, {
|
|
123
|
+
principal_type: string;
|
|
124
|
+
principal?: string | undefined;
|
|
125
|
+
}>, "many">>;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
add?: {
|
|
128
|
+
actions: string[];
|
|
129
|
+
principal_type: string;
|
|
130
|
+
principal?: string | undefined;
|
|
131
|
+
}[] | undefined;
|
|
132
|
+
add_denies?: {
|
|
133
|
+
actions: string[];
|
|
134
|
+
principal_type: string;
|
|
135
|
+
principal?: string | undefined;
|
|
136
|
+
}[] | undefined;
|
|
137
|
+
denies?: {
|
|
138
|
+
actions: string[];
|
|
139
|
+
principal_type: string;
|
|
140
|
+
principal?: string | undefined;
|
|
141
|
+
}[] | undefined;
|
|
142
|
+
grants?: {
|
|
143
|
+
actions: string[];
|
|
144
|
+
principal_type: string;
|
|
145
|
+
principal?: string | undefined;
|
|
146
|
+
}[] | undefined;
|
|
147
|
+
preserve_denies?: boolean | undefined;
|
|
148
|
+
remove?: {
|
|
149
|
+
principal_type: string;
|
|
150
|
+
principal?: string | undefined;
|
|
151
|
+
}[] | undefined;
|
|
152
|
+
remove_denies?: {
|
|
153
|
+
principal_type: string;
|
|
154
|
+
principal?: string | undefined;
|
|
155
|
+
}[] | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
add?: {
|
|
158
|
+
actions: string[];
|
|
159
|
+
principal_type: string;
|
|
160
|
+
principal?: string | undefined;
|
|
161
|
+
}[] | undefined;
|
|
162
|
+
add_denies?: {
|
|
163
|
+
actions: string[];
|
|
164
|
+
principal_type: string;
|
|
165
|
+
principal?: string | undefined;
|
|
166
|
+
}[] | undefined;
|
|
167
|
+
denies?: {
|
|
168
|
+
actions: string[];
|
|
169
|
+
principal_type: string;
|
|
170
|
+
principal?: string | undefined;
|
|
171
|
+
}[] | undefined;
|
|
172
|
+
grants?: {
|
|
173
|
+
actions: string[];
|
|
174
|
+
principal_type: string;
|
|
175
|
+
principal?: string | undefined;
|
|
176
|
+
}[] | undefined;
|
|
177
|
+
preserve_denies?: boolean | undefined;
|
|
178
|
+
remove?: {
|
|
179
|
+
principal_type: string;
|
|
180
|
+
principal?: string | undefined;
|
|
181
|
+
}[] | undefined;
|
|
182
|
+
remove_denies?: {
|
|
183
|
+
principal_type: string;
|
|
184
|
+
principal?: string | undefined;
|
|
185
|
+
}[] | undefined;
|
|
186
|
+
}>>>;
|
|
48
187
|
/** ID of the agent that produced this artifact (`agt_...`). `null` if not agent-produced. */
|
|
49
188
|
agent: z.ZodOptional<z.ZodString>;
|
|
50
189
|
/** MIME type of the current version's file, e.g. `"text/csv"` or `"image/png"`. `null` if no file is attached. */
|
|
@@ -123,6 +262,37 @@ export declare const artifactSchema: z.ZodObject<{
|
|
|
123
262
|
sandbox?: string | undefined;
|
|
124
263
|
current_version?: string | undefined;
|
|
125
264
|
file?: string | undefined;
|
|
265
|
+
acl?: {
|
|
266
|
+
add?: {
|
|
267
|
+
actions: string[];
|
|
268
|
+
principal_type: string;
|
|
269
|
+
principal?: string | undefined;
|
|
270
|
+
}[] | undefined;
|
|
271
|
+
add_denies?: {
|
|
272
|
+
actions: string[];
|
|
273
|
+
principal_type: string;
|
|
274
|
+
principal?: string | undefined;
|
|
275
|
+
}[] | undefined;
|
|
276
|
+
denies?: {
|
|
277
|
+
actions: string[];
|
|
278
|
+
principal_type: string;
|
|
279
|
+
principal?: string | undefined;
|
|
280
|
+
}[] | undefined;
|
|
281
|
+
grants?: {
|
|
282
|
+
actions: string[];
|
|
283
|
+
principal_type: string;
|
|
284
|
+
principal?: string | undefined;
|
|
285
|
+
}[] | undefined;
|
|
286
|
+
preserve_denies?: boolean | undefined;
|
|
287
|
+
remove?: {
|
|
288
|
+
principal_type: string;
|
|
289
|
+
principal?: string | undefined;
|
|
290
|
+
}[] | undefined;
|
|
291
|
+
remove_denies?: {
|
|
292
|
+
principal_type: string;
|
|
293
|
+
principal?: string | undefined;
|
|
294
|
+
}[] | undefined;
|
|
295
|
+
} | null | undefined;
|
|
126
296
|
content_type?: string | undefined;
|
|
127
297
|
image_source?: {
|
|
128
298
|
mime_type?: string | null | undefined;
|
|
@@ -152,6 +322,37 @@ export declare const artifactSchema: z.ZodObject<{
|
|
|
152
322
|
sandbox?: string | undefined;
|
|
153
323
|
current_version?: string | undefined;
|
|
154
324
|
file?: string | undefined;
|
|
325
|
+
acl?: {
|
|
326
|
+
add?: {
|
|
327
|
+
actions: string[];
|
|
328
|
+
principal_type: string;
|
|
329
|
+
principal?: string | undefined;
|
|
330
|
+
}[] | undefined;
|
|
331
|
+
add_denies?: {
|
|
332
|
+
actions: string[];
|
|
333
|
+
principal_type: string;
|
|
334
|
+
principal?: string | undefined;
|
|
335
|
+
}[] | undefined;
|
|
336
|
+
denies?: {
|
|
337
|
+
actions: string[];
|
|
338
|
+
principal_type: string;
|
|
339
|
+
principal?: string | undefined;
|
|
340
|
+
}[] | undefined;
|
|
341
|
+
grants?: {
|
|
342
|
+
actions: string[];
|
|
343
|
+
principal_type: string;
|
|
344
|
+
principal?: string | undefined;
|
|
345
|
+
}[] | undefined;
|
|
346
|
+
preserve_denies?: boolean | undefined;
|
|
347
|
+
remove?: {
|
|
348
|
+
principal_type: string;
|
|
349
|
+
principal?: string | undefined;
|
|
350
|
+
}[] | undefined;
|
|
351
|
+
remove_denies?: {
|
|
352
|
+
principal_type: string;
|
|
353
|
+
principal?: string | undefined;
|
|
354
|
+
}[] | undefined;
|
|
355
|
+
} | null | undefined;
|
|
155
356
|
content_type?: string | undefined;
|
|
156
357
|
image_source?: {
|
|
157
358
|
mime_type?: string | null | undefined;
|
|
@@ -168,4 +369,251 @@ export declare const artifactSchema: z.ZodObject<{
|
|
|
168
369
|
group_key?: string | null | undefined;
|
|
169
370
|
system?: boolean | undefined;
|
|
170
371
|
}>;
|
|
372
|
+
/** Acknowledges an Artifact editing presence or leave request. */
|
|
373
|
+
export interface ArtifactEditingAck {
|
|
374
|
+
ok: boolean;
|
|
375
|
+
}
|
|
376
|
+
/** Runtime validator for {@link ArtifactEditingAck}. */
|
|
377
|
+
export declare const artifactEditingAckSchema: z.ZodObject<{
|
|
378
|
+
ok: z.ZodBoolean;
|
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
ok: boolean;
|
|
381
|
+
}, {
|
|
382
|
+
ok: boolean;
|
|
383
|
+
}>;
|
|
384
|
+
/** A Unicode code-point cursor and optional selection endpoint. */
|
|
385
|
+
export interface ArtifactEditingCursor {
|
|
386
|
+
/** Zero-based Unicode code-point position. */
|
|
387
|
+
position: number;
|
|
388
|
+
/** Zero-based Unicode code-point selection endpoint. */
|
|
389
|
+
selection_end?: number | undefined;
|
|
390
|
+
}
|
|
391
|
+
/** Runtime validator for {@link ArtifactEditingCursor}. */
|
|
392
|
+
export declare const artifactEditingCursorSchema: z.ZodObject<{
|
|
393
|
+
/** Zero-based Unicode code-point position. */
|
|
394
|
+
position: z.ZodNumber;
|
|
395
|
+
/** Zero-based Unicode code-point selection endpoint. */
|
|
396
|
+
selection_end: z.ZodOptional<z.ZodNumber>;
|
|
397
|
+
}, "strip", z.ZodTypeAny, {
|
|
398
|
+
position: number;
|
|
399
|
+
selection_end?: number | undefined;
|
|
400
|
+
}, {
|
|
401
|
+
position: number;
|
|
402
|
+
selection_end?: number | undefined;
|
|
403
|
+
}>;
|
|
404
|
+
/** A server-issued collaborator identity and its ephemeral presence. */
|
|
405
|
+
export interface ArtifactEditingActor {
|
|
406
|
+
/** Opaque identity unique to this channel join. */
|
|
407
|
+
actor_id: string;
|
|
408
|
+
/** Current code-point cursor, or null. */
|
|
409
|
+
cursor?: ArtifactEditingCursor | null | undefined;
|
|
410
|
+
/** Server-derived collaborator display metadata. */
|
|
411
|
+
meta: Record<string, unknown>;
|
|
412
|
+
}
|
|
413
|
+
/** Runtime validator for {@link ArtifactEditingActor}. */
|
|
414
|
+
export declare const artifactEditingActorSchema: z.ZodObject<{
|
|
415
|
+
/** Opaque identity unique to this channel join. */
|
|
416
|
+
actor_id: z.ZodString;
|
|
417
|
+
/** Current code-point cursor, or null. */
|
|
418
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
419
|
+
/** Zero-based Unicode code-point position. */
|
|
420
|
+
position: z.ZodNumber;
|
|
421
|
+
/** Zero-based Unicode code-point selection endpoint. */
|
|
422
|
+
selection_end: z.ZodOptional<z.ZodNumber>;
|
|
423
|
+
}, "strip", z.ZodTypeAny, {
|
|
424
|
+
position: number;
|
|
425
|
+
selection_end?: number | undefined;
|
|
426
|
+
}, {
|
|
427
|
+
position: number;
|
|
428
|
+
selection_end?: number | undefined;
|
|
429
|
+
}>>>;
|
|
430
|
+
/** Server-derived collaborator display metadata. */
|
|
431
|
+
meta: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
432
|
+
}, "strip", z.ZodTypeAny, {
|
|
433
|
+
actor_id: string;
|
|
434
|
+
meta: Record<string, {} | null>;
|
|
435
|
+
cursor?: {
|
|
436
|
+
position: number;
|
|
437
|
+
selection_end?: number | undefined;
|
|
438
|
+
} | null | undefined;
|
|
439
|
+
}, {
|
|
440
|
+
actor_id: string;
|
|
441
|
+
meta: Record<string, {} | null>;
|
|
442
|
+
cursor?: {
|
|
443
|
+
position: number;
|
|
444
|
+
selection_end?: number | undefined;
|
|
445
|
+
} | null | undefined;
|
|
446
|
+
}>;
|
|
447
|
+
/** Confirms the exact live revision that reached durable ArtifactVersion storage. */
|
|
448
|
+
export interface ArtifactEditingCheckpointResponse {
|
|
449
|
+
/** New durable ArtifactVersion ID. */
|
|
450
|
+
artifact_version: string;
|
|
451
|
+
artifact_version_number: number;
|
|
452
|
+
checkpointed_revision: number;
|
|
453
|
+
/** True when later live operations remain unsaved. */
|
|
454
|
+
dirty: boolean;
|
|
455
|
+
incarnation: string;
|
|
456
|
+
}
|
|
457
|
+
/** Runtime validator for {@link ArtifactEditingCheckpointResponse}. */
|
|
458
|
+
export declare const artifactEditingCheckpointResponseSchema: z.ZodObject<{
|
|
459
|
+
/** New durable ArtifactVersion ID. */
|
|
460
|
+
artifact_version: z.ZodString;
|
|
461
|
+
artifact_version_number: z.ZodNumber;
|
|
462
|
+
checkpointed_revision: z.ZodNumber;
|
|
463
|
+
/** True when later live operations remain unsaved. */
|
|
464
|
+
dirty: z.ZodBoolean;
|
|
465
|
+
incarnation: z.ZodString;
|
|
466
|
+
}, "strip", z.ZodTypeAny, {
|
|
467
|
+
dirty: boolean;
|
|
468
|
+
artifact_version: string;
|
|
469
|
+
artifact_version_number: number;
|
|
470
|
+
checkpointed_revision: number;
|
|
471
|
+
incarnation: string;
|
|
472
|
+
}, {
|
|
473
|
+
dirty: boolean;
|
|
474
|
+
artifact_version: string;
|
|
475
|
+
artifact_version_number: number;
|
|
476
|
+
checkpointed_revision: number;
|
|
477
|
+
incarnation: string;
|
|
478
|
+
}>;
|
|
479
|
+
/** Authoritative live Artifact snapshot returned by an editing-channel join. */
|
|
480
|
+
export interface ArtifactEditingJoinResponse {
|
|
481
|
+
/** Server-issued identity for this channel join. */
|
|
482
|
+
actor_id: string;
|
|
483
|
+
actors: ArtifactEditingActor[];
|
|
484
|
+
/** Public Artifact ID (`art_...`). */
|
|
485
|
+
artifact: string;
|
|
486
|
+
/** Durable version ID (`artv_...`). */
|
|
487
|
+
artifact_version: string;
|
|
488
|
+
artifact_version_number: number;
|
|
489
|
+
can_write: boolean;
|
|
490
|
+
/** Last durable-save failure reason, or null. */
|
|
491
|
+
checkpoint_error?: string | null | undefined;
|
|
492
|
+
/** Latest revision known durable. */
|
|
493
|
+
checkpointed_revision: number;
|
|
494
|
+
/** Server-issued connection identity. */
|
|
495
|
+
connection_id: string;
|
|
496
|
+
/** UTF-8 document content. */
|
|
497
|
+
content: string;
|
|
498
|
+
/** True while a live tail remains crash-loss exposed. */
|
|
499
|
+
dirty: boolean;
|
|
500
|
+
/** Opaque live-session fence token. */
|
|
501
|
+
incarnation: string;
|
|
502
|
+
/** Live OT revision in Unicode code points. */
|
|
503
|
+
revision: number;
|
|
504
|
+
}
|
|
505
|
+
/** Runtime validator for {@link ArtifactEditingJoinResponse}. */
|
|
506
|
+
export declare const artifactEditingJoinResponseSchema: z.ZodObject<{
|
|
507
|
+
/** Server-issued identity for this channel join. */
|
|
508
|
+
actor_id: z.ZodString;
|
|
509
|
+
actors: z.ZodArray<z.ZodObject<{
|
|
510
|
+
/** Opaque identity unique to this channel join. */
|
|
511
|
+
actor_id: z.ZodString;
|
|
512
|
+
/** Current code-point cursor, or null. */
|
|
513
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
514
|
+
/** Zero-based Unicode code-point position. */
|
|
515
|
+
position: z.ZodNumber;
|
|
516
|
+
/** Zero-based Unicode code-point selection endpoint. */
|
|
517
|
+
selection_end: z.ZodOptional<z.ZodNumber>;
|
|
518
|
+
}, "strip", z.ZodTypeAny, {
|
|
519
|
+
position: number;
|
|
520
|
+
selection_end?: number | undefined;
|
|
521
|
+
}, {
|
|
522
|
+
position: number;
|
|
523
|
+
selection_end?: number | undefined;
|
|
524
|
+
}>>>;
|
|
525
|
+
/** Server-derived collaborator display metadata. */
|
|
526
|
+
meta: z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>;
|
|
527
|
+
}, "strip", z.ZodTypeAny, {
|
|
528
|
+
actor_id: string;
|
|
529
|
+
meta: Record<string, {} | null>;
|
|
530
|
+
cursor?: {
|
|
531
|
+
position: number;
|
|
532
|
+
selection_end?: number | undefined;
|
|
533
|
+
} | null | undefined;
|
|
534
|
+
}, {
|
|
535
|
+
actor_id: string;
|
|
536
|
+
meta: Record<string, {} | null>;
|
|
537
|
+
cursor?: {
|
|
538
|
+
position: number;
|
|
539
|
+
selection_end?: number | undefined;
|
|
540
|
+
} | null | undefined;
|
|
541
|
+
}>, "many">;
|
|
542
|
+
/** Public Artifact ID (`art_...`). */
|
|
543
|
+
artifact: z.ZodString;
|
|
544
|
+
/** Durable version ID (`artv_...`). */
|
|
545
|
+
artifact_version: z.ZodString;
|
|
546
|
+
artifact_version_number: z.ZodNumber;
|
|
547
|
+
can_write: z.ZodBoolean;
|
|
548
|
+
/** Last durable-save failure reason, or null. */
|
|
549
|
+
checkpoint_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
550
|
+
/** Latest revision known durable. */
|
|
551
|
+
checkpointed_revision: z.ZodNumber;
|
|
552
|
+
/** Server-issued connection identity. */
|
|
553
|
+
connection_id: z.ZodString;
|
|
554
|
+
/** UTF-8 document content. */
|
|
555
|
+
content: z.ZodString;
|
|
556
|
+
/** True while a live tail remains crash-loss exposed. */
|
|
557
|
+
dirty: z.ZodBoolean;
|
|
558
|
+
/** Opaque live-session fence token. */
|
|
559
|
+
incarnation: z.ZodString;
|
|
560
|
+
/** Live OT revision in Unicode code points. */
|
|
561
|
+
revision: z.ZodNumber;
|
|
562
|
+
}, "strip", z.ZodTypeAny, {
|
|
563
|
+
content: string;
|
|
564
|
+
dirty: boolean;
|
|
565
|
+
actors: {
|
|
566
|
+
actor_id: string;
|
|
567
|
+
meta: Record<string, {} | null>;
|
|
568
|
+
cursor?: {
|
|
569
|
+
position: number;
|
|
570
|
+
selection_end?: number | undefined;
|
|
571
|
+
} | null | undefined;
|
|
572
|
+
}[];
|
|
573
|
+
connection_id: string;
|
|
574
|
+
actor_id: string;
|
|
575
|
+
artifact_version: string;
|
|
576
|
+
artifact_version_number: number;
|
|
577
|
+
checkpointed_revision: number;
|
|
578
|
+
incarnation: string;
|
|
579
|
+
artifact: string;
|
|
580
|
+
can_write: boolean;
|
|
581
|
+
revision: number;
|
|
582
|
+
checkpoint_error?: string | null | undefined;
|
|
583
|
+
}, {
|
|
584
|
+
content: string;
|
|
585
|
+
dirty: boolean;
|
|
586
|
+
actors: {
|
|
587
|
+
actor_id: string;
|
|
588
|
+
meta: Record<string, {} | null>;
|
|
589
|
+
cursor?: {
|
|
590
|
+
position: number;
|
|
591
|
+
selection_end?: number | undefined;
|
|
592
|
+
} | null | undefined;
|
|
593
|
+
}[];
|
|
594
|
+
connection_id: string;
|
|
595
|
+
actor_id: string;
|
|
596
|
+
artifact_version: string;
|
|
597
|
+
artifact_version_number: number;
|
|
598
|
+
checkpointed_revision: number;
|
|
599
|
+
incarnation: string;
|
|
600
|
+
artifact: string;
|
|
601
|
+
can_write: boolean;
|
|
602
|
+
revision: number;
|
|
603
|
+
checkpoint_error?: string | null | undefined;
|
|
604
|
+
}>;
|
|
605
|
+
/** Acknowledges an operation only after the authoritative OT server applied it. */
|
|
606
|
+
export interface ArtifactEditingOperationAck {
|
|
607
|
+
/** Authoritative live revision after application. */
|
|
608
|
+
revision: number;
|
|
609
|
+
}
|
|
610
|
+
/** Runtime validator for {@link ArtifactEditingOperationAck}. */
|
|
611
|
+
export declare const artifactEditingOperationAckSchema: z.ZodObject<{
|
|
612
|
+
/** Authoritative live revision after application. */
|
|
613
|
+
revision: z.ZodNumber;
|
|
614
|
+
}, "strip", z.ZodTypeAny, {
|
|
615
|
+
revision: number;
|
|
616
|
+
}, {
|
|
617
|
+
revision: number;
|
|
618
|
+
}>;
|
|
171
619
|
//# 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,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;IAC1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;;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,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8GA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