eas-cli 2.3.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/README.md +47 -47
  2. package/build/ApiV2Error.d.ts +15 -0
  3. package/build/ApiV2Error.js +14 -0
  4. package/build/api.d.ts +10 -16
  5. package/build/api.js +52 -59
  6. package/build/branch/queries.d.ts +3 -2
  7. package/build/branch/queries.js +7 -7
  8. package/build/build/android/build.js +3 -3
  9. package/build/build/android/syncProjectConfiguration.d.ts +2 -1
  10. package/build/build/android/syncProjectConfiguration.js +2 -2
  11. package/build/build/android/version.d.ts +2 -1
  12. package/build/build/android/version.js +4 -4
  13. package/build/build/build.d.ts +2 -1
  14. package/build/build/build.js +5 -5
  15. package/build/build/context.d.ts +2 -0
  16. package/build/build/createContext.d.ts +3 -1
  17. package/build/build/createContext.js +4 -2
  18. package/build/build/ios/build.js +3 -3
  19. package/build/build/ios/syncProjectConfiguration.d.ts +2 -1
  20. package/build/build/ios/syncProjectConfiguration.js +2 -2
  21. package/build/build/ios/version.d.ts +2 -1
  22. package/build/build/ios/version.js +4 -4
  23. package/build/build/local.js +1 -1
  24. package/build/build/queries.d.ts +2 -1
  25. package/build/build/queries.js +3 -3
  26. package/build/build/runBuildAndSubmit.d.ts +2 -1
  27. package/build/build/runBuildAndSubmit.js +9 -6
  28. package/build/channel/queries.d.ts +4 -3
  29. package/build/channel/queries.js +13 -13
  30. package/build/commandUtils/EasCommand.d.ts +24 -3
  31. package/build/commandUtils/EasCommand.js +36 -6
  32. package/build/commandUtils/context/ContextField.d.ts +2 -0
  33. package/build/commandUtils/context/DynamicProjectConfigContextField.d.ts +1 -1
  34. package/build/commandUtils/context/DynamicProjectConfigContextField.js +2 -2
  35. package/build/commandUtils/context/LoggedInContextField.d.ts +12 -0
  36. package/build/commandUtils/context/LoggedInContextField.js +15 -0
  37. package/build/commandUtils/context/MaybeLoggedInContextField.d.ts +12 -0
  38. package/build/commandUtils/context/MaybeLoggedInContextField.js +17 -0
  39. package/build/commandUtils/context/OptionalProjectConfigContextField.d.ts +1 -1
  40. package/build/commandUtils/context/OptionalProjectConfigContextField.js +2 -2
  41. package/build/commandUtils/context/ProjectConfigContextField.d.ts +1 -1
  42. package/build/commandUtils/context/ProjectConfigContextField.js +2 -2
  43. package/build/commandUtils/context/SessionManagementContextField.d.ts +5 -0
  44. package/build/commandUtils/context/SessionManagementContextField.js +10 -0
  45. package/build/commandUtils/context/contextUtils/createGraphqlClient.d.ts +11 -0
  46. package/build/commandUtils/context/contextUtils/createGraphqlClient.js +43 -0
  47. package/build/commandUtils/context/contextUtils/getProjectIdAsync.d.ts +2 -1
  48. package/build/commandUtils/context/contextUtils/getProjectIdAsync.js +11 -7
  49. package/build/commands/account/login.d.ts +3 -0
  50. package/build/commands/account/login.js +7 -2
  51. package/build/commands/account/logout.d.ts +3 -0
  52. package/build/commands/account/logout.js +7 -2
  53. package/build/commands/account/view.d.ts +3 -0
  54. package/build/commands/account/view.js +8 -3
  55. package/build/commands/branch/create.d.ts +3 -1
  56. package/build/commands/branch/create.js +6 -5
  57. package/build/commands/branch/delete.d.ts +1 -0
  58. package/build/commands/branch/delete.js +10 -9
  59. package/build/commands/branch/list.d.ts +1 -0
  60. package/build/commands/branch/list.js +3 -2
  61. package/build/commands/branch/rename.d.ts +1 -0
  62. package/build/commands/branch/rename.js +6 -5
  63. package/build/commands/branch/view.d.ts +1 -0
  64. package/build/commands/branch/view.js +4 -3
  65. package/build/commands/build/cancel.d.ts +3 -1
  66. package/build/commands/build/cancel.js +14 -13
  67. package/build/commands/build/configure.d.ts +1 -0
  68. package/build/commands/build/configure.js +4 -3
  69. package/build/commands/build/index.d.ts +1 -1
  70. package/build/commands/build/index.js +3 -3
  71. package/build/commands/build/inspect.d.ts +1 -1
  72. package/build/commands/build/inspect.js +2 -2
  73. package/build/commands/build/list.d.ts +1 -0
  74. package/build/commands/build/list.js +4 -3
  75. package/build/commands/build/version/set.d.ts +1 -1
  76. package/build/commands/build/version/set.js +4 -4
  77. package/build/commands/build/version/sync.d.ts +1 -1
  78. package/build/commands/build/version/sync.js +2 -2
  79. package/build/commands/build/view.d.ts +1 -0
  80. package/build/commands/build/view.js +5 -4
  81. package/build/commands/channel/create.d.ts +3 -1
  82. package/build/commands/channel/create.js +8 -7
  83. package/build/commands/channel/delete.d.ts +1 -0
  84. package/build/commands/channel/delete.js +7 -6
  85. package/build/commands/channel/edit.d.ts +3 -1
  86. package/build/commands/channel/edit.js +12 -8
  87. package/build/commands/channel/list.d.ts +1 -0
  88. package/build/commands/channel/list.js +3 -2
  89. package/build/commands/channel/rollout.d.ts +1 -0
  90. package/build/commands/channel/rollout.js +15 -14
  91. package/build/commands/channel/view.d.ts +1 -0
  92. package/build/commands/channel/view.js +4 -3
  93. package/build/commands/credentials.d.ts +1 -1
  94. package/build/commands/credentials.js +2 -2
  95. package/build/commands/device/create.d.ts +1 -1
  96. package/build/commands/device/create.js +2 -1
  97. package/build/commands/device/delete.d.ts +3 -1
  98. package/build/commands/device/delete.js +9 -8
  99. package/build/commands/device/list.d.ts +1 -0
  100. package/build/commands/device/list.js +5 -4
  101. package/build/commands/device/view.d.ts +1 -0
  102. package/build/commands/device/view.js +4 -3
  103. package/build/commands/metadata/pull.d.ts +1 -1
  104. package/build/commands/metadata/pull.js +2 -1
  105. package/build/commands/metadata/push.d.ts +1 -1
  106. package/build/commands/metadata/push.js +2 -1
  107. package/build/commands/open.d.ts +1 -0
  108. package/build/commands/open.js +3 -2
  109. package/build/commands/project/info.d.ts +1 -0
  110. package/build/commands/project/info.js +5 -4
  111. package/build/commands/project/init.d.ts +1 -1
  112. package/build/commands/project/init.js +5 -5
  113. package/build/commands/secret/create.d.ts +1 -0
  114. package/build/commands/secret/create.js +10 -9
  115. package/build/commands/secret/delete.d.ts +1 -0
  116. package/build/commands/secret/delete.js +4 -3
  117. package/build/commands/secret/list.d.ts +1 -0
  118. package/build/commands/secret/list.js +3 -2
  119. package/build/commands/submit.d.ts +1 -1
  120. package/build/commands/submit.js +4 -3
  121. package/build/commands/update/configure.d.ts +1 -0
  122. package/build/commands/update/configure.js +4 -3
  123. package/build/commands/update/delete.d.ts +3 -0
  124. package/build/commands/update/delete.js +9 -3
  125. package/build/commands/update/index.d.ts +3 -1
  126. package/build/commands/update/index.js +23 -17
  127. package/build/commands/update/list.d.ts +1 -0
  128. package/build/commands/update/list.js +6 -5
  129. package/build/commands/update/view.d.ts +3 -0
  130. package/build/commands/update/view.js +7 -1
  131. package/build/commands/webhook/create.d.ts +1 -0
  132. package/build/commands/webhook/create.js +3 -2
  133. package/build/commands/webhook/delete.d.ts +1 -0
  134. package/build/commands/webhook/delete.js +7 -6
  135. package/build/commands/webhook/list.d.ts +1 -0
  136. package/build/commands/webhook/list.js +4 -3
  137. package/build/commands/webhook/update.d.ts +3 -0
  138. package/build/commands/webhook/update.js +8 -2
  139. package/build/commands/webhook/view.d.ts +3 -0
  140. package/build/commands/webhook/view.js +7 -1
  141. package/build/credentials/android/actions/AssignFcm.js +2 -2
  142. package/build/credentials/android/actions/AssignGoogleServiceAccountKey.js +2 -2
  143. package/build/credentials/android/actions/BuildCredentialsUtils.js +12 -12
  144. package/build/credentials/android/actions/CreateFcm.js +1 -1
  145. package/build/credentials/android/actions/CreateGoogleServiceAccountKey.js +1 -1
  146. package/build/credentials/android/actions/CreateKeystore.js +4 -4
  147. package/build/credentials/android/actions/RemoveFcm.js +2 -2
  148. package/build/credentials/android/actions/RemoveGoogleServiceAccountKey.js +2 -2
  149. package/build/credentials/android/actions/RemoveKeystore.js +1 -1
  150. package/build/credentials/android/actions/SetUpBuildCredentials.js +3 -3
  151. package/build/credentials/android/actions/SetUpBuildCredentialsFromCredentialsJson.js +3 -3
  152. package/build/credentials/android/actions/SetUpGoogleServiceAccountKey.js +3 -3
  153. package/build/credentials/android/actions/UseExistingGoogleServiceAccountKey.js +1 -1
  154. package/build/credentials/android/api/GraphqlClient.d.ts +19 -18
  155. package/build/credentials/android/api/GraphqlClient.js +45 -45
  156. package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.d.ts +3 -2
  157. package/build/credentials/android/api/graphql/mutations/AndroidAppBuildCredentialsMutation.js +4 -4
  158. package/build/credentials/android/api/graphql/mutations/AndroidAppCredentialsMutation.d.ts +4 -3
  159. package/build/credentials/android/api/graphql/mutations/AndroidAppCredentialsMutation.js +6 -6
  160. package/build/credentials/android/api/graphql/mutations/AndroidFcmMutation.d.ts +3 -2
  161. package/build/credentials/android/api/graphql/mutations/AndroidFcmMutation.js +4 -4
  162. package/build/credentials/android/api/graphql/mutations/AndroidKeystoreMutation.d.ts +3 -2
  163. package/build/credentials/android/api/graphql/mutations/AndroidKeystoreMutation.js +4 -4
  164. package/build/credentials/android/api/graphql/mutations/GoogleServiceAccountKeyMutation.d.ts +3 -2
  165. package/build/credentials/android/api/graphql/mutations/GoogleServiceAccountKeyMutation.js +4 -4
  166. package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.d.ts +2 -1
  167. package/build/credentials/android/api/graphql/queries/AndroidAppCredentialsQuery.js +2 -2
  168. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.d.ts +2 -1
  169. package/build/credentials/android/api/graphql/queries/GoogleServiceAccountKeyQuery.js +2 -2
  170. package/build/credentials/android/utils/keystore.d.ts +2 -1
  171. package/build/credentials/android/utils/keystore.js +6 -6
  172. package/build/credentials/context.d.ts +3 -0
  173. package/build/credentials/context.js +1 -0
  174. package/build/credentials/credentialsJson/update.js +1 -1
  175. package/build/credentials/ios/actions/AppleTeamUtils.js +1 -1
  176. package/build/credentials/ios/actions/AscApiKeyUtils.js +1 -1
  177. package/build/credentials/ios/actions/AssignAscApiKey.js +2 -2
  178. package/build/credentials/ios/actions/AssignPushKey.js +2 -2
  179. package/build/credentials/ios/actions/BuildCredentialsUtils.js +5 -5
  180. package/build/credentials/ios/actions/ConfigureProvisioningProfile.js +1 -1
  181. package/build/credentials/ios/actions/CreateAscApiKey.js +1 -1
  182. package/build/credentials/ios/actions/CreateDistributionCertificate.js +1 -1
  183. package/build/credentials/ios/actions/CreateProvisioningProfile.js +2 -2
  184. package/build/credentials/ios/actions/CreatePushKey.js +1 -1
  185. package/build/credentials/ios/actions/DistributionCertificateUtils.js +2 -2
  186. package/build/credentials/ios/actions/PushKeyUtils.js +1 -1
  187. package/build/credentials/ios/actions/RemoveAscApiKey.js +1 -1
  188. package/build/credentials/ios/actions/RemoveDistributionCertificate.js +1 -1
  189. package/build/credentials/ios/actions/RemoveProvisioningProfile.js +1 -1
  190. package/build/credentials/ios/actions/RemovePushKey.js +1 -1
  191. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +8 -8
  192. package/build/credentials/ios/actions/SetUpAscApiKey.js +2 -2
  193. package/build/credentials/ios/actions/SetUpDistributionCertificate.js +2 -2
  194. package/build/credentials/ios/actions/SetUpProvisioningProfile.js +1 -1
  195. package/build/credentials/ios/actions/SetUpPushKey.js +4 -4
  196. package/build/credentials/ios/actions/SetUpTargetBuildCredentialsFromCredentialsJson.js +5 -5
  197. package/build/credentials/ios/api/GraphqlClient.d.ts +25 -24
  198. package/build/credentials/ios/api/GraphqlClient.js +73 -73
  199. package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.d.ts +3 -2
  200. package/build/credentials/ios/api/graphql/mutations/AppStoreConnectApiKeyMutation.js +4 -4
  201. package/build/credentials/ios/api/graphql/mutations/AppleAppIdentifierMutation.d.ts +2 -1
  202. package/build/credentials/ios/api/graphql/mutations/AppleAppIdentifierMutation.js +2 -2
  203. package/build/credentials/ios/api/graphql/mutations/AppleDeviceMutation.d.ts +3 -2
  204. package/build/credentials/ios/api/graphql/mutations/AppleDeviceMutation.js +4 -4
  205. package/build/credentials/ios/api/graphql/mutations/AppleDeviceRegistrationRequestMutation.d.ts +2 -1
  206. package/build/credentials/ios/api/graphql/mutations/AppleDeviceRegistrationRequestMutation.js +2 -2
  207. package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.d.ts +3 -2
  208. package/build/credentials/ios/api/graphql/mutations/AppleDistributionCertificateMutation.js +4 -4
  209. package/build/credentials/ios/api/graphql/mutations/AppleProvisioningProfileMutation.d.ts +4 -3
  210. package/build/credentials/ios/api/graphql/mutations/AppleProvisioningProfileMutation.js +6 -6
  211. package/build/credentials/ios/api/graphql/mutations/ApplePushKeyMutation.d.ts +3 -2
  212. package/build/credentials/ios/api/graphql/mutations/ApplePushKeyMutation.js +4 -4
  213. package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.d.ts +2 -1
  214. package/build/credentials/ios/api/graphql/mutations/AppleTeamMutation.js +2 -2
  215. package/build/credentials/ios/api/graphql/mutations/IosAppBuildCredentialsMutation.d.ts +4 -3
  216. package/build/credentials/ios/api/graphql/mutations/IosAppBuildCredentialsMutation.js +6 -6
  217. package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.d.ts +4 -3
  218. package/build/credentials/ios/api/graphql/mutations/IosAppCredentialsMutation.js +6 -6
  219. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.d.ts +2 -1
  220. package/build/credentials/ios/api/graphql/queries/AppStoreConnectApiKeyQuery.js +2 -2
  221. package/build/credentials/ios/api/graphql/queries/AppleAppIdentifierQuery.d.ts +2 -1
  222. package/build/credentials/ios/api/graphql/queries/AppleAppIdentifierQuery.js +2 -2
  223. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.d.ts +4 -3
  224. package/build/credentials/ios/api/graphql/queries/AppleDeviceQuery.js +6 -6
  225. package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.d.ts +3 -2
  226. package/build/credentials/ios/api/graphql/queries/AppleDistributionCertificateQuery.js +4 -4
  227. package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.d.ts +2 -1
  228. package/build/credentials/ios/api/graphql/queries/AppleProvisioningProfileQuery.js +2 -2
  229. package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.d.ts +2 -1
  230. package/build/credentials/ios/api/graphql/queries/ApplePushKeyQuery.js +2 -2
  231. package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.d.ts +3 -2
  232. package/build/credentials/ios/api/graphql/queries/AppleTeamQuery.js +4 -4
  233. package/build/credentials/ios/api/graphql/queries/IosAppBuildCredentialsQuery.d.ts +2 -1
  234. package/build/credentials/ios/api/graphql/queries/IosAppBuildCredentialsQuery.js +2 -2
  235. package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.d.ts +3 -2
  236. package/build/credentials/ios/api/graphql/queries/IosAppCredentialsQuery.js +4 -4
  237. package/build/credentials/manager/HelperActions.d.ts +2 -0
  238. package/build/credentials/manager/ManageAndroid.js +4 -3
  239. package/build/credentials/manager/ManageIos.js +4 -3
  240. package/build/credentials/manager/SelectAndroidBuildCredentials.js +2 -2
  241. package/build/credentials/manager/SelectPlatform.d.ts +3 -1
  242. package/build/credentials/manager/SelectPlatform.js +2 -1
  243. package/build/devices/actions/create/action.d.ts +3 -1
  244. package/build/devices/actions/create/action.js +5 -4
  245. package/build/devices/actions/create/developerPortalMethod.d.ts +2 -1
  246. package/build/devices/actions/create/developerPortalMethod.js +9 -9
  247. package/build/devices/actions/create/inputMethod.d.ts +2 -1
  248. package/build/devices/actions/create/inputMethod.js +4 -4
  249. package/build/devices/actions/create/registrationUrlMethod.d.ts +2 -1
  250. package/build/devices/actions/create/registrationUrlMethod.js +4 -4
  251. package/build/devices/context.d.ts +4 -1
  252. package/build/devices/context.js +2 -1
  253. package/build/devices/manager.d.ts +3 -1
  254. package/build/devices/manager.js +9 -8
  255. package/build/devices/queries.d.ts +4 -3
  256. package/build/devices/queries.js +7 -7
  257. package/build/graphql/client.d.ts +1 -8
  258. package/build/graphql/client.js +1 -39
  259. package/build/graphql/mutations/AppMutation.d.ts +2 -1
  260. package/build/graphql/mutations/AppMutation.js +2 -2
  261. package/build/graphql/mutations/AppVersionMutation.d.ts +2 -1
  262. package/build/graphql/mutations/AppVersionMutation.js +2 -2
  263. package/build/graphql/mutations/BuildMutation.d.ts +3 -2
  264. package/build/graphql/mutations/BuildMutation.js +4 -4
  265. package/build/graphql/mutations/EnvironmentSecretMutation.d.ts +4 -3
  266. package/build/graphql/mutations/EnvironmentSecretMutation.js +6 -6
  267. package/build/graphql/mutations/KeystoreGenerationUrlMutation.d.ts +2 -1
  268. package/build/graphql/mutations/KeystoreGenerationUrlMutation.js +2 -2
  269. package/build/graphql/mutations/PublishMutation.d.ts +4 -3
  270. package/build/graphql/mutations/PublishMutation.js +6 -6
  271. package/build/graphql/mutations/SubmissionMutation.d.ts +3 -2
  272. package/build/graphql/mutations/SubmissionMutation.js +4 -4
  273. package/build/graphql/mutations/UploadSessionMutation.d.ts +2 -1
  274. package/build/graphql/mutations/UploadSessionMutation.js +2 -2
  275. package/build/graphql/mutations/WebhookMutation.d.ts +4 -3
  276. package/build/graphql/mutations/WebhookMutation.js +6 -6
  277. package/build/graphql/queries/AppQuery.d.ts +3 -2
  278. package/build/graphql/queries/AppQuery.js +4 -4
  279. package/build/graphql/queries/AppVersionQuery.d.ts +2 -1
  280. package/build/graphql/queries/AppVersionQuery.js +2 -2
  281. package/build/graphql/queries/BranchQuery.d.ts +4 -3
  282. package/build/graphql/queries/BranchQuery.js +6 -6
  283. package/build/graphql/queries/BuildQuery.d.ts +4 -3
  284. package/build/graphql/queries/BuildQuery.js +6 -6
  285. package/build/graphql/queries/ChannelQuery.d.ts +3 -2
  286. package/build/graphql/queries/ChannelQuery.js +4 -4
  287. package/build/graphql/queries/EnvironmentSecretsQuery.d.ts +3 -2
  288. package/build/graphql/queries/EnvironmentSecretsQuery.js +4 -4
  289. package/build/graphql/queries/PublishQuery.d.ts +3 -2
  290. package/build/graphql/queries/PublishQuery.js +4 -4
  291. package/build/graphql/queries/StatuspageServiceQuery.d.ts +2 -1
  292. package/build/graphql/queries/StatuspageServiceQuery.js +2 -2
  293. package/build/graphql/queries/SubmissionQuery.d.ts +3 -2
  294. package/build/graphql/queries/SubmissionQuery.js +4 -4
  295. package/build/graphql/queries/UpdateQuery.d.ts +4 -3
  296. package/build/graphql/queries/UpdateQuery.js +6 -6
  297. package/build/graphql/queries/UserQuery.d.ts +2 -1
  298. package/build/graphql/queries/UserQuery.js +2 -2
  299. package/build/graphql/queries/WebhookQuery.d.ts +3 -2
  300. package/build/graphql/queries/WebhookQuery.js +4 -4
  301. package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.d.ts +3 -2
  302. package/build/project/fetchOrCreateProjectIDForWriteToConfigWithConfirmationAsync.js +5 -5
  303. package/build/project/projectUtils.d.ts +3 -2
  304. package/build/project/projectUtils.js +4 -4
  305. package/build/project/publish.d.ts +3 -2
  306. package/build/project/publish.js +7 -7
  307. package/build/submit/ArchiveSource.d.ts +2 -1
  308. package/build/submit/ArchiveSource.js +30 -30
  309. package/build/submit/android/AndroidSubmitter.js +2 -2
  310. package/build/submit/context.d.ts +3 -0
  311. package/build/submit/context.js +3 -2
  312. package/build/submit/ios/IosSubmitter.js +2 -2
  313. package/build/submit/submit.d.ts +2 -1
  314. package/build/submit/submit.js +2 -2
  315. package/build/submit/utils/builds.d.ts +2 -1
  316. package/build/submit/utils/builds.js +2 -2
  317. package/build/submit/utils/errors.d.ts +3 -0
  318. package/build/submit/utils/errors.js +15 -67
  319. package/build/submit/utils/files.d.ts +2 -1
  320. package/build/submit/utils/files.js +2 -2
  321. package/build/submit/utils/wait.d.ts +2 -1
  322. package/build/submit/utils/wait.js +2 -2
  323. package/build/update/android/UpdatesModule.d.ts +2 -1
  324. package/build/update/android/UpdatesModule.js +2 -2
  325. package/build/update/ios/UpdatesModule.d.ts +2 -1
  326. package/build/update/ios/UpdatesModule.js +2 -2
  327. package/build/update/queries.d.ts +4 -3
  328. package/build/update/queries.js +22 -12
  329. package/build/uploads.d.ts +2 -1
  330. package/build/uploads.js +2 -2
  331. package/build/user/SessionManager.d.ts +70 -0
  332. package/build/user/SessionManager.js +258 -0
  333. package/build/user/User.d.ts +0 -9
  334. package/build/user/User.js +1 -60
  335. package/build/user/fetchSessionSecretAndUser.d.ts +9 -0
  336. package/build/user/fetchSessionSecretAndUser.js +43 -0
  337. package/build/utils/statuspageService.d.ts +2 -1
  338. package/build/utils/statuspageService.js +4 -4
  339. package/oclif.manifest.json +1 -1
  340. package/package.json +2 -2
  341. package/build/commandUtils/context/ActorContextField.d.ts +0 -5
  342. package/build/commandUtils/context/ActorContextField.js +0 -11
  343. package/build/commandUtils/context/contextUtils/ensureLoggedInAsync.d.ts +0 -21
  344. package/build/commandUtils/context/contextUtils/ensureLoggedInAsync.js +0 -75
  345. package/build/user/otp.d.ts +0 -29
  346. package/build/user/otp.js +0 -119
  347. package/build/user/sessionStorage.d.ts +0 -11
  348. package/build/user/sessionStorage.js +0 -36
