eas-cli 24.5.0 → 24.7.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.
Files changed (45) hide show
  1. package/README.md +133 -133
  2. package/build/build/build.js +71 -17
  3. package/build/build/logs.d.ts +10 -0
  4. package/build/build/logs.js +91 -0
  5. package/build/commandUtils/logs/format.d.ts +10 -0
  6. package/build/commandUtils/logs/format.js +21 -0
  7. package/build/commandUtils/logs/parseLogs.d.ts +7 -0
  8. package/build/commandUtils/{workflow/logs → logs}/parseLogs.js +1 -21
  9. package/build/commandUtils/logs/state.d.ts +14 -0
  10. package/build/commandUtils/logs/state.js +71 -0
  11. package/build/commandUtils/logs/types.d.ts +19 -0
  12. package/build/commandUtils/logs/types.js +2 -0
  13. package/build/commandUtils/logs/watcher.d.ts +23 -0
  14. package/build/commandUtils/logs/watcher.js +80 -0
  15. package/build/commandUtils/workflow/{logs/fetchLogs.d.ts → fetchLogs.d.ts} +2 -2
  16. package/build/commandUtils/workflow/{logs/fetchLogs.js → fetchLogs.js} +1 -1
  17. package/build/commandUtils/workflow/logs.d.ts +8 -0
  18. package/build/commandUtils/workflow/logs.js +43 -0
  19. package/build/commandUtils/workflow/stateMachine.d.ts +4 -3
  20. package/build/commandUtils/workflow/stateMachine.js +4 -3
  21. package/build/commandUtils/workflow/types.d.ts +0 -19
  22. package/build/commandUtils/workflow/utils.d.ts +3 -7
  23. package/build/commandUtils/workflow/utils.js +12 -29
  24. package/build/commands/go.js +15 -16
  25. package/build/credentials/manager/ManageIos.js +2 -2
  26. package/build/credentials/manager/SetUpIosBuildCredentials.js +2 -2
  27. package/build/graphql/generated.d.ts +221 -17
  28. package/build/graphql/generated.js +22 -2
  29. package/build/graphql/queries/DeviceRunSessionQuery.js +5 -0
  30. package/build/graphql/queries/UserQuery.d.ts +2 -1
  31. package/build/graphql/queries/UserQuery.js +39 -23
  32. package/build/graphql/types/Actor.d.ts +1 -0
  33. package/build/graphql/types/Actor.js +34 -0
  34. package/build/ora.d.ts +1 -0
  35. package/build/ora.js +5 -1
  36. package/build/simulator/utils.d.ts +7 -6
  37. package/build/simulator/utils.js +34 -13
  38. package/build/utils/centrifuge.js +2 -0
  39. package/oclif.manifest.json +645 -645
  40. package/package.json +2 -2
  41. package/build/commandUtils/workflow/logs/parseLogs.d.ts +0 -14
  42. package/build/commandUtils/workflow/logs/watcher.d.ts +0 -32
  43. package/build/commandUtils/workflow/logs/watcher.js +0 -162
  44. package/build/user/actions.d.ts +0 -3
  45. package/build/user/actions.js +0 -9
