eas-cli 23.1.0 → 23.2.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 +170 -147
- package/build/api.d.ts +1 -0
- package/build/api.js +12 -0
- package/build/commandUtils/workflow/logs/fetchLogs.d.ts +5 -0
- package/build/commandUtils/workflow/logs/fetchLogs.js +24 -0
- package/build/commandUtils/workflow/logs/parseLogs.d.ts +14 -0
- package/build/commandUtils/workflow/logs/parseLogs.js +69 -0
- package/build/commandUtils/workflow/logs/watcher.d.ts +32 -0
- package/build/commandUtils/workflow/logs/watcher.js +162 -0
- package/build/commandUtils/workflow/stateMachine.js +2 -1
- package/build/commandUtils/workflow/types.d.ts +12 -5
- package/build/commandUtils/workflow/utils.d.ts +9 -5
- package/build/commandUtils/workflow/utils.js +144 -146
- package/build/commands/simulator/get.js +2 -0
- package/build/commands/simulator/index.d.ts +1 -0
- package/build/commands/simulator/index.js +10 -0
- package/build/commands/simulator/list.d.ts +1 -0
- package/build/commands/simulator/list.js +9 -0
- package/build/commands/workflow/run.d.ts +8 -0
- package/build/commands/workflow/run.js +27 -0
- package/build/commands/workflow/ssh.d.ts +31 -0
- package/build/commands/workflow/ssh.js +190 -0
- package/build/graphql/generated.d.ts +243 -3
- package/build/graphql/generated.js +28 -4
- package/build/graphql/mutations/RealtimeLogsMutation.d.ts +6 -0
- package/build/graphql/mutations/RealtimeLogsMutation.js +40 -0
- package/build/graphql/mutations/WorkflowRunMutation.d.ts +3 -2
- package/build/graphql/mutations/WorkflowRunMutation.js +4 -1
- package/build/graphql/queries/DeviceRunSessionQuery.js +5 -0
- package/build/graphql/queries/WorkflowJobSshQuery.d.ts +20 -0
- package/build/graphql/queries/WorkflowJobSshQuery.js +133 -0
- package/build/ora.d.ts +7 -0
- package/build/ora.js +12 -0
- package/build/simulator/utils.js +9 -1
- package/build/utils/centrifuge.d.ts +10 -0
- package/build/utils/centrifuge.js +89 -0
- package/build/utils/expodash/uniqBy.js +3 -2
- package/oclif.manifest.json +936 -833
- package/package.json +5 -2
- package/build/commandUtils/workflow/fetchLogs.d.ts +0 -6
- package/build/commandUtils/workflow/fetchLogs.js +0 -44
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.splitConnectionHost = splitConnectionHost;
|
|
4
|
+
exports.resolveSshConnectStatus = resolveSshConnectStatus;
|
|
5
|
+
exports.terminalSshStatusMessage = terminalSshStatusMessage;
|
|
6
|
+
exports.sshHostAliasForResource = sshHostAliasForResource;
|
|
7
|
+
exports.parseSshArgv = parseSshArgv;
|
|
8
|
+
const tslib_1 = require("tslib");
|
|
9
|
+
const spawn_async_1 = tslib_1.__importDefault(require("@expo/spawn-async"));
|
|
10
|
+
const core_1 = require("@oclif/core");
|
|
11
|
+
const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
|
|
12
|
+
const node_os_1 = tslib_1.__importDefault(require("node:os"));
|
|
13
|
+
const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
14
|
+
const EasCommand_1 = tslib_1.__importDefault(require("../../commandUtils/EasCommand"));
|
|
15
|
+
const WorkflowJobSshQuery_1 = require("../../graphql/queries/WorkflowJobSshQuery");
|
|
16
|
+
const log_1 = tslib_1.__importDefault(require("../../log"));
|
|
17
|
+
const ora_1 = require("../../ora");
|
|
18
|
+
const promise_1 = require("../../utils/promise");
|
|
19
|
+
function splitConnectionHost(connectionHost) {
|
|
20
|
+
try {
|
|
21
|
+
const { hostname, port: stringPort } = new URL(`ssh://${connectionHost}`);
|
|
22
|
+
const port = stringPort === '' ? undefined : Number(stringPort);
|
|
23
|
+
return { hostname, port };
|
|
24
|
+
}
|
|
25
|
+
catch (err) {
|
|
26
|
+
throw new Error('Unexpected connection host reported for this ssh session. Update eas-cli and try again, or contact support if it persists.', { cause: err });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const SSH_INSECURE_OPTS = '-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null';
|
|
30
|
+
const SESSION_OPEN_TIMEOUT_MS = 5 * 60 * 1000;
|
|
31
|
+
const SESSION_OPEN_POLL_INTERVAL_MS = 3000;
|
|
32
|
+
function resolveSshConnectStatus(connectInfo) {
|
|
33
|
+
if (!connectInfo) {
|
|
34
|
+
return 'unknown';
|
|
35
|
+
}
|
|
36
|
+
const { sshRequested, jobCompleted, session } = connectInfo;
|
|
37
|
+
if (session?.connectionConfig && !session.connectionConfig.reconnecting) {
|
|
38
|
+
return 'ready';
|
|
39
|
+
}
|
|
40
|
+
if (session?.connectionConfig?.reconnecting) {
|
|
41
|
+
return 'pending';
|
|
42
|
+
}
|
|
43
|
+
if (!sshRequested) {
|
|
44
|
+
return 'not-enabled';
|
|
45
|
+
}
|
|
46
|
+
return jobCompleted ? 'ended' : 'pending';
|
|
47
|
+
}
|
|
48
|
+
function terminalSshStatusMessage(status, resourceId) {
|
|
49
|
+
switch (status) {
|
|
50
|
+
case 'unknown':
|
|
51
|
+
return `No workflow job found for "${resourceId}". Pass a workflow job id from a run started with \`eas workflow:run --ssh\`.`;
|
|
52
|
+
case 'not-enabled':
|
|
53
|
+
return `SSH was not enabled for "${resourceId}". Start the run with \`eas workflow:run --ssh\` to enable it.`;
|
|
54
|
+
case 'ended':
|
|
55
|
+
return 'This ssh session has ended.';
|
|
56
|
+
case 'pending':
|
|
57
|
+
case 'ready':
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
function sshHostAliasForResource(resourceId) {
|
|
62
|
+
const suffix = resourceId.replace(/[^A-Za-z0-9]/g, '').slice(0, 8);
|
|
63
|
+
return suffix ? `eas-workflow-ssh-${suffix}` : 'eas-workflow-ssh';
|
|
64
|
+
}
|
|
65
|
+
function parseSshArgv(rawArgv) {
|
|
66
|
+
let showConnect = false;
|
|
67
|
+
let index = 0;
|
|
68
|
+
while (index < rawArgv.length && rawArgv[index].startsWith('-')) {
|
|
69
|
+
if (rawArgv[index] === '--show-connect' || rawArgv[index] === '--show-connect=true') {
|
|
70
|
+
showConnect = true;
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
throw new Error(`Unknown flag "${rawArgv[index]}" before the id. The only supported flag is --show-connect; everything after the id is passed to the remote shell.`);
|
|
74
|
+
}
|
|
75
|
+
index += 1;
|
|
76
|
+
}
|
|
77
|
+
const [resourceId, ...command] = rawArgv.slice(index);
|
|
78
|
+
return { showConnect, resourceId, command };
|
|
79
|
+
}
|
|
80
|
+
class WorkflowSsh extends EasCommand_1.default {
|
|
81
|
+
static hidden = true;
|
|
82
|
+
static description = '[EXPERIMENTAL] open an ssh session on the worker running a workflow job';
|
|
83
|
+
static strict = false;
|
|
84
|
+
static flags = {
|
|
85
|
+
'show-connect': core_1.Flags.boolean({
|
|
86
|
+
description: 'Print the ssh connection command (host and token) instead of opening a session',
|
|
87
|
+
default: false,
|
|
88
|
+
}),
|
|
89
|
+
};
|
|
90
|
+
static contextDefinition = {
|
|
91
|
+
...this.ContextOptions.LoggedIn,
|
|
92
|
+
};
|
|
93
|
+
isRunningSubprocess = false;
|
|
94
|
+
async runAsync() {
|
|
95
|
+
const rawArgv = [...this.argv];
|
|
96
|
+
await this.parse(WorkflowSsh, []);
|
|
97
|
+
const { showConnect, resourceId, command } = parseSshArgv(rawArgv);
|
|
98
|
+
if (typeof resourceId !== 'string' || resourceId.length === 0) {
|
|
99
|
+
throw new Error('Provide a workflow job id: eas workflow:ssh <workflow-job-id> [command...]');
|
|
100
|
+
}
|
|
101
|
+
const { loggedIn: { graphqlClient }, } = await this.getContextAsync(WorkflowSsh, { nonInteractive: true });
|
|
102
|
+
const connectInfo = await WorkflowJobSshQuery_1.WorkflowJobSshQuery.connectInfoForResourceIdAsync(graphqlClient, resourceId);
|
|
103
|
+
const status = resolveSshConnectStatus(connectInfo);
|
|
104
|
+
const statusMessage = terminalSshStatusMessage(status, resourceId);
|
|
105
|
+
if (statusMessage) {
|
|
106
|
+
log_1.default.error(statusMessage);
|
|
107
|
+
process.exitCode = 1;
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
const connectionConfig = (status === 'ready' ? connectInfo?.session?.connectionConfig : null) ??
|
|
111
|
+
(await waitForSessionToOpenAsync(graphqlClient, resourceId));
|
|
112
|
+
if (!connectionConfig) {
|
|
113
|
+
process.exitCode = 1;
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const { host: connectionHost, secret } = connectionConfig;
|
|
117
|
+
const { hostname, port } = splitConnectionHost(connectionHost);
|
|
118
|
+
const portOption = port !== undefined ? ` -p ${port}` : '';
|
|
119
|
+
if (showConnect) {
|
|
120
|
+
log_1.default.log(`ssh ${SSH_INSECURE_OPTS}${portOption} ${secret}@${hostname}`);
|
|
121
|
+
log_1.default.newLine();
|
|
122
|
+
log_1.default.log('If your network blocks the direct SSH connection, reach the session through the WebSocket relay with upterm (https://upterm.dev):');
|
|
123
|
+
// WSS terminates on the relay hostname (default 443). Do not paste an SSH
|
|
124
|
+
// :port into the wss:// URL — that port is only for the ssh destination.
|
|
125
|
+
log_1.default.log(` ssh -o ProxyCommand="upterm proxy wss://${secret}@${hostname}" ${SSH_INSECURE_OPTS}${portOption} ${secret}@${hostname}`);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const configDir = await node_fs_1.default.promises.mkdtemp(node_path_1.default.join(node_os_1.default.tmpdir(), 'eas-workflow-ssh-'));
|
|
129
|
+
try {
|
|
130
|
+
const configPath = node_path_1.default.join(configDir, 'config');
|
|
131
|
+
const hostAlias = sshHostAliasForResource(resourceId);
|
|
132
|
+
await node_fs_1.default.promises.writeFile(configPath, [
|
|
133
|
+
`Host ${hostAlias}`,
|
|
134
|
+
` HostName ${hostname}`,
|
|
135
|
+
...(port !== undefined ? [` Port ${port}`] : []),
|
|
136
|
+
` User ${secret}`,
|
|
137
|
+
' StrictHostKeyChecking no',
|
|
138
|
+
' UserKnownHostsFile /dev/null',
|
|
139
|
+
'',
|
|
140
|
+
].join('\n'), { mode: 0o600 });
|
|
141
|
+
this.isRunningSubprocess = true;
|
|
142
|
+
await (0, spawn_async_1.default)('ssh', ['-F', configPath, hostAlias, ...command], {
|
|
143
|
+
stdio: 'inherit',
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
finally {
|
|
147
|
+
await node_fs_1.default.promises.rm(configDir, { recursive: true, force: true });
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
catch(err) {
|
|
151
|
+
if (this.isRunningSubprocess) {
|
|
152
|
+
if (err.code === 'ENOENT') {
|
|
153
|
+
log_1.default.error('Could not run `ssh`. Install an OpenSSH client and make sure `ssh` is on your PATH, then try again.');
|
|
154
|
+
process.exitCode = 1;
|
|
155
|
+
return Promise.resolve();
|
|
156
|
+
}
|
|
157
|
+
const status = err.status;
|
|
158
|
+
process.exitCode = process.exitCode ?? status ?? 1;
|
|
159
|
+
return Promise.resolve();
|
|
160
|
+
}
|
|
161
|
+
return super.catch(err);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
exports.default = WorkflowSsh;
|
|
165
|
+
async function waitForSessionToOpenAsync(graphqlClient, workflowJobId) {
|
|
166
|
+
const spinner = (0, ora_1.ora)('Waiting for the worker to open the ssh session').start();
|
|
167
|
+
const deadline = Date.now() + SESSION_OPEN_TIMEOUT_MS;
|
|
168
|
+
try {
|
|
169
|
+
while (Date.now() < deadline) {
|
|
170
|
+
const connectInfo = await WorkflowJobSshQuery_1.WorkflowJobSshQuery.connectInfoForResourceIdAsync(graphqlClient, workflowJobId);
|
|
171
|
+
const status = resolveSshConnectStatus(connectInfo);
|
|
172
|
+
const statusMessage = terminalSshStatusMessage(status, workflowJobId);
|
|
173
|
+
if (statusMessage) {
|
|
174
|
+
spinner.fail(statusMessage);
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
if (status === 'ready') {
|
|
178
|
+
spinner.succeed('The ssh session is ready.');
|
|
179
|
+
return connectInfo?.session?.connectionConfig ?? null;
|
|
180
|
+
}
|
|
181
|
+
await (0, promise_1.sleepAsync)(SESSION_OPEN_POLL_INTERVAL_MS);
|
|
182
|
+
}
|
|
183
|
+
spinner.fail('Timed out waiting for the ssh session to open. The worker may still be starting up; try again in a moment.');
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
186
|
+
catch (err) {
|
|
187
|
+
spinner.stop();
|
|
188
|
+
throw err;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
@@ -125,6 +125,8 @@ export type Account = {
|
|
|
125
125
|
accountFeatureGates: Scalars['JSONObject']['output'];
|
|
126
126
|
/** Coalesced project activity for all apps belonging to this account. */
|
|
127
127
|
activityTimelineProjectActivities: Array<ActivityTimelineProjectActivity>;
|
|
128
|
+
/** AI provider connections available to agent sandbox sessions. */
|
|
129
|
+
agentProviderConnections: Array<AgentProviderConnection>;
|
|
128
130
|
aiChatEnabled: Scalars['Boolean']['output'];
|
|
129
131
|
appCount: Scalars['Int']['output'];
|
|
130
132
|
/** @deprecated Use appStoreConnectApiKeysPaginated */
|
|
@@ -959,12 +961,71 @@ export type AgentDeviceRunSessionRemoteConfig = {
|
|
|
959
961
|
__typename?: 'AgentDeviceRunSessionRemoteConfig';
|
|
960
962
|
agentDeviceRemoteSessionToken: Scalars['String']['output'];
|
|
961
963
|
agentDeviceRemoteSessionUrl: Scalars['String']['output'];
|
|
964
|
+
/** Session token gating the web preview. Null when the preview runs ungated. */
|
|
965
|
+
webPreviewToken?: Maybe<Scalars['String']['output']>;
|
|
962
966
|
/**
|
|
963
967
|
* URL of the web preview surface for the session. Null when web previews are
|
|
964
968
|
* not available for the platform (e.g. Android).
|
|
965
969
|
*/
|
|
966
970
|
webPreviewUrl?: Maybe<Scalars['String']['output']>;
|
|
967
971
|
};
|
|
972
|
+
export declare enum AgentProvider {
|
|
973
|
+
Anthropic = "ANTHROPIC",
|
|
974
|
+
Openai = "OPENAI"
|
|
975
|
+
}
|
|
976
|
+
export type AgentProviderConnection = {
|
|
977
|
+
__typename?: 'AgentProviderConnection';
|
|
978
|
+
account: Account;
|
|
979
|
+
createdAt: Scalars['DateTime']['output'];
|
|
980
|
+
createdByActor?: Maybe<Actor>;
|
|
981
|
+
expiresAt?: Maybe<Scalars['DateTime']['output']>;
|
|
982
|
+
id: Scalars['ID']['output'];
|
|
983
|
+
name?: Maybe<Scalars['String']['output']>;
|
|
984
|
+
provider: AgentProvider;
|
|
985
|
+
providerAccountEmail?: Maybe<Scalars['String']['output']>;
|
|
986
|
+
providerAccountId?: Maybe<Scalars['String']['output']>;
|
|
987
|
+
providerPlan?: Maybe<Scalars['String']['output']>;
|
|
988
|
+
status: AgentProviderConnectionStatus;
|
|
989
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
990
|
+
};
|
|
991
|
+
export declare enum AgentProviderConnectionAuthorizationStatus {
|
|
992
|
+
Expired = "EXPIRED",
|
|
993
|
+
Pending = "PENDING",
|
|
994
|
+
Succeeded = "SUCCEEDED"
|
|
995
|
+
}
|
|
996
|
+
export type AgentProviderConnectionMutation = {
|
|
997
|
+
__typename?: 'AgentProviderConnectionMutation';
|
|
998
|
+
completeClaudeConnection: AgentProviderConnection;
|
|
999
|
+
deleteAgentProviderConnection: AgentProviderConnection;
|
|
1000
|
+
pollCodexConnection: CodexConnectionPollResult;
|
|
1001
|
+
startClaudeConnection: ClaudeAuthorization;
|
|
1002
|
+
startCodexConnection: CodexDeviceAuthorization;
|
|
1003
|
+
updateAgentProviderConnection: AgentProviderConnection;
|
|
1004
|
+
};
|
|
1005
|
+
export type AgentProviderConnectionMutationCompleteClaudeConnectionArgs = {
|
|
1006
|
+
input: CompleteClaudeConnectionInput;
|
|
1007
|
+
};
|
|
1008
|
+
export type AgentProviderConnectionMutationDeleteAgentProviderConnectionArgs = {
|
|
1009
|
+
id: Scalars['ID']['input'];
|
|
1010
|
+
};
|
|
1011
|
+
export type AgentProviderConnectionMutationPollCodexConnectionArgs = {
|
|
1012
|
+
requestId: Scalars['ID']['input'];
|
|
1013
|
+
};
|
|
1014
|
+
export type AgentProviderConnectionMutationStartClaudeConnectionArgs = {
|
|
1015
|
+
input: StartClaudeConnectionInput;
|
|
1016
|
+
};
|
|
1017
|
+
export type AgentProviderConnectionMutationStartCodexConnectionArgs = {
|
|
1018
|
+
accountId: Scalars['ID']['input'];
|
|
1019
|
+
};
|
|
1020
|
+
export type AgentProviderConnectionMutationUpdateAgentProviderConnectionArgs = {
|
|
1021
|
+
id: Scalars['ID']['input'];
|
|
1022
|
+
input: UpdateAgentProviderConnectionInput;
|
|
1023
|
+
};
|
|
1024
|
+
export declare enum AgentProviderConnectionStatus {
|
|
1025
|
+
Invalid = "INVALID",
|
|
1026
|
+
UnableToVerify = "UNABLE_TO_VERIFY",
|
|
1027
|
+
Valid = "VALID"
|
|
1028
|
+
}
|
|
968
1029
|
export type AndroidAppBuildCredentials = {
|
|
969
1030
|
__typename?: 'AndroidAppBuildCredentials';
|
|
970
1031
|
androidKeystore?: Maybe<AndroidKeystore>;
|
|
@@ -1276,6 +1337,8 @@ export type App = Project & {
|
|
|
1276
1337
|
/** @deprecated Classic updates have been deprecated. */
|
|
1277
1338
|
description: Scalars['String']['output'];
|
|
1278
1339
|
devDomainName?: Maybe<AppDevDomainName>;
|
|
1340
|
+
/** Every tag used by this app's device run sessions, sorted alphabetically. */
|
|
1341
|
+
deviceRunSessionTags: Array<Scalars['String']['output']>;
|
|
1279
1342
|
deviceRunSessionsPaginated: AppDeviceRunSessionsConnection;
|
|
1280
1343
|
embeddedUpdatesPaginated: AppEmbeddedUpdatesConnection;
|
|
1281
1344
|
/** Environment secrets for an app */
|
|
@@ -1304,6 +1367,8 @@ export type App = Project & {
|
|
|
1304
1367
|
internalDistributionBuildPrivacy: AppInternalDistributionBuildPrivacy;
|
|
1305
1368
|
/** iOS app credentials for the project */
|
|
1306
1369
|
iosAppCredentials: Array<IosAppCredentials>;
|
|
1370
|
+
/** Whether this app qualifies for the observe-notification-lapsed-paid experiment */
|
|
1371
|
+
isEligibleForObserveLapsedPaidNotification: Scalars['Boolean']['output'];
|
|
1307
1372
|
/**
|
|
1308
1373
|
* Tells you if the project can show the Observe promotional notification. This field is part of
|
|
1309
1374
|
* the observe-notification experiment.
|
|
@@ -3214,6 +3279,8 @@ export type AppiumRunSessionRemoteConfig = {
|
|
|
3214
3279
|
appiumUrl: Scalars['String']['output'];
|
|
3215
3280
|
/** W3C capabilities for the device that backs this session. */
|
|
3216
3281
|
capabilities: Scalars['JSONObject']['output'];
|
|
3282
|
+
/** Session token gating the web preview. Null when the preview runs ungated. */
|
|
3283
|
+
webPreviewToken?: Maybe<Scalars['String']['output']>;
|
|
3217
3284
|
/**
|
|
3218
3285
|
* URL of the web preview surface for the session. Null when web previews are
|
|
3219
3286
|
* not available for the platform (e.g. Android).
|
|
@@ -3541,6 +3608,8 @@ export type ArgentRunSessionRemoteConfig = {
|
|
|
3541
3608
|
__typename?: 'ArgentRunSessionRemoteConfig';
|
|
3542
3609
|
toolsAuthToken?: Maybe<Scalars['String']['output']>;
|
|
3543
3610
|
toolsUrl: Scalars['String']['output'];
|
|
3611
|
+
/** Session token gating the web preview. Null when the preview runs ungated. */
|
|
3612
|
+
webPreviewToken?: Maybe<Scalars['String']['output']>;
|
|
3544
3613
|
/**
|
|
3545
3614
|
* URL of the web preview surface for the session. Null when web previews are
|
|
3546
3615
|
* not available for the platform (e.g. Android).
|
|
@@ -4354,6 +4423,12 @@ export type ChatTokenUsage = {
|
|
|
4354
4423
|
limitTokens?: Maybe<Scalars['Int']['output']>;
|
|
4355
4424
|
usedTokens: Scalars['Int']['output'];
|
|
4356
4425
|
};
|
|
4426
|
+
export type ClaudeAuthorization = {
|
|
4427
|
+
__typename?: 'ClaudeAuthorization';
|
|
4428
|
+
authorizationUrl: Scalars['String']['output'];
|
|
4429
|
+
expiresAt: Scalars['DateTime']['output'];
|
|
4430
|
+
requestId: Scalars['ID']['output'];
|
|
4431
|
+
};
|
|
4357
4432
|
export type CodeSigningInfo = {
|
|
4358
4433
|
__typename?: 'CodeSigningInfo';
|
|
4359
4434
|
alg: Scalars['String']['output'];
|
|
@@ -4365,6 +4440,23 @@ export type CodeSigningInfoInput = {
|
|
|
4365
4440
|
keyid: Scalars['String']['input'];
|
|
4366
4441
|
sig: Scalars['String']['input'];
|
|
4367
4442
|
};
|
|
4443
|
+
export type CodexConnectionPollResult = {
|
|
4444
|
+
__typename?: 'CodexConnectionPollResult';
|
|
4445
|
+
connection?: Maybe<AgentProviderConnection>;
|
|
4446
|
+
status: AgentProviderConnectionAuthorizationStatus;
|
|
4447
|
+
};
|
|
4448
|
+
export type CodexDeviceAuthorization = {
|
|
4449
|
+
__typename?: 'CodexDeviceAuthorization';
|
|
4450
|
+
expiresAt: Scalars['DateTime']['output'];
|
|
4451
|
+
pollingIntervalSeconds: Scalars['Int']['output'];
|
|
4452
|
+
requestId: Scalars['ID']['output'];
|
|
4453
|
+
userCode: Scalars['String']['output'];
|
|
4454
|
+
verificationUrl: Scalars['String']['output'];
|
|
4455
|
+
};
|
|
4456
|
+
export type CompleteClaudeConnectionInput = {
|
|
4457
|
+
authorizationCode: Scalars['String']['input'];
|
|
4458
|
+
requestId: Scalars['ID']['input'];
|
|
4459
|
+
};
|
|
4368
4460
|
export type CompletePostHogConnectionInput = {
|
|
4369
4461
|
code: Scalars['String']['input'];
|
|
4370
4462
|
state: Scalars['ID']['input'];
|
|
@@ -4553,7 +4645,7 @@ export type CreateDeviceRunSessionInput = {
|
|
|
4553
4645
|
/**
|
|
4554
4646
|
* Stop the session automatically after this many minutes without observed
|
|
4555
4647
|
* session activity. Must be positive and smaller than the session's maximum
|
|
4556
|
-
* duration (
|
|
4648
|
+
* duration (maxRunTimeMinutes when set). Only supported for
|
|
4557
4649
|
* agent-device, argent, and Appium sessions. If omitted, the session has no idle
|
|
4558
4650
|
* timeout.
|
|
4559
4651
|
*/
|
|
@@ -4587,6 +4679,8 @@ export type CreateDeviceRunSessionInput = {
|
|
|
4587
4679
|
* true. If omitted, the current Expo Go archive for the platform is used.
|
|
4588
4680
|
*/
|
|
4589
4681
|
sdkVersion?: InputMaybe<Scalars['String']['input']>;
|
|
4682
|
+
/** Free-form labels for grouping sessions, for example one per app variant. */
|
|
4683
|
+
tags?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
4590
4684
|
type: DeviceRunSessionType;
|
|
4591
4685
|
};
|
|
4592
4686
|
export type CreateEchoChatInput = {
|
|
@@ -5238,6 +5332,8 @@ export type DeviceRunSession = {
|
|
|
5238
5332
|
remoteConfig?: Maybe<DeviceRunSessionRemoteConfig>;
|
|
5239
5333
|
startedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
5240
5334
|
status: DeviceRunSessionStatus;
|
|
5335
|
+
/** Free-form labels for grouping sessions, for example one per app variant. */
|
|
5336
|
+
tags: Array<Scalars['String']['output']>;
|
|
5241
5337
|
turtleJobRun?: Maybe<JobRun>;
|
|
5242
5338
|
type: DeviceRunSessionType;
|
|
5243
5339
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -5277,6 +5373,8 @@ export type DeviceRunSessionFilterInput = {
|
|
|
5277
5373
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
5278
5374
|
platforms?: InputMaybe<Array<AppPlatform>>;
|
|
5279
5375
|
statuses?: InputMaybe<Array<DeviceRunSessionStatus>>;
|
|
5376
|
+
/** Matches sessions carrying every listed tag. Case-insensitive. */
|
|
5377
|
+
tags?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
5280
5378
|
types?: InputMaybe<Array<DeviceRunSessionType>>;
|
|
5281
5379
|
};
|
|
5282
5380
|
export type DeviceRunSessionMutation = {
|
|
@@ -5323,7 +5421,7 @@ export type DeviceRunSessionQuery = {
|
|
|
5323
5421
|
export type DeviceRunSessionQueryByIdArgs = {
|
|
5324
5422
|
deviceRunSessionId: Scalars['ID']['input'];
|
|
5325
5423
|
};
|
|
5326
|
-
export type DeviceRunSessionRemoteConfig = AgentDeviceRunSessionRemoteConfig | AppiumRunSessionRemoteConfig | ArgentRunSessionRemoteConfig | ServeSimRunSessionRemoteConfig;
|
|
5424
|
+
export type DeviceRunSessionRemoteConfig = AgentDeviceRunSessionRemoteConfig | AppiumRunSessionRemoteConfig | ArgentRunSessionRemoteConfig | ServeSimRunSessionRemoteConfig | WebPreviewOnlyRunSessionRemoteConfig;
|
|
5327
5425
|
export declare enum DeviceRunSessionResourceClass {
|
|
5328
5426
|
Large = "LARGE",
|
|
5329
5427
|
Medium = "MEDIUM"
|
|
@@ -5338,7 +5436,10 @@ export declare enum DeviceRunSessionType {
|
|
|
5338
5436
|
AgentDevice = "AGENT_DEVICE",
|
|
5339
5437
|
Appium = "APPIUM",
|
|
5340
5438
|
Argent = "ARGENT",
|
|
5341
|
-
|
|
5439
|
+
/** @deprecated Use WEB_PREVIEW_ONLY instead. */
|
|
5440
|
+
ServeSim = "SERVE_SIM",
|
|
5441
|
+
/** A session accessed only through its web preview. Currently supported on iOS. */
|
|
5442
|
+
WebPreviewOnly = "WEB_PREVIEW_ONLY"
|
|
5342
5443
|
}
|
|
5343
5444
|
export type DiscordUser = {
|
|
5344
5445
|
__typename?: 'DiscordUser';
|
|
@@ -6058,6 +6159,7 @@ export type EmbeddedUpdateQueryByIdArgs = {
|
|
|
6058
6159
|
export declare enum EntityTypeName {
|
|
6059
6160
|
AccountEntity = "AccountEntity",
|
|
6060
6161
|
AccountSsoConfigurationEntity = "AccountSSOConfigurationEntity",
|
|
6162
|
+
AgentProviderConnectionEntity = "AgentProviderConnectionEntity",
|
|
6061
6163
|
AndroidAppCredentialsEntity = "AndroidAppCredentialsEntity",
|
|
6062
6164
|
AndroidKeystoreEntity = "AndroidKeystoreEntity",
|
|
6063
6165
|
AppEntity = "AppEntity",
|
|
@@ -8035,6 +8137,7 @@ export type RootMutation = {
|
|
|
8035
8137
|
accountSSOConfiguration: AccountSsoConfigurationMutation;
|
|
8036
8138
|
/** Mutations for Actor experiments */
|
|
8037
8139
|
actorExperiment: ActorExperimentMutation;
|
|
8140
|
+
agentProviderConnection: AgentProviderConnectionMutation;
|
|
8038
8141
|
/** Mutations that modify the build credentials for an Android app */
|
|
8039
8142
|
androidAppBuildCredentials: AndroidAppBuildCredentialsMutation;
|
|
8040
8143
|
/** Mutations that modify the credentials for an Android app */
|
|
@@ -8571,8 +8674,14 @@ export type SentryProjectMutationCreateSentryProjectArgs = {
|
|
|
8571
8674
|
export type SentryProjectMutationDeleteSentryProjectArgs = {
|
|
8572
8675
|
sentryProjectId: Scalars['ID']['input'];
|
|
8573
8676
|
};
|
|
8677
|
+
/**
|
|
8678
|
+
* Legacy remote config for SERVE_SIM sessions. Use WEB_PREVIEW_ONLY sessions and
|
|
8679
|
+
* WebPreviewOnlyRunSessionRemoteConfig instead.
|
|
8680
|
+
*/
|
|
8574
8681
|
export type ServeSimRunSessionRemoteConfig = {
|
|
8575
8682
|
__typename?: 'ServeSimRunSessionRemoteConfig';
|
|
8683
|
+
/** Session token gating the preview. Null when the preview runs ungated. */
|
|
8684
|
+
previewToken?: Maybe<Scalars['String']['output']>;
|
|
8576
8685
|
previewUrl: Scalars['String']['output'];
|
|
8577
8686
|
/** @deprecated Use previewUrl instead. */
|
|
8578
8687
|
streamUrl?: Maybe<Scalars['String']['output']>;
|
|
@@ -8650,6 +8759,9 @@ export declare enum StandardOffer {
|
|
|
8650
8759
|
/** $348 USD per year, 30 day trial */
|
|
8651
8760
|
YearlySub = "YEARLY_SUB"
|
|
8652
8761
|
}
|
|
8762
|
+
export type StartClaudeConnectionInput = {
|
|
8763
|
+
accountId: Scalars['ID']['input'];
|
|
8764
|
+
};
|
|
8653
8765
|
export type StartPostHogConnectionResult = PostHogOrganizationConnection | PostHogPendingConnection;
|
|
8654
8766
|
/** Incident for a given component from Expo status page API. */
|
|
8655
8767
|
export type StatuspageIncident = {
|
|
@@ -9161,6 +9273,9 @@ export type UpdateDiffReceiptsArgs = {
|
|
|
9161
9273
|
first: Scalars['Int']['input'];
|
|
9162
9274
|
orderBy?: InputMaybe<Array<UpdateDiffReceiptOrderByClause>>;
|
|
9163
9275
|
};
|
|
9276
|
+
export type UpdateAgentProviderConnectionInput = {
|
|
9277
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
9278
|
+
};
|
|
9164
9279
|
export type UpdateBranch = {
|
|
9165
9280
|
__typename?: 'UpdateBranch';
|
|
9166
9281
|
app: App;
|
|
@@ -10263,6 +10378,10 @@ export type WebNotificationUpdateReadStateInput = {
|
|
|
10263
10378
|
id: Scalars['ID']['input'];
|
|
10264
10379
|
isRead: Scalars['Boolean']['input'];
|
|
10265
10380
|
};
|
|
10381
|
+
export type WebPreviewOnlyRunSessionRemoteConfig = {
|
|
10382
|
+
__typename?: 'WebPreviewOnlyRunSessionRemoteConfig';
|
|
10383
|
+
webPreviewUrl: Scalars['String']['output'];
|
|
10384
|
+
};
|
|
10266
10385
|
export type Webhook = {
|
|
10267
10386
|
__typename?: 'Webhook';
|
|
10268
10387
|
appId: Scalars['ID']['output'];
|
|
@@ -11368,6 +11487,7 @@ export type WorkflowRunGitBranchFilterInput = {
|
|
|
11368
11487
|
export type WorkflowRunInput = {
|
|
11369
11488
|
inputs?: InputMaybe<Scalars['JSONObject']['input']>;
|
|
11370
11489
|
projectSource: WorkflowProjectSourceInput;
|
|
11490
|
+
ssh?: InputMaybe<WorkflowRunSshInput>;
|
|
11371
11491
|
};
|
|
11372
11492
|
export type WorkflowRunMutation = {
|
|
11373
11493
|
__typename?: 'WorkflowRunMutation';
|
|
@@ -11393,10 +11513,12 @@ export type WorkflowRunMutationCreateWorkflowRunArgs = {
|
|
|
11393
11513
|
export type WorkflowRunMutationCreateWorkflowRunFromGitRefArgs = {
|
|
11394
11514
|
gitRef: Scalars['String']['input'];
|
|
11395
11515
|
inputs?: InputMaybe<Scalars['JSONObject']['input']>;
|
|
11516
|
+
ssh?: InputMaybe<WorkflowRunSshInput>;
|
|
11396
11517
|
workflowRevisionId: Scalars['ID']['input'];
|
|
11397
11518
|
};
|
|
11398
11519
|
export type WorkflowRunMutationRetryWorkflowRunArgs = {
|
|
11399
11520
|
fromFailedJobs?: InputMaybe<Scalars['Boolean']['input']>;
|
|
11521
|
+
ssh?: InputMaybe<WorkflowRunSshInput>;
|
|
11400
11522
|
workflowRunId: Scalars['ID']['input'];
|
|
11401
11523
|
};
|
|
11402
11524
|
export type WorkflowRunQuery = {
|
|
@@ -11406,6 +11528,13 @@ export type WorkflowRunQuery = {
|
|
|
11406
11528
|
export type WorkflowRunQueryByIdArgs = {
|
|
11407
11529
|
workflowRunId: Scalars['ID']['input'];
|
|
11408
11530
|
};
|
|
11531
|
+
/**
|
|
11532
|
+
* Enables ssh on the run's VM jobs. Presence turns ssh on; idleTimeoutSeconds is optional,
|
|
11533
|
+
* defaults server-side, and is validated against a supported range.
|
|
11534
|
+
*/
|
|
11535
|
+
export type WorkflowRunSshInput = {
|
|
11536
|
+
idleTimeoutSeconds?: InputMaybe<Scalars['Int']['input']>;
|
|
11537
|
+
};
|
|
11409
11538
|
export type WorkflowRunSshSettings = {
|
|
11410
11539
|
__typename?: 'WorkflowRunSshSettings';
|
|
11411
11540
|
idleTimeoutSeconds: Scalars['Int']['output'];
|
|
@@ -11431,6 +11560,9 @@ export declare enum WorkflowRunTriggerEventType {
|
|
|
11431
11560
|
EasSubmit = "EAS_SUBMIT",
|
|
11432
11561
|
ExpoLaunch = "EXPO_LAUNCH",
|
|
11433
11562
|
GithubPullRequestBaseRefChanged = "GITHUB_PULL_REQUEST_BASE_REF_CHANGED",
|
|
11563
|
+
GithubPullRequestCommentCreated = "GITHUB_PULL_REQUEST_COMMENT_CREATED",
|
|
11564
|
+
GithubPullRequestCommentDeleted = "GITHUB_PULL_REQUEST_COMMENT_DELETED",
|
|
11565
|
+
GithubPullRequestCommentEdited = "GITHUB_PULL_REQUEST_COMMENT_EDITED",
|
|
11434
11566
|
GithubPullRequestEdited = "GITHUB_PULL_REQUEST_EDITED",
|
|
11435
11567
|
GithubPullRequestLabeled = "GITHUB_PULL_REQUEST_LABELED",
|
|
11436
11568
|
GithubPullRequestOpened = "GITHUB_PULL_REQUEST_OPENED",
|
|
@@ -16328,6 +16460,34 @@ export type SetRolloutPercentageMutation = {
|
|
|
16328
16460
|
};
|
|
16329
16461
|
};
|
|
16330
16462
|
};
|
|
16463
|
+
export type GenerateRealtimeLogsCentrifugoConnectionTokenMutationVariables = Exact<{
|
|
16464
|
+
[key: string]: never;
|
|
16465
|
+
}>;
|
|
16466
|
+
export type GenerateRealtimeLogsCentrifugoConnectionTokenMutation = {
|
|
16467
|
+
__typename?: 'RootMutation';
|
|
16468
|
+
realtimeLogs: {
|
|
16469
|
+
__typename?: 'RealtimeLogsMutation';
|
|
16470
|
+
generateCentrifugoConnectionToken: {
|
|
16471
|
+
__typename?: 'RealtimeLogsCentrifugoConnectionToken';
|
|
16472
|
+
token: string;
|
|
16473
|
+
};
|
|
16474
|
+
};
|
|
16475
|
+
};
|
|
16476
|
+
export type GenerateRealtimeLogsCentrifugoSubscriptionTokenMutationVariables = Exact<{
|
|
16477
|
+
target: RealtimeLogsTargetInput;
|
|
16478
|
+
thread?: InputMaybe<Scalars['String']['input']>;
|
|
16479
|
+
}>;
|
|
16480
|
+
export type GenerateRealtimeLogsCentrifugoSubscriptionTokenMutation = {
|
|
16481
|
+
__typename?: 'RootMutation';
|
|
16482
|
+
realtimeLogs: {
|
|
16483
|
+
__typename?: 'RealtimeLogsMutation';
|
|
16484
|
+
generateCentrifugoSubscriptionToken: {
|
|
16485
|
+
__typename?: 'RealtimeLogsCentrifugoSubscriptionToken';
|
|
16486
|
+
channel: string;
|
|
16487
|
+
token: string;
|
|
16488
|
+
};
|
|
16489
|
+
};
|
|
16490
|
+
};
|
|
16331
16491
|
export type CreateAndroidSubmissionMutationVariables = Exact<{
|
|
16332
16492
|
appId: Scalars['ID']['input'];
|
|
16333
16493
|
config: AndroidSubmissionConfigInput;
|
|
@@ -16761,6 +16921,7 @@ export type CreateWorkflowRunFromGitRefMutationVariables = Exact<{
|
|
|
16761
16921
|
workflowRevisionId: Scalars['ID']['input'];
|
|
16762
16922
|
gitRef: Scalars['String']['input'];
|
|
16763
16923
|
inputs?: InputMaybe<Scalars['JSONObject']['input']>;
|
|
16924
|
+
ssh?: InputMaybe<WorkflowRunSshInput>;
|
|
16764
16925
|
}>;
|
|
16765
16926
|
export type CreateWorkflowRunFromGitRefMutation = {
|
|
16766
16927
|
__typename?: 'RootMutation';
|
|
@@ -18637,6 +18798,7 @@ export type DeviceRunSessionByIdQuery = {
|
|
|
18637
18798
|
__typename?: 'DeviceRunSession';
|
|
18638
18799
|
id: string;
|
|
18639
18800
|
name?: string | null;
|
|
18801
|
+
tags: Array<string>;
|
|
18640
18802
|
status: DeviceRunSessionStatus;
|
|
18641
18803
|
type: DeviceRunSessionType;
|
|
18642
18804
|
platform: AppPlatform;
|
|
@@ -18683,6 +18845,9 @@ export type DeviceRunSessionByIdQuery = {
|
|
|
18683
18845
|
} | {
|
|
18684
18846
|
__typename: 'ServeSimRunSessionRemoteConfig';
|
|
18685
18847
|
previewUrl: string;
|
|
18848
|
+
} | {
|
|
18849
|
+
__typename: 'WebPreviewOnlyRunSessionRemoteConfig';
|
|
18850
|
+
previewUrl: string;
|
|
18686
18851
|
} | null;
|
|
18687
18852
|
turtleJobRun?: {
|
|
18688
18853
|
__typename?: 'JobRun';
|
|
@@ -18714,6 +18879,7 @@ export type DeviceRunSessionsByAppIdQuery = {
|
|
|
18714
18879
|
__typename?: 'DeviceRunSession';
|
|
18715
18880
|
id: string;
|
|
18716
18881
|
name?: string | null;
|
|
18882
|
+
tags: Array<string>;
|
|
18717
18883
|
status: DeviceRunSessionStatus;
|
|
18718
18884
|
type: DeviceRunSessionType;
|
|
18719
18885
|
platform: AppPlatform;
|
|
@@ -20694,6 +20860,80 @@ export type WorkflowJobByIdQuery = {
|
|
|
20694
20860
|
};
|
|
20695
20861
|
};
|
|
20696
20862
|
};
|
|
20863
|
+
export type WorkflowJobSshPollQueryVariables = Exact<{
|
|
20864
|
+
workflowJobId: Scalars['ID']['input'];
|
|
20865
|
+
}>;
|
|
20866
|
+
export type WorkflowJobSshPollQuery = {
|
|
20867
|
+
__typename?: 'RootQuery';
|
|
20868
|
+
workflowJobs: {
|
|
20869
|
+
__typename?: 'WorkflowJobQuery';
|
|
20870
|
+
byId: {
|
|
20871
|
+
__typename?: 'WorkflowJob';
|
|
20872
|
+
id: string;
|
|
20873
|
+
status: WorkflowJobStatus;
|
|
20874
|
+
workflowRun: {
|
|
20875
|
+
__typename?: 'WorkflowRun';
|
|
20876
|
+
id: string;
|
|
20877
|
+
sshSettings?: {
|
|
20878
|
+
__typename?: 'WorkflowRunSshSettings';
|
|
20879
|
+
idleTimeoutSeconds: number;
|
|
20880
|
+
} | null;
|
|
20881
|
+
};
|
|
20882
|
+
turtleJobRun?: {
|
|
20883
|
+
__typename?: 'JobRun';
|
|
20884
|
+
id: string;
|
|
20885
|
+
sshSession?: {
|
|
20886
|
+
__typename?: 'TurtleSshSession';
|
|
20887
|
+
id: string;
|
|
20888
|
+
connectionConfig: {
|
|
20889
|
+
__typename?: 'TurtleSshConnectionConfig';
|
|
20890
|
+
host: string;
|
|
20891
|
+
secret: string;
|
|
20892
|
+
reconnecting: boolean;
|
|
20893
|
+
};
|
|
20894
|
+
} | null;
|
|
20895
|
+
} | null;
|
|
20896
|
+
turtleBuild?: {
|
|
20897
|
+
__typename?: 'Build';
|
|
20898
|
+
id: string;
|
|
20899
|
+
sshSession?: {
|
|
20900
|
+
__typename?: 'TurtleSshSession';
|
|
20901
|
+
id: string;
|
|
20902
|
+
connectionConfig: {
|
|
20903
|
+
__typename?: 'TurtleSshConnectionConfig';
|
|
20904
|
+
host: string;
|
|
20905
|
+
secret: string;
|
|
20906
|
+
reconnecting: boolean;
|
|
20907
|
+
};
|
|
20908
|
+
} | null;
|
|
20909
|
+
} | null;
|
|
20910
|
+
};
|
|
20911
|
+
};
|
|
20912
|
+
};
|
|
20913
|
+
export type JobRunSshPollQueryVariables = Exact<{
|
|
20914
|
+
jobRunId: Scalars['ID']['input'];
|
|
20915
|
+
}>;
|
|
20916
|
+
export type JobRunSshPollQuery = {
|
|
20917
|
+
__typename?: 'RootQuery';
|
|
20918
|
+
jobRun: {
|
|
20919
|
+
__typename?: 'JobRunQuery';
|
|
20920
|
+
byId: {
|
|
20921
|
+
__typename?: 'JobRun';
|
|
20922
|
+
id: string;
|
|
20923
|
+
status: JobRunStatus;
|
|
20924
|
+
sshSession?: {
|
|
20925
|
+
__typename?: 'TurtleSshSession';
|
|
20926
|
+
id: string;
|
|
20927
|
+
connectionConfig: {
|
|
20928
|
+
__typename?: 'TurtleSshConnectionConfig';
|
|
20929
|
+
host: string;
|
|
20930
|
+
secret: string;
|
|
20931
|
+
reconnecting: boolean;
|
|
20932
|
+
};
|
|
20933
|
+
} | null;
|
|
20934
|
+
};
|
|
20935
|
+
};
|
|
20936
|
+
};
|
|
20697
20937
|
export type ExpoGoSupportedSdkVersionsQueryVariables = Exact<{
|
|
20698
20938
|
[key: string]: never;
|
|
20699
20939
|
}>;
|