package/README.md CHANGED
@@ -125,7 +125,7 @@ ALIASES
125
125
  $ eas login
126
126
  ```
127
127
 
128
- _See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/account/login.ts)_
128
+ _See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/account/login.ts)_
129
129
 
130
130
  ## `eas account:logout`
131
131
 
@@ -142,7 +142,7 @@ ALIASES
142
142
  $ eas logout
143
143
  ```
144
144
 
145
- _See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/account/logout.ts)_
145
+ _See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/account/logout.ts)_
146
146
 
147
147
  ## `eas account:view`
148
148
 
@@ -159,7 +159,7 @@ ALIASES
159
159
  $ eas whoami
160
160
  ```
161
161
 
162
- _See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/account/view.ts)_
162
+ _See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/account/view.ts)_
163
163
 
164
164
  ## `eas analytics [STATUS]`
165
165
 
@@ -173,7 +173,7 @@ DESCRIPTION
173
173
  display or change analytics settings
174
174
  ```
175
175
 
176
- _See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/analytics.ts)_
176
+ _See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/analytics.ts)_
177
177
 
178
178
  ## `eas autocomplete [SHELL]`
179
179
 
@@ -223,7 +223,7 @@ DESCRIPTION
223
223
  create a branch
224
224
  ```
225
225
 
226
- _See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/branch/create.ts)_
226
+ _See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/branch/create.ts)_
227
227
 
228
228
  ## `eas branch:delete [NAME]`
229
229
 
@@ -244,7 +244,7 @@ DESCRIPTION
244
244
  delete a branch
245
245
  ```
