@jini-ai/devops 0.7.3-next.2 → 0.7.3-next.3

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 (390) hide show
  1. package/README.md +16 -0
  2. package/dist/backup/site/archive-extensions.d.ts +73 -0
  3. package/dist/backup/site/archive-extensions.js +129 -0
  4. package/dist/backup/site/archive-manifest.d.ts +85 -0
  5. package/dist/backup/site/archive-manifest.js +176 -0
  6. package/dist/backup/site/archive-media.d.ts +121 -0
  7. package/dist/backup/site/archive-media.js +93 -0
  8. package/dist/backup/site/backup-service.credentials.d.ts +31 -0
  9. package/dist/backup/site/backup-service.credentials.js +161 -0
  10. package/dist/backup/site/backup-service.d.ts +331 -0
  11. package/dist/backup/site/backup-service.js +125 -0
  12. package/dist/backup/site/backup-service.plan.d.ts +64 -0
  13. package/dist/backup/site/backup-service.plan.js +207 -0
  14. package/dist/backup/site/backup-service.push.d.ts +29 -0
  15. package/dist/backup/site/backup-service.push.js +82 -0
  16. package/dist/backup/site/backup-service.shared.d.ts +40 -0
  17. package/dist/backup/site/backup-service.shared.js +37 -0
  18. package/dist/backup/site/bundled-export-file-policy.d.ts +38 -0
  19. package/dist/backup/site/bundled-export-file-policy.js +40 -0
  20. package/dist/backup/site/credential-warnings.d.ts +41 -0
  21. package/dist/backup/site/credential-warnings.js +50 -0
  22. package/dist/backup/site/import-backend-steps.d.ts +167 -0
  23. package/dist/backup/site/import-backend-steps.js +170 -0
  24. package/dist/backup/site/import-backend.d.ts +167 -0
  25. package/dist/backup/site/import-backend.js +298 -0
  26. package/dist/backup/site/import-database.d.ts +118 -0
  27. package/dist/backup/site/import-database.js +167 -0
  28. package/dist/backup/site/import-index/admission.d.ts +54 -0
  29. package/dist/backup/site/import-index/admission.js +46 -0
  30. package/dist/backup/site/import-index/backfill.d.ts +106 -0
  31. package/dist/backup/site/import-index/backfill.js +137 -0
  32. package/dist/backup/site/import-index/errors.d.ts +28 -0
  33. package/dist/backup/site/import-index/errors.js +38 -0
  34. package/dist/backup/site/import-index/migrations/checksums.d.ts +4 -0
  35. package/dist/backup/site/import-index/migrations/checksums.js +4 -0
  36. package/dist/backup/site/import-index/migrations/site-imports-v1.d.ts +2 -0
  37. package/dist/backup/site/import-index/migrations/site-imports-v1.js +10 -0
  38. package/dist/backup/site/import-index/mode.d.ts +191 -0
  39. package/dist/backup/site/import-index/mode.js +272 -0
  40. package/dist/backup/site/import-index/open.d.ts +40 -0
  41. package/dist/backup/site/import-index/open.js +87 -0
  42. package/dist/backup/site/import-index/paging.d.ts +28 -0
  43. package/dist/backup/site/import-index/paging.js +66 -0
  44. package/dist/backup/site/import-index/payload-namespace.d.ts +80 -0
  45. package/dist/backup/site/import-index/payload-namespace.js +156 -0
  46. package/dist/backup/site/import-index/rows.d.ts +32 -0
  47. package/dist/backup/site/import-index/rows.js +61 -0
  48. package/dist/backup/site/import-index/schema.d.ts +8 -0
  49. package/dist/backup/site/import-index/schema.js +31 -0
  50. package/dist/backup/site/import-index/store.d.ts +27 -0
  51. package/dist/backup/site/import-index/store.js +33 -0
  52. package/dist/backup/site/import-index/sweep.d.ts +10 -0
  53. package/dist/backup/site/import-index/sweep.js +26 -0
  54. package/dist/backup/site/import-keep-off.d.ts +128 -0
  55. package/dist/backup/site/import-keep-off.js +204 -0
  56. package/dist/backup/site/import-plugin-state.d.ts +74 -0
  57. package/dist/backup/site/import-plugin-state.js +67 -0
  58. package/dist/backup/site/import-registry.d.ts +110 -0
  59. package/dist/backup/site/import-registry.js +205 -0
  60. package/dist/backup/site/import-restore-placement.d.ts +94 -0
  61. package/dist/backup/site/import-restore-placement.js +158 -0
  62. package/dist/backup/site/import-restore.d.ts +111 -0
  63. package/dist/backup/site/import-restore.js +120 -0
  64. package/dist/backup/site/import-verifier-inventory.d.ts +137 -0
  65. package/dist/backup/site/import-verifier-inventory.js +236 -0
  66. package/dist/backup/site/import-verifier-projection.d.ts +78 -0
  67. package/dist/backup/site/import-verifier-projection.js +100 -0
  68. package/dist/backup/site/import-verifier.d.ts +126 -0
  69. package/dist/backup/site/import-verifier.js +53 -0
  70. package/dist/backup/site/owned-temp-root.d.ts +12 -0
  71. package/dist/backup/site/owned-temp-root.js +2 -0
  72. package/dist/backup/site/package-file-inventory.d.ts +63 -0
  73. package/dist/backup/site/package-file-inventory.js +56 -0
  74. package/dist/backup/site/push-content.d.ts +70 -0
  75. package/dist/backup/site/push-content.js +56 -0
  76. package/dist/backup/site/react/ShowMoreImports.d.ts +21 -0
  77. package/dist/backup/site/react/ShowMoreImports.js +8 -0
  78. package/dist/backup/site/saved-keys-port.d.ts +47 -0
  79. package/dist/backup/site/saved-keys-port.js +3 -0
  80. package/dist/backup/site/saved-keys.d.ts +25 -0
  81. package/dist/backup/site/saved-keys.js +38 -0
  82. package/dist/backup/site/share-backend.d.ts +243 -0
  83. package/dist/backup/site/share-backend.js +284 -0
  84. package/dist/backup/site/share-database/projection.d.ts +195 -0
  85. package/dist/backup/site/share-database/projection.js +90 -0
  86. package/dist/backup/site/share-database/projection.media.d.ts +38 -0
  87. package/dist/backup/site/share-database/projection.media.js +179 -0
  88. package/dist/backup/site/share-database/projection.tables.d.ts +46 -0
  89. package/dist/backup/site/share-database/projection.tables.js +193 -0
  90. package/dist/backup/site/share-expiry.d.ts +75 -0
  91. package/dist/backup/site/share-expiry.js +49 -0
  92. package/dist/backup/site/share-export-failure.d.ts +17 -0
  93. package/dist/backup/site/share-export-failure.js +16 -0
  94. package/dist/backup/site/share-file-policy.d.ts +60 -0
  95. package/dist/backup/site/share-file-policy.js +146 -0
  96. package/dist/backup/site/share-hosting.d.ts +107 -0
  97. package/dist/backup/site/share-hosting.js +148 -0
  98. package/dist/backup/site/share-preparation-steps.d.ts +180 -0
  99. package/dist/backup/site/share-preparation-steps.js +109 -0
  100. package/dist/backup/site/share-preparation.d.ts +122 -0
  101. package/dist/backup/site/share-preparation.js +43 -0
  102. package/dist/backup/site/share-refusal.d.ts +21 -0
  103. package/dist/backup/site/share-refusal.js +20 -0
  104. package/dist/backup/site/share-registry.d.ts +124 -0
  105. package/dist/backup/site/share-registry.js +219 -0
  106. package/dist/backup/site/share-retention.d.ts +62 -0
  107. package/dist/backup/site/share-retention.js +126 -0
  108. package/dist/backup/site/share-service.d.ts +128 -0
  109. package/dist/backup/site/share-service.js +194 -0
  110. package/dist/backup/site/share-zip.d.ts +115 -0
  111. package/dist/backup/site/share-zip.js +144 -0
  112. package/dist/backup/site/sources.d.ts +344 -0
  113. package/dist/backup/site/sources.js +595 -0
  114. package/dist/backup/site/static-copy.d.ts +122 -0
  115. package/dist/backup/site/static-copy.js +165 -0
  116. package/dist/backup/site/static-download-html.d.ts +76 -0
  117. package/dist/backup/site/static-download-html.js +149 -0
  118. package/dist/backup/site/static-download-landing.d.ts +52 -0
  119. package/dist/backup/site/static-download-landing.js +95 -0
  120. package/dist/backup/site/static-download-layout.d.ts +96 -0
  121. package/dist/backup/site/static-download-layout.js +325 -0
  122. package/dist/backup/site/static-export-selection.d.ts +50 -0
  123. package/dist/backup/site/static-export-selection.js +76 -0
  124. package/dist/backup/site/static-site-packager.d.ts +42 -0
  125. package/dist/backup/site/static-site-packager.js +32 -0
  126. package/dist/backup/site/tool-registrations.d.ts +74 -0
  127. package/dist/backup/site/tool-registrations.js +201 -0
  128. package/dist/checks/complexity-debt.d.ts +100 -0
  129. package/dist/checks/complexity-debt.js +131 -0
  130. package/dist/checks/coverage/diff.js +5 -1
  131. package/dist/checks/env-access.d.ts +14 -1
  132. package/dist/checks/env-access.js +92 -6
  133. package/dist/checks/live-verify-checks.d.ts +29 -0
  134. package/dist/checks/live-verify-checks.js +30 -0
  135. package/dist/checks/quality-gates.d.ts +137 -0
  136. package/dist/checks/quality-gates.js +209 -0
  137. package/dist/core/deploy-types.d.ts +2 -0
  138. package/dist/deploy/admin-http/site-update-status.d.ts +8 -0
  139. package/dist/deploy/admin-http/site-update-status.js +15 -0
  140. package/dist/deploy/host-kit.d.ts +3 -0
  141. package/dist/deploy/index.d.ts +6 -0
  142. package/dist/deploy/index.js +6 -0
  143. package/dist/deploy/ops-runner.js +7 -0
  144. package/dist/deploy/ops-tool-contracts.d.ts +10 -1
  145. package/dist/deploy/react/Deployment.d.ts +37 -0
  146. package/dist/deploy/react/Deployment.js +94 -0
  147. package/dist/deploy/react/DockerfileTab.d.ts +72 -0
  148. package/dist/deploy/react/DockerfileTab.js +131 -0
  149. package/dist/deploy/react/HistoryTab.d.ts +43 -0
  150. package/dist/deploy/react/HistoryTab.js +12 -0
  151. package/dist/deploy/react/OverviewTab.d.ts +60 -0
  152. package/dist/deploy/react/OverviewTab.js +75 -0
  153. package/dist/deploy/react/PublishRunResult.d.ts +5 -1
  154. package/dist/deploy/react/PublishRunResult.js +4 -4
  155. package/dist/deploy/react/SiteUpdateNotice.d.ts +22 -0
  156. package/dist/deploy/react/SiteUpdateNotice.js +25 -0
  157. package/dist/deploy/react/StaticCredentialFields.d.ts +36 -0
  158. package/dist/deploy/react/StaticCredentialFields.js +63 -0
  159. package/dist/deploy/react/StaticCredentialSteps.d.ts +23 -0
  160. package/dist/deploy/react/StaticCredentialSteps.js +155 -0
  161. package/dist/deploy/react/StaticExportCard.d.ts +11 -0
  162. package/dist/deploy/react/StaticExportCard.js +97 -0
  163. package/dist/deploy/react/StaticPublishCredentials.d.ts +50 -0
  164. package/dist/deploy/react/StaticPublishCredentials.js +77 -0
  165. package/dist/deploy/react/StaticPublishForm.d.ts +12 -0
  166. package/dist/deploy/react/StaticPublishForm.js +91 -0
  167. package/dist/deploy/react/StaticSiteTab.d.ts +207 -0
  168. package/dist/deploy/react/StaticSiteTab.js +117 -0
  169. package/dist/deploy/react/deployment-visuals.d.ts +207 -0
  170. package/dist/deploy/react/deployment-visuals.js +101 -0
  171. package/dist/deploy/react/download-dockerfile.d.ts +14 -0
  172. package/dist/deploy/react/download-dockerfile.js +15 -0
  173. package/dist/deploy/react/hooks/publish-credential-draft.d.ts +33 -0
  174. package/dist/deploy/react/hooks/publish-credential-draft.js +54 -0
  175. package/dist/deploy/react/hooks/publish-credential-selection.d.ts +13 -0
  176. package/dist/deploy/react/hooks/publish-credential-selection.js +34 -0
  177. package/dist/deploy/react/hooks/publish-credential-writes.d.ts +20 -0
  178. package/dist/deploy/react/hooks/publish-credential-writes.js +99 -0
  179. package/dist/deploy/react/hooks/static-publish-actions.d.ts +10 -0
  180. package/dist/deploy/react/hooks/static-publish-actions.js +62 -0
  181. package/dist/deploy/react/hooks/static-publish-form.hooks.d.ts +38 -0
  182. package/dist/deploy/react/hooks/static-publish-form.hooks.js +103 -0
  183. package/dist/deploy/react/hooks/static-publish-run.hooks.d.ts +28 -0
  184. package/dist/deploy/react/hooks/static-publish-run.hooks.js +92 -0
  185. package/dist/deploy/react/hooks/use-dockerfile-source.hooks.d.ts +148 -0
  186. package/dist/deploy/react/hooks/use-dockerfile-source.hooks.js +155 -0
  187. package/dist/deploy/react/hooks/use-publish-credentials.hooks.d.ts +268 -0
  188. package/dist/deploy/react/hooks/use-publish-credentials.hooks.js +52 -0
  189. package/dist/deploy/react/hooks/use-static-export.hooks.d.ts +128 -0
  190. package/dist/deploy/react/hooks/use-static-export.hooks.js +159 -0
  191. package/dist/deploy/react/hooks/use-static-publish.hooks.d.ts +208 -0
  192. package/dist/deploy/react/hooks/use-static-publish.hooks.js +48 -0
  193. package/dist/deploy/react/index.d.ts +4 -0
  194. package/dist/deploy/react/index.js +2 -0
  195. package/dist/deploy/react/rules.d.ts +363 -0
  196. package/dist/deploy/react/rules.js +314 -0
  197. package/dist/deploy/react/use-deployment-overview.hooks.d.ts +41 -0
  198. package/dist/deploy/react/use-deployment-overview.hooks.js +11 -0
  199. package/dist/deploy/site/agent-tools.d.ts +42 -0
  200. package/dist/deploy/site/agent-tools.js +119 -0
  201. package/dist/deploy/site/deploy-config-registry.d.ts +155 -0
  202. package/dist/deploy/site/deploy-config-registry.js +124 -0
  203. package/dist/deploy/site/deploy-config.d.ts +97 -0
  204. package/dist/deploy/site/deploy-config.js +115 -0
  205. package/dist/deploy/site/deploy-ops/agent-tools.d.ts +22 -0
  206. package/dist/deploy/site/deploy-ops/agent-tools.js +76 -0
  207. package/dist/deploy/site/deploy-ops/registry.d.ts +134 -0
  208. package/dist/deploy/site/deploy-ops/registry.js +106 -0
  209. package/dist/deploy/site/deploy-ops/run-ops.d.ts +66 -0
  210. package/dist/deploy/site/deploy-ops/run-ops.js +34 -0
  211. package/dist/deploy/site/deploy-ops/secret-confirm.d.ts +36 -0
  212. package/dist/deploy/site/deploy-ops/secret-confirm.js +27 -0
  213. package/dist/deploy/site/deploy-targets/host-kit.d.ts +28 -0
  214. package/dist/deploy/site/deploy-targets/host-kit.js +120 -0
  215. package/dist/deploy/site/deploy-targets/registry.d.ts +157 -0
  216. package/dist/deploy/site/deploy-targets/registry.js +132 -0
  217. package/dist/deploy/site/deploy-targets/types.d.ts +27 -0
  218. package/dist/deploy/site/deploy-targets/types.js +2 -0
  219. package/dist/deploy/site/dockerfile.d.ts +137 -0
  220. package/dist/deploy/site/dockerfile.js +101 -0
  221. package/dist/deploy/site/export-run.d.ts +137 -0
  222. package/dist/deploy/site/export-run.js +152 -0
  223. package/dist/deploy/site/ports.d.ts +115 -0
  224. package/dist/deploy/site/ports.js +2 -0
  225. package/dist/deploy/site/publish-agent-tools.d.ts +18 -0
  226. package/dist/deploy/site/publish-agent-tools.js +120 -0
  227. package/dist/deploy/site/publish-candidate.d.ts +26 -0
  228. package/dist/deploy/site/publish-candidate.js +37 -0
  229. package/dist/deploy/site/publish-credentials/account-label-heal-scheduler.d.ts +78 -0
  230. package/dist/deploy/site/publish-credentials/account-label-heal-scheduler.js +88 -0
  231. package/dist/deploy/site/publish-credentials/compatibility-port.d.ts +38 -0
  232. package/dist/deploy/site/publish-credentials/compatibility-port.js +19 -0
  233. package/dist/deploy/site/publish-credentials/execution-mode.d.ts +43 -0
  234. package/dist/deploy/site/publish-credentials/execution-mode.js +19 -0
  235. package/dist/deploy/site/publish-credentials/store-owner.d.ts +11 -0
  236. package/dist/deploy/site/publish-credentials/store-owner.js +9 -0
  237. package/dist/deploy/site/publish-credentials/store-resolution.d.ts +55 -0
  238. package/dist/deploy/site/publish-credentials/store-resolution.js +100 -0
  239. package/dist/deploy/site/publish-credentials/store-validation.d.ts +68 -0
  240. package/dist/deploy/site/publish-credentials/store-validation.js +182 -0
  241. package/dist/deploy/site/publish-credentials/store.d.ts +322 -0
  242. package/dist/deploy/site/publish-credentials/store.js +372 -0
  243. package/dist/deploy/site/publish-credentials/types.d.ts +85 -0
  244. package/dist/deploy/site/publish-credentials/types.js +2 -0
  245. package/dist/deploy/site/publish-tool-capabilities.d.ts +123 -0
  246. package/dist/deploy/site/publish-tool-capabilities.js +175 -0
  247. package/dist/deploy/site/publish-tool-credential.d.ts +48 -0
  248. package/dist/deploy/site/publish-tool-credential.js +284 -0
  249. package/dist/deploy/site/publish-tool-deps.d.ts +205 -0
  250. package/dist/deploy/site/publish-tool-deps.js +15 -0
  251. package/dist/deploy/site/publish-tool-execution.d.ts +78 -0
  252. package/dist/deploy/site/publish-tool-execution.js +313 -0
  253. package/dist/deploy/site/publish-tool-schema.d.ts +29 -0
  254. package/dist/deploy/site/publish-tool-schema.js +38 -0
  255. package/dist/deploy/site/static-publish/adapter-export.d.ts +54 -0
  256. package/dist/deploy/site/static-publish/adapter-export.js +89 -0
  257. package/dist/deploy/site/static-publish/adapter-plan.d.ts +99 -0
  258. package/dist/deploy/site/static-publish/adapter-plan.js +112 -0
  259. package/dist/deploy/site/static-publish/adapter.d.ts +182 -0
  260. package/dist/deploy/site/static-publish/adapter.js +321 -0
  261. package/dist/deploy/site/static-publish/admin-publish-read.d.ts +209 -0
  262. package/dist/deploy/site/static-publish/admin-publish-read.js +116 -0
  263. package/dist/deploy/site/static-publish/credentials.d.ts +110 -0
  264. package/dist/deploy/site/static-publish/credentials.js +290 -0
  265. package/dist/deploy/site/static-publish/domain-publish-rows.d.ts +25 -0
  266. package/dist/deploy/site/static-publish/domain-publish-rows.js +43 -0
  267. package/dist/deploy/site/static-publish/domain-publish-tool.d.ts +19 -0
  268. package/dist/deploy/site/static-publish/domain-publish-tool.js +111 -0
  269. package/dist/deploy/site/static-publish/inspection.d.ts +24 -0
  270. package/dist/deploy/site/static-publish/inspection.js +69 -0
  271. package/dist/deploy/site/static-publish/publish-history.d.ts +197 -0
  272. package/dist/deploy/site/static-publish/publish-history.js +153 -0
  273. package/dist/deploy/site/static-publish/publish-run.d.ts +156 -0
  274. package/dist/deploy/site/static-publish/publish-run.js +186 -0
  275. package/dist/deploy/site/static-publish/types.d.ts +165 -0
  276. package/dist/deploy/site/static-publish/types.js +2 -0
  277. package/dist/deploy/site/static-publish/verify.d.ts +217 -0
  278. package/dist/deploy/site/static-publish/verify.js +248 -0
  279. package/dist/deploy/site/tool-registrations.d.ts +97 -0
  280. package/dist/deploy/site/tool-registrations.js +130 -0
  281. package/dist/deploy/site/types.d.ts +51 -0
  282. package/dist/deploy/site/types.js +2 -0
  283. package/dist/deploy/site-update/check-for-update.d.ts +19 -0
  284. package/dist/deploy/site-update/check-for-update.js +19 -0
  285. package/dist/deploy/site-update/contracts.d.ts +161 -0
  286. package/dist/deploy/site-update/contracts.js +94 -0
  287. package/dist/deploy/site-update/desktop-site-update.d.ts +66 -0
  288. package/dist/deploy/site-update/desktop-site-update.js +43 -0
  289. package/dist/deploy/site-update/fake-site-update.d.ts +39 -0
  290. package/dist/deploy/site-update/fake-site-update.js +52 -0
  291. package/dist/deploy/site-update/run-site-update.d.ts +121 -0
  292. package/dist/deploy/site-update/run-site-update.js +219 -0
  293. package/dist/deploy/site-update/self-hosted-site-update.d.ts +71 -0
  294. package/dist/deploy/site-update/self-hosted-site-update.js +79 -0
  295. package/dist/deploy/target-contracts.d.ts +3 -0
  296. package/dist/deploy/tool.d.ts +5 -8
  297. package/dist/deploy/tool.js +6 -9
  298. package/dist/dns/binding-sweeper.d.ts +72 -0
  299. package/dist/dns/binding-sweeper.js +53 -0
  300. package/dist/dns/index.d.ts +1 -0
  301. package/dist/dns/index.js +1 -0
  302. package/dist/dns/site/binding.repo.d.ts +71 -0
  303. package/dist/dns/site/binding.repo.js +45 -0
  304. package/dist/dns/site/dns-changes.d.ts +90 -0
  305. package/dist/dns/site/dns-changes.js +271 -0
  306. package/dist/dns/site/dns-tools.d.ts +46 -0
  307. package/dist/dns/site/dns-tools.js +204 -0
  308. package/dist/dns/site/mail-dns-status.d.ts +111 -0
  309. package/dist/dns/site/mail-dns-status.js +190 -0
  310. package/dist/dns/site/mail-dns-tools.d.ts +33 -0
  311. package/dist/dns/site/mail-dns-tools.js +62 -0
  312. package/dist/dns/site/mail-requirements.d.ts +30 -0
  313. package/dist/dns/site/mail-requirements.js +78 -0
  314. package/dist/dns/site/tool-deps.d.ts +21 -0
  315. package/dist/dns/site/tool-deps.js +2 -0
  316. package/dist/dns/site/tools.d.ts +74 -0
  317. package/dist/dns/site/tools.js +124 -0
  318. package/dist/local-dev/bind-host.d.ts +80 -0
  319. package/dist/local-dev/bind-host.js +90 -0
  320. package/dist/local-dev/dev-proxy-upstream.d.ts +69 -0
  321. package/dist/local-dev/dev-proxy-upstream.js +63 -0
  322. package/dist/local-dev/index.d.ts +28 -0
  323. package/dist/local-dev/index.js +25 -0
  324. package/dist/packaging/electron/archive.d.ts +2 -9
  325. package/dist/packaging/electron/asar-adapter.d.ts +2 -1
  326. package/dist/packaging/electron/entry.d.ts +2 -0
  327. package/dist/packaging/electron/move-to-applications.d.ts +165 -0
  328. package/dist/packaging/electron/move-to-applications.js +162 -0
  329. package/dist/packaging/electron/policies.d.ts +33 -4
  330. package/dist/packaging/electron/policies.js +29 -10
  331. package/dist/packaging/electron/ports.d.ts +1 -6
  332. package/dist/packaging/electron/staging.d.ts +11 -2
  333. package/dist/packaging/electron/staging.js +15 -5
  334. package/dist/react/site-share-expiry/ShareExpiryControls.d.ts +29 -0
  335. package/dist/react/site-share-expiry/ShareExpiryControls.js +7 -0
  336. package/dist/react/site-share-expiry/index.d.ts +2 -0
  337. package/dist/react/site-share-expiry/index.js +2 -0
  338. package/dist/source-control/react/ProvidersTab.d.ts +98 -0
  339. package/dist/source-control/react/ProvidersTab.js +195 -0
  340. package/dist/source-control/react/SourceControl.d.ts +51 -0
  341. package/dist/source-control/react/SourceControl.js +61 -0
  342. package/dist/source-control/react/hooks/use-source-control-credentials.hooks.d.ts +128 -0
  343. package/dist/source-control/react/hooks/use-source-control-credentials.hooks.js +102 -0
  344. package/dist/source-control/react/rules.d.ts +167 -0
  345. package/dist/source-control/react/rules.js +125 -0
  346. package/dist/source-control/react/source-control-visuals.d.ts +75 -0
  347. package/dist/source-control/react/source-control-visuals.js +48 -0
  348. package/dist/source-control/site/agent-tools.d.ts +5 -0
  349. package/dist/source-control/site/agent-tools.js +30 -0
  350. package/dist/source-control/site/bundled-provider-registry.d.ts +33 -0
  351. package/dist/source-control/site/bundled-provider-registry.js +37 -0
  352. package/dist/source-control/site/commit-schema.d.ts +40 -0
  353. package/dist/source-control/site/commit-schema.js +29 -0
  354. package/dist/source-control/site/commit-target.d.ts +26 -0
  355. package/dist/source-control/site/commit-target.js +58 -0
  356. package/dist/source-control/site/credential-form.d.ts +36 -0
  357. package/dist/source-control/site/credential-form.js +102 -0
  358. package/dist/source-control/site/credential-setup.d.ts +107 -0
  359. package/dist/source-control/site/credential-setup.js +216 -0
  360. package/dist/source-control/site/provider-kit.d.ts +37 -0
  361. package/dist/source-control/site/provider-kit.js +35 -0
  362. package/dist/source-control/site/provider-module.d.ts +251 -0
  363. package/dist/source-control/site/provider-module.js +2 -0
  364. package/dist/source-control/site/saved-key-bindings.d.ts +4 -0
  365. package/dist/source-control/site/saved-key-bindings.js +4 -0
  366. package/dist/source-control/site/static-site-packager-port.d.ts +37 -0
  367. package/dist/source-control/site/static-site-packager-port.js +2 -0
  368. package/dist/source-control/site/store.d.ts +209 -0
  369. package/dist/source-control/site/store.js +374 -0
  370. package/dist/source-control/site/store.validation.d.ts +72 -0
  371. package/dist/source-control/site/store.validation.js +168 -0
  372. package/dist/source-control/site/tool-registrations.d.ts +190 -0
  373. package/dist/source-control/site/tool-registrations.js +379 -0
  374. package/dist/static-export/site/export-preflight.d.ts +48 -0
  375. package/dist/static-export/site/export-preflight.js +82 -0
  376. package/dist/static-export/site/media-original-urls.d.ts +57 -0
  377. package/dist/static-export/site/media-original-urls.js +109 -0
  378. package/dist/static-export/site/ports.d.ts +82 -0
  379. package/dist/static-export/site/ports.js +29 -0
  380. package/dist/static-export/site/public-origin-policy.d.ts +32 -0
  381. package/dist/static-export/site/public-origin-policy.js +68 -0
  382. package/dist/static-export/site/route-manifest.d.ts +65 -0
  383. package/dist/static-export/site/route-manifest.js +139 -0
  384. package/dist/static-export/site/site-exporter.d.ts +158 -0
  385. package/dist/static-export/site/site-exporter.js +112 -0
  386. package/dist/static-export/site/static-security-headers.d.ts +39 -0
  387. package/dist/static-export/site/static-security-headers.js +43 -0
  388. package/dist/static-export/site/theme-preview-manifest.d.ts +35 -0
  389. package/dist/static-export/site/theme-preview-manifest.js +28 -0
  390. package/package.json +911 -7
