Skip to content
Source
Sign inSign up
Open History to see the last commit

expo.graphql.ts

233 lines11.3 KB

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