246
246
 
247
- _See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/branch/delete.ts)_
247
+ _See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/branch/delete.ts)_
248
248
 
249
249
  ## `eas branch:list`
250
250
 
@@ -264,7 +264,7 @@ DESCRIPTION
264
264
  list all branches
265
265
  ```
266
266
 
267
- _See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/branch/list.ts)_
267
+ _See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/branch/list.ts)_
268
268
 
269
269
  ## `eas branch:rename`
270
270
 
@@ -284,7 +284,7 @@ DESCRIPTION
284
284
  rename a branch
285
285
  ```
286
286
 
287
- _See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/branch/rename.ts)_
287
+ _See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/branch/rename.ts)_
288
288
 
289
289
  ## `eas branch:view [NAME]`
290
290
 
@@ -307,7 +307,7 @@ DESCRIPTION
307
307
  view a branch
308
308
  ```
309
309
 
310
- _See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/branch/view.ts)_
310
+ _See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/branch/view.ts)_
311
311
 
312
312
  ## `eas build`
313
313
 
@@ -337,7 +337,7 @@ DESCRIPTION
337
337
  start a build
338
338
  ```
339
339
 
340
- _See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/build/index.ts)_
340
+ _See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/build/index.ts)_
341
341
 
342
342
  ## `eas build:cancel [BUILD_ID]`
