@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
|
@@ -18,6 +18,7 @@ export declare class ArtifactResource {
|
|
|
18
18
|
* `thread` or `agent`. Legacy requests that wrap fields in an `artifact` object
|
|
19
19
|
* are still accepted.
|
|
20
20
|
* @param input - Request body.
|
|
21
|
+
* @param input.acl - Initial access control list. Grants add read or write access beyond the owner.
|
|
21
22
|
* @param input.agent - Agent ID (`agt_...`) to associate with the artifact.
|
|
22
23
|
* @param input.artifact - Legacy wrapper object containing artifact attributes. Prefer top-level fields.
|
|
23
24
|
* @param input.description - Optional longer artifact description.
|
|
@@ -26,7 +27,6 @@ export declare class ArtifactResource {
|
|
|
26
27
|
* @param input.idempotency_key - Optional PR-evidence retry key, limited to 255 characters. Requires both team and thread. Matching app, team, thread, name, and key values return the original artifact.
|
|
27
28
|
* @param input.name - Human-readable artifact name.
|
|
28
29
|
* @param input.org - Organization owning a system artifact. Requires an organization admin or system viewer.
|
|
29
|
-
* @param input.permissions - Optional artifact permissions map.
|
|
30
30
|
* @param input.system - When true, create a system-owned artifact. Mutually exclusive with `team` and `user`.
|
|
31
31
|
* @param input.team - Team ID (`tem_...`) that should own the artifact. Mutually exclusive with `user`.
|
|
32
32
|
* @param input.thread - Thread ID (`thr_...`) to associate with the artifact.
|
|
@@ -34,6 +34,37 @@ export declare class ArtifactResource {
|
|
|
34
34
|
* @returns The newly created artifact.
|
|
35
35
|
*/
|
|
36
36
|
create(input: {
|
|
37
|
+
acl?: {
|
|
38
|
+
add?: {
|
|
39
|
+
actions: string[];
|
|
40
|
+
principal?: string | undefined;
|
|
41
|
+
principal_type: string;
|
|
42
|
+
}[] | undefined;
|
|
43
|
+
add_denies?: {
|
|
44
|
+
actions: string[];
|
|
45
|
+
principal?: string | undefined;
|
|
46
|
+
principal_type: string;
|
|
47
|
+
}[] | undefined;
|
|
48
|
+
denies?: {
|
|
49
|
+
actions: string[];
|
|
50
|
+
principal?: string | undefined;
|
|
51
|
+
principal_type: string;
|
|
52
|
+
}[] | undefined;
|
|
53
|
+
grants?: {
|
|
54
|
+
actions: string[];
|
|
55
|
+
principal?: string | undefined;
|
|
56
|
+
principal_type: string;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
preserve_denies?: boolean | undefined;
|
|
59
|
+
remove?: {
|
|
60
|
+
principal?: string | undefined;
|
|
61
|
+
principal_type: string;
|
|
62
|
+
}[] | undefined;
|
|
63
|
+
remove_denies?: {
|
|
64
|
+
principal?: string | undefined;
|
|
65
|
+
principal_type: string;
|
|
66
|
+
}[] | undefined;
|
|
67
|
+
} | undefined;
|
|
37
68
|
agent?: string | undefined;
|
|
38
69
|
artifact?: Record<string, unknown> | undefined;
|
|
39
70
|
description?: string | undefined;
|
|
@@ -47,7 +78,6 @@ export declare class ArtifactResource {
|
|
|
47
78
|
idempotency_key?: string | undefined;
|
|
48
79
|
name?: string | undefined;
|
|
49
80
|
org?: string | undefined;
|
|
50
|
-
permissions?: Record<string, unknown> | undefined;
|
|
51
81
|
system?: boolean | undefined;
|
|
52
82
|
team?: string | undefined;
|
|
53
83
|
thread?: string | undefined;
|
|
@@ -90,6 +120,7 @@ export declare class ArtifactResource {
|
|
|
90
120
|
* artifact's owner.
|
|
91
121
|
* @param artifact - Artifact ID (`art_...`) of the artifact to update.
|
|
92
122
|
* @param input - Request body.
|
|
123
|
+
* @param input.acl - Access control list replacement (`grants`) or add/remove operations. Omit to leave grants unchanged. ACL-only updates do not increment the content version.
|
|
93
124
|
* @param input.description - New description for the artifact. Omit to leave the existing description unchanged.
|
|
94
125
|
* @param input.file - Replacement file payload. Omit to leave the current file unchanged.
|
|
95
126
|
* @param input.file_content - Legacy flat Base64 file content. Prefer `file.data`.
|
|
@@ -101,6 +132,37 @@ export declare class ArtifactResource {
|
|
|
101
132
|
* @returns The artifact after applying the update, reflecting the new version number and any changed metadata or file.
|
|
102
133
|
*/
|
|
103
134
|
replace(artifact: string, input: {
|
|
135
|
+
acl?: {
|
|
136
|
+
add?: {
|
|
137
|
+
actions: string[];
|
|
138
|
+
principal?: string | undefined;
|
|
139
|
+
principal_type: string;
|
|
140
|
+
}[] | undefined;
|
|
141
|
+
add_denies?: {
|
|
142
|
+
actions: string[];
|
|
143
|
+
principal?: string | undefined;
|
|
144
|
+
principal_type: string;
|
|
145
|
+
}[] | undefined;
|
|
146
|
+
denies?: {
|
|
147
|
+
actions: string[];
|
|
148
|
+
principal?: string | undefined;
|
|
149
|
+
principal_type: string;
|
|
150
|
+
}[] | undefined;
|
|
151
|
+
grants?: {
|
|
152
|
+
actions: string[];
|
|
153
|
+
principal?: string | undefined;
|
|
154
|
+
principal_type: string;
|
|
155
|
+
}[] | undefined;
|
|
156
|
+
preserve_denies?: boolean | undefined;
|
|
157
|
+
remove?: {
|
|
158
|
+
principal?: string | undefined;
|
|
159
|
+
principal_type: string;
|
|
160
|
+
}[] | undefined;
|
|
161
|
+
remove_denies?: {
|
|
162
|
+
principal?: string | undefined;
|
|
163
|
+
principal_type: string;
|
|
164
|
+
}[] | undefined;
|
|
165
|
+
} | undefined;
|
|
104
166
|
description?: string | undefined;
|
|
105
167
|
file?: {
|
|
106
168
|
data: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/artifacts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,qBAAa,gBAAgB;IACf,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,MAAM,CAAC,KAAK,EAAE;QAAE,
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/artifacts.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,qBAAa,gBAAgB;IACf,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,MAAM,CAAC,KAAK,EAAE;QAAE,GAAG,CAAC,EAAE;YAAE,GAAG,CAAC,EAAE;gBAAE,OAAO,EAAE,MAAM,EAAE,CAAC;gBAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAAC,cAAc,EAAE,MAAM,CAAA;aAAE,EAAE,GAAG,SAAS,CAAC;YAAC,UAAU,CAAC,EAAE;gBAAE,OAAO,EAAE,MAAM,EAAE,CAAC;gBAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;gBAAC,cAAc,EAAE,MAAM,CAAA;aAAE,EAAE,GAAG,SAAS,CAAC;YAAC,MAAM,CAAC,EAAE;gBAAE,OAAO,EAAE,MA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QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;CAQpH"}
|
|
@@ -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: a28e4cfc8c63
|
|
4
4
|
export class ArtifactResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -21,6 +21,7 @@ export class ArtifactResource {
|
|
|
21
21
|
* `thread` or `agent`. Legacy requests that wrap fields in an `artifact` object
|
|
22
22
|
* are still accepted.
|
|
23
23
|
* @param input - Request body.
|
|
24
|
+
* @param input.acl - Initial access control list. Grants add read or write access beyond the owner.
|
|
24
25
|
* @param input.agent - Agent ID (`agt_...`) to associate with the artifact.
|
|
25
26
|
* @param input.artifact - Legacy wrapper object containing artifact attributes. Prefer top-level fields.
|
|
26
27
|
* @param input.description - Optional longer artifact description.
|
|
@@ -29,7 +30,6 @@ export class ArtifactResource {
|
|
|
29
30
|
* @param input.idempotency_key - Optional PR-evidence retry key, limited to 255 characters. Requires both team and thread. Matching app, team, thread, name, and key values return the original artifact.
|
|
30
31
|
* @param input.name - Human-readable artifact name.
|
|
31
32
|
* @param input.org - Organization owning a system artifact. Requires an organization admin or system viewer.
|
|
32
|
-
* @param input.permissions - Optional artifact permissions map.
|
|
33
33
|
* @param input.system - When true, create a system-owned artifact. Mutually exclusive with `team` and `user`.
|
|
34
34
|
* @param input.team - Team ID (`tem_...`) that should own the artifact. Mutually exclusive with `user`.
|
|
35
35
|
* @param input.thread - Thread ID (`thr_...`) to associate with the artifact.
|
|
@@ -80,6 +80,7 @@ export class ArtifactResource {
|
|
|
80
80
|
* artifact's owner.
|
|
81
81
|
* @param artifact - Artifact ID (`art_...`) of the artifact to update.
|
|
82
82
|
* @param input - Request body.
|
|
83
|
+
* @param input.acl - Access control list replacement (`grants`) or add/remove operations. Omit to leave grants unchanged. ACL-only updates do not increment the content version.
|
|
83
84
|
* @param input.description - New description for the artifact. Omit to leave the existing description unchanged.
|
|
84
85
|
* @param input.file - Replacement file payload. Omit to leave the current file unchanged.
|
|
85
86
|
* @param input.file_content - Legacy flat Base64 file content. Prefer `file.data`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../src/v1/resources/artifacts.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,gBAAgB;IACP;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,KAAK,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"artifacts.js","sourceRoot":"","sources":["../../../src/v1/resources/artifacts.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAK7B,MAAM,OAAO,gBAAgB;IACP;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,KAAK,CAAC,MAAM,CAAC,KAA2nC;QACtoC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,MAAM,CAAC,QAAgB;QAC3B,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAqB,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,GAAG,CAAC,QAAgB;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAqB,QAAQ,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,CAAC,OAAO,CAAC,QAAgB,EAAE,KAA+/B;QAC7hC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAqB,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,OAAO,CAAC,QAAgB;QAC5B,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAqB,QAAQ,UAAU,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,OAAO,CAAC,QAAgB,EAAE,MAA6B;QAC3D,MAAM,KAAK,GAA6F,EAAE,CAAC;QAC3G,IAAI,MAAM,EAAE,OAAO,KAAK,SAAS,EAAE,CAAC;YAClC,KAAK,CAAC,SAAS,CAAC,GAAG,MAAM,EAAE,OAAO,CAAC;QACrC,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,qBAAqB,QAAQ,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAClF,CAAC;CACF"}
|
|
@@ -14,9 +14,13 @@ export declare class AutomationRunResource {
|
|
|
14
14
|
* Resolution is viewer-scoped (AppScope + OrgScope): a run the caller cannot
|
|
15
15
|
* see returns 404.
|
|
16
16
|
* @param automationRun - Automation run ID (`arun_...`).
|
|
17
|
-
* @
|
|
17
|
+
* @param params - Query parameters.
|
|
18
|
+
* @param params.includePayload - Include payload and result. Set to false for a lightweight status response.
|
|
19
|
+
* @returns The requested automation run; payload and result are omitted when include_payload is false.
|
|
18
20
|
*/
|
|
19
|
-
get(automationRun: string
|
|
21
|
+
get(automationRun: string, params?: {
|
|
22
|
+
includePayload?: boolean;
|
|
23
|
+
}): Promise<AutomationRun>;
|
|
20
24
|
/**
|
|
21
25
|
* List an automation run journal
|
|
22
26
|
* Returns durable workflow journal entries for an automation run.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automation_runs.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/automation_runs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,qBAAa,qBAAqB;IACpB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC
|
|
1
|
+
{"version":3,"file":"automation_runs.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/automation_runs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,qBAAa,qBAAqB;IACpB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC;;;;;;;;;;;;;OAaG;IACG,GAAG,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,aAAa,CAAC;IAS/F;;;;;;;;;;;;;;OAcG;IACG,OAAO,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,cAAc,CAAC;IAYhH;;;;;;;;OAQG;IACI,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,aAAa,CAAC;QAAE,KAAK,EAAE,YAAY,CAAC;QAAC,IAAI,EAAE,aAAa,CAAA;KAAE,CAAC;CAGlG"}
|
|
@@ -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: 69ae84fda79e
|
|
4
4
|
export class AutomationRunResource {
|
|
5
5
|
http;
|
|
6
6
|
constructor(http) {
|
|
@@ -16,10 +16,16 @@ export class AutomationRunResource {
|
|
|
16
16
|
* Resolution is viewer-scoped (AppScope + OrgScope): a run the caller cannot
|
|
17
17
|
* see returns 404.
|
|
18
18
|
* @param automationRun - Automation run ID (`arun_...`).
|
|
19
|
-
* @
|
|
19
|
+
* @param params - Query parameters.
|
|
20
|
+
* @param params.includePayload - Include payload and result. Set to false for a lightweight status response.
|
|
21
|
+
* @returns The requested automation run; payload and result are omitted when include_payload is false.
|
|
20
22
|
*/
|
|
21
|
-
async get(automationRun) {
|
|
22
|
-
|
|
23
|
+
async get(automationRun, params) {
|
|
24
|
+
const query = {};
|
|
25
|
+
if (params?.includePayload !== undefined) {
|
|
26
|
+
query["include_payload"] = params?.includePayload;
|
|
27
|
+
}
|
|
28
|
+
return this.http.request(`/api/v1/automation_runs/${automationRun}`, { query });
|
|
23
29
|
}
|
|
24
30
|
/**
|
|
25
31
|
* List an automation run journal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"automation_runs.js","sourceRoot":"","sources":["../../../src/v1/resources/automation_runs.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAM7B,MAAM,OAAO,qBAAqB;IACZ;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC
|
|
1
|
+
{"version":3,"file":"automation_runs.js","sourceRoot":"","sources":["../../../src/v1/resources/automation_runs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runtime/http-client.js";
|
|
2
|
+
import type { AgentComputer, AgentComputerListResponse } from "../../types/common.js";
|
|
3
|
+
import type { ComputerExecResult } from "../../types/computers.js";
|
|
4
|
+
export declare class ComputerResource {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
/**
|
|
8
|
+
* List your computers
|
|
9
|
+
* Returns the authenticated user's live computers, oldest first, without pagination. Thread and agent computers are not included. Requires the `devbox_access` entitlement.
|
|
10
|
+
* @returns The user's live computers.
|
|
11
|
+
*/
|
|
12
|
+
list(): Promise<AgentComputerListResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Create a computer
|
|
15
|
+
* Provisions a computer owned by the authenticated user. Only that user can see or use it. Requires the `devbox_access` entitlement.
|
|
16
|
+
* @param input - Request body.
|
|
17
|
+
* @param input.key - Stable key unique among your computers.
|
|
18
|
+
* @param input.metadata - Arbitrary computer metadata.
|
|
19
|
+
* @param input.name - Human-readable computer name.
|
|
20
|
+
* @param input.provider - Compute backend: devbox (default), sprites, vercel, or e2b.
|
|
21
|
+
* @param input.region - Provider region.
|
|
22
|
+
* @param input.repositories - Ordered GitHub checkouts (maximum 16): {repository: owner/name, ref: optional ref}. First is primary.
|
|
23
|
+
* @param input.setup_bundle - Base64 tar.gz repository setup bundle (maximum 512 KiB).
|
|
24
|
+
* @returns The newly created computer. Returns HTTP 201.
|
|
25
|
+
*/
|
|
26
|
+
create(input: {
|
|
27
|
+
key?: string | undefined;
|
|
28
|
+
metadata?: Record<string, unknown> | undefined;
|
|
29
|
+
name: string;
|
|
30
|
+
provider?: string | undefined;
|
|
31
|
+
region?: string | undefined;
|
|
32
|
+
repositories?: {
|
|
33
|
+
ref?: string | null | undefined;
|
|
34
|
+
repository: string;
|
|
35
|
+
}[] | undefined;
|
|
36
|
+
setup_bundle?: string | undefined;
|
|
37
|
+
}): Promise<AgentComputer>;
|
|
38
|
+
/**
|
|
39
|
+
* Delete your computer
|
|
40
|
+
* Destroys one of the authenticated user's computers and releases its infrastructure. Irreversible. Requires the `devbox_access` entitlement.
|
|
41
|
+
* @param computer - Computer ID (`cmp_...`).
|
|
42
|
+
* @returns Empty response body. Returns HTTP 204 on success.
|
|
43
|
+
*/
|
|
44
|
+
delete(computer: string): Promise<void>;
|
|
45
|
+
/**
|
|
46
|
+
* Retrieve a computer
|
|
47
|
+
* Returns a computer the caller can see: their own, a team or agent computer
|
|
48
|
+
* visible to them, or a computer of a thread they can see. A computer the caller
|
|
49
|
+
* cannot see is reported as not found.
|
|
50
|
+
* For a `ready` or `paused` computer whose provider can pause, `status` is
|
|
51
|
+
* checked against the provider first, so a computer that paused while idle is
|
|
52
|
+
* returned as `paused`.
|
|
53
|
+
* @param computer - Computer ID (`cmp_...`).
|
|
54
|
+
* @returns The requested computer.
|
|
55
|
+
*/
|
|
56
|
+
get(computer: string): Promise<AgentComputer>;
|
|
57
|
+
/**
|
|
58
|
+
* Run a command on your computer
|
|
59
|
+
* Runs a shell command on one of the authenticated user's computers and returns
|
|
60
|
+
* its combined output and exit code. The computer must be `ready`; otherwise the
|
|
61
|
+
* endpoint returns 409 `computer_not_ready`. A non-zero `exit_code` is not an
|
|
62
|
+
* HTTP error. Requires the `devbox_access` entitlement.
|
|
63
|
+
* @param computer - Computer ID (`cmp_...`).
|
|
64
|
+
* @param input - Request body.
|
|
65
|
+
* @param input.command - Shell command to execute.
|
|
66
|
+
* @param input.timeout_seconds - Command timeout in seconds. Defaults to 60; at most 300.
|
|
67
|
+
* @param input.working_directory - Absolute working directory. Defaults to the computer's home directory.
|
|
68
|
+
* @returns The output and exit code produced by the command.
|
|
69
|
+
*/
|
|
70
|
+
exec(computer: string, input: {
|
|
71
|
+
command: string;
|
|
72
|
+
timeout_seconds?: number | undefined;
|
|
73
|
+
working_directory?: string | undefined;
|
|
74
|
+
}): Promise<ComputerExecResult>;
|
|
75
|
+
/**
|
|
76
|
+
* Pause a computer
|
|
77
|
+
* Powers a computer down while keeping its disk, and returns it with status
|
|
78
|
+
* `paused`. The next command run on it resumes it. Works for any computer the
|
|
79
|
+
* caller can manage: their own, a team computer they administer, an agent's
|
|
80
|
+
* computer they manage, or a computer of a thread they manage. Pausing a paused
|
|
81
|
+
* computer succeeds.
|
|
82
|
+
* Returns 403 when the caller can see the computer but not manage it, 409 when
|
|
83
|
+
* it is neither `ready` nor `paused`, and 422 `unsupported` when its provider
|
|
84
|
+
* cannot pause.
|
|
85
|
+
* @param computer - Computer ID (`cmp_...`).
|
|
86
|
+
* @returns The computer in its `"paused"` state.
|
|
87
|
+
*/
|
|
88
|
+
pause(computer: string): Promise<AgentComputer>;
|
|
89
|
+
/**
|
|
90
|
+
* Resume a computer
|
|
91
|
+
* Starts a paused computer from its kept disk and returns it with status
|
|
92
|
+
* `ready`. Authorized like pause: any computer the caller can manage. Resuming a
|
|
93
|
+
* running computer succeeds.
|
|
94
|
+
* Returns 403 when the caller can see the computer but not manage it, 409 when
|
|
95
|
+
* it is neither `ready` nor `paused`, and 422 `unsupported` when its provider
|
|
96
|
+
* cannot pause or resume.
|
|
97
|
+
* @param computer - Computer ID (`cmp_...`).
|
|
98
|
+
* @returns The computer in its `"ready"` state.
|
|
99
|
+
*/
|
|
100
|
+
resume(computer: string): Promise<AgentComputer>;
|
|
101
|
+
/**
|
|
102
|
+
* Run repository setup
|
|
103
|
+
* @param input - Request body.
|
|
104
|
+
* @param input.force - Run again even when commit and bundle are unchanged.
|
|
105
|
+
* @param input.setup_bundle - Replacement base64 tar.gz setup bundle.
|
|
106
|
+
* @returns Successful response
|
|
107
|
+
*/
|
|
108
|
+
setup(computer: string, input: {
|
|
109
|
+
force?: boolean | undefined;
|
|
110
|
+
setup_bundle?: string | undefined;
|
|
111
|
+
}): Promise<AgentComputer>;
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=computers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computers.d.ts","sourceRoot":"","sources":["../../../src/v1/resources/computers.ts"],"names":[],"mappings":"AAI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KAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAInK;;;;;;;;;;;;OAYG;IACG,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAIrD;;;;;;;;;;OAUG;IACG,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAItD;;;;;;OAMG;IACG,KAAK,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,GAAG,OAAO,CAAC,aAAa,CAAC;CAGjI"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License.
|
|
2
|
+
// This file is auto-generated by @archastro/sdk-generator. Do not edit.
|
|
3
|
+
// Content hash: d0a8cf4d5a2c
|
|
4
|
+
export class ComputerResource {
|
|
5
|
+
http;
|
|
6
|
+
constructor(http) {
|
|
7
|
+
this.http = http;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List your computers
|
|
11
|
+
* Returns the authenticated user's live computers, oldest first, without pagination. Thread and agent computers are not included. Requires the `devbox_access` entitlement.
|
|
12
|
+
* @returns The user's live computers.
|
|
13
|
+
*/
|
|
14
|
+
async list() {
|
|
15
|
+
return this.http.request(`/api/v1/computers`);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Create a computer
|
|
19
|
+
* Provisions a computer owned by the authenticated user. Only that user can see or use it. Requires the `devbox_access` entitlement.
|
|
20
|
+
* @param input - Request body.
|
|
21
|
+
* @param input.key - Stable key unique among your computers.
|
|
22
|
+
* @param input.metadata - Arbitrary computer metadata.
|
|
23
|
+
* @param input.name - Human-readable computer name.
|
|
24
|
+
* @param input.provider - Compute backend: devbox (default), sprites, vercel, or e2b.
|
|
25
|
+
* @param input.region - Provider region.
|
|
26
|
+
* @param input.repositories - Ordered GitHub checkouts (maximum 16): {repository: owner/name, ref: optional ref}. First is primary.
|
|
27
|
+
* @param input.setup_bundle - Base64 tar.gz repository setup bundle (maximum 512 KiB).
|
|
28
|
+
* @returns The newly created computer. Returns HTTP 201.
|
|
29
|
+
*/
|
|
30
|
+
async create(input) {
|
|
31
|
+
return this.http.request(`/api/v1/computers`, { method: "POST", body: input });
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Delete your computer
|
|
35
|
+
* Destroys one of the authenticated user's computers and releases its infrastructure. Irreversible. Requires the `devbox_access` entitlement.
|
|
36
|
+
* @param computer - Computer ID (`cmp_...`).
|
|
37
|
+
* @returns Empty response body. Returns HTTP 204 on success.
|
|
38
|
+
*/
|
|
39
|
+
async delete(computer) {
|
|
40
|
+
await this.http.request(`/api/v1/computers/${computer}`, { method: "DELETE" });
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Retrieve a computer
|
|
44
|
+
* Returns a computer the caller can see: their own, a team or agent computer
|
|
45
|
+
* visible to them, or a computer of a thread they can see. A computer the caller
|
|
46
|
+
* cannot see is reported as not found.
|
|
47
|
+
* For a `ready` or `paused` computer whose provider can pause, `status` is
|
|
48
|
+
* checked against the provider first, so a computer that paused while idle is
|
|
49
|
+
* returned as `paused`.
|
|
50
|
+
* @param computer - Computer ID (`cmp_...`).
|
|
51
|
+
* @returns The requested computer.
|
|
52
|
+
*/
|
|
53
|
+
async get(computer) {
|
|
54
|
+
return this.http.request(`/api/v1/computers/${computer}`);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Run a command on your computer
|
|
58
|
+
* Runs a shell command on one of the authenticated user's computers and returns
|
|
59
|
+
* its combined output and exit code. The computer must be `ready`; otherwise the
|
|
60
|
+
* endpoint returns 409 `computer_not_ready`. A non-zero `exit_code` is not an
|
|
61
|
+
* HTTP error. Requires the `devbox_access` entitlement.
|
|
62
|
+
* @param computer - Computer ID (`cmp_...`).
|
|
63
|
+
* @param input - Request body.
|
|
64
|
+
* @param input.command - Shell command to execute.
|
|
65
|
+
* @param input.timeout_seconds - Command timeout in seconds. Defaults to 60; at most 300.
|
|
66
|
+
* @param input.working_directory - Absolute working directory. Defaults to the computer's home directory.
|
|
67
|
+
* @returns The output and exit code produced by the command.
|
|
68
|
+
*/
|
|
69
|
+
async exec(computer, input) {
|
|
70
|
+
return this.http.request(`/api/v1/computers/${computer}/exec`, { method: "POST", body: input });
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Pause a computer
|
|
74
|
+
* Powers a computer down while keeping its disk, and returns it with status
|
|
75
|
+
* `paused`. The next command run on it resumes it. Works for any computer the
|
|
76
|
+
* caller can manage: their own, a team computer they administer, an agent's
|
|
77
|
+
* computer they manage, or a computer of a thread they manage. Pausing a paused
|
|
78
|
+
* computer succeeds.
|
|
79
|
+
* Returns 403 when the caller can see the computer but not manage it, 409 when
|
|
80
|
+
* it is neither `ready` nor `paused`, and 422 `unsupported` when its provider
|
|
81
|
+
* cannot pause.
|
|
82
|
+
* @param computer - Computer ID (`cmp_...`).
|
|
83
|
+
* @returns The computer in its `"paused"` state.
|
|
84
|
+
*/
|
|
85
|
+
async pause(computer) {
|
|
86
|
+
return this.http.request(`/api/v1/computers/${computer}/pause`, { method: "POST" });
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Resume a computer
|
|
90
|
+
* Starts a paused computer from its kept disk and returns it with status
|
|
91
|
+
* `ready`. Authorized like pause: any computer the caller can manage. Resuming a
|
|
92
|
+
* running computer succeeds.
|
|
93
|
+
* Returns 403 when the caller can see the computer but not manage it, 409 when
|
|
94
|
+
* it is neither `ready` nor `paused`, and 422 `unsupported` when its provider
|
|
95
|
+
* cannot pause or resume.
|
|
96
|
+
* @param computer - Computer ID (`cmp_...`).
|
|
97
|
+
* @returns The computer in its `"ready"` state.
|
|
98
|
+
*/
|
|
99
|
+
async resume(computer) {
|
|
100
|
+
return this.http.request(`/api/v1/computers/${computer}/resume`, { method: "POST" });
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Run repository setup
|
|
104
|
+
* @param input - Request body.
|
|
105
|
+
* @param input.force - Run again even when commit and bundle are unchanged.
|
|
106
|
+
* @param input.setup_bundle - Replacement base64 tar.gz setup bundle.
|
|
107
|
+
* @returns Successful response
|
|
108
|
+
*/
|
|
109
|
+
async setup(computer, input) {
|
|
110
|
+
return this.http.request(`/api/v1/computers/${computer}/setup`, { method: "POST", body: input });
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
//# sourceMappingURL=computers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computers.js","sourceRoot":"","sources":["../../../src/v1/resources/computers.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,wEAAwE;AACxE,6BAA6B;AAM7B,MAAM,OAAO,gBAAgB;IACP;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC;;;;OAIG;IACH,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChD,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,MAAM,CAAC,KAAsR;QACjS,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CAAC,QAAgB;QAC3B,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAqB,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,GAAG,CAAC,QAAgB;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,qBAAq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