eas-cli 24.10.0 → 24.12.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.
@@ -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;
@@ -6,10 +6,20 @@
6
6
  * For more info and docs, visit https://graphql-code-generator.com/
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
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.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.DeviceRunSessionRequestOrigin = 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.SubmissionStatus = exports.SubmissionPriority = exports.SubmissionArchiveSourceType = exports.SubmissionAndroidReleaseStatus = exports.StatuspageServiceStatus = exports.StatuspageServiceName = exports.StatuspageIncidentStatus = exports.StatuspageIncidentImpact = exports.StandardOffer = exports.SourceMapSourceType = exports.SecondFactorMethod = exports.SandboxStatus = exports.SandboxResourceClass = exports.SandboxOperatingSystem = 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 = exports.GitHubAppInstallationStatus = 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 = exports.UpdateDiffReceiptOrderByField = exports.UpdateDiffReceiptOrderByDirection = exports.TurtleSshTransportType = exports.TurtleSshTargetType = exports.TargetEntityMutationType = exports.SupabaseAdvisorType = exports.SupabaseAdvisorLintLevel = void 0;
9
+ 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 = exports.AccessTokenScopeType = void 0;
10
+ 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.DeviceRunSessionRequestOrigin = 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 = exports.BuildAnnotationType = void 0;
11
+ exports.SubmissionPriority = exports.SubmissionArchiveSourceType = exports.SubmissionAndroidReleaseStatus = exports.StatuspageServiceStatus = exports.StatuspageServiceName = exports.StatuspageIncidentStatus = exports.StatuspageIncidentImpact = exports.StandardOffer = exports.SourceMapSourceType = exports.SecondFactorMethod = exports.SandboxStatus = exports.SandboxResourceClass = exports.SandboxOperatingSystem = 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 = exports.GitHubAppInstallationStatus = exports.GitHubAppInstallationAccountType = 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 = exports.UpdateDiffReceiptOrderByField = exports.UpdateDiffReceiptOrderByDirection = exports.TurtleSshTransportType = exports.TurtleSshTargetType = exports.TargetEntityMutationType = exports.SupabaseAdvisorType = exports.SupabaseAdvisorLintLevel = exports.SubmissionStatus = void 0;
13
+ var AccessTokenScopeType;
14
+ (function (AccessTokenScopeType) {
15
+ /** One account, named by accountID, narrowed to the scope's permissions. */
16
+ AccessTokenScopeType["Account"] = "ACCOUNT";
17
+ /**
18
+ * Every account the token's owner has permissions on at request time, narrowed to the
19
+ * scope's permissions.
20
+ */
21
+ AccessTokenScopeType["AllAccounts"] = "ALL_ACCOUNTS";
22
+ })(AccessTokenScopeType || (exports.AccessTokenScopeType = AccessTokenScopeType = {}));
13
23
  var AccountAppsSortByField;
14
24
  (function (AccountAppsSortByField) {
15
25
  AccountAppsSortByField["LatestActivityTime"] = "LATEST_ACTIVITY_TIME";
@@ -583,7 +593,6 @@ var EasBuildWaiverType;
583
593
  })(EasBuildWaiverType || (exports.EasBuildWaiverType = EasBuildWaiverType = {}));
584
594
  var EasService;
585
595
  (function (EasService) {
586
- EasService["Agent"] = "AGENT";
587
596
  EasService["Builds"] = "BUILDS";
588
597
  EasService["Jobs"] = "JOBS";
589
598
  EasService["Mcp"] = "MCP";
@@ -595,7 +604,6 @@ var EasServiceMetric;
595
604
  EasServiceMetric["AssetsRequests"] = "ASSETS_REQUESTS";
596
605
  EasServiceMetric["BandwidthUsage"] = "BANDWIDTH_USAGE";
597
606
  EasServiceMetric["Builds"] = "BUILDS";
598
- EasServiceMetric["CreditUsage"] = "CREDIT_USAGE";
599
607
  EasServiceMetric["LocalBuilds"] = "LOCAL_BUILDS";
600
608
  EasServiceMetric["ManifestRequests"] = "MANIFEST_REQUESTS";
601
609
  EasServiceMetric["McpRequests"] = "MCP_REQUESTS";
@@ -1104,7 +1112,9 @@ var SubmissionAndroidReleaseStatus;
1104
1112
  })(SubmissionAndroidReleaseStatus || (exports.SubmissionAndroidReleaseStatus = SubmissionAndroidReleaseStatus = {}));