343
343
 
@@ -354,7 +354,7 @@ DESCRIPTION
354
354
  cancel a build
355
355
  ```
356
356
 
357
- _See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/build/cancel.ts)_
357
+ _See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/build/cancel.ts)_
358
358
 
359
359
  ## `eas build:configure`
360
360
 
@@ -371,7 +371,7 @@ DESCRIPTION
371
371
  configure the project to support EAS Build
372
372
  ```
373
373
 
374
- _See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/build/configure.ts)_
374
+ _See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/build/configure.ts)_
375
375
 
376
376
  ## `eas build:inspect`
377
377
 
@@ -406,7 +406,7 @@ DESCRIPTION
406
406
  inspect the state of the project at specific build stages, useful for troubleshooting
407
407
  ```
408
408
 
409
- _See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/build/inspect.ts)_
409
+ _See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/build/inspect.ts)_
410
410
 
411
411
  ## `eas build:list`
412
412
 
@@ -443,7 +443,7 @@ DESCRIPTION
443
443
  list all builds for your project
444
444
  ```
445
445
 
446
- _See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/build/list.ts)_
446
+ _See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/build/list.ts)_
447
447
 
448
448
  ## `eas build:submit`
449
449
 
@@ -490,7 +490,7 @@ DESCRIPTION
490
490
  Update version of an app.
