eas-cli 24.11.0 → 24.12.1
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 +142 -142
- package/build/analytics/AnalyticsManager.d.ts +6 -1
- package/build/analytics/AnalyticsManager.js +7 -1
- package/build/commandUtils/context/AnalyticsContextField.d.ts +3 -3
- package/build/commandUtils/context/ContextField.d.ts +2 -2
- package/build/commands/simulator/index.d.ts +1 -0
- package/build/commands/simulator/index.js +110 -3
- package/build/commands/update/view.js +6 -4
- package/build/graphql/generated.d.ts +222 -17
- package/build/graphql/generated.js +16 -7
- package/build/graphql/queries/UpdateQuery.d.ts +6 -1
- package/build/graphql/queries/UpdateQuery.js +23 -0
- package/build/graphql/queries/WorkflowJobSshQuery.js +2 -0
- package/build/graphql/types/Update.d.ts +7 -0
- package/build/graphql/types/Update.js +17 -1
- package/build/simulator/requestAnalytics.d.ts +20 -0
- package/build/simulator/requestAnalytics.js +50 -0
- package/build/update/utils.d.ts +7 -1
- package/build/update/utils.js +14 -0
- package/build/utils/download.js +5 -3
- package/oclif.manifest.json +811 -810
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Actor } from '../user/User';
|
|
2
|
-
export type AnalyticsEvent = CommandEvent | BuildEvent | SubmissionEvent | MetadataEvent | BillingEvent;
|
|
2
|
+
export type AnalyticsEvent = CommandEvent | BuildEvent | SubmissionEvent | MetadataEvent | BillingEvent | SimulatorEvent;
|
|
3
3
|
export declare enum CommandEvent {
|
|
4
4
|
ACTION = "action"
|
|
5
5
|
}
|
|
@@ -48,6 +48,11 @@ export declare enum BuildEvent {
|
|
|
48
48
|
CREDENTIALS_SYNC_UPDATE_REMOTE_FAIL = "build cli credentials sync update remote fail",
|
|
49
49
|
ANDROID_KEYSTORE_CREATE = "build cli credentials keystore create"
|
|
50
50
|
}
|
|
51
|
+
export declare enum SimulatorEvent {
|
|
52
|
+
REQUEST_SENT = "sim session request sent",
|
|
53
|
+
REQUEST_CANCELLED = "sim session request cancelled",
|
|
54
|
+
REQUEST_FAILED = "sim session request failed"
|
|
55
|
+
}
|
|
51
56
|
export declare enum MetadataEvent {
|
|
52
57
|
APPLE_METADATA_DOWNLOAD = "metadata cli download apple response",
|
|
53
58
|
APPLE_METADATA_UPLOAD = "metadata cli upload apple response"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MetadataEvent = exports.BuildEvent = exports.SubmissionEvent = exports.BillingEvent = exports.CommandEvent = void 0;
|
|
3
|
+
exports.MetadataEvent = exports.SimulatorEvent = exports.BuildEvent = exports.SubmissionEvent = exports.BillingEvent = exports.CommandEvent = void 0;
|
|
4
4
|
exports.setAnalyticsEnabledAsync = setAnalyticsEnabledAsync;
|
|
5
5
|
exports.getAnalyticsEnabledAsync = getAnalyticsEnabledAsync;
|
|
6
6
|
exports.isAnalyticsOptedOutAsync = isAnalyticsOptedOutAsync;
|
|
@@ -72,6 +72,12 @@ var BuildEvent;
|
|
|
72
72
|
BuildEvent["CREDENTIALS_SYNC_UPDATE_REMOTE_FAIL"] = "build cli credentials sync update remote fail";
|
|
73
73
|
BuildEvent["ANDROID_KEYSTORE_CREATE"] = "build cli credentials keystore create";
|
|
74
74
|
})(BuildEvent || (exports.BuildEvent = BuildEvent = {}));
|
|
75
|
+
var SimulatorEvent;
|
|
76
|
+
(function (SimulatorEvent) {
|
|
77
|
+
SimulatorEvent["REQUEST_SENT"] = "sim session request sent";
|
|
78
|
+
SimulatorEvent["REQUEST_CANCELLED"] = "sim session request cancelled";
|
|
79
|
+
SimulatorEvent["REQUEST_FAILED"] = "sim session request failed";
|
|
80
|
+
})(SimulatorEvent || (exports.SimulatorEvent = SimulatorEvent = {}));
|
|
75
81
|
var MetadataEvent;
|
|
76
82
|
(function (MetadataEvent) {
|
|
77
83
|
MetadataEvent["APPLE_METADATA_DOWNLOAD"] = "metadata cli download apple response";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import ContextField, { ContextOptions } from './ContextField';
|
|
2
|
-
import {
|
|
3
|
-
export default class AnalyticsContextField extends ContextField<
|
|
4
|
-
getValueAsync({ analytics }: ContextOptions): Promise<
|
|
2
|
+
import { AnalyticsWithOrchestration } from '../../analytics/AnalyticsManager';
|
|
3
|
+
export default class AnalyticsContextField extends ContextField<AnalyticsWithOrchestration> {
|
|
4
|
+
getValueAsync({ analytics }: ContextOptions): Promise<AnalyticsWithOrchestration>;
|
|
5
5
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnalyticsWithOrchestration } from '../../analytics/AnalyticsManager';
|
|
2
2
|
import SessionManager from '../../user/SessionManager';
|
|
3
3
|
import { Client } from '../../vcs/vcs';
|
|
4
4
|
export interface ContextOptions {
|
|
5
5
|
sessionManager: SessionManager;
|
|
6
|
-
analytics:
|
|
6
|
+
analytics: AnalyticsWithOrchestration;
|
|
7
7
|
nonInteractive: boolean;
|
|
8
8
|
vcsClientOverride?: Client;
|
|
9
9
|
/** Short-circuits project ID resolution. */
|
|
@@ -30,6 +30,7 @@ export default class Simulator extends EasCommand {
|
|
|
30
30
|
'out-config-type': import("@oclif/core/lib/interfaces").OptionFlag<"env" | "dotenv", import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
31
31
|
};
|
|
32
32
|
static contextDefinition: {
|
|
33
|
+
analytics: import("../../commandUtils/context/AnalyticsContextField").default;
|
|
33
34
|
loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
|
|
34
35
|
projectDir: import("../../commandUtils/context/ProjectDirContextField").default;
|
|
35
36
|
projectId: import("../../commandUtils/context/ProjectIdContextField").ProjectIdContextField;
|
|
@@ -20,6 +20,7 @@ const egress_1 = require("../../simulator/egress");
|
|
|
20
20
|
const networkCapture_1 = require("../../simulator/networkCapture");
|
|
21
21
|
const env_1 = require("../../simulator/env");
|
|
22
22
|
const expoGo_1 = require("../../simulator/expoGo");
|
|
23
|
+
const requestAnalytics_1 = require("../../simulator/requestAnalytics");
|
|
23
24
|
const utils_1 = require("../../simulator/utils");
|
|
24
25
|
const json_1 = require("../../utils/json");
|
|
25
26
|
const promise_1 = require("../../utils/promise");
|
|
@@ -135,6 +136,7 @@ class Simulator extends EasCommand_1.default {
|
|
|
135
136
|
...this.ContextOptions.ProjectId,
|
|
136
137
|
...this.ContextOptions.ProjectDir,
|
|
137
138
|
...this.ContextOptions.LoggedIn,
|
|
139
|
+
...this.ContextOptions.Analytics,
|
|
138
140
|
};
|
|
139
141
|
async runAsync() {
|
|
140
142
|
const { flags } = await this.parse(Simulator);
|
|
@@ -142,7 +144,7 @@ class Simulator extends EasCommand_1.default {
|
|
|
142
144
|
if (jsonFlag) {
|
|
143
145
|
(0, json_1.enableJsonOutput)();
|
|
144
146
|
}
|
|
145
|
-
const { projectId, projectDir, loggedIn: { actor, graphqlClient }, } = await this.getContextAsync(Simulator, {
|
|
147
|
+
const { projectId, projectDir, loggedIn: { actor, graphqlClient }, analytics, } = await this.getContextAsync(Simulator, {
|
|
146
148
|
nonInteractive,
|
|
147
149
|
});
|
|
148
150
|
// The server would reject the session anyway, but check the gate first so gated
|
|
@@ -222,7 +224,17 @@ class Simulator extends EasCommand_1.default {
|
|
|
222
224
|
let sessionInterrupt;
|
|
223
225
|
try {
|
|
224
226
|
const agentIdentity = await agentIdentityInputAsync();
|
|
225
|
-
const
|
|
227
|
+
const requestProperties = (0, requestAnalytics_1.simulatorRequestProperties)({
|
|
228
|
+
projectId,
|
|
229
|
+
type: flags.type,
|
|
230
|
+
platform,
|
|
231
|
+
hasBuildId: !!buildId || !!buildFingerprint,
|
|
232
|
+
hasArchiveUrl: !!applicationArchiveUrlFromFlag,
|
|
233
|
+
expoGo: !!expoGoSdkVersion,
|
|
234
|
+
packageVersion: flags['package-version'],
|
|
235
|
+
nonInteractive,
|
|
236
|
+
});
|
|
237
|
+
const session = await withSimulatorRequestAnalyticsAsync(analytics, requestProperties, createSpinner, () => DeviceRunSessionMutation_1.DeviceRunSessionMutation.createDeviceRunSessionAsync(graphqlClient, {
|
|
226
238
|
appId: projectId,
|
|
227
239
|
name,
|
|
228
240
|
...(tags?.length ? { tags } : {}),
|
|
@@ -250,7 +262,7 @@ class Simulator extends EasCommand_1.default {
|
|
|
250
262
|
...agentIdentity,
|
|
251
263
|
maxRunTimeMinutes: flags['max-duration-minutes'],
|
|
252
264
|
maxIdleTimeMinutes: flags['max-idle-time-minutes'],
|
|
253
|
-
});
|
|
265
|
+
}), createdSession => stopDeviceRunSessionCreatedAfterCancelAsync(graphqlClient, createdSession.id));
|
|
254
266
|
deviceRunSessionId = session.id;
|
|
255
267
|
(0, nullthrows_1.default)(session.turtleJobRun?.id, 'Expected simulator session to start');
|
|
256
268
|
deviceRunSessionUrl = (0, url_1.getDeviceRunSessionUrl)(session.app.ownerAccount.name, session.app.slug, deviceRunSessionId);
|
|
@@ -536,6 +548,16 @@ async function stopDeviceRunSessionAfterInterruptAsync({ graphqlClient, deviceRu
|
|
|
536
548
|
}
|
|
537
549
|
process.exit(130);
|
|
538
550
|
}
|
|
551
|
+
async function stopDeviceRunSessionCreatedAfterCancelAsync(graphqlClient, deviceRunSessionId) {
|
|
552
|
+
const spinner = (0, ora_1.ora)(`Stopping simulator session ${deviceRunSessionId}, which the request created after Ctrl+C`).start();
|
|
553
|
+
const stopped = await ensureDeviceRunSessionStoppedSafelyAsync(graphqlClient, deviceRunSessionId);
|
|
554
|
+
if (stopped) {
|
|
555
|
+
spinner.succeed(`Simulator session ${deviceRunSessionId} stopped`);
|
|
556
|
+
}
|
|
557
|
+
else {
|
|
558
|
+
spinner.fail(`Could not confirm the simulator session was stopped. Run \`eas simulator:stop --id ${deviceRunSessionId}\` to terminate it and avoid unexpected charges.`);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
539
561
|
async function resetSimulatorEnvVerboseAsync(projectDir, deviceRunSessionId) {
|
|
540
562
|
try {
|
|
541
563
|
await (0, env_1.resetSimulatorEnvAsync)(projectDir, deviceRunSessionId);
|
|
@@ -556,6 +578,91 @@ async function ensureDeviceRunSessionStoppedSafelyAsync(graphqlClient, deviceRun
|
|
|
556
578
|
return false;
|
|
557
579
|
}
|
|
558
580
|
}
|
|
581
|
+
/**
|
|
582
|
+
* How long Ctrl+C waits for analytics to flush. The analytics client has no request timeout, so
|
|
583
|
+
* without a limit a hung network would make Ctrl+C look ignored.
|
|
584
|
+
*/
|
|
585
|
+
const CANCEL_FLUSH_TIMEOUT_MS = 1_000;
|
|
586
|
+
/**
|
|
587
|
+
* How long Ctrl+C then waits for the create request. The server can still create the session after
|
|
588
|
+
* the client stops waiting, and nothing else stops that session before its maximum duration.
|
|
589
|
+
*/
|
|
590
|
+
const CANCEL_CREATE_WAIT_MS = 5_000;
|
|
591
|
+
const SESSION_MAY_BE_RUNNING_WARNING = 'A simulator session may still be running. Run `eas simulator:list` to check for a running session, and `eas simulator:stop --id <id>` to stop it.';
|
|
592
|
+
class SimulatorRequestCancelledError extends Error {
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Runs the create request and logs the client-side funnel events around it: "request sent" before
|
|
596
|
+
* it leaves, "request cancelled" on Ctrl+C before an answer, and "request failed" when no answer
|
|
597
|
+
* arrives. "Request cancelled" means the client stopped waiting; the server can still create the
|
|
598
|
+
* session. So Ctrl+C stops the spinner, flushes analytics, and waits a bounded time for the
|
|
599
|
+
* request: a session that comes back goes to `stopCreatedAsync`, and otherwise the user is told how
|
|
600
|
+
* to check for one. Then it exits with 130, like the session's own Ctrl+C handler: going through
|
|
601
|
+
* the command's error handling would print the exit as an error and report it to Sentry. A second
|
|
602
|
+
* Ctrl+C exits at once.
|
|
603
|
+
*/
|
|
604
|
+
async function withSimulatorRequestAnalyticsAsync(analytics, properties, spinner, createAsync, stopCreatedAsync) {
|
|
605
|
+
let cancelRequested = false;
|
|
606
|
+
let onSigint;
|
|
607
|
+
const cancelled = new Promise((_, reject) => {
|
|
608
|
+
onSigint = () => {
|
|
609
|
+
if (cancelRequested) {
|
|
610
|
+
log_1.default.warn(SESSION_MAY_BE_RUNNING_WARNING);
|
|
611
|
+
process.exit(130);
|
|
612
|
+
}
|
|
613
|
+
cancelRequested = true;
|
|
614
|
+
reject(new SimulatorRequestCancelledError());
|
|
615
|
+
};
|
|
616
|
+
});
|
|
617
|
+
process.on('SIGINT', onSigint);
|
|
618
|
+
analytics.logEvent(AnalyticsManager_1.SimulatorEvent.REQUEST_SENT, properties);
|
|
619
|
+
let createPromise;
|
|
620
|
+
try {
|
|
621
|
+
createPromise = createAsync();
|
|
622
|
+
return await Promise.race([createPromise, cancelled]);
|
|
623
|
+
}
|
|
624
|
+
catch (error) {
|
|
625
|
+
if (error instanceof SimulatorRequestCancelledError) {
|
|
626
|
+
analytics.logEvent(AnalyticsManager_1.SimulatorEvent.REQUEST_CANCELLED, { ...properties, reason: 'user_abort' });
|
|
627
|
+
spinner.fail('Simulator session request canceled');
|
|
628
|
+
const flushTimeout = new AbortController();
|
|
629
|
+
await Promise.race([
|
|
630
|
+
analytics.flushAsync(),
|
|
631
|
+
(0, promise_1.sleepAsync)(CANCEL_FLUSH_TIMEOUT_MS, flushTimeout.signal),
|
|
632
|
+
]);
|
|
633
|
+
flushTimeout.abort();
|
|
634
|
+
await stopSessionCreatedAfterCancelAsync(createPromise, stopCreatedAsync);
|
|
635
|
+
process.exit(130);
|
|
636
|
+
}
|
|
637
|
+
const reason = (0, requestAnalytics_1.simulatorRequestFailureReason)(error);
|
|
638
|
+
if (reason) {
|
|
639
|
+
analytics.logEvent(AnalyticsManager_1.SimulatorEvent.REQUEST_FAILED, { ...properties, reason });
|
|
640
|
+
}
|
|
641
|
+
throw error;
|
|
642
|
+
}
|
|
643
|
+
finally {
|
|
644
|
+
process.removeListener('SIGINT', onSigint);
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
async function stopSessionCreatedAfterCancelAsync(createPromise, stopCreatedAsync) {
|
|
648
|
+
if (!createPromise) {
|
|
649
|
+
// Ctrl+C came before the request was sent, so no session can have been created.
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
log_1.default.log(`Waiting up to ${CANCEL_CREATE_WAIT_MS / 1_000} seconds for the request to finish, so a session it created can be stopped. Press Ctrl+C again to exit now.`);
|
|
653
|
+
const waitTimeout = new AbortController();
|
|
654
|
+
const created = await Promise.race([
|
|
655
|
+
createPromise.then(value => ({ value }), () => undefined),
|
|
656
|
+
(0, promise_1.sleepAsync)(CANCEL_CREATE_WAIT_MS, waitTimeout.signal).then(() => undefined),
|
|
657
|
+
]);
|
|
658
|
+
waitTimeout.abort();
|
|
659
|
+
if (created) {
|
|
660
|
+
await stopCreatedAsync(created.value);
|
|
661
|
+
}
|
|
662
|
+
else {
|
|
663
|
+
log_1.default.warn(SESSION_MAY_BE_RUNNING_WARNING);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
559
666
|
async function agentIdentityInputAsync() {
|
|
560
667
|
if (await (0, AnalyticsManager_1.isAnalyticsOptedOutAsync)()) {
|
|
561
668
|
return {};
|
|
@@ -66,12 +66,12 @@ class UpdateView extends EasCommand_1.default {
|
|
|
66
66
|
if (jsonFlag) {
|
|
67
67
|
if (insightsSummary) {
|
|
68
68
|
(0, json_1.printJsonOnlyOutput)({
|
|
69
|
-
updates: (0, utils_1.
|
|
69
|
+
updates: (0, utils_1.getUpdateWithFileUrlsJsonInfosForUpdates)(updatesByGroup),
|
|
70
70
|
insights: (0, formatInsights_1.buildUpdateInsightsJson)(insightsSummary),
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
74
|
-
(0, json_1.printJsonOnlyOutput)((0, utils_1.
|
|
74
|
+
(0, json_1.printJsonOnlyOutput)((0, utils_1.getUpdateWithFileUrlsJsonInfosForUpdates)(updatesByGroup));
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
else {
|
|
@@ -92,7 +92,9 @@ class UpdateView extends EasCommand_1.default {
|
|
|
92
92
|
*/
|
|
93
93
|
static async resolveUpdateGroupAsync(graphqlClient, id) {
|
|
94
94
|
try {
|
|
95
|
-
const updatesByGroup = await UpdateQuery_1.UpdateQuery.
|
|
95
|
+
const updatesByGroup = await UpdateQuery_1.UpdateQuery.viewUpdateGroupWithFileUrlsAsync(graphqlClient, {
|
|
96
|
+
groupId: id,
|
|
97
|
+
});
|
|
96
98
|
return { groupId: id, updatesByGroup };
|
|
97
99
|
}
|
|
98
100
|
catch (groupError) {
|
|
@@ -105,7 +107,7 @@ class UpdateView extends EasCommand_1.default {
|
|
|
105
107
|
// the original group lookup error since the group ID is the primary input.
|
|
106
108
|
throw groupError;
|
|
107
109
|
}
|
|
108
|
-
const updatesByGroup = await UpdateQuery_1.UpdateQuery.
|
|
110
|
+
const updatesByGroup = await UpdateQuery_1.UpdateQuery.viewUpdateGroupWithFileUrlsAsync(graphqlClient, {
|
|
109
111
|
groupId: update.group,
|
|
110
112
|
});
|
|
111
113
|
return { groupId: update.group, updatesByGroup };
|
|
@@ -97,6 +97,11 @@ export type AccessToken = {
|
|
|
97
97
|
note?: Maybe<Scalars['String']['output']>;
|
|
98
98
|
owner: Actor;
|
|
99
99
|
revokedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
100
|
+
/**
|
|
101
|
+
* Scopes this token is restricted to. Null for a full token that authenticates as the owner
|
|
102
|
+
* with all of their permissions.
|
|
103
|
+
*/
|
|
104
|
+
scopes?: Maybe<Array<AccessTokenScope>>;
|
|
100
105
|
updatedAt: Scalars['DateTime']['output'];
|
|
101
106
|
visibleTokenPrefix: Scalars['String']['output'];
|
|
102
107
|
};
|
|
@@ -119,6 +124,32 @@ export type AccessTokenMutation_SetAccessTokenRevokedArgs = {
|
|
|
119
124
|
id: Scalars['ID']['input'];
|
|
120
125
|
revoked?: InputMaybe<Scalars['Boolean']['input']>;
|
|
121
126
|
};
|
|
127
|
+
/** One scope narrowing an AccessToken below its owner's full access */
|
|
128
|
+
export type AccessTokenScope = {
|
|
129
|
+
__typename?: 'AccessTokenScope';
|
|
130
|
+
/** The account this scope applies to. Only present for ACCOUNT scopes. */
|
|
131
|
+
accountID?: Maybe<Scalars['ID']['output']>;
|
|
132
|
+
permissions: Array<Permission>;
|
|
133
|
+
type: AccessTokenScopeType;
|
|
134
|
+
};
|
|
135
|
+
export type AccessTokenScopeInput = {
|
|
136
|
+
/**
|
|
137
|
+
* The account this scope applies to. Required for ACCOUNT scopes and must be omitted for
|
|
138
|
+
* ALL_ACCOUNTS scopes.
|
|
139
|
+
*/
|
|
140
|
+
accountID?: InputMaybe<Scalars['ID']['input']>;
|
|
141
|
+
permissions: Array<Permission>;
|
|
142
|
+
type: AccessTokenScopeType;
|
|
143
|
+
};
|
|
144
|
+
export declare enum AccessTokenScopeType {
|
|
145
|
+
/** One account, named by accountID, narrowed to the scope's permissions. */
|
|
146
|
+
Account = "ACCOUNT",
|
|
147
|
+
/**
|
|
148
|
+
* Every account the token's owner has permissions on at request time, narrowed to the
|
|
149
|
+
* scope's permissions.
|
|
150
|
+
*/
|
|
151
|
+
AllAccounts = "ALL_ACCOUNTS"
|
|
152
|
+
}
|
|
122
153
|
/** A GitHub App installation visible to a viewer, not necessarily linked yet. */
|
|
123
154
|
export type AccessibleGitHubAppInstallation = {
|
|
124
155
|
__typename?: 'AccessibleGitHubAppInstallation';
|
|
@@ -190,6 +221,8 @@ export type Account = {
|
|
|
190
221
|
/** Convex team connections for this account */
|
|
191
222
|
convexTeamConnections: Array<ConvexTeamConnection>;
|
|
192
223
|
createdAt: Scalars['DateTime']['output'];
|
|
224
|
+
/** Simulator sessions for all apps associated with this account, sorted newest first. */
|
|
225
|
+
deviceRunSessionsPaginated: AccountDeviceRunSessionsConnection;
|
|
193
226
|
displayName?: Maybe<Scalars['String']['output']>;
|
|
194
227
|
/** Echo projects for this account (paginated, most recent first) */
|
|
195
228
|
echoProjects: EchoProjectConnection;
|
|
@@ -426,6 +459,17 @@ export type Account_BillingPeriodArgs = {
|
|
|
426
459
|
export type Account_ConcurrencyConsumersArgs = {
|
|
427
460
|
limit?: Scalars['Int']['input'];
|
|
428
461
|
};
|
|
462
|
+
/**
|
|
463
|
+
* An account is a container owning projects, credentials, billing and other organization
|
|
464
|
+
* data and settings. Actors may own and be members of accounts.
|
|
465
|
+
*/
|
|
466
|
+
export type Account_DeviceRunSessionsPaginatedArgs = {
|
|
467
|
+
after?: InputMaybe<Scalars['String']['input']>;
|
|
468
|
+
before?: InputMaybe<Scalars['String']['input']>;
|
|
469
|
+
filter?: InputMaybe<AccountDeviceRunSessionFilterInput>;
|
|
470
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
471
|
+
last?: InputMaybe<Scalars['Int']['input']>;
|
|
472
|
+
};
|
|
429
473
|
/**
|
|
430
474
|
* An account is a container owning projects, credentials, billing and other organization
|
|
431
475
|
* data and settings. Actors may own and be members of accounts.
|
|
@@ -595,6 +639,19 @@ export type AccountDataInput = {
|
|
|
595
639
|
name: Scalars['String']['input'];
|
|
596
640
|
userSpecifiedAccountUsage?: InputMaybe<UserSpecifiedAccountUsage>;
|
|
597
641
|
};
|
|
642
|
+
export type AccountDeviceRunSessionFilterInput = {
|
|
643
|
+
statuses?: InputMaybe<Array<DeviceRunSessionStatus>>;
|
|
644
|
+
};
|
|
645
|
+
export type AccountDeviceRunSessionsConnection = {
|
|
646
|
+
__typename?: 'AccountDeviceRunSessionsConnection';
|
|
647
|
+
edges: Array<AccountDeviceRunSessionsEdge>;
|
|
648
|
+
pageInfo: PageInfo;
|
|
649
|
+
};
|
|
650
|
+
export type AccountDeviceRunSessionsEdge = {
|
|
651
|
+
__typename?: 'AccountDeviceRunSessionsEdge';
|
|
652
|
+
cursor: Scalars['String']['output'];
|
|
653
|
+
node: DeviceRunSession;
|
|
654
|
+
};
|
|
598
655
|
export type AccountGoogleServiceAccountKeysConnection = {
|
|
599
656
|
__typename?: 'AccountGoogleServiceAccountKeysConnection';
|
|
600
657
|
edges: Array<AccountGoogleServiceAccountKeysEdge>;
|
|
@@ -662,8 +719,6 @@ export type AccountMutation = {
|
|
|
662
719
|
cancelAllSubscriptionsImmediately: Account;
|
|
663
720
|
/** Cancel scheduled subscription change */
|
|
664
721
|
cancelScheduledSubscriptionChange: Account;
|
|
665
|
-
/** Buys or revokes account's additional agent credits, charging the account the appropriate amount if needed. */
|
|
666
|
-
changeAdditionalAgentCreditsCount: Account;
|
|
667
722
|
/** Buys or revokes account's additional concurrencies, charging the account the appropriate amount if needed. */
|
|
668
723
|
changeAdditionalConcurrenciesCount: Account;
|
|
669
724
|
/** Upgrades or downgrades the active subscription to the newPlanIdentifier, which must be one of the EAS plans (i.e., Production or Enterprise). */
|
|
@@ -700,10 +755,6 @@ export type AccountMutation_CancelAllSubscriptionsImmediatelyArgs = {
|
|
|
700
755
|
export type AccountMutation_CancelScheduledSubscriptionChangeArgs = {
|
|
701
756
|
accountID: Scalars['ID']['input'];
|
|
702
757
|
};
|
|
703
|
-
export type AccountMutation_ChangeAdditionalAgentCreditsCountArgs = {
|
|
704
|
-
accountID: Scalars['ID']['input'];
|
|
705
|
-
newAdditionalAgentCreditsCount: Scalars['Int']['input'];
|
|
706
|
-
};
|
|
707
758
|
export type AccountMutation_ChangeAdditionalConcurrenciesCountArgs = {
|
|
708
759
|
accountID: Scalars['ID']['input'];
|
|
709
760
|
newAdditionalConcurrenciesCount: Scalars['Int']['input'];
|
|
@@ -5419,6 +5470,12 @@ export type CrashesFilters = {
|
|
|
5419
5470
|
export type CreateAccessTokenInput = {
|
|
5420
5471
|
actorID: Scalars['ID']['input'];
|
|
5421
5472
|
note?: InputMaybe<Scalars['String']['input']>;
|
|
5473
|
+
/**
|
|
5474
|
+
* When given, requests authenticated with the new token are restricted to these scopes instead
|
|
5475
|
+
* of the actor's full access. Either a single ALL_ACCOUNTS scope or one ACCOUNT scope per
|
|
5476
|
+
* account.
|
|
5477
|
+
*/
|
|
5478
|
+
scopes?: InputMaybe<Array<AccessTokenScopeInput>>;
|
|
5422
5479
|
};
|
|
5423
5480
|
export type CreateAccessTokenResponse = {
|
|
5424
5481
|
__typename?: 'CreateAccessTokenResponse';
|
|
@@ -5759,6 +5816,7 @@ export type CreatePostHogDeepLinkInput = {
|
|
|
5759
5816
|
purpose?: InputMaybe<PostHogDeepLinkPurpose>;
|
|
5760
5817
|
};
|
|
5761
5818
|
export type CreateSandboxInput = {
|
|
5819
|
+
agentRunId?: InputMaybe<Scalars['ID']['input']>;
|
|
5762
5820
|
appId: Scalars['ID']['input'];
|
|
5763
5821
|
image?: InputMaybe<Scalars['String']['input']>;
|
|
5764
5822
|
operatingSystem: SandboxOperatingSystem;
|
|
@@ -6228,10 +6286,15 @@ export type DeviceRunSessionMutation = {
|
|
|
6228
6286
|
/** Create a device run session */
|
|
6229
6287
|
createDeviceRunSession: DeviceRunSession;
|
|
6230
6288
|
/**
|
|
6231
|
-
* Create a standard artifact and a two-hour upload URL for repeatedly
|
|
6289
|
+
* Create or reuse a standard artifact and a two-hour upload URL for repeatedly
|
|
6232
6290
|
* overwriting its structured event log while the backing job run is running.
|
|
6233
6291
|
*/
|
|
6234
6292
|
createEventLogUploadSession: CreateDeviceRunSessionEventLogUploadSessionResult;
|
|
6293
|
+
/**
|
|
6294
|
+
* Create or renew a two-hour upload URL for overwriting the session preview.
|
|
6295
|
+
* Reuses one WebP artifact while the backing job run is active.
|
|
6296
|
+
*/
|
|
6297
|
+
createPreviewUploadSession: CreateDeviceRunSessionArtifactUploadSessionResult;
|
|
6235
6298
|
/**
|
|
6236
6299
|
* Permanently delete a finished session and its artifacts. The backing job,
|
|
6237
6300
|
* if present, must also have finished. Returns the deleted session ID.
|
|
@@ -6261,6 +6324,9 @@ export type DeviceRunSessionMutation_CreateDeviceRunSessionArgs = {
|
|
|
6261
6324
|
export type DeviceRunSessionMutation_CreateEventLogUploadSessionArgs = {
|
|
6262
6325
|
deviceRunSessionId: Scalars['ID']['input'];
|
|
6263
6326
|
};
|
|
6327
|
+
export type DeviceRunSessionMutation_CreatePreviewUploadSessionArgs = {
|
|
6328
|
+
deviceRunSessionId: Scalars['ID']['input'];
|
|
6329
|
+
};
|
|
6264
6330
|
export type DeviceRunSessionMutation_DeleteDeviceRunSessionArgs = {
|
|
6265
6331
|
deviceRunSessionId: Scalars['ID']['input'];
|
|
6266
6332
|
};
|
|
@@ -6366,7 +6432,6 @@ export declare enum EasBuildWaiverType {
|
|
|
6366
6432
|
SystemError = "SYSTEM_ERROR"
|
|
6367
6433
|
}
|
|
6368
6434
|
export declare enum EasService {
|
|
6369
|
-
Agent = "AGENT",
|
|
6370
6435
|
Builds = "BUILDS",
|
|
6371
6436
|
Jobs = "JOBS",
|
|
6372
6437
|
Mcp = "MCP",
|
|
@@ -6377,7 +6442,6 @@ export declare enum EasServiceMetric {
|
|
|
6377
6442
|
AssetsRequests = "ASSETS_REQUESTS",
|
|
6378
6443
|
BandwidthUsage = "BANDWIDTH_USAGE",
|
|
6379
6444
|
Builds = "BUILDS",
|
|
6380
|
-
CreditUsage = "CREDIT_USAGE",
|
|
6381
6445
|
LocalBuilds = "LOCAL_BUILDS",
|
|
6382
6446
|
ManifestRequests = "MANIFEST_REQUESTS",
|
|
6383
6447
|
McpRequests = "MCP_REQUESTS",
|
|
@@ -8011,8 +8075,6 @@ export type InvoicePeriod = {
|
|
|
8011
8075
|
};
|
|
8012
8076
|
export type InvoiceQuery = {
|
|
8013
8077
|
__typename?: 'InvoiceQuery';
|
|
8014
|
-
/** Previews the invoice for the specified number of additional agent credit units. */
|
|
8015
|
-
previewInvoiceForAdditionalAgentCreditsCountUpdate?: Maybe<Invoice>;
|
|
8016
8078
|
/**
|
|
8017
8079
|
* Previews the invoice for the specified number of additional concurrencies.
|
|
8018
8080
|
* This is the total number of concurrencies the customer wishes to purchase
|
|
@@ -8024,10 +8086,6 @@ export type InvoiceQuery = {
|
|
|
8024
8086
|
/** Preview an upgrade subscription invoice, with proration */
|
|
8025
8087
|
previewInvoiceForSubscriptionUpdate: Invoice;
|
|
8026
8088
|
};
|
|
8027
|
-
export type InvoiceQuery_PreviewInvoiceForAdditionalAgentCreditsCountUpdateArgs = {
|
|
8028
|
-
accountID: Scalars['ID']['input'];
|
|
8029
|
-
additionalAgentCreditsCount: Scalars['Int']['input'];
|
|
8030
|
-
};
|
|
8031
8089
|
export type InvoiceQuery_PreviewInvoiceForAdditionalConcurrenciesCountUpdateArgs = {
|
|
8032
8090
|
accountID: Scalars['ID']['input'];
|
|
8033
8091
|
additionalConcurrenciesCount: Scalars['Int']['input'];
|
|
@@ -10005,7 +10063,9 @@ export type SubmissionArchiveSourceInput = {
|
|
|
10005
10063
|
url?: InputMaybe<Scalars['String']['input']>;
|
|
10006
10064
|
};
|
|
10007
10065
|
export declare enum SubmissionArchiveSourceType {
|
|
10066
|
+
/** @deprecated Submit with the build ID instead. */
|
|
10008
10067
|
GcsBuildApplicationArchive = "GCS_BUILD_APPLICATION_ARCHIVE",
|
|
10068
|
+
/** @deprecated Submit with the build ID instead. */
|
|
10009
10069
|
GcsBuildApplicationArchiveOrchestrator = "GCS_BUILD_APPLICATION_ARCHIVE_ORCHESTRATOR",
|
|
10010
10070
|
GcsSubmitArchive = "GCS_SUBMIT_ARCHIVE",
|
|
10011
10071
|
Url = "URL"
|
|
@@ -10071,7 +10131,6 @@ export type SubscriptionDetails = {
|
|
|
10071
10131
|
endedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
10072
10132
|
futureSubscription?: Maybe<FutureSubscription>;
|
|
10073
10133
|
id: Scalars['ID']['output'];
|
|
10074
|
-
includedAgentCreditsInCents: Scalars['Int']['output'];
|
|
10075
10134
|
isDowngrading?: Maybe<Scalars['Boolean']['output']>;
|
|
10076
10135
|
meteredBillingStatus: MeteredBillingStatus;
|
|
10077
10136
|
name?: Maybe<Scalars['String']['output']>;
|
|
@@ -10388,6 +10447,7 @@ export type Update = ActivityTimelineProjectActivity & {
|
|
|
10388
10447
|
runtime: Runtime;
|
|
10389
10448
|
/** @deprecated Use 'runtime' field . */
|
|
10390
10449
|
runtimeVersion: Scalars['String']['output'];
|
|
10450
|
+
sourceMapUrl?: Maybe<Scalars['String']['output']>;
|
|
10391
10451
|
updatedAt: Scalars['DateTime']['output'];
|
|
10392
10452
|
workflowJob?: Maybe<WorkflowJob>;
|
|
10393
10453
|
};
|
|
@@ -10929,9 +10989,11 @@ export type UsageBudget = {
|
|
|
10929
10989
|
export type UsageBudgetLimits = {
|
|
10930
10990
|
__typename?: 'UsageBudgetLimits';
|
|
10931
10991
|
builds?: Maybe<Scalars['Int']['output']>;
|
|
10992
|
+
simulatorMinutes?: Maybe<Scalars['Int']['output']>;
|
|
10932
10993
|
};
|
|
10933
10994
|
export type UsageBudgetLimitsInput = {
|
|
10934
10995
|
builds?: InputMaybe<Scalars['Int']['input']>;
|
|
10996
|
+
simulatorMinutes?: InputMaybe<Scalars['Int']['input']>;
|
|
10935
10997
|
};
|
|
10936
10998
|
export type UsageBudgetMutation = {
|
|
10937
10999
|
__typename?: 'UsageBudgetMutation';
|
|
@@ -10954,7 +11016,6 @@ export type UsageMetricTotal = {
|
|
|
10954
11016
|
export declare enum UsageMetricType {
|
|
10955
11017
|
Bandwidth = "BANDWIDTH",
|
|
10956
11018
|
Build = "BUILD",
|
|
10957
|
-
Credit = "CREDIT",
|
|
10958
11019
|
Event = "EVENT",
|
|
10959
11020
|
Minute = "MINUTE",
|
|
10960
11021
|
Request = "REQUEST",
|
|
@@ -21887,6 +21948,81 @@ export type ViewUpdatesByGroupQuery = {
|
|
|
21887
21948
|
} | null;
|
|
21888
21949
|
}>;
|
|
21889
21950
|
};
|
|
21951
|
+
export type ViewUpdatesByGroupWithFileUrlsQueryVariables = Exact<{
|
|
21952
|
+
groupId: Scalars['ID']['input'];
|
|
21953
|
+
}>;
|
|
21954
|
+
export type ViewUpdatesByGroupWithFileUrlsQuery = {
|
|
21955
|
+
__typename?: 'RootQuery';
|
|
21956
|
+
updatesByGroup: Array<{
|
|
21957
|
+
__typename?: 'Update';
|
|
21958
|
+
id: string;
|
|
21959
|
+
assetMapUrl?: string | null;
|
|
21960
|
+
sourceMapUrl?: string | null;
|
|
21961
|
+
group: string;
|
|
21962
|
+
message?: string | null;
|
|
21963
|
+
createdAt: any;
|
|
21964
|
+
platform: string;
|
|
21965
|
+
manifestFragment: string;
|
|
21966
|
+
isRollBackToEmbedded: boolean;
|
|
21967
|
+
manifestPermalink: string;
|
|
21968
|
+
gitCommitHash?: string | null;
|
|
21969
|
+
isGitWorkingTreeDirty: boolean;
|
|
21970
|
+
environment?: any | null;
|
|
21971
|
+
rolloutPercentage?: number | null;
|
|
21972
|
+
manifestHostOverride?: string | null;
|
|
21973
|
+
assetHostOverride?: string | null;
|
|
21974
|
+
runtime: {
|
|
21975
|
+
__typename?: 'Runtime';
|
|
21976
|
+
id: string;
|
|
21977
|
+
version: string;
|
|
21978
|
+
};
|
|
21979
|
+
actor?: {
|
|
21980
|
+
__typename: 'PartnerActor';
|
|
21981
|
+
username: string;
|
|
21982
|
+
id: string;
|
|
21983
|
+
} | {
|
|
21984
|
+
__typename: 'Robot';
|
|
21985
|
+
firstName?: string | null;
|
|
21986
|
+
id: string;
|
|
21987
|
+
} | {
|
|
21988
|
+
__typename: 'SSOUser';
|
|
21989
|
+
username: string;
|
|
21990
|
+
id: string;
|
|
21991
|
+
} | {
|
|
21992
|
+
__typename: 'User';
|
|
21993
|
+
username: string;
|
|
21994
|
+
id: string;
|
|
21995
|
+
} | null;
|
|
21996
|
+
branch: {
|
|
21997
|
+
__typename?: 'UpdateBranch';
|
|
21998
|
+
id: string;
|
|
21999
|
+
name: string;
|
|
22000
|
+
};
|
|
22001
|
+
codeSigningInfo?: {
|
|
22002
|
+
__typename?: 'CodeSigningInfo';
|
|
22003
|
+
keyid: string;
|
|
22004
|
+
sig: string;
|
|
22005
|
+
alg: string;
|
|
22006
|
+
} | null;
|
|
22007
|
+
rolloutControlUpdate?: {
|
|
22008
|
+
__typename?: 'Update';
|
|
22009
|
+
id: string;
|
|
22010
|
+
group: string;
|
|
22011
|
+
} | null;
|
|
22012
|
+
fingerprint?: {
|
|
22013
|
+
__typename?: 'Fingerprint';
|
|
22014
|
+
id: string;
|
|
22015
|
+
hash: string;
|
|
22016
|
+
debugInfoUrl?: string | null;
|
|
22017
|
+
source?: {
|
|
22018
|
+
__typename?: 'FingerprintSource';
|
|
22019
|
+
type: FingerprintSourceType;
|
|
22020
|
+
bucketKey: string;
|
|
22021
|
+
isDebugFingerprint?: boolean | null;
|
|
22022
|
+
} | null;
|
|
22023
|
+
} | null;
|
|
22024
|
+
}>;
|
|
22025
|
+
};
|
|
21890
22026
|
export type ViewUpdateGroupsOnBranchQueryVariables = Exact<{
|
|
21891
22027
|
appId: Scalars['String']['input'];
|
|
21892
22028
|
branchName: Scalars['String']['input'];
|
|
@@ -24495,6 +24631,75 @@ export type UpdateFragment = {
|
|
|
24495
24631
|
} | null;
|
|
24496
24632
|
} | null;
|
|
24497
24633
|
};
|
|
24634
|
+
export type UpdateWithFileUrlsFragment = {
|
|
24635
|
+
__typename?: 'Update';
|
|
24636
|
+
id: string;
|
|
24637
|
+
assetMapUrl?: string | null;
|
|
24638
|
+
sourceMapUrl?: string | null;
|
|
24639
|
+
group: string;
|
|
24640
|
+
message?: string | null;
|
|
24641
|
+
createdAt: any;
|
|
24642
|
+
platform: string;
|
|
24643
|
+
manifestFragment: string;
|
|
24644
|
+
isRollBackToEmbedded: boolean;
|
|
24645
|
+
manifestPermalink: string;
|
|
24646
|
+
gitCommitHash?: string | null;
|
|
24647
|
+
isGitWorkingTreeDirty: boolean;
|
|
24648
|
+
environment?: any | null;
|
|
24649
|
+
rolloutPercentage?: number | null;
|
|
24650
|
+
manifestHostOverride?: string | null;
|
|
24651
|
+
assetHostOverride?: string | null;
|
|
24652
|
+
runtime: {
|
|
24653
|
+
__typename?: 'Runtime';
|
|
24654
|
+
id: string;
|
|
24655
|
+
version: string;
|
|
24656
|
+
};
|
|
24657
|
+
actor?: {
|
|
24658
|
+
__typename: 'PartnerActor';
|
|
24659
|
+
username: string;
|
|
24660
|
+
id: string;
|
|
24661
|
+
} | {
|
|
24662
|
+
__typename: 'Robot';
|
|
24663
|
+
firstName?: string | null;
|
|
24664
|
+
id: string;
|
|
24665
|
+
} | {
|
|
24666
|
+
__typename: 'SSOUser';
|
|
24667
|
+
username: string;
|
|
24668
|
+
id: string;
|
|
24669
|
+
} | {
|
|
24670
|
+
__typename: 'User';
|
|
24671
|
+
username: string;
|
|
24672
|
+
id: string;
|
|
24673
|
+
} | null;
|
|
24674
|
+
branch: {
|
|
24675
|
+
__typename?: 'UpdateBranch';
|
|
24676
|
+
id: string;
|
|
24677
|
+
name: string;
|
|
24678
|
+
};
|
|
24679
|
+
codeSigningInfo?: {
|
|
24680
|
+
__typename?: 'CodeSigningInfo';
|
|
24681
|
+
keyid: string;
|
|
24682
|
+
sig: string;
|
|
24683
|
+
alg: string;
|
|
24684
|
+
} | null;
|
|
24685
|
+
rolloutControlUpdate?: {
|
|
24686
|
+
__typename?: 'Update';
|
|
24687
|
+
id: string;
|
|
24688
|
+
group: string;
|
|
24689
|
+
} | null;
|
|
24690
|
+
fingerprint?: {
|
|
24691
|
+
__typename?: 'Fingerprint';
|
|
24692
|
+
id: string;
|
|
24693
|
+
hash: string;
|
|
24694
|
+
debugInfoUrl?: string | null;
|
|
24695
|
+
source?: {
|
|
24696
|
+
__typename?: 'FingerprintSource';
|
|
24697
|
+
type: FingerprintSourceType;
|
|
24698
|
+
bucketKey: string;
|
|
24699
|
+
isDebugFingerprint?: boolean | null;
|
|
24700
|
+
} | null;
|
|
24701
|
+
} | null;
|
|
24702
|
+
};
|
|
24498
24703
|
export type UpdateBranchFragment = {
|
|
24499
24704
|
__typename?: 'UpdateBranch';
|
|
24500
24705
|
id: string;
|