@uapkg/cli 1.3.0 → 1.3.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 (412) hide show
  1. package/dist/app/CompositionRoot.d.ts +36 -33
  2. package/dist/app/CompositionRoot.d.ts.map +1 -1
  3. package/dist/app/CompositionRoot.js +91 -109
  4. package/dist/app/CompositionRoot.js.map +1 -1
  5. package/dist/app/UAPKGApplication.d.ts +6 -3
  6. package/dist/app/UAPKGApplication.d.ts.map +1 -1
  7. package/dist/app/UAPKGApplication.js +155 -169
  8. package/dist/app/UAPKGApplication.js.map +1 -1
  9. package/dist/build/BuildMetadata.d.ts +9 -6
  10. package/dist/build/BuildMetadata.d.ts.map +1 -1
  11. package/dist/build/BuildMetadata.js +2 -2
  12. package/dist/cli/UAPKGCommandLine.d.ts +259 -257
  13. package/dist/cli/UAPKGCommandLine.d.ts.map +1 -1
  14. package/dist/cli/UAPKGCommandLine.js +248 -239
  15. package/dist/cli/UAPKGCommandLine.js.map +1 -1
  16. package/dist/cli/parseCommandLine.d.ts +5 -1
  17. package/dist/cli/parseCommandLine.d.ts.map +1 -1
  18. package/dist/cli/parseCommandLine.js +8 -3
  19. package/dist/cli/parseCommandLine.js.map +1 -1
  20. package/dist/cli/parsing/UAPKGCommandLineParser.d.ts +9 -6
  21. package/dist/cli/parsing/UAPKGCommandLineParser.d.ts.map +1 -1
  22. package/dist/cli/parsing/UAPKGCommandLineParser.js +23 -31
  23. package/dist/cli/parsing/UAPKGCommandLineParser.js.map +1 -1
  24. package/dist/cli/parsing/UAPKGParserRegistry.d.ts +12 -9
  25. package/dist/cli/parsing/UAPKGParserRegistry.d.ts.map +1 -1
  26. package/dist/cli/parsing/UAPKGParserRegistry.js +53 -50
  27. package/dist/cli/parsing/UAPKGParserRegistry.js.map +1 -1
  28. package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts +9 -6
  29. package/dist/cli/parsing/contracts/UAPKGCommandModule.d.ts.map +1 -1
  30. package/dist/cli/parsing/contracts/UAPKGCommandModule.js +1 -2
  31. package/dist/cli/parsing/modules/AddCommandModule.d.ts +8 -5
  32. package/dist/cli/parsing/modules/AddCommandModule.d.ts.map +1 -1
  33. package/dist/cli/parsing/modules/AddCommandModule.js +49 -36
  34. package/dist/cli/parsing/modules/AddCommandModule.js.map +1 -1
  35. package/dist/cli/parsing/modules/ConfigCommandModule.d.ts +8 -5
  36. package/dist/cli/parsing/modules/ConfigCommandModule.d.ts.map +1 -1
  37. package/dist/cli/parsing/modules/ConfigCommandModule.js +87 -83
  38. package/dist/cli/parsing/modules/ConfigCommandModule.js.map +1 -1
  39. package/dist/cli/parsing/modules/InitCommandModule.d.ts +8 -5
  40. package/dist/cli/parsing/modules/InitCommandModule.d.ts.map +1 -1
  41. package/dist/cli/parsing/modules/InitCommandModule.js +25 -22
  42. package/dist/cli/parsing/modules/InitCommandModule.js.map +1 -1
  43. package/dist/cli/parsing/modules/InstallCommandModule.d.ts +8 -5
  44. package/dist/cli/parsing/modules/InstallCommandModule.d.ts.map +1 -1
  45. package/dist/cli/parsing/modules/InstallCommandModule.js +36 -28
  46. package/dist/cli/parsing/modules/InstallCommandModule.js.map +1 -1
  47. package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts +8 -5
  48. package/dist/cli/parsing/modules/LifecycleCommandModule.d.ts.map +1 -1
  49. package/dist/cli/parsing/modules/LifecycleCommandModule.js +78 -50
  50. package/dist/cli/parsing/modules/LifecycleCommandModule.js.map +1 -1
  51. package/dist/cli/parsing/modules/ListCommandModule.d.ts +8 -5
  52. package/dist/cli/parsing/modules/ListCommandModule.d.ts.map +1 -1
  53. package/dist/cli/parsing/modules/ListCommandModule.js +26 -15
  54. package/dist/cli/parsing/modules/ListCommandModule.js.map +1 -1
  55. package/dist/cli/parsing/modules/LoginCommandModule.d.ts +8 -5
  56. package/dist/cli/parsing/modules/LoginCommandModule.d.ts.map +1 -1
  57. package/dist/cli/parsing/modules/LoginCommandModule.js +34 -33
  58. package/dist/cli/parsing/modules/LoginCommandModule.js.map +1 -1
  59. package/dist/cli/parsing/modules/LogoutCommandModule.d.ts +8 -5
  60. package/dist/cli/parsing/modules/LogoutCommandModule.d.ts.map +1 -1
  61. package/dist/cli/parsing/modules/LogoutCommandModule.js +30 -28
  62. package/dist/cli/parsing/modules/LogoutCommandModule.js.map +1 -1
  63. package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts +8 -5
  64. package/dist/cli/parsing/modules/OutdatedCommandModule.d.ts.map +1 -1
  65. package/dist/cli/parsing/modules/OutdatedCommandModule.js +21 -16
  66. package/dist/cli/parsing/modules/OutdatedCommandModule.js.map +1 -1
  67. package/dist/cli/parsing/modules/PackCommandModule.d.ts +8 -5
  68. package/dist/cli/parsing/modules/PackCommandModule.d.ts.map +1 -1
  69. package/dist/cli/parsing/modules/PackCommandModule.js +30 -28
  70. package/dist/cli/parsing/modules/PackCommandModule.js.map +1 -1
  71. package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts +8 -5
  72. package/dist/cli/parsing/modules/ProjectGetNameCommandModule.d.ts.map +1 -1
  73. package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js +14 -11
  74. package/dist/cli/parsing/modules/ProjectGetNameCommandModule.js.map +1 -1
  75. package/dist/cli/parsing/modules/PublishCommandModule.d.ts +8 -5
  76. package/dist/cli/parsing/modules/PublishCommandModule.d.ts.map +1 -1
  77. package/dist/cli/parsing/modules/PublishCommandModule.js +63 -47
  78. package/dist/cli/parsing/modules/PublishCommandModule.js.map +1 -1
  79. package/dist/cli/parsing/modules/RegistryCommandModule.d.ts +8 -5
  80. package/dist/cli/parsing/modules/RegistryCommandModule.d.ts.map +1 -1
  81. package/dist/cli/parsing/modules/RegistryCommandModule.js +117 -120
  82. package/dist/cli/parsing/modules/RegistryCommandModule.js.map +1 -1
  83. package/dist/cli/parsing/modules/RemoveCommandModule.d.ts +8 -5
  84. package/dist/cli/parsing/modules/RemoveCommandModule.d.ts.map +1 -1
  85. package/dist/cli/parsing/modules/RemoveCommandModule.js +25 -14
  86. package/dist/cli/parsing/modules/RemoveCommandModule.js.map +1 -1
  87. package/dist/cli/parsing/modules/RequestsCommandModule.d.ts +8 -5
  88. package/dist/cli/parsing/modules/RequestsCommandModule.d.ts.map +1 -1
  89. package/dist/cli/parsing/modules/RequestsCommandModule.js +56 -60
  90. package/dist/cli/parsing/modules/RequestsCommandModule.js.map +1 -1
  91. package/dist/cli/parsing/modules/UpdateCommandModule.d.ts +8 -5
  92. package/dist/cli/parsing/modules/UpdateCommandModule.d.ts.map +1 -1
  93. package/dist/cli/parsing/modules/UpdateCommandModule.js +38 -25
  94. package/dist/cli/parsing/modules/UpdateCommandModule.js.map +1 -1
  95. package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts +8 -5
  96. package/dist/cli/parsing/modules/WhoamiCommandModule.d.ts.map +1 -1
  97. package/dist/cli/parsing/modules/WhoamiCommandModule.js +30 -28
  98. package/dist/cli/parsing/modules/WhoamiCommandModule.js.map +1 -1
  99. package/dist/cli/parsing/modules/WhyCommandModule.d.ts +8 -5
  100. package/dist/cli/parsing/modules/WhyCommandModule.d.ts.map +1 -1
  101. package/dist/cli/parsing/modules/WhyCommandModule.js +25 -14
  102. package/dist/cli/parsing/modules/WhyCommandModule.js.map +1 -1
  103. package/dist/cli/parsing/modules/sharedOptions.d.ts +8 -5
  104. package/dist/cli/parsing/modules/sharedOptions.d.ts.map +1 -1
  105. package/dist/cli/parsing/modules/sharedOptions.js +18 -23
  106. package/dist/cli/parsing/modules/sharedOptions.js.map +1 -1
  107. package/dist/cli/runUAPKGCLI.d.ts +4 -1
  108. package/dist/cli/runUAPKGCLI.d.ts.map +1 -1
  109. package/dist/cli/runUAPKGCLI.js +10 -5
  110. package/dist/cli/runUAPKGCLI.js.map +1 -1
  111. package/dist/cli-bootstrap.d.ts +1 -2
  112. package/dist/cli-bootstrap.js +15 -12
  113. package/dist/cli-bootstrap.js.map +1 -1
  114. package/dist/commands/AddCommand.d.ts +19 -16
  115. package/dist/commands/AddCommand.d.ts.map +1 -1
  116. package/dist/commands/AddCommand.js +49 -53
  117. package/dist/commands/AddCommand.js.map +1 -1
  118. package/dist/commands/Command.d.ts +5 -2
  119. package/dist/commands/Command.d.ts.map +1 -1
  120. package/dist/commands/Command.js +1 -2
  121. package/dist/commands/ConfigCommand.d.ts +28 -25
  122. package/dist/commands/ConfigCommand.d.ts.map +1 -1
  123. package/dist/commands/ConfigCommand.js +165 -186
  124. package/dist/commands/ConfigCommand.js.map +1 -1
  125. package/dist/commands/InitCommand.d.ts +19 -16
  126. package/dist/commands/InitCommand.d.ts.map +1 -1
  127. package/dist/commands/InitCommand.js +65 -60
  128. package/dist/commands/InitCommand.js.map +1 -1
  129. package/dist/commands/InstallCommand.d.ts +16 -13
  130. package/dist/commands/InstallCommand.d.ts.map +1 -1
  131. package/dist/commands/InstallCommand.js +118 -110
  132. package/dist/commands/InstallCommand.js.map +1 -1
  133. package/dist/commands/ListCommand.d.ts +13 -10
  134. package/dist/commands/ListCommand.d.ts.map +1 -1
  135. package/dist/commands/ListCommand.js +76 -81
  136. package/dist/commands/ListCommand.js.map +1 -1
  137. package/dist/commands/LoginCommand.d.ts +17 -14
  138. package/dist/commands/LoginCommand.d.ts.map +1 -1
  139. package/dist/commands/LoginCommand.js +66 -72
  140. package/dist/commands/LoginCommand.js.map +1 -1
  141. package/dist/commands/LogoutCommand.d.ts +15 -12
  142. package/dist/commands/LogoutCommand.d.ts.map +1 -1
  143. package/dist/commands/LogoutCommand.js +36 -37
  144. package/dist/commands/LogoutCommand.js.map +1 -1
  145. package/dist/commands/OutdatedCommand.d.ts +12 -9
  146. package/dist/commands/OutdatedCommand.d.ts.map +1 -1
  147. package/dist/commands/OutdatedCommand.js +41 -40
  148. package/dist/commands/OutdatedCommand.js.map +1 -1
  149. package/dist/commands/PackCommand.d.ts +13 -10
  150. package/dist/commands/PackCommand.d.ts.map +1 -1
  151. package/dist/commands/PackCommand.js +26 -21
  152. package/dist/commands/PackCommand.js.map +1 -1
  153. package/dist/commands/PackageLifecycleCommand.d.ts +23 -19
  154. package/dist/commands/PackageLifecycleCommand.d.ts.map +1 -1
  155. package/dist/commands/PackageLifecycleCommand.js +144 -138
  156. package/dist/commands/PackageLifecycleCommand.js.map +1 -1
  157. package/dist/commands/PostinstallCandidateBuilder.d.ts +11 -8
  158. package/dist/commands/PostinstallCandidateBuilder.d.ts.map +1 -1
  159. package/dist/commands/PostinstallCandidateBuilder.js +42 -42
  160. package/dist/commands/PostinstallCandidateBuilder.js.map +1 -1
  161. package/dist/commands/ProjectGetNameCommand.d.ts +10 -7
  162. package/dist/commands/ProjectGetNameCommand.d.ts.map +1 -1
  163. package/dist/commands/ProjectGetNameCommand.js +25 -25
  164. package/dist/commands/ProjectGetNameCommand.js.map +1 -1
  165. package/dist/commands/PublishCommand.d.ts +29 -23
  166. package/dist/commands/PublishCommand.d.ts.map +1 -1
  167. package/dist/commands/PublishCommand.js +243 -254
  168. package/dist/commands/PublishCommand.js.map +1 -1
  169. package/dist/commands/RegistryCommand.d.ts +38 -35
  170. package/dist/commands/RegistryCommand.d.ts.map +1 -1
  171. package/dist/commands/RegistryCommand.js +195 -223
  172. package/dist/commands/RegistryCommand.js.map +1 -1
  173. package/dist/commands/RemoveCommand.d.ts +14 -11
  174. package/dist/commands/RemoveCommand.d.ts.map +1 -1
  175. package/dist/commands/RemoveCommand.js +47 -54
  176. package/dist/commands/RemoveCommand.js.map +1 -1
  177. package/dist/commands/RequestsCommand.d.ts +21 -18
  178. package/dist/commands/RequestsCommand.d.ts.map +1 -1
  179. package/dist/commands/RequestsCommand.js +82 -95
  180. package/dist/commands/RequestsCommand.js.map +1 -1
  181. package/dist/commands/UpdateCommand.d.ts +29 -26
  182. package/dist/commands/UpdateCommand.d.ts.map +1 -1
  183. package/dist/commands/UpdateCommand.js +111 -111
  184. package/dist/commands/UpdateCommand.js.map +1 -1
  185. package/dist/commands/WhoamiCommand.d.ts +30 -27
  186. package/dist/commands/WhoamiCommand.d.ts.map +1 -1
  187. package/dist/commands/WhoamiCommand.js +63 -72
  188. package/dist/commands/WhoamiCommand.js.map +1 -1
  189. package/dist/commands/WhyCommand.d.ts +13 -10
  190. package/dist/commands/WhyCommand.d.ts.map +1 -1
  191. package/dist/commands/WhyCommand.js +45 -44
  192. package/dist/commands/WhyCommand.js.map +1 -1
  193. package/dist/commands/add/DependencyAddResolver.d.ts +14 -11
  194. package/dist/commands/add/DependencyAddResolver.d.ts.map +1 -1
  195. package/dist/commands/add/DependencyAddResolver.js +36 -36
  196. package/dist/commands/add/DependencyAddResolver.js.map +1 -1
  197. package/dist/control-plane/AccountManager.d.ts +96 -94
  198. package/dist/control-plane/AccountManager.d.ts.map +1 -1
  199. package/dist/control-plane/AccountManager.js +775 -967
  200. package/dist/control-plane/AccountManager.js.map +1 -1
  201. package/dist/control-plane/ArtifactObserver.d.ts +19 -16
  202. package/dist/control-plane/ArtifactObserver.d.ts.map +1 -1
  203. package/dist/control-plane/ArtifactObserver.js +73 -59
  204. package/dist/control-plane/ArtifactObserver.js.map +1 -1
  205. package/dist/control-plane/AuthMetadataStore.d.ts +16 -13
  206. package/dist/control-plane/AuthMetadataStore.d.ts.map +1 -1
  207. package/dist/control-plane/AuthMetadataStore.js +111 -113
  208. package/dist/control-plane/AuthMetadataStore.js.map +1 -1
  209. package/dist/control-plane/AuthStoragePaths.d.ts +7 -4
  210. package/dist/control-plane/AuthStoragePaths.d.ts.map +1 -1
  211. package/dist/control-plane/AuthStoragePaths.js +19 -14
  212. package/dist/control-plane/AuthStoragePaths.js.map +1 -1
  213. package/dist/control-plane/AuthenticationSelector.d.ts +21 -18
  214. package/dist/control-plane/AuthenticationSelector.d.ts.map +1 -1
  215. package/dist/control-plane/AuthenticationSelector.js +69 -63
  216. package/dist/control-plane/AuthenticationSelector.js.map +1 -1
  217. package/dist/control-plane/ControlPlaneClient.d.ts +37 -28
  218. package/dist/control-plane/ControlPlaneClient.d.ts.map +1 -1
  219. package/dist/control-plane/ControlPlaneClient.js +265 -254
  220. package/dist/control-plane/ControlPlaneClient.js.map +1 -1
  221. package/dist/control-plane/ControlPlaneEndpoints.d.ts +9 -6
  222. package/dist/control-plane/ControlPlaneEndpoints.d.ts.map +1 -1
  223. package/dist/control-plane/ControlPlaneEndpoints.js +17 -12
  224. package/dist/control-plane/ControlPlaneEndpoints.js.map +1 -1
  225. package/dist/control-plane/ControlPlaneTypes.d.ts +176 -152
  226. package/dist/control-plane/ControlPlaneTypes.d.ts.map +1 -1
  227. package/dist/control-plane/ControlPlaneTypes.js +88 -81
  228. package/dist/control-plane/ControlPlaneTypes.js.map +1 -1
  229. package/dist/control-plane/CredentialStore.d.ts +20 -18
  230. package/dist/control-plane/CredentialStore.d.ts.map +1 -1
  231. package/dist/control-plane/CredentialStore.js +66 -83
  232. package/dist/control-plane/CredentialStore.js.map +1 -1
  233. package/dist/control-plane/DPoPKeyStore.d.ts +12 -9
  234. package/dist/control-plane/DPoPKeyStore.d.ts.map +1 -1
  235. package/dist/control-plane/DPoPKeyStore.js +57 -53
  236. package/dist/control-plane/DPoPKeyStore.js.map +1 -1
  237. package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts +37 -4
  238. package/dist/control-plane/GitHubActionsOidcCredentialProvider.d.ts.map +1 -1
  239. package/dist/control-plane/GitHubActionsOidcCredentialProvider.js +197 -63
  240. package/dist/control-plane/GitHubActionsOidcCredentialProvider.js.map +1 -1
  241. package/dist/control-plane/PublishIdempotencyStore.d.ts +25 -9
  242. package/dist/control-plane/PublishIdempotencyStore.d.ts.map +1 -1
  243. package/dist/control-plane/PublishIdempotencyStore.js +97 -68
  244. package/dist/control-plane/PublishIdempotencyStore.js.map +1 -1
  245. package/dist/control-plane/PublishRequestErrorMapper.d.ts +155 -0
  246. package/dist/control-plane/PublishRequestErrorMapper.d.ts.map +1 -0
  247. package/dist/control-plane/PublishRequestErrorMapper.js +597 -0
  248. package/dist/control-plane/PublishRequestErrorMapper.js.map +1 -0
  249. package/dist/control-plane/RegistryGrantLock.d.ts +29 -26
  250. package/dist/control-plane/RegistryGrantLock.d.ts.map +1 -1
  251. package/dist/control-plane/RegistryGrantLock.js +149 -185
  252. package/dist/control-plane/RegistryGrantLock.js.map +1 -1
  253. package/dist/control-plane/RegistryTrustResolver.d.ts +13 -10
  254. package/dist/control-plane/RegistryTrustResolver.d.ts.map +1 -1
  255. package/dist/control-plane/RegistryTrustResolver.js +97 -132
  256. package/dist/control-plane/RegistryTrustResolver.js.map +1 -1
  257. package/dist/index.d.ts +62 -39
  258. package/dist/index.js +60 -53
  259. package/dist/postinstall/api/PostinstallDsl.d.ts +24 -21
  260. package/dist/postinstall/api/PostinstallDsl.d.ts.map +1 -1
  261. package/dist/postinstall/api/PostinstallDsl.js +32 -35
  262. package/dist/postinstall/api/PostinstallDsl.js.map +1 -1
  263. package/dist/postinstall/api/definePostinstall.d.ts +5 -2
  264. package/dist/postinstall/api/definePostinstall.d.ts.map +1 -1
  265. package/dist/postinstall/api/definePostinstall.js +20 -16
  266. package/dist/postinstall/api/definePostinstall.js.map +1 -1
  267. package/dist/postinstall/index.d.ts +25 -26
  268. package/dist/postinstall/index.js +25 -37
  269. package/dist/postinstall/loader/EntryResolver.d.ts +11 -9
  270. package/dist/postinstall/loader/EntryResolver.d.ts.map +1 -1
  271. package/dist/postinstall/loader/EntryResolver.js +36 -32
  272. package/dist/postinstall/loader/EntryResolver.js.map +1 -1
  273. package/dist/postinstall/loader/EsbuildTranspiler.d.ts +6 -3
  274. package/dist/postinstall/loader/EsbuildTranspiler.d.ts.map +1 -1
  275. package/dist/postinstall/loader/EsbuildTranspiler.js +52 -56
  276. package/dist/postinstall/loader/EsbuildTranspiler.js.map +1 -1
  277. package/dist/postinstall/loader/ExportValidator.d.ts +8 -5
  278. package/dist/postinstall/loader/ExportValidator.d.ts.map +1 -1
  279. package/dist/postinstall/loader/ExportValidator.js +36 -32
  280. package/dist/postinstall/loader/ExportValidator.js.map +1 -1
  281. package/dist/postinstall/loader/ModuleImporter.d.ts +17 -14
  282. package/dist/postinstall/loader/ModuleImporter.d.ts.map +1 -1
  283. package/dist/postinstall/loader/ModuleImporter.js +50 -58
  284. package/dist/postinstall/loader/ModuleImporter.js.map +1 -1
  285. package/dist/postinstall/loader/PostinstallLoader.d.ts +22 -19
  286. package/dist/postinstall/loader/PostinstallLoader.d.ts.map +1 -1
  287. package/dist/postinstall/loader/PostinstallLoader.js +62 -58
  288. package/dist/postinstall/loader/PostinstallLoader.js.map +1 -1
  289. package/dist/postinstall/markers/MarkerBlockEditor.d.ts +19 -16
  290. package/dist/postinstall/markers/MarkerBlockEditor.d.ts.map +1 -1
  291. package/dist/postinstall/markers/MarkerBlockEditor.js +48 -44
  292. package/dist/postinstall/markers/MarkerBlockEditor.js.map +1 -1
  293. package/dist/postinstall/markers/MarkerBlockService.d.ts +10 -7
  294. package/dist/postinstall/markers/MarkerBlockService.d.ts.map +1 -1
  295. package/dist/postinstall/markers/MarkerBlockService.js +44 -44
  296. package/dist/postinstall/markers/MarkerBlockService.js.map +1 -1
  297. package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts +12 -9
  298. package/dist/postinstall/markers/MarkerIntegrityValidator.d.ts.map +1 -1
  299. package/dist/postinstall/markers/MarkerIntegrityValidator.js +47 -52
  300. package/dist/postinstall/markers/MarkerIntegrityValidator.js.map +1 -1
  301. package/dist/postinstall/policy/PostinstallPolicyGate.d.ts +25 -23
  302. package/dist/postinstall/policy/PostinstallPolicyGate.d.ts.map +1 -1
  303. package/dist/postinstall/policy/PostinstallPolicyGate.js +63 -52
  304. package/dist/postinstall/policy/PostinstallPolicyGate.js.map +1 -1
  305. package/dist/postinstall/runner/PostinstallOrchestrator.d.ts +48 -45
  306. package/dist/postinstall/runner/PostinstallOrchestrator.d.ts.map +1 -1
  307. package/dist/postinstall/runner/PostinstallOrchestrator.js +172 -170
  308. package/dist/postinstall/runner/PostinstallOrchestrator.js.map +1 -1
  309. package/dist/postinstall/unreal/BuildCsInjector.d.ts +16 -13
  310. package/dist/postinstall/unreal/BuildCsInjector.d.ts.map +1 -1
  311. package/dist/postinstall/unreal/BuildCsInjector.js +58 -53
  312. package/dist/postinstall/unreal/BuildCsInjector.js.map +1 -1
  313. package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts +13 -10
  314. package/dist/postinstall/unreal/CSharpInjectionEngine.d.ts.map +1 -1
  315. package/dist/postinstall/unreal/CSharpInjectionEngine.js +56 -59
  316. package/dist/postinstall/unreal/CSharpInjectionEngine.js.map +1 -1
  317. package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts +11 -8
  318. package/dist/postinstall/unreal/CSharpStructureAnalyzer.d.ts.map +1 -1
  319. package/dist/postinstall/unreal/CSharpStructureAnalyzer.js +123 -127
  320. package/dist/postinstall/unreal/CSharpStructureAnalyzer.js.map +1 -1
  321. package/dist/postinstall/unreal/CSharpStructures.d.ts +18 -15
  322. package/dist/postinstall/unreal/CSharpStructures.d.ts.map +1 -1
  323. package/dist/postinstall/unreal/CSharpStructures.js +1 -2
  324. package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts +7 -4
  325. package/dist/postinstall/unreal/CSharpWrapperFactory.d.ts.map +1 -1
  326. package/dist/postinstall/unreal/CSharpWrapperFactory.js +54 -58
  327. package/dist/postinstall/unreal/CSharpWrapperFactory.js.map +1 -1
  328. package/dist/postinstall/unreal/PluginHash.d.ts +5 -2
  329. package/dist/postinstall/unreal/PluginHash.d.ts.map +1 -1
  330. package/dist/postinstall/unreal/PluginHash.js +13 -8
  331. package/dist/postinstall/unreal/PluginHash.js.map +1 -1
  332. package/dist/postinstall/unreal/PrettyParseError.d.ts +8 -5
  333. package/dist/postinstall/unreal/PrettyParseError.d.ts.map +1 -1
  334. package/dist/postinstall/unreal/PrettyParseError.js +37 -37
  335. package/dist/postinstall/unreal/PrettyParseError.js.map +1 -1
  336. package/dist/postinstall/unreal/ProjectFileLocator.d.ts +12 -9
  337. package/dist/postinstall/unreal/ProjectFileLocator.d.ts.map +1 -1
  338. package/dist/postinstall/unreal/ProjectFileLocator.js +49 -51
  339. package/dist/postinstall/unreal/ProjectFileLocator.js.map +1 -1
  340. package/dist/postinstall/unreal/TargetCsInjector.d.ts +16 -13
  341. package/dist/postinstall/unreal/TargetCsInjector.d.ts.map +1 -1
  342. package/dist/postinstall/unreal/TargetCsInjector.js +58 -53
  343. package/dist/postinstall/unreal/TargetCsInjector.js.map +1 -1
  344. package/dist/postinstall/unreal/UProjectInjector.d.ts +6 -3
  345. package/dist/postinstall/unreal/UProjectInjector.d.ts.map +1 -1
  346. package/dist/postinstall/unreal/UProjectInjector.js +56 -52
  347. package/dist/postinstall/unreal/UProjectInjector.js.map +1 -1
  348. package/dist/postinstall/unreal/UProjectMetadataReader.d.ts +5 -2
  349. package/dist/postinstall/unreal/UProjectMetadataReader.d.ts.map +1 -1
  350. package/dist/postinstall/unreal/UProjectMetadataReader.js +22 -18
  351. package/dist/postinstall/unreal/UProjectMetadataReader.js.map +1 -1
  352. package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts +17 -14
  353. package/dist/postinstall/unreal/UnrealSourceCatalog.d.ts.map +1 -1
  354. package/dist/postinstall/unreal/UnrealSourceCatalog.js +50 -50
  355. package/dist/postinstall/unreal/UnrealSourceCatalog.js.map +1 -1
  356. package/dist/prompts/InkPromptService.d.ts +10 -7
  357. package/dist/prompts/InkPromptService.d.ts.map +1 -1
  358. package/dist/prompts/InkPromptService.js +100 -71
  359. package/dist/prompts/InkPromptService.js.map +1 -1
  360. package/dist/prompts/ProjectContextDetector.d.ts +10 -7
  361. package/dist/prompts/ProjectContextDetector.d.ts.map +1 -1
  362. package/dist/prompts/ProjectContextDetector.js +32 -26
  363. package/dist/prompts/ProjectContextDetector.js.map +1 -1
  364. package/dist/prompts/PromptService.d.ts +11 -8
  365. package/dist/prompts/PromptService.d.ts.map +1 -1
  366. package/dist/prompts/PromptService.js +1 -8
  367. package/dist/reporting/DiagnosticDeduplicator.d.ts +8 -5
  368. package/dist/reporting/DiagnosticDeduplicator.d.ts.map +1 -1
  369. package/dist/reporting/DiagnosticDeduplicator.js +36 -35
  370. package/dist/reporting/DiagnosticDeduplicator.js.map +1 -1
  371. package/dist/reporting/DiagnosticRenderer.d.ts +11 -8
  372. package/dist/reporting/DiagnosticRenderer.d.ts.map +1 -1
  373. package/dist/reporting/DiagnosticRenderer.js +1 -2
  374. package/dist/reporting/DiagnosticReporter.d.ts +12 -9
  375. package/dist/reporting/DiagnosticReporter.d.ts.map +1 -1
  376. package/dist/reporting/DiagnosticReporter.js +40 -39
  377. package/dist/reporting/DiagnosticReporter.js.map +1 -1
  378. package/dist/reporting/InkDiagnosticRenderer.d.ts +12 -9
  379. package/dist/reporting/InkDiagnosticRenderer.d.ts.map +1 -1
  380. package/dist/reporting/InkDiagnosticRenderer.js +50 -42
  381. package/dist/reporting/InkDiagnosticRenderer.js.map +1 -1
  382. package/dist/reporting/InstallProgressReporter.d.ts +23 -20
  383. package/dist/reporting/InstallProgressReporter.d.ts.map +1 -1
  384. package/dist/reporting/InstallProgressReporter.js +48 -47
  385. package/dist/reporting/InstallProgressReporter.js.map +1 -1
  386. package/dist/reporting/JsonReporter.d.ts +16 -13
  387. package/dist/reporting/JsonReporter.d.ts.map +1 -1
  388. package/dist/reporting/JsonReporter.js +34 -20
  389. package/dist/reporting/JsonReporter.js.map +1 -1
  390. package/dist/reporting/RegistryRequestTerminalFormatter.d.ts +36 -0
  391. package/dist/reporting/RegistryRequestTerminalFormatter.d.ts.map +1 -0
  392. package/dist/reporting/RegistryRequestTerminalFormatter.js +90 -0
  393. package/dist/reporting/RegistryRequestTerminalFormatter.js.map +1 -0
  394. package/dist/reporting/TextDiagnosticRenderer.d.ts +11 -8
  395. package/dist/reporting/TextDiagnosticRenderer.d.ts.map +1 -1
  396. package/dist/reporting/TextDiagnosticRenderer.js +36 -28
  397. package/dist/reporting/TextDiagnosticRenderer.js.map +1 -1
  398. package/dist/reporting/TextSink.d.ts +14 -11
  399. package/dist/reporting/TextSink.d.ts.map +1 -1
  400. package/dist/reporting/TextSink.js +24 -20
  401. package/dist/reporting/TextSink.js.map +1 -1
  402. package/package.json +31 -32
  403. package/dist/cli/parsing/contracts/UAPKGCommandModule.js.map +0 -1
  404. package/dist/cli-bootstrap.d.ts.map +0 -1
  405. package/dist/commands/Command.js.map +0 -1
  406. package/dist/index.d.ts.map +0 -1
  407. package/dist/index.js.map +0 -1
  408. package/dist/postinstall/index.d.ts.map +0 -1
  409. package/dist/postinstall/index.js.map +0 -1
  410. package/dist/postinstall/unreal/CSharpStructures.js.map +0 -1
  411. package/dist/prompts/PromptService.js.map +0 -1
  412. package/dist/reporting/DiagnosticRenderer.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ControlPlaneClient.js","sourceRoot":"","sources":["../../src/control-plane/ControlPlaneClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAIL,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EAKrB,uBAAuB,GAExB,MAAM,wBAAwB,CAAC;AAehC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3B,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IACpB,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;KACtD,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,8BAA8B,GAAG,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AC;IACJ,CAAC;IACD,OAAO,IAAI,iBAAiB,CAC1B,uCAAuC,EACvC,mDAAmD,EACnD,KAAK,CAAC,MAAM,EACZ,SAAS,EACT,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAC;AACJ,CAAC;AAED,SAAS,yBAAyB,CAAC,MAAyB;IAC1D,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;QAAE,OAAO,SAAS,CAAC;IACxE,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;AAC9B,CAAC;AAED,KAAK,UAAU,WAAW,CAAC,QAAkB;IAC3C,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnC,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAa,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5E,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"ControlPlaneClient.js","names":[],"sources":["../../src/control-plane/ControlPlaneClient.ts"],"sourcesContent":["import { randomUUID } from 'node:crypto';\nimport * as oauth from 'oauth4webapi';\nimport { z } from 'zod';\nimport {\n type AccountSelf,\n type ActivatedCliLoginGrant,\n type CliLoginConfirmation,\n ControlPlaneError,\n isOAuthScopeToken,\n isUAPKGCliScope,\n knownUAPKGCliScopes,\n OAuthScopeInsufficientError,\n OAuthScopeUnsupportedError,\n parseOAuthScopeTokens,\n type RegistryOperation,\n type RegistryRequestDetail,\n type RegistryRequestStatus,\n type RegistryRequestSubmission,\n type RegistryRequestSummary,\n UAPKG_CONTROL_PLANE_API,\n type UAPKGCliScope,\n} from './ControlPlaneTypes.js';\n\nexport type ControlPlaneCredential =\n | {\n readonly kind: 'dpop';\n readonly accessToken: string;\n readonly dpop: oauth.DPoPHandle;\n readonly registryAlias: string;\n readonly requestedScopes: readonly UAPKGCliScope[];\n }\n | {\n readonly kind: 'bearer';\n readonly accessToken: string;\n };\n\nconst errorSchema = z.object({\n ok: z.literal(false),\n error: z.object({\n code: z.string(),\n message: z.string(),\n details: z.record(z.string(), z.unknown()).optional(),\n }),\n});\n\nconst insufficientScopeDetailsSchema = z.object({\n requiredScopes: z.array(z.string()),\n missingScopes: z.array(z.string()),\n});\n\nconst accountSchema = z.object({\n id: z.uuid(),\n username: z.string().min(1),\n displayName: z.string().min(1),\n});\n\nconst accountGrantSchema = z.object({\n id: z.uuid(),\n deviceName: z.string().min(1),\n idleExpiresAt: z.iso.datetime(),\n absoluteExpiresAt: z.iso.datetime(),\n scopes: z.array(z.string()),\n});\n\nconst accountResponseSchema = z.object({\n ok: z.literal(true),\n account: accountSchema,\n registry: z.object({\n id: z.uuid(),\n }),\n grant: accountGrantSchema,\n});\n\nconst cliLoginConfirmationResponseSchema = accountResponseSchema.extend({\n grant: accountGrantSchema.extend({\n status: z.enum(['pending', 'active']),\n activationExpiresAt: z.iso.datetime(),\n replacesGrantId: z.uuid().nullable(),\n }),\n});\n\nconst activatedCliLoginResponseSchema = z.object({\n ok: z.literal(true),\n grant: z.object({\n id: z.uuid(),\n status: z.literal('active'),\n replacesGrantId: z.uuid().nullable(),\n }),\n});\n\nconst requestStatusSchema = z.enum([\n 'queued',\n 'checking',\n 'accepted',\n 'ready',\n 'ready_superseded',\n 'rejected',\n 'operationally_failed',\n]);\n\nconst requestSummarySchema = z\n .object({\n id: z.string().min(1),\n registryId: z.string().min(1),\n kind: z.string().min(1),\n status: requestStatusSchema,\n currentStep: z.string().optional(),\n createdAt: z.number().optional(),\n updatedAt: z.number().optional(),\n payload: z\n .object({\n packageName: z.string().optional(),\n packageVersion: z.string().optional(),\n })\n .loose()\n .optional(),\n })\n .loose();\n\nconst requestCheckIdSchema = z\n .string()\n .trim()\n .min(1)\n .max(128)\n .refine((value) => !hasUnsafeDisplayCharacter(value));\nconst requestCheckReasonCodeSchema = z\n .string()\n .trim()\n .min(1)\n .max(128)\n .refine((value) => !hasUnsafeDisplayCharacter(value));\nconst terminalFailureReasonCodeSchema = z.string().regex(/^[A-Z][A-Z0-9_]{0,127}$/u);\nconst requestCheckSchema = z.object({\n checkId: requestCheckIdSchema,\n executionState: z.enum(['pending', 'running', 'retrying', 'blocked_by_dependency', 'completed']),\n conclusion: z.enum(['success', 'failure', 'skipped']).optional(),\n reasonCode: requestCheckReasonCodeSchema.optional(),\n});\nconst terminalFailureSchema = z.object({\n reasonCode: terminalFailureReasonCodeSchema,\n attempts: z.number().int().positive().max(Number.MAX_SAFE_INTEGER).optional(),\n maxAttempts: z.number().int().positive().max(Number.MAX_SAFE_INTEGER).optional(),\n});\nconst requestDetailResponseSchema = z.object({\n ok: z.literal(true),\n request: requestSummarySchema,\n checks: z.array(requestCheckSchema).max(100).optional(),\n terminalFailure: terminalFailureSchema.optional(),\n});\n\nexport class ControlPlaneClient {\n private readonly apiBaseUrl: string;\n\n public constructor(apiBaseUrl = UAPKG_CONTROL_PLANE_API) {\n const normalized = new URL(apiBaseUrl).href.replace(/\\/+$/, '');\n if (normalized !== UAPKG_CONTROL_PLANE_API) {\n throw new Error(`UAPKG v1 control-plane requests are pinned to ${UAPKG_CONTROL_PLANE_API}.`);\n }\n this.apiBaseUrl = normalized;\n }\n\n public async getSelf(credential: ControlPlaneCredential, signal?: AbortSignal): Promise<AccountSelf> {\n const value = await this.requestJson(credential, 'GET', '/v1/account/self', { signal });\n const parsed = accountResponseSchema.safeParse(value);\n if (!parsed.success) {\n throw new ControlPlaneError('ACCOUNT_SELF_RESPONSE_INVALID', 'The account identity response was invalid.');\n }\n return {\n account: parsed.data.account,\n registry: parsed.data.registry,\n grant: parsed.data.grant,\n };\n }\n\n public async getCliLoginConfirmation(\n credential: ControlPlaneCredential,\n signal?: AbortSignal,\n ): Promise<CliLoginConfirmation> {\n const value = await this.requestJson(credential, 'GET', '/v1/account/cli-login/confirmation', { signal });\n const parsed = cliLoginConfirmationResponseSchema.safeParse(value);\n if (!parsed.success) {\n throw new ControlPlaneError(\n 'CLI_LOGIN_CONFIRMATION_RESPONSE_INVALID',\n 'The CLI login confirmation response was invalid.',\n );\n }\n return {\n account: parsed.data.account,\n registry: parsed.data.registry,\n grant: parsed.data.grant,\n };\n }\n\n public async confirmCliLogin(\n credential: ControlPlaneCredential,\n signal?: AbortSignal,\n ): Promise<ActivatedCliLoginGrant> {\n const value = await this.requestJson(credential, 'POST', '/v1/account/cli-login/confirmation', { signal });\n const parsed = activatedCliLoginResponseSchema.safeParse(value);\n if (!parsed.success) {\n throw new ControlPlaneError(\n 'CLI_LOGIN_CONFIRMATION_RESPONSE_INVALID',\n 'The CLI login confirmation response was invalid.',\n );\n }\n return parsed.data.grant;\n }\n\n public async submitRegistryRequest(\n credential: ControlPlaneCredential,\n operation: RegistryOperation,\n submission: RegistryRequestSubmission,\n options: { readonly idempotencyKey?: string; readonly otp?: string } = {},\n ): Promise<{ requestId: string; status: RegistryRequestStatus; message: string }> {\n const value = await this.requestJson(credential, 'POST', `/v1/registry-requests/${encodeURIComponent(operation)}`, {\n body: JSON.stringify(submission),\n headers: {\n 'content-type': 'application/json',\n 'x-uapkg-idempotency-key': options.idempotencyKey ?? randomUUID(),\n ...(options.otp ? { 'x-uapkg-otp': options.otp } : {}),\n },\n });\n const parsed = z\n .object({\n ok: z.literal(true),\n requestId: z.string().min(1),\n status: requestStatusSchema,\n message: z.string(),\n })\n .safeParse(value);\n if (!parsed.success) {\n throw new ControlPlaneError('REGISTRY_REQUEST_RESPONSE_INVALID', 'The publishing request response was invalid.');\n }\n return parsed.data;\n }\n\n public async getRegistryRequest(\n credential: ControlPlaneCredential,\n requestId: string,\n ): Promise<RegistryRequestSummary> {\n const value = await this.requestJson(credential, 'GET', `/v1/registry-requests/${encodeURIComponent(requestId)}`);\n const parsed = z.object({ ok: z.literal(true), request: requestSummarySchema }).safeParse(value);\n if (!parsed.success) {\n throw new ControlPlaneError('REGISTRY_REQUEST_RESPONSE_INVALID', 'The publishing request response was invalid.');\n }\n return parsed.data.request;\n }\n\n /**\n * Reads the additive request-detail projection. The older\n * `getRegistryRequest` method deliberately remains summary-only so callers\n * compiled against the original response contract keep their behavior.\n */\n public async getRegistryRequestDetail(\n credential: ControlPlaneCredential,\n requestId: string,\n ): Promise<RegistryRequestDetail> {\n const value = await this.requestJson(credential, 'GET', `/v1/registry-requests/${encodeURIComponent(requestId)}`);\n const parsed = requestDetailResponseSchema.safeParse(value);\n if (!parsed.success) {\n throw new ControlPlaneError('REGISTRY_REQUEST_RESPONSE_INVALID', 'The publishing request response was invalid.');\n }\n return {\n request: parsed.data.request,\n ...(parsed.data.checks ? { checks: parsed.data.checks } : {}),\n ...(parsed.data.terminalFailure ? { terminalFailure: parsed.data.terminalFailure } : {}),\n };\n }\n\n public async listRegistryRequests(\n credential: ControlPlaneCredential,\n registryId: string,\n status?: RegistryRequestStatus,\n ): Promise<RegistryRequestSummary[]> {\n const query = new URLSearchParams({ registryId });\n if (status) query.set('status', status);\n const value = await this.requestJson(credential, 'GET', `/v1/registry-requests?${query.toString()}`);\n const parsed = z\n .object({\n ok: z.literal(true),\n recentRequests: z.array(requestSummarySchema).optional(),\n requests: z.array(requestSummarySchema).optional(),\n })\n .safeParse(value);\n if (!parsed.success || (!parsed.data.recentRequests && !parsed.data.requests)) {\n throw new ControlPlaneError(\n 'REGISTRY_REQUEST_LIST_RESPONSE_INVALID',\n 'The publishing request list response was invalid.',\n );\n }\n return parsed.data.recentRequests ?? parsed.data.requests ?? [];\n }\n\n private async requestJson(\n credential: ControlPlaneCredential,\n method: string,\n path: string,\n init: {\n readonly headers?: Readonly<Record<string, string>>;\n readonly body?: string;\n readonly signal?: AbortSignal;\n } = {},\n ): Promise<unknown> {\n const url = new URL(path, this.apiBaseUrl);\n const headers = new Headers(init.headers);\n let response: Response;\n\n if (credential.kind === 'dpop') {\n try {\n response = await this.withDPoPNonceRetry(() =>\n oauth.protectedResourceRequest(credential.accessToken, method, url, headers, init.body, {\n DPoP: credential.dpop,\n signal: boundedRequestSignal(init.signal),\n }),\n );\n } catch (error) {\n if (error instanceof oauth.WWWAuthenticateChallengeError) {\n throw await controlPlaneChallengeError(error, credential);\n }\n throw error;\n }\n } else {\n headers.set('authorization', `Bearer ${credential.accessToken}`);\n response = await fetch(url, {\n method,\n headers,\n body: init.body,\n redirect: 'error',\n signal: boundedRequestSignal(init.signal),\n });\n }\n\n const value = await readJson(response);\n if (!response.ok) {\n const parsed = errorSchema.safeParse(value);\n if (parsed.success) {\n throw new ControlPlaneError(\n parsed.data.error.code,\n parsed.data.error.message,\n response.status,\n parsed.data.error.details,\n );\n }\n throw new ControlPlaneError(\n `HTTP_${response.status}`,\n `The UAPKG control plane returned HTTP ${response.status}.`,\n response.status,\n );\n }\n return value;\n }\n\n private async withDPoPNonceRetry<T>(operation: () => Promise<T>): Promise<T> {\n try {\n return await operation();\n } catch (error) {\n if (!oauth.isDPoPNonceError(error)) throw error;\n return operation();\n }\n }\n}\n\nfunction hasUnsafeDisplayCharacter(value: string): boolean {\n for (const character of value) {\n const codePoint = character.codePointAt(0);\n if (\n codePoint !== undefined &&\n (codePoint <= 0x1f ||\n (codePoint >= 0x7f && codePoint <= 0x9f) ||\n codePoint === 0x061c ||\n codePoint === 0x200e ||\n codePoint === 0x200f ||\n (codePoint >= 0x2028 && codePoint <= 0x202e) ||\n (codePoint >= 0x2066 && codePoint <= 0x2069))\n ) {\n return true;\n }\n }\n return false;\n}\n\nfunction boundedRequestSignal(signal?: AbortSignal): AbortSignal {\n const timeout = AbortSignal.timeout(30_000);\n return signal ? AbortSignal.any([signal, timeout]) : timeout;\n}\n\nasync function readJson(response: Response): Promise<unknown> {\n const text = await response.text();\n if (text.trim().length === 0) return {};\n try {\n return JSON.parse(text) as unknown;\n } catch (error) {\n throw new ControlPlaneError(\n 'CONTROL_PLANE_RESPONSE_NOT_JSON',\n `The UAPKG control plane returned a non-JSON response (HTTP ${response.status}).`,\n response.status,\n undefined,\n { cause: error },\n );\n }\n}\n\nasync function controlPlaneChallengeError(\n error: oauth.WWWAuthenticateChallengeError,\n credential: Extract<ControlPlaneCredential, { readonly kind: 'dpop' }>,\n): Promise<ControlPlaneError> {\n const value = await tryReadJson(error.response);\n const parsed = errorSchema.safeParse(value);\n\n if (error.status === 403 && parsed.success && parsed.data.error.code === 'OAUTH_SCOPE_INSUFFICIENT') {\n const details = insufficientScopeDetailsSchema.safeParse(parsed.data.error.details);\n if (details.success) {\n const headerRequiredScopeTokens = error.cause.flatMap((challenge) =>\n challenge.scheme === 'dpop' && challenge.parameters.error === 'insufficient_scope'\n ? parseOAuthScopeTokens(challenge.parameters.scope)\n : [],\n );\n const bodyRequiredScopeTokens = validatedOAuthScopeTokens(details.data.requiredScopes);\n const bodyMissingScopeTokens = validatedOAuthScopeTokens(details.data.missingScopes);\n if (bodyRequiredScopeTokens && bodyMissingScopeTokens) {\n const consistentRequiredScopeTokens = headerRequiredScopeTokens.filter((scope) =>\n bodyRequiredScopeTokens.includes(scope),\n );\n const consistentMissingScopeTokens = consistentRequiredScopeTokens.filter((scope) =>\n bodyMissingScopeTokens.includes(scope),\n );\n const requestedScopes = knownUAPKGCliScopes(credential.requestedScopes);\n if (consistentMissingScopeTokens.some((scope) => !isUAPKGCliScope(scope))) {\n return new OAuthScopeUnsupportedError(credential.registryAlias, requestedScopes, [], {\n cause: error,\n reason: 'cli-update-required',\n status: error.status,\n });\n }\n\n const requiredScopes = knownUAPKGCliScopes(consistentRequiredScopeTokens);\n const missingScopes = knownUAPKGCliScopes(consistentMissingScopeTokens).filter((scope) =>\n requestedScopes.includes(scope),\n );\n if (requiredScopes.length > 0 && missingScopes.length > 0) {\n return new OAuthScopeInsufficientError(\n parsed.data.error.message,\n credential.registryAlias,\n requestedScopes,\n requiredScopes,\n missingScopes,\n error.status,\n { cause: error },\n );\n }\n }\n }\n }\n\n if (parsed.success) {\n return new ControlPlaneError(\n parsed.data.error.code,\n parsed.data.error.message,\n error.status,\n parsed.data.error.details,\n { cause: error },\n );\n }\n return new ControlPlaneError(\n 'CONTROL_PLANE_AUTHENTICATION_REQUIRED',\n 'The UAPKG control plane rejected the saved login.',\n error.status,\n undefined,\n { cause: error },\n );\n}\n\nfunction validatedOAuthScopeTokens(values: readonly string[]): string[] | undefined {\n if (values.some((scope) => !isOAuthScopeToken(scope))) return undefined;\n return [...new Set(values)];\n}\n\nasync function tryReadJson(response: Response): Promise<unknown> {\n try {\n const text = await response.text();\n return text.trim().length > 0 ? (JSON.parse(text) as unknown) : undefined;\n } catch {\n return undefined;\n }\n}\n"],"mappings":";;;;;;AAoCA,MAAM,cAAc,EAAE,OAAO;CAC3B,IAAI,EAAE,QAAQ,KAAK;CACnB,OAAO,EAAE,OAAO;EACd,MAAM,EAAE,OAAO;EACf,SAAS,EAAE,OAAO;EAClB,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS;CACtD,CAAC;AACH,CAAC;AAED,MAAM,iCAAiC,EAAE,OAAO;CAC9C,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC;CAClC,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,CAAC;AAED,MAAM,gBAAgB,EAAE,OAAO;CAC7B,IAAI,EAAE,KAAK;CACX,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CAC1B,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;AAC/B,CAAC;AAED,MAAM,qBAAqB,EAAE,OAAO;CAClC,IAAI,EAAE,KAAK;CACX,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CAC5B,eAAe,EAAE,IAAI,SAAS;CAC9B,mBAAmB,EAAE,IAAI,SAAS;CAClC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC;AAC5B,CAAC;AAED,MAAM,wBAAwB,EAAE,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AM,IAAI,IAAgB;CAClE,QAAQ;EACN;CACF;AACF"}