491
491
  ```
492
492
 
493
- _See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/build/version/set.ts)_
493
+ _See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/build/version/set.ts)_
494
494
 
495
495
  ## `eas build:version:sync`
496
496
 
@@ -509,7 +509,7 @@ DESCRIPTION
509
509
  Update a version in native code with a value stored on EAS servers
510
510
  ```
511
511
 
512
- _See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/build/version/sync.ts)_
512
+ _See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/build/version/sync.ts)_
513
513
 
514
514
  ## `eas build:view [BUILD_ID]`
515
515
 
@@ -526,7 +526,7 @@ DESCRIPTION
526
526
  view a build for your project
527
527
  ```
528
528
 
529
- _See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/build/view.ts)_
529
+ _See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/build/view.ts)_
530
530
 
531
531
  ## `eas channel:create [NAME]`
532
532
 
@@ -547,7 +547,7 @@ DESCRIPTION
547
547
  create a channel
548
548
  ```
549
549
 
550
- _See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/channel/create.ts)_
550
+ _See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/channel/create.ts)_
551
551
 
552
552
  ## `eas channel:edit [NAME]`
553
553
 
@@ -569,7 +569,7 @@ DESCRIPTION
569
569
  point a channel at a new branch
570
570
  ```
571
571
 
572
- _See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/channel/edit.ts)_
572
+ _See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/channel/edit.ts)_
573
573
 
574
574
  ## `eas channel:list`
575
575
 
@@ -589,7 +589,7 @@ DESCRIPTION
589
589
  list all channels
590
590
  ```
