eas-cli 24.0.0 → 24.1.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/README.md +387 -257
- package/build/commands/simulator/egress.d.ts +13 -0
- package/build/commands/simulator/egress.js +60 -0
- package/build/commands/simulator/index.d.ts +2 -0
- package/build/commands/simulator/index.js +75 -9
- package/build/graphql/generated.d.ts +141 -0
- package/build/graphql/generated.js +19 -3
- package/build/graphql/queries/DeviceRunSessionQuery.js +20 -0
- package/build/simulator/egress.d.ts +121 -0
- package/build/simulator/egress.js +865 -0
- package/build/simulator/env.d.ts +5 -0
- package/build/simulator/env.js +42 -1
- package/build/simulator/utils.d.ts +42 -2
- package/build/simulator/utils.js +114 -5
- package/oclif.manifest.json +1438 -1338
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import EasCommand from '../../commandUtils/EasCommand';
|
|
2
|
+
export default class SimulatorEgress extends EasCommand {
|
|
3
|
+
static hidden: boolean;
|
|
4
|
+
static aliases: string[];
|
|
5
|
+
static description: string;
|
|
6
|
+
static flags: {
|
|
7
|
+
'config-type': import("@oclif/core/lib/interfaces").OptionFlag<"env" | "dotenv", import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
|
+
};
|
|
9
|
+
static contextDefinition: {
|
|
10
|
+
projectDir: import("../../commandUtils/context/ProjectDirContextField").default;
|
|
11
|
+
};
|
|
12
|
+
runAsync(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
6
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
7
|
+
const egress_1 = require("../../simulator/egress");
|
|
8
|
+
const env_1 = require("../../simulator/env");
|
|
9
|
+
class SimulatorEgress extends EasCommand_1.default {
|
|
10
|
+
static hidden = true;
|
|
11
|
+
static aliases = ['sim:egress'];
|
|
12
|
+
static description = `[EXPERIMENTAL] run the local egress client for a simulator session to route proxied HTTP(S) requests through this machine`;
|
|
13
|
+
static flags = {
|
|
14
|
+
'config-type': core_1.Flags.option({
|
|
15
|
+
description: `Read session credentials from ${env_1.SIMULATOR_DOTENV_FILE_NAME} (dotenv) or the current shell environment (env).`,
|
|
16
|
+
options: ['dotenv', 'env'],
|
|
17
|
+
default: 'dotenv',
|
|
18
|
+
})(),
|
|
19
|
+
};
|
|
20
|
+
static contextDefinition = {
|
|
21
|
+
...this.ContextOptions.ProjectDir,
|
|
22
|
+
};
|
|
23
|
+
async runAsync() {
|
|
24
|
+
const { flags } = await this.parse(SimulatorEgress);
|
|
25
|
+
const { projectDir } = await this.getContextAsync(SimulatorEgress, {
|
|
26
|
+
nonInteractive: true,
|
|
27
|
+
});
|
|
28
|
+
if (flags['config-type'] === 'dotenv') {
|
|
29
|
+
await (0, env_1.loadSimulatorEnvAsync)(projectDir);
|
|
30
|
+
}
|
|
31
|
+
const egress = (0, egress_1.readLocalEgressConfigFromEnv)(process.env);
|
|
32
|
+
const deviceRunSessionId = process.env[env_1.EAS_SIMULATOR_SESSION_ID];
|
|
33
|
+
log_1.default.log(`Starting the local egress client${deviceRunSessionId ? ` for simulator session ${deviceRunSessionId}` : ''}. When connected, proxied HTTP(S) requests can use this machine's network.`);
|
|
34
|
+
log_1.default.log('Press Ctrl+C to stop the egress client. The simulator session keeps running; ' +
|
|
35
|
+
`proxied HTTP(S) requests are unavailable until the tunnel reconnects. Stop the session with \`eas simulator:stop${deviceRunSessionId ? ` --id ${deviceRunSessionId}` : ''}\`.`);
|
|
36
|
+
log_1.default.newLine();
|
|
37
|
+
const abortController = new AbortController();
|
|
38
|
+
const handleSigint = () => {
|
|
39
|
+
abortController.abort();
|
|
40
|
+
};
|
|
41
|
+
process.on('SIGINT', handleSigint);
|
|
42
|
+
try {
|
|
43
|
+
await (0, egress_1.runLocalEgressAsync)({
|
|
44
|
+
...egress,
|
|
45
|
+
signal: abortController.signal,
|
|
46
|
+
onConnected: () => {
|
|
47
|
+
log_1.default.succeed("Egress tunnel connected. Proxied HTTP(S) requests can use this machine's network.");
|
|
48
|
+
},
|
|
49
|
+
onDisconnected: () => {
|
|
50
|
+
log_1.default.warn('Egress tunnel disconnected; reconnecting. Proxied HTTP(S) requests are unavailable until it reconnects.');
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
finally {
|
|
55
|
+
process.removeListener('SIGINT', handleSigint);
|
|
56
|
+
}
|
|
57
|
+
log_1.default.log('Egress client stopped.');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.default = SimulatorEgress;
|
|
@@ -21,6 +21,8 @@ export default class Simulator extends EasCommand {
|
|
|
21
21
|
'max-duration-minutes': import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
22
22
|
'max-idle-time-minutes': import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
23
23
|
'resource-class': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
24
|
+
egress: import("@oclif/core/lib/interfaces").OptionFlag<"local" | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
25
|
+
'egress-allow': import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
24
26
|
force: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
25
27
|
'out-config-type': import("@oclif/core/lib/interfaces").OptionFlag<"env" | "dotenv", import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
26
28
|
};
|
|
@@ -14,6 +14,7 @@ const DeviceRunSessionQuery_1 = require("../../graphql/queries/DeviceRunSessionQ
|
|
|
14
14
|
const log_1 = tslib_1.__importStar(require("../../log"));
|
|
15
15
|
const ora_1 = require("../../ora");
|
|
16
16
|
const prompts_1 = require("../../prompts");
|
|
17
|
+
const egress_1 = require("../../simulator/egress");
|
|
17
18
|
const env_1 = require("../../simulator/env");
|
|
18
19
|
const expoGo_1 = require("../../simulator/expoGo");
|
|
19
20
|
const utils_1 = require("../../simulator/utils");
|
|
@@ -26,6 +27,7 @@ const OUT_CONFIG_TYPE_VALUES = {
|
|
|
26
27
|
Dotenv: 'dotenv',
|
|
27
28
|
};
|
|
28
29
|
const PLATFORM_FLAG_VALUES = ['android', 'ios'];
|
|
30
|
+
const EGRESS_FLAG_VALUES = ['local'];
|
|
29
31
|
const APP_PLATFORM_BY_FLAG_VALUE = {
|
|
30
32
|
android: generated_1.AppPlatform.Android,
|
|
31
33
|
ios: generated_1.AppPlatform.Ios,
|
|
@@ -93,6 +95,15 @@ class Simulator extends EasCommand_1.default {
|
|
|
93
95
|
hidden: true,
|
|
94
96
|
options: Object.values(utils_1.DEVICE_RUN_SESSION_RESOURCE_CLASS_FLAG_VALUES),
|
|
95
97
|
})(),
|
|
98
|
+
egress: core_1.Flags.option({
|
|
99
|
+
description: 'With "local", the simulator system proxy points at this machine: HTTP(S) and WebSocket requests that honor it (WebKit, URLSession) exit from this machine and fail while the egress client is disconnected. Requests from libraries that bypass the system proxy are not covered. The egress client must keep running for the life of the session. Only supported with --platform ios.',
|
|
100
|
+
options: EGRESS_FLAG_VALUES,
|
|
101
|
+
})(),
|
|
102
|
+
'egress-allow': core_1.Flags.string({
|
|
103
|
+
description: 'Destination on this machine or its network that the simulator may reach through local egress, as an exact host:port (for example localhost:3000). Repeat for multiple destinations. A localhost or 127.0.0.1 entry also forwards that port from the simulator host to this machine (like adb reverse), so dev server URLs that use 127.0.0.1 work. Requires --egress local.',
|
|
104
|
+
multiple: true,
|
|
105
|
+
dependsOn: ['egress'],
|
|
106
|
+
}),
|
|
96
107
|
force: core_1.Flags.boolean({
|
|
97
108
|
description: '[default: true] Create a new simulator session even when an existing simulator session is present in the environment.',
|
|
98
109
|
default: true,
|
|
@@ -156,6 +167,17 @@ class Simulator extends EasCommand_1.default {
|
|
|
156
167
|
throw new Error(`Existing simulator session in environment. Use --force to create a new simulator session.`);
|
|
157
168
|
}
|
|
158
169
|
const platform = await resolvePlatformAsync(flags.platform, nonInteractive);
|
|
170
|
+
const egress = flags.egress === 'local' ? generated_1.DeviceRunSessionEgress.Local : undefined;
|
|
171
|
+
if (egress && platform !== generated_1.AppPlatform.Ios) {
|
|
172
|
+
throw new errors_1.EasCommandError('--egress local is only supported with --platform ios.');
|
|
173
|
+
}
|
|
174
|
+
let egressAllow = [];
|
|
175
|
+
try {
|
|
176
|
+
egressAllow = (0, egress_1.parseEgressAllowList)(flags['egress-allow'] ?? []);
|
|
177
|
+
}
|
|
178
|
+
catch (err) {
|
|
179
|
+
throw new errors_1.EasCommandError(err instanceof Error ? err.message : String(err));
|
|
180
|
+
}
|
|
159
181
|
if (platform === generated_1.AppPlatform.Android) {
|
|
160
182
|
log_1.default.warn('Android emulator support in EAS Simulator is still in development. Some features available on iOS may not work on Android yet. Full parity with iOS is coming soon.');
|
|
161
183
|
log_1.default.newLine();
|
|
@@ -194,6 +216,7 @@ class Simulator extends EasCommand_1.default {
|
|
|
194
216
|
...(launchArgs?.length ? { launchArgs } : {}),
|
|
195
217
|
...(openUrl ? { openUrl } : {}),
|
|
196
218
|
...(resourceClass ? { resourceClass } : {}),
|
|
219
|
+
...(egress ? { egress } : {}),
|
|
197
220
|
maxRunTimeMinutes: flags['max-duration-minutes'],
|
|
198
221
|
maxIdleTimeMinutes: flags['max-idle-time-minutes'],
|
|
199
222
|
});
|
|
@@ -267,7 +290,7 @@ class Simulator extends EasCommand_1.default {
|
|
|
267
290
|
}
|
|
268
291
|
if (flags['out-config-type'] === OUT_CONFIG_TYPE_VALUES.Dotenv) {
|
|
269
292
|
await writeSimulatorEnvSafelyAsync(projectDir, {
|
|
270
|
-
...(0, utils_1.getRemoteSessionEnvironmentVariables)(remoteConfig),
|
|
293
|
+
...(0, utils_1.getRemoteSessionEnvironmentVariables)(remoteConfig, { egressAllow }),
|
|
271
294
|
[env_1.EAS_SIMULATOR_SESSION_ID]: deviceRunSessionId,
|
|
272
295
|
});
|
|
273
296
|
}
|
|
@@ -293,20 +316,60 @@ class Simulator extends EasCommand_1.default {
|
|
|
293
316
|
return;
|
|
294
317
|
}
|
|
295
318
|
log_1.default.newLine();
|
|
296
|
-
log_1.default.log((0, utils_1.formatRemoteSessionInstructions)(remoteConfig, flags['out-config-type']));
|
|
319
|
+
log_1.default.log((0, utils_1.formatRemoteSessionInstructions)(remoteConfig, flags['out-config-type'], { egressAllow }));
|
|
297
320
|
log_1.default.newLine();
|
|
321
|
+
const localEgress = (0, utils_1.getLocalEgressConfig)(remoteConfig, egressAllow);
|
|
298
322
|
if (nonInteractive) {
|
|
299
323
|
sessionInterrupt.dispose();
|
|
324
|
+
if (localEgress) {
|
|
325
|
+
log_1.default.log(`Start \`eas simulator:egress${flags['out-config-type'] === OUT_CONFIG_TYPE_VALUES.Env ? ' --config-type env' : ''}\` in another process to connect the tunnel for proxied HTTP(S) requests.`);
|
|
326
|
+
}
|
|
300
327
|
log_1.default.log(`When you are done, stop the session with: eas simulator:stop --id ${deviceRunSessionId}`);
|
|
301
328
|
return;
|
|
302
329
|
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
330
|
+
// In interactive mode the egress client runs right here, for as long as the
|
|
331
|
+
// session does. A session with a disconnected tunnel still bills, so Ctrl+C stops both.
|
|
332
|
+
let egressPromise;
|
|
333
|
+
let egressError;
|
|
334
|
+
const egressAbortController = new AbortController();
|
|
335
|
+
if (localEgress) {
|
|
336
|
+
log_1.default.log("🔀 Running the egress client in this terminal. When connected, proxied HTTP(S) requests can use this machine's network.");
|
|
337
|
+
log_1.default.log('Press Ctrl+C to stop both the egress client and the simulator session.');
|
|
338
|
+
log_1.default.newLine();
|
|
339
|
+
sessionInterrupt.signal.addEventListener('abort', () => {
|
|
340
|
+
egressAbortController.abort();
|
|
341
|
+
}, { once: true });
|
|
342
|
+
egressPromise = (0, egress_1.runLocalEgressAsync)({
|
|
343
|
+
...localEgress,
|
|
344
|
+
signal: egressAbortController.signal,
|
|
345
|
+
onConnected: () => {
|
|
346
|
+
log_1.default.succeed("Egress tunnel connected. Proxied HTTP(S) requests can use this machine's network.");
|
|
347
|
+
},
|
|
348
|
+
onDisconnected: () => {
|
|
349
|
+
log_1.default.warn('Egress tunnel disconnected; reconnecting. Proxied HTTP(S) requests are unavailable until it reconnects.');
|
|
350
|
+
},
|
|
351
|
+
}).catch(err => {
|
|
352
|
+
egressError = err instanceof Error ? err : new Error(String(err));
|
|
353
|
+
log_1.default.error(`${err instanceof Error ? err.message : String(err)} Stopping the simulator session.`);
|
|
354
|
+
sessionInterrupt.abort();
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
try {
|
|
358
|
+
await waitForSessionEndOrInterruptAsync({
|
|
359
|
+
graphqlClient,
|
|
360
|
+
deviceRunSessionId,
|
|
361
|
+
deviceRunSessionUrl,
|
|
362
|
+
projectDir,
|
|
363
|
+
sessionInterrupt,
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
finally {
|
|
367
|
+
egressAbortController.abort();
|
|
368
|
+
await egressPromise;
|
|
369
|
+
}
|
|
370
|
+
if (egressError) {
|
|
371
|
+
throw egressError;
|
|
372
|
+
}
|
|
310
373
|
}
|
|
311
374
|
}
|
|
312
375
|
exports.default = Simulator;
|
|
@@ -402,6 +465,9 @@ function registerSessionInterrupt(deviceRunSessionId) {
|
|
|
402
465
|
return {
|
|
403
466
|
signal,
|
|
404
467
|
abortPromise,
|
|
468
|
+
abort: () => {
|
|
469
|
+
abortController.abort();
|
|
470
|
+
},
|
|
405
471
|
dispose: () => process.removeListener('SIGINT', sigintHandler),
|
|
406
472
|
};
|
|
407
473
|
}
|
|
@@ -972,6 +972,26 @@ export type AgentDeviceRunSessionRemoteConfig = {
|
|
|
972
972
|
__typename?: 'AgentDeviceRunSessionRemoteConfig';
|
|
973
973
|
agentDeviceRemoteSessionToken: Scalars['String']['output'];
|
|
974
974
|
agentDeviceRemoteSessionUrl: Scalars['String']['output'];
|
|
975
|
+
/**
|
|
976
|
+
* Fingerprint of the reverse-tunnel server key for the client to pin. Null when
|
|
977
|
+
* the session does not use local egress.
|
|
978
|
+
*/
|
|
979
|
+
egressFingerprint?: Maybe<Scalars['String']['output']>;
|
|
980
|
+
/**
|
|
981
|
+
* Loopback port on the device host that the local egress client must serve
|
|
982
|
+
* through the tunnel. Null when the session does not use local egress.
|
|
983
|
+
*/
|
|
984
|
+
egressPort?: Maybe<Scalars['Int']['output']>;
|
|
985
|
+
/**
|
|
986
|
+
* Secret the local egress client presents to the reverse-tunnel endpoint. Null
|
|
987
|
+
* when the session does not use local egress.
|
|
988
|
+
*/
|
|
989
|
+
egressToken?: Maybe<Scalars['String']['output']>;
|
|
990
|
+
/**
|
|
991
|
+
* Reverse-tunnel endpoint the local egress client connects to. Null when the
|
|
992
|
+
* session does not use local egress.
|
|
993
|
+
*/
|
|
994
|
+
egressUrl?: Maybe<Scalars['String']['output']>;
|
|
975
995
|
/** Session token gating the web preview. Null when the preview runs ungated. */
|
|
976
996
|
webPreviewToken?: Maybe<Scalars['String']['output']>;
|
|
977
997
|
/**
|
|
@@ -4043,6 +4063,26 @@ export type AppiumRunSessionRemoteConfig = {
|
|
|
4043
4063
|
appiumUrl: Scalars['String']['output'];
|
|
4044
4064
|
/** W3C capabilities for the device that backs this session. */
|
|
4045
4065
|
capabilities: Scalars['JSONObject']['output'];
|
|
4066
|
+
/**
|
|
4067
|
+
* Fingerprint of the reverse-tunnel server key for the client to pin. Null when
|
|
4068
|
+
* the session does not use local egress.
|
|
4069
|
+
*/
|
|
4070
|
+
egressFingerprint?: Maybe<Scalars['String']['output']>;
|
|
4071
|
+
/**
|
|
4072
|
+
* Loopback port on the device host that the local egress client must serve
|
|
4073
|
+
* through the tunnel. Null when the session does not use local egress.
|
|
4074
|
+
*/
|
|
4075
|
+
egressPort?: Maybe<Scalars['Int']['output']>;
|
|
4076
|
+
/**
|
|
4077
|
+
* Secret the local egress client presents to the reverse-tunnel endpoint. Null
|
|
4078
|
+
* when the session does not use local egress.
|
|
4079
|
+
*/
|
|
4080
|
+
egressToken?: Maybe<Scalars['String']['output']>;
|
|
4081
|
+
/**
|
|
4082
|
+
* Reverse-tunnel endpoint the local egress client connects to. Null when the
|
|
4083
|
+
* session does not use local egress.
|
|
4084
|
+
*/
|
|
4085
|
+
egressUrl?: Maybe<Scalars['String']['output']>;
|
|
4046
4086
|
/** Session token gating the web preview. Null when the preview runs ungated. */
|
|
4047
4087
|
webPreviewToken?: Maybe<Scalars['String']['output']>;
|
|
4048
4088
|
/**
|
|
@@ -4370,6 +4410,26 @@ export type AppleTeamUpdateInput = {
|
|
|
4370
4410
|
};
|
|
4371
4411
|
export type ArgentRunSessionRemoteConfig = {
|
|
4372
4412
|
__typename?: 'ArgentRunSessionRemoteConfig';
|
|
4413
|
+
/**
|
|
4414
|
+
* Fingerprint of the reverse-tunnel server key for the client to pin. Null when
|
|
4415
|
+
* the session does not use local egress.
|
|
4416
|
+
*/
|
|
4417
|
+
egressFingerprint?: Maybe<Scalars['String']['output']>;
|
|
4418
|
+
/**
|
|
4419
|
+
* Loopback port on the device host that the local egress client must serve
|
|
4420
|
+
* through the tunnel. Null when the session does not use local egress.
|
|
4421
|
+
*/
|
|
4422
|
+
egressPort?: Maybe<Scalars['Int']['output']>;
|
|
4423
|
+
/**
|
|
4424
|
+
* Secret the local egress client presents to the reverse-tunnel endpoint. Null
|
|
4425
|
+
* when the session does not use local egress.
|
|
4426
|
+
*/
|
|
4427
|
+
egressToken?: Maybe<Scalars['String']['output']>;
|
|
4428
|
+
/**
|
|
4429
|
+
* Reverse-tunnel endpoint the local egress client connects to. Null when the
|
|
4430
|
+
* session does not use local egress.
|
|
4431
|
+
*/
|
|
4432
|
+
egressUrl?: Maybe<Scalars['String']['output']>;
|
|
4373
4433
|
toolsAuthToken?: Maybe<Scalars['String']['output']>;
|
|
4374
4434
|
toolsUrl: Scalars['String']['output'];
|
|
4375
4435
|
/** Session token gating the web preview. Null when the preview runs ungated. */
|
|
@@ -5398,6 +5458,12 @@ export type CreateDeviceRunSessionInput = {
|
|
|
5398
5458
|
* Mutually exclusive with buildFingerprint, applicationArchiveUrl, and expoGo.
|
|
5399
5459
|
*/
|
|
5400
5460
|
buildId?: InputMaybe<Scalars['ID']['input']>;
|
|
5461
|
+
/**
|
|
5462
|
+
* Where the virtual device's proxied network traffic exits to the internet. If
|
|
5463
|
+
* omitted, all traffic exits from EAS infrastructure. LOCAL is only supported for
|
|
5464
|
+
* sessions on IOS.
|
|
5465
|
+
*/
|
|
5466
|
+
egress?: InputMaybe<DeviceRunSessionEgress>;
|
|
5401
5467
|
/**
|
|
5402
5468
|
* Install and launch Expo Go before the simulator session becomes available. The server resolves
|
|
5403
5469
|
* the platform-specific application archive. Mutually exclusive with buildId, buildFingerprint,
|
|
@@ -6032,6 +6098,21 @@ export type DeviceRunSessionArtifactUploadSession = {
|
|
|
6032
6098
|
headers: Scalars['JSONObject']['output'];
|
|
6033
6099
|
url: Scalars['String']['output'];
|
|
6034
6100
|
};
|
|
6101
|
+
/**
|
|
6102
|
+
* Where the virtual device's proxied network traffic exits to the internet. When
|
|
6103
|
+
* unset, all traffic exits from EAS infrastructure.
|
|
6104
|
+
*/
|
|
6105
|
+
export declare enum DeviceRunSessionEgress {
|
|
6106
|
+
/**
|
|
6107
|
+
* HTTP(S) requests that honor the device's system proxy exit through a reverse
|
|
6108
|
+
* tunnel to the machine running the EAS CLI egress client, so third parties see
|
|
6109
|
+
* that machine's public IP. Those requests fail while the client is disconnected.
|
|
6110
|
+
* Requests from libraries that bypass the system proxy are not covered and exit
|
|
6111
|
+
* from EAS infrastructure. The client must stay connected for the life of the
|
|
6112
|
+
* session.
|
|
6113
|
+
*/
|
|
6114
|
+
Local = "LOCAL"
|
|
6115
|
+
}
|
|
6035
6116
|
export type DeviceRunSessionEventLogUploadSession = {
|
|
6036
6117
|
__typename?: 'DeviceRunSessionEventLogUploadSession';
|
|
6037
6118
|
headers: Scalars['JSONObject']['output'];
|
|
@@ -9423,6 +9504,26 @@ export type SentryProjectMutation_DeleteSentryProjectArgs = {
|
|
|
9423
9504
|
*/
|
|
9424
9505
|
export type ServeSimRunSessionRemoteConfig = {
|
|
9425
9506
|
__typename?: 'ServeSimRunSessionRemoteConfig';
|
|
9507
|
+
/**
|
|
9508
|
+
* Fingerprint of the reverse-tunnel server key for the client to pin. Null when
|
|
9509
|
+
* the session does not use local egress.
|
|
9510
|
+
*/
|
|
9511
|
+
egressFingerprint?: Maybe<Scalars['String']['output']>;
|
|
9512
|
+
/**
|
|
9513
|
+
* Loopback port on the device host that the local egress client must serve
|
|
9514
|
+
* through the tunnel. Null when the session does not use local egress.
|
|
9515
|
+
*/
|
|
9516
|
+
egressPort?: Maybe<Scalars['Int']['output']>;
|
|
9517
|
+
/**
|
|
9518
|
+
* Secret the local egress client presents to the reverse-tunnel endpoint. Null
|
|
9519
|
+
* when the session does not use local egress.
|
|
9520
|
+
*/
|
|
9521
|
+
egressToken?: Maybe<Scalars['String']['output']>;
|
|
9522
|
+
/**
|
|
9523
|
+
* Reverse-tunnel endpoint the local egress client connects to. Null when the
|
|
9524
|
+
* session does not use local egress.
|
|
9525
|
+
*/
|
|
9526
|
+
egressUrl?: Maybe<Scalars['String']['output']>;
|
|
9426
9527
|
/** Session token gating the preview. Null when the preview runs ungated. */
|
|
9427
9528
|
previewToken?: Maybe<Scalars['String']['output']>;
|
|
9428
9529
|
previewUrl: Scalars['String']['output'];
|
|
@@ -11152,6 +11253,26 @@ export type WebNotificationUpdateReadStateInput = {
|
|
|
11152
11253
|
};
|
|
11153
11254
|
export type WebPreviewOnlyRunSessionRemoteConfig = {
|
|
11154
11255
|
__typename?: 'WebPreviewOnlyRunSessionRemoteConfig';
|
|
11256
|
+
/**
|
|
11257
|
+
* Fingerprint of the reverse-tunnel server key for the client to pin. Null when
|
|
11258
|
+
* the session does not use local egress.
|
|
11259
|
+
*/
|
|
11260
|
+
egressFingerprint?: Maybe<Scalars['String']['output']>;
|
|
11261
|
+
/**
|
|
11262
|
+
* Loopback port on the device host that the local egress client must serve
|
|
11263
|
+
* through the tunnel. Null when the session does not use local egress.
|
|
11264
|
+
*/
|
|
11265
|
+
egressPort?: Maybe<Scalars['Int']['output']>;
|
|
11266
|
+
/**
|
|
11267
|
+
* Secret the local egress client presents to the reverse-tunnel endpoint. Null
|
|
11268
|
+
* when the session does not use local egress.
|
|
11269
|
+
*/
|
|
11270
|
+
egressToken?: Maybe<Scalars['String']['output']>;
|
|
11271
|
+
/**
|
|
11272
|
+
* Reverse-tunnel endpoint the local egress client connects to. Null when the
|
|
11273
|
+
* session does not use local egress.
|
|
11274
|
+
*/
|
|
11275
|
+
egressUrl?: Maybe<Scalars['String']['output']>;
|
|
11155
11276
|
/** Session token gating the web preview. Null when the preview runs ungated. */
|
|
11156
11277
|
webPreviewToken?: Maybe<Scalars['String']['output']>;
|
|
11157
11278
|
webPreviewUrl: Scalars['String']['output'];
|
|
@@ -19650,24 +19771,44 @@ export type DeviceRunSessionByIdQuery = {
|
|
|
19650
19771
|
agentDeviceRemoteSessionToken: string;
|
|
19651
19772
|
webPreviewUrl?: string | null;
|
|
19652
19773
|
webPreviewToken?: string | null;
|
|
19774
|
+
egressUrl?: string | null;
|
|
19775
|
+
egressToken?: string | null;
|
|
19776
|
+
egressFingerprint?: string | null;
|
|
19777
|
+
egressPort?: number | null;
|
|
19653
19778
|
} | {
|
|
19654
19779
|
__typename: 'AppiumRunSessionRemoteConfig';
|
|
19780
|
+
egressUrl?: string | null;
|
|
19781
|
+
egressToken?: string | null;
|
|
19782
|
+
egressFingerprint?: string | null;
|
|
19783
|
+
egressPort?: number | null;
|
|
19655
19784
|
appiumUrl: string;
|
|
19656
19785
|
capabilities: any;
|
|
19657
19786
|
webPreviewUrl?: string | null;
|
|
19658
19787
|
webPreviewToken?: string | null;
|
|
19659
19788
|
} | {
|
|
19660
19789
|
__typename: 'ArgentRunSessionRemoteConfig';
|
|
19790
|
+
egressUrl?: string | null;
|
|
19791
|
+
egressToken?: string | null;
|
|
19792
|
+
egressFingerprint?: string | null;
|
|
19793
|
+
egressPort?: number | null;
|
|
19661
19794
|
toolsUrl: string;
|
|
19662
19795
|
toolsAuthToken?: string | null;
|
|
19663
19796
|
webPreviewUrl?: string | null;
|
|
19664
19797
|
webPreviewToken?: string | null;
|
|
19665
19798
|
} | {
|
|
19666
19799
|
__typename: 'ServeSimRunSessionRemoteConfig';
|
|
19800
|
+
egressUrl?: string | null;
|
|
19801
|
+
egressToken?: string | null;
|
|
19802
|
+
egressFingerprint?: string | null;
|
|
19803
|
+
egressPort?: number | null;
|
|
19667
19804
|
previewUrl: string;
|
|
19668
19805
|
previewToken?: string | null;
|
|
19669
19806
|
} | {
|
|
19670
19807
|
__typename: 'WebPreviewOnlyRunSessionRemoteConfig';
|
|
19808
|
+
egressUrl?: string | null;
|
|
19809
|
+
egressToken?: string | null;
|
|
19810
|
+
egressFingerprint?: string | null;
|
|
19811
|
+
egressPort?: number | null;
|
|
19671
19812
|
previewUrl: string;
|
|
19672
19813
|
previewToken?: string | null;
|
|
19673
19814
|
} | null;
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.BuildAnnotationType = exports.BackgroundJobState = exports.BackgroundJobResultType = exports.AuthProviderIdentifier = exports.AuthProtocolType = exports.AuditLogsExportFormat = exports.AssetMetadataStatus = exports.AssetMapSourceType = exports.AppleTeamType = exports.AppleDeviceClass = exports.AppUploadSessionType = exports.AppStoreConnectWorkflowConnectionStatus = exports.AppStoreConnectUserRole = exports.AppStoreConnectBuildUploadState = exports.AppStoreConnectBuildProcessingState = exports.AppProfileImageWidth = exports.AppPrivacy = exports.AppPlatform = exports.AppObserveUserEventNamesOrderByField = exports.AppObserveUserEventListOrderByField = exports.AppObserveUserEventBreakdownDimension = exports.AppObserveUpdatesOrderByField = exports.AppObserveUpdatesOrderByDirection = exports.AppObservePropertyType = exports.AppObservePlatform = exports.AppObserveOrderDirection = exports.AppObserveNavigationRoutesOrderByField = exports.AppObserveMetricsListOrderByField = exports.AppObserveLogsOrderByField = exports.AppObserveEventsOrderByField = exports.AppObserveEventsOrderByDirection = exports.AppObserveErrorSeverity = exports.AppObserveErrorOccurrencesOrderByField = exports.AppObserveErrorKind = exports.AppObserveErrorGroupsOrderBy = exports.AppObserveErrorBreakdownDimension = exports.AppObserveCustomEventNamesOrderByField = exports.AppObserveCustomEventNamesOrderByDirection = exports.AppObserveCustomEventListOrderByField = exports.AppInternalDistributionBuildPrivacy = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.AgentProviderConnectionStatus = exports.AgentProviderConnectionAuthorizationStatus = exports.AgentProvider = exports.ActivityTimelineProjectActivityType = exports.AccountUploadSessionType = exports.AccountMemberType = exports.AccountAppsSortByField = void 0;
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.WorkflowsInsightsRunsOverTimeGranularity = exports.WorkflowsInsightsExportFormat = exports.WorkflowRunTriggerEventType = exports.WorkflowRunStatus = exports.WorkflowProjectSourceType = exports.WorkflowJobType = exports.WorkflowJobStatus = exports.WorkflowJobReviewDecision = exports.WorkflowDispatchInputType = exports.WorkflowDeviceTestCaseStatusFilter = exports.WorkflowDeviceTestCaseStatus = exports.WorkflowDeviceTestCaseStatSortField = exports.WorkflowDeviceTestCaseSortDirection = exports.WorkflowDeviceTestCaseInsightsTimeSeriesGranularity = exports.WorkflowArtifactStorageType = exports.WorkerLoggerLevel = exports.WorkerDeploymentLogLevel = exports.WorkerDeploymentCrashKind = exports.WebhookType = exports.UserSpecifiedAccountUsage = exports.UserEntityTypeName = exports.UserAgentPlatform = exports.UserAgentOs = exports.UserAgentBrowser = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.UpdatesTimelineItemType = void 0;
|
|
10
|
+
exports.GitHubAppInstallationStatus = exports.GitHubAppInstallationAccountType = exports.GitHubAppEnvironment = exports.FingerprintSourceType = exports.Feature = exports.Experiment = exports.ExitInterviewOutcome = exports.ExitInterviewMessageRole = exports.EnvironmentVariableVisibility = exports.EnvironmentVariableScope = exports.EnvironmentSecretType = exports.EntityTypeName = exports.EchoVersionSource = exports.EchoTurnCompletionStatus = exports.EchoProjectVisibility = exports.EchoProjectUploadSessionType = exports.EchoProjectIconSource = exports.EchoMessageRole = exports.EchoMessagePartType = exports.EchoChatState = exports.EchoChangeType = exports.EchoBuildStatus = exports.EchoAgentType = exports.EasTotalPlanEnablementUnit = exports.EasServiceMetric = exports.EasService = exports.EasBuildWaiverType = exports.EasBuildDeprecationInfoType = exports.EasBuildBillingResourceClass = exports.DistributionType = exports.DeviceRunSessionType = exports.DeviceRunSessionStatus = exports.DeviceRunSessionResourceClass = exports.DeviceRunSessionEgress = exports.DashboardViewPin = exports.CustomDomainStatus = exports.CustomDomainDnsRecordType = exports.CrashSampleFor = exports.ContinentCode = exports.BuildWorkflow = exports.BuildTrigger = exports.BuildStatus = exports.BuildRetryDisabledReason = exports.BuildResourceClass = exports.BuildPriority = exports.BuildPhase = exports.BuildMode = exports.BuildLimitThresholdExceededMetadataType = exports.BuildIosEnterpriseProvisioning = exports.BuildCredentialsSource = void 0;
|
|
11
|
+
exports.UpdateDiffReceiptOrderByField = exports.UpdateDiffReceiptOrderByDirection = exports.TurtleSshTransportType = exports.TurtleSshTargetType = exports.TargetEntityMutationType = exports.SubmissionStatus = exports.SubmissionPriority = exports.SubmissionArchiveSourceType = exports.SubmissionAndroidReleaseStatus = exports.StatuspageServiceStatus = exports.StatuspageServiceName = exports.StatuspageIncidentStatus = exports.StatuspageIncidentImpact = exports.StandardOffer = exports.SecondFactorMethod = exports.Role = exports.ResponseType = exports.ResponseStatusType = exports.ResponseCacheStatus = exports.ResourceClassExperiment = exports.RequestsOrderByField = exports.RequestsOrderByDirection = exports.RequestMethod = exports.RealtimeLogsTargetType = exports.ProjectArchiveSourceType = exports.PostHogRegion = exports.PostHogDeepLinkPurpose = exports.Permission = exports.Order = exports.OnboardingEnvironment = exports.OnboardingDeviceType = exports.OfferType = exports.OAuthProvider = exports.NotificationType = exports.NotificationEvent = exports.LocalBuildArchiveSourceType = exports.JobRunStatus = exports.JobRunPriority = exports.IosSchemeBuildConfiguration = exports.IosManagedBuildType = exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = exports.InsightsFilterType = exports.GitHubJobRunTriggerType = exports.GitHubJobRunTriggerRunStatus = exports.GitHubJobRunJobType = exports.GitHubBuildTriggerType = exports.GitHubBuildTriggerRunStatus = exports.GitHubBuildTriggerExecutionBehavior = void 0;
|
|
12
|
+
exports.WorkflowsInsightsRunsOverTimeGranularity = exports.WorkflowsInsightsExportFormat = exports.WorkflowRunTriggerEventType = exports.WorkflowRunStatus = exports.WorkflowProjectSourceType = exports.WorkflowJobType = exports.WorkflowJobStatus = exports.WorkflowJobReviewDecision = exports.WorkflowDispatchInputType = exports.WorkflowDeviceTestCaseStatusFilter = exports.WorkflowDeviceTestCaseStatus = exports.WorkflowDeviceTestCaseStatSortField = exports.WorkflowDeviceTestCaseSortDirection = exports.WorkflowDeviceTestCaseInsightsTimeSeriesGranularity = exports.WorkflowArtifactStorageType = exports.WorkerLoggerLevel = exports.WorkerDeploymentLogLevel = exports.WorkerDeploymentCrashKind = exports.WebhookType = exports.UserSpecifiedAccountUsage = exports.UserEntityTypeName = exports.UserAgentPlatform = exports.UserAgentOs = exports.UserAgentBrowser = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.UpdatesTimelineItemType = exports.UpdateDiffReceiptStateValue = void 0;
|
|
13
13
|
var AccountAppsSortByField;
|
|
14
14
|
(function (AccountAppsSortByField) {
|
|
15
15
|
AccountAppsSortByField["LatestActivityTime"] = "LATEST_ACTIVITY_TIME";
|
|
@@ -504,6 +504,22 @@ var DashboardViewPin;
|
|
|
504
504
|
DashboardViewPin["Activity"] = "ACTIVITY";
|
|
505
505
|
DashboardViewPin["Overview"] = "OVERVIEW";
|
|
506
506
|
})(DashboardViewPin || (exports.DashboardViewPin = DashboardViewPin = {}));
|
|
507
|
+
/**
|
|
508
|
+
* Where the virtual device's proxied network traffic exits to the internet. When
|
|
509
|
+
* unset, all traffic exits from EAS infrastructure.
|
|
510
|
+
*/
|
|
511
|
+
var DeviceRunSessionEgress;
|
|
512
|
+
(function (DeviceRunSessionEgress) {
|
|
513
|
+
/**
|
|
514
|
+
* HTTP(S) requests that honor the device's system proxy exit through a reverse
|
|
515
|
+
* tunnel to the machine running the EAS CLI egress client, so third parties see
|
|
516
|
+
* that machine's public IP. Those requests fail while the client is disconnected.
|
|
517
|
+
* Requests from libraries that bypass the system proxy are not covered and exit
|
|
518
|
+
* from EAS infrastructure. The client must stay connected for the life of the
|
|
519
|
+
* session.
|
|
520
|
+
*/
|
|
521
|
+
DeviceRunSessionEgress["Local"] = "LOCAL";
|
|
522
|
+
})(DeviceRunSessionEgress || (exports.DeviceRunSessionEgress = DeviceRunSessionEgress = {}));
|
|
507
523
|
var DeviceRunSessionResourceClass;
|
|
508
524
|
(function (DeviceRunSessionResourceClass) {
|
|
509
525
|
DeviceRunSessionResourceClass["Large"] = "LARGE";
|
|
@@ -66,24 +66,44 @@ exports.DeviceRunSessionQuery = {
|
|
|
66
66
|
agentDeviceRemoteSessionToken
|
|
67
67
|
webPreviewUrl
|
|
68
68
|
webPreviewToken
|
|
69
|
+
egressUrl
|
|
70
|
+
egressToken
|
|
71
|
+
egressFingerprint
|
|
72
|
+
egressPort
|
|
69
73
|
}
|
|
70
74
|
... on ArgentRunSessionRemoteConfig {
|
|
75
|
+
egressUrl
|
|
76
|
+
egressToken
|
|
77
|
+
egressFingerprint
|
|
78
|
+
egressPort
|
|
71
79
|
toolsUrl
|
|
72
80
|
toolsAuthToken
|
|
73
81
|
webPreviewUrl
|
|
74
82
|
webPreviewToken
|
|
75
83
|
}
|
|
76
84
|
... on AppiumRunSessionRemoteConfig {
|
|
85
|
+
egressUrl
|
|
86
|
+
egressToken
|
|
87
|
+
egressFingerprint
|
|
88
|
+
egressPort
|
|
77
89
|
appiumUrl
|
|
78
90
|
capabilities
|
|
79
91
|
webPreviewUrl
|
|
80
92
|
webPreviewToken
|
|
81
93
|
}
|
|
82
94
|
... on ServeSimRunSessionRemoteConfig {
|
|
95
|
+
egressUrl
|
|
96
|
+
egressToken
|
|
97
|
+
egressFingerprint
|
|
98
|
+
egressPort
|
|
83
99
|
previewUrl
|
|
84
100
|
previewToken
|
|
85
101
|
}
|
|
86
102
|
... on WebPreviewOnlyRunSessionRemoteConfig {
|
|
103
|
+
egressUrl
|
|
104
|
+
egressToken
|
|
105
|
+
egressFingerprint
|
|
106
|
+
egressPort
|
|
87
107
|
previewUrl: webPreviewUrl
|
|
88
108
|
previewToken: webPreviewToken
|
|
89
109
|
}
|