@hot-updater/console 1.2.0-rc.26 → 1.2.0-rc.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/{-native-builds-search-OlRj4Jz0.js → -native-builds-search-7blX2yQW.js} +1 -1
- package/.output/public/assets/BundleIdDisplay-B0gAH01c.js +1 -0
- package/.output/public/assets/CompositeItem-Dy4xgOMg.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-DUqlpHCp.js → ConsoleFeatureUnavailable-cy_snb33.js} +1 -1
- package/.output/public/assets/{EventDetails-DZsRlDHk.js → EventDetails-sxag8Hfc.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-MoZMmTeP.js → HashValueDisplay-DMweha_0.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-2bTrjXln.js → InsightsPageHeader-D5TJspVe.js} +1 -1
- package/.output/public/assets/IosInstall-B5NspihF.js +1 -0
- package/.output/public/assets/NativeBuildsNav-CjOOlbEu.js +1 -0
- package/.output/public/assets/{NotFoundPage-Ckb5GMhh.js → NotFoundPage-DDOJarFa.js} +1 -1
- package/.output/public/assets/{PlatformIcon-CJ69KopR.js → PlatformIcon-BBvlg6JY.js} +1 -1
- package/.output/public/assets/RelativeTime-CY1dKZpv.js +1 -0
- package/.output/public/assets/{RolloutPercentageBadge-G6qt8rVb.js → RolloutPercentageBadge-BHgHkBGB.js} +1 -1
- package/.output/public/assets/RowReason-BMx_vclu.js +1 -0
- package/.output/public/assets/SandboxBadge-irEkMf1P.js +1 -0
- package/.output/public/assets/TargetDisplay-DB8D019f.js +1 -0
- package/.output/public/assets/{alert-dialog-DiRLrFVe.js → alert-dialog-CLC_h1fL.js} +1 -1
- package/.output/public/assets/api-DLryz9hA.js +1 -0
- package/.output/public/assets/api-keys-Cd-aNt-v.js +1 -0
- package/.output/public/assets/api-keys-D3tAc4Uu.js +1 -0
- package/.output/public/assets/arrow-left-DQjHJAnT.js +1 -0
- package/.output/public/assets/arrow-right-CXp_K3xK.js +1 -0
- package/.output/public/assets/arrow-up-right-BFafIOrq.js +1 -0
- package/.output/public/assets/{badge-D0NFvUY5.js → badge-DJMW4YVM.js} +1 -1
- package/.output/public/assets/card-C4sBAMU-.js +1 -0
- package/.output/public/assets/check-CqWNyG93.js +1 -0
- package/.output/public/assets/chevron-right-DNbYTBX1.js +1 -0
- package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-BCkZpskJ.js} +1 -1
- package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-DZrZK5gR.js} +1 -1
- package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-BO5V64P3.js} +1 -1
- package/.output/public/assets/{copy-DsuLj3oj.js → copy-CH1__JAW.js} +1 -1
- package/.output/public/assets/dialog-tCTZmAo8.js +1 -0
- package/.output/public/assets/{dist-Bf1BPKMs.js → dist-Bw_uSBJn.js} +1 -1
- package/.output/public/assets/empty-DsbLxQ1w.js +1 -0
- package/.output/public/assets/field-DL4OXTJ7.js +1 -0
- package/.output/public/assets/git-branch-ByZMEBxZ.js +1 -0
- package/.output/public/assets/history-wYnPoVmT.js +1 -0
- package/.output/public/assets/index-CAnjb7M2.js +10 -0
- package/.output/public/assets/{input-group-D_NfhUbX.js → input-group-B7jx0icS.js} +1 -1
- package/.output/public/assets/insights-DIs4nJI9.js +2 -0
- package/.output/public/assets/insights-DTF7C4jb.js +42 -0
- package/.output/public/assets/insights-api-B6Gj74n5.js +1 -0
- package/.output/public/assets/insights-bUk3ChoU.js +1 -0
- package/.output/public/assets/{insights-search-CYPrQVUC.js → insights-search-TfRz5kGG.js} +1 -1
- package/.output/public/assets/insights-usage-rpc-B4V-Qqo4.js +1 -0
- package/.output/public/assets/insights_.distribution-BPl5oRt4.js +2 -0
- package/.output/public/assets/{insights_.distribution-_dZi1_ay.js → insights_.distribution-BqfzAuAf.js} +1 -1
- package/.output/public/assets/insights_.distribution-BqtmnGTt.js +1 -0
- package/.output/public/assets/installations-6U8c_03X.js +1 -0
- package/.output/public/assets/{installations-Y_7QW_p8.js → installations-BU65zztK.js} +1 -1
- package/.output/public/assets/installations-D3MbzcFb.js +2 -0
- package/.output/public/assets/{key-round-DzBe6DHr.js → key-round-B-P_hhUB.js} +1 -1
- package/.output/public/assets/{link-DTEyW70e.js → link-CN3iHC4A.js} +2 -2
- package/.output/public/assets/{list-B6GeoQ_b.js → list-fFsS8Wxe.js} +1 -1
- package/.output/public/assets/loader-circle-GWIgH0fo.js +1 -0
- package/.output/public/assets/native-builds-BdzfAFnF.js +1 -0
- package/.output/public/assets/native-builds-CWwvuOXr.js +2 -0
- package/.output/public/assets/native-builds-Eh72Vr2G.js +1 -0
- package/.output/public/assets/native-builds_._buildId-33ksAlnZ.js +1 -0
- package/.output/public/assets/native-builds_._buildId-BVA5GnZP.js +2 -0
- package/.output/public/assets/native-builds_.devices-CElovmwq.js +1 -0
- package/.output/public/assets/native-builds_.devices-DWtcOVYO.js +2 -0
- package/.output/public/assets/{package-ytYrywZH.js → package-CXSDZsME.js} +1 -1
- package/.output/public/assets/plus-Cx-yFNd9.js +1 -0
- package/.output/public/assets/preload-helper-CRQjUQaZ.js +1 -0
- package/.output/public/assets/{refresh-cw-C-tvoCcE.js → refresh-cw-BgiOaFX3.js} +1 -1
- package/.output/public/assets/{relativeTime-DvyxGIsm.js → relativeTime-CBmDq8wh.js} +1 -1
- package/.output/public/assets/remote-config-B3oq9qR0.js +1 -0
- package/.output/public/assets/remote-config-CGbqsPh_.js +6 -0
- package/.output/public/assets/remote-config-D1OkfQKt.js +1 -0
- package/.output/public/assets/{rotate-cw-Clk5xTeE.js → rotate-cw-C1v7YuN7.js} +1 -1
- package/.output/public/assets/{routes-gQXSzO_n.js → routes-BTG3rg0l.js} +2 -2
- package/.output/public/assets/routes-CVbPjRKo.js +1 -0
- package/.output/public/assets/search-DiOSjaYL.js +1 -0
- package/.output/public/assets/select-CA8r-UUe.js +1 -0
- package/.output/public/assets/send-BgXZNiEA.js +1 -0
- package/.output/public/assets/{sidebar-Di9SN47G.js → sidebar-yC7KdImc.js} +1 -1
- package/.output/public/assets/smartphone-CxP0GGT6.js +1 -0
- package/.output/public/assets/styles-B0kzy3kp.css +2 -0
- package/.output/public/assets/switch-BTHWmKQ5.js +1 -0
- package/.output/public/assets/table-CwF7yxj4.js +1 -0
- package/.output/public/assets/tabs-CHNnCyvw.js +1 -0
- package/.output/public/assets/trash-2-CYISg7ZF.js +1 -0
- package/.output/public/assets/{undo-2-Bt0YXG26.js → undo-2-Bod3vw7x.js} +1 -1
- package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-lAmUsXcc.js} +1 -1
- package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-w3qYaU2L.js} +1 -1
- package/.output/server/{__23tanstack-start-server-fn-resolver-z8rr63xV.mjs → __23tanstack-start-server-fn-resolver-BFiPs5uv.mjs} +85 -49
- package/.output/server/_libs/@base-ui/react+[...].mjs +1488 -183
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_libs/lucide-react.mjs +22 -2
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/react-redux+[...].mjs +1 -1
- package/.output/server/_libs/recharts+[...].mjs +1 -1
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tanstack__react-query.mjs +1 -1
- package/.output/server/_ssr/{-native-builds-search-M6t7EIt4.mjs → -native-builds-search-Mm_AZoRU.mjs} +8 -2
- package/.output/server/_ssr/{BundleIdDisplay-DRnAzJse.mjs → BundleIdDisplay-BSBR5eJ3.mjs} +3 -3
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-BEU7r4aH.mjs → ConsoleFeatureUnavailable-DcZ4JBVq.mjs} +8 -8
- package/.output/server/_ssr/CopyableText-DgNEsByt.mjs +33 -0
- package/.output/server/_ssr/{EventDetails-CjT6o2sJ.mjs → EventDetails-CUHZuwei.mjs} +9 -9
- package/.output/server/_ssr/{HashValueDisplay-Bkim8r3-.mjs → HashValueDisplay-B9ORaCcP.mjs} +3 -3
- package/.output/server/_ssr/{InsightsPageHeader-Ctw4N3SZ.mjs → InsightsPageHeader-C0bJqC-n.mjs} +9 -9
- package/.output/server/_ssr/IosInstall-C5Y5gnDY.mjs +574 -0
- package/.output/server/_ssr/NativeBuildsNav-hFiyBaFW.mjs +38 -0
- package/.output/server/_ssr/{NotFoundPage-Bh3gFsR6.mjs → NotFoundPage-D4xRjmIA.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CMLs3Wez.mjs → PlatformIcon-BpGOEXjU.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-DjdCU0J7.mjs → RelativeTime-DnvxB666.mjs} +20 -9
- package/.output/server/_ssr/{RolloutPercentageBadge-BiIHw-V2.mjs → RolloutPercentageBadge-NBnIOzY9.mjs} +4 -4
- package/.output/server/_ssr/RowReason-B_jZN48d.mjs +169 -0
- package/.output/server/_ssr/{StoreSubmission-Cv59joPo.mjs → SandboxBadge-CFtTG1ZJ.mjs} +17 -17
- package/.output/server/_ssr/{TargetDisplay-D1PKOupt.mjs → TargetDisplay-0sb03v_6.mjs} +7 -33
- package/.output/server/_ssr/{alert-dialog-BOKQTpmP.mjs → alert-dialog-SLr1Q_AI.mjs} +2 -2
- package/.output/server/_ssr/{api-CDvGGB1B.mjs → api-CkgOQzSb.mjs} +74 -17
- package/.output/server/_ssr/{api-keys-DvbSgd9L.mjs → api-keys-BP7NJtoX.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-NYJ0VaDB.mjs → api-keys-BcSzq0TA.mjs} +11 -11
- package/.output/server/_ssr/{api-keys-rpc-B0MrcD15.mjs → api-keys-rpc-IWPOq5vn.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-CIB9gcI7.mjs → api-rpc-cNJTB3v4.mjs} +48 -32
- package/.output/server/_ssr/{auth-rpc-DsIffEXe.mjs → auth-rpc-oaBbtxSP.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-Dt9XHLs_.mjs → auth.server-WQw9JjMm.mjs} +587 -19
- package/.output/server/_ssr/{badge-KS3YftV5.mjs → badge-n3c0OTBQ.mjs} +2 -2
- package/.output/server/_ssr/{bundleActivity-BGVvqWx7.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
- package/.output/server/_ssr/{card-CG5GqIoA.mjs → card-CYgCcRUd.mjs} +2 -2
- package/.output/server/_ssr/{config.server-CJs-9Zd_.mjs → config.server-R3KQbcML.mjs} +4 -4
- package/.output/server/_ssr/{console-access-ClmTMpo_.mjs → console-access-BLVi82IN.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-CpMYF0Pb.mjs → console-features-api-B2JvJOlE.mjs} +4 -4
- package/.output/server/_ssr/{console-features-rpc-D-dr-WF8.mjs → console-features-rpc-LAxQoSNw.mjs} +3 -3
- package/.output/server/_ssr/{console-features-CRP-pfov.mjs → console-features-xaGDhRC9.mjs} +1 -1
- package/.output/server/_ssr/deviceProfileToken-CwWb1lPq.mjs +82 -0
- package/.output/server/_ssr/{dialog-DvHMJkq7.mjs → dialog-eru_h5oK.mjs} +2 -2
- package/.output/server/_ssr/{downloadBundle-BX8ODCZT.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
- package/.output/server/_ssr/{empty-Bx8DnyWN.mjs → empty-Bu4qodCx.mjs} +3 -3
- package/.output/server/_ssr/{failureReports-C_CmBF4x.mjs → failureReports-BA2eg11O.mjs} +3 -3
- package/.output/server/_ssr/{field-BVI4lxoz.mjs → field-DA5lwO5U.mjs} +3 -3
- package/.output/server/_ssr/foldedPage-CqpVk31Q.mjs +176 -0
- package/.output/server/_ssr/{getBundleChildren-BJTufthT.mjs → getBundleChildren-CdqFonhl.mjs} +1 -1
- package/.output/server/_ssr/{input-group-CpJwooTk.mjs → input-group-VV5E3q78.mjs} +2 -2
- package/.output/server/_ssr/{insights-b1hq1O0p.mjs → insights-BJIt1xuT.mjs} +2 -2
- package/.output/server/_ssr/{insights-B-VtObqr.mjs → insights-C23mopzv.mjs} +5 -5
- package/.output/server/_ssr/{insights-DxlHHXPK.mjs → insights-Ci82qdkq.mjs} +27 -27
- package/.output/server/_ssr/{insights-api-8PWQ7PiR.mjs → insights-api-BwXMKUSe.mjs} +5 -5
- package/.output/server/_ssr/{insights-errors-Bz3sWNZm.mjs → insights-errors-CXHg1lLV.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-DNQ9qVVf.mjs → insights-failures-7zH97WOO.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-pY2KV9HI.mjs → insights-failures-rpc-BuZ-jnby.mjs} +10 -10
- package/.output/server/_ssr/{insights-recovery-DOkpqnQ8.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-CejmWL_y.mjs → insights-recovery-rpc-DrXSy9aA.mjs} +6 -6
- package/.output/server/_ssr/{insights-rpc-D_7d_AAJ.mjs → insights-rpc-DyrIZg3a.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-CoMkZvRt.mjs → insights-search-CNkNB-aa.mjs} +3 -3
- package/.output/server/_ssr/{insights-usage-4KDIN3Kg.mjs → insights-usage-h8fipPTv.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-CrGZDHzO.mjs → insights-usage-rpc-C7UC1lom.mjs} +6 -6
- package/.output/server/_ssr/{insights-usage-rpc-B1XSuara.mjs → insights-usage-rpc-cTgmD-Ej.mjs} +5 -5
- package/.output/server/_ssr/{insightsUsage-DmQdJZqT.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-EOOOOTb6.mjs → insights_.distribution-BauOpBTE.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-CpqnDZNG.mjs → insights_.distribution-CIY_IGmh.mjs} +16 -16
- package/.output/server/_ssr/{insights_.distribution-B9sPDvG4.mjs → insights_.distribution-wfFKEv-Z.mjs} +5 -5
- package/.output/server/_ssr/{installations-BOI_y7Ma.mjs → installations-Ba3YVrAf.mjs} +13 -13
- package/.output/server/_ssr/{installations-dWlOOS7Y.mjs → installations-VzacOKHp.mjs} +2 -2
- package/.output/server/_ssr/{installations-D0_0hzdi.mjs → installations-jGW7nvEV.mjs} +4 -4
- package/.output/server/_ssr/ios-devices-rpc-Bhn7VVIh.mjs +138 -0
- package/.output/server/_ssr/iosDeviceProfile-_XT8TpgZ.mjs +176 -0
- package/.output/server/_ssr/iosDevices-Bc27J72d.mjs +129 -0
- package/.output/server/_ssr/listReleases-DYYA5alS.mjs +94 -0
- package/.output/server/_ssr/{native-builds-OUdRtp6m.mjs → native-builds-BXBkklfA.mjs} +28 -6
- package/.output/server/_ssr/{native-builds-Bx_az6YZ.mjs → native-builds-DZFJGcHy.mjs} +3 -3
- package/.output/server/_ssr/{native-builds-C721Rw23.mjs → native-builds-DiNkKHly.mjs} +221 -86
- package/.output/server/_ssr/{native-builds_._buildId-ubi48Sfs.mjs → native-builds_._buildId-CuM1PsT6.mjs} +108 -294
- package/.output/server/_ssr/{native-builds_._buildId-YItxv8j9.mjs → native-builds_._buildId-D0n4QZY6.mjs} +3 -3
- package/.output/server/_ssr/native-builds_.devices-D0JJlX8E.mjs +689 -0
- package/.output/server/_ssr/native-builds_.devices-DiM2FdcW.mjs +10 -0
- package/.output/server/_ssr/{nativeBuildDownloadLink-C0I8eLpS.mjs → nativeBuildDownloadLink-CvvWuhh0.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildInstall-CxG8K8TL.mjs → nativeBuildInstall-BqcVHBaD.mjs} +54 -7
- package/.output/server/_ssr/{nativeBuilds-CRLmvFaO.mjs → nativeBuilds-Cub0EUGN.mjs} +135 -13
- package/.output/server/_ssr/{publicConsoleBase-DvHYxDaG.mjs → publicConsoleBase-f67NLLXZ.mjs} +11 -3
- package/.output/server/_ssr/{release-adoption-C7sUFDwa.mjs → release-adoption-DeICczY7.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-DcZAYRWJ.mjs → release-adoption-rpc-Dm-5yAJG.mjs} +8 -8
- package/.output/server/_ssr/{releaseAdoption-D6ScSu-W.mjs → releaseAdoption-kHZo8P90.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-gKqDKMxk.mjs → remote-config-D1BhIBKu.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-DOcSXzxG.mjs → remote-config-D7RruPiO.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-BZ_vGV97.mjs → remote-config-ZFm-l4Gi.mjs} +20 -20
- package/.output/server/_ssr/{remote-config-rpc-CVPd3V69.mjs → remote-config-rpc-C7AZy37o.mjs} +3 -3
- package/.output/server/_ssr/{router-Bcyej4cr.mjs → router-BGkGFMsT.mjs} +72 -75
- package/.output/server/_ssr/{routes-B10xsCh4.mjs → routes-CJJxz-Ak.mjs} +304 -230
- package/.output/server/_ssr/{routes-ddBRVSju.mjs → routes-CiJ2dhL9.mjs} +14 -13
- package/.output/server/_ssr/{runtime.server-wcHT2Cop.mjs → runtime.server-CkSbWaZm.mjs} +2 -2
- package/.output/server/_ssr/{schema-migration-rpc-iWZzLv70.mjs → schema-migration-rpc-D4YlwvGH.mjs} +3 -3
- package/.output/server/_ssr/{select-i4WT0c9r.mjs → select-BB8GE7OZ.mjs} +3 -3
- package/.output/server/_ssr/{server-CMgMPrDx.mjs → server-DAHTchcr.mjs} +5 -5
- package/.output/server/_ssr/{sidebar-mIQgB0iy.mjs → sidebar-CsKVgZHa.mjs} +3 -3
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-By4wHYjG.mjs → start-D3noqqOK.mjs} +1 -1
- package/.output/server/_ssr/{switch-DR8EAh5C.mjs → switch-BvvmP7Y3.mjs} +3 -3
- package/.output/server/_ssr/{table-DXmK6G7A.mjs → table-WKKzprFn.mjs} +2 -2
- package/.output/server/_ssr/{tabs-DAfypcYe.mjs → tabs-BJ-4SgmC.mjs} +4 -4
- package/.output/server/_ssr/{updateFailures-DNiv3S_y.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
- package/.output/server/_tanstack-start-manifest_v-CSUJeG5D.mjs +219 -0
- package/.output/server/index.mjs +436 -366
- package/lib/index.d.mts +9 -0
- package/package.json +7 -30
- package/src/components/DataTable.tsx +21 -2
- package/src/components/FoldedRows.tsx +201 -0
- package/src/components/RowReason.tsx +56 -0
- package/src/components/features/native-builds/InstallCard.tsx +1 -1
- package/src/components/features/native-builds/IosDevicesPage.tsx +892 -0
- package/src/components/features/native-builds/IosInstall.tsx +292 -62
- package/src/components/features/native-builds/IpaDevicesCard.tsx +107 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +7 -0
- package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +2 -0
- package/src/components/features/native-builds/NativeBuildsTable.tsx +214 -30
- package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
- package/src/index.ts +9 -0
- package/src/lib/api-rpc.ts +56 -29
- package/src/lib/api.ts +65 -2
- package/src/lib/ios-devices-api.ts +110 -0
- package/src/lib/ios-devices-rpc.ts +174 -0
- package/src/lib/native-builds.ts +72 -7
- package/src/lib/server/console-runtime.server.ts +9 -2
- package/src/lib/server/deviceProfileToken.ts +187 -0
- package/src/lib/server/foldedPage.ts +360 -0
- package/src/lib/server/iosDeviceProfile.ts +230 -0
- package/src/lib/server/iosDevices.ts +223 -0
- package/src/lib/server/listReleases.ts +101 -62
- package/src/lib/server/nativeBuildInstall.ts +138 -7
- package/src/lib/server/nativeBuilds.ts +221 -26
- package/src/routeTree.gen.ts +64 -67
- package/src/routes/-native-builds-search.ts +20 -0
- package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
- package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
- package/src/routes/index.tsx +444 -299
- package/src/routes/native-builds_.devices.tsx +21 -0
- package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +0 -1
- package/.output/public/assets/RelativeTime-TCmpOVPg.js +0 -1
- package/.output/public/assets/StoreSubmission-CqSg880n.js +0 -1
- package/.output/public/assets/TargetDisplay-DwOaMOiI.js +0 -1
- package/.output/public/assets/api-LQJH44FU.js +0 -1
- package/.output/public/assets/api-keys-4w2-ofii.js +0 -1
- package/.output/public/assets/api-keys-uFY8FsN9.js +0 -1
- package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
- package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
- package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
- package/.output/public/assets/card-ulgg5xHn.js +0 -1
- package/.output/public/assets/check-CXVR3s3X.js +0 -1
- package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
- package/.output/public/assets/dialog-CLIaC82_.js +0 -1
- package/.output/public/assets/empty-Bhlj8PEo.js +0 -1
- package/.output/public/assets/field-q4sTYzNU.js +0 -1
- package/.output/public/assets/history-DakJoeSM.js +0 -1
- package/.output/public/assets/index-CJclLsbG.js +0 -10
- package/.output/public/assets/insights-0TUItqwh.js +0 -1
- package/.output/public/assets/insights-B75txQ_F.js +0 -42
- package/.output/public/assets/insights-C17Z0whn.js +0 -2
- package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
- package/.output/public/assets/insights-usage-rpc-BbFllvi_.js +0 -1
- package/.output/public/assets/insights_.distribution-AZcfvK7x.js +0 -1
- package/.output/public/assets/insights_.distribution-gDqNqI5E.js +0 -2
- package/.output/public/assets/installations-Ap2G2tDs.js +0 -1
- package/.output/public/assets/installations-D0g3xvw8.js +0 -2
- package/.output/public/assets/native-builds-Ba6cEZfm.js +0 -2
- package/.output/public/assets/native-builds-C3_-21we.js +0 -1
- package/.output/public/assets/native-builds_._buildId-BnP31v32.js +0 -1
- package/.output/public/assets/native-builds_._buildId-Cp9LJiMP.js +0 -2
- package/.output/public/assets/plus-BVhOauU3.js +0 -1
- package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
- package/.output/public/assets/remote-config-BRdy8QFR.js +0 -1
- package/.output/public/assets/remote-config-C9p5Pcdj.js +0 -6
- package/.output/public/assets/remote-config-CIAEArwq.js +0 -1
- package/.output/public/assets/routes-BLTF7nwe.js +0 -1
- package/.output/public/assets/search-nnvSOTEB.js +0 -1
- package/.output/public/assets/select-CBIU0_M1.js +0 -1
- package/.output/public/assets/smartphone-r0rRdPas.js +0 -1
- package/.output/public/assets/styles-BdlrKlVs.css +0 -2
- package/.output/public/assets/switch-CP6GsHmN.js +0 -1
- package/.output/public/assets/table-TUtVz-2l.js +0 -1
- package/.output/public/assets/tabs-CP3CSmtI.js +0 -1
- package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
- package/.output/server/_ssr/listReleases-CQEceg8j.mjs +0 -79
- package/.output/server/_ssr/nativeBuildDevice-DJUAzAIj.mjs +0 -210
- package/.output/server/_tanstack-start-manifest_v-8M7ggCuB.mjs +0 -192
- package/src/lib/server/nativeBuildDevice.ts +0 -253
- package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +0 -17
- package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +0 -17
- package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +0 -17
- /package/.output/public/assets/{uuidv7-cI6C63Fm.js → uuidv7-CVJ09bBG.js} +0 -0
- /package/.output/public/assets/{valueToPercent-B6X9rUJM.js → valueToPercent-Db73Kirz.js} +0 -0
|
@@ -8,7 +8,7 @@ import { n as projectCompiledCatalog, r as projectCompiledRollbackCatalog, t as
|
|
|
8
8
|
import { t as isRemoteDatabase } from "./databaseConfig-XAvDetmn.mjs";
|
|
9
9
|
import { n as defineTable, t as defineAggregate } from "./schema-3oDJJFWa.mjs";
|
|
10
10
|
import { r as rangesIntersect } from "../_libs/verkit.mjs";
|
|
11
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/auth.server-
|
|
11
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/auth.server-WQw9JjMm.js
|
|
12
12
|
var SHA256_FILE_HASH_RE = /^[0-9a-f]{64}$/;
|
|
13
13
|
var isContentAddressedAssetFileHash = (value) => {
|
|
14
14
|
return typeof value === "string" && SHA256_FILE_HASH_RE.test(value);
|
|
@@ -1015,7 +1015,11 @@ var channels = defineTable({
|
|
|
1015
1015
|
* `is_sandbox` is true on a sandbox build, set when it registers and never
|
|
1016
1016
|
* changed, and `sandbox_url_scheme` is the URL scheme its artifact registers,
|
|
1017
1017
|
* which its preview links open; null on any other build, and on a sandbox
|
|
1018
|
-
* build registered before the column, which registered the derived one.
|
|
1018
|
+
* build registered before the column, which registered the derived one.
|
|
1019
|
+
* `export_method` is how an `.ipa` was exported, read from its profile when
|
|
1020
|
+
* it registers and never changed; null on any other artifact, on an `.ipa`
|
|
1021
|
+
* whose profile couldn't be read, and on one registered before the column.
|
|
1022
|
+
* Boolean columns follow one rule: `is_*` for a fact about the row or
|
|
1019
1023
|
* `should_*` for an instruction to the client, never null; a unique index over
|
|
1020
1024
|
* the rows where one is true keys a derived slot, not the boolean.
|
|
1021
1025
|
*/
|
|
@@ -1102,6 +1106,11 @@ var nativeBuilds = defineTable({
|
|
|
1102
1106
|
maxLength: 255,
|
|
1103
1107
|
ascii: true,
|
|
1104
1108
|
required: false
|
|
1109
|
+
},
|
|
1110
|
+
export_method: {
|
|
1111
|
+
type: "string",
|
|
1112
|
+
maxLength: 16,
|
|
1113
|
+
required: false
|
|
1105
1114
|
}
|
|
1106
1115
|
}, {
|
|
1107
1116
|
key: ["id"],
|
|
@@ -1136,6 +1145,115 @@ var nativeBuilds = defineTable({
|
|
|
1136
1145
|
}
|
|
1137
1146
|
}
|
|
1138
1147
|
});
|
|
1148
|
+
/**
|
|
1149
|
+
* The iPhones a team asks to install ad hoc builds on. A row decides what the
|
|
1150
|
+
* CLI registers with Apple, not what an export includes: Xcode's automatic ad
|
|
1151
|
+
* hoc profile lists every device the Apple account has enabled. `status` is
|
|
1152
|
+
* `pending` until someone approves it, `approved` until a build or
|
|
1153
|
+
* `native-build devices add` registers it with Apple, then `registered`;
|
|
1154
|
+
* declining or removing one deletes its row. `udid` is the UDID in lower case.
|
|
1155
|
+
* `apple_issuer_id` is the App Store Connect issuer whose key registered it,
|
|
1156
|
+
* set once: a build signed by another account never registers these rows.
|
|
1157
|
+
* `apple_error` is Apple's refusal of the device, or why it stopped counting
|
|
1158
|
+
* it, cleared by the next success. `build_id` is the newest native build whose
|
|
1159
|
+
* .ipa the CLI checked lists it; deleting that build never touches the row.
|
|
1160
|
+
* It holds personal data: a UDID, a name, and the emails of who asked and who
|
|
1161
|
+
* approved, null for the CLI.
|
|
1162
|
+
*/
|
|
1163
|
+
var iosDevices = defineTable({
|
|
1164
|
+
id: {
|
|
1165
|
+
type: "string",
|
|
1166
|
+
maxLength: 36
|
|
1167
|
+
},
|
|
1168
|
+
udid: {
|
|
1169
|
+
type: "string",
|
|
1170
|
+
maxLength: 40,
|
|
1171
|
+
ascii: true,
|
|
1172
|
+
unique: true
|
|
1173
|
+
},
|
|
1174
|
+
name: {
|
|
1175
|
+
type: "string",
|
|
1176
|
+
maxLength: 100
|
|
1177
|
+
},
|
|
1178
|
+
status: {
|
|
1179
|
+
type: "string",
|
|
1180
|
+
maxLength: 16
|
|
1181
|
+
},
|
|
1182
|
+
requested_by: {
|
|
1183
|
+
type: "string",
|
|
1184
|
+
maxLength: 320,
|
|
1185
|
+
required: false
|
|
1186
|
+
},
|
|
1187
|
+
created_at_ms: { type: "integer" },
|
|
1188
|
+
approved_by: {
|
|
1189
|
+
type: "string",
|
|
1190
|
+
maxLength: 320,
|
|
1191
|
+
required: false
|
|
1192
|
+
},
|
|
1193
|
+
approved_at_ms: {
|
|
1194
|
+
type: "integer",
|
|
1195
|
+
required: false
|
|
1196
|
+
},
|
|
1197
|
+
registered_at_ms: {
|
|
1198
|
+
type: "integer",
|
|
1199
|
+
required: false
|
|
1200
|
+
},
|
|
1201
|
+
apple_issuer_id: {
|
|
1202
|
+
type: "string",
|
|
1203
|
+
maxLength: 64,
|
|
1204
|
+
ascii: true,
|
|
1205
|
+
required: false
|
|
1206
|
+
},
|
|
1207
|
+
apple_error: {
|
|
1208
|
+
type: "string",
|
|
1209
|
+
maxLength: 512,
|
|
1210
|
+
required: false
|
|
1211
|
+
},
|
|
1212
|
+
build_id: {
|
|
1213
|
+
type: "string",
|
|
1214
|
+
maxLength: 36,
|
|
1215
|
+
required: false
|
|
1216
|
+
}
|
|
1217
|
+
}, {
|
|
1218
|
+
key: ["id"],
|
|
1219
|
+
indexes: {
|
|
1220
|
+
byStatus: {
|
|
1221
|
+
eq: ["status"],
|
|
1222
|
+
sort: ["id"]
|
|
1223
|
+
},
|
|
1224
|
+
all: {
|
|
1225
|
+
eq: [],
|
|
1226
|
+
sort: ["id"]
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
});
|
|
1230
|
+
/**
|
|
1231
|
+
* The Apple account the iOS device registry belongs to: one row, keyed
|
|
1232
|
+
* `registry`, holding the App Store Connect issuer that first registered a
|
|
1233
|
+
* device. A build claims it before it sends Apple anything, and its key makes
|
|
1234
|
+
* the claim atomic on every store, so two builds of two accounts can't both
|
|
1235
|
+
* spend a slot; another account's build then registers nothing. Removing
|
|
1236
|
+
* devices never releases it.
|
|
1237
|
+
*/
|
|
1238
|
+
var iosDeviceAccount = defineTable({
|
|
1239
|
+
id: {
|
|
1240
|
+
type: "string",
|
|
1241
|
+
maxLength: 16,
|
|
1242
|
+
ascii: true
|
|
1243
|
+
},
|
|
1244
|
+
apple_issuer_id: {
|
|
1245
|
+
type: "string",
|
|
1246
|
+
maxLength: 64,
|
|
1247
|
+
ascii: true
|
|
1248
|
+
},
|
|
1249
|
+
claimed_at_ms: { type: "integer" }
|
|
1250
|
+
}, {
|
|
1251
|
+
key: ["id"],
|
|
1252
|
+
indexes: { all: {
|
|
1253
|
+
eq: [],
|
|
1254
|
+
sort: ["id"]
|
|
1255
|
+
} }
|
|
1256
|
+
});
|
|
1139
1257
|
/** Core's module: always installed, never a plugin. */
|
|
1140
1258
|
var coreModule = {
|
|
1141
1259
|
id: "core",
|
|
@@ -1156,7 +1274,9 @@ var coreModule = {
|
|
|
1156
1274
|
sort: []
|
|
1157
1275
|
} }
|
|
1158
1276
|
}),
|
|
1159
|
-
native_builds: nativeBuilds
|
|
1277
|
+
native_builds: nativeBuilds,
|
|
1278
|
+
ios_devices: iosDevices,
|
|
1279
|
+
ios_device_account: iosDeviceAccount
|
|
1160
1280
|
}
|
|
1161
1281
|
};
|
|
1162
1282
|
var encoder = new TextEncoder();
|
|
@@ -2823,7 +2943,7 @@ var createEngine = (database, { plugins = [], now = Date.now } = {}) => {
|
|
|
2823
2943
|
flush: () => engine.flush()
|
|
2824
2944
|
};
|
|
2825
2945
|
};
|
|
2826
|
-
var HOT_UPDATER_SERVER_VERSION = "1.2.0-rc.
|
|
2946
|
+
var HOT_UPDATER_SERVER_VERSION = "1.2.0-rc.28";
|
|
2827
2947
|
/**
|
|
2828
2948
|
* `/version` on both mounts. The admin mount also lists the ids of the
|
|
2829
2949
|
* plugins the server runs, sorted; apps never learn which plugins a server
|
|
@@ -3258,8 +3378,8 @@ var baseBundleIdsOf = (row, range, bundleId, limit) => {
|
|
|
3258
3378
|
return ids;
|
|
3259
3379
|
};
|
|
3260
3380
|
var PAGE$2 = 500;
|
|
3261
|
-
var pick$
|
|
3262
|
-
var toBundleRow = pick$
|
|
3381
|
+
var pick$2 = (fields) => (row) => Object.fromEntries(fields.map((field) => [field, row[field]]));
|
|
3382
|
+
var toBundleRow = pick$2([
|
|
3263
3383
|
"id",
|
|
3264
3384
|
"platform",
|
|
3265
3385
|
"git_commit_hash",
|
|
@@ -3268,7 +3388,7 @@ var toBundleRow = pick$1([
|
|
|
3268
3388
|
"manifest_file_hash",
|
|
3269
3389
|
"asset_base_storage_uri"
|
|
3270
3390
|
]);
|
|
3271
|
-
var toPatchRow = pick$
|
|
3391
|
+
var toPatchRow = pick$2([
|
|
3272
3392
|
"id",
|
|
3273
3393
|
"bundle_id",
|
|
3274
3394
|
"base_bundle_id",
|
|
@@ -3278,7 +3398,7 @@ var toPatchRow = pick$1([
|
|
|
3278
3398
|
"byte_size",
|
|
3279
3399
|
"order_index"
|
|
3280
3400
|
]);
|
|
3281
|
-
var toReleaseRow = pick$
|
|
3401
|
+
var toReleaseRow = pick$2([
|
|
3282
3402
|
"id",
|
|
3283
3403
|
"revision",
|
|
3284
3404
|
"scope_key",
|
|
@@ -3299,7 +3419,7 @@ var toReleaseRow = pick$1([
|
|
|
3299
3419
|
"created_at_ms",
|
|
3300
3420
|
"updated_at_ms"
|
|
3301
3421
|
]);
|
|
3302
|
-
var toCatalogRow = pick$
|
|
3422
|
+
var toCatalogRow = pick$2([
|
|
3303
3423
|
"scope_key",
|
|
3304
3424
|
"catalog_id",
|
|
3305
3425
|
"strategy",
|
|
@@ -3314,7 +3434,7 @@ var toCatalogRow = pick$1([
|
|
|
3314
3434
|
"is_tombstone",
|
|
3315
3435
|
"updated_at_ms"
|
|
3316
3436
|
]);
|
|
3317
|
-
var toChannelRow = pick$
|
|
3437
|
+
var toChannelRow = pick$2(["id", "name"]);
|
|
3318
3438
|
/** Every page of one read, in order. */
|
|
3319
3439
|
var drain = async (read) => {
|
|
3320
3440
|
const rows = [];
|
|
@@ -3327,7 +3447,15 @@ var drain = async (read) => {
|
|
|
3327
3447
|
return rows;
|
|
3328
3448
|
};
|
|
3329
3449
|
/** A keyset page's range: the keys strictly after `after`, in `order`. */
|
|
3330
|
-
|
|
3450
|
+
/** A keyset read's range on its index's order: past `after`, up to `through`. */
|
|
3451
|
+
var after = (input) => {
|
|
3452
|
+
const asc = (input.order ?? "asc") === "asc";
|
|
3453
|
+
const range = {
|
|
3454
|
+
...input.after === void 0 ? {} : asc ? { gt: input.after } : { lt: input.after },
|
|
3455
|
+
...input.through === void 0 ? {} : asc ? { lte: input.through } : { gte: input.through }
|
|
3456
|
+
};
|
|
3457
|
+
return Object.keys(range).length === 0 ? {} : { range };
|
|
3458
|
+
};
|
|
3331
3459
|
/** Core's reads, each through one declared index or key. */
|
|
3332
3460
|
var createCoreReads = (db, storage) => {
|
|
3333
3461
|
/** A bundle row's patches, exactly as many as its reference counter holds. */
|
|
@@ -3519,6 +3647,307 @@ var createCoreReads = (db, storage) => {
|
|
|
3519
3647
|
}
|
|
3520
3648
|
};
|
|
3521
3649
|
};
|
|
3650
|
+
/**
|
|
3651
|
+
* A device's UDID: 40 hex digits, or 8 and 16 joined by a hyphen. The same
|
|
3652
|
+
* rule as `normalizeIosUdid` of `@hot-updater/protocol/native-artifact`,
|
|
3653
|
+
* implemented here so the server's runtime never loads the artifact readers.
|
|
3654
|
+
*/
|
|
3655
|
+
var UDID = /^(?:[0-9a-f]{40}|[0-9a-f]{8}-[0-9a-f]{16})$/iu;
|
|
3656
|
+
/** The form the registry stores and compares a UDID in, or null for text that isn't one. */
|
|
3657
|
+
var normalizeIosUdid = (value) => {
|
|
3658
|
+
const trimmed = value.trim();
|
|
3659
|
+
return UDID.test(trimmed) ? trimmed.toLowerCase() : null;
|
|
3660
|
+
};
|
|
3661
|
+
/** `ios_devices.name`'s bound in core's schema. */
|
|
3662
|
+
var NAME_MAX_LENGTH = 100;
|
|
3663
|
+
/** `ios_devices.requested_by` and `approved_by`'s bound: an email address. */
|
|
3664
|
+
var EMAIL_MAX_LENGTH = 320;
|
|
3665
|
+
/** `ios_devices.apple_issuer_id`'s bound. */
|
|
3666
|
+
var ISSUER_MAX_LENGTH = 64;
|
|
3667
|
+
/** How many registry rows one read takes while finding its account. */
|
|
3668
|
+
var ACCOUNT_SCAN_PAGE = 200;
|
|
3669
|
+
/** The one row of `ios_device_account`. */
|
|
3670
|
+
var ACCOUNT_ROW = "registry";
|
|
3671
|
+
/** `ios_devices.apple_error`'s bound. */
|
|
3672
|
+
var ERROR_MAX_LENGTH = 512;
|
|
3673
|
+
var STATUSES = [
|
|
3674
|
+
"pending",
|
|
3675
|
+
"approved",
|
|
3676
|
+
"registered"
|
|
3677
|
+
];
|
|
3678
|
+
var OUTCOMES = [
|
|
3679
|
+
"registered",
|
|
3680
|
+
"refused",
|
|
3681
|
+
"disabled",
|
|
3682
|
+
"missing"
|
|
3683
|
+
];
|
|
3684
|
+
/** The `apple_error` of a device Apple has disabled. */
|
|
3685
|
+
var IOS_DEVICE_DISABLED_ERROR = "Disabled in the Apple account.";
|
|
3686
|
+
/** The `apple_error` of a registered device Apple no longer lists. */
|
|
3687
|
+
var IOS_DEVICE_MISSING_ERROR = "Gone from the Apple account. Approve it again to register it.";
|
|
3688
|
+
/** A device or registry request core cannot store: the caller's input. */
|
|
3689
|
+
var IosDeviceInputError = class extends TypeError {
|
|
3690
|
+
name = "IosDeviceInputError";
|
|
3691
|
+
};
|
|
3692
|
+
var pick$1 = (row) => ({
|
|
3693
|
+
id: row.id,
|
|
3694
|
+
udid: row.udid,
|
|
3695
|
+
name: row.name,
|
|
3696
|
+
status: row.status,
|
|
3697
|
+
requested_by: row.requested_by ?? null,
|
|
3698
|
+
created_at_ms: row.created_at_ms,
|
|
3699
|
+
approved_by: row.approved_by ?? null,
|
|
3700
|
+
approved_at_ms: row.approved_at_ms ?? null,
|
|
3701
|
+
registered_at_ms: row.registered_at_ms ?? null,
|
|
3702
|
+
apple_issuer_id: row.apple_issuer_id ?? null,
|
|
3703
|
+
apple_error: row.apple_error ?? null,
|
|
3704
|
+
build_id: row.build_id ?? null
|
|
3705
|
+
});
|
|
3706
|
+
var udidOf = (udid) => {
|
|
3707
|
+
const key = typeof udid === "string" ? normalizeIosUdid(udid) : null;
|
|
3708
|
+
if (key === null) throw new IosDeviceInputError("Invalid iOS device: udid must be 40 hex digits, or 8 and 16 joined by a hyphen.");
|
|
3709
|
+
return key;
|
|
3710
|
+
};
|
|
3711
|
+
var nameOf = (name) => {
|
|
3712
|
+
const trimmed = typeof name === "string" ? name.trim() : "";
|
|
3713
|
+
if (trimmed.length === 0 || trimmed.length > NAME_MAX_LENGTH) throw new IosDeviceInputError(`Invalid iOS device: name must be 1 to ${NAME_MAX_LENGTH} characters.`);
|
|
3714
|
+
return trimmed;
|
|
3715
|
+
};
|
|
3716
|
+
/** An email, lower-cased, or null for the CLI. */
|
|
3717
|
+
var personOf = (value, field) => {
|
|
3718
|
+
if (value === null) return null;
|
|
3719
|
+
const email = typeof value === "string" ? value.trim().toLowerCase() : "";
|
|
3720
|
+
if (email.length === 0 || email.length > EMAIL_MAX_LENGTH) throw new IosDeviceInputError(`Invalid iOS device: ${field} must be an email of at most ${EMAIL_MAX_LENGTH} characters, or null.`);
|
|
3721
|
+
return email;
|
|
3722
|
+
};
|
|
3723
|
+
/** Apple's words, on one line and within the column's bound. */
|
|
3724
|
+
var errorText = (text) => {
|
|
3725
|
+
const line = text.replace(/\s+/gu, " ").trim();
|
|
3726
|
+
return line.length > ERROR_MAX_LENGTH ? `${line.slice(0, 511)}…` : line;
|
|
3727
|
+
};
|
|
3728
|
+
/**
|
|
3729
|
+
* The iOS device registry: the iPhones and iPads a team asked to install ad hoc
|
|
3730
|
+
* builds on. The Console writes requests and approvals, and the CLI what Apple
|
|
3731
|
+
* said, each over the row it read.
|
|
3732
|
+
*/
|
|
3733
|
+
var createIosDeviceApi = (db, { now = Date.now } = {}) => {
|
|
3734
|
+
const findIosDevice = async (udid) => {
|
|
3735
|
+
const key = normalizeIosUdid(udid);
|
|
3736
|
+
if (key === null) return null;
|
|
3737
|
+
const row = await db.findOne("ios_devices", { udid: key });
|
|
3738
|
+
return row === null ? null : pick$1(row);
|
|
3739
|
+
};
|
|
3740
|
+
/**
|
|
3741
|
+
* The issuer of the registry's earliest registration among its rows, by
|
|
3742
|
+
* when and then by ID, or null when no row names one: read only while the
|
|
3743
|
+
* registry has no account yet, a page at a time.
|
|
3744
|
+
*/
|
|
3745
|
+
const accountOfRows = async () => {
|
|
3746
|
+
let earliest = null;
|
|
3747
|
+
for (let after;;) {
|
|
3748
|
+
const { rows } = await db.findMany("ios_devices", {
|
|
3749
|
+
index: "all",
|
|
3750
|
+
where: {},
|
|
3751
|
+
order: "asc",
|
|
3752
|
+
limit: ACCOUNT_SCAN_PAGE,
|
|
3753
|
+
...after === void 0 ? {} : { range: { gt: after } }
|
|
3754
|
+
});
|
|
3755
|
+
for (const row of rows.map(pick$1)) {
|
|
3756
|
+
if (row.apple_issuer_id === null) continue;
|
|
3757
|
+
if (earliest === null || (row.registered_at_ms ?? 0) < (earliest.registered_at_ms ?? 0)) earliest = row;
|
|
3758
|
+
}
|
|
3759
|
+
if (rows.length < ACCOUNT_SCAN_PAGE) return earliest?.apple_issuer_id ?? null;
|
|
3760
|
+
after = rows.at(-1).id;
|
|
3761
|
+
}
|
|
3762
|
+
};
|
|
3763
|
+
return {
|
|
3764
|
+
async listIosDevices(input) {
|
|
3765
|
+
if (input.status !== void 0 && !STATUSES.includes(input.status)) throw new IosDeviceInputError(`Invalid iOS device status: ${String(input.status)}. Expected ${STATUSES.join(", ")}.`);
|
|
3766
|
+
const page = {
|
|
3767
|
+
order: input.order ?? "asc",
|
|
3768
|
+
limit: input.limit,
|
|
3769
|
+
...after(input)
|
|
3770
|
+
};
|
|
3771
|
+
const { rows } = input.status === void 0 ? await db.findMany("ios_devices", {
|
|
3772
|
+
index: "all",
|
|
3773
|
+
where: {},
|
|
3774
|
+
...page
|
|
3775
|
+
}) : await db.findMany("ios_devices", {
|
|
3776
|
+
index: "byStatus",
|
|
3777
|
+
where: { status: input.status },
|
|
3778
|
+
...page
|
|
3779
|
+
});
|
|
3780
|
+
return rows.map(pick$1);
|
|
3781
|
+
},
|
|
3782
|
+
findIosDevice,
|
|
3783
|
+
async requestIosDevice(input) {
|
|
3784
|
+
const udid = udidOf(input.udid);
|
|
3785
|
+
const name = nameOf(input.name);
|
|
3786
|
+
const requestedBy = personOf(input.requestedBy, "requestedBy");
|
|
3787
|
+
const existing = await db.findOne("ios_devices", { udid });
|
|
3788
|
+
if (existing !== null) return {
|
|
3789
|
+
device: pick$1(existing),
|
|
3790
|
+
created: false
|
|
3791
|
+
};
|
|
3792
|
+
const device = {
|
|
3793
|
+
id: createUUIDv7(),
|
|
3794
|
+
udid,
|
|
3795
|
+
name,
|
|
3796
|
+
status: "pending",
|
|
3797
|
+
requested_by: requestedBy,
|
|
3798
|
+
created_at_ms: now(),
|
|
3799
|
+
approved_by: null,
|
|
3800
|
+
approved_at_ms: null,
|
|
3801
|
+
registered_at_ms: null,
|
|
3802
|
+
apple_issuer_id: null,
|
|
3803
|
+
apple_error: null,
|
|
3804
|
+
build_id: null
|
|
3805
|
+
};
|
|
3806
|
+
try {
|
|
3807
|
+
await db.transaction(async (tx) => {
|
|
3808
|
+
tx.create("ios_devices", device);
|
|
3809
|
+
});
|
|
3810
|
+
} catch (error) {
|
|
3811
|
+
if (error instanceof DatabaseConstraintError && error.reason === "unique") {
|
|
3812
|
+
const winner = await db.findOne("ios_devices", { udid });
|
|
3813
|
+
if (winner !== null) return {
|
|
3814
|
+
device: pick$1(winner),
|
|
3815
|
+
created: false
|
|
3816
|
+
};
|
|
3817
|
+
}
|
|
3818
|
+
throw error;
|
|
3819
|
+
}
|
|
3820
|
+
return {
|
|
3821
|
+
device,
|
|
3822
|
+
created: true
|
|
3823
|
+
};
|
|
3824
|
+
},
|
|
3825
|
+
async approveIosDevice(id, input) {
|
|
3826
|
+
const name = input.name === void 0 ? void 0 : nameOf(input.name);
|
|
3827
|
+
const approvedBy = personOf(input.approvedBy, "approvedBy");
|
|
3828
|
+
return db.transaction(async (tx) => {
|
|
3829
|
+
const row = await tx.findOne("ios_devices", { id });
|
|
3830
|
+
if (row === null) return null;
|
|
3831
|
+
const device = pick$1(row);
|
|
3832
|
+
const set = {
|
|
3833
|
+
...name === void 0 || name === device.name ? {} : { name },
|
|
3834
|
+
...device.status === "pending" ? {
|
|
3835
|
+
status: "approved",
|
|
3836
|
+
approved_by: approvedBy,
|
|
3837
|
+
approved_at_ms: now()
|
|
3838
|
+
} : {}
|
|
3839
|
+
};
|
|
3840
|
+
if (Object.keys(set).length === 0) return device;
|
|
3841
|
+
tx.update("ios_devices", row, set);
|
|
3842
|
+
return {
|
|
3843
|
+
...device,
|
|
3844
|
+
...set
|
|
3845
|
+
};
|
|
3846
|
+
});
|
|
3847
|
+
},
|
|
3848
|
+
async renameIosDevice(id, input) {
|
|
3849
|
+
const name = nameOf(input);
|
|
3850
|
+
return db.transaction(async (tx) => {
|
|
3851
|
+
const row = await tx.findOne("ios_devices", { id });
|
|
3852
|
+
if (row === null) return null;
|
|
3853
|
+
const device = pick$1(row);
|
|
3854
|
+
if (device.name === name) return device;
|
|
3855
|
+
tx.update("ios_devices", row, { name });
|
|
3856
|
+
return {
|
|
3857
|
+
...device,
|
|
3858
|
+
name
|
|
3859
|
+
};
|
|
3860
|
+
});
|
|
3861
|
+
},
|
|
3862
|
+
async recordIosDeviceOutcome({ id, seen, issuerId, outcome, reason }) {
|
|
3863
|
+
if (!OUTCOMES.includes(outcome)) throw new IosDeviceInputError(`Invalid iOS device outcome: ${String(outcome)}. Expected ${OUTCOMES.join(", ")}.`);
|
|
3864
|
+
if (typeof issuerId !== "string" || issuerId.trim().length === 0 || issuerId.length > ISSUER_MAX_LENGTH) throw new IosDeviceInputError(`Invalid iOS device outcome: issuerId must be an App Store Connect issuer of at most ${ISSUER_MAX_LENGTH} characters.`);
|
|
3865
|
+
return db.transaction(async (tx) => {
|
|
3866
|
+
const row = await tx.findOne("ios_devices", { id });
|
|
3867
|
+
if (row === null) return null;
|
|
3868
|
+
const device = pick$1(row);
|
|
3869
|
+
if (device.status !== seen.status || device.approved_at_ms !== seen.approvedAtMs || device.apple_issuer_id !== null && device.apple_issuer_id !== issuerId) return null;
|
|
3870
|
+
let set;
|
|
3871
|
+
switch (outcome) {
|
|
3872
|
+
case "registered":
|
|
3873
|
+
if (device.status === "pending") return null;
|
|
3874
|
+
set = {
|
|
3875
|
+
status: "registered",
|
|
3876
|
+
registered_at_ms: device.registered_at_ms ?? now(),
|
|
3877
|
+
apple_issuer_id: issuerId,
|
|
3878
|
+
apple_error: null
|
|
3879
|
+
};
|
|
3880
|
+
break;
|
|
3881
|
+
case "refused":
|
|
3882
|
+
if (device.status !== "approved") return null;
|
|
3883
|
+
set = { apple_error: errorText(reason === void 0 || reason.trim() === "" ? "Apple refused it." : reason) };
|
|
3884
|
+
break;
|
|
3885
|
+
case "disabled":
|
|
3886
|
+
if (device.status === "pending") return null;
|
|
3887
|
+
set = { apple_error: IOS_DEVICE_DISABLED_ERROR };
|
|
3888
|
+
break;
|
|
3889
|
+
case "missing":
|
|
3890
|
+
if (device.status !== "registered") return null;
|
|
3891
|
+
set = {
|
|
3892
|
+
status: "pending",
|
|
3893
|
+
approved_by: null,
|
|
3894
|
+
approved_at_ms: null,
|
|
3895
|
+
apple_error: IOS_DEVICE_MISSING_ERROR
|
|
3896
|
+
};
|
|
3897
|
+
}
|
|
3898
|
+
if (Object.entries(set).some(([column, value]) => device[column] !== (value ?? null))) tx.update("ios_devices", row, set);
|
|
3899
|
+
return {
|
|
3900
|
+
...device,
|
|
3901
|
+
...set
|
|
3902
|
+
};
|
|
3903
|
+
});
|
|
3904
|
+
},
|
|
3905
|
+
async markIosDevicesInBuild({ buildId, ids }) {
|
|
3906
|
+
for (const id of new Set(ids)) await db.transaction(async (tx) => {
|
|
3907
|
+
const row = await tx.findOne("ios_devices", { id });
|
|
3908
|
+
if (row === null || typeof row.build_id === "string" && row.build_id >= buildId) return;
|
|
3909
|
+
tx.update("ios_devices", row, { build_id: buildId });
|
|
3910
|
+
});
|
|
3911
|
+
},
|
|
3912
|
+
async claimIosDeviceAccount(issuerId) {
|
|
3913
|
+
if (typeof issuerId !== "string" || issuerId.trim().length === 0 || issuerId.length > ISSUER_MAX_LENGTH) throw new IosDeviceInputError(`Invalid iOS device account: issuerId must be an App Store Connect issuer of at most ${ISSUER_MAX_LENGTH} characters.`);
|
|
3914
|
+
const answer = (held) => ({
|
|
3915
|
+
issuerId: held,
|
|
3916
|
+
claimed: held === issuerId
|
|
3917
|
+
});
|
|
3918
|
+
const existing = await db.findOne("ios_device_account", { id: ACCOUNT_ROW });
|
|
3919
|
+
if (existing !== null) return answer(existing.apple_issuer_id);
|
|
3920
|
+
const holder = await accountOfRows() ?? issuerId;
|
|
3921
|
+
try {
|
|
3922
|
+
await db.transaction(async (tx) => {
|
|
3923
|
+
tx.create("ios_device_account", {
|
|
3924
|
+
id: ACCOUNT_ROW,
|
|
3925
|
+
apple_issuer_id: holder,
|
|
3926
|
+
claimed_at_ms: now()
|
|
3927
|
+
});
|
|
3928
|
+
});
|
|
3929
|
+
return answer(holder);
|
|
3930
|
+
} catch (error) {
|
|
3931
|
+
if (error instanceof DatabaseConstraintError && (error.reason === "exists" || error.reason === "unique")) {
|
|
3932
|
+
const winner = await db.findOne("ios_device_account", { id: ACCOUNT_ROW });
|
|
3933
|
+
if (winner !== null) return answer(winner.apple_issuer_id);
|
|
3934
|
+
}
|
|
3935
|
+
throw error;
|
|
3936
|
+
}
|
|
3937
|
+
},
|
|
3938
|
+
async deleteIosDevice(id, only) {
|
|
3939
|
+
const requestedBy = only?.requestedBy === void 0 ? void 0 : personOf(only.requestedBy, "requestedBy");
|
|
3940
|
+
return db.transaction(async (tx) => {
|
|
3941
|
+
const row = await tx.findOne("ios_devices", { id });
|
|
3942
|
+
if (row === null) return null;
|
|
3943
|
+
const device = pick$1(row);
|
|
3944
|
+
if (only?.status !== void 0 && device.status !== only.status || requestedBy !== void 0 && device.requested_by !== requestedBy) return null;
|
|
3945
|
+
await tx.delete("ios_devices", row);
|
|
3946
|
+
return device;
|
|
3947
|
+
});
|
|
3948
|
+
}
|
|
3949
|
+
};
|
|
3950
|
+
};
|
|
3522
3951
|
/** Store destinations accepted for each native platform. */
|
|
3523
3952
|
var NATIVE_BUILD_SUBMISSION_DESTINATIONS = {
|
|
3524
3953
|
android: [
|
|
@@ -3674,8 +4103,16 @@ var pick = (row) => ({
|
|
|
3674
4103
|
submitted_version: row.submitted_version ?? null,
|
|
3675
4104
|
is_store_build: row.is_store_build === true,
|
|
3676
4105
|
is_sandbox: row.is_sandbox === true,
|
|
3677
|
-
sandbox_url_scheme: row.sandbox_url_scheme ?? null
|
|
4106
|
+
sandbox_url_scheme: row.sandbox_url_scheme ?? null,
|
|
4107
|
+
export_method: row.export_method ?? null
|
|
3678
4108
|
});
|
|
4109
|
+
/** The export methods an `.ipa` registers with. */
|
|
4110
|
+
var EXPORT_METHODS = /* @__PURE__ */ new Set([
|
|
4111
|
+
"app-store",
|
|
4112
|
+
"ad-hoc",
|
|
4113
|
+
"development",
|
|
4114
|
+
"enterprise"
|
|
4115
|
+
]);
|
|
3679
4116
|
/**
|
|
3680
4117
|
* The channels only sandbox builds register on: a registration's `sandbox`
|
|
3681
4118
|
* must agree with it. The registry's convention, as
|
|
@@ -3721,7 +4158,7 @@ var nativeBuildScopeKey = (scope) => {
|
|
|
3721
4158
|
};
|
|
3722
4159
|
/** Whether `bundleId` is a native build's built-in bundle: one unique read. */
|
|
3723
4160
|
var isBuiltInBundle = async (db, bundleId) => await db.findOne("native_builds", { min_bundle_id: bundleId }) !== null;
|
|
3724
|
-
var problemOf = ({ id, minBundleId, platform, channel, fingerprintHash, appVersion, gitCommitHash, buildKey, buildNumber, isSandbox, sandboxUrlScheme, artifact }) => {
|
|
4161
|
+
var problemOf = ({ id, minBundleId, platform, channel, fingerprintHash, appVersion, gitCommitHash, buildKey, buildNumber, isSandbox, sandboxUrlScheme, exportMethod, artifact }) => {
|
|
3725
4162
|
if (!isUUIDv7(id)) return "id must be a UUIDv7";
|
|
3726
4163
|
if (!isUUIDv7(minBundleId)) return "minBundleId must be the UUIDv7 a release build compiles in";
|
|
3727
4164
|
if (platform !== "ios" && platform !== "android") return "platform must be ios or android";
|
|
@@ -3740,6 +4177,10 @@ var problemOf = ({ id, minBundleId, platform, channel, fingerprintHash, appVersi
|
|
|
3740
4177
|
if (buildNumber !== void 0 && buildNumber !== null && (buildNumber.trim().length === 0 || buildNumber.length > BUILD_NUMBER_MAX_LENGTH)) return `buildNumber must be the artifact's build number, up to ${BUILD_NUMBER_MAX_LENGTH} characters, or null`;
|
|
3741
4178
|
const kinds = ARTIFACT_KINDS[platform];
|
|
3742
4179
|
if (!kinds.includes(artifact.kind)) return `artifact.kind of an ${platform} build must be ${kinds.join(" or ")}`;
|
|
4180
|
+
if (exportMethod !== void 0 && exportMethod !== null) {
|
|
4181
|
+
if (artifact.kind !== "ipa") return "exportMethod is an .ipa's, and this artifact isn't one";
|
|
4182
|
+
if (!EXPORT_METHODS.has(exportMethod)) return `exportMethod must be ${[...EXPORT_METHODS].join(", ")}, or null`;
|
|
4183
|
+
}
|
|
3743
4184
|
if (!Number.isSafeInteger(artifact.byteSize) || artifact.byteSize < 0) return "artifact.byteSize must be a byte count";
|
|
3744
4185
|
return null;
|
|
3745
4186
|
};
|
|
@@ -3771,7 +4212,8 @@ var createNativeBuildApi = (db, { now = Date.now } = {}) => ({
|
|
|
3771
4212
|
submitted_version: null,
|
|
3772
4213
|
is_store_build: false,
|
|
3773
4214
|
is_sandbox: registration.isSandbox === true,
|
|
3774
|
-
sandbox_url_scheme: registration.sandboxUrlScheme ?? null
|
|
4215
|
+
sandbox_url_scheme: registration.sandboxUrlScheme ?? null,
|
|
4216
|
+
export_method: registration.exportMethod ?? null
|
|
3775
4217
|
};
|
|
3776
4218
|
for (let attempt = 1;; attempt += 1) {
|
|
3777
4219
|
await insertChannel(db, {
|
|
@@ -4510,6 +4952,7 @@ var createCoreApi = (db, storage, options = {}) => {
|
|
|
4510
4952
|
...reads,
|
|
4511
4953
|
...createCoreOperations(purgingCachedRoutes(db, options.onCachedRoutesChange), options),
|
|
4512
4954
|
...createNativeBuildApi(db, options),
|
|
4955
|
+
...createIosDeviceApi(db, options),
|
|
4513
4956
|
ready: async () => {
|
|
4514
4957
|
await reads.listReleaseCatalogs({ limit: 1 });
|
|
4515
4958
|
}
|
|
@@ -4720,10 +5163,12 @@ var keyset = (url, maxValue = LIMITS.maxValue) => {
|
|
|
4720
5163
|
const limit = limitParam === null ? Math.min(LIMITS.defaultValue, maxValue) : Number(limitParam);
|
|
4721
5164
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > maxValue) throw new HandlerBadRequestError(`limit must be between 1 and ${maxValue}.`);
|
|
4722
5165
|
const cursor = url.searchParams.get("cursor");
|
|
5166
|
+
const through = url.searchParams.get("through");
|
|
4723
5167
|
return {
|
|
4724
5168
|
order,
|
|
4725
5169
|
limit,
|
|
4726
|
-
...cursor === null ? {} : { after: cursor }
|
|
5170
|
+
...cursor === null ? {} : { after: cursor },
|
|
5171
|
+
...through === null ? {} : { through }
|
|
4727
5172
|
};
|
|
4728
5173
|
};
|
|
4729
5174
|
/** A page and the cursor of the next one, when the page is full. */
|
|
@@ -4838,11 +5283,11 @@ var refusingInvalid = async (operation) => {
|
|
|
4838
5283
|
try {
|
|
4839
5284
|
return await operation();
|
|
4840
5285
|
} catch (error) {
|
|
4841
|
-
if (error instanceof NativeBuildInputError) throw new HandlerBadRequestError(error.message);
|
|
5286
|
+
if (error instanceof NativeBuildInputError || error instanceof IosDeviceInputError) throw new HandlerBadRequestError(error.message);
|
|
4842
5287
|
throw error;
|
|
4843
5288
|
}
|
|
4844
5289
|
};
|
|
4845
|
-
var isNativeBuildRegistration = (value) => isRecord$1(value) && isText(value.id) && isText(value.minBundleId) && typeof value.platform === "string" && isPlatform(value.platform) && isText(value.channel) && isTextOrNull(value.fingerprintHash) && isTextOrNull(value.appVersion) && value.fingerprintHash === null !== (value.appVersion === null) && isTextOrNull(value.gitCommitHash) && isTextOrNull(value.buildKey) && (value.buildNumber === void 0 || isTextOrNull(value.buildNumber)) && (value.isSandbox === void 0 || typeof value.isSandbox === "boolean") && (value.sandboxUrlScheme === void 0 || isTextOrNull(value.sandboxUrlScheme)) && isRecord$1(value.artifact) && typeof value.artifact.kind === "string" && NATIVE_BUILD_ARTIFACT_KINDS.has(value.artifact.kind) && isText(value.artifact.storageUri) && Number.isSafeInteger(value.artifact.byteSize) && value.artifact.byteSize >= 0 && isRecord$1(value.embeddedBundle) && isText(value.embeddedBundle.manifestStorageUri) && isText(value.embeddedBundle.manifestFileHash) && isText(value.embeddedBundle.assetBaseStorageUri) && (value.embeddedBundle.metadata === void 0 || isRecord$1(value.embeddedBundle.metadata));
|
|
5290
|
+
var isNativeBuildRegistration = (value) => isRecord$1(value) && isText(value.id) && isText(value.minBundleId) && typeof value.platform === "string" && isPlatform(value.platform) && isText(value.channel) && isTextOrNull(value.fingerprintHash) && isTextOrNull(value.appVersion) && value.fingerprintHash === null !== (value.appVersion === null) && isTextOrNull(value.gitCommitHash) && isTextOrNull(value.buildKey) && (value.buildNumber === void 0 || isTextOrNull(value.buildNumber)) && (value.isSandbox === void 0 || typeof value.isSandbox === "boolean") && (value.sandboxUrlScheme === void 0 || isTextOrNull(value.sandboxUrlScheme)) && (value.exportMethod === void 0 || isTextOrNull(value.exportMethod)) && isRecord$1(value.artifact) && typeof value.artifact.kind === "string" && NATIVE_BUILD_ARTIFACT_KINDS.has(value.artifact.kind) && isText(value.artifact.storageUri) && Number.isSafeInteger(value.artifact.byteSize) && value.artifact.byteSize >= 0 && isRecord$1(value.embeddedBundle) && isText(value.embeddedBundle.manifestStorageUri) && isText(value.embeddedBundle.manifestFileHash) && isText(value.embeddedBundle.assetBaseStorageUri) && (value.embeddedBundle.metadata === void 0 || isRecord$1(value.embeddedBundle.metadata));
|
|
4846
5291
|
var scopeKeyOf = (params) => decodeMaybe(requireRouteParam(params, "scopeKey")) ?? "";
|
|
4847
5292
|
/** Every admin route's handler, by the name `ADMIN_ROUTES` mounts it under. */
|
|
4848
5293
|
var createAdminRouteHandlers = () => ({
|
|
@@ -4998,6 +5443,81 @@ var createAdminRouteHandlers = () => ({
|
|
|
4998
5443
|
return json({ data: await refusingInvalid(() => core.markNativeBuild(requireRouteParam(params, "id"), mark)) });
|
|
4999
5444
|
}),
|
|
5000
5445
|
deleteNativeBuild: onCore(async (core, _request, params) => json({ data: await core.deleteNativeBuild(requireRouteParam(params, "id")) })),
|
|
5446
|
+
listIosDevices: onCore(async (core, request) => {
|
|
5447
|
+
const url = new URL(request.url);
|
|
5448
|
+
const input = keyset(url);
|
|
5449
|
+
const status = url.searchParams.get("status");
|
|
5450
|
+
return page(await refusingInvalid(() => core.listIosDevices({
|
|
5451
|
+
...input,
|
|
5452
|
+
...status === null ? {} : { status }
|
|
5453
|
+
})), input, ({ id }) => id);
|
|
5454
|
+
}),
|
|
5455
|
+
findIosDevice: onCore(async (core, _request, params) => json({ data: await core.findIosDevice(requireRouteParam(params, "udid")) })),
|
|
5456
|
+
requestIosDevice: onCore(async (core, request) => {
|
|
5457
|
+
const input = await body(request);
|
|
5458
|
+
if (!isText(input.udid) || !isText(input.name) || !isTextOrNull(input.requestedBy)) throw new HandlerBadRequestError("An iOS device request needs udid, name, and requestedBy, an email or null.");
|
|
5459
|
+
const device = {
|
|
5460
|
+
udid: input.udid,
|
|
5461
|
+
name: input.name,
|
|
5462
|
+
requestedBy: input.requestedBy
|
|
5463
|
+
};
|
|
5464
|
+
return json({ data: await refusingInvalid(() => core.requestIosDevice(device)) });
|
|
5465
|
+
}),
|
|
5466
|
+
approveIosDevice: onCore(async (core, request, params) => {
|
|
5467
|
+
const input = await body(request);
|
|
5468
|
+
if (!isTextOrNull(input.approvedBy) || input.name !== void 0 && !isText(input.name)) throw new HandlerBadRequestError("An iOS device approval needs approvedBy, an email or null, and an optional name.");
|
|
5469
|
+
const approval = {
|
|
5470
|
+
approvedBy: input.approvedBy,
|
|
5471
|
+
...input.name === void 0 ? {} : { name: input.name }
|
|
5472
|
+
};
|
|
5473
|
+
return json({ data: await refusingInvalid(() => core.approveIosDevice(requireRouteParam(params, "id"), approval)) });
|
|
5474
|
+
}),
|
|
5475
|
+
renameIosDevice: onCore(async (core, request, params) => {
|
|
5476
|
+
const input = await body(request);
|
|
5477
|
+
if (!isText(input.name)) throw new HandlerBadRequestError("An iOS device's new name is required.");
|
|
5478
|
+
const name = input.name;
|
|
5479
|
+
return json({ data: await refusingInvalid(() => core.renameIosDevice(requireRouteParam(params, "id"), name)) });
|
|
5480
|
+
}),
|
|
5481
|
+
recordIosDeviceOutcome: onCore(async (core, request, params) => {
|
|
5482
|
+
const input = await body(request);
|
|
5483
|
+
const seen = input.seen;
|
|
5484
|
+
if (!isRecord$1(seen) || typeof seen.status !== "string" || !(seen.approvedAtMs === null || Number.isSafeInteger(seen.approvedAtMs)) || !isText(input.issuerId) || typeof input.outcome !== "string" || input.reason !== void 0 && typeof input.reason !== "string") throw new HandlerBadRequestError("An iOS device outcome needs seen { status, approvedAtMs }, issuerId, outcome, and an optional reason.");
|
|
5485
|
+
const outcome = {
|
|
5486
|
+
id: requireRouteParam(params, "id"),
|
|
5487
|
+
seen: {
|
|
5488
|
+
status: seen.status,
|
|
5489
|
+
approvedAtMs: seen.approvedAtMs
|
|
5490
|
+
},
|
|
5491
|
+
issuerId: input.issuerId,
|
|
5492
|
+
outcome: input.outcome,
|
|
5493
|
+
...input.reason === void 0 ? {} : { reason: input.reason }
|
|
5494
|
+
};
|
|
5495
|
+
return json({ data: await refusingInvalid(() => core.recordIosDeviceOutcome(outcome)) });
|
|
5496
|
+
}),
|
|
5497
|
+
claimIosDeviceAccount: onCore(async (core, request) => {
|
|
5498
|
+
const { issuerId } = await body(request);
|
|
5499
|
+
if (!isText(issuerId)) throw new HandlerBadRequestError("Claiming the iOS device account needs issuerId.");
|
|
5500
|
+
return json({ data: await refusingInvalid(() => core.claimIosDeviceAccount(issuerId)) });
|
|
5501
|
+
}),
|
|
5502
|
+
markIosDevicesInBuild: onCore(async (core, request) => {
|
|
5503
|
+
const { buildId, ids } = await body(request);
|
|
5504
|
+
if (!isText(buildId) || !Array.isArray(ids) || !ids.every((id) => isText(id))) throw new HandlerBadRequestError("Marking iOS devices in a build needs buildId and ids.");
|
|
5505
|
+
await core.markIosDevicesInBuild({
|
|
5506
|
+
buildId,
|
|
5507
|
+
ids
|
|
5508
|
+
});
|
|
5509
|
+
return noContent();
|
|
5510
|
+
}),
|
|
5511
|
+
deleteIosDevice: onCore(async (core, request, params) => {
|
|
5512
|
+
const url = new URL(request.url);
|
|
5513
|
+
const status = url.searchParams.get("status");
|
|
5514
|
+
const requestedBy = url.searchParams.get("requestedBy");
|
|
5515
|
+
const only = {
|
|
5516
|
+
...status === null ? {} : { status },
|
|
5517
|
+
...requestedBy === null ? {} : { requestedBy }
|
|
5518
|
+
};
|
|
5519
|
+
return json({ data: await refusingInvalid(() => Object.keys(only).length === 0 ? core.deleteIosDevice(requireRouteParam(params, "id")) : core.deleteIosDevice(requireRouteParam(params, "id"), only)) });
|
|
5520
|
+
}),
|
|
5001
5521
|
deleteBundles: onCore(async (core, request) => {
|
|
5002
5522
|
const { ids } = await body(request);
|
|
5003
5523
|
if (!Array.isArray(ids) || !ids.every((id) => typeof id === "string" && id.length > 0)) throw new HandlerBadRequestError("Bundle deletion needs ids");
|
|
@@ -5151,6 +5671,51 @@ var ADMIN_ROUTES = [
|
|
|
5151
5671
|
method: "DELETE",
|
|
5152
5672
|
path: "/native-builds/:id",
|
|
5153
5673
|
handler: "deleteNativeBuild"
|
|
5674
|
+
},
|
|
5675
|
+
{
|
|
5676
|
+
method: "GET",
|
|
5677
|
+
path: "/ios-devices",
|
|
5678
|
+
handler: "listIosDevices"
|
|
5679
|
+
},
|
|
5680
|
+
{
|
|
5681
|
+
method: "POST",
|
|
5682
|
+
path: "/ios-devices",
|
|
5683
|
+
handler: "requestIosDevice"
|
|
5684
|
+
},
|
|
5685
|
+
{
|
|
5686
|
+
method: "GET",
|
|
5687
|
+
path: "/ios-devices/udid/:udid",
|
|
5688
|
+
handler: "findIosDevice"
|
|
5689
|
+
},
|
|
5690
|
+
{
|
|
5691
|
+
method: "POST",
|
|
5692
|
+
path: "/ios-devices/in-build",
|
|
5693
|
+
handler: "markIosDevicesInBuild"
|
|
5694
|
+
},
|
|
5695
|
+
{
|
|
5696
|
+
method: "POST",
|
|
5697
|
+
path: "/ios-devices/account",
|
|
5698
|
+
handler: "claimIosDeviceAccount"
|
|
5699
|
+
},
|
|
5700
|
+
{
|
|
5701
|
+
method: "POST",
|
|
5702
|
+
path: "/ios-devices/:id/approval",
|
|
5703
|
+
handler: "approveIosDevice"
|
|
5704
|
+
},
|
|
5705
|
+
{
|
|
5706
|
+
method: "POST",
|
|
5707
|
+
path: "/ios-devices/:id/outcome",
|
|
5708
|
+
handler: "recordIosDeviceOutcome"
|
|
5709
|
+
},
|
|
5710
|
+
{
|
|
5711
|
+
method: "PATCH",
|
|
5712
|
+
path: "/ios-devices/:id",
|
|
5713
|
+
handler: "renameIosDevice"
|
|
5714
|
+
},
|
|
5715
|
+
{
|
|
5716
|
+
method: "DELETE",
|
|
5717
|
+
path: "/ios-devices/:id",
|
|
5718
|
+
handler: "deleteIosDevice"
|
|
5154
5719
|
}
|
|
5155
5720
|
];
|
|
5156
5721
|
var CATALOG_CONTENT_TYPE = "application/vnd.hot-updater.release-catalog+json; version=1";
|
|
@@ -5658,8 +6223,11 @@ var resolveConsoleConfig = async (request) => {
|
|
|
5658
6223
|
const { default: source } = await import("./config-CjIBFhJX.mjs");
|
|
5659
6224
|
const config = typeof source === "function" ? await source(request) : source;
|
|
5660
6225
|
const { database, storage, plugins = [] } = config;
|
|
5661
|
-
const { gitUrl } = config.console ?? {};
|
|
5662
|
-
const consoleOptions =
|
|
6226
|
+
const { gitUrl, deviceApprovers = [] } = config.console ?? {};
|
|
6227
|
+
const consoleOptions = {
|
|
6228
|
+
...gitUrl === void 0 ? {} : { gitUrl },
|
|
6229
|
+
deviceApprovers: deviceApprovers.map((email) => email.trim().toLowerCase()).filter((email) => email.length > 0)
|
|
6230
|
+
};
|
|
5663
6231
|
if (isRemoteDatabase(database)) {
|
|
5664
6232
|
const checked = assemble({
|
|
5665
6233
|
name: "memory",
|