591
591
 
592
- _See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/channel/list.ts)_
592
+ _See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/channel/list.ts)_
593
593
 
594
594
  ## `eas channel:view [NAME]`
595
595
 
@@ -612,7 +612,7 @@ DESCRIPTION
612
612
  view a channel
613
613
  ```
614
614
 
615
- _See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/channel/view.ts)_
615
+ _See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/channel/view.ts)_
616
616
 
617
617
  ## `eas config`
618
618
 
@@ -631,7 +631,7 @@ DESCRIPTION
631
631
  display project configuration (app.json + eas.json)
632
632
  ```
633
633
 
634
- _See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/config.ts)_
634
+ _See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/config.ts)_
635
635
 
636
636
  ## `eas credentials`
637
637
 
@@ -648,7 +648,7 @@ DESCRIPTION
648
648
  manage credentials
649
649
  ```
650
650
 
651
- _See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/credentials.ts)_
651
+ _See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/credentials.ts)_
652
652
 
653
653
  ## `eas device:create`
654
654
 
@@ -662,7 +662,7 @@ DESCRIPTION
662
662
  register new Apple Devices to use for internal distribution
663
663
  ```
664
664
 
665
- _See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/device/create.ts)_
665
+ _See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/device/create.ts)_
666
666
 
667
667
  ## `eas device:delete`
668
668
 
@@ -682,7 +682,7 @@ DESCRIPTION
682
682
  remove a registered device from your account
683
683
  ```
684
684
 
685
- _See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/device/delete.ts)_
685
+ _See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/device/delete.ts)_
686
686
 
687
687
  ## `eas device:list`
688
688
 
@@ -703,7 +703,7 @@ DESCRIPTION
703
703
  list all registered devices for your account
704
704
  ```
705
705
 
706
- _See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/device/list.ts)_
706
+ _See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/device/list.ts)_
707
707
 
708
708
  ## `eas device:view [UDID]`
709
709
 
@@ -717,7 +717,7 @@ DESCRIPTION
717
717
  view a device for your project
718
718
  ```
719
719
 
720
- _See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/device/view.ts)_
720
+ _See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/device/view.ts)_
721
721
 
722
722
  ## `eas diagnostics`
723
723
 
@@ -731,7 +731,7 @@ DESCRIPTION
731
731
  display environment info
732
732
  ```
733
733
 
734
- _See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/diagnostics.ts)_
734
+ _See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/diagnostics.ts)_
735
735
 
736
736
  ## `eas help [COMMAND]`
737
737
 
@@ -818,7 +818,7 @@ DESCRIPTION
818
818
  generate the local store configuration from the app stores
819
819
  ```
820
820
 
821
- _See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/metadata/pull.ts)_
821
+ _See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/metadata/pull.ts)_
822
822
 
823
823
  ## `eas metadata:push`
824
824
 
@@ -835,7 +835,7 @@ DESCRIPTION
835
835
  sync the local store configuration to the app stores
836
836
  ```
837
837
 
838
- _See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/metadata/push.ts)_
838
+ _See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/metadata/push.ts)_
839
839
 
840
840
  ## `eas open`
841
841
 
@@ -849,7 +849,7 @@ DESCRIPTION
849
849
  open the project page in a web browser
850
850
  ```
851
851
 
852
- _See code: [src/commands/open.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/open.ts)_
852
+ _See code: [src/commands/open.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/open.ts)_
853
853
 
854
854
  ## `eas project:info`
855
855
 
@@ -863,7 +863,7 @@ DESCRIPTION
863
863
  information about the current project
864
864
  ```
865
865
 
866
- _See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/project/info.ts)_
866
+ _See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/project/info.ts)_
867
867
 
868
868
  ## `eas project:init`
869
869
 
@@ -885,7 +885,7 @@ ALIASES
885
885
  $ eas init
886
886
  ```
887
887
 
888
- _See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/project/init.ts)_
888
+ _See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/project/init.ts)_
889
889
 
890
890
  ## `eas secret:create`
891
891
 
@@ -908,7 +908,7 @@ DESCRIPTION
908
908
  create an environment secret on the current project or owner account
909
909
  ```
910
910
 
911
- _See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/secret/create.ts)_
911
+ _See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/secret/create.ts)_
912
912
 
913
913
  ## `eas secret:delete`
914
914
 
@@ -926,7 +926,7 @@ DESCRIPTION
926
926
  delete an environment secret by ID
927
927
  ```
928
928
 
929
- _See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/secret/delete.ts)_
929
+ _See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/secret/delete.ts)_
930
930
 
931
931
  ## `eas secret:list`
932
932
 
@@ -940,7 +940,7 @@ DESCRIPTION
940
940
  list environment secrets available for your current app
941
941
  ```
942
942
 
943
- _See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/secret/list.ts)_
943
+ _See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/secret/list.ts)_
944
944
 
945
945
  ## `eas submit`
946
946
 
@@ -970,7 +970,7 @@ ALIASES
970
970
  $ eas build:submit
971
971
  ```
972
972
 
973
- _See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/submit.ts)_
973
+ _See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/submit.ts)_
974
974
 
975
975
  ## `eas update`
976
976
 
@@ -1000,7 +1000,7 @@ DESCRIPTION
1000
1000
  publish an update group
1001
1001
  ```
1002
1002
 
1003
- _See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/update/index.ts)_
1003
+ _See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/update/index.ts)_
1004
1004
 
1005
1005
  ## `eas update:configure`
1006
1006
 
@@ -1017,7 +1017,7 @@ DESCRIPTION
1017
1017
  configure the project to support EAS Update
1018
1018
  ```
1019
1019
 
1020
- _See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/update/configure.ts)_
1020
+ _See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/update/configure.ts)_
1021
1021
 
1022
1022
  ## `eas update:delete GROUPID`
1023
1023
 
@@ -1038,7 +1038,7 @@ DESCRIPTION
1038
1038
  delete all the updates in an update group
1039
1039
  ```