@@ -1,13 +1,16 @@
1
- import type { UAPKGBuildMode } from '@uapkg/common';
2
- export interface UAPKGControlPlaneEndpoints {
3
- readonly issuer: string;
4
- readonly apiBaseUrl: string;
1
+ import { UAPKGBuildMode } from "@uapkg/common";
2
+ //#region src/control-plane/ControlPlaneEndpoints.d.ts
3
+ interface UAPKGControlPlaneEndpoints {
4
+ readonly issuer: string;
5
+ readonly apiBaseUrl: string;
5
6
  }
6
7
  /**
7
8
  * Only an explicitly stamped development build can select development trust
8
9
  * roots. Source execution and any unrecognized runtime value fail closed to
9
10
  * the production control plane.
10
11
  */
11
- export declare function controlPlaneEndpointsForBuildMode(mode: UAPKGBuildMode): UAPKGControlPlaneEndpoints;
12
- export declare const UAPKG_CONTROL_PLANE_ENDPOINTS: UAPKGControlPlaneEndpoints;
12
+ declare function controlPlaneEndpointsForBuildMode(mode: UAPKGBuildMode): UAPKGControlPlaneEndpoints;
13
+ declare const UAPKG_CONTROL_PLANE_ENDPOINTS: UAPKGControlPlaneEndpoints;
14
+ //#endregion
15
+ export { UAPKGControlPlaneEndpoints, UAPKG_CONTROL_PLANE_ENDPOINTS, controlPlaneEndpointsForBuildMode };
13
16
  //# sourceMappingURL=ControlPlaneEndpoints.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ControlPlaneEndpoints.d.ts","sourceRoot":"","sources":["../../src/control-plane/ControlPlaneEndpoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAGpD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;AAYD;;;;GAIG;AACH,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,cAAc,GAAG,0BAA0B,CAElG;AAED,eAAO,MAAM,6BAA6B,4BAA+D,CAAC"}
1
+ {"version":3,"file":"ControlPlaneEndpoints.d.ts","names":[],"sources":["../../src/control-plane/ControlPlaneEndpoints.ts"],"mappings":";;UAGiB;WACN;WACA;;;;;;;iBAkBK,kCAAkC,MAAM,iBAAiB;cAI5D,+BAA6B"}
@@ -1,19 +1,24 @@
1
- import { UAPKG_BUILD_METADATA } from '../build/BuildMetadata.js';
1
+ import { UAPKG_BUILD_METADATA } from "../build/BuildMetadata.js";
2
+
3
+ //#region src/control-plane/ControlPlaneEndpoints.ts
2
4
  const DEVELOPMENT_ENDPOINTS = Object.freeze({
3
- issuer: 'https://account-dev.uapkg.dev/oauth',
4
- apiBaseUrl: 'https://api-dev.uapkg.dev',
5
+ issuer: "https://account-dev.uapkg.dev/oauth",
6
+ apiBaseUrl: "https://api-dev.uapkg.dev"
5
7
  });
6
8
  const PRODUCTION_ENDPOINTS = Object.freeze({
7
- issuer: 'https://account.uapkg.dev/oauth',
8
- apiBaseUrl: 'https://api.uapkg.dev',
9
+ issuer: "https://account.uapkg.dev/oauth",
10
+ apiBaseUrl: "https://api.uapkg.dev"
9
11
  });
10
12
  /**
11
- * Only an explicitly stamped development build can select development trust
12
- * roots. Source execution and any unrecognized runtime value fail closed to
13
- * the production control plane.
14
- */
15
- export function controlPlaneEndpointsForBuildMode(mode) {
16
- return mode === 'development' ? DEVELOPMENT_ENDPOINTS : PRODUCTION_ENDPOINTS;
13
+ * Only an explicitly stamped development build can select development trust
14
+ * roots. Source execution and any unrecognized runtime value fail closed to
15
+ * the production control plane.
16
+ */
17
+ function controlPlaneEndpointsForBuildMode(mode) {
18
+ return mode === "development" ? DEVELOPMENT_ENDPOINTS : PRODUCTION_ENDPOINTS;
17
19
  }
18
- export const UAPKG_CONTROL_PLANE_ENDPOINTS = controlPlaneEndpointsForBuildMode(UAPKG_BUILD_METADATA.mode);
20
+ const UAPKG_CONTROL_PLANE_ENDPOINTS = controlPlaneEndpointsForBuildMode(UAPKG_BUILD_METADATA.mode);
21
+
22
+ //#endregion
23
+ export { UAPKG_CONTROL_PLANE_ENDPOINTS, controlPlaneEndpointsForBuildMode };
19
24
  //# sourceMappingURL=ControlPlaneEndpoints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ControlPlaneEndpoints.js","sourceRoot":"","sources":["../../src/control-plane/ControlPlaneEndpoints.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAOjE,MAAM,qBAAqB,GAA+B,MAAM,CAAC,MAAM,CAAC;IACtE,MAAM,EAAE,qCAAqC;IAC7C,UAAU,EAAE,2BAA2B;CACxC,CAAC,CAAC;AAEH,MAAM,oBAAoB,GAA+B,MAAM,CAAC,MAAM,CAAC;IACrE,MAAM,EAAE,iCAAiC;IACzC,UAAU,EAAE,uBAAuB;CACpC,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,UAAU,iCAAiC,CAAC,IAAoB;IACpE,OAAO,IAAI,KAAK,aAAa,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,oBAAoB,CAAC;AAC/E,CAAC;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,iCAAiC,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC"}
1
+ {"version":3,"file":"ControlPlaneEndpoints.js","names":[],"sources":["../../src/control-plane/ControlPlaneEndpoints.ts"],"sourcesContent":["import type { UAPKGBuildMode } from '@uapkg/common';\nimport { UAPKG_BUILD_METADATA } from '../build/BuildMetadata.js';\n\nexport interface UAPKGControlPlaneEndpoints {\n readonly issuer: string;\n readonly apiBaseUrl: string;\n}\n\nconst DEVELOPMENT_ENDPOINTS: UAPKGControlPlaneEndpoints = Object.freeze({\n issuer: 'https://account-dev.uapkg.dev/oauth',\n apiBaseUrl: 'https://api-dev.uapkg.dev',\n});\n\nconst PRODUCTION_ENDPOINTS: UAPKGControlPlaneEndpoints = Object.freeze({\n issuer: 'https://account.uapkg.dev/oauth',\n apiBaseUrl: 'https://api.uapkg.dev',\n});\n\n/**\n * Only an explicitly stamped development build can select development trust\n * roots. Source execution and any unrecognized runtime value fail closed to\n * the production control plane.\n */\nexport function controlPlaneEndpointsForBuildMode(mode: UAPKGBuildMode): UAPKGControlPlaneEndpoints {\n return mode === 'development' ? DEVELOPMENT_ENDPOINTS : PRODUCTION_ENDPOINTS;\n}\n\nexport const UAPKG_CONTROL_PLANE_ENDPOINTS = controlPlaneEndpointsForBuildMode(UAPKG_BUILD_METADATA.mode);\n"],"mappings":";;;AAQA,MAAM,wBAAoD,OAAO,OAAO;CACtE,QAAQ;CACR,YAAY;AACd,CAAC;AAED,MAAM,uBAAmD,OAAO,OAAO;CACrE,QAAQ;CACR,YAAY;AACd,CAAC;;;;;;AAOD,SAAgB,kCAAkC,MAAkD;CAClG,OAAO,SAAS,gBAAgB,wBAAwB;AAC1D;AAEA,MAAa,gCAAgC,kCAAkC,qBAAqB,IAAI"}
@@ -1,168 +1,192 @@
1
- export declare const UAPKG_AUTHORIZATION_ISSUER: string;
2
- export declare const UAPKG_CONTROL_PLANE_API: string;
3
- export declare const UAPKG_CLI_CLIENT_ID = "uapkg-cli";
4
- export declare const UAPKG_GITHUB_OIDC_AUDIENCE = "uapkg";
5
- export declare const UAPKG_CLI_SCOPES: readonly ["identity.self.read", "publishing.request.create", "publishing.request.read.self", "registry_grant.revoke.self"];
6
- export type UAPKGCliScope = (typeof UAPKG_CLI_SCOPES)[number];
7
- export declare function knownUAPKGCliScopes(value: unknown): UAPKGCliScope[];
8
- export declare function parseUAPKGCliScopeString(value: unknown): UAPKGCliScope[];
9
- export declare function parseOAuthScopeTokens(value: unknown): string[];
10
- export declare function isOAuthScopeToken(value: unknown): value is string;
11
- export declare function isUAPKGCliScope(value: unknown): value is UAPKGCliScope;
12
- export type ControlPlaneAuthMode = 'auto' | 'login' | 'gat' | 'oidc';
13
- export interface RegistryTrust {
14
- readonly alias: string;
15
- readonly registryId: string;
16
- readonly registryName: string;
17
- readonly repositoryUrl: string;
18
- readonly repositoryFingerprint: string;
19
- readonly issuer: string;
20
- readonly apiBaseUrl: string;
21
- readonly resource: string;
22
- readonly cacheShortId: string;
23
- }
24
- export interface AccountDisplayMetadata {
1
+ //#region src/control-plane/ControlPlaneTypes.d.ts
2
+ declare const UAPKG_AUTHORIZATION_ISSUER: string;
3
+ declare const UAPKG_CONTROL_PLANE_API: string;
4
+ declare const UAPKG_CLI_CLIENT_ID = "uapkg-cli";
5
+ declare const UAPKG_GITHUB_OIDC_AUDIENCE = "uapkg";
6
+ declare const UAPKG_CLI_SCOPES: readonly ['identity.self.read', 'publishing.request.create', 'publishing.request.read.self', 'registry_grant.revoke.self'];
7
+ type UAPKGCliScope = (typeof UAPKG_CLI_SCOPES)[number];
8
+ declare function knownUAPKGCliScopes(value: unknown): UAPKGCliScope[];
9
+ declare function parseUAPKGCliScopeString(value: unknown): UAPKGCliScope[];
10
+ declare function parseOAuthScopeTokens(value: unknown): string[];
11
+ declare function isOAuthScopeToken(value: unknown): value is string;
12
+ declare function isUAPKGCliScope(value: unknown): value is UAPKGCliScope;
13
+ type ControlPlaneAuthMode = 'auto' | 'login' | 'gat' | 'oidc';
14
+ interface RegistryTrust {
15
+ readonly alias: string;
16
+ readonly registryId: string;
17
+ readonly registryName: string;
18
+ readonly repositoryUrl: string;
19
+ readonly repositoryFingerprint: string;
20
+ readonly issuer: string;
21
+ readonly apiBaseUrl: string;
22
+ readonly resource: string;
23
+ readonly cacheShortId: string;
24
+ }
25
+ interface AccountDisplayMetadata {
26
+ readonly id: string;
27
+ readonly username: string;
28
+ readonly displayName: string;
29
+ }
30
+ interface AccountSelf {
31
+ readonly account: AccountDisplayMetadata;
32
+ readonly registry: {
25
33
  readonly id: string;
26
- readonly username: string;
27
- readonly displayName: string;
28
- }
29
- export interface AccountSelf {
30
- readonly account: AccountDisplayMetadata;
31
- readonly registry: {
32
- readonly id: string;
33
- };
34
- readonly grant: {
35
- readonly id: string;
36
- readonly deviceName: string;
37
- readonly idleExpiresAt: string;
38
- readonly absoluteExpiresAt: string;
39
- readonly scopes: readonly string[];
40
- };
41
- }
42
- export interface CliLoginConfirmation extends AccountSelf {
43
- readonly grant: AccountSelf['grant'] & {
44
- readonly status: 'pending' | 'active';
45
- readonly activationExpiresAt: string;
46
- readonly replacesGrantId: string | null;
47
- };
48
- }
49
- export interface ActivatedCliLoginGrant {
34
+ };
35
+ readonly grant: {
50
36
  readonly id: string;
51
- readonly status: 'active';
52
- readonly replacesGrantId: string | null;
53
- }
54
- export interface RegistryGrantMetadata {
55
- readonly issuer: string;
56
- readonly registryId: string;
57
- readonly registryName: string;
58
- readonly grantId: string;
59
- readonly clientId: string;
60
- readonly keyReference: string;
61
- readonly refreshTokenReference: string;
62
- readonly publicKeyThumbprint: string;
63
37
  readonly deviceName: string;
64
- readonly repositoryFingerprint: string;
65
- readonly account: AccountDisplayMetadata;
66
- readonly createdAt: number;
67
- readonly idleExpiresAt: number;
68
- readonly expiresAt: number;
69
- }
70
- export interface AuthMetadataFile {
71
- readonly schemaVersion: 1;
72
- readonly grants: Readonly<Record<string, RegistryGrantMetadata>>;
73
- }
74
- export interface RegistryRequestSource {
75
- readonly type: 'github_release';
76
- readonly repository: string;
77
- readonly releaseTag: string;
78
- readonly assetName: string;
38
+ readonly idleExpiresAt: string;
39
+ readonly absoluteExpiresAt: string;
40
+ readonly scopes: readonly string[];
41
+ };
42
+ }
43
+ interface CliLoginConfirmation extends AccountSelf {
44
+ readonly grant: AccountSelf['grant'] & {
45
+ readonly status: 'pending' | 'active';
46
+ readonly activationExpiresAt: string;
47
+ readonly replacesGrantId: string | null;
48
+ };
49
+ }
50
+ interface ActivatedCliLoginGrant {
51
+ readonly id: string;
52
+ readonly status: 'active';
53
+ readonly replacesGrantId: string | null;
54
+ }
55
+ interface RegistryGrantMetadata {
56
+ readonly issuer: string;
57
+ readonly registryId: string;
58
+ readonly registryName: string;
59
+ readonly grantId: string;
60
+ readonly clientId: string;
61
+ readonly keyReference: string;
62
+ readonly refreshTokenReference: string;
63
+ readonly publicKeyThumbprint: string;
64
+ readonly deviceName: string;
65
+ readonly repositoryFingerprint: string;
66
+ readonly account: AccountDisplayMetadata;
67
+ readonly createdAt: number;
68
+ readonly idleExpiresAt: number;
69
+ readonly expiresAt: number;
70
+ }
71
+ interface AuthMetadataFile {
72
+ readonly schemaVersion: 1;
73
+ readonly grants: Readonly<Record<string, RegistryGrantMetadata>>;
74
+ }
75
+ interface RegistryRequestSource {
76
+ readonly type: 'github_release';
77
+ readonly repository: string;
78
+ readonly releaseTag: string;
79
+ readonly assetName: string;
79
80
  }
80
81
  /** Artifact integrity observed by this client from the exact bytes it inspected. */
81
- export interface ObservedArtifactIntegrity {
82
- /** Exactly `sha256:` + 64 lowercase hex characters. */
83
- readonly sha256: string;
84
- readonly sizeBytes: number;
82
+ interface ObservedArtifactIntegrity {
83
+ /** Exactly `sha256:` + 64 lowercase hex characters. */
84
+ readonly sha256: string;
85
+ readonly sizeBytes: number;
85
86
  }
86
87
  /** Normalized packaged-manifest claims submitted with a publish request. */
87
- export interface SubmittedPackageClaims {
88
- readonly name: string;
88
+ interface SubmittedPackageClaims {
89
+ readonly name: string;
90
+ readonly version: string;
91
+ readonly private: boolean;
92
+ readonly dependencies: Readonly<Record<string, {
89
93
  readonly version: string;
90
- readonly private: boolean;
91
- readonly dependencies: Readonly<Record<string, {
92
- readonly version: string;
93
- readonly registry?: string;
94
- }>>;
95
- readonly devDependencies: Readonly<Record<string, {
96
- readonly version: string;
97
- readonly registry?: string;
98
- }>>;
99
- readonly peerDependencies: Readonly<Record<string, {
100
- readonly version: string;
101
- readonly registry?: string;
102
- }>>;
94
+ readonly registry?: string;
95
+ }>>;
96
+ readonly devDependencies: Readonly<Record<string, {
97
+ readonly version: string;
98
+ readonly registry?: string;
99
+ }>>;
100
+ readonly peerDependencies: Readonly<Record<string, {
101
+ readonly version: string;
102
+ readonly registry?: string;
103
+ }>>;
103
104
  }
104
105
  /** The six route-derived registry operations (PS-REQ-001). */
105
- export type RegistryOperation = 'publish' | 'unpublish' | 'yank' | 'unyank' | 'deprecate' | 'undeprecate';
106
+ type RegistryOperation = 'publish' | 'unpublish' | 'yank' | 'unyank' | 'deprecate' | 'undeprecate';
106
107
  /**
107
108
  * Body for `POST /v1/registry-requests/{operation}`. The operation is
108
109
  * derived from the route; the body never carries a kind.
109
110
  */
110
- export interface RegistryRequestSubmission {
111
- readonly registryId: string;
112
- readonly ownerOrganizationName?: string;
113
- readonly payload: {
114
- readonly packageName: string;
115
- readonly packageVersion: string;
116
- readonly source?: RegistryRequestSource;
117
- readonly observedIntegrity?: ObservedArtifactIntegrity;
118
- readonly claims?: SubmittedPackageClaims;
119
- readonly reason?: string;
120
- };
121
- }
122
- export type RegistryRequestStatus = 'queued' | 'checking' | 'accepted' | 'ready' | 'ready_superseded' | 'rejected' | 'operationally_failed';
123
- export interface RegistryRequestSummary {
124
- readonly id: string;
125
- readonly registryId: string;
126
- readonly kind: string;
127
- readonly status: RegistryRequestStatus;
128
- readonly currentStep?: string;
129
- readonly createdAt?: number;
130
- readonly updatedAt?: number;
131
- readonly payload?: {
132
- readonly packageName?: string;
133
- readonly packageVersion?: string;
134
- };
135
- }
136
- export interface ControlPlaneApiErrorBody {
137
- readonly ok: false;
138
- readonly error: {
139
- readonly code: string;
140
- readonly message: string;
141
- readonly details?: Readonly<Record<string, unknown>>;
142
- };
143
- }
144
- export declare class ControlPlaneError extends Error {
111
+ interface RegistryRequestSubmission {
112
+ readonly registryId: string;
113
+ readonly ownerOrganizationName?: string;
114
+ readonly payload: {
115
+ readonly packageName: string;
116
+ readonly packageVersion: string;
117
+ readonly source?: RegistryRequestSource;
118
+ readonly observedIntegrity?: ObservedArtifactIntegrity;
119
+ readonly claims?: SubmittedPackageClaims;
120
+ readonly reason?: string;
121
+ };
122
+ }
123
+ type RegistryRequestStatus = 'queued' | 'checking' | 'accepted' | 'ready' | 'ready_superseded' | 'rejected' | 'operationally_failed';
124
+ interface RegistryRequestSummary {
125
+ readonly id: string;
126
+ readonly registryId: string;
127
+ readonly kind: string;
128
+ readonly status: RegistryRequestStatus;
129
+ readonly currentStep?: string;
130
+ readonly createdAt?: number;
131
+ readonly updatedAt?: number;
132
+ readonly payload?: {
133
+ readonly packageName?: string;
134
+ readonly packageVersion?: string;
135
+ };
136
+ }
137
+ type RegistryRequestCheckExecutionState = 'pending' | 'running' | 'retrying' | 'blocked_by_dependency' | 'completed';
138
+ type RegistryRequestCheckConclusion = 'success' | 'failure' | 'skipped';
139
+ /** One bounded, caller-visible result from the request's sealed check plan. */
140
+ interface RegistryRequestCheck {
141
+ readonly checkId: string;
142
+ readonly executionState: RegistryRequestCheckExecutionState;
143
+ readonly conclusion?: RegistryRequestCheckConclusion;
144
+ readonly reasonCode?: string;
145
+ }
146
+ /** Sanitized durable retry-exhaustion details for an operational failure. */
147
+ interface RegistryRequestTerminalFailure {
148
+ readonly reasonCode: string;
149
+ readonly attempts?: number;
150
+ readonly maxAttempts?: number;
151
+ }
152
+ /** Additive detail returned by the request-status endpoint. */
153
+ interface RegistryRequestDetail {
154
+ readonly request: RegistryRequestSummary;
155
+ readonly checks?: readonly RegistryRequestCheck[];
156
+ readonly terminalFailure?: RegistryRequestTerminalFailure;
157
+ }
158
+ interface ControlPlaneApiErrorBody {
159
+ readonly ok: false;
160
+ readonly error: {
145
161
  readonly code: string;
146
- readonly status?: number | undefined;
147
- readonly details?: Readonly<Record<string, unknown>> | undefined;
148
- constructor(code: string, message: string, status?: number | undefined, details?: Readonly<Record<string, unknown>> | undefined, options?: ErrorOptions);
149
- }
150
- export declare class OAuthScopeInsufficientError extends ControlPlaneError {
151
- readonly registryAlias: string;
152
- readonly requestedScopes: readonly UAPKGCliScope[];
153
- readonly requiredScopes: readonly UAPKGCliScope[];
154
- readonly missingScopes: readonly UAPKGCliScope[];
155
- constructor(message: string, registryAlias: string, requestedScopes: readonly UAPKGCliScope[], requiredScopes: readonly UAPKGCliScope[], missingScopes: readonly UAPKGCliScope[], status?: number, options?: ErrorOptions);
156
- }
157
- export declare class OAuthScopeUnsupportedError extends ControlPlaneError {
158
- readonly registryAlias: string;
159
- readonly requestedScopes: readonly UAPKGCliScope[];
160
- readonly unsupportedScopes: readonly UAPKGCliScope[];
161
- readonly reason: 'issuer-does-not-support-requested-scope' | 'cli-update-required';
162
- constructor(registryAlias: string, requestedScopes: readonly UAPKGCliScope[], unsupportedScopes: readonly UAPKGCliScope[], options?: ErrorOptions & {
163
- readonly reason?: 'issuer-does-not-support-requested-scope' | 'cli-update-required';
164
- readonly status?: number;
165
- });
166
- }
167
- export declare function registryAudience(registryId: string): string;
162
+ readonly message: string;
163
+ readonly details?: Readonly<Record<string, unknown>>;
164
+ };
165
+ }
166
+ declare class ControlPlaneError extends Error {
167
+ readonly code: string;
168
+ readonly status?: number | undefined;
169
+ readonly details?: Readonly<Record<string, unknown>> | undefined;
170
+ constructor(code: string, message: string, status?: number | undefined, details?: Readonly<Record<string, unknown>> | undefined, options?: ErrorOptions);
171
+ }
172
+ declare class OAuthScopeInsufficientError extends ControlPlaneError {
173
+ readonly registryAlias: string;
174
+ readonly requestedScopes: readonly UAPKGCliScope[];
175
+ readonly requiredScopes: readonly UAPKGCliScope[];
176
+ readonly missingScopes: readonly UAPKGCliScope[];
177
+ constructor(message: string, registryAlias: string, requestedScopes: readonly UAPKGCliScope[], requiredScopes: readonly UAPKGCliScope[], missingScopes: readonly UAPKGCliScope[], status?: number, options?: ErrorOptions);
178
+ }
179
+ declare class OAuthScopeUnsupportedError extends ControlPlaneError {
180
+ readonly registryAlias: string;
181
+ readonly requestedScopes: readonly UAPKGCliScope[];
182
+ readonly unsupportedScopes: readonly UAPKGCliScope[];
183
+ readonly reason: 'issuer-does-not-support-requested-scope' | 'cli-update-required';
184
+ constructor(registryAlias: string, requestedScopes: readonly UAPKGCliScope[], unsupportedScopes: readonly UAPKGCliScope[], options?: ErrorOptions & {
185
+ readonly reason?: 'issuer-does-not-support-requested-scope' | 'cli-update-required';
186
+ readonly status?: number;
187
+ });
188
+ }
189
+ declare function registryAudience(registryId: string): string;
190
+ //#endregion
191
+ export { AccountDisplayMetadata, AccountSelf, ActivatedCliLoginGrant, AuthMetadataFile, CliLoginConfirmation, ControlPlaneApiErrorBody, ControlPlaneAuthMode, ControlPlaneError, OAuthScopeInsufficientError, OAuthScopeUnsupportedError, ObservedArtifactIntegrity, RegistryGrantMetadata, RegistryOperation, RegistryRequestCheck, RegistryRequestCheckConclusion, RegistryRequestCheckExecutionState, RegistryRequestDetail, RegistryRequestSource, RegistryRequestStatus, RegistryRequestSubmission, RegistryRequestSummary, RegistryRequestTerminalFailure, RegistryTrust, SubmittedPackageClaims, UAPKGCliScope, UAPKG_AUTHORIZATION_ISSUER, UAPKG_CLI_CLIENT_ID, UAPKG_CLI_SCOPES, UAPKG_CONTROL_PLANE_API, UAPKG_GITHUB_OIDC_AUDIENCE, isOAuthScopeToken, isUAPKGCliScope, knownUAPKGCliScopes, parseOAuthScopeTokens, parseUAPKGCliScopeString, registryAudience };
168
192
  //# sourceMappingURL=ControlPlaneTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ControlPlaneTypes.d.ts","sourceRoot":"","sources":["../../src/control-plane/ControlPlaneTypes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,0BAA0B,QAAuC,CAAC;AAC/E,eAAO,MAAM,uBAAuB,QAA2C,CAAC;AAChF,eAAO,MAAM,mBAAmB,cAAc,CAAC;AAC/C,eAAO,MAAM,0BAA0B,UAAU,CAAC;AAElD,eAAO,MAAM,gBAAgB,4HAKnB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAI9D,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,EAAE,CAInE;AAED,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,EAAE,CAExE;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,EAAE,CAK9D;AAED,wBAAgB,iB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GAAG,qBAAqB,CAAC;gBAGxE,aAAa,EAAE,MAAM,EACrC,eAAe,EAAE,SAAS,aAAa,EAAE,EACzC,iBAAiB,EAAE,SAAS,aAAa,EAAE,EAC3C,OAAO,CAAC,EAAE,YAAY,GAAG;QACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,yCAAyC,GAAG,qBAAqB,CAAC;QACpF,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;KAC1B;CAqBJ;AAOD,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAE3D"}
1
+ {"version":3,"file":"ControlPlaneTypes.d.ts","names":[],"sources":["../../src/control-plane/ControlPlaneTypes.ts"],"mappings":";cAEa;cACA;cACA;cACA;cAEA;KAOD,wBAAwB;iBAIpB,oBAAoB,iBAAiB;iBAMrC,yBAAyB,iBAAiB;iBAI1C,sBAAsB;iBAOtB,kBAAkB,iBAAiB;iBAInC,gBAAgB,iBAAiB,SAAS;KAI9C;UAEK;WACN;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;UAGM;WACN;WACA;WACA;;UAGM;WACN,SAAS;WACT;aACE;;WAEF;aACE;aACA;aACA;aACA;aACA;;;UAII,6BAA6B;WACnC,OAAO;aACL;aACA;aACA;;;UAII;WACN;WACA;WACA;;UAGM;WACN;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,SAAS;WACT;WACA;WACA;;UAGM;WACN;WACA,QAAQ,SAAS,eAAe;;UAG1B;WACN;WACA;WACA;WACA;;;UAIM;;WAEN;WACA;;;UAIM;WACN;WACA;WACA;WACA,cAAc,SAAS;aAA0B;aAA0B;;WAC3E,iBAAiB,SAAS;aAA0B;aAA0B;;WAC9E,kBAAkB,SAAS;aAA0B;aAA0B;;;;KAI9E;;;;;UAMK;WACN;WACA;WACA;aACE;aACA;aACA,SAAS;aACT,oBAAoB;aACpB,SAAS;aACT;;;KAID;UASK;WACN;WACA;WACA;WACA,QAAQ;WACR;WACA;WACA;WACA;aACE;aACA;;;KAID;KAOA;;UAGK;WACN;WACA,gBAAgB;WAChB,aAAa;WACb;;;UAIM;WACN;WACA;WACA;;;UAIM;WACN,SAAS;WACT,kBAAkB;WAClB,kBAAkB;;UAGZ;WACN;WACA;aACE;aACA;aACA,UAAU,SAAS;;;cAInB,0BAA0B;WAEnB;WAEA;WACA,UAAU,SAAS;EAJrC,YACkB,cAChB,iBACgB,6BACA,UAAU,SAAS,sCACnC,UAAU;;cAOD,oCAAoC;WAO7B;WANF,0BAA0B;WAC1B,yBAAyB;WACzB,wBAAwB;EAExC,YACE,iBACgB,uBAChB,0BAA0B,iBAC1B,yBAAyB,iBACzB,wBAAwB,iBACxB,iBACA,UAAU;;cAqBD,mCAAmC;WAM5B;WALF,0BAA0B;WAC1B,4BAA4B;WAC5B;EAEhB,YACkB,uBAChB,0BAA0B,iBAC1B,4BAA4B,iBAC5B,UAAU;aACC;aACA;;;iBA6BC,iBAAiB"}