@@ -0,0 +1,182 @@
1
+ import { VaultError } from '@jini-ai/core/contracts/vault';
2
+ /** Thrown for any caller-supplied value that fails shape validation — the route maps this to `400`. */
3
+ export class PublishCredentialValidationError extends Error {
4
+ }
5
+ const MAX_LABEL_LENGTH = 200;
6
+ export function validatedWorksFor({ deps, value }, _options = {}) {
7
+ try {
8
+ const ids = deps.normalizeCredentialWorksFor({ value });
9
+ for (const id of ids) {
10
+ assertPlainField({ deps, value: id, field: "worksFor" });
11
+ }
12
+ return ids;
13
+ }
14
+ catch (error) {
15
+ if (error instanceof VaultError) {
16
+ throw new PublishCredentialValidationError("worksFor must be an array of provider IDs");
17
+ }
18
+ throw error;
19
+ }
20
+ }
21
+ /** A provider move retargets the old host/vendor compatibility, preserving unrelated IDs.
22
+ * Explicit compatibility edits win, including an empty list. No I/O; O(compatibility IDs).
23
+ */
24
+ export function updatedWorksFor({ deps, value, row, provider, host }, _options = {}) {
25
+ if (value !== undefined)
26
+ return validatedWorksFor({ deps, value });
27
+ const previous = deps.parseStoreMeta({ kind: "vendor", meta: row.meta, provider: row.provider }).worksFor;
28
+ if (provider === row.provider)
29
+ return previous;
30
+ return validatedWorksFor({ deps, value: previous.map(id => id === row.provider?.toLowerCase() || id === host.toLowerCase() ? provider : id) });
31
+ }
32
+ /** Narrows and validates a caller-supplied `label`. Never throws a raw `TypeError` — every rejection
33
+ * is a {@link PublishCredentialValidationError} the route/tool layer can map to its own `400`. */
34
+ export function validateLabel({ deps, raw }, _options = {}) {
35
+ if (typeof raw !== "string" || raw.trim() === "") {
36
+ throw new PublishCredentialValidationError("label must be a non-empty string");
37
+ }
38
+ if (raw.length > MAX_LABEL_LENGTH) {
39
+ throw new PublishCredentialValidationError(`label must be ${MAX_LABEL_LENGTH} characters or fewer`);
40
+ }
41
+ assertPlainField({ deps, value: raw, field: "label" });
42
+ return raw;
43
+ }
44
+ /** Shared check-then-trim step for {@link requireNonEmptyString}/{@link optionalString} — the two
45
+ * differ only in whether `undefined` is acceptable, never in what counts as "non-empty" or what gets
46
+ * persisted. Always returns the TRIMMED value, never the raw one just validated: a leading or trailing
47
+ * space pasted alongside a real value (an endpoint URL, an access key, a bearer token) is never
48
+ * meaningful, and returning it unmodified lets it survive into storage, then into every reader
49
+ * downstream — for a secret field, that surfaces later as a misleading "wrong credentials" far from
50
+ * where the stray space was typed. Extracted (2026-09-05) after `optionalString` was fixed alone once
51
+ * already and `requireNonEmptyString` was found carrying the identical untrimmed-return bug days
52
+ * later — a single shared step is what keeps the two from drifting apart a second time. */
53
+ function assertNonEmptyTrimmed({ raw, message }, _options = {}) {
54
+ if (typeof raw !== "string" || raw.trim() === "") {
55
+ throw new PublishCredentialValidationError(message);
56
+ }
57
+ return raw.trim();
58
+ }
59
+ function requireNonEmptyString({ raw, field, providerId }, _options = {}) {
60
+ return assertNonEmptyTrimmed({ raw, message: `'${field}' (non-empty string) is required for provider '${providerId}'` });
61
+ }
62
+ function optionalString({ raw, field }, _options = {}) {
63
+ if (raw === undefined)
64
+ return undefined;
65
+ // A blank optional form field (e.g. an optional zone id left empty) means "not provided", not an
66
+ // invalid value: secure forms send every field, so rejecting "" blocked saving a valid credential.
67
+ if (typeof raw === "string" && raw.trim() === "")
68
+ return undefined;
69
+ return assertNonEmptyTrimmed({ raw, message: `'${field}' must be a non-empty string when provided` });
70
+ }
71
+ /** Narrows a caller-supplied `isDefault`. `undefined` means "no default change requested" (the same
72
+ * omitted-means-unchanged convention `label`/`connection` already use); any other non-boolean value
73
+ * is rejected rather than coerced, so a stray string/number in the request body cannot silently be
74
+ * read as truthy. */
75
+ export function optionalBoolean({ raw, field }, _options = {}) {
76
+ if (raw === undefined)
77
+ return undefined;
78
+ if (typeof raw !== "boolean") {
79
+ throw new PublishCredentialValidationError(`'${field}' must be a boolean when provided`);
80
+ }
81
+ return raw;
82
+ }
83
+ /**
84
+ * Validates a caller-supplied `connection` against the credential its host declares
85
+ * (`DeployTargetDescriptor.credential` in this workspace's deploy registry): `providerId` must be a
86
+ * target that takes a saved credential; every declared required field must be a non-empty string,
87
+ * every declared optional one a non-empty string when present. Required fields are checked before
88
+ * optional ones, in declaration order. Values are trimmed; undeclared keys are dropped. Never throws a
89
+ * raw shape error — every rejection is a {@link PublishCredentialValidationError}.
90
+ *
91
+ * @complexity O(t + f): one pass over the registry's targets (for the error text), one over the fields.
92
+ */
93
+ function normalizeSecret(required) {
94
+ try {
95
+ return required.deps.normalizeCredentialToken({ value: required.value, field: required.field });
96
+ }
97
+ catch (err) {
98
+ if (err instanceof required.deps.CredentialInputError) {
99
+ throw new PublishCredentialValidationError(err.message);
100
+ }
101
+ throw err;
102
+ }
103
+ }
104
+ function assertPlainField(required) {
105
+ try {
106
+ required.deps.assertCredentialFreeField({ value: required.value, field: required.field });
107
+ }
108
+ catch (err) {
109
+ if (err instanceof required.deps.CredentialInputError) {
110
+ throw new PublishCredentialValidationError(err.message);
111
+ }
112
+ throw err;
113
+ }
114
+ }
115
+ export function validateConnection({ deps, raw, registry }, _options = {}) {
116
+ if (typeof raw !== "object" || raw === null || Array.isArray(raw)) {
117
+ throw new PublishCredentialValidationError("connection must be an object");
118
+ }
119
+ const value = raw;
120
+ const { providerId, spec } = connectionCredentialSpec({ value, registry });
121
+ const fields = {};
122
+ const ordered = [...spec.fields.filter(field => field.required), ...spec.fields.filter(field => !field.required)];
123
+ for (const field of ordered) {
124
+ const normalized = validatedConnectionField({ deps, value: value[field.name], field, spec, providerId });
125
+ if (normalized !== undefined)
126
+ fields[field.name] = normalized;
127
+ }
128
+ if (fields[spec.tokenField] === undefined)
129
+ normalizeSecret({ deps, value: undefined, field: spec.tokenField });
130
+ return { connection: { providerId, ...fields }, spec };
131
+ }
132
+ export function connectionCredentialSpec({ value, registry }, _options = {}) {
133
+ const providerId = value.providerId;
134
+ const spec = typeof providerId === "string" ? registry.get(providerId)?.descriptor.credential : undefined;
135
+ if (typeof providerId !== "string" || spec === undefined) {
136
+ const known = registry.list().flatMap((target) => (target.descriptor.credential !== undefined ? [target.descriptor.id] : []));
137
+ throw new PublishCredentialValidationError(`connection.providerId must be one of: ${known.join(", ")}`);
138
+ }
139
+ return { providerId, spec };
140
+ }
141
+ export function isSecretField({ field, spec }, _options = {}) {
142
+ return Boolean(field.secret || field.name === spec.tokenField);
143
+ }
144
+ function validatedConnectionField({ deps, value, field, spec, providerId }, _options = {}) {
145
+ const secret = isSecretField({ field, spec });
146
+ if (secret && (field.required || value !== undefined))
147
+ return normalizeSecret({ deps, value, field: field.name });
148
+ const normalized = field.required ? requireNonEmptyString({ raw: value, field: field.name, providerId }) : optionalString({ raw: value, field: field.name });
149
+ if (!secret && normalized !== undefined)
150
+ assertPlainField({ deps, value: normalized, field: field.name });
151
+ return normalized;
152
+ }
153
+ /** Preserve only a provider change between compatible token-only contracts. Companion-field
154
+ * changes and different secret schemas still require the validated replacement path.
155
+ * @complexity O(k) time/space for k supplied keys; fixed schema checks, no I/O. */
156
+ export function preservedMove({ raw, registry, host }, _options = {}) {
157
+ if (!raw || typeof raw !== "object" || Array.isArray(raw))
158
+ return undefined;
159
+ const values = raw;
160
+ if (typeof values.providerId !== "string" || values.providerId === host)
161
+ return undefined;
162
+ const spec = tokenOnlyMoveSpec({ registry, host, providerId: values.providerId });
163
+ if (!spec || !isProviderOnlyMove({ values, spec }))
164
+ return undefined;
165
+ return { providerId: values.providerId, spec };
166
+ }
167
+ function tokenOnlyMoveSpec({ registry, host, providerId }, _options = {}) {
168
+ const spec = registry.get(providerId)?.descriptor.credential;
169
+ const previous = registry.get(host)?.descriptor.credential;
170
+ if (!spec || !previous || spec.tokenField !== previous.tokenField)
171
+ return undefined;
172
+ // Token-only = the token is the only REQUIRED field; an optional extra (a host's add-on secret) may
173
+ // be absent, so the retained envelope is still a valid connection for the destination.
174
+ if (![spec, previous].every(candidate => candidate.fields.every(field => field.name === candidate.tokenField || !field.required)))
175
+ return undefined;
176
+ return spec;
177
+ }
178
+ function isProviderOnlyMove({ values, spec }, _options = {}) {
179
+ return Object.keys(values).every(key => key === "providerId" || key === spec.tokenField) &&
180
+ (values[spec.tokenField] === undefined || values[spec.tokenField] === "");
181
+ }
182
+ //# sourceMappingURL=store-validation.js.map
@@ -0,0 +1,322 @@
1
+ import type { PublishCredentialResolveDeps } from './store-resolution.js';
2
+ import type { Clock as ClockPort, UUID } from "@jini-ai/core/primitives";
3
+ import type { KeyringPort } from "@jini-ai/core/contracts/vault";
4
+ import type { SecretSealerPort } from "@jini-ai/core/contracts/vault";
5
+ import { type VaultSummary } from "@jini-ai/core/contracts/vault";
6
+ import type { VaultContext, VaultRepoPort, VendorCredentialSetRecord as CoreVendorRecord, VendorCredentialSetRepoPort as CoreVendorRepo } from "@jini-ai/core/contracts/vault";
7
+ import type { CredentialTokenHint } from "@jini-ai/core/contracts/site/secrets-credential-token";
8
+ import type { SecretsVaultService } from "@jini-ai/core/contracts/site/secrets-credential-sets";
9
+ interface ScopedCredentialDeps<D> {
10
+ readonly deps: D;
11
+ readonly workspaceId: string;
12
+ readonly scope: "site" | "project";
13
+ }
14
+ import type { DeployTargetRegistry } from "@jini-ai/devops/deploy/site/deploy-targets/types";
15
+ import type { PublishConnectionInput, PublishCredentialSummary, PublishProviderId } from "@jini-ai/devops/deploy/site/publish-credentials/types";
16
+ /** Publish credentials map deploy hosts to vendor accounts. Feature validation and human-gated
17
+ * verification remain here; Jini's vault owns sealing, defaults and persistence. Create/update
18
+ * are shared with an agent-facing caller, so provider probes stay in the human-gated verify path.
19
+ * Migration 0012 folds legacy rows once; there is no recurring backfill to resurrect deletions. */
20
+ /** A `(workspaceId, vendor, label)` collision — the route maps this to `409 DUPLICATE_LABEL`. */
21
+ export declare class PublishCredentialDuplicateLabelError extends Error {
22
+ }
23
+ /** Thrown when `sealer.seal()`/`keyring.activeKey()` fails while writing a connection — the realistic
24
+ * cause is a missing site key (the site key), same fail-closed contract
25
+ * `SiteAssistantSecretStoreUnconfiguredError` documents for the sibling ADR-058 table. */
26
+ export declare class PublishCredentialSecretStoreUnconfiguredError extends Error {
27
+ }
28
+ export declare class PublishCredentialNotFoundError extends Error {
29
+ }
30
+ /** Deploy descriptors adapt into Jini's compatibility and selection policy. Required companion
31
+ * fields exclude token-only custom keys before any default is selected. No I/O; O(hosts).
32
+ */
33
+ export declare function publishHostsForCredential({ deps, credential, registry }: {
34
+ deps: Pick<PublishCredentialReadDeps, "matchingCredentialProviderIds">;
35
+ credential: Pick<VaultSummary, "kind" | "provider" | "label" | "meta">;
36
+ registry: DeployTargetRegistry;
37
+ }, _options?: {}): string[];
38
+ /** An explicit id is found in either store. Otherwise the first store (in `inventory` order: this
39
+ * site's, then the project's) holding any compatible row decides alone (owner 2026-10-25: a site row
40
+ * overrides), so an ambiguous site stays ambiguous instead of silently using a project key.
41
+ * @complexity O(rows × compatibility IDs).
42
+ */
43
+ export declare function selectPublishCredential({ deps, registry, credentials, provider, id }: {
44
+ deps: Pick<PublishCredentialReadDeps, "selectCredentialForProvider">;
45
+ registry: DeployTargetRegistry;
46
+ credentials: readonly VaultSummary[];
47
+ provider: NonNullable<ReturnType<typeof providerContract>>;
48
+ id?: string | undefined;
49
+ }, _options?: {}): VaultSummary | null;
50
+ /** Compatibility edits invalidate only hosts whose eligibility changed, through the existing cache
51
+ * port. Catalog adaptation and custom token shape rules are shared with runtime matching.
52
+ * @complexity O(hosts × compatibility IDs); no credential reads, opens or provider requests.
53
+ */
54
+ export declare function invalidatePublishCredentialCompatibility({ deps, workspaceId, registry, cache, before, after }: {
55
+ deps: Pick<PublishCredentialReadDeps, "matchingCredentialProviderIds">;
56
+ workspaceId: string;
57
+ registry: DeployTargetRegistry;
58
+ cache: {
59
+ delete(input: {
60
+ workspaceId: string;
61
+ target: string;
62
+ }): void;
63
+ };
64
+ before?: {
65
+ credentialType: "vendor" | "custom";
66
+ worksFor: string[];
67
+ };
68
+ after?: {
69
+ credentialType: "vendor" | "custom";
70
+ worksFor: string[];
71
+ };
72
+ }, _options?: {}): void;
73
+ export declare function providerContract({ registry, providerId }: {
74
+ registry: DeployTargetRegistry;
75
+ providerId: string;
76
+ }, _options?: {}): {
77
+ id: string;
78
+ vendorId: string;
79
+ acceptsCustomToken: boolean;
80
+ } | null;
81
+ /** The vault/scope/hint collaborator a credential repo carries, bound to that repo's own vault rows where the
82
+ * host composition root builds the repo. Policy (the host's credential kinds, owner key, typed storage errors) lives with
83
+ * the binding's owner; this store only says which typed error a storage failure becomes. */
84
+ interface CredentialVaultBinding {
85
+ open(required: {
86
+ repo: {
87
+ vault?: VaultRepoPort;
88
+ };
89
+ sealer?: SecretSealerPort;
90
+ keyring?: KeyringPort;
91
+ clock?: ClockPort;
92
+ idGen?: {
93
+ newId(): string;
94
+ };
95
+ storageError: () => Error;
96
+ }, optional?: Record<string, never>): SecretsVaultService;
97
+ scope(required: {
98
+ workspaceId: string;
99
+ kind: "vendor" | "custom";
100
+ id?: string;
101
+ }, optional?: Record<string, never>): VaultContext & {
102
+ id?: string;
103
+ };
104
+ hint(required: {
105
+ record: Pick<VaultSummary, "tokenLength" | "last4">;
106
+ }, optional?: Record<string, never>): CredentialTokenHint | null;
107
+ }
108
+ /** The host's vendor row as this store reads it: the core record plus the safe hint the adapter attaches. */
109
+ export type VendorCredentialSetRecord = CoreVendorRecord & {
110
+ readonly tokenHint?: CredentialTokenHint | null;
111
+ };
112
+ /** The host's vendor repo as this store reads it (structurally; the composition root supplies the real one). */
113
+ export interface VendorCredentialSetRepoPort extends CoreVendorRepo {
114
+ readonly vault?: VaultRepoPort;
115
+ /** Absent only on a hand-built fake; every store read or write then refuses as an unconfigured vault. */
116
+ readonly credentialVault?: CredentialVaultBinding;
117
+ readonly project?: {
118
+ readonly workspaceId: string;
119
+ readonly repo: VendorCredentialSetRepoPort;
120
+ readonly createRepo?: VendorCredentialSetRepoPort;
121
+ readonly replaceRepo?: VendorCredentialSetRepoPort;
122
+ readonly sealer: SecretSealerPort;
123
+ readonly keyring: KeyringPort;
124
+ };
125
+ }
126
+ /** The repo's host-bound vault collaborator; a repo without one refuses exactly as a repo without a vault did. */
127
+ export declare function bound(deps: {
128
+ repo: Pick<VendorCredentialSetRepoPort, "credentialVault">;
129
+ }, _options?: {}): CredentialVaultBinding;
130
+ export declare function vault(deps: PublishCredentialReadDeps & Partial<PublishCredentialWriteDeps>, _options?: {}): SecretsVaultService;
131
+ export interface PublishCredentialReadDeps {
132
+ readonly ownerKey: string;
133
+ readonly projectWorkspaceId: string;
134
+ readonly storageMessage: string;
135
+ readonly CredentialInputError: abstract new (...args: never[]) => Error;
136
+ readonly ProjectKeyCreateConflictError: abstract new (...args: never[]) => Error;
137
+ readonly normalizeCredentialToken: (required: {
138
+ value: unknown;
139
+ field?: string;
140
+ hosted?: boolean;
141
+ }, optional?: Record<string, never>) => string;
142
+ readonly assertCredentialFreeField: (required: {
143
+ value: string;
144
+ field: string;
145
+ }) => void;
146
+ readonly normalizeCredentialWorksFor: (required: {
147
+ value: unknown;
148
+ }, optional?: Record<string, never>) => string[];
149
+ readonly matchingCredentialProviderIds: (required: {
150
+ credential: {
151
+ kind: string;
152
+ provider: string | null;
153
+ meta: {
154
+ credentialType?: unknown;
155
+ worksFor?: unknown;
156
+ };
157
+ };
158
+ providers: readonly {
159
+ id: string;
160
+ vendorId: string;
161
+ acceptsCustomToken: boolean;
162
+ }[];
163
+ }, optional?: Record<string, never>) => string[];
164
+ readonly selectCredentialForProvider: <T extends {
165
+ kind: string;
166
+ provider: string | null;
167
+ meta: {
168
+ credentialType?: unknown;
169
+ worksFor?: unknown;
170
+ };
171
+ id: string;
172
+ isDefault: boolean;
173
+ }>(required: {
174
+ credentials: readonly T[];
175
+ provider: {
176
+ id: string;
177
+ vendorId: string;
178
+ acceptsCustomToken: boolean;
179
+ };
180
+ id?: string;
181
+ }, optional?: Record<string, never>) => T | null;
182
+ readonly credentialScopes: <D extends PublishCredentialReadDeps>(required: {
183
+ deps: D;
184
+ workspaceId: string;
185
+ }, optional?: Record<string, never>) => ScopedCredentialDeps<D>[];
186
+ readonly credentialCreateTarget: <D extends PublishCredentialReadDeps>(required: {
187
+ deps: D;
188
+ input: {
189
+ workspaceId: string;
190
+ scope?: unknown;
191
+ };
192
+ invalid: (message: string) => Error;
193
+ }, optional?: Record<string, never>) => ScopedCredentialDeps<D>;
194
+ readonly parseStoreMeta: (required: {
195
+ kind: "vendor";
196
+ meta: VaultSummary["meta"];
197
+ provider: string | null;
198
+ }) => Readonly<Record<string, unknown>>;
199
+ repo: VendorCredentialSetRepoPort;
200
+ sealer?: SecretSealerPort;
201
+ loadDeployTargets({ workspaceId }: {
202
+ workspaceId: string;
203
+ }, optional?: Record<string, never>): Promise<DeployTargetRegistry>;
204
+ }
205
+ /** The store a listed row came from: rows carry their own store's workspace id. */
206
+ export declare function scopeOfRow<D extends PublishCredentialReadDeps>(deps: D, input: {
207
+ workspaceId: string;
208
+ row: {
209
+ workspaceId: string;
210
+ };
211
+ }): ScopedCredentialDeps<D>;
212
+ /** Every row this site can publish with: its own, then the project's whose label no site row claims.
213
+ * @complexity O(rows); one inventory per store, no row is opened.
214
+ */
215
+ export declare function inventory({ deps, workspaceId }: {
216
+ deps: PublishCredentialReadDeps;
217
+ workspaceId: string;
218
+ }, _options?: {}): Promise<VaultSummary[]>;
219
+ /** Safe publish inventory; empty compatibility stays editable on vendor cards. Display host
220
+ * fallback is used only for editing, never for runtime eligibility. Defaults are selected per host.
221
+ * @complexity O(rows × hosts), one metadata inventory and one catalog load.
222
+ */
223
+ export declare function listPublishCredentials(deps: PublishCredentialReadDeps, input: {
224
+ workspaceId: UUID;
225
+ }): Promise<PublishCredentialSummary[]>;
226
+ /** Metadata-only ID projection; custom keys keep their existing custom edit/permission boundary. */
227
+ export declare function describeCredential(deps: PublishCredentialReadDeps, input: {
228
+ workspaceId: UUID;
229
+ id: UUID;
230
+ }): Promise<PublishCredentialSummary | null>;
231
+ export interface PublishCredentialWriteDeps extends PublishCredentialReadDeps {
232
+ sealer: SecretSealerPort;
233
+ keyring: KeyringPort;
234
+ clock: ClockPort;
235
+ idGen: {
236
+ newId(): string;
237
+ };
238
+ /** Set only by the submitted human card; the owner port rechecks its current site grant. */
239
+ allowSharedKeyReplacement?: boolean;
240
+ }
241
+ export interface CreatePublishCredentialInput {
242
+ workspaceId: UUID;
243
+ label: unknown;
244
+ connection: unknown;
245
+ /** `true` makes this the vendor's default connection (clearing any previous one — see
246
+ * `VendorCredentialSetRepoPort`'s own header). Omitted auto-defaults the vendor's FIRST saved
247
+ * connection; explicit `false` opts out. Jini owns atomic auto-defaulting. */
248
+ isDefault?: unknown;
249
+ worksFor?: unknown;
250
+ /** `"site"` = a site-owned key. Omitted (or `"project"`) = the project store when one is
251
+ * attached, visible to attached sites only; this site's vault otherwise. */
252
+ scope?: unknown;
253
+ }
254
+ /** Validate before the vault write. Jini atomically auto-defaults the first vendor credential. */
255
+ export declare function createPublishCredential(deps: PublishCredentialWriteDeps, input: CreatePublishCredentialInput): Promise<PublishCredentialSummary>;
256
+ export interface UpdatePublishCredentialInput {
257
+ workspaceId: UUID;
258
+ id: UUID;
259
+ /** Omitted = leave the label unchanged. */
260
+ label?: unknown;
261
+ /** Omitted = leave the stored connection (and its vendor) untouched — this route's own
262
+ * "connection omitted => keep the stored secret untouched" contract. Supplying a NEW connection
263
+ * may change the host and vendor. A provider-only move between token-only hosts retains the
264
+ * envelope: vault AAD binds the stable identity, not the vendor. Explicit secrets rotate.
265
+ * On same-vendor updates, null removes an optional secret; blank keeps it. */
266
+ connection?: unknown;
267
+ /** `true` makes this the default connection for its (possibly new — see `connection` above)
268
+ * vendor, clearing any previous default in the same repo call. Omitted/`false` preserves a
269
+ * same-vendor default; moves use the destination's default/first-row rule. Use
270
+ * `createPublishCredential`/another `updatePublishCredential` call with `isDefault: true` to
271
+ * promote a different row instead. */
272
+ isDefault?: unknown;
273
+ worksFor?: unknown;
274
+ }
275
+ /** Omitted connections retain their sealed envelope/hints and never require a site key.
276
+ * Provider moves retarget the old compatibility IDs unless the caller supplies worksFor.
277
+ * Reject labels that would hide a project row behind a site's row before writing.
278
+ */
279
+ export declare function updatePublishCredential(deps: PublishCredentialWriteDeps, input: UpdatePublishCredentialInput): Promise<PublishCredentialSummary>;
280
+ /** Legacy rows were folded by 0012. Delete only the vault row; reboot has no source to recopy.
281
+ * A project row is removed only when no other site uses it; its attachments are removed with it. */
282
+ export declare function deletePublishCredential(deps: {
283
+ repo: Pick<VendorCredentialSetRepoPort, "delete" | "findById" | "project">;
284
+ transaction?: {
285
+ transaction<T>(fn: () => Promise<T>): Promise<T>;
286
+ };
287
+ }, input: {
288
+ workspaceId: UUID;
289
+ id: UUID;
290
+ }): Promise<void>;
291
+ /**
292
+ * Persists a freshly-verified account label onto an existing row — see this file's own header for
293
+ * why {@link createPublishCredential}/{@link updatePublishCredential} never do this themselves. The
294
+ * ONE intended caller is the admin credential-CRUD route (`server/routes/admin/system/publish-
295
+ * credentials.ts`), immediately after its own `verifyPublishCredentialById` call returns a `"valid"`
296
+ * result carrying an `accountLabel`. Never call this with an EMPTY/absent label to "clear" one: a
297
+ * failed or inconclusive re-verify carries no `accountLabel` at all and must leave a previously-healed
298
+ * value alone — the caller's own `result.accountLabel !== undefined` check enforces that.
299
+ *
300
+ * A targeted single-column write ({@link VendorCredentialSetRepoPort.updateAccountLabel}), not a
301
+ * full-row replace — never touches `sealed`, `isDefault`, or `updatedAt`.
302
+ *
303
+ * Written where the row lives: this site's vault, else the project's.
304
+ *
305
+ * @complexity O(1) — one lookup and one repo write (a no-op, not an error, if the row vanished meanwhile).
306
+ */
307
+ export declare function healAccountLabel(deps: {
308
+ repo: VendorCredentialSetRepoPort;
309
+ }, input: {
310
+ workspaceId: UUID;
311
+ id: UUID;
312
+ accountLabel: string;
313
+ }): Promise<void>;
314
+ /** Jini checks exact ownership before opening. Keep the typed error used by HTTP and daemon
315
+ * boundaries: a missing key must not become an unhandled rejection in a publishing process. */
316
+ export declare function decryptRecord({ deps, record, providerId }: {
317
+ deps: PublishCredentialResolveDeps;
318
+ record: VendorCredentialSetRecord;
319
+ providerId: PublishProviderId;
320
+ }, _options?: {}): Promise<PublishConnectionInput>;
321
+ export {};
322
+ //# sourceMappingURL=store.d.ts.map