1040
1040
 
1041
- _See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/update/delete.ts)_
1041
+ _See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/update/delete.ts)_
1042
1042
 
1043
1043
  ## `eas update:list`
1044
1044
 
@@ -1060,7 +1060,7 @@ DESCRIPTION
1060
1060
  view the recent updates
1061
1061
  ```
1062
1062
 
1063
- _See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/update/list.ts)_
1063
+ _See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/update/list.ts)_
1064
1064
 
1065
1065
  ## `eas update:view GROUPID`
1066
1066
 
@@ -1080,7 +1080,7 @@ DESCRIPTION
1080
1080
  update group details
1081
1081
  ```
1082
1082
 
1083
- _See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/update/view.ts)_
1083
+ _See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/update/view.ts)_
1084
1084
 
1085
1085
  ## `eas webhook:create`
1086
1086
 
@@ -1101,7 +1101,7 @@ DESCRIPTION
1101
1101
  create a webhook
1102
1102
  ```
1103
1103
 
1104
- _See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/webhook/create.ts)_
1104
+ _See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/webhook/create.ts)_
1105
1105
 
1106
1106
  ## `eas webhook:delete [ID]`
1107
1107
 
@@ -1121,7 +1121,7 @@ DESCRIPTION
1121
1121
  delete a webhook
1122
1122
  ```
1123
1123
 
1124
- _See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/webhook/delete.ts)_
1124
+ _See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/webhook/delete.ts)_
1125
1125
 
1126
1126
  ## `eas webhook:list`
1127
1127
 
@@ -1138,7 +1138,7 @@ DESCRIPTION
1138
1138
  list webhooks
1139
1139
  ```
1140
1140
 
1141
- _See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/webhook/list.ts)_
1141
+ _See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/webhook/list.ts)_
1142
1142
 
1143
1143
  ## `eas webhook:update`
1144
1144
 
@@ -1160,7 +1160,7 @@ DESCRIPTION
1160
1160
  update a webhook
1161
1161
  ```
1162
1162
 
1163
- _See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/webhook/update.ts)_
1163
+ _See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/webhook/update.ts)_
1164
1164
 
1165
1165
  ## `eas webhook:view ID`
1166
1166
 
@@ -1177,7 +1177,7 @@ DESCRIPTION
1177
1177
  view a webhook