@@ -993,6 +993,8 @@ export type AgentDeviceRunSessionRemoteConfig = {
993
993
  */
994
994
  egressUrl?: Maybe<Scalars['String']['output']>;
995
995
  /** Session token gating the web preview. Null when the preview runs ungated. */
996
+ /** URL of the preview server, for reaching its API rather than its page. */
997
+ previewApiUrl?: Maybe<Scalars['String']['output']>;
996
998
  webPreviewToken?: Maybe<Scalars['String']['output']>;
997
999
  /**
998
1000
  * URL of the web preview surface for the session. Null when a web preview is
@@ -3157,7 +3159,8 @@ export type AppObserveOverviewEngagementInput = {
3157
3159
  };
3158
3160
  export type AppObserveOverviewEngagementStat = {
3159
3161
  __typename?: 'AppObserveOverviewEngagementStat';
3160
- previousPeriodTotal: Scalars['Int']['output'];
3162
+ /** Total for the equal-length window before startTime. Null when the window is longer than 45 days, since the previous period would fall outside the 90-day retention. */
3163
+ previousPeriodTotal?: Maybe<Scalars['Int']['output']>;
3161
3164
  /** Per-bucket approximate uniques; buckets do not sum to `total`. */
3162
3165
  series: Array<AppObserveOverviewEngagementBucket>;
3163
3166
  total: Scalars['Int']['output'];
@@ -3172,12 +3175,13 @@ export type AppObserveOverviewStability = {
3172
3175
  crashFreeUsers: Scalars['Float']['output'];
3173
3176
  /** Distinct users that hit a fatal error in range. */
3174
3177
  crashedUsers: Scalars['Int']['output'];
3175
- /** Fatal exception events in the equal-length window before startTime. */
3176
- previousPeriodCrashCount: Scalars['Int']['output'];
3177
- /** Same fractions for the equal-length window before startTime; null when it had no activity. */
3178
+ /** Fatal exception events in the equal-length window before startTime. Null when the window is longer than 45 days. */
3179
+ previousPeriodCrashCount?: Maybe<Scalars['Int']['output']>;
3180
+ /** Same fractions for the equal-length window before startTime; null when it had no activity, or when the window is longer than 45 days and the previous period falls outside the 90-day retention. */
3178
3181
  previousPeriodCrashFreeSessions?: Maybe<Scalars['Float']['output']>;
3179
3182
  previousPeriodCrashFreeUsers?: Maybe<Scalars['Float']['output']>;
3180
- previousPeriodCrashedUsers: Scalars['Int']['output'];
3183
+ /** Null when the window is longer than 45 days. */
3184
+ previousPeriodCrashedUsers?: Maybe<Scalars['Int']['output']>;
3181
3185
  series: Array<AppObserveOverviewStabilityBucket>;
3182
3186
  /** All exception events in range, for distinguishing quiet apps from crash-free ones. */
3183
3187
  totalErrors: Scalars['Int']['output'];
@@ -3596,6 +3600,8 @@ export declare enum AppObserveUserEventListOrderByField {
3596
3600
  export type AppObserveUserEventName = {
3597
3601
  __typename?: 'AppObserveUserEventName';
3598
3602
  count: Scalars['Int']['output'];
3603
+ firstSeenAt: Scalars['DateTime']['output'];
3604
+ lastSeenAt: Scalars['DateTime']['output'];
3599
3605
  name: Scalars['String']['output'];
3600
3606
  };
3601
3607
  export type AppObserveUserEventNames = {
@@ -3622,6 +3628,8 @@ export type AppObserveUserEventNamesOrderBy = {
3622
3628
  };
3623
3629
  export declare enum AppObserveUserEventNamesOrderByField {
3624
3630
  Count = "COUNT",
3631
+ FirstSeen = "FIRST_SEEN",
3632
+ LastSeen = "LAST_SEEN",
3625
3633
  Name = "NAME"
3626
3634
  }
3627
3635
  export type AppObserveUserEventPropertyFilter = {
@@ -4084,6 +4092,8 @@ export type AppiumRunSessionRemoteConfig = {
4084
4092
  */
4085
4093
  egressUrl?: Maybe<Scalars['String']['output']>;
4086
4094
  /** Session token gating the web preview. Null when the preview runs ungated. */
4095
+ /** URL of the preview server, for reaching its API rather than its page. */
4096
+ previewApiUrl?: Maybe<Scalars['String']['output']>;
4087
4097
  webPreviewToken?: Maybe<Scalars['String']['output']>;
4088
4098
  /**
4089
4099
  * URL of the web preview surface for the session. Null when a web preview is
@@ -4430,6 +4440,8 @@ export type ArgentRunSessionRemoteConfig = {
4430
4440
  * session does not use local egress.
4431
4441
  */
4432
4442
  egressUrl?: Maybe<Scalars['String']['output']>;
4443
+ /** URL of the preview server, for reaching its API rather than its page. */
4444
+ previewApiUrl?: Maybe<Scalars['String']['output']>;
4433
4445
  toolsAuthToken?: Maybe<Scalars['String']['output']>;
4434
4446
  toolsUrl: Scalars['String']['output'];
4435
4447
  /** Session token gating the web preview. Null when the preview runs ungated. */
@@ -9202,6 +9214,7 @@ export type RootQuery = {
9202
9214
  posthogIntegration: PostHogIntegrationQuery;
9203
9215
  /** Top-level query object for querying Runtimes. */
9204
9216
  runtimes: RuntimeQuery;
9217
+ sandboxes: SandboxQuery;
9205
9218
  snack: SnackQuery;
9206
9219
  /** Top-level query object for querying Expo status page services. */
9207
9220
  statuspageService: StatuspageServiceQuery;
@@ -9410,6 +9423,31 @@ export type SsoUserDataInput = {
9410
9423
  firstName?: InputMaybe<Scalars['String']['input']>;
9411
9424
  lastName?: InputMaybe<Scalars['String']['input']>;
9412
9425
  };
9426
+ export type Sandbox = {
9427
+ __typename?: 'Sandbox';
9428
+ app: App;
9429
+ createdAt: Scalars['DateTime']['output'];
9430
+ finishedAt?: Maybe<Scalars['DateTime']['output']>;
9431
+ id: Scalars['ID']['output'];
9432
+ lastUsedAt: Scalars['DateTime']['output'];
9433
+ startedAt?: Maybe<Scalars['DateTime']['output']>;
9434
+ status: SandboxStatus;
9435
+ turtleJobRun: JobRun;
9436
+ updatedAt: Scalars['DateTime']['output'];
9437
+ };
9438
+ export type SandboxQuery = {
9439
+ __typename?: 'SandboxQuery';
9440
+ byId: Sandbox;
9441
+ };
9442
+ export type SandboxQuery_ByIdArgs = {
9443
+ sandboxId: Scalars['ID']['input'];
9444
+ };
9445
+ export declare enum SandboxStatus {
9446
+ Errored = "ERRORED",
9447
+ Running = "RUNNING",
9448
+ Starting = "STARTING",
9449
+ Stopped = "STOPPED"
9450
+ }
9413
9451
  export type SecondFactorBooleanResult = {
9414
9452
  __typename?: 'SecondFactorBooleanResult';
9415
9453
  success: Scalars['Boolean']['output'];
@@ -9527,6 +9565,8 @@ export type ServeSimRunSessionRemoteConfig = {
9527
9565
  */
9528
9566
  egressUrl?: Maybe<Scalars['String']['output']>;
9529
9567
  /** Session token gating the preview. Null when the preview runs ungated. */
9568
+ /** URL of the preview server, for reaching its API rather than its page. */
9569
+ previewApiUrl?: Maybe<Scalars['String']['output']>;
9530
9570
  previewToken?: Maybe<Scalars['String']['output']>;
9531
9571
  previewUrl: Scalars['String']['output'];
9532
9572
  /** @deprecated Use previewUrl instead. */
@@ -9847,6 +9887,32 @@ export type SubscriptionDetails = {
9847
9887
  export type SubscriptionDetails_PlanEnablementArgs = {
9848
9888
  serviceMetric: EasServiceMetric;
9849
9889
  };
9890
+ /** An unresolved finding from Supabase's Security or Performance Advisor (database linter). */
9891
+ export type SupabaseAdvisorLint = {
9892
+ __typename?: 'SupabaseAdvisorLint';
9893
+ /** Stable identifier for this finding on this project. */
9894
+ cacheKey: Scalars['String']['output'];
9895
+ description: Scalars['String']['output'];
9896
+ /** Project-specific explanation naming the affected schema object. */
9897
+ detail: Scalars['String']['output'];
9898
+ /** Affected schema object, e.g. public.todos, when the lint names one. */
9899
+ entity?: Maybe<Scalars['String']['output']>;
9900
+ level: SupabaseAdvisorLintLevel;
9901
+ /** Lint rule identifier, e.g. rls_disabled_in_public. */
9902
+ name: Scalars['String']['output'];
9903
+ /** Link to the remediation guide, when Supabase provides one. */
9904
+ remediation?: Maybe<Scalars['String']['output']>;
9905
+ title: Scalars['String']['output'];
9906
+ };
9907
+ export declare enum SupabaseAdvisorLintLevel {
9908
+ Error = "ERROR",
9909
+ Info = "INFO",
9910
+ Warn = "WARN"
9911
+ }
9912
+ export declare enum SupabaseAdvisorType {
9913
+ Performance = "PERFORMANCE",
9914
+ Security = "SECURITY"
9915
+ }
9850
9916
  export type SupabaseConnection = {
9851
9917
  __typename?: 'SupabaseConnection';
9852
9918
  account: Account;
@@ -9909,6 +9975,12 @@ export type SupabaseOrganization = {
9909
9975
  };
9910
9976
  export type SupabaseProject = {
9911
9977
  __typename?: 'SupabaseProject';
9978
+ /**
9979
+ * Live unresolved lints from the project's Security or Performance Advisor, ordered by severity.
9980
+ * Readable with view permission; a token refresh triggered by a read is persisted with elevated
9981
+ * privileges. Null when Supabase cannot be reached.
9982
+ */
9983
+ advisorLints?: Maybe<Array<SupabaseAdvisorLint>>;
9912
9984
  app: App;
9913
9985
  createdAt: Scalars['DateTime']['output'];
9914
9986
  id: Scalars['ID']['output'];
@@ -9919,6 +9991,9 @@ export type SupabaseProject = {
9919
9991
  supabaseRegion: Scalars['String']['output'];
9920
9992
  updatedAt: Scalars['DateTime']['output'];
9921
9993
  };
9994
+ export type SupabaseProject_AdvisorLintsArgs = {
9995
+ type: SupabaseAdvisorType;
9996
+ };
9922
9997
  export type SupabaseProjectMutation = {
9923
9998
  __typename?: 'SupabaseProjectMutation';
9924
9999
  /** Removes the Expo-side project link only; the Supabase project is preserved. */
@@ -11276,6 +11351,8 @@ export type WebPreviewOnlyRunSessionRemoteConfig = {
11276
11351
  */
11277
11352
  egressUrl?: Maybe<Scalars['String']['output']>;
11278
11353
  /** Session token gating the web preview. Null when the preview runs ungated. */
11354
+ /** URL of the preview server, for reaching its API rather than its page. */
11355
+ previewApiUrl?: Maybe<Scalars['String']['output']>;
11279
11356
  webPreviewToken?: Maybe<Scalars['String']['output']>;
11280
11357
  webPreviewUrl: Scalars['String']['output'];
11281
11358
  };
@@ -19791,6 +19868,7 @@ export type DeviceRunSessionByIdQuery = {
19791
19868
  agentDeviceRemoteSessionToken: string;
19792
19869
  webPreviewUrl?: string | null;
19793
19870
  webPreviewToken?: string | null;
19871
+ previewApiUrl?: string | null;
19794
19872
  egressUrl?: string | null;
19795
19873
  egressToken?: string | null;
19796
19874
  egressFingerprint?: string | null;
@@ -19805,6 +19883,7 @@ export type DeviceRunSessionByIdQuery = {
19805
19883
  capabilities: any;
19806
19884
  webPreviewUrl?: string | null;
19807
19885
  webPreviewToken?: string | null;
19886
+ previewApiUrl?: string | null;
19808
19887
  } | {
19809
19888
  __typename: 'ArgentRunSessionRemoteConfig';
19810
19889
  egressUrl?: string | null;
@@ -19815,6 +19894,7 @@ export type DeviceRunSessionByIdQuery = {
19815
19894
  toolsAuthToken?: string | null;
19816
19895
  webPreviewUrl?: string | null;
19817
19896
  webPreviewToken?: string | null;
19897
+ previewApiUrl?: string | null;
19818
19898
  } | {
19819
19899
  __typename: 'ServeSimRunSessionRemoteConfig';
19820
19900
  egressUrl?: string | null;
@@ -19823,12 +19903,14 @@ export type DeviceRunSessionByIdQuery = {
19823
19903
  egressPort?: number | null;
19824
19904
  previewUrl: string;
19825
19905
  previewToken?: string | null;
19906
+ previewApiUrl?: string | null;
19826
19907
  } | {
19827
19908
  __typename: 'WebPreviewOnlyRunSessionRemoteConfig';
19828
19909
  egressUrl?: string | null;
19829
19910
  egressToken?: string | null;
19830
19911
  egressFingerprint?: string | null;
19831
19912
  egressPort?: number | null;
19913
+ previewApiUrl?: string | null;
19832
19914
  previewUrl: string;
19833
19915
  previewToken?: string | null;
19834
19916
  } | null;
@@ -21856,8 +21938,8 @@ export type CurrentUserQuery = {
21856
21938
  __typename?: 'RootQuery';
21857
21939
  meActor?: {
21858
21940
  __typename: 'PartnerActor';
21859
- username: string;
21860
21941
  id: string;
21942
+ username: string;
21861
21943
  featureGates: any;
21862
21944
  isExpoAdmin: boolean;
21863
21945
  accounts: Array<{
@@ -21880,8 +21962,8 @@ export type CurrentUserQuery = {
21880
21962
  }>;
21881
21963
  } | {
21882
21964
  __typename: 'Robot';
21883
- firstName?: string | null;
21884
21965
  id: string;
21966
+ firstName?: string | null;
21885
21967
  featureGates: any;
21886
21968
  isExpoAdmin: boolean;
21887
21969
  accounts: Array<{
@@ -21904,11 +21986,11 @@ export type CurrentUserQuery = {
21904
21986
  }>;
21905
21987
  } | {
21906
21988
  __typename: 'SSOUser';
21907
- username: string;
21908
21989
  id: string;
21990
+ username: string;
21909
21991
  featureGates: any;
21910
21992
  isExpoAdmin: boolean;
21911
- primaryAccount: {
21993
+ accounts: Array<{
21912
21994
  __typename?: 'Account';
21913
21995
  id: string;
21914
21996
  name: string;
@@ -21925,7 +22007,14 @@ export type CurrentUserQuery = {
21925
22007
  __typename?: 'UserPermission';
21926
22008
  role: Role;
21927
22009
  };
21928
- };
22010
+ }>;
22011
+ } | {
22012
+ __typename: 'User';
22013
+ id: string;
22014
+ email: string;
22015
+ username: string;
22016
+ featureGates: any;
22017
+ isExpoAdmin: boolean;
21929
22018
  accounts: Array<{
21930
22019
  __typename?: 'Account';
21931
22020
  id: string;
@@ -21944,13 +22033,22 @@ export type CurrentUserQuery = {
21944
22033
  role: Role;
21945
22034
  };
21946
22035
  }>;
22036
+ } | null;
22037
+ };
22038
+ export type CurrentUserWithPrimaryAccountQueryVariables = Exact<{
22039
+ [key: string]: never;
22040
+ }>;
22041
+ export type CurrentUserWithPrimaryAccountQuery = {
22042
+ __typename?: 'RootQuery';
22043
+ meActor?: {
22044
+ __typename: 'PartnerActor';
22045
+ id: string;
21947
22046
  } | {
21948
- __typename: 'User';
21949
- email: string;
21950
- username: string;
22047
+ __typename: 'Robot';
22048
+ id: string;
22049
+ } | {
22050
+ __typename: 'SSOUser';
21951
22051
  id: string;
21952
- featureGates: any;
21953
- isExpoAdmin: boolean;
21954
22052
  primaryAccount: {
21955
22053
  __typename?: 'Account';
21956
22054
  id: string;
@@ -21969,7 +22067,10 @@ export type CurrentUserQuery = {
21969
22067
  role: Role;
21970
22068
  };
21971
22069
  };
21972
- accounts: Array<{
22070
+ } | {
22071
+ __typename: 'User';
22072
+ id: string;
22073
+ primaryAccount: {
21973
22074
  __typename?: 'Account';
21974
22075
  id: string;
21975
22076
  name: string;
@@ -21986,7 +22087,7 @@ export type CurrentUserQuery = {
21986
22087
  __typename?: 'UserPermission';
21987
22088
  role: Role;
21988
22089
  };
21989
- }>;
22090
+ };
21990
22091
  } | null;
21991
22092
  };
21992
22093
  export type WebhooksByAppIdQueryVariables = Exact<{
@@ -22984,6 +23085,108 @@ export type AccountUsageMetricFragment = {
22984
23085
  metricType: UsageMetricType;
22985
23086
  value: number;
22986
23087
  };
23088
+ type MeActorFragment_PartnerActor = {
23089
+ __typename: 'PartnerActor';
23090
+ username: string;
23091
+ id: string;
23092
+ featureGates: any;
23093
+ isExpoAdmin: boolean;
23094
+ accounts: Array<{
23095
+ __typename?: 'Account';
23096
+ id: string;
23097
+ name: string;
23098
+ ownerUserActor?: {
23099
+ __typename?: 'SSOUser';
23100
+ id: string;
23101
+ username: string;
23102
+ } | {
23103
+ __typename?: 'User';
23104
+ id: string;
23105
+ username: string;
23106
+ } | null;
23107
+ viewerUserPermission: {
23108
+ __typename?: 'UserPermission';
23109
+ role: Role;
23110
+ };
23111
+ }>;
23112
+ };
23113
+ type MeActorFragment_Robot = {
23114
+ __typename: 'Robot';
23115
+ firstName?: string | null;
23116
+ id: string;
23117
+ featureGates: any;
23118
+ isExpoAdmin: boolean;
23119
+ accounts: Array<{
23120
+ __typename?: 'Account';
23121
+ id: string;
23122
+ name: string;
23123
+ ownerUserActor?: {
23124
+ __typename?: 'SSOUser';
23125
+ id: string;
23126
+ username: string;
23127
+ } | {
23128
+ __typename?: 'User';
23129
+ id: string;
23130
+ username: string;
23131
+ } | null;
23132
+ viewerUserPermission: {
23133
+ __typename?: 'UserPermission';
23134
+ role: Role;
23135
+ };
23136
+ }>;
23137
+ };
23138
+ type MeActorFragment_SsoUser = {
23139
+ __typename: 'SSOUser';
23140
+ username: string;
23141
+ id: string;
23142
+ featureGates: any;
23143
+ isExpoAdmin: boolean;
23144
+ accounts: Array<{
23145
+ __typename?: 'Account';
23146
+ id: string;
23147
+ name: string;
23148
+ ownerUserActor?: {
23149
+ __typename?: 'SSOUser';
23150
+ id: string;
23151
+ username: string;
23152
+ } | {
23153
+ __typename?: 'User';
23154
+ id: string;
23155
+ username: string;
23156
+ } | null;
23157
+ viewerUserPermission: {
23158
+ __typename?: 'UserPermission';
23159
+ role: Role;
23160
+ };
23161
+ }>;
23162
+ };
23163
+ type MeActorFragment_User = {
23164
+ __typename: 'User';
23165
+ email: string;
23166
+ username: string;
23167
+ id: string;
23168
+ featureGates: any;
23169
+ isExpoAdmin: boolean;
23170
+ accounts: Array<{
23171
+ __typename?: 'Account';
23172
+ id: string;
23173
+ name: string;
23174
+ ownerUserActor?: {
23175
+ __typename?: 'SSOUser';
23176
+ id: string;
23177
+ username: string;
23178
+ } | {
23179
+ __typename?: 'User';
23180
+ id: string;
23181
+ username: string;
23182
+ } | null;
23183
+ viewerUserPermission: {
23184
+ __typename?: 'UserPermission';
23185
+ role: Role;
23186
+ };
23187
+ }>;
23188
+ };
23189
+ export type MeActorFragment = MeActorFragment_PartnerActor | MeActorFragment_Robot | MeActorFragment_SsoUser | MeActorFragment_User;
22987
23190
  export type AppFragment = {
22988
23191
  __typename?: 'App';
22989
23192
  id: string;
@@ -25287,3 +25490,4 @@ export type PaginatedWorkerDeploymentAliasesQuery = {
25287
25490
  };
25288
25491
  };
25289
25492
  };
25493
+ export {};
@@ -8,8 +8,8 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.BuildAnnotationType = exports.BackgroundJobState = exports.BackgroundJobResultType = exports.AuthProviderIdentifier = exports.AuthProtocolType = exports.AuditLogsExportFormat = exports.AssetMetadataStatus = exports.AssetMapSourceType = exports.AppleTeamType = exports.AppleDeviceClass = exports.AppUploadSessionType = exports.AppStoreConnectWorkflowConnectionStatus = exports.AppStoreConnectUserRole = exports.AppStoreConnectBuildUploadState = exports.AppStoreConnectBuildProcessingState = exports.AppProfileImageWidth = exports.AppPrivacy = exports.AppPlatform = exports.AppObserveUserEventNamesOrderByField = exports.AppObserveUserEventListOrderByField = exports.AppObserveUserEventBreakdownDimension = exports.AppObserveUpdatesOrderByField = exports.AppObserveUpdatesOrderByDirection = exports.AppObservePropertyType = exports.AppObservePlatform = exports.AppObserveOrderDirection = exports.AppObserveNavigationRoutesOrderByField = exports.AppObserveMetricsListOrderByField = exports.AppObserveLogsOrderByField = exports.AppObserveEventsOrderByField = exports.AppObserveEventsOrderByDirection = exports.AppObserveErrorSeverity = exports.AppObserveErrorOccurrencesOrderByField = exports.AppObserveErrorKind = exports.AppObserveErrorGroupsOrderBy = exports.AppObserveErrorBreakdownDimension = exports.AppObserveCustomEventNamesOrderByField = exports.AppObserveCustomEventNamesOrderByDirection = exports.AppObserveCustomEventListOrderByField = exports.AppInternalDistributionBuildPrivacy = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.AgentProviderConnectionStatus = exports.AgentProviderConnectionAuthorizationStatus = exports.AgentProvider = exports.ActivityTimelineProjectActivityType = exports.AccountUploadSessionType = exports.AccountMemberType = exports.AccountAppsSortByField = void 0;
10
10
  exports.GitHubAppInstallationStatus = exports.GitHubAppInstallationAccountType = exports.GitHubAppEnvironment = exports.FingerprintSourceType = exports.Feature = exports.Experiment = exports.ExitInterviewOutcome = exports.ExitInterviewMessageRole = exports.EnvironmentVariableVisibility = exports.EnvironmentVariableScope = exports.EnvironmentSecretType = exports.EntityTypeName = exports.EchoVersionSource = exports.EchoTurnCompletionStatus = exports.EchoProjectVisibility = exports.EchoProjectUploadSessionType = exports.EchoProjectIconSource = exports.EchoMessageRole = exports.EchoMessagePartType = exports.EchoChatState = exports.EchoChangeType = exports.EchoBuildStatus = exports.EchoAgentType = exports.EasTotalPlanEnablementUnit = exports.EasServiceMetric = exports.EasService = exports.EasBuildWaiverType = exports.EasBuildDeprecationInfoType = exports.EasBuildBillingResourceClass = exports.DistributionType = exports.DeviceRunSessionType = exports.DeviceRunSessionStatus = exports.DeviceRunSessionResourceClass = exports.DeviceRunSessionEgress = exports.DashboardViewPin = exports.CustomDomainStatus = exports.CustomDomainDnsRecordType = exports.CrashSampleFor = exports.ContinentCode = exports.BuildWorkflow = exports.BuildTrigger = exports.BuildStatus = exports.BuildRetryDisabledReason = exports.BuildResourceClass = exports.BuildPriority = exports.BuildPhase = exports.BuildMode = exports.BuildLimitThresholdExceededMetadataType = exports.BuildIosEnterpriseProvisioning = exports.BuildCredentialsSource = void 0;
11
- exports.UpdateDiffReceiptOrderByField = exports.UpdateDiffReceiptOrderByDirection = exports.TurtleSshTransportType = exports.TurtleSshTargetType = exports.TargetEntityMutationType = exports.SubmissionStatus = exports.SubmissionPriority = exports.SubmissionArchiveSourceType = exports.SubmissionAndroidReleaseStatus = exports.StatuspageServiceStatus = exports.StatuspageServiceName = exports.StatuspageIncidentStatus = exports.StatuspageIncidentImpact = exports.StandardOffer = exports.SecondFactorMethod = exports.Role = exports.ResponseType = exports.ResponseStatusType = exports.ResponseCacheStatus = exports.ResourceClassExperiment = exports.RequestsOrderByField = exports.RequestsOrderByDirection = exports.RequestMethod = exports.RealtimeLogsTargetType = exports.ProjectArchiveSourceType = exports.PostHogRegion = exports.PostHogDeepLinkPurpose = exports.Permission = exports.Order = exports.OnboardingEnvironment = exports.OnboardingDeviceType = exports.OfferType = exports.OAuthProvider = exports.NotificationType = exports.NotificationEvent = exports.LocalBuildArchiveSourceType = exports.JobRunStatus = exports.JobRunPriority = exports.IosSchemeBuildConfiguration = exports.IosManagedBuildType = exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = exports.InsightsFilterType = exports.GitHubJobRunTriggerType = exports.GitHubJobRunTriggerRunStatus = exports.GitHubJobRunJobType = exports.GitHubBuildTriggerType = exports.GitHubBuildTriggerRunStatus = exports.GitHubBuildTriggerExecutionBehavior = void 0;
12
- exports.WorkflowsInsightsRunsOverTimeGranularity = exports.WorkflowsInsightsExportFormat = exports.WorkflowRunTriggerEventType = exports.WorkflowRunStatus = exports.WorkflowProjectSourceType = exports.WorkflowJobType = exports.WorkflowJobStatus = exports.WorkflowJobReviewDecision = exports.WorkflowDispatchInputType = exports.WorkflowDeviceTestCaseStatusFilter = exports.WorkflowDeviceTestCaseStatus = exports.WorkflowDeviceTestCaseStatSortField = exports.WorkflowDeviceTestCaseSortDirection = exports.WorkflowDeviceTestCaseInsightsTimeSeriesGranularity = exports.WorkflowArtifactStorageType = exports.WorkerLoggerLevel = exports.WorkerDeploymentLogLevel = exports.WorkerDeploymentCrashKind = exports.WebhookType = exports.UserSpecifiedAccountUsage = exports.UserEntityTypeName = exports.UserAgentPlatform = exports.UserAgentOs = exports.UserAgentBrowser = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.UpdatesTimelineItemType = exports.UpdateDiffReceiptStateValue = void 0;
11
+ exports.TurtleSshTargetType = exports.TargetEntityMutationType = exports.SupabaseAdvisorType = exports.SupabaseAdvisorLintLevel = exports.SubmissionStatus = exports.SubmissionPriority = exports.SubmissionArchiveSourceType = exports.SubmissionAndroidReleaseStatus = exports.StatuspageServiceStatus = exports.StatuspageServiceName = exports.StatuspageIncidentStatus = exports.StatuspageIncidentImpact = exports.StandardOffer = exports.SecondFactorMethod = exports.SandboxStatus = exports.Role = exports.ResponseType = exports.ResponseStatusType = exports.ResponseCacheStatus = exports.ResourceClassExperiment = exports.RequestsOrderByField = exports.RequestsOrderByDirection = exports.RequestMethod = exports.RealtimeLogsTargetType = exports.ProjectArchiveSourceType = exports.PostHogRegion = exports.PostHogDeepLinkPurpose = exports.Permission = exports.Order = exports.OnboardingEnvironment = exports.OnboardingDeviceType = exports.OfferType = exports.OAuthProvider = exports.NotificationType = exports.NotificationEvent = exports.LocalBuildArchiveSourceType = exports.JobRunStatus = exports.JobRunPriority = exports.IosSchemeBuildConfiguration = exports.IosManagedBuildType = exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = exports.InsightsFilterType = exports.GitHubJobRunTriggerType = exports.GitHubJobRunTriggerRunStatus = exports.GitHubJobRunJobType = exports.GitHubBuildTriggerType = exports.GitHubBuildTriggerRunStatus = exports.GitHubBuildTriggerExecutionBehavior = void 0;
12
+ exports.WorkflowsInsightsRunsOverTimeGranularity = exports.WorkflowsInsightsExportFormat = exports.WorkflowRunTriggerEventType = exports.WorkflowRunStatus = exports.WorkflowProjectSourceType = exports.WorkflowJobType = exports.WorkflowJobStatus = exports.WorkflowJobReviewDecision = exports.WorkflowDispatchInputType = exports.WorkflowDeviceTestCaseStatusFilter = exports.WorkflowDeviceTestCaseStatus = exports.WorkflowDeviceTestCaseStatSortField = exports.WorkflowDeviceTestCaseSortDirection = exports.WorkflowDeviceTestCaseInsightsTimeSeriesGranularity = exports.WorkflowArtifactStorageType = exports.WorkerLoggerLevel = exports.WorkerDeploymentLogLevel = exports.WorkerDeploymentCrashKind = exports.WebhookType = exports.UserSpecifiedAccountUsage = exports.UserEntityTypeName = exports.UserAgentPlatform = exports.UserAgentOs = exports.UserAgentBrowser = exports.UsageMetricsGranularity = exports.UsageMetricType = exports.UploadSessionType = exports.UpdatesTimelineItemType = exports.UpdateDiffReceiptStateValue = exports.UpdateDiffReceiptOrderByField = exports.UpdateDiffReceiptOrderByDirection = exports.TurtleSshTransportType = void 0;
13
13
  var AccountAppsSortByField;
14
14
  (function (AccountAppsSortByField) {
15
15
  AccountAppsSortByField["LatestActivityTime"] = "LATEST_ACTIVITY_TIME";
@@ -206,6 +206,8 @@ var AppObserveUserEventListOrderByField;
206
206
  var AppObserveUserEventNamesOrderByField;
207
207
  (function (AppObserveUserEventNamesOrderByField) {
208
208
  AppObserveUserEventNamesOrderByField["Count"] = "COUNT";
209
+ AppObserveUserEventNamesOrderByField["FirstSeen"] = "FIRST_SEEN";
210
+ AppObserveUserEventNamesOrderByField["LastSeen"] = "LAST_SEEN";
209
211
  AppObserveUserEventNamesOrderByField["Name"] = "NAME";
210
212
  })(AppObserveUserEventNamesOrderByField || (exports.AppObserveUserEventNamesOrderByField = AppObserveUserEventNamesOrderByField = {}));
211
213
  var AppPlatform;
@@ -993,6 +995,13 @@ var Role;
993
995
  Role["Owner"] = "OWNER";
994
996
  Role["ViewOnly"] = "VIEW_ONLY";
995
997
  })(Role || (exports.Role = Role = {}));
998
+ var SandboxStatus;
999
+ (function (SandboxStatus) {
1000
+ SandboxStatus["Errored"] = "ERRORED";
1001
+ SandboxStatus["Running"] = "RUNNING";
1002
+ SandboxStatus["Starting"] = "STARTING";
1003
+ SandboxStatus["Stopped"] = "STOPPED";
1004
+ })(SandboxStatus || (exports.SandboxStatus = SandboxStatus = {}));
996
1005
  var SecondFactorMethod;
997
1006
  (function (SecondFactorMethod) {
998
1007
  /** Google Authenticator (TOTP) */
@@ -1082,6 +1091,17 @@ var SubmissionStatus;
1082
1091
  SubmissionStatus["InProgress"] = "IN_PROGRESS";
1083
1092
  SubmissionStatus["InQueue"] = "IN_QUEUE";
1084
1093
  })(SubmissionStatus || (exports.SubmissionStatus = SubmissionStatus = {}));
1094
+ var SupabaseAdvisorLintLevel;
1095
+ (function (SupabaseAdvisorLintLevel) {
1096
+ SupabaseAdvisorLintLevel["Error"] = "ERROR";
1097
+ SupabaseAdvisorLintLevel["Info"] = "INFO";
1098
+ SupabaseAdvisorLintLevel["Warn"] = "WARN";
1099
+ })(SupabaseAdvisorLintLevel || (exports.SupabaseAdvisorLintLevel = SupabaseAdvisorLintLevel = {}));
1100
+ var SupabaseAdvisorType;
1101
+ (function (SupabaseAdvisorType) {
1102
+ SupabaseAdvisorType["Performance"] = "PERFORMANCE";
1103
+ SupabaseAdvisorType["Security"] = "SECURITY";
1104
+ })(SupabaseAdvisorType || (exports.SupabaseAdvisorType = SupabaseAdvisorType = {}));
1085
1105
  var TargetEntityMutationType;
1086
1106
  (function (TargetEntityMutationType) {
1087
1107
  TargetEntityMutationType["Create"] = "CREATE";
@@ -66,6 +66,7 @@ exports.DeviceRunSessionQuery = {
66
66
  agentDeviceRemoteSessionToken
67
67
  webPreviewUrl
68
68
  webPreviewToken
69
+ previewApiUrl
69
70
  egressUrl
70
71
  egressToken
71
72
  egressFingerprint
@@ -80,6 +81,7 @@ exports.DeviceRunSessionQuery = {
80
81
  toolsAuthToken
81
82
  webPreviewUrl
82
83
  webPreviewToken
84
+ previewApiUrl
83
85
  }
84
86
  ... on AppiumRunSessionRemoteConfig {
85
87
  egressUrl
@@ -90,6 +92,7 @@ exports.DeviceRunSessionQuery = {
90
92
  capabilities
91
93
  webPreviewUrl
92
94
  webPreviewToken
95
+ previewApiUrl
93
96
  }
94
97
  ... on ServeSimRunSessionRemoteConfig {
95
98
  egressUrl
@@ -98,6 +101,7 @@ exports.DeviceRunSessionQuery = {
98
101
  egressPort
99
102
  previewUrl
100
103
  previewToken
104
+ previewApiUrl
101
105
  }
102
106
  ... on WebPreviewOnlyRunSessionRemoteConfig {
103
107
  egressUrl
@@ -106,6 +110,7 @@ exports.DeviceRunSessionQuery = {
106
110
  egressPort
107
111
  previewUrl: webPreviewUrl
108
112
  previewToken: webPreviewToken
113
+ previewApiUrl
109
114
  }
110
115
  }
111
116
  turtleJobRun {
@@ -1,5 +1,6 @@
1
1
  import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
2
- import { CurrentUserQuery } from '../generated';
2
+ import { AccountFragment, CurrentUserQuery } from '../generated';
3
3
  export declare const UserQuery: {
4
4
  currentUserAsync(graphqlClient: ExpoGraphqlClient): Promise<CurrentUserQuery["meActor"]>;
5
+ requireCurrentUserPrimaryAccountAsync(graphqlClient: ExpoGraphqlClient): Promise<AccountFragment>;
5
6
  };
@@ -6,6 +6,7 @@ const graphql_1 = require("graphql");
6
6
  const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
7
7
  const client_1 = require("../client");
8
8
  const Account_1 = require("../types/Account");
9
+ const Actor_1 = require("../types/Actor");
9
10
  exports.UserQuery = {
10
11
  async currentUserAsync(graphqlClient) {
11
12
  const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
@@ -14,35 +15,50 @@ exports.UserQuery = {
14
15
  meActor {
15
16
  __typename
16
17
  id
17
- ... on User {
18
- email
19
- }
20
- ... on UserActor {
21
- username
22
- primaryAccount {
23
- id
24
- ...AccountFragment
25
- }
26
- }
27
- ... on Robot {
28
- firstName
29
- }
30
- accounts {
31
- id
32
- ...AccountFragment
33
- }
34
- ... on PartnerActor {
35
- username
36
- }
37
- featureGates
38
- isExpoAdmin
18
+ ...MeActorFragment
39
19
  }
40
20
  }
41
- ${(0, graphql_1.print)(Account_1.AccountFragmentNode)}
21
+ ${(0, graphql_1.print)(Actor_1.MeActorFragmentNode)}
42
22
  `, {}, {
43
23
  additionalTypenames: ['User', 'SSOUser'],
44
24
  })
45
25
  .toPromise());
46
26
  return data.meActor;
47
27
  },
28
+ async requireCurrentUserPrimaryAccountAsync(graphqlClient) {
29
+ let data;
30
+ try {
31
+ data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
32
+ .query((0, graphql_tag_1.default) `
33
+ query CurrentUserWithPrimaryAccount {
34
+ meActor {
35
+ __typename
36
+ id
37
+ ... on UserActor {
38
+ primaryAccount {
39
+ id
40
+ ...AccountFragment
41
+ }
42
+ }
43
+ }
44
+ }
45
+
46
+ ${(0, graphql_1.print)(Account_1.AccountFragmentNode)}
47
+ `, {}, {
48
+ additionalTypenames: ['User', 'SSOUser'],
49
+ })
50
+ .toPromise());
51
+ }
52
+ catch (error) {
53
+ throw new Error('An error occurred while fetching the primary account of the current user. Check to ensure your session has sufficient scope on your primary account.');
54
+ }
55
+ const actor = data.meActor;
56
+ if (!actor) {
57
+ throw new Error('Must be logged in to perform this action.');
58
+ }
59
+ if (actor.__typename === 'User' || actor.__typename === 'SSOUser') {
60
+ return actor.primaryAccount;
61
+ }
62
+ throw new Error(`This action is not supported for the ${actor.__typename} user type.`);
63
+ },
48
64
  };
@@ -0,0 +1 @@
1
+ export declare const MeActorFragmentNode: import("graphql").DocumentNode;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MeActorFragmentNode = void 0;
4
+ const tslib_1 = require("tslib");
5
+ /* eslint-disable graphql/required-fields */
6
+ const graphql_1 = require("graphql");
7
+ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
8
+ const Account_1 = require("./Account");
9
+ exports.MeActorFragmentNode = (0, graphql_tag_1.default) `
10
+ ${(0, graphql_1.print)(Account_1.AccountFragmentNode)}
11
+
12
+ fragment MeActorFragment on Actor {
13
+ __typename
14
+ id
15
+ ... on User {
16
+ email
17
+ }
18
+ ... on UserActor {
19
+ username
20
+ }
21
+ ... on Robot {
22
+ firstName
23
+ }
24
+ accounts {
25
+ id
26
+ ...AccountFragment
27
+ }
28
+ ... on PartnerActor {
29
+ username
30
+ }
31
+ featureGates
32
+ isExpoAdmin
33
+ }
34
+ `;
package/build/ora.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Options, Ora } from 'ora';
2
2
  export { Ora, Options };
3
+ export declare function isSpinnerEnabled(): boolean;
3
4
  /**
4
5
  * A custom ora spinner that sends the stream to stdout in CI, or non-TTY, instead of stderr (the default).
5
6
  *