eas-cli 23.0.0 → 23.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +174 -149
  2. package/build/api.d.ts +1 -0
  3. package/build/api.js +12 -0
  4. package/build/commandUtils/new/commands.d.ts +16 -1
  5. package/build/commandUtils/new/commands.js +59 -20
  6. package/build/commandUtils/new/projectFiles.d.ts +2 -1
  7. package/build/commandUtils/new/projectFiles.js +24 -1
  8. package/build/commandUtils/new/sdkVersion.d.ts +17 -0
  9. package/build/commandUtils/new/sdkVersion.js +138 -0
  10. package/build/commandUtils/workflow/logs/fetchLogs.d.ts +5 -0
  11. package/build/commandUtils/workflow/logs/fetchLogs.js +24 -0
  12. package/build/commandUtils/workflow/logs/parseLogs.d.ts +14 -0
  13. package/build/commandUtils/workflow/logs/parseLogs.js +69 -0
  14. package/build/commandUtils/workflow/logs/watcher.d.ts +32 -0
  15. package/build/commandUtils/workflow/logs/watcher.js +162 -0
  16. package/build/commandUtils/workflow/stateMachine.js +2 -1
  17. package/build/commandUtils/workflow/types.d.ts +12 -5
  18. package/build/commandUtils/workflow/utils.d.ts +9 -5
  19. package/build/commandUtils/workflow/utils.js +144 -146
  20. package/build/commands/project/new.d.ts +1 -0
  21. package/build/commands/project/new.js +13 -2
  22. package/build/commands/simulator/get.js +2 -0
  23. package/build/commands/simulator/index.d.ts +1 -0
  24. package/build/commands/simulator/index.js +10 -0
  25. package/build/commands/simulator/list.d.ts +1 -0
  26. package/build/commands/simulator/list.js +9 -0
  27. package/build/commands/workflow/run.d.ts +8 -0
  28. package/build/commands/workflow/run.js +27 -0
  29. package/build/commands/workflow/ssh.d.ts +31 -0
  30. package/build/commands/workflow/ssh.js +190 -0
  31. package/build/graphql/generated.d.ts +243 -3
  32. package/build/graphql/generated.js +28 -4
  33. package/build/graphql/mutations/RealtimeLogsMutation.d.ts +6 -0
  34. package/build/graphql/mutations/RealtimeLogsMutation.js +40 -0
  35. package/build/graphql/mutations/WorkflowRunMutation.d.ts +3 -2
  36. package/build/graphql/mutations/WorkflowRunMutation.js +4 -1
  37. package/build/graphql/queries/DeviceRunSessionQuery.js +5 -0
  38. package/build/graphql/queries/WorkflowJobSshQuery.d.ts +20 -0
  39. package/build/graphql/queries/WorkflowJobSshQuery.js +133 -0
  40. package/build/ora.d.ts +7 -0
  41. package/build/ora.js +12 -0
  42. package/build/simulator/utils.js +9 -1
  43. package/build/utils/centrifuge.d.ts +10 -0
  44. package/build/utils/centrifuge.js +89 -0
  45. package/build/utils/expodash/uniqBy.js +3 -2
  46. package/build/worker/upload.d.ts +14 -1
  47. package/build/worker/upload.js +81 -17
  48. package/oclif.manifest.json +397 -287
  49. package/package.json +12 -10
  50. package/build/commandUtils/workflow/fetchLogs.d.ts +0 -6
  51. package/build/commandUtils/workflow/fetchLogs.js +0 -44
  52. package/build/onboarding/git.d.ts +0 -16
  53. package/build/onboarding/git.js +0 -88