1105
1113
  var SubmissionArchiveSourceType;
1106
1114
  (function (SubmissionArchiveSourceType) {
1115
+ /** @deprecated Submit with the build ID instead. */
1107
1116
  SubmissionArchiveSourceType["GcsBuildApplicationArchive"] = "GCS_BUILD_APPLICATION_ARCHIVE";
1117
+ /** @deprecated Submit with the build ID instead. */
1108
1118
  SubmissionArchiveSourceType["GcsBuildApplicationArchiveOrchestrator"] = "GCS_BUILD_APPLICATION_ARCHIVE_ORCHESTRATOR";
1109
1119
  SubmissionArchiveSourceType["GcsSubmitArchive"] = "GCS_SUBMIT_ARCHIVE";
1110
1120
  SubmissionArchiveSourceType["Url"] = "URL";
@@ -1190,7 +1200,6 @@ var UsageMetricType;
1190
1200
  (function (UsageMetricType) {
1191
1201
  UsageMetricType["Bandwidth"] = "BANDWIDTH";
1192
1202
  UsageMetricType["Build"] = "BUILD";
1193
- UsageMetricType["Credit"] = "CREDIT";
1194
1203
  UsageMetricType["Event"] = "EVENT";
1195
1204
  UsageMetricType["Minute"] = "MINUTE";
1196
1205
  UsageMetricType["Request"] = "REQUEST";
@@ -1,7 +1,12 @@
1
1
  import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
2
- import { UpdateByIdQueryVariables, UpdateFragment, ViewUpdateGroupsOnAppQueryVariables, ViewUpdateGroupsOnBranchQueryVariables, ViewUpdateGroupsPaginatedOnBranchQueryVariables, ViewUpdatesByGroupQueryVariables } from '../generated';
2
+ import { UpdateByIdQueryVariables, UpdateFragment, UpdateWithFileUrlsFragment, ViewUpdateGroupsOnAppQueryVariables, ViewUpdateGroupsOnBranchQueryVariables, ViewUpdateGroupsPaginatedOnBranchQueryVariables, ViewUpdatesByGroupQueryVariables, ViewUpdatesByGroupWithFileUrlsQueryVariables } from '../generated';
3
3
  export declare const UpdateQuery: {
4
4
  viewUpdateGroupAsync(graphqlClient: ExpoGraphqlClient, { groupId }: ViewUpdatesByGroupQueryVariables): Promise<UpdateFragment[]>;
5
+ /**
6
+ * Same as viewUpdateGroupAsync, but also fetches the signed asset map and source map URLs.
7
+ * Those are signed per request on the server, so only use this when the URLs are shown.
8
+ */
9
+ viewUpdateGroupWithFileUrlsAsync(graphqlClient: ExpoGraphqlClient, { groupId }: ViewUpdatesByGroupWithFileUrlsQueryVariables): Promise<UpdateWithFileUrlsFragment[]>;
5
10
  viewUpdateGroupsOnBranchAsync(graphqlClient: ExpoGraphqlClient, { limit, offset, appId, branchName, filter }: ViewUpdateGroupsOnBranchQueryVariables): Promise<UpdateFragment[][]>;
6
11
  viewUpdateGroupsPaginatedOnBranchAsync(graphqlClient: ExpoGraphqlClient, { appId, branchName, first, last, after, before, filter, }: ViewUpdateGroupsPaginatedOnBranchQueryVariables): Promise<UpdateFragment[][]>;
7
12
  viewUpdateGroupsOnAppAsync(graphqlClient: ExpoGraphqlClient, { limit, offset, appId, filter }: ViewUpdateGroupsOnAppQueryVariables): Promise<UpdateFragment[][]>;
@@ -26,6 +26,29 @@ exports.UpdateQuery = {
26
26
  }
27
27
  return updatesByGroup;
28
28
  },
29
+ /**
30
+ * Same as viewUpdateGroupAsync, but also fetches the signed asset map and source map URLs.
31
+ * Those are signed per request on the server, so only use this when the URLs are shown.
32
+ */
33
+ async viewUpdateGroupWithFileUrlsAsync(graphqlClient, { groupId }) {
34
+ const { updatesByGroup } = await (0, client_1.withErrorHandlingAsync)(graphqlClient
35
+ .query((0, graphql_tag_1.default) `
36
+ query ViewUpdatesByGroupWithFileUrls($groupId: ID!) {
37
+ updatesByGroup(group: $groupId) {
38
+ id
39
+ ...UpdateWithFileUrlsFragment
40
+ }
41
+ }
42
+ ${(0, graphql_1.print)(Update_1.UpdateWithFileUrlsFragmentNode)}
43
+ `, {
44
+ groupId,
45
+ }, { additionalTypenames: ['Update'] })
46
+ .toPromise());
47
+ if (updatesByGroup.length === 0) {
48
+ throw new Error(`Could not find any updates with group ID: "${groupId}"`);
49
+ }
50
+ return updatesByGroup;
51
+ },
29
52
  async viewUpdateGroupsOnBranchAsync(graphqlClient, { limit, offset, appId, branchName, filter }) {
30
53
  const response = await (0, client_1.withErrorHandlingAsync)(graphqlClient
31
54
  .query((0, graphql_tag_1.default) `
@@ -36,6 +36,8 @@ function isNotFoundError(error) {
36
36
  return error.graphQLErrors.some(e => {
37
37
  const code = e?.extensions?.errorCode ?? e?.extensions?.code;
38
38
  return (code === 'ENTITY_NOT_FOUND' ||
39
+ code === 'BUILD_NOT_FOUND' ||
40
+ code === 'NOT_FOUND_ERROR' ||
39
41
  /Entity not found/i.test(e?.message ?? '') ||
40
42
  /not found/i.test(e?.message ?? ''));
41
43
  });
@@ -1 +1,8 @@
1
1
  export declare const UpdateFragmentNode: import("graphql").DocumentNode;
2
+ /**
3
+ * UpdateFragment plus the stored file URLs.
4
+ *
5
+ * Each URL is signed on demand by the server, which is not free, so only query this where the
6
+ * URLs are actually shown. List queries should use UpdateFragment.
7
+ */
8
+ export declare const UpdateWithFileUrlsFragmentNode: import("graphql").DocumentNode;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateFragmentNode = void 0;
3
+ exports.UpdateWithFileUrlsFragmentNode = exports.UpdateFragmentNode = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const graphql_1 = require("graphql");
5
6
  const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
6
7
  exports.UpdateFragmentNode = (0, graphql_tag_1.default) `
7
8
  fragment UpdateFragment on Update {
@@ -61,3 +62,18 @@ exports.UpdateFragmentNode = (0, graphql_tag_1.default) `
61
62
  assetHostOverride
62
63
  }
63
64
  `;
65
+ /**
66
+ * UpdateFragment plus the stored file URLs.
67
+ *
68
+ * Each URL is signed on demand by the server, which is not free, so only query this where the
69
+ * URLs are actually shown. List queries should use UpdateFragment.
70
+ */
71
+ exports.UpdateWithFileUrlsFragmentNode = (0, graphql_tag_1.default) `
72
+ fragment UpdateWithFileUrlsFragment on Update {
73
+ id
74
+ ...UpdateFragment
75
+ assetMapUrl
76
+ sourceMapUrl
77
+ }
78
+ ${(0, graphql_1.print)(exports.UpdateFragmentNode)}
79
+ `;
@@ -0,0 +1,20 @@
1
+ import { AnalyticsEventProperties } from '../analytics/AnalyticsManager';
2
+ /** Matches www's `request_origin` value for eas-cli, though this CLI does not send it to www yet. */
3
+ export declare const SIMULATOR_REQUEST_ORIGIN = "eas-cli";
4
+ export type SimulatorRequestFailureReason = 'network_error' | 'timeout';
5
+ export declare function simulatorRequestProperties({ projectId, type, platform, hasBuildId, hasArchiveUrl, expoGo, packageVersion, nonInteractive, }: {
6
+ projectId: string;
7
+ type: string;
8
+ platform: string;
9
+ hasBuildId: boolean;
10
+ hasArchiveUrl: boolean;
11
+ expoGo: boolean;
12
+ packageVersion?: string;
13
+ nonInteractive: boolean;
14
+ }): AnalyticsEventProperties;
15
+ /**
16
+ * Why the create request got no answer, or null when the server answered. A server refusal is
17
+ * not a client failure: www reports it as an admission denial, so counting it here would count
18
+ * the same attempt twice.
19
+ */
20
+ export declare function simulatorRequestFailureReason(error: unknown): SimulatorRequestFailureReason | null;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SIMULATOR_REQUEST_ORIGIN = void 0;
4
+ exports.simulatorRequestProperties = simulatorRequestProperties;
5
+ exports.simulatorRequestFailureReason = simulatorRequestFailureReason;
6
+ const core_1 = require("@urql/core");
7
+ /** Matches www's `request_origin` value for eas-cli, though this CLI does not send it to www yet. */
8
+ exports.SIMULATOR_REQUEST_ORIGIN = 'eas-cli';
9
+ const TIMEOUT_CODES = new Set([
10
+ 'ETIMEDOUT',
11
+ 'ESOCKETTIMEDOUT',
12
+ 'UND_ERR_CONNECT_TIMEOUT',
13
+ 'UND_ERR_HEADERS_TIMEOUT',
14
+ ]);
15
+ function simulatorRequestProperties({ projectId, type, platform, hasBuildId, hasArchiveUrl, expoGo, packageVersion, nonInteractive, }) {
16
+ return {
17
+ project_id: projectId,
18
+ origin: exports.SIMULATOR_REQUEST_ORIGIN,
19
+ type,
20
+ platform: platform.toLowerCase(),
21
+ has_build_id: hasBuildId,
22
+ has_archive_url: hasArchiveUrl,
23
+ expo_go: expoGo,
24
+ ...(packageVersion ? { requested_package_version: packageVersion } : {}),
25
+ non_interactive: nonInteractive,
26
+ };
27
+ }
28
+ /**
29
+ * Why the create request got no answer, or null when the server answered. A server refusal is
30
+ * not a client failure: www reports it as an admission denial, so counting it here would count
31
+ * the same attempt twice.
32
+ */
33
+ function simulatorRequestFailureReason(error) {
34
+ if (!(error instanceof core_1.CombinedError) || !error.networkError || error.graphQLErrors.length > 0) {
35
+ return null;
36
+ }
37
+ // urql attaches the HTTP response to non-2xx answers too, such as a 504 from the load balancer.
38
+ // An answer arrived, so www may have seen the request already.
39
+ if (error.response) {
40
+ return null;
41
+ }
42
+ const networkError = error.networkError;
43
+ const code = networkError.code ?? networkError.cause?.code;
44
+ if ((code && TIMEOUT_CODES.has(code)) ||
45
+ networkError.name === 'AbortError' ||
46
+ networkError.name === 'TimeoutError') {
47
+ return 'timeout';
48
+ }
49
+ return 'network_error';
50
+ }