@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 03:37 UTC

main
ts 230 lines 11.1 KB
Raw
1 // Generated by @effect/graphql-generator. Do not edit.
2 import * as Schema from "effect/Schema"
3
4 export const Int = Schema.Number.check(Schema.isInt32())
5
6 export const ID = Schema.String
7
8 /**
9 * - `ANDROID`
10 * - `IOS`
11 */
12 export const AppPlatform = Schema.Literals(["ANDROID", "IOS"])
13 export type AppPlatform = typeof AppPlatform.Type
14
15 /**
16 * Where the virtual device's proxied network traffic exits to the internet. When
17 * unset, all traffic exits from EAS infrastructure.
18 *
19 * - `LOCAL`: HTTP(S) requests that honor the device's system proxy exit through a reverse tunnel to the machine running the EAS CLI egress client, so third parties see that machine's public IP. Those requests fail while the client is disconnected. Requests from libraries that bypass the system proxy are not covered and exit from EAS infrastructure. The client must stay connected for the life of the session.
20 */
21 export const DeviceRunSessionEgress = Schema.Literals(["LOCAL"])
22 export type DeviceRunSessionEgress = typeof DeviceRunSessionEgress.Type
23
24 /**
25 * The client that sent a session creation request, as reported by that client. Recorded
26 * for analytics only and never used for authorization.
27 *
28 * - `EAS_CLI`
29 * - `MCP`
30 * - `WEBSITE`
31 */
32 export const DeviceRunSessionRequestOrigin = Schema.Literals(["EAS_CLI", "MCP", "WEBSITE"])
33 export type DeviceRunSessionRequestOrigin = typeof DeviceRunSessionRequestOrigin.Type
34
35 /**
36 * - `LARGE`
37 * - `MEDIUM`
38 */
39 export const DeviceRunSessionResourceClass = Schema.Literals(["LARGE", "MEDIUM"])
40 export type DeviceRunSessionResourceClass = typeof DeviceRunSessionResourceClass.Type
41
42 /**
43 * - `ERRORED`
44 * - `IN_PROGRESS`
45 * - `NEW`
46 * - `QUEUED`: The session's job run waits in the queue for a worker.
47 * - `STARTING`: A worker runs the session's job and prepares the virtual device.
48 * - `STOPPED`
49 */
50 export const DeviceRunSessionStatus = Schema.Literals(["ERRORED", "IN_PROGRESS", "NEW", "QUEUED", "STARTING", "STOPPED"])
51 export type DeviceRunSessionStatus = typeof DeviceRunSessionStatus.Type
52
53 /**
54 * - `AGENT_DEVICE`
55 * - `APPIUM`
56 * - `ARGENT`
57 * - `SERVE_SIM` Deprecated: Use WEB_PREVIEW_ONLY instead.
58 * - `WEB_PREVIEW_ONLY`: A session accessed only through its web preview.
59 */
60 export const DeviceRunSessionType = Schema.Literals(["AGENT_DEVICE", "APPIUM", "ARGENT", "SERVE_SIM", "WEB_PREVIEW_ONLY"])
61 export type DeviceRunSessionType = typeof DeviceRunSessionType.Type
62
63 export const CreateAndroidDeviceRunSessionInput = Schema.Struct({
64 /** AVD hardware profile id to use for the emulator (e.g. "pixel_9"). */
65 deviceIdentifier: Schema.optional(Schema.NullOr(Schema.String)),
66 /**
67 * Android SDK system image package to use for the emulator (e.g.
68 * "system-images;android-35;google_apis;x86_64").
69 */
70 systemImagePackage: Schema.optional(Schema.NullOr(Schema.String))
71 })
72 export interface CreateAndroidDeviceRunSessionInput extends Schema.Struct.Type<typeof CreateAndroidDeviceRunSessionInput.fields> {}
73
74 export const CreateIosDeviceRunSessionInput = Schema.Struct({
75 /** Simulator device name or UDID to use for the session (e.g. "iPhone 16 Pro"). */
76 deviceIdentifier: Schema.optional(Schema.NullOr(Schema.String))
77 })
78 export interface CreateIosDeviceRunSessionInput extends Schema.Struct.Type<typeof CreateIosDeviceRunSessionInput.fields> {}
79
80 export const CreateDeviceRunSessionInput = Schema.Struct({
81 /**
82 * The coding agent sending this request, recorded for analytics only and never used for
83 * authorization. Surrounding whitespace is trimmed, and a blank value or one over 200 characters
84 * is treated as omitted.
85 */
86 agentId: Schema.optional(Schema.NullOr(Schema.String)),
87 /**
88 * The coding agent's own session identifier, recorded for analytics only and never used for
89 * authorization. Surrounding whitespace is trimmed, and a blank value or one over 200 characters
90 * is treated as omitted.
91 */
92 agentSessionId: Schema.optional(Schema.NullOr(Schema.String)),
93 /** Android emulator options. Only supported when platform is ANDROID. */
94 android: Schema.optional(Schema.NullOr(CreateAndroidDeviceRunSessionInput)),
95 appId: ID,
96 /**
97 * Application archive URL to download, install, and launch before the simulator session
98 * becomes available. Mutually exclusive with buildId, buildFingerprint, and expoGo.
99 */
100 applicationArchiveUrl: Schema.optional(Schema.NullOr(Schema.String)),
101 /**
102 * Fingerprint hash of an EAS Build to install and launch before the simulator session becomes
103 * available; the server resolves it to the most recent installable build with this fingerprint.
104 * Mutually exclusive with buildId, applicationArchiveUrl, and expoGo.
105 */
106 buildFingerprint: Schema.optional(Schema.NullOr(Schema.String)),
107 /**
108 * EAS Build to install and launch before the simulator session becomes available.
109 * Mutually exclusive with buildFingerprint, applicationArchiveUrl, and expoGo.
110 */
111 buildId: Schema.optional(Schema.NullOr(ID)),
112 /**
113 * Origins of pages that may call the session's preview host API cross-origin, for example to
114 * render the device with @expo/hub-client. Framing the preview does not need this. Same value
115 * rules as frameAncestors. At most 10. The page still needs the preview token from remoteConfig.
116 * If omitted, only expo.dev may call the preview API cross-origin.
117 */
118 corsOrigins: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
119 /**
120 * Where the virtual device's proxied network traffic exits to the internet. If
121 * omitted, all traffic exits from EAS infrastructure.
122 */
123 egress: Schema.optional(Schema.NullOr(DeviceRunSessionEgress)),
124 /**
125 * Install and launch Expo Go before the simulator session becomes available. The server resolves
126 * the platform-specific application archive. Mutually exclusive with buildId, buildFingerprint,
127 * and applicationArchiveUrl.
128 */
129 expoGo: Schema.optional(Schema.NullOr(Schema.Boolean)),
130 /**
131 * Origins of pages that may embed the session's preview host in a frame, next to expo.dev.
132 * Each value is an https origin such as https://app.example.com or a subdomain wildcard such
133 * as https://*.example.com; plain http is accepted for localhost only. At most 10. The
134 * embedding page still needs the preview token from remoteConfig, and whoever embeds the
135 * preview can also control the device. If omitted, only expo.dev may embed the preview.
136 */
137 frameAncestors: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
138 /** iOS Simulator options. Only supported when platform is IOS. */
139 ios: Schema.optional(Schema.NullOr(CreateIosDeviceRunSessionInput)),
140 /**
141 * Arguments passed to the installed application when it is launched. Requires buildId,
142 * applicationArchiveUrl, or expoGo.
143 */
144 launchArgs: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
145 /**
146 * Stop the session automatically after this many minutes without observed
147 * session activity. Must be positive and smaller than the session's maximum
148 * duration (maxRunTimeMinutes when set). Only supported for
149 * agent-device, argent, and Appium sessions. If omitted, the session has no idle
150 * timeout.
151 */
152 maxIdleTimeMinutes: Schema.optional(Schema.NullOr(Int)),
153 /**
154 * Maximum usable session duration, in minutes, starting when the remote session
155 * is ready. Must be non-negative and no greater than 40 for normal-priority
156 * accounts or 115 for high-priority accounts. The backing job receives an
157 * additional five minutes for cleanup.
158 */
159 maxRunTimeMinutes: Schema.optional(Schema.NullOr(Int)),
160 /**
161 * Human-readable label for the session, at most 255 characters after leading and
162 * trailing whitespace is trimmed. If omitted, the session is unnamed and clients
163 * fall back to identifying it by id.
164 */
165 name: Schema.optional(Schema.NullOr(Schema.String)),
166 /**
167 * Record HTTP(S) traffic from apps on the device for the whole session. iOS only.
168 * HTTPS is decrypted, so recordings contain credentials and cookies in cleartext.
169 * If omitted, no traffic is recorded.
170 */
171 networkCapture: Schema.optional(Schema.NullOr(Schema.Boolean)),
172 /**
173 * What network capture may keep beyond method, URL, status, timing and size: header, query,
174 * request-body, response-body. Each can carry credentials, so nothing here is recorded unless
175 * it is asked for. Requires networkCapture.
176 */
177 networkCaptureFields: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
178 /**
179 * Expo or development-client URL to open after launching the installed application. Requires
180 * buildId, applicationArchiveUrl, or expoGo.
181 */
182 openUrl: Schema.optional(Schema.NullOr(Schema.String)),
183 /**
184 * The version of the package backing the device run session (e.g. "0.1.3-alpha.3").
185 * If omitted, consumers treat the session as pinned to "latest".
186 */
187 packageVersion: Schema.optional(Schema.NullOr(Schema.String)),
188 platform: AppPlatform,
189 /**
190 * Prefer public preview links and show the preview host's Share button. Defaults to false.
191 * This is a presentation preference and does not change access to bearer links.
192 */
193 publicPreview: Schema.optional(Schema.NullOr(Schema.Boolean)),
194 /**
195 * The client sending this request, recorded for analytics only. Omit it when the
196 * client is not one of the listed values; the session is then reported as unknown.
197 */
198 requestOrigin: Schema.optional(Schema.NullOr(DeviceRunSessionRequestOrigin)),
199 resourceClass: Schema.optional(Schema.NullOr(DeviceRunSessionResourceClass)),
200 /**
201 * Expo SDK version used to select an Expo Go application archive. Only supported when expoGo is
202 * true. If omitted, the current Expo Go archive for the platform is used.
203 */
204 sdkVersion: Schema.optional(Schema.NullOr(Schema.String)),
205 /** Free-form labels for grouping sessions, for example one per app variant. */
206 tags: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
207 type: DeviceRunSessionType
208 })
209 export interface CreateDeviceRunSessionInput extends Schema.Struct.Type<typeof CreateDeviceRunSessionInput.fields> {}
210
211 export const DeviceRunSessionFilterInput = Schema.Struct({
212 /** Case-insensitive match anywhere in the session name. */
213 name: Schema.optional(Schema.NullOr(Schema.String)),
214 platforms: Schema.optional(Schema.NullOr(Schema.Array(AppPlatform))),
215 statuses: Schema.optional(Schema.NullOr(Schema.Array(DeviceRunSessionStatus))),
216 /** Matches sessions carrying every listed tag. Case-insensitive. */
217 tags: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
218 types: Schema.optional(Schema.NullOr(Schema.Array(DeviceRunSessionType)))
219 })
220 export interface DeviceRunSessionFilterInput extends Schema.Struct.Type<typeof DeviceRunSessionFilterInput.fields> {}
221
222 /** The possible `__typename` values of each interface and union the operations select from. */
223 export declare namespace Typename {
224 /** Every possible `__typename` of interface `Actor`. */
225 export type Actor = "PartnerActor" | "Robot" | "SSOUser" | "User"
226 /** Every possible `__typename` of union `DeviceRunSessionRemoteConfig`. */
227 export type DeviceRunSessionRemoteConfig =
228 | "AgentDeviceRunSessionRemoteConfig" | "AppiumRunSessionRemoteConfig" | "ArgentRunSessionRemoteConfig"
229 | "ServeSimRunSessionRemoteConfig" | "WebPreviewOnlyRunSessionRemoteConfig"
230 }