@@ -125,6 +125,8 @@ export type Account = {
125
125
  accountFeatureGates: Scalars['JSONObject']['output'];
126
126
  /** Coalesced project activity for all apps belonging to this account. */
127
127
  activityTimelineProjectActivities: Array<ActivityTimelineProjectActivity>;
128
+ /** AI provider connections available to agent sandbox sessions. */
129
+ agentProviderConnections: Array<AgentProviderConnection>;
128
130
  aiChatEnabled: Scalars['Boolean']['output'];
129
131
  appCount: Scalars['Int']['output'];
130
132
  /** @deprecated Use appStoreConnectApiKeysPaginated */
@@ -959,12 +961,71 @@ export type AgentDeviceRunSessionRemoteConfig = {
959
961
  __typename?: 'AgentDeviceRunSessionRemoteConfig';
960
962
  agentDeviceRemoteSessionToken: Scalars['String']['output'];
961
963
  agentDeviceRemoteSessionUrl: Scalars['String']['output'];
964
+ /** Session token gating the web preview. Null when the preview runs ungated. */
965
+ webPreviewToken?: Maybe<Scalars['String']['output']>;
962
966
  /**
963
967
  * URL of the web preview surface for the session. Null when web previews are
964
968
  * not available for the platform (e.g. Android).
965
969
  */
966
970
  webPreviewUrl?: Maybe<Scalars['String']['output']>;
967
971
  };
972
+ export declare enum AgentProvider {
973
+ Anthropic = "ANTHROPIC",
974
+ Openai = "OPENAI"
975
+ }
976
+ export type AgentProviderConnection = {
977
+ __typename?: 'AgentProviderConnection';
978
+ account: Account;
979
+ createdAt: Scalars['DateTime']['output'];
980
+ createdByActor?: Maybe<Actor>;
981
+ expiresAt?: Maybe<Scalars['DateTime']['output']>;
982
+ id: Scalars['ID']['output'];
983
+ name?: Maybe<Scalars['String']['output']>;
984
+ provider: AgentProvider;
985
+ providerAccountEmail?: Maybe<Scalars['String']['output']>;
986
+ providerAccountId?: Maybe<Scalars['String']['output']>;
987
+ providerPlan?: Maybe<Scalars['String']['output']>;
988
+ status: AgentProviderConnectionStatus;
989
+ updatedAt: Scalars['DateTime']['output'];
990
+ };
991
+ export declare enum AgentProviderConnectionAuthorizationStatus {
992
+ Expired = "EXPIRED",
993
+ Pending = "PENDING",
994
+ Succeeded = "SUCCEEDED"
995
+ }
996
+ export type AgentProviderConnectionMutation = {
997
+ __typename?: 'AgentProviderConnectionMutation';
998
+ completeClaudeConnection: AgentProviderConnection;
999
+ deleteAgentProviderConnection: AgentProviderConnection;
1000
+ pollCodexConnection: CodexConnectionPollResult;
1001
+ startClaudeConnection: ClaudeAuthorization;
1002
+ startCodexConnection: CodexDeviceAuthorization;
1003
+ updateAgentProviderConnection: AgentProviderConnection;
1004
+ };
1005
+ export type AgentProviderConnectionMutationCompleteClaudeConnectionArgs = {
1006
+ input: CompleteClaudeConnectionInput;
1007
+ };
1008
+ export type AgentProviderConnectionMutationDeleteAgentProviderConnectionArgs = {
1009
+ id: Scalars['ID']['input'];
1010
+ };
1011
+ export type AgentProviderConnectionMutationPollCodexConnectionArgs = {
1012
+ requestId: Scalars['ID']['input'];
1013
+ };
1014
+ export type AgentProviderConnectionMutationStartClaudeConnectionArgs = {
1015
+ input: StartClaudeConnectionInput;
1016
+ };
1017
+ export type AgentProviderConnectionMutationStartCodexConnectionArgs = {
1018
+ accountId: Scalars['ID']['input'];
1019
+ };
1020
+ export type AgentProviderConnectionMutationUpdateAgentProviderConnectionArgs = {
1021
+ id: Scalars['ID']['input'];
1022
+ input: UpdateAgentProviderConnectionInput;
1023
+ };
1024
+ export declare enum AgentProviderConnectionStatus {
1025
+ Invalid = "INVALID",
1026
+ UnableToVerify = "UNABLE_TO_VERIFY",
1027
+ Valid = "VALID"
1028
+ }
968
1029
  export type AndroidAppBuildCredentials = {
969
1030
  __typename?: 'AndroidAppBuildCredentials';
970
1031
  androidKeystore?: Maybe<AndroidKeystore>;
@@ -1276,6 +1337,8 @@ export type App = Project & {
1276
1337
  /** @deprecated Classic updates have been deprecated. */
1277
1338
  description: Scalars['String']['output'];
1278
1339
  devDomainName?: Maybe<AppDevDomainName>;
1340
+ /** Every tag used by this app's device run sessions, sorted alphabetically. */
1341
+ deviceRunSessionTags: Array<Scalars['String']['output']>;
1279
1342
  deviceRunSessionsPaginated: AppDeviceRunSessionsConnection;
1280
1343
  embeddedUpdatesPaginated: AppEmbeddedUpdatesConnection;
1281
1344
  /** Environment secrets for an app */
@@ -1304,6 +1367,8 @@ export type App = Project & {
1304
1367
  internalDistributionBuildPrivacy: AppInternalDistributionBuildPrivacy;
1305
1368
  /** iOS app credentials for the project */
1306
1369
  iosAppCredentials: Array<IosAppCredentials>;
1370
+ /** Whether this app qualifies for the observe-notification-lapsed-paid experiment */
1371
+ isEligibleForObserveLapsedPaidNotification: Scalars['Boolean']['output'];
1307
1372
  /**
1308
1373
  * Tells you if the project can show the Observe promotional notification. This field is part of
1309
1374
  * the observe-notification experiment.
@@ -3214,6 +3279,8 @@ export type AppiumRunSessionRemoteConfig = {
3214
3279
  appiumUrl: Scalars['String']['output'];
3215
3280
  /** W3C capabilities for the device that backs this session. */
3216
3281
  capabilities: Scalars['JSONObject']['output'];
3282
+ /** Session token gating the web preview. Null when the preview runs ungated. */
3283
+ webPreviewToken?: Maybe<Scalars['String']['output']>;
3217
3284
  /**
3218
3285
  * URL of the web preview surface for the session. Null when web previews are
3219
3286
  * not available for the platform (e.g. Android).
@@ -3541,6 +3608,8 @@ export type ArgentRunSessionRemoteConfig = {
3541
3608
  __typename?: 'ArgentRunSessionRemoteConfig';
3542
3609
  toolsAuthToken?: Maybe<Scalars['String']['output']>;
3543
3610
  toolsUrl: Scalars['String']['output'];
3611
+ /** Session token gating the web preview. Null when the preview runs ungated. */
3612
+ webPreviewToken?: Maybe<Scalars['String']['output']>;
3544
3613
  /**
3545
3614
  * URL of the web preview surface for the session. Null when web previews are
3546
3615
  * not available for the platform (e.g. Android).
@@ -4354,6 +4423,12 @@ export type ChatTokenUsage = {
4354
4423
  limitTokens?: Maybe<Scalars['Int']['output']>;
4355
4424
  usedTokens: Scalars['Int']['output'];
4356
4425
  };
4426
+ export type ClaudeAuthorization = {
4427
+ __typename?: 'ClaudeAuthorization';
4428
+ authorizationUrl: Scalars['String']['output'];
4429
+ expiresAt: Scalars['DateTime']['output'];
4430
+ requestId: Scalars['ID']['output'];
4431
+ };
4357
4432
  export type CodeSigningInfo = {
4358
4433
  __typename?: 'CodeSigningInfo';
4359
4434
  alg: Scalars['String']['output'];
@@ -4365,6 +4440,23 @@ export type CodeSigningInfoInput = {
4365
4440
  keyid: Scalars['String']['input'];
4366
4441
  sig: Scalars['String']['input'];
4367
4442
  };
4443
+ export type CodexConnectionPollResult = {
4444
+ __typename?: 'CodexConnectionPollResult';
4445
+ connection?: Maybe<AgentProviderConnection>;
4446
+ status: AgentProviderConnectionAuthorizationStatus;
4447
+ };
4448
+ export type CodexDeviceAuthorization = {
4449
+ __typename?: 'CodexDeviceAuthorization';
4450
+ expiresAt: Scalars['DateTime']['output'];
4451
+ pollingIntervalSeconds: Scalars['Int']['output'];
4452
+ requestId: Scalars['ID']['output'];
4453
+ userCode: Scalars['String']['output'];
4454
+ verificationUrl: Scalars['String']['output'];
4455
+ };
4456
+ export type CompleteClaudeConnectionInput = {
4457
+ authorizationCode: Scalars['String']['input'];
4458
+ requestId: Scalars['ID']['input'];
4459
+ };
4368
4460
  export type CompletePostHogConnectionInput = {
4369
4461
  code: Scalars['String']['input'];
4370
4462
  state: Scalars['ID']['input'];
@@ -4553,7 +4645,7 @@ export type CreateDeviceRunSessionInput = {
4553
4645
  /**
4554
4646
  * Stop the session automatically after this many minutes without observed
4555
4647
  * session activity. Must be positive and smaller than the session's maximum
4556
- * duration (2 hours, or maxRunTimeMinutes when set). Only supported for
4648
+ * duration (maxRunTimeMinutes when set). Only supported for
4557
4649
  * agent-device, argent, and Appium sessions. If omitted, the session has no idle
4558
4650
  * timeout.
4559
4651
  */
@@ -4587,6 +4679,8 @@ export type CreateDeviceRunSessionInput = {
4587
4679
  * true. If omitted, the current Expo Go archive for the platform is used.
4588
4680
  */
4589
4681
  sdkVersion?: InputMaybe<Scalars['String']['input']>;
4682
+ /** Free-form labels for grouping sessions, for example one per app variant. */
4683
+ tags?: InputMaybe<Array<Scalars['String']['input']>>;
4590
4684
  type: DeviceRunSessionType;
4591
4685
  };
4592
4686
  export type CreateEchoChatInput = {
@@ -5238,6 +5332,8 @@ export type DeviceRunSession = {
5238
5332
  remoteConfig?: Maybe<DeviceRunSessionRemoteConfig>;
5239
5333
  startedAt?: Maybe<Scalars['DateTime']['output']>;
5240
5334
  status: DeviceRunSessionStatus;
5335
+ /** Free-form labels for grouping sessions, for example one per app variant. */
5336
+ tags: Array<Scalars['String']['output']>;
5241
5337
  turtleJobRun?: Maybe<JobRun>;
5242
5338
  type: DeviceRunSessionType;
5243
5339
  updatedAt: Scalars['DateTime']['output'];
@@ -5277,6 +5373,8 @@ export type DeviceRunSessionFilterInput = {
5277
5373
  name?: InputMaybe<Scalars['String']['input']>;
5278
5374
  platforms?: InputMaybe<Array<AppPlatform>>;
5279
5375
  statuses?: InputMaybe<Array<DeviceRunSessionStatus>>;
5376
+ /** Matches sessions carrying every listed tag. Case-insensitive. */
5377
+ tags?: InputMaybe<Array<Scalars['String']['input']>>;
5280
5378
  types?: InputMaybe<Array<DeviceRunSessionType>>;
5281
5379
  };
5282
5380
  export type DeviceRunSessionMutation = {
@@ -5323,7 +5421,7 @@ export type DeviceRunSessionQuery = {
5323
5421
  export type DeviceRunSessionQueryByIdArgs = {
5324
5422
  deviceRunSessionId: Scalars['ID']['input'];
5325
5423
  };
5326
- export type DeviceRunSessionRemoteConfig = AgentDeviceRunSessionRemoteConfig | AppiumRunSessionRemoteConfig | ArgentRunSessionRemoteConfig | ServeSimRunSessionRemoteConfig;
5424
+ export type DeviceRunSessionRemoteConfig = AgentDeviceRunSessionRemoteConfig | AppiumRunSessionRemoteConfig | ArgentRunSessionRemoteConfig | ServeSimRunSessionRemoteConfig | WebPreviewOnlyRunSessionRemoteConfig;
5327
5425
  export declare enum DeviceRunSessionResourceClass {
5328
5426
  Large = "LARGE",
5329
5427
  Medium = "MEDIUM"
@@ -5338,7 +5436,10 @@ export declare enum DeviceRunSessionType {
5338
5436
  AgentDevice = "AGENT_DEVICE",
5339
5437
  Appium = "APPIUM",
5340
5438
  Argent = "ARGENT",
5341
- ServeSim = "SERVE_SIM"
5439
+ /** @deprecated Use WEB_PREVIEW_ONLY instead. */
5440
+ ServeSim = "SERVE_SIM",
5441
+ /** A session accessed only through its web preview. Currently supported on iOS. */
5442
+ WebPreviewOnly = "WEB_PREVIEW_ONLY"
5342
5443
  }
5343
5444
  export type DiscordUser = {
5344
5445
  __typename?: 'DiscordUser';
@@ -6058,6 +6159,7 @@ export type EmbeddedUpdateQueryByIdArgs = {
6058
6159
  export declare enum EntityTypeName {
6059
6160
  AccountEntity = "AccountEntity",
6060
6161
  AccountSsoConfigurationEntity = "AccountSSOConfigurationEntity",
6162
+ AgentProviderConnectionEntity = "AgentProviderConnectionEntity",
6061
6163
  AndroidAppCredentialsEntity = "AndroidAppCredentialsEntity",
6062
6164
  AndroidKeystoreEntity = "AndroidKeystoreEntity",
6063
6165
  AppEntity = "AppEntity",
@@ -8035,6 +8137,7 @@ export type RootMutation = {
8035
8137
  accountSSOConfiguration: AccountSsoConfigurationMutation;
8036
8138
  /** Mutations for Actor experiments */
8037
8139
  actorExperiment: ActorExperimentMutation;
8140
+ agentProviderConnection: AgentProviderConnectionMutation;
8038
8141
  /** Mutations that modify the build credentials for an Android app */
8039
8142
  androidAppBuildCredentials: AndroidAppBuildCredentialsMutation;
8040
8143
  /** Mutations that modify the credentials for an Android app */
@@ -8571,8 +8674,14 @@ export type SentryProjectMutationCreateSentryProjectArgs = {
8571
8674
  export type SentryProjectMutationDeleteSentryProjectArgs = {
8572
8675
  sentryProjectId: Scalars['ID']['input'];
8573
8676
  };
8677
+ /**
8678
+ * Legacy remote config for SERVE_SIM sessions. Use WEB_PREVIEW_ONLY sessions and
8679
+ * WebPreviewOnlyRunSessionRemoteConfig instead.
8680
+ */
8574
8681
  export type ServeSimRunSessionRemoteConfig = {
8575
8682
  __typename?: 'ServeSimRunSessionRemoteConfig';
8683
+ /** Session token gating the preview. Null when the preview runs ungated. */
8684
+ previewToken?: Maybe<Scalars['String']['output']>;
8576
8685
  previewUrl: Scalars['String']['output'];
8577
8686
  /** @deprecated Use previewUrl instead. */
8578
8687
  streamUrl?: Maybe<Scalars['String']['output']>;
@@ -8650,6 +8759,9 @@ export declare enum StandardOffer {
8650
8759
  /** $348 USD per year, 30 day trial */
8651
8760
  YearlySub = "YEARLY_SUB"
8652
8761
  }
8762
+ export type StartClaudeConnectionInput = {
8763
+ accountId: Scalars['ID']['input'];
8764
+ };
8653
8765
  export type StartPostHogConnectionResult = PostHogOrganizationConnection | PostHogPendingConnection;
8654
8766
  /** Incident for a given component from Expo status page API. */
8655
8767
  export type StatuspageIncident = {
@@ -9161,6 +9273,9 @@ export type UpdateDiffReceiptsArgs = {
9161
9273
  first: Scalars['Int']['input'];
9162
9274
  orderBy?: InputMaybe<Array<UpdateDiffReceiptOrderByClause>>;
9163
9275
  };
9276
+ export type UpdateAgentProviderConnectionInput = {
9277
+ name?: InputMaybe<Scalars['String']['input']>;
9278
+ };
9164
9279
  export type UpdateBranch = {
9165
9280
  __typename?: 'UpdateBranch';
9166
9281
  app: App;
@@ -10263,6 +10378,10 @@ export type WebNotificationUpdateReadStateInput = {
10263
10378
  id: Scalars['ID']['input'];
10264
10379
  isRead: Scalars['Boolean']['input'];
10265
10380
  };
10381
+ export type WebPreviewOnlyRunSessionRemoteConfig = {
10382
+ __typename?: 'WebPreviewOnlyRunSessionRemoteConfig';
10383
+ webPreviewUrl: Scalars['String']['output'];
10384
+ };
10266
10385
  export type Webhook = {
10267
10386
  __typename?: 'Webhook';
10268
10387
  appId: Scalars['ID']['output'];
@@ -11368,6 +11487,7 @@ export type WorkflowRunGitBranchFilterInput = {
11368
11487
  export type WorkflowRunInput = {
11369
11488
  inputs?: InputMaybe<Scalars['JSONObject']['input']>;
11370
11489
  projectSource: WorkflowProjectSourceInput;
11490
+ ssh?: InputMaybe<WorkflowRunSshInput>;
11371
11491
  };
11372
11492
  export type WorkflowRunMutation = {
11373
11493
  __typename?: 'WorkflowRunMutation';
@@ -11393,10 +11513,12 @@ export type WorkflowRunMutationCreateWorkflowRunArgs = {
11393
11513
  export type WorkflowRunMutationCreateWorkflowRunFromGitRefArgs = {
11394
11514
  gitRef: Scalars['String']['input'];
11395
11515
  inputs?: InputMaybe<Scalars['JSONObject']['input']>;
11516
+ ssh?: InputMaybe<WorkflowRunSshInput>;
11396
11517
  workflowRevisionId: Scalars['ID']['input'];
11397
11518
  };
11398
11519
  export type WorkflowRunMutationRetryWorkflowRunArgs = {
11399
11520
  fromFailedJobs?: InputMaybe<Scalars['Boolean']['input']>;
11521
+ ssh?: InputMaybe<WorkflowRunSshInput>;
11400
11522
  workflowRunId: Scalars['ID']['input'];
11401
11523
  };
11402
11524
  export type WorkflowRunQuery = {
@@ -11406,6 +11528,13 @@ export type WorkflowRunQuery = {
11406
11528
  export type WorkflowRunQueryByIdArgs = {
11407
11529
  workflowRunId: Scalars['ID']['input'];
11408
11530
  };
11531
+ /**
11532
+ * Enables ssh on the run's VM jobs. Presence turns ssh on; idleTimeoutSeconds is optional,
11533
+ * defaults server-side, and is validated against a supported range.
11534
+ */
11535
+ export type WorkflowRunSshInput = {
11536
+ idleTimeoutSeconds?: InputMaybe<Scalars['Int']['input']>;
11537
+ };
11409
11538
  export type WorkflowRunSshSettings = {
11410
11539
  __typename?: 'WorkflowRunSshSettings';
11411
11540
  idleTimeoutSeconds: Scalars['Int']['output'];
@@ -11431,6 +11560,9 @@ export declare enum WorkflowRunTriggerEventType {
11431
11560
  EasSubmit = "EAS_SUBMIT",
11432
11561
  ExpoLaunch = "EXPO_LAUNCH",
11433
11562
  GithubPullRequestBaseRefChanged = "GITHUB_PULL_REQUEST_BASE_REF_CHANGED",
11563
+ GithubPullRequestCommentCreated = "GITHUB_PULL_REQUEST_COMMENT_CREATED",
11564
+ GithubPullRequestCommentDeleted = "GITHUB_PULL_REQUEST_COMMENT_DELETED",
11565
+ GithubPullRequestCommentEdited = "GITHUB_PULL_REQUEST_COMMENT_EDITED",
11434
11566
  GithubPullRequestEdited = "GITHUB_PULL_REQUEST_EDITED",
11435
11567
  GithubPullRequestLabeled = "GITHUB_PULL_REQUEST_LABELED",
11436
11568
  GithubPullRequestOpened = "GITHUB_PULL_REQUEST_OPENED",
@@ -16328,6 +16460,34 @@ export type SetRolloutPercentageMutation = {
16328
16460
  };
16329
16461
  };
16330
16462
  };
16463
+ export type GenerateRealtimeLogsCentrifugoConnectionTokenMutationVariables = Exact<{
16464
+ [key: string]: never;
16465
+ }>;
16466
+ export type GenerateRealtimeLogsCentrifugoConnectionTokenMutation = {
16467
+ __typename?: 'RootMutation';
16468
+ realtimeLogs: {
16469
+ __typename?: 'RealtimeLogsMutation';
16470
+ generateCentrifugoConnectionToken: {
16471
+ __typename?: 'RealtimeLogsCentrifugoConnectionToken';
16472
+ token: string;
16473
+ };
16474
+ };
16475
+ };
16476
+ export type GenerateRealtimeLogsCentrifugoSubscriptionTokenMutationVariables = Exact<{
16477
+ target: RealtimeLogsTargetInput;
16478
+ thread?: InputMaybe<Scalars['String']['input']>;
16479
+ }>;
16480
+ export type GenerateRealtimeLogsCentrifugoSubscriptionTokenMutation = {
16481
+ __typename?: 'RootMutation';
16482
+ realtimeLogs: {
16483
+ __typename?: 'RealtimeLogsMutation';
16484
+ generateCentrifugoSubscriptionToken: {
16485
+ __typename?: 'RealtimeLogsCentrifugoSubscriptionToken';
16486
+ channel: string;
16487
+ token: string;
16488
+ };
16489
+ };
16490
+ };
16331
16491
  export type CreateAndroidSubmissionMutationVariables = Exact<{
16332
16492
  appId: Scalars['ID']['input'];
16333
16493
  config: AndroidSubmissionConfigInput;
@@ -16761,6 +16921,7 @@ export type CreateWorkflowRunFromGitRefMutationVariables = Exact<{
16761
16921
  workflowRevisionId: Scalars['ID']['input'];
16762
16922
  gitRef: Scalars['String']['input'];
16763
16923
  inputs?: InputMaybe<Scalars['JSONObject']['input']>;
16924
+ ssh?: InputMaybe<WorkflowRunSshInput>;
16764
16925
  }>;
16765
16926
  export type CreateWorkflowRunFromGitRefMutation = {
16766
16927
  __typename?: 'RootMutation';
@@ -18637,6 +18798,7 @@ export type DeviceRunSessionByIdQuery = {
18637
18798
  __typename?: 'DeviceRunSession';
18638
18799
  id: string;
18639
18800
  name?: string | null;
18801
+ tags: Array<string>;
18640
18802
  status: DeviceRunSessionStatus;
18641
18803
  type: DeviceRunSessionType;
18642
18804
  platform: AppPlatform;
@@ -18683,6 +18845,9 @@ export type DeviceRunSessionByIdQuery = {
18683
18845
  } | {
18684
18846
  __typename: 'ServeSimRunSessionRemoteConfig';
18685
18847
  previewUrl: string;
18848
+ } | {
18849
+ __typename: 'WebPreviewOnlyRunSessionRemoteConfig';
18850
+ previewUrl: string;
18686
18851
  } | null;
18687
18852
  turtleJobRun?: {
18688
18853
  __typename?: 'JobRun';
@@ -18714,6 +18879,7 @@ export type DeviceRunSessionsByAppIdQuery = {
18714
18879
  __typename?: 'DeviceRunSession';
18715
18880
  id: string;
18716
18881
  name?: string | null;
18882
+ tags: Array<string>;
18717
18883
  status: DeviceRunSessionStatus;
18718
18884
  type: DeviceRunSessionType;
18719
18885
  platform: AppPlatform;
@@ -20694,6 +20860,80 @@ export type WorkflowJobByIdQuery = {
20694
20860
  };
20695
20861
  };
20696
20862
  };
20863
+ export type WorkflowJobSshPollQueryVariables = Exact<{
20864
+ workflowJobId: Scalars['ID']['input'];
20865
+ }>;
20866
+ export type WorkflowJobSshPollQuery = {
20867
+ __typename?: 'RootQuery';
20868
+ workflowJobs: {
20869
+ __typename?: 'WorkflowJobQuery';
20870
+ byId: {
20871
+ __typename?: 'WorkflowJob';
20872
+ id: string;
20873
+ status: WorkflowJobStatus;
20874
+ workflowRun: {
20875
+ __typename?: 'WorkflowRun';
20876
+ id: string;
20877
+ sshSettings?: {
20878
+ __typename?: 'WorkflowRunSshSettings';
20879
+ idleTimeoutSeconds: number;
20880
+ } | null;
20881
+ };
20882
+ turtleJobRun?: {
20883
+ __typename?: 'JobRun';
20884
+ id: string;
20885
+ sshSession?: {
20886
+ __typename?: 'TurtleSshSession';
20887
+ id: string;
20888
+ connectionConfig: {
20889
+ __typename?: 'TurtleSshConnectionConfig';
20890
+ host: string;
20891
+ secret: string;
20892
+ reconnecting: boolean;
20893
+ };
20894
+ } | null;
20895
+ } | null;
20896
+ turtleBuild?: {
20897
+ __typename?: 'Build';
20898
+ id: string;
20899
+ sshSession?: {
20900
+ __typename?: 'TurtleSshSession';
20901
+ id: string;
20902
+ connectionConfig: {
20903
+ __typename?: 'TurtleSshConnectionConfig';
20904
+ host: string;
20905
+ secret: string;
20906
+ reconnecting: boolean;
20907
+ };
20908
+ } | null;
20909
+ } | null;
20910
+ };
20911
+ };
20912
+ };
20913
+ export type JobRunSshPollQueryVariables = Exact<{
20914
+ jobRunId: Scalars['ID']['input'];
20915
+ }>;
20916
+ export type JobRunSshPollQuery = {
20917
+ __typename?: 'RootQuery';
20918
+ jobRun: {
20919
+ __typename?: 'JobRunQuery';
20920
+ byId: {
20921
+ __typename?: 'JobRun';
20922
+ id: string;
20923
+ status: JobRunStatus;
20924
+ sshSession?: {
20925
+ __typename?: 'TurtleSshSession';
20926
+ id: string;
20927
+ connectionConfig: {
20928
+ __typename?: 'TurtleSshConnectionConfig';
20929
+ host: string;
20930
+ secret: string;
20931
+ reconnecting: boolean;
20932
+ };
20933
+ } | null;
20934
+ };
20935
+ };
20936
+ };
20697
20937
  export type ExpoGoSupportedSdkVersionsQueryVariables = Exact<{
20698
20938
  [key: string]: never;
20699
20939
  }>;
@@ -6,10 +6,10 @@
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.BuildWorkflow = exports.BuildTrigger = exports.BuildStatus = exports.BuildRetryDisabledReason = exports.BuildResourceClass = exports.BuildPriority = exports.BuildPhase = exports.BuildMode = exports.BuildLimitThresholdExceededMetadataType = exports.BuildIosEnterpriseProvisioning = exports.BuildCredentialsSource = 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.AppObserveUpdatesOrderByField = exports.AppObserveUpdatesOrderByDirection = exports.AppObservePropertyType = exports.AppObservePlatform = exports.AppObserveNavigationRoutesOrderByField = exports.AppObserveEventsOrderByField = exports.AppObserveEventsOrderByDirection = exports.AppObserveErrorSeverity = exports.AppObserveErrorGroupsOrderBy = exports.AppObserveErrorBreakdownDimension = exports.AppObserveCustomEventNamesOrderByField = exports.AppObserveCustomEventNamesOrderByDirection = exports.AppObserveCustomEventListOrderByField = exports.AppInternalDistributionBuildPrivacy = exports.AndroidKeystoreType = exports.AndroidFcmVersion = exports.AndroidBuildType = exports.ActivityTimelineProjectActivityType = exports.AccountUploadSessionType = exports.AccountMemberType = exports.AccountAppsSortByField = void 0;
10
- exports.IosDistributionType = exports.IosBuildType = exports.InvoiceDiscountType = exports.InsightsFilterType = exports.GitHubJobRunTriggerType = exports.GitHubJobRunTriggerRunStatus = exports.GitHubJobRunJobType = exports.GitHubBuildTriggerType = exports.GitHubBuildTriggerRunStatus = exports.GitHubBuildTriggerExecutionBehavior = 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.DashboardViewPin = exports.DashboardChatMessageStatus = exports.DashboardChatMessageRole = exports.CustomDomainStatus = exports.CustomDomainDnsRecordType = exports.CrashSampleFor = exports.ContinentCode = void 0;
11
- 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.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 = 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 = void 0;
9
+ exports.BuildRetryDisabledReason = exports.BuildResourceClass = exports.BuildPriority = exports.BuildPhase = exports.BuildMode = exports.BuildLimitThresholdExceededMetadataType = exports.BuildIosEnterpriseProvisioning = exports.BuildCredentialsSource = 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.AppObserveUpdatesOrderByField = exports.AppObserveUpdatesOrderByDirection = exports.AppObservePropertyType = exports.AppObservePlatform = exports.AppObserveNavigationRoutesOrderByField = exports.AppObserveEventsOrderByField = exports.AppObserveEventsOrderByDirection = exports.AppObserveErrorSeverity = 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.InsightsFilterType = exports.GitHubJobRunTriggerType = exports.GitHubJobRunTriggerRunStatus = exports.GitHubJobRunJobType = exports.GitHubBuildTriggerType = exports.GitHubBuildTriggerRunStatus = exports.GitHubBuildTriggerExecutionBehavior = 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.DashboardViewPin = exports.DashboardChatMessageStatus = exports.DashboardChatMessageRole = exports.CustomDomainStatus = exports.CustomDomainDnsRecordType = exports.CrashSampleFor = exports.ContinentCode = exports.BuildWorkflow = exports.BuildTrigger = exports.BuildStatus = void 0;
11
+ 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.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 = 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 = void 0;
13
13
  var AccountAppsSortByField;
14
14
  (function (AccountAppsSortByField) {
15
15
  AccountAppsSortByField["LatestActivityTime"] = "LATEST_ACTIVITY_TIME";
@@ -44,6 +44,23 @@ var ActivityTimelineProjectActivityType;
44
44
  ActivityTimelineProjectActivityType["Worker"] = "WORKER";
45
45
  ActivityTimelineProjectActivityType["WorkflowRun"] = "WORKFLOW_RUN";
46
46
  })(ActivityTimelineProjectActivityType || (exports.ActivityTimelineProjectActivityType = ActivityTimelineProjectActivityType = {}));
47
+ var AgentProvider;
48
+ (function (AgentProvider) {
49
+ AgentProvider["Anthropic"] = "ANTHROPIC";
50
+ AgentProvider["Openai"] = "OPENAI";
51
+ })(AgentProvider || (exports.AgentProvider = AgentProvider = {}));
52
+ var AgentProviderConnectionAuthorizationStatus;
53
+ (function (AgentProviderConnectionAuthorizationStatus) {
54
+ AgentProviderConnectionAuthorizationStatus["Expired"] = "EXPIRED";
55
+ AgentProviderConnectionAuthorizationStatus["Pending"] = "PENDING";
56
+ AgentProviderConnectionAuthorizationStatus["Succeeded"] = "SUCCEEDED";
57
+ })(AgentProviderConnectionAuthorizationStatus || (exports.AgentProviderConnectionAuthorizationStatus = AgentProviderConnectionAuthorizationStatus = {}));
58
+ var AgentProviderConnectionStatus;
59
+ (function (AgentProviderConnectionStatus) {
60
+ AgentProviderConnectionStatus["Invalid"] = "INVALID";
61
+ AgentProviderConnectionStatus["UnableToVerify"] = "UNABLE_TO_VERIFY";
62
+ AgentProviderConnectionStatus["Valid"] = "VALID";
63
+ })(AgentProviderConnectionStatus || (exports.AgentProviderConnectionStatus = AgentProviderConnectionStatus = {}));
47
64
  var AndroidBuildType;
48
65
  (function (AndroidBuildType) {
49
66
  AndroidBuildType["Apk"] = "APK";
@@ -473,7 +490,10 @@ var DeviceRunSessionType;
473
490
  DeviceRunSessionType["AgentDevice"] = "AGENT_DEVICE";
474
491
  DeviceRunSessionType["Appium"] = "APPIUM";
475
492
  DeviceRunSessionType["Argent"] = "ARGENT";
493
+ /** @deprecated Use WEB_PREVIEW_ONLY instead. */
476
494
  DeviceRunSessionType["ServeSim"] = "SERVE_SIM";
495
+ /** A session accessed only through its web preview. Currently supported on iOS. */
496
+ DeviceRunSessionType["WebPreviewOnly"] = "WEB_PREVIEW_ONLY";
477
497
  })(DeviceRunSessionType || (exports.DeviceRunSessionType = DeviceRunSessionType = {}));
478
498
  var DistributionType;
479
499
  (function (DistributionType) {
@@ -603,6 +623,7 @@ var EntityTypeName;
603
623
  (function (EntityTypeName) {
604
624
  EntityTypeName["AccountEntity"] = "AccountEntity";
605
625
  EntityTypeName["AccountSsoConfigurationEntity"] = "AccountSSOConfigurationEntity";
626
+ EntityTypeName["AgentProviderConnectionEntity"] = "AgentProviderConnectionEntity";
606
627
  EntityTypeName["AndroidAppCredentialsEntity"] = "AndroidAppCredentialsEntity";
607
628
  EntityTypeName["AndroidKeystoreEntity"] = "AndroidKeystoreEntity";
608
629
  EntityTypeName["AppEntity"] = "AppEntity";
@@ -1280,6 +1301,9 @@ var WorkflowRunTriggerEventType;
1280
1301
  WorkflowRunTriggerEventType["EasSubmit"] = "EAS_SUBMIT";
1281
1302
  WorkflowRunTriggerEventType["ExpoLaunch"] = "EXPO_LAUNCH";
1282
1303
  WorkflowRunTriggerEventType["GithubPullRequestBaseRefChanged"] = "GITHUB_PULL_REQUEST_BASE_REF_CHANGED";
1304
+ WorkflowRunTriggerEventType["GithubPullRequestCommentCreated"] = "GITHUB_PULL_REQUEST_COMMENT_CREATED";
1305
+ WorkflowRunTriggerEventType["GithubPullRequestCommentDeleted"] = "GITHUB_PULL_REQUEST_COMMENT_DELETED";
1306
+ WorkflowRunTriggerEventType["GithubPullRequestCommentEdited"] = "GITHUB_PULL_REQUEST_COMMENT_EDITED";
1283
1307
  WorkflowRunTriggerEventType["GithubPullRequestEdited"] = "GITHUB_PULL_REQUEST_EDITED";
1284
1308
  WorkflowRunTriggerEventType["GithubPullRequestLabeled"] = "GITHUB_PULL_REQUEST_LABELED";
1285
1309
  WorkflowRunTriggerEventType["GithubPullRequestOpened"] = "GITHUB_PULL_REQUEST_OPENED";
@@ -0,0 +1,6 @@
1
+ import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
2
+ import { RealtimeLogsCentrifugoConnectionToken, RealtimeLogsCentrifugoSubscriptionToken, RealtimeLogsMutationGenerateCentrifugoSubscriptionTokenArgs } from '../generated';
3
+ export declare const RealtimeLogsMutation: {
4
+ generateCentrifugoConnectionTokenAsync(graphqlClient: ExpoGraphqlClient): Promise<RealtimeLogsCentrifugoConnectionToken>;
5
+ generateCentrifugoSubscriptionTokenAsync(graphqlClient: ExpoGraphqlClient, { target, thread }: RealtimeLogsMutationGenerateCentrifugoSubscriptionTokenArgs): Promise<RealtimeLogsCentrifugoSubscriptionToken>;
6
+ };
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RealtimeLogsMutation = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_tag_1 = tslib_1.__importDefault(require("graphql-tag"));
6
+ const client_1 = require("../client");
7
+ exports.RealtimeLogsMutation = {
8
+ async generateCentrifugoConnectionTokenAsync(graphqlClient) {
9
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
10
+ .mutation((0, graphql_tag_1.default) `
11
+ mutation GenerateRealtimeLogsCentrifugoConnectionToken {
12
+ realtimeLogs {
13
+ generateCentrifugoConnectionToken {
14
+ token
15
+ }
16
+ }
17
+ }
18
+ `, {})
19
+ .toPromise());
20
+ return data.realtimeLogs.generateCentrifugoConnectionToken;
21
+ },
22
+ async generateCentrifugoSubscriptionTokenAsync(graphqlClient, { target, thread }) {
23
+ const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
24
+ .mutation((0, graphql_tag_1.default) `
25
+ mutation GenerateRealtimeLogsCentrifugoSubscriptionToken(
26
+ $target: RealtimeLogsTargetInput!
27
+ $thread: String
28
+ ) {
29
+ realtimeLogs {
30
+ generateCentrifugoSubscriptionToken(target: $target, thread: $thread) {
31
+ channel
32
+ token
33
+ }
34
+ }
35
+ }
36
+ `, { target, thread })
37
+ .toPromise());
38
+ return data.realtimeLogs.generateCentrifugoSubscriptionToken;
39
+ },
40
+ };
@@ -1,5 +1,5 @@
1
1
  import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
2
- import { WorkflowProjectSourceInput, WorkflowRevisionInput, WorkflowRunInput } from '../generated';
2
+ import { WorkflowProjectSourceInput, WorkflowRevisionInput, WorkflowRunInput, WorkflowRunSshInput } from '../generated';
3
3
  export declare namespace WorkflowRunMutation {
4
4
  function createWorkflowRunAsync(graphqlClient: ExpoGraphqlClient, { appId, workflowRevisionInput, workflowRunInput, }: {
5
5
  appId: string;
@@ -8,10 +8,11 @@ export declare namespace WorkflowRunMutation {
8
8
  }): Promise<{
9
9
  id: string;
10
10
  }>;
11
- function createWorkflowRunFromGitRefAsync(graphqlClient: ExpoGraphqlClient, { workflowRevisionId, gitRef, inputs, }: {
11
+ function createWorkflowRunFromGitRefAsync(graphqlClient: ExpoGraphqlClient, { workflowRevisionId, gitRef, inputs, ssh, }: {
12
12
  workflowRevisionId: string;
13
13
  gitRef: string;
14
14
  inputs?: Record<string, any>;
15
+ ssh?: WorkflowRunSshInput | null;
15
16
  }): Promise<{
16
17
  id: string;
17
18
  }>;
@@ -33,19 +33,21 @@ var WorkflowRunMutation;
33
33
  return { id: data.workflowRun.createWorkflowRun.id };
34
34
  }
35
35
  WorkflowRunMutation.createWorkflowRunAsync = createWorkflowRunAsync;
36
- async function createWorkflowRunFromGitRefAsync(graphqlClient, { workflowRevisionId, gitRef, inputs, }) {
36
+ async function createWorkflowRunFromGitRefAsync(graphqlClient, { workflowRevisionId, gitRef, inputs, ssh, }) {
37
37
  const data = await (0, client_1.withErrorHandlingAsync)(graphqlClient
38
38
  .mutation((0, graphql_tag_1.default) `
39
39
  mutation CreateWorkflowRunFromGitRef(
40
40
  $workflowRevisionId: ID!
41
41
  $gitRef: String!
42
42
  $inputs: JSONObject
43
+ $ssh: WorkflowRunSshInput
43
44
  ) {
44
45
  workflowRun {
45
46
  createWorkflowRunFromGitRef(
46
47
  workflowRevisionId: $workflowRevisionId
47
48
  gitRef: $gitRef
48
49
  inputs: $inputs
50
+ ssh: $ssh
49
51
  ) {
50
52
  id
51
53
  }
@@ -55,6 +57,7 @@ var WorkflowRunMutation;
55
57
  workflowRevisionId,
56
58
  gitRef,
57
59
  inputs,
60
+ ssh,
58
61
  })
59
62
  .toPromise());
60
63
  return { id: data.workflowRun.createWorkflowRunFromGitRef.id };