1178
1178
  ```
1179
1179
 
1180
- _See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v2.3.0/packages/eas-cli/src/commands/webhook/view.ts)_
1180
+ _See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v2.4.1/packages/eas-cli/src/commands/webhook/view.ts)_
1181
1181
 
1182
1182
  ## `eas whoami`
1183
1183
 
@@ -0,0 +1,15 @@
1
+ import { JSONValue } from '@expo/json-file';
2
+ export declare class ApiV2Error extends Error {
3
+ readonly name = "ApiV2Error";
4
+ readonly expoApiV2ErrorCode: string;
5
+ readonly expoApiV2ErrorDetails?: JSONValue;
6
+ readonly expoApiV2ErrorServerStack?: string;
7
+ readonly expoApiV2ErrorMetadata?: object;
8
+ constructor(response: {
9
+ message: string;
10
+ code: string;
11
+ stack?: string;
12
+ details?: JSONValue;
13
+ metadata?: object;
14
+ });
15
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApiV2Error = void 0;
4
+ class ApiV2Error extends Error {
5
+ constructor(response) {
6
+ super(response.message);
7
+ this.name = 'ApiV2Error';
8
+ this.expoApiV2ErrorCode = response.code;
9
+ this.expoApiV2ErrorDetails = response.details;
10
+ this.expoApiV2ErrorServerStack = response.stack;
11
+ this.expoApiV2ErrorMetadata = response.metadata;
12
+ }
13
+ }
14
+ exports.ApiV2Error = ApiV2Error;
package/build/api.d.ts CHANGED
@@ -1,27 +1,21 @@
1
1
  import { JSONValue } from '@expo/json-file';
2
- export declare class ApiV2Error extends Error {
3
- readonly name = "ApiV2Error";
4
- readonly expoApiV2ErrorCode: string;
5
- readonly expoApiV2ErrorDetails?: JSONValue;
6
- readonly expoApiV2ErrorServerStack?: string;
7
- readonly expoApiV2ErrorMetadata?: object;
8
- constructor(response: {
9
- message: string;
10
- code: string;
11
- stack?: string;
12
- details?: JSONValue;
13
- metadata?: object;
14
- });
15
- }
16
2
  interface RequestOptions {
17
3
  body: JSONValue;
18
4
  }
19
- export declare const api: {
5
+ export declare class ApiV2Client {
6
+ private readonly authInfo;
7
+ constructor(authInfo: {
8
+ accessToken: string | null;
9
+ sessionSecret: string | null;
10
+ });
20
11
  putAsync(path: string, options: RequestOptions): Promise<any>;
21
12
  postAsync(path: string, options: RequestOptions): Promise<any>;
22
13
  deleteAsync(path: string): Promise<any>;
23
14
  getAsync(path: string): Promise<any>;
24
- };
15
+ private getAuthHeaders;
16
+ private requestAsync;
17
+ private static handleApiErrorAsync;
18
+ }
25
19
  export declare function getExpoApiBaseUrl(): string;
26
20
  export declare function getExpoWebsiteBaseUrl(): string;
27
21
  export declare function getEASUpdateURL(projectId: string): string;
package/build/api.js CHANGED
@@ -1,78 +1,71 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getEASUpdateURL = exports.getExpoWebsiteBaseUrl = exports.getExpoApiBaseUrl = exports.api = exports.ApiV2Error = void 0;
3
+ exports.getEASUpdateURL = exports.getExpoWebsiteBaseUrl = exports.getExpoApiBaseUrl = exports.ApiV2Client = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const ApiV2Error_1 = require("./ApiV2Error");
5
6
  const fetch_1 = tslib_1.__importStar(require("./fetch"));
6
- const sessionStorage_1 = require("./user/sessionStorage");
7
- class ApiV2Error extends Error {
8
- constructor(response) {
9
- super(response.message);
10
- this.name = 'ApiV2Error';
11
- this.expoApiV2ErrorCode = response.code;
12
- this.expoApiV2ErrorDetails = response.details;
13
- this.expoApiV2ErrorServerStack = response.stack;
14
- this.expoApiV2ErrorMetadata = response.metadata;
7
+ class ApiV2Client {
8
+ constructor(authInfo) {
9
+ this.authInfo = authInfo;
15
10
  }
16
- }
17
- exports.ApiV2Error = ApiV2Error;
18
- exports.api = {
19
11
  async putAsync(path, options) {
20
- return await requestAsync(path, { method: 'PUT', body: JSON.stringify(options.body) });
21
- },
12
+ return await this.requestAsync(path, { method: 'PUT', body: JSON.stringify(options.body) });
13
+ }
22
14
  async postAsync(path, options) {
23
- return await requestAsync(path, { method: 'POST', body: JSON.stringify(options.body) });
24
- },
15
+ return await this.requestAsync(path, { method: 'POST', body: JSON.stringify(options.body) });
16
+ }
25
17
  async deleteAsync(path) {
26
- return await requestAsync(path, { method: 'DELETE' });
27
- },
18
+ return await this.requestAsync(path, { method: 'DELETE' });
19
+ }
28
20
  async getAsync(path) {
29
- return await requestAsync(path, { method: 'GET' });
30
- },
31
- };
32
- async function requestAsync(path, options) {
33
- try {
34
- const response = await (0, fetch_1.default)(`${getExpoApiBaseUrl()}/v2/${path}`, {
35
- ...options,
36
- headers: {
37
- 'Content-Type': 'application/json',
38
- ...getAuthHeaders(),
39
- },
40
- });
41
- return await response.json();
42
- }
43
- catch (err) {
44
- await handleApiErrorAsync(err);
21
+ return await this.requestAsync(path, { method: 'GET' });
45
22
  }
46
- }
47
- async function handleApiErrorAsync(err) {
48
- var _a;
49
- if (err instanceof fetch_1.RequestError) {
50
- let result;
51
- try {
52
- result = (await err.response.json());
23
+ getAuthHeaders() {
24
+ const token = this.authInfo.accessToken;
25
+ if (token) {
26
+ return { authorization: `Bearer ${token}` };
53
27
  }
54
- catch {
55
- throw new Error(`Malformed api response: ${await err.response.text()}`);
56
- }
57
- if ((_a = result.errors) === null || _a === void 0 ? void 0 : _a.length) {
58
- throw new ApiV2Error(result.errors[0]);
28
+ const sessionSecret = this.authInfo.sessionSecret;
29
+ if (sessionSecret) {
30
+ return { 'expo-session': sessionSecret };
59
31
  }
32
+ return {};
60
33
  }
61
- else {
62
- throw err;
63
- }
64
- }
65
- function getAuthHeaders() {
66
- const token = (0, sessionStorage_1.getAccessToken)();
67
- if (token) {
68
- return { authorization: `Bearer ${token}` };
34
+ async requestAsync(path, options) {
35
+ try {
36
+ const response = await (0, fetch_1.default)(`${getExpoApiBaseUrl()}/v2/${path}`, {
37
+ ...options,
38
+ headers: {
39
+ 'Content-Type': 'application/json',
40
+ ...this.getAuthHeaders(),
41
+ },
42
+ });
43
+ return await response.json();
44
+ }
45
+ catch (err) {
46
+ await ApiV2Client.handleApiErrorAsync(err);
47
+ }
69
48
  }
70
- const sessionSecret = (0, sessionStorage_1.getSessionSecret)();
71
- if (sessionSecret) {
72
- return { 'expo-session': sessionSecret };
49
+ static async handleApiErrorAsync(err) {
50
+ var _a;
51
+ if (err instanceof fetch_1.RequestError) {
52
+ let result;
53
+ try {
54
+ result = (await err.response.json());
55
+ }
56
+ catch {
57
+ throw new Error(`Malformed api response: ${await err.response.text()}`);
58
+ }
59
+ if ((_a = result.errors) === null || _a === void 0 ? void 0 : _a.length) {
60
+ throw new ApiV2Error_1.ApiV2Error(result.errors[0]);
61
+ }
62
+ }
63
+ else {
64
+ throw err;
65
+ }
73
66
  }
74
- return {};
75
67
  }
68
+ exports.ApiV2Client = ApiV2Client;
76
69
  function getExpoApiBaseUrl() {
77
70
  if (process.env.EXPO_STAGING) {
78
71
  return `https://staging-api.expo.dev`;
@@ -1,13 +1,14 @@
1
+ import { ExpoGraphqlClient } from '../commandUtils/context/contextUtils/createGraphqlClient';
1
2
  import { PaginatedQueryOptions } from '../commandUtils/pagination';
2
3
  import { UpdateBranchFragment } from '../graphql/generated';
3
4
  export declare const BRANCHES_LIMIT = 50;
4
- export declare function selectBranchOnAppAsync({ projectId, promptTitle, displayTextForListItem, paginatedQueryOptions, }: {
5
+ export declare function selectBranchOnAppAsync(graphqlClient: ExpoGraphqlClient, { projectId, promptTitle, displayTextForListItem, paginatedQueryOptions, }: {
5
6
  projectId: string;
6
7
  displayTextForListItem: (queryItem: UpdateBranchFragment) => string;
7
8
  promptTitle: string;
8
9
  paginatedQueryOptions: PaginatedQueryOptions;
9
10
  }): Promise<UpdateBranchFragment>;
10
- export declare function listAndRenderBranchesOnAppAsync({ projectId, paginatedQueryOptions, }: {
11
+ export declare function listAndRenderBranchesOnAppAsync(graphqlClient: ExpoGraphqlClient, { projectId, paginatedQueryOptions, }: {
11
12
  projectId: string;
12
13
  paginatedQueryOptions: PaginatedQueryOptions;
13
14
  }): Promise<void>;