@wildo-ai/wildo-cli 1.1.12 → 1.1.14

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 (548) hide show
  1. package/dist/src/commands/build/approve.command.d.ts +4 -0
  2. package/dist/src/commands/build/approve.command.d.ts.map +1 -1
  3. package/dist/src/commands/build/approve.command.js +14 -3
  4. package/dist/src/commands/build/approve.command.js.map +1 -1
  5. package/dist/src/commands/build/close.command.d.ts +4 -0
  6. package/dist/src/commands/build/close.command.d.ts.map +1 -1
  7. package/dist/src/commands/build/close.command.js +17 -3
  8. package/dist/src/commands/build/close.command.js.map +1 -1
  9. package/dist/src/commands/config/sync.command.d.ts.map +1 -1
  10. package/dist/src/commands/config/sync.command.js +22 -1
  11. package/dist/src/commands/config/sync.command.js.map +1 -1
  12. package/dist/src/commands/context/journey.command.d.ts.map +1 -1
  13. package/dist/src/commands/context/journey.command.js +8 -0
  14. package/dist/src/commands/context/journey.command.js.map +1 -1
  15. package/dist/src/commands/creation/drive.command.d.ts.map +1 -1
  16. package/dist/src/commands/creation/drive.command.js +2 -0
  17. package/dist/src/commands/creation/drive.command.js.map +1 -1
  18. package/dist/src/commands/creation/feed.command.d.ts.map +1 -1
  19. package/dist/src/commands/creation/feed.command.js +6 -3
  20. package/dist/src/commands/creation/feed.command.js.map +1 -1
  21. package/dist/src/commands/fwk/publish-all.command.d.ts +13 -0
  22. package/dist/src/commands/fwk/publish-all.command.d.ts.map +1 -1
  23. package/dist/src/commands/fwk/publish-all.command.js +64 -2
  24. package/dist/src/commands/fwk/publish-all.command.js.map +1 -1
  25. package/dist/src/commands/fwk/publish-docker.command.d.ts.map +1 -1
  26. package/dist/src/commands/fwk/publish-docker.command.js +16 -1
  27. package/dist/src/commands/fwk/publish-docker.command.js.map +1 -1
  28. package/dist/src/commands/fwk/registry-host.command.d.ts +19 -1
  29. package/dist/src/commands/fwk/registry-host.command.d.ts.map +1 -1
  30. package/dist/src/commands/fwk/registry-host.command.js +78 -3
  31. package/dist/src/commands/fwk/registry-host.command.js.map +1 -1
  32. package/dist/src/commands/init.command.d.ts +14 -0
  33. package/dist/src/commands/init.command.d.ts.map +1 -1
  34. package/dist/src/commands/init.command.js +29 -3
  35. package/dist/src/commands/init.command.js.map +1 -1
  36. package/dist/src/commands/local/dev.command.d.ts +68 -0
  37. package/dist/src/commands/local/dev.command.d.ts.map +1 -1
  38. package/dist/src/commands/local/dev.command.js +216 -8
  39. package/dist/src/commands/local/dev.command.js.map +1 -1
  40. package/dist/src/commands/local/doctor.command.d.ts +22 -9
  41. package/dist/src/commands/local/doctor.command.d.ts.map +1 -1
  42. package/dist/src/commands/local/doctor.command.js +45 -42
  43. package/dist/src/commands/local/doctor.command.js.map +1 -1
  44. package/dist/src/commands/providers/connect.command.d.ts.map +1 -1
  45. package/dist/src/commands/providers/connect.command.js +11 -1
  46. package/dist/src/commands/providers/connect.command.js.map +1 -1
  47. package/dist/src/commands/registry/repair-lockfile.command.d.ts.map +1 -1
  48. package/dist/src/commands/registry/repair-lockfile.command.js +1 -0
  49. package/dist/src/commands/registry/repair-lockfile.command.js.map +1 -1
  50. package/dist/src/commands/registry/update.command.d.ts.map +1 -1
  51. package/dist/src/commands/registry/update.command.js +1 -0
  52. package/dist/src/commands/registry/update.command.js.map +1 -1
  53. package/dist/src/commands/seal/currency.command.d.ts +13 -0
  54. package/dist/src/commands/seal/currency.command.d.ts.map +1 -0
  55. package/dist/src/commands/seal/currency.command.js +52 -0
  56. package/dist/src/commands/seal/currency.command.js.map +1 -0
  57. package/dist/src/commands/seal/seal-admin-door.utils.d.ts.map +1 -1
  58. package/dist/src/commands/seal/seal-admin-door.utils.js +2 -0
  59. package/dist/src/commands/seal/seal-admin-door.utils.js.map +1 -1
  60. package/dist/src/commands/seal/verify.command.d.ts +23 -0
  61. package/dist/src/commands/seal/verify.command.d.ts.map +1 -1
  62. package/dist/src/commands/seal/verify.command.js +88 -3
  63. package/dist/src/commands/seal/verify.command.js.map +1 -1
  64. package/dist/src/services/application/content-guardrail-classifier.service.d.ts +19 -0
  65. package/dist/src/services/application/content-guardrail-classifier.service.d.ts.map +1 -1
  66. package/dist/src/services/application/content-guardrail-classifier.service.js +75 -11
  67. package/dist/src/services/application/content-guardrail-classifier.service.js.map +1 -1
  68. package/dist/src/services/application/local-provider-doubles.service.d.ts +98 -0
  69. package/dist/src/services/application/local-provider-doubles.service.d.ts.map +1 -0
  70. package/dist/src/services/application/local-provider-doubles.service.js +214 -0
  71. package/dist/src/services/application/local-provider-doubles.service.js.map +1 -0
  72. package/dist/src/services/application/provider-runtime-sync.service.d.ts.map +1 -1
  73. package/dist/src/services/application/provider-runtime-sync.service.js +26 -1
  74. package/dist/src/services/application/provider-runtime-sync.service.js.map +1 -1
  75. package/dist/src/services/application/saas-skeleton.service.d.ts.map +1 -1
  76. package/dist/src/services/application/saas-skeleton.service.js +24 -2
  77. package/dist/src/services/application/saas-skeleton.service.js.map +1 -1
  78. package/dist/src/services/application/system-of-record-simulators.service.d.ts +21 -2
  79. package/dist/src/services/application/system-of-record-simulators.service.d.ts.map +1 -1
  80. package/dist/src/services/application/system-of-record-simulators.service.js +21 -12
  81. package/dist/src/services/application/system-of-record-simulators.service.js.map +1 -1
  82. package/dist/src/services/companion/build-console.service.d.ts +39 -2
  83. package/dist/src/services/companion/build-console.service.d.ts.map +1 -1
  84. package/dist/src/services/companion/build-console.service.js +54 -4
  85. package/dist/src/services/companion/build-console.service.js.map +1 -1
  86. package/dist/src/services/companion/creation-console.service.d.ts +6 -1
  87. package/dist/src/services/companion/creation-console.service.d.ts.map +1 -1
  88. package/dist/src/services/companion/creation-console.service.js +14 -2
  89. package/dist/src/services/companion/creation-console.service.js.map +1 -1
  90. package/dist/src/services/companion/creation-drive.service.d.ts +32 -2
  91. package/dist/src/services/companion/creation-drive.service.d.ts.map +1 -1
  92. package/dist/src/services/companion/creation-drive.service.js +66 -6
  93. package/dist/src/services/companion/creation-drive.service.js.map +1 -1
  94. package/dist/src/services/credentials/composed-provider-catalogue.d.ts.map +1 -1
  95. package/dist/src/services/credentials/composed-provider-catalogue.js +14 -2
  96. package/dist/src/services/credentials/composed-provider-catalogue.js.map +1 -1
  97. package/dist/src/services/credentials/credentials.schemas.d.ts +6 -0
  98. package/dist/src/services/credentials/credentials.schemas.d.ts.map +1 -1
  99. package/dist/src/services/credentials/credentials.schemas.js +7 -1
  100. package/dist/src/services/credentials/credentials.schemas.js.map +1 -1
  101. package/dist/src/services/credentials/provider-env-vars.utils.d.ts.map +1 -1
  102. package/dist/src/services/credentials/provider-env-vars.utils.js +11 -3
  103. package/dist/src/services/credentials/provider-env-vars.utils.js.map +1 -1
  104. package/dist/src/services/credentials/secret-requirements.service.d.ts +2 -1
  105. package/dist/src/services/credentials/secret-requirements.service.d.ts.map +1 -1
  106. package/dist/src/services/credentials/secret-requirements.service.js +17 -1
  107. package/dist/src/services/credentials/secret-requirements.service.js.map +1 -1
  108. package/dist/src/services/data-services/data-services.schemas.d.ts +9 -0
  109. package/dist/src/services/data-services/data-services.schemas.d.ts.map +1 -1
  110. package/dist/src/services/data-services/data-services.schemas.js +9 -0
  111. package/dist/src/services/data-services/data-services.schemas.js.map +1 -1
  112. package/dist/src/services/deployment/application-runtime-environment.d.ts.map +1 -1
  113. package/dist/src/services/deployment/application-runtime-environment.js +3 -13
  114. package/dist/src/services/deployment/application-runtime-environment.js.map +1 -1
  115. package/dist/src/services/deployment/docker/docker-compose-generator.service.d.ts.map +1 -1
  116. package/dist/src/services/deployment/docker/docker-compose-generator.service.js +15 -4
  117. package/dist/src/services/deployment/docker/docker-compose-generator.service.js.map +1 -1
  118. package/dist/src/services/deployment/host-toolchain-readiness.service.d.ts +1 -1
  119. package/dist/src/services/deployment/host-toolchain-readiness.service.js +1 -1
  120. package/dist/src/services/deployment/host-toolchain-readiness.service.js.map +1 -1
  121. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.d.ts.map +1 -1
  122. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js +3 -1
  123. package/dist/src/services/deployment/k8s/k8s-manifest-generator.service.js.map +1 -1
  124. package/dist/src/services/deployment/local-dev-session-lease.service.d.ts.map +1 -1
  125. package/dist/src/services/deployment/local-dev-session-lease.service.js +22 -1
  126. package/dist/src/services/deployment/local-dev-session-lease.service.js.map +1 -1
  127. package/dist/src/services/deployment/local-precondition-checks.service.d.ts.map +1 -1
  128. package/dist/src/services/deployment/local-precondition-checks.service.js +4 -2
  129. package/dist/src/services/deployment/local-precondition-checks.service.js.map +1 -1
  130. package/dist/src/services/environment/authored-infra-config.utils.d.ts.map +1 -1
  131. package/dist/src/services/environment/authored-infra-config.utils.js +1 -0
  132. package/dist/src/services/environment/authored-infra-config.utils.js.map +1 -1
  133. package/dist/src/services/environment/authored-infra-member-authority.d.ts.map +1 -1
  134. package/dist/src/services/environment/authored-infra-member-authority.js +5 -0
  135. package/dist/src/services/environment/authored-infra-member-authority.js.map +1 -1
  136. package/dist/src/services/environment/env-configuration-generator.service.d.ts.map +1 -1
  137. package/dist/src/services/environment/env-configuration-generator.service.js +14 -6
  138. package/dist/src/services/environment/env-configuration-generator.service.js.map +1 -1
  139. package/dist/src/services/environment/env-vars-builder.service.d.ts +6 -0
  140. package/dist/src/services/environment/env-vars-builder.service.d.ts.map +1 -1
  141. package/dist/src/services/environment/env-vars-builder.service.js +24 -1
  142. package/dist/src/services/environment/env-vars-builder.service.js.map +1 -1
  143. package/dist/src/services/environment/environment-hydration.utils.d.ts.map +1 -1
  144. package/dist/src/services/environment/environment-hydration.utils.js +1 -0
  145. package/dist/src/services/environment/environment-hydration.utils.js.map +1 -1
  146. package/dist/src/services/environment/environment-service-profile.utils.d.ts +8 -1
  147. package/dist/src/services/environment/environment-service-profile.utils.d.ts.map +1 -1
  148. package/dist/src/services/environment/environment-service-profile.utils.js +14 -1
  149. package/dist/src/services/environment/environment-service-profile.utils.js.map +1 -1
  150. package/dist/src/services/environment/environment.schemas.d.ts +7 -1
  151. package/dist/src/services/environment/environment.schemas.d.ts.map +1 -1
  152. package/dist/src/services/environment/environment.schemas.js.map +1 -1
  153. package/dist/src/services/environment/runtime-bootstrap.service.d.ts +2 -0
  154. package/dist/src/services/environment/runtime-bootstrap.service.d.ts.map +1 -1
  155. package/dist/src/services/environment/runtime-bootstrap.service.js +4 -0
  156. package/dist/src/services/environment/runtime-bootstrap.service.js.map +1 -1
  157. package/dist/src/services/framework/framework-docker-publish.service.d.ts +102 -0
  158. package/dist/src/services/framework/framework-docker-publish.service.d.ts.map +1 -1
  159. package/dist/src/services/framework/framework-docker-publish.service.js +204 -25
  160. package/dist/src/services/framework/framework-docker-publish.service.js.map +1 -1
  161. package/dist/src/services/framework/github-actions-annotation.d.ts +19 -0
  162. package/dist/src/services/framework/github-actions-annotation.d.ts.map +1 -0
  163. package/dist/src/services/framework/github-actions-annotation.js +25 -0
  164. package/dist/src/services/framework/github-actions-annotation.js.map +1 -0
  165. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts +43 -0
  166. package/dist/src/services/framework/registry-host/registry-host-upgrade.d.ts.map +1 -0
  167. package/dist/src/services/framework/registry-host/registry-host-upgrade.js +117 -0
  168. package/dist/src/services/framework/registry-host/registry-host-upgrade.js.map +1 -0
  169. package/dist/src/services/framework/registry-host/registry-host.service.d.ts +1 -1
  170. package/dist/src/services/framework/registry-host/registry-host.service.d.ts.map +1 -1
  171. package/dist/src/services/framework/registry-host/registry-host.service.js +2 -0
  172. package/dist/src/services/framework/registry-host/registry-host.service.js.map +1 -1
  173. package/dist/src/services/registry/installed-file-state.utils.d.ts +8 -0
  174. package/dist/src/services/registry/installed-file-state.utils.d.ts.map +1 -1
  175. package/dist/src/services/registry/installed-file-state.utils.js +9 -1
  176. package/dist/src/services/registry/installed-file-state.utils.js.map +1 -1
  177. package/dist/src/services/registry/module-install.service.d.ts.map +1 -1
  178. package/dist/src/services/registry/module-install.service.js +1 -0
  179. package/dist/src/services/registry/module-install.service.js.map +1 -1
  180. package/dist/src/services/registry/provider-connect.service.d.ts +57 -1
  181. package/dist/src/services/registry/provider-connect.service.d.ts.map +1 -1
  182. package/dist/src/services/registry/provider-connect.service.js +63 -2
  183. package/dist/src/services/registry/provider-connect.service.js.map +1 -1
  184. package/dist/src/services/registry/provider-module-scaffold.service.d.ts.map +1 -1
  185. package/dist/src/services/registry/provider-module-scaffold.service.js +4 -0
  186. package/dist/src/services/registry/provider-module-scaffold.service.js.map +1 -1
  187. package/dist/tsconfig.build.tsbuildinfo +1 -1
  188. package/framework-root-package.json +3 -3
  189. package/package.json +22 -22
  190. package/scripts/app-dependency-alignment/propagated-engine-overrides.json +2 -2
  191. package/templates/infra/docker-compose/docker-compose.wildo-platform.yml.hbs +17 -2
  192. package/templates/infra/registry-host/docker-compose.yml +9 -2
  193. package/templates/infra/registry-host/upgrade-image.sh +108 -0
  194. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_ready/labels.fr.ts +22 -0
  195. package/templates/saas/i18n/email/resources/dataSubjectRequests/create.users-custom_received/labels.fr.ts +23 -0
  196. package/templates/saas/i18n/email/resources/dataSubjectRequests/update.users-custom_extended/labels.fr.ts +23 -0
  197. package/templates/saas/i18n/email/resources/organizationSsoConfig/repairUnreadableConfiguration.organization-users/labels.fr.ts +23 -0
  198. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.en.ts +28 -0
  199. package/templates/saas/i18n/engine/components/HIGH_LEVEL_VIEWS_CHART_DASHBOARD_LAYOUT_EDITOR.fr.ts +28 -0
  200. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.en.ts +2 -1
  201. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_APPROVAL.fr.ts +2 -1
  202. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.en.ts +6 -1
  203. package/templates/saas/i18n/engine/components/LOW_LEVEL_AI_CONVERSATION_THREAD.fr.ts +6 -1
  204. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.en.ts +40 -0
  205. package/templates/saas/i18n/engine/components/LOW_LEVEL_APPROVAL_SEAL.fr.ts +40 -0
  206. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.en.ts +2 -1
  207. package/templates/saas/i18n/engine/components/LOW_LEVEL_CONTENT_SECTION_CONTAINER.fr.ts +2 -1
  208. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.en.ts +2 -1
  209. package/templates/saas/i18n/engine/components/LOW_LEVEL_FORM_FIELD_STRING.fr.ts +2 -1
  210. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.en.ts +2 -1
  211. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_MFA_CHALLENGE.fr.ts +2 -1
  212. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.en.ts +3 -1
  213. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_TERMS.fr.ts +3 -1
  214. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.en.ts +2 -1
  215. package/templates/saas/i18n/engine/components/PUBLIC_LAYOUTS_USER_AUTH.fr.ts +2 -1
  216. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.en.ts +3 -1
  217. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_FILTERS.fr.ts +4 -2
  218. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.en.ts +18 -1
  219. package/templates/saas/i18n/engine/components/RESOURCES_LAYOUTS_LIST.fr.ts +18 -1
  220. package/templates/saas/i18n/engine/resources/actorSystemExecutions.en.ts +10 -82
  221. package/templates/saas/i18n/engine/resources/actorSystemExecutions.fr.ts +0 -72
  222. package/templates/saas/i18n/engine/resources/actorTasks.en.ts +0 -33
  223. package/templates/saas/i18n/engine/resources/actorTasks.fr.ts +0 -33
  224. package/templates/saas/i18n/engine/resources/agentBehaviorReports.en.ts +0 -108
  225. package/templates/saas/i18n/engine/resources/agentBehaviorReports.fr.ts +0 -108
  226. package/templates/saas/i18n/engine/resources/agentOperationRecords.en.ts +8 -24
  227. package/templates/saas/i18n/engine/resources/agentOperationRecords.fr.ts +10 -26
  228. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.en.ts +0 -12
  229. package/templates/saas/i18n/engine/resources/agentWorkCaptureSettings.fr.ts +0 -12
  230. package/templates/saas/i18n/engine/resources/anonymous_users.en.ts +8 -74
  231. package/templates/saas/i18n/engine/resources/anonymous_users.fr.ts +0 -66
  232. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.en.ts +3 -21
  233. package/templates/saas/i18n/engine/resources/applicationA2aPushDeliveryLog.fr.ts +0 -18
  234. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.en.ts +3 -33
  235. package/templates/saas/i18n/engine/resources/applicationA2aTokenBudgetState.fr.ts +0 -30
  236. package/templates/saas/i18n/engine/resources/applicationAccessGrants.en.ts +13 -55
  237. package/templates/saas/i18n/engine/resources/applicationAccessGrants.fr.ts +0 -42
  238. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.en.ts +8 -24
  239. package/templates/saas/i18n/engine/resources/applicationAgentPolicies.fr.ts +8 -24
  240. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.en.ts +0 -27
  241. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisionContents.fr.ts +0 -27
  242. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.en.ts +13 -43
  243. package/templates/saas/i18n/engine/resources/applicationAgentWorkDecisions.fr.ts +0 -30
  244. package/templates/saas/i18n/engine/resources/applicationApiKeys.en.ts +2 -70
  245. package/templates/saas/i18n/engine/resources/applicationApiKeys.fr.ts +2 -70
  246. package/templates/saas/i18n/engine/resources/applicationAuditLogs.en.ts +41 -94
  247. package/templates/saas/i18n/engine/resources/applicationAuditLogs.fr.ts +41 -94
  248. package/templates/saas/i18n/engine/resources/applicationDataKeys.en.ts +2 -22
  249. package/templates/saas/i18n/engine/resources/applicationDataKeys.fr.ts +2 -22
  250. package/templates/saas/i18n/engine/resources/applicationFeatures.en.ts +0 -24
  251. package/templates/saas/i18n/engine/resources/applicationFeatures.fr.ts +0 -24
  252. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.en.ts +25 -160
  253. package/templates/saas/i18n/engine/resources/applicationFlowActorExecutions.fr.ts +25 -160
  254. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.en.ts +6 -28
  255. package/templates/saas/i18n/engine/resources/applicationFlowActorTasks.fr.ts +8 -30
  256. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.en.ts +92 -23
  257. package/templates/saas/i18n/engine/resources/applicationInboundDeliveries.fr.ts +95 -26
  258. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.en.ts +1 -25
  259. package/templates/saas/i18n/engine/resources/applicationM2mWebhookDeliveryLog.fr.ts +4 -28
  260. package/templates/saas/i18n/engine/resources/applicationMetadata.en.ts +0 -18
  261. package/templates/saas/i18n/engine/resources/applicationMetadata.fr.ts +0 -18
  262. package/templates/saas/i18n/engine/resources/applicationOAuthClients.en.ts +2 -58
  263. package/templates/saas/i18n/engine/resources/applicationOAuthClients.fr.ts +2 -58
  264. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.en.ts +168 -0
  265. package/templates/saas/i18n/engine/resources/applicationProviderCredentials.fr.ts +168 -0
  266. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.en.ts +0 -30
  267. package/templates/saas/i18n/engine/resources/applicationScimProvisioningConfig.fr.ts +0 -30
  268. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.en.ts +3 -42
  269. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryDlq.fr.ts +5 -44
  270. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.en.ts +3 -30
  271. package/templates/saas/i18n/engine/resources/applicationSiemDeliveryOutbox.fr.ts +0 -27
  272. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.en.ts +0 -24
  273. package/templates/saas/i18n/engine/resources/applicationSiemExportConfig.fr.ts +0 -24
  274. package/templates/saas/i18n/engine/resources/applicationSsoConfig.en.ts +113 -61
  275. package/templates/saas/i18n/engine/resources/applicationSsoConfig.fr.ts +113 -61
  276. package/templates/saas/i18n/engine/resources/applicationSsoConnections.en.ts +0 -138
  277. package/templates/saas/i18n/engine/resources/applicationSsoConnections.fr.ts +0 -138
  278. package/templates/saas/i18n/engine/resources/applicationVersions.en.ts +3 -27
  279. package/templates/saas/i18n/engine/resources/applicationVersions.fr.ts +0 -24
  280. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.en.ts +5 -54
  281. package/templates/saas/i18n/engine/resources/applicationWebhookConfig.fr.ts +5 -54
  282. package/templates/saas/i18n/engine/resources/applications.en.ts +39 -2177
  283. package/templates/saas/i18n/engine/resources/applications.fr.ts +39 -2177
  284. package/templates/saas/i18n/engine/resources/approvalSeals.en.ts +38 -31
  285. package/templates/saas/i18n/engine/resources/approvalSeals.fr.ts +38 -31
  286. package/templates/saas/i18n/engine/resources/auditLogs.en.ts +78 -111
  287. package/templates/saas/i18n/engine/resources/auditLogs.fr.ts +78 -111
  288. package/templates/saas/i18n/engine/resources/billingEffectOutbox.en.ts +2 -4
  289. package/templates/saas/i18n/engine/resources/billingEffectOutbox.fr.ts +2 -4
  290. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.en.ts +8 -6
  291. package/templates/saas/i18n/engine/resources/billingSubscriptionMutationIntents.fr.ts +8 -6
  292. package/templates/saas/i18n/engine/resources/chatConversations.en.ts +0 -18
  293. package/templates/saas/i18n/engine/resources/chatConversations.fr.ts +0 -18
  294. package/templates/saas/i18n/engine/resources/chatIdentityLinks.en.ts +0 -44
  295. package/templates/saas/i18n/engine/resources/chatIdentityLinks.fr.ts +0 -44
  296. package/templates/saas/i18n/engine/resources/consumableTokens.en.ts +4 -43
  297. package/templates/saas/i18n/engine/resources/consumableTokens.fr.ts +4 -43
  298. package/templates/saas/i18n/engine/resources/conversationMessages.en.ts +16 -27
  299. package/templates/saas/i18n/engine/resources/conversationMessages.fr.ts +16 -27
  300. package/templates/saas/i18n/engine/resources/conversationReplyTokens.en.ts +0 -27
  301. package/templates/saas/i18n/engine/resources/conversationReplyTokens.fr.ts +0 -27
  302. package/templates/saas/i18n/engine/resources/conversationThreads.en.ts +0 -27
  303. package/templates/saas/i18n/engine/resources/conversationThreads.fr.ts +0 -27
  304. package/templates/saas/i18n/engine/resources/dataSeedRuns.en.ts +22 -17
  305. package/templates/saas/i18n/engine/resources/dataSeedRuns.fr.ts +22 -17
  306. package/templates/saas/i18n/engine/resources/dataSubjectRequests.en.ts +410 -0
  307. package/templates/saas/i18n/engine/resources/dataSubjectRequests.fr.ts +410 -0
  308. package/templates/saas/i18n/engine/resources/etlPipelineStates.en.ts +128 -146
  309. package/templates/saas/i18n/engine/resources/etlPipelineStates.fr.ts +0 -18
  310. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.en.ts +13 -43
  311. package/templates/saas/i18n/engine/resources/evaluationDatasetExports.fr.ts +0 -30
  312. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.en.ts +0 -12
  313. package/templates/saas/i18n/engine/resources/evaluationExportAuthorizations.fr.ts +0 -12
  314. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.en.ts +0 -21
  315. package/templates/saas/i18n/engine/resources/externalDataErasureSuppressions.fr.ts +0 -21
  316. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.en.ts +24 -45
  317. package/templates/saas/i18n/engine/resources/externalDataOutboundChanges.fr.ts +0 -21
  318. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.en.ts +0 -24
  319. package/templates/saas/i18n/engine/resources/externalDataPendingReferences.fr.ts +0 -24
  320. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.en.ts +0 -21
  321. package/templates/saas/i18n/engine/resources/externalDataPipelineMembershipKeys.fr.ts +0 -21
  322. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.en.ts +8 -14
  323. package/templates/saas/i18n/engine/resources/externalDataPipelineMemberships.fr.ts +0 -6
  324. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.en.ts +0 -24
  325. package/templates/saas/i18n/engine/resources/externalDataPipelineRequestedKeys.fr.ts +0 -24
  326. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.en.ts +150 -174
  327. package/templates/saas/i18n/engine/resources/externalDataPipelineRunRecords.fr.ts +0 -24
  328. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.en.ts +12 -33
  329. package/templates/saas/i18n/engine/resources/externalDataRemoteVersions.fr.ts +0 -21
  330. package/templates/saas/i18n/engine/resources/externalEffectReservations.en.ts +147 -0
  331. package/templates/saas/i18n/engine/resources/externalEffectReservations.fr.ts +147 -0
  332. package/templates/saas/i18n/engine/resources/files.en.ts +0 -39
  333. package/templates/saas/i18n/engine/resources/files.fr.ts +0 -39
  334. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.en.ts +0 -18
  335. package/templates/saas/i18n/engine/resources/humanDecisionNoticeStays.fr.ts +0 -18
  336. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.en.ts +115 -0
  337. package/templates/saas/i18n/engine/resources/idempotentRequestOutcomes.fr.ts +115 -0
  338. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.en.ts +0 -27
  339. package/templates/saas/i18n/engine/resources/inboundAddressTombstones.fr.ts +0 -27
  340. package/templates/saas/i18n/engine/resources/inboundContacts.en.ts +3 -30
  341. package/templates/saas/i18n/engine/resources/inboundContacts.fr.ts +0 -27
  342. package/templates/saas/i18n/engine/resources/inboundEmails.en.ts +0 -27
  343. package/templates/saas/i18n/engine/resources/inboundEmails.fr.ts +0 -27
  344. package/templates/saas/i18n/engine/resources/jobExecutions.en.ts +11 -25
  345. package/templates/saas/i18n/engine/resources/jobExecutions.fr.ts +11 -25
  346. package/templates/saas/i18n/engine/resources/jobPayloadStorage.en.ts +3 -30
  347. package/templates/saas/i18n/engine/resources/jobPayloadStorage.fr.ts +0 -27
  348. package/templates/saas/i18n/engine/resources/legalHolds.en.ts +0 -88
  349. package/templates/saas/i18n/engine/resources/legalHolds.fr.ts +0 -88
  350. package/templates/saas/i18n/engine/resources/modelCallAttributions.en.ts +16 -40
  351. package/templates/saas/i18n/engine/resources/modelCallAttributions.fr.ts +0 -24
  352. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.en.ts +13 -37
  353. package/templates/saas/i18n/engine/resources/modelCostPeriodAggregates.fr.ts +0 -24
  354. package/templates/saas/i18n/engine/resources/oauthConsentGrants.en.ts +10 -40
  355. package/templates/saas/i18n/engine/resources/oauthConsentGrants.fr.ts +0 -30
  356. package/templates/saas/i18n/engine/resources/operationApprovalRequests.en.ts +120 -60
  357. package/templates/saas/i18n/engine/resources/operationApprovalRequests.fr.ts +120 -60
  358. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.en.ts +3 -21
  359. package/templates/saas/i18n/engine/resources/organizationA2aPushDeliveryLog.fr.ts +0 -18
  360. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.en.ts +3 -33
  361. package/templates/saas/i18n/engine/resources/organizationA2aTokenBudgetState.fr.ts +0 -30
  362. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.en.ts +0 -27
  363. package/templates/saas/i18n/engine/resources/organizationAgentPolicies.fr.ts +0 -27
  364. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.en.ts +0 -27
  365. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisionContents.fr.ts +0 -27
  366. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.en.ts +13 -43
  367. package/templates/saas/i18n/engine/resources/organizationAgentWorkDecisions.fr.ts +0 -30
  368. package/templates/saas/i18n/engine/resources/organizationApiKeys.en.ts +2 -79
  369. package/templates/saas/i18n/engine/resources/organizationApiKeys.fr.ts +2 -79
  370. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.en.ts +0 -549
  371. package/templates/saas/i18n/engine/resources/organizationBillingAccounts.fr.ts +0 -549
  372. package/templates/saas/i18n/engine/resources/organizationChatSettings.en.ts +0 -27
  373. package/templates/saas/i18n/engine/resources/organizationChatSettings.fr.ts +0 -27
  374. package/templates/saas/i18n/engine/resources/organizationCreditPools.en.ts +13 -18
  375. package/templates/saas/i18n/engine/resources/organizationCreditPools.fr.ts +13 -18
  376. package/templates/saas/i18n/engine/resources/organizationCustomDomains.en.ts +195 -0
  377. package/templates/saas/i18n/engine/resources/organizationCustomDomains.fr.ts +195 -0
  378. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.en.ts +153 -0
  379. package/templates/saas/i18n/engine/resources/organizationDashboardLayouts.fr.ts +153 -0
  380. package/templates/saas/i18n/engine/resources/organizationEmailDomains.en.ts +0 -39
  381. package/templates/saas/i18n/engine/resources/organizationEmailDomains.fr.ts +0 -39
  382. package/templates/saas/i18n/engine/resources/organizationFeatures.en.ts +0 -34
  383. package/templates/saas/i18n/engine/resources/organizationFeatures.fr.ts +0 -34
  384. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.en.ts +25 -160
  385. package/templates/saas/i18n/engine/resources/organizationFlowActorExecutions.fr.ts +25 -160
  386. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.en.ts +6 -28
  387. package/templates/saas/i18n/engine/resources/organizationFlowActorTasks.fr.ts +8 -30
  388. package/templates/saas/i18n/engine/resources/organizationGuidanceState.en.ts +3 -18
  389. package/templates/saas/i18n/engine/resources/organizationGuidanceState.fr.ts +0 -15
  390. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.en.ts +95 -26
  391. package/templates/saas/i18n/engine/resources/organizationInboundDeliveries.fr.ts +95 -26
  392. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.en.ts +14 -45
  393. package/templates/saas/i18n/engine/resources/organizationInvoiceRefs.fr.ts +14 -45
  394. package/templates/saas/i18n/engine/resources/organizationLifecycleState.en.ts +1 -17
  395. package/templates/saas/i18n/engine/resources/organizationLifecycleState.fr.ts +1 -17
  396. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.en.ts +2 -26
  397. package/templates/saas/i18n/engine/resources/organizationM2mWebhookDeliveryLog.fr.ts +4 -28
  398. package/templates/saas/i18n/engine/resources/organizationMembers.en.ts +2 -95
  399. package/templates/saas/i18n/engine/resources/organizationMembers.fr.ts +2 -95
  400. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.en.ts +0 -27
  401. package/templates/saas/i18n/engine/resources/organizationModelUsageCeilingState.fr.ts +0 -27
  402. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.en.ts +3 -36
  403. package/templates/saas/i18n/engine/resources/organizationNotificationBadges.fr.ts +0 -33
  404. package/templates/saas/i18n/engine/resources/organizationNotifications.en.ts +0 -12
  405. package/templates/saas/i18n/engine/resources/organizationNotifications.fr.ts +0 -12
  406. package/templates/saas/i18n/engine/resources/organizationOAuthClients.en.ts +2 -67
  407. package/templates/saas/i18n/engine/resources/organizationOAuthClients.fr.ts +2 -67
  408. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.en.ts +0 -9
  409. package/templates/saas/i18n/engine/resources/organizationOnboardingOperations.fr.ts +0 -9
  410. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.en.ts +0 -27
  411. package/templates/saas/i18n/engine/resources/organizationPersonTokenCeilingState.fr.ts +0 -27
  412. package/templates/saas/i18n/engine/resources/organizationPreferences.en.ts +0 -37
  413. package/templates/saas/i18n/engine/resources/organizationPreferences.fr.ts +0 -37
  414. package/templates/saas/i18n/engine/resources/organizationProfiles.en.ts +0 -37
  415. package/templates/saas/i18n/engine/resources/organizationProfiles.fr.ts +0 -37
  416. package/templates/saas/i18n/engine/resources/organizationProgressionState.en.ts +1 -17
  417. package/templates/saas/i18n/engine/resources/organizationProgressionState.fr.ts +1 -17
  418. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.en.ts +0 -58
  419. package/templates/saas/i18n/engine/resources/organizationProviderCredentials.fr.ts +0 -58
  420. package/templates/saas/i18n/engine/resources/organizationRelationships.en.ts +0 -128
  421. package/templates/saas/i18n/engine/resources/organizationRelationships.fr.ts +0 -128
  422. package/templates/saas/i18n/engine/resources/organizationRepresentations.en.ts +0 -83
  423. package/templates/saas/i18n/engine/resources/organizationRepresentations.fr.ts +0 -83
  424. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.en.ts +0 -43
  425. package/templates/saas/i18n/engine/resources/organizationScimProvisioningConfig.fr.ts +0 -43
  426. package/templates/saas/i18n/engine/resources/organizationScimTokens.en.ts +5 -76
  427. package/templates/saas/i18n/engine/resources/organizationScimTokens.fr.ts +5 -76
  428. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.en.ts +4 -43
  429. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryDlq.fr.ts +6 -45
  430. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.en.ts +3 -30
  431. package/templates/saas/i18n/engine/resources/organizationSiemDeliveryOutbox.fr.ts +0 -27
  432. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.en.ts +0 -37
  433. package/templates/saas/i18n/engine/resources/organizationSiemExportConfig.fr.ts +0 -37
  434. package/templates/saas/i18n/engine/resources/organizationSsoConfig.en.ts +113 -74
  435. package/templates/saas/i18n/engine/resources/organizationSsoConfig.fr.ts +113 -74
  436. package/templates/saas/i18n/engine/resources/organizationSsoConnections.en.ts +0 -148
  437. package/templates/saas/i18n/engine/resources/organizationSsoConnections.fr.ts +0 -148
  438. package/templates/saas/i18n/engine/resources/organizationSubscriptions.en.ts +40 -78
  439. package/templates/saas/i18n/engine/resources/organizationSubscriptions.fr.ts +42 -80
  440. package/templates/saas/i18n/engine/resources/organizationUnitMembers.en.ts +2 -50
  441. package/templates/saas/i18n/engine/resources/organizationUnitMembers.fr.ts +2 -50
  442. package/templates/saas/i18n/engine/resources/organizationUnits.en.ts +0 -49
  443. package/templates/saas/i18n/engine/resources/organizationUnits.fr.ts +0 -49
  444. package/templates/saas/i18n/engine/resources/organizationUsageRecords.en.ts +13 -37
  445. package/templates/saas/i18n/engine/resources/organizationUsageRecords.fr.ts +13 -37
  446. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.en.ts +5 -67
  447. package/templates/saas/i18n/engine/resources/organizationWebhookConfig.fr.ts +5 -67
  448. package/templates/saas/i18n/engine/resources/organizations.en.ts +34 -637
  449. package/templates/saas/i18n/engine/resources/organizations.fr.ts +32 -635
  450. package/templates/saas/i18n/engine/resources/platformAccessGrants.en.ts +0 -91
  451. package/templates/saas/i18n/engine/resources/platformAccessGrants.fr.ts +0 -91
  452. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.en.ts +0 -24
  453. package/templates/saas/i18n/engine/resources/postCommitEffectOutbox.fr.ts +0 -24
  454. package/templates/saas/i18n/engine/resources/prices.en.ts +47 -108
  455. package/templates/saas/i18n/engine/resources/prices.fr.ts +48 -109
  456. package/templates/saas/i18n/engine/resources/products.en.ts +24 -68
  457. package/templates/saas/i18n/engine/resources/products.fr.ts +24 -68
  458. package/templates/saas/i18n/engine/resources/professionalQualifications.en.ts +0 -87
  459. package/templates/saas/i18n/engine/resources/professionalQualifications.fr.ts +0 -87
  460. package/templates/saas/i18n/engine/resources/promotions.en.ts +4 -56
  461. package/templates/saas/i18n/engine/resources/promotions.fr.ts +6 -58
  462. package/templates/saas/i18n/engine/resources/providerCallRecords.en.ts +77 -101
  463. package/templates/saas/i18n/engine/resources/providerCallRecords.fr.ts +0 -24
  464. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.en.ts +2 -25
  465. package/templates/saas/i18n/engine/resources/publishedVerificationKeys.fr.ts +2 -25
  466. package/templates/saas/i18n/engine/resources/referrals.en.ts +21 -18
  467. package/templates/saas/i18n/engine/resources/referrals.fr.ts +21 -18
  468. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.en.ts +0 -80
  469. package/templates/saas/i18n/engine/resources/relationshipCapabilityGrants.fr.ts +0 -80
  470. package/templates/saas/i18n/engine/resources/relationshipInvitations.en.ts +0 -89
  471. package/templates/saas/i18n/engine/resources/relationshipInvitations.fr.ts +0 -89
  472. package/templates/saas/i18n/engine/resources/relationshipMailboxes.en.ts +0 -27
  473. package/templates/saas/i18n/engine/resources/relationshipMailboxes.fr.ts +0 -27
  474. package/templates/saas/i18n/engine/resources/representativeAssignments.en.ts +108 -112
  475. package/templates/saas/i18n/engine/resources/representativeAssignments.fr.ts +108 -112
  476. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.en.ts +8 -21
  477. package/templates/saas/i18n/engine/resources/retentionEnforcementRecords.fr.ts +8 -21
  478. package/templates/saas/i18n/engine/resources/signatureRequestSigners.en.ts +141 -0
  479. package/templates/saas/i18n/engine/resources/signatureRequestSigners.fr.ts +141 -0
  480. package/templates/saas/i18n/engine/resources/signatureRequests.en.ts +205 -0
  481. package/templates/saas/i18n/engine/resources/signatureRequests.fr.ts +205 -0
  482. package/templates/saas/i18n/engine/resources/smsNumberAssignments.en.ts +101 -0
  483. package/templates/saas/i18n/engine/resources/smsNumberAssignments.fr.ts +101 -0
  484. package/templates/saas/i18n/engine/resources/smsOptOuts.en.ts +166 -0
  485. package/templates/saas/i18n/engine/resources/smsOptOuts.fr.ts +166 -0
  486. package/templates/saas/i18n/engine/resources/smsProviderEvents.en.ts +195 -0
  487. package/templates/saas/i18n/engine/resources/smsProviderEvents.fr.ts +195 -0
  488. package/templates/saas/i18n/engine/resources/ssoDomainReservations.en.ts +0 -27
  489. package/templates/saas/i18n/engine/resources/ssoDomainReservations.fr.ts +0 -27
  490. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.en.ts +3 -39
  491. package/templates/saas/i18n/engine/resources/systemOfRecordPartitionAssignments.fr.ts +0 -36
  492. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.en.ts +0 -3
  493. package/templates/saas/i18n/engine/resources/systemOfRecordWriteAdmissions.fr.ts +0 -3
  494. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.en.ts +0 -6
  495. package/templates/saas/i18n/engine/resources/transactionalCommitReceipts.fr.ts +0 -6
  496. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.en.ts +3 -21
  497. package/templates/saas/i18n/engine/resources/userA2aPushDeliveryLog.fr.ts +0 -18
  498. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.en.ts +3 -33
  499. package/templates/saas/i18n/engine/resources/userA2aTokenBudgetState.fr.ts +0 -30
  500. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.en.ts +0 -27
  501. package/templates/saas/i18n/engine/resources/userAgentWorkDecisionContents.fr.ts +0 -27
  502. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.en.ts +13 -43
  503. package/templates/saas/i18n/engine/resources/userAgentWorkDecisions.fr.ts +0 -30
  504. package/templates/saas/i18n/engine/resources/userCredentials.en.ts +3 -87
  505. package/templates/saas/i18n/engine/resources/userCredentials.fr.ts +0 -84
  506. package/templates/saas/i18n/engine/resources/userFeatures.en.ts +0 -12
  507. package/templates/saas/i18n/engine/resources/userFeatures.fr.ts +0 -12
  508. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.en.ts +25 -160
  509. package/templates/saas/i18n/engine/resources/userFlowActorExecutions.fr.ts +25 -160
  510. package/templates/saas/i18n/engine/resources/userFlowActorTasks.en.ts +6 -28
  511. package/templates/saas/i18n/engine/resources/userFlowActorTasks.fr.ts +8 -30
  512. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.en.ts +13 -18
  513. package/templates/saas/i18n/engine/resources/userGovernedDocumentAcceptances.fr.ts +13 -18
  514. package/templates/saas/i18n/engine/resources/userGuidanceState.en.ts +3 -18
  515. package/templates/saas/i18n/engine/resources/userGuidanceState.fr.ts +0 -15
  516. package/templates/saas/i18n/engine/resources/userIdentityLinks.en.ts +13 -40
  517. package/templates/saas/i18n/engine/resources/userIdentityLinks.fr.ts +0 -27
  518. package/templates/saas/i18n/engine/resources/userLifecycleState.en.ts +0 -15
  519. package/templates/saas/i18n/engine/resources/userLifecycleState.fr.ts +0 -15
  520. package/templates/saas/i18n/engine/resources/userNotificationBadges.en.ts +3 -36
  521. package/templates/saas/i18n/engine/resources/userNotificationBadges.fr.ts +0 -33
  522. package/templates/saas/i18n/engine/resources/userPreferences.en.ts +8 -60
  523. package/templates/saas/i18n/engine/resources/userPreferences.fr.ts +8 -60
  524. package/templates/saas/i18n/engine/resources/userProfiles.en.ts +5 -56
  525. package/templates/saas/i18n/engine/resources/userProfiles.fr.ts +0 -51
  526. package/templates/saas/i18n/engine/resources/userProgressionState.en.ts +1 -17
  527. package/templates/saas/i18n/engine/resources/userProgressionState.fr.ts +1 -17
  528. package/templates/saas/i18n/engine/resources/userProviderCredentials.en.ts +0 -52
  529. package/templates/saas/i18n/engine/resources/userProviderCredentials.fr.ts +0 -52
  530. package/templates/saas/i18n/engine/resources/userSelfPreferences.en.ts +8 -56
  531. package/templates/saas/i18n/engine/resources/userSelfPreferences.fr.ts +8 -56
  532. package/templates/saas/i18n/engine/resources/userSelfProfiles.en.ts +5 -61
  533. package/templates/saas/i18n/engine/resources/userSelfProfiles.fr.ts +0 -56
  534. package/templates/saas/i18n/engine/resources/user_self.en.ts +37 -214
  535. package/templates/saas/i18n/engine/resources/user_self.fr.ts +37 -214
  536. package/templates/saas/i18n/engine/resources/users.en.ts +53 -180
  537. package/templates/saas/i18n/engine/resources/users.fr.ts +53 -180
  538. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/Dockerfile +4 -1
  539. package/templates/saas/scenarios/add-technical-doc/files/technical-doc/src/plugins/api-reference-pages.ts +9 -1
  540. package/templates/saas/scenarios/add-website/files/website/Dockerfile +4 -1
  541. package/templates/saas/scenarios/add-website/files/website/astro.config.ts.hbs +4 -0
  542. package/templates/saas/scenarios/add-website/files/website/package.json.hbs +1 -1
  543. package/templates/saas/scenarios/add-worker-node/files/workers/__workerDir__/Dockerfile.hbs +3 -1
  544. package/templates/saas/skeleton/backend-api/Dockerfile +5 -2
  545. package/templates/saas/skeleton/frontend/Dockerfile +4 -1
  546. package/templates/saas/skeleton/frontend/vite-engine-dependency-prebundle.ts +10 -1
  547. package/templates/saas/skeleton/frontend/vite.config.ts.hbs +14 -3
  548. package/wildo-framework.info.json +1 -1
@@ -118,6 +118,7 @@ export async function installAcquiredModule(input) {
118
118
  // #2016: never silently replace a file the application authored itself.
119
119
  const writePlan = await planProtectedWrite({
120
120
  saasRoot,
121
+ extractDir: paths.extractDir,
121
122
  moduleId: parsed.moduleId,
122
123
  stagedPaths: await validatedStagedAppFiles({ saasRoot, extractDir: paths.extractDir, manifest: stagedManifest }),
123
124
  force: input.force,
@@ -1 +1 @@
1
- {"version":3,"file":"module-install.service.js","sourceRoot":"","sources":["../../../../src/services/registry/module-install.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,UAAU,EAAiC,MAAM,+BAA+B,CAAC;AAEnI,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EACL,mCAAmC,EACnC,4BAA4B,EAC5B,iCAAiC,GAElC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAC1H,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AACz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AAC;QAC/E,GAAG,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAClC,IAAI,mBAAmB,CAAC,YAAY,EAAE,CAAC;YACrC,GAAG,CAAC,OAAO,CAAC,wDAAwD,mBAAmB,CAAC,YAAY,CAAC,QAAQ,GAAG,CAAC,CAAC;QACpH,CAAC;QACD,OAAO,GAAG;YACR,OAAO;YACP,eAAe,EAAE,oBAAoB,KAAK,SAAS;YACnD,aAAa,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC;YACjE,qBAAqB,EAAE,mBAAmB,CAAC,qBAAqB;YAChE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC,QAAQ,EAAE,MAAM,CAAC,YAAY,CAAC;YAC/F,KAAK;SACN,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,IAAI,OAAO,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,MAAM,CAAC,QAAQ,+BAA+B,CAAC,CAAC;IAC7G,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["/**\n * Installing a registry module into an application: the pipeline `wildo registry add` runs, as a service, so the\n * one other door that installs a module — `wildo init --blueprint`, for the modules a blueprint REFERENCES (#2879) —\n * runs exactly the same steps and writes exactly the same lockfile entry.\n *\n * Two halves, because they have different preconditions:\n *\n * - `acquireModuleForInstall` RESOLVES a spec to one version and fetches its bytes: from the framework checkout for a\n * `wildo/...` spec inside a checkout (#2015), from the registry otherwise, integrity-checked against the digest the\n * registry resolved. It needs only a command context and a registry; nothing is written into the application.\n * - `installAcquiredModule` writes it: stage, check the staged manifest against the request and the host's\n * requirements, fan the files out inside the manifest's boundaries without silently replacing an application file\n * (#2016), register the module in the host's registries (#1755), and record the lockfile entry — all under the\n * workspace mutation lock, rolled back if the lockfile write fails.\n *\n * What stays with each caller is what differs between them: `registry add` runs `pnpm install` and the provider sync\n * right after, while `wildo init` installs before its own `pnpm install` and leaves the sync to `wildo config sync`.\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { RegistryLockfileService, RegistryServerClient } from '@wildo-ai/wildo-module-client';\nimport { DEFAULT_REGISTRY_ID, ModuleDistribution, ModuleKind, type RegistryModulesLockEntry } from '@wildo-ai/platform-config-lib';\nimport type { CommandContext } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { RegistryCredentialsService } from './registry-credentials.service';\nimport {\n assertModuleEntryUnchangedUnderLock,\n resolveRegistryUrlForCommand,\n withRegistryWorkspaceMutationLock,\n type ParsedModuleSpec,\n} from './registry-command.utils';\nimport { fanOutToSaasSource, readStagedManifest, rollbackFanOut, validatedStagedAppFiles } from './boundary-fanout.utils';\nimport { nextInstalledFileHashes, planProtectedWrite, registryForceBackupDirectory } from './installed-file-state.utils';\nimport { findResourceConfigurationFiles } from './migration-obligation.utils';\nimport { deriveProviderRegistration, registerModuleForInstall, rollbackInstallRegistration } from './module-registration.service';\nimport { reportRegistrationOutcome } from './provider-wiring.service';\nimport { moduleArtifactPaths } from './module-artifact-files.utils';\nimport { localCheckoutRootFor, resolveLocalCheckoutModule } from './local-checkout-module-source.service';\nimport {\n describeAcquisition,\n lockEntryProvenance,\n moduleRequirementsOriginOf,\n stageModuleAcquisition,\n type ModuleAcquisition,\n} from './module-acquisition.utils';\nimport { checkModuleRequirements } from './module-requirements.service';\nimport { assertStagedManifestMatchesRequest } from './artifact-trust.utils';\n\n/** The operator log an install writes to. */\nexport type ModuleInstallLog = CommandContext['log'];\n\n/** A resolved, fetched module version, ready to install, and the registry credential that fetched it (if any). */\nexport interface AcquiredModule {\n readonly parsed: ParsedModuleSpec;\n readonly acquisition: ModuleAcquisition;\n /** The registry URL whose stored credential was used, so the caller can mark it used once the install succeeds. */\n readonly credentialUrl?: string;\n}\n\n/**\n * Resolve `parsed` to one version and fetch it. Inside a framework checkout, a `wildo/...` spec with no registry flag\n * is served by the checkout itself (#2015); anything else comes from the registry `registryFlag` resolves to.\n */\nexport async function acquireModuleForInstall(\n ctx: CommandContext,\n parsed: ParsedModuleSpec,\n /** `saasRoot` is the application whose registry configuration applies; absent before one exists (`wildo init`). */\n input: { readonly registryFlag?: string | undefined; readonly saasRoot?: string | undefined; readonly label: string },\n): Promise<AcquiredModule> {\n const localCheckoutRoot = localCheckoutRootFor(ctx, { domain: parsed.domain, ...(input.registryFlag === undefined ? {} : { registryFlag: input.registryFlag }) });\n if (localCheckoutRoot !== undefined) {\n const local = await resolveLocalCheckoutModule({ frameworkRoot: localCheckoutRoot, domain: parsed.domain, moduleId: parsed.moduleId, range: parsed.range });\n return { parsed, acquisition: { distribution: ModuleDistribution.LOCAL_CHECKOUT, version: local.version, local } };\n }\n const resolved = await resolveRegistryUrlForCommand(ctx, { ...(input.registryFlag === undefined ? {} : { flag: input.registryFlag }), ...(input.saasRoot === undefined ? {} : { saasRoot: input.saasRoot }) });\n ctx.log.info(`[${input.label}] resolving ${parsed.moduleId}@${parsed.range} on ${resolved.url} (${resolved.source})`);\n const credential = await RegistryCredentialsService.get(resolved.url);\n const clientOptions = { baseUrl: resolved.url, authToken: credential?.rawToken };\n // Resolve the range to one exact version and its digest.\n const { version, artifactDigest, yanked } = await RegistryServerClient.resolve(clientOptions, {\n domain: parsed.domain,\n moduleId: parsed.moduleId,\n range: parsed.range,\n });\n if (yanked) {\n // Only an exact pin reaches a yanked release (#1758); install it, but say so.\n ctx.log.warn(` ${parsed.moduleId}@${version} is YANKED (${yanked.yankedAt}${yanked.reason ? `: ${yanked.reason}` : ''}). Installing the pinned release; pick a live one with a range.`);\n }\n // Download the bytes, verified against the resolved digest (KD-9: a mismatch throws).\n const { bytes } = await RegistryServerClient.download(clientOptions, {\n domain: parsed.domain,\n moduleId: parsed.moduleId,\n version,\n expectedDigest: artifactDigest,\n });\n ctx.log.info(` downloaded → ${bytes.byteLength} bytes`);\n return {\n parsed,\n acquisition: {\n distribution: ModuleDistribution.REGISTRY,\n version,\n artifactDigest,\n bytes,\n registry: { url: resolved.url, id: resolved.id ?? DEFAULT_REGISTRY_ID },\n },\n ...(credential ? { credentialUrl: resolved.url } : {}),\n };\n}\n\n/** What an install did that its caller acts on afterwards. */\nexport interface ModuleInstallOutcome {\n readonly version: string;\n /** A provider module was installed: its packages must be installed before anything discovers them. */\n readonly changedProvider: boolean;\n /** The provider ships skills (#2026). */\n readonly carriesSkills: boolean;\n /** The install-script names this install newly allowed (#2801), rebuilt after `pnpm install`. */\n readonly allowedInstallScripts: readonly string[];\n /** The module's resource configuration files, for the migration obligation (#1757). */\n readonly resourceConfigurationFiles: readonly string[];\n /** The lockfile entry written. */\n readonly entry: RegistryModulesLockEntry;\n}\n\n/**\n * Install an acquired module into `saasRoot`, under the workspace mutation lock. Refuses a module that is already\n * installed (it moves only through `update`) and a blueprint (#2861). Throws, having rolled the files and the\n * registration back, when the lockfile cannot be written.\n */\nexport async function installAcquiredModule(input: {\n readonly saasRoot: string;\n readonly frameworkRoot: string | null;\n readonly acquired: AcquiredModule;\n /** Overwrite application files no module installed, keeping a backup (`wildo registry add --force`). */\n readonly force: boolean;\n readonly log: ModuleInstallLog;\n}): Promise<ModuleInstallOutcome> {\n const { saasRoot, acquired, log } = input;\n const { parsed, acquisition } = acquired;\n const version = acquisition.version;\n log.info(` resolved → ${describeAcquisition(parsed.moduleId, acquisition)}`);\n let outcome: ModuleInstallOutcome | undefined;\n await withRegistryWorkspaceMutationLock(saasRoot, async () => {\n // Decided before the lock (\"not installed\"); re-confirmed under it.\n await assertModuleEntryUnchangedUnderLock(saasRoot, parsed.moduleId, undefined);\n // Stage the version where the fan-out reads it (the extracted artifact, or the checkout copy).\n const paths = moduleArtifactPaths(saasRoot, parsed.domain, parsed.moduleId, version);\n const stagedCount = await stageModuleAcquisition(acquisition, paths, saasRoot);\n log.success(` staged ${stagedCount} file(s) → ${path.relative(saasRoot, paths.extractDir)}/`);\n\n // The staged manifest is the source of truth for the boundary allow-list (KD-12).\n const stagedManifest = await readStagedManifest(paths.extractDir);\n assertStagedManifestMatchesRequest(stagedManifest, { moduleId: parsed.moduleId, version });\n // #2861: a blueprint is applied by `wildo init --blueprint`, never installed into an existing application. Its\n // staged copy can never become an install, so it does not stay in the application's generated tree.\n if (stagedManifest.kind === ModuleKind.BLUEPRINT) {\n await fs.rm(paths.extractDir, { recursive: true, force: true });\n await fs.rm(paths.zip, { force: true });\n throw new Error(`${stagedManifest.id} is a blueprint: it starts a new application with \\`wildo init --blueprint\\` and is never installed into an existing one.`);\n }\n for (const notice of await checkModuleRequirements(saasRoot, stagedManifest, moduleRequirementsOriginOf(acquisition))) log.warn(notice);\n // #2014: a provider module is wired into THIS application's own runtimes. Derived before a single file is\n // written, so a refusal (no backend service to own a backend facet) leaves the application untouched.\n const providerRegistration = stagedManifest.kind === ModuleKind.PROVIDER ? await deriveProviderRegistration(saasRoot, stagedManifest) : undefined;\n // M9 backup dir: sibling to `extractDir` so the fan-out walker doesn't traverse it. Cleaned up after a\n // successful fan-out.\n await fs.rm(paths.backupDir, { recursive: true, force: true });\n // #2016: never silently replace a file the application authored itself.\n const writePlan = await planProtectedWrite({\n saasRoot,\n moduleId: parsed.moduleId,\n stagedPaths: await validatedStagedAppFiles({ saasRoot, extractDir: paths.extractDir, manifest: stagedManifest }),\n force: input.force,\n restoreMissing: false,\n backupDirectory: registryForceBackupDirectory(saasRoot, parsed.moduleId),\n findOtherOwners: (candidates) => RegistryLockfileService.findFileOwners({ saasRoot, paths: candidates, excludeModuleId: parsed.moduleId }),\n });\n for (const forced of writePlan.forced) log.warn(` overwrote ${forced.path} (--force); the application's version is at ${path.relative(saasRoot, forced.backup)}`);\n const fanOut = await fanOutToSaasSource({\n saasRoot,\n extractDir: paths.extractDir,\n manifest: stagedManifest,\n moduleId: parsed.moduleId,\n backupDir: paths.backupDir,\n skipPaths: writePlan.skip,\n });\n log.success(` wrote ${fanOut.writtenFiles.length} app source file(s) per manifest.boundaries`);\n for (const warning of fanOut.overlapWarnings) {\n log.warn(` [overlap] \"${warning.path}\" was also claimed by \"${warning.otherModuleId}\" — overwritten by ${parsed.moduleId}.`);\n }\n\n // #1755: register the module in the host's registries (or mark why it is not).\n const registrationOutcome = registerModuleForInstall(saasRoot, input.frameworkRoot, stagedManifest, undefined, providerRegistration);\n reportRegistrationOutcome(log, registrationOutcome, saasRoot);\n\n // The lockfile entry; `files[]` records the application paths so `remove` can clean them up symmetrically. If its\n // write fails after the fan-out succeeded, the application source is rolled back so a half-applied install does\n // not leak into the repository.\n const entry: RegistryModulesLockEntry = {\n moduleId: parsed.moduleId,\n ...lockEntryProvenance(acquisition),\n domain: parsed.domain,\n version,\n requestedRange: parsed.range,\n installedAt: new Date().toISOString(),\n files: fanOut.ownedFiles,\n installedFileHashes: await nextInstalledFileHashes({ saasRoot, ownedFiles: fanOut.ownedFiles, skipped: writePlan.skip }),\n source: 'install',\n ...(registrationOutcome.registration ? { registration: registrationOutcome.registration } : {}),\n };\n try {\n await RegistryLockfileService.upsertEntry(saasRoot, entry);\n } catch (lockErr) {\n log.error(` lockfile write failed — rolling back ${fanOut.writtenFiles.length} fan-out file(s).`);\n // `rollbackFanOut` swallows per-file errors itself; this guard stays for a future change that lets them out.\n try {\n rollbackInstallRegistration(saasRoot, registrationOutcome.snapshots);\n await rollbackFanOut({ saasRoot, result: fanOut });\n } catch (rbErr) {\n log.error(` rollback failed: ${ErrorUtils.extractErrorMessage(rbErr)} — SaaS source may be in a partially-applied state.`);\n }\n // Drop the artifact dir and backup so the install can be retried cleanly. Each cleanup is best-effort: a cleanup\n // failure must never mask the lockfile error that is being surfaced.\n await fs.rm(paths.extractDir, { recursive: true, force: true }).catch(() => {});\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n await fs.rm(paths.zip, { force: true }).catch(() => {});\n throw lockErr;\n }\n // Successful install: the backup is no longer needed once the lockfile records the new entry.\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n log.success(' lockfile updated');\n if (registrationOutcome.registration) {\n log.success(` registered in the application's module registries (${registrationOutcome.registration.moduleId})`);\n }\n outcome = {\n version,\n changedProvider: providerRegistration !== undefined,\n carriesSkills: (stagedManifest.provider?.skills?.length ?? 0) > 0,\n allowedInstallScripts: registrationOutcome.allowedInstallScripts,\n resourceConfigurationFiles: await findResourceConfigurationFiles(saasRoot, fanOut.writtenFiles),\n entry,\n };\n });\n if (outcome === undefined) throw new Error(`The install of ${parsed.moduleId} finished without an outcome.`);\n return outcome;\n}\n"]}
1
+ {"version":3,"file":"module-install.service.js","sourceRoot":"","sources":["../../../../src/services/registry/module-install.service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,UAAU,EAAiC,MAAM,+BAA+B,CAAC;AAEnI,OAAO,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EACL,mCAAmC,EACnC,4BAA4B,EAC5B,iCAAiC,GAElC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAC1H,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AACzH,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAClI,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AACt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C,YAAY,CAAC,QAAQ,GAAG,CAAC,CAAC;QACpH,CAAC;QACD,OAAO,GAAG;YACR,OAAO;YACP,eAAe,EAAE,oBAAoB,KAAK,SAAS;YACnD,aAAa,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,CAAC;YACjE,qBAAqB,EAAE,mBAAmB,CAAC,qBAAqB;YAChE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC,QAAQ,EAAE,MAAM,CAAC,YAAY,CAAC;YAC/F,KAAK;SACN,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,IAAI,OAAO,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,kBAAkB,MAAM,CAAC,QAAQ,+BAA+B,CAAC,CAAC;IAC7G,OAAO,OAAO,CAAC;AACjB,CAAC","sourcesContent":["/**\n * Installing a registry module into an application: the pipeline `wildo registry add` runs, as a service, so the\n * one other door that installs a module — `wildo init --blueprint`, for the modules a blueprint REFERENCES (#2879) —\n * runs exactly the same steps and writes exactly the same lockfile entry.\n *\n * Two halves, because they have different preconditions:\n *\n * - `acquireModuleForInstall` RESOLVES a spec to one version and fetches its bytes: from the framework checkout for a\n * `wildo/...` spec inside a checkout (#2015), from the registry otherwise, integrity-checked against the digest the\n * registry resolved. It needs only a command context and a registry; nothing is written into the application.\n * - `installAcquiredModule` writes it: stage, check the staged manifest against the request and the host's\n * requirements, fan the files out inside the manifest's boundaries without silently replacing an application file\n * (#2016), register the module in the host's registries (#1755), and record the lockfile entry — all under the\n * workspace mutation lock, rolled back if the lockfile write fails.\n *\n * What stays with each caller is what differs between them: `registry add` runs `pnpm install` and the provider sync\n * right after, while `wildo init` installs before its own `pnpm install` and leaves the sync to `wildo config sync`.\n */\n\nimport { promises as fs } from 'node:fs';\nimport * as path from 'node:path';\nimport { RegistryLockfileService, RegistryServerClient } from '@wildo-ai/wildo-module-client';\nimport { DEFAULT_REGISTRY_ID, ModuleDistribution, ModuleKind, type RegistryModulesLockEntry } from '@wildo-ai/platform-config-lib';\nimport type { CommandContext } from '~wildo-cli/kernel/types';\nimport { ErrorUtils } from '~wildo-cli/infrastructure/errors/error.utils';\nimport { RegistryCredentialsService } from './registry-credentials.service';\nimport {\n assertModuleEntryUnchangedUnderLock,\n resolveRegistryUrlForCommand,\n withRegistryWorkspaceMutationLock,\n type ParsedModuleSpec,\n} from './registry-command.utils';\nimport { fanOutToSaasSource, readStagedManifest, rollbackFanOut, validatedStagedAppFiles } from './boundary-fanout.utils';\nimport { nextInstalledFileHashes, planProtectedWrite, registryForceBackupDirectory } from './installed-file-state.utils';\nimport { findResourceConfigurationFiles } from './migration-obligation.utils';\nimport { deriveProviderRegistration, registerModuleForInstall, rollbackInstallRegistration } from './module-registration.service';\nimport { reportRegistrationOutcome } from './provider-wiring.service';\nimport { moduleArtifactPaths } from './module-artifact-files.utils';\nimport { localCheckoutRootFor, resolveLocalCheckoutModule } from './local-checkout-module-source.service';\nimport {\n describeAcquisition,\n lockEntryProvenance,\n moduleRequirementsOriginOf,\n stageModuleAcquisition,\n type ModuleAcquisition,\n} from './module-acquisition.utils';\nimport { checkModuleRequirements } from './module-requirements.service';\nimport { assertStagedManifestMatchesRequest } from './artifact-trust.utils';\n\n/** The operator log an install writes to. */\nexport type ModuleInstallLog = CommandContext['log'];\n\n/** A resolved, fetched module version, ready to install, and the registry credential that fetched it (if any). */\nexport interface AcquiredModule {\n readonly parsed: ParsedModuleSpec;\n readonly acquisition: ModuleAcquisition;\n /** The registry URL whose stored credential was used, so the caller can mark it used once the install succeeds. */\n readonly credentialUrl?: string;\n}\n\n/**\n * Resolve `parsed` to one version and fetch it. Inside a framework checkout, a `wildo/...` spec with no registry flag\n * is served by the checkout itself (#2015); anything else comes from the registry `registryFlag` resolves to.\n */\nexport async function acquireModuleForInstall(\n ctx: CommandContext,\n parsed: ParsedModuleSpec,\n /** `saasRoot` is the application whose registry configuration applies; absent before one exists (`wildo init`). */\n input: { readonly registryFlag?: string | undefined; readonly saasRoot?: string | undefined; readonly label: string },\n): Promise<AcquiredModule> {\n const localCheckoutRoot = localCheckoutRootFor(ctx, { domain: parsed.domain, ...(input.registryFlag === undefined ? {} : { registryFlag: input.registryFlag }) });\n if (localCheckoutRoot !== undefined) {\n const local = await resolveLocalCheckoutModule({ frameworkRoot: localCheckoutRoot, domain: parsed.domain, moduleId: parsed.moduleId, range: parsed.range });\n return { parsed, acquisition: { distribution: ModuleDistribution.LOCAL_CHECKOUT, version: local.version, local } };\n }\n const resolved = await resolveRegistryUrlForCommand(ctx, { ...(input.registryFlag === undefined ? {} : { flag: input.registryFlag }), ...(input.saasRoot === undefined ? {} : { saasRoot: input.saasRoot }) });\n ctx.log.info(`[${input.label}] resolving ${parsed.moduleId}@${parsed.range} on ${resolved.url} (${resolved.source})`);\n const credential = await RegistryCredentialsService.get(resolved.url);\n const clientOptions = { baseUrl: resolved.url, authToken: credential?.rawToken };\n // Resolve the range to one exact version and its digest.\n const { version, artifactDigest, yanked } = await RegistryServerClient.resolve(clientOptions, {\n domain: parsed.domain,\n moduleId: parsed.moduleId,\n range: parsed.range,\n });\n if (yanked) {\n // Only an exact pin reaches a yanked release (#1758); install it, but say so.\n ctx.log.warn(` ${parsed.moduleId}@${version} is YANKED (${yanked.yankedAt}${yanked.reason ? `: ${yanked.reason}` : ''}). Installing the pinned release; pick a live one with a range.`);\n }\n // Download the bytes, verified against the resolved digest (KD-9: a mismatch throws).\n const { bytes } = await RegistryServerClient.download(clientOptions, {\n domain: parsed.domain,\n moduleId: parsed.moduleId,\n version,\n expectedDigest: artifactDigest,\n });\n ctx.log.info(` downloaded → ${bytes.byteLength} bytes`);\n return {\n parsed,\n acquisition: {\n distribution: ModuleDistribution.REGISTRY,\n version,\n artifactDigest,\n bytes,\n registry: { url: resolved.url, id: resolved.id ?? DEFAULT_REGISTRY_ID },\n },\n ...(credential ? { credentialUrl: resolved.url } : {}),\n };\n}\n\n/** What an install did that its caller acts on afterwards. */\nexport interface ModuleInstallOutcome {\n readonly version: string;\n /** A provider module was installed: its packages must be installed before anything discovers them. */\n readonly changedProvider: boolean;\n /** The provider ships skills (#2026). */\n readonly carriesSkills: boolean;\n /** The install-script names this install newly allowed (#2801), rebuilt after `pnpm install`. */\n readonly allowedInstallScripts: readonly string[];\n /** The module's resource configuration files, for the migration obligation (#1757). */\n readonly resourceConfigurationFiles: readonly string[];\n /** The lockfile entry written. */\n readonly entry: RegistryModulesLockEntry;\n}\n\n/**\n * Install an acquired module into `saasRoot`, under the workspace mutation lock. Refuses a module that is already\n * installed (it moves only through `update`) and a blueprint (#2861). Throws, having rolled the files and the\n * registration back, when the lockfile cannot be written.\n */\nexport async function installAcquiredModule(input: {\n readonly saasRoot: string;\n readonly frameworkRoot: string | null;\n readonly acquired: AcquiredModule;\n /** Overwrite application files no module installed, keeping a backup (`wildo registry add --force`). */\n readonly force: boolean;\n readonly log: ModuleInstallLog;\n}): Promise<ModuleInstallOutcome> {\n const { saasRoot, acquired, log } = input;\n const { parsed, acquisition } = acquired;\n const version = acquisition.version;\n log.info(` resolved → ${describeAcquisition(parsed.moduleId, acquisition)}`);\n let outcome: ModuleInstallOutcome | undefined;\n await withRegistryWorkspaceMutationLock(saasRoot, async () => {\n // Decided before the lock (\"not installed\"); re-confirmed under it.\n await assertModuleEntryUnchangedUnderLock(saasRoot, parsed.moduleId, undefined);\n // Stage the version where the fan-out reads it (the extracted artifact, or the checkout copy).\n const paths = moduleArtifactPaths(saasRoot, parsed.domain, parsed.moduleId, version);\n const stagedCount = await stageModuleAcquisition(acquisition, paths, saasRoot);\n log.success(` staged ${stagedCount} file(s) → ${path.relative(saasRoot, paths.extractDir)}/`);\n\n // The staged manifest is the source of truth for the boundary allow-list (KD-12).\n const stagedManifest = await readStagedManifest(paths.extractDir);\n assertStagedManifestMatchesRequest(stagedManifest, { moduleId: parsed.moduleId, version });\n // #2861: a blueprint is applied by `wildo init --blueprint`, never installed into an existing application. Its\n // staged copy can never become an install, so it does not stay in the application's generated tree.\n if (stagedManifest.kind === ModuleKind.BLUEPRINT) {\n await fs.rm(paths.extractDir, { recursive: true, force: true });\n await fs.rm(paths.zip, { force: true });\n throw new Error(`${stagedManifest.id} is a blueprint: it starts a new application with \\`wildo init --blueprint\\` and is never installed into an existing one.`);\n }\n for (const notice of await checkModuleRequirements(saasRoot, stagedManifest, moduleRequirementsOriginOf(acquisition))) log.warn(notice);\n // #2014: a provider module is wired into THIS application's own runtimes. Derived before a single file is\n // written, so a refusal (no backend service to own a backend facet) leaves the application untouched.\n const providerRegistration = stagedManifest.kind === ModuleKind.PROVIDER ? await deriveProviderRegistration(saasRoot, stagedManifest) : undefined;\n // M9 backup dir: sibling to `extractDir` so the fan-out walker doesn't traverse it. Cleaned up after a\n // successful fan-out.\n await fs.rm(paths.backupDir, { recursive: true, force: true });\n // #2016: never silently replace a file the application authored itself.\n const writePlan = await planProtectedWrite({\n saasRoot,\n extractDir: paths.extractDir,\n moduleId: parsed.moduleId,\n stagedPaths: await validatedStagedAppFiles({ saasRoot, extractDir: paths.extractDir, manifest: stagedManifest }),\n force: input.force,\n restoreMissing: false,\n backupDirectory: registryForceBackupDirectory(saasRoot, parsed.moduleId),\n findOtherOwners: (candidates) => RegistryLockfileService.findFileOwners({ saasRoot, paths: candidates, excludeModuleId: parsed.moduleId }),\n });\n for (const forced of writePlan.forced) log.warn(` overwrote ${forced.path} (--force); the application's version is at ${path.relative(saasRoot, forced.backup)}`);\n const fanOut = await fanOutToSaasSource({\n saasRoot,\n extractDir: paths.extractDir,\n manifest: stagedManifest,\n moduleId: parsed.moduleId,\n backupDir: paths.backupDir,\n skipPaths: writePlan.skip,\n });\n log.success(` wrote ${fanOut.writtenFiles.length} app source file(s) per manifest.boundaries`);\n for (const warning of fanOut.overlapWarnings) {\n log.warn(` [overlap] \"${warning.path}\" was also claimed by \"${warning.otherModuleId}\" — overwritten by ${parsed.moduleId}.`);\n }\n\n // #1755: register the module in the host's registries (or mark why it is not).\n const registrationOutcome = registerModuleForInstall(saasRoot, input.frameworkRoot, stagedManifest, undefined, providerRegistration);\n reportRegistrationOutcome(log, registrationOutcome, saasRoot);\n\n // The lockfile entry; `files[]` records the application paths so `remove` can clean them up symmetrically. If its\n // write fails after the fan-out succeeded, the application source is rolled back so a half-applied install does\n // not leak into the repository.\n const entry: RegistryModulesLockEntry = {\n moduleId: parsed.moduleId,\n ...lockEntryProvenance(acquisition),\n domain: parsed.domain,\n version,\n requestedRange: parsed.range,\n installedAt: new Date().toISOString(),\n files: fanOut.ownedFiles,\n installedFileHashes: await nextInstalledFileHashes({ saasRoot, ownedFiles: fanOut.ownedFiles, skipped: writePlan.skip }),\n source: 'install',\n ...(registrationOutcome.registration ? { registration: registrationOutcome.registration } : {}),\n };\n try {\n await RegistryLockfileService.upsertEntry(saasRoot, entry);\n } catch (lockErr) {\n log.error(` lockfile write failed — rolling back ${fanOut.writtenFiles.length} fan-out file(s).`);\n // `rollbackFanOut` swallows per-file errors itself; this guard stays for a future change that lets them out.\n try {\n rollbackInstallRegistration(saasRoot, registrationOutcome.snapshots);\n await rollbackFanOut({ saasRoot, result: fanOut });\n } catch (rbErr) {\n log.error(` rollback failed: ${ErrorUtils.extractErrorMessage(rbErr)} — SaaS source may be in a partially-applied state.`);\n }\n // Drop the artifact dir and backup so the install can be retried cleanly. Each cleanup is best-effort: a cleanup\n // failure must never mask the lockfile error that is being surfaced.\n await fs.rm(paths.extractDir, { recursive: true, force: true }).catch(() => {});\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n await fs.rm(paths.zip, { force: true }).catch(() => {});\n throw lockErr;\n }\n // Successful install: the backup is no longer needed once the lockfile records the new entry.\n await fs.rm(paths.backupDir, { recursive: true, force: true }).catch(() => {});\n log.success(' lockfile updated');\n if (registrationOutcome.registration) {\n log.success(` registered in the application's module registries (${registrationOutcome.registration.moduleId})`);\n }\n outcome = {\n version,\n changedProvider: providerRegistration !== undefined,\n carriesSkills: (stagedManifest.provider?.skills?.length ?? 0) > 0,\n allowedInstallScripts: registrationOutcome.allowedInstallScripts,\n resourceConfigurationFiles: await findResourceConfigurationFiles(saasRoot, fanOut.writtenFiles),\n entry,\n };\n });\n if (outcome === undefined) throw new Error(`The install of ${parsed.moduleId} finished without an outcome.`);\n return outcome;\n}\n"]}
@@ -65,13 +65,59 @@ export interface ProviderConnectScopePlan {
65
65
  readonly refused: readonly ProviderConnectRefusedScope[];
66
66
  /** Admitted scopes only an administrator can grant: never put on a person's consent. */
67
67
  readonly administratorConsent: readonly string[];
68
+ /**
69
+ * Admitted scopes NOT put on the request because the provider's own scopes ask for static consent (a
70
+ * `<resource>/.default`, see {@link isProviderStaticConsentScope}): the consent then grants what the app registration
71
+ * lists, so each of these must be registered there (and granted by an administrator where the tenant requires it).
72
+ * Empty for a provider that asks for permissions one by one (Google).
73
+ */
74
+ readonly staticConsentRegistrationScopes: readonly string[];
68
75
  }
76
+ /**
77
+ * Whether `scope` is the Microsoft identity platform's STATIC consent scope for a resource: the resource's identifier
78
+ * URI, `/`, then `.default` (`https://graph.microsoft.com/.default`, a Dataverse `<environment-url>/.default`, an
79
+ * `api://…/.default`). Such a scope asks for no permission by name; it asks for every permission the app registration
80
+ * lists.
81
+ * spec-cite: https://learn.microsoft.com/en-us/entra/identity-platform/scopes-oidc — "The `.default` scope": "The scope
82
+ * parameter value is constructed by using the identifier URI for the resource and `.default`, separated by a forward
83
+ * slash (`/`)." Fetched 2026-11-11.
84
+ */
85
+ export declare function isProviderStaticConsentScope(scope: string): boolean;
69
86
  /**
70
87
  * The scopes one consent asks for: the contract's `oauth2.scopes` UNION every scope the catalogue's operations need,
71
88
  * so one consent covers every operation a probe calls. The additions go through the engine's connection ceiling
72
89
  * (`computeProviderConnectionScopeCeiling`), the same admission a host applies to an augmentation's scopes: an addition
73
90
  * must name a resource among the provider's declared audiences, so a module cannot widen a consent to a resource its
74
91
  * base never declared.
92
+ *
93
+ * ## Static consent: the additions are REGISTERED, never requested
94
+ *
95
+ * When the provider's own scopes ask for static consent (Microsoft's `https://graph.microsoft.com/.default`), no admitted
96
+ * addition goes on the request; each is returned in `staticConsentRegistrationScopes`, for the person to list on the app
97
+ * registration before consenting. Microsoft refuses the mix outright (`AADSTS70011 … .default scope can't be combined
98
+ * with resource-specific scopes`, observed 2026-11-11 on `microsoft-outlook`):
99
+ * spec-cite: https://learn.microsoft.com/en-us/entra/identity-platform/scopes-oidc — "The `.default` scope": "Clients
100
+ * can't combine static (`.default`) consent and dynamic consent in a single request. So
101
+ * `scope=https://graph.microsoft.com/.default Mail.Read` results in an error because it combines scope types."; and
102
+ * "consent should be prompted for all required permissions listed in the application registration (for all APIs in the
103
+ * list)". Fetched 2026-11-11.
104
+ *
105
+ * This is what a running application does too. Its connect asks for the base's own scopes and nothing more (the ceiling
106
+ * is what a LATER re-authorization may ask for), and Microsoft's incremental consent asks for one missing scope beside
107
+ * the declared `restatedScopes`, never beside `.default` (`planProviderIncrementalAuthorization`). So a grant this
108
+ * command stores is the grant an application's connection holds: whatever the registration lists, consented through
109
+ * `.default`.
110
+ *
111
+ * The rule covers every addition, not only those naming the `.default`'s own resource. The sentence above forbids the
112
+ * mix in one request, whatever resource the dynamic scope names, and an application never puts a non-primary audience's
113
+ * scope on a person's consent either (`classifyProviderConnectionScopes` refuses it `NOT_PRIMARY_AUDIENCE`): static
114
+ * consent covers "all APIs in the list", so registering it is how such a scope is granted.
115
+ *
116
+ * Rejected: drop `.default` and request the operations' scopes by name (dynamic consent). The request would then be
117
+ * accepted, but the base and every application are built on static consent (the token for a second audience, such as a
118
+ * Dataverse environment, is minted from the same refresh token because the registration lists it), so the stored grant
119
+ * would hold a different consent from the one an application's connection holds, and a probe would prove a grant no
120
+ * application has.
75
121
  */
76
122
  export declare function planProviderConnectScopes(engine: Pick<EngineOAuth2Exchange, 'computeProviderConnectionScopeCeiling' | 'resolveProviderOAuth2Scopes'>, input: {
77
123
  readonly providerRef: string;
@@ -135,8 +181,18 @@ export interface ProviderOAuth2ConnectResult {
135
181
  readonly storedNames: readonly string[];
136
182
  readonly requestedScopes: readonly string[];
137
183
  readonly grantedScopes: readonly string[];
138
- /** Requested and not reported as granted. */
184
+ /**
185
+ * Requested and not reported as granted. A static-consent scope (`<resource>/.default`) is never counted: the vendor
186
+ * answers with the permissions it granted, never with `.default` itself.
187
+ */
139
188
  readonly missingScopes: readonly string[];
189
+ /** See {@link ProviderConnectScopePlan.staticConsentRegistrationScopes}: registered on the app, not on the request. */
190
+ readonly staticConsentRegistrationScopes: readonly string[];
191
+ /**
192
+ * Of {@link staticConsentRegistrationScopes}, those the vendor did not report as granted, compared as exact strings,
193
+ * as an application's per-operation scope check compares an operation's `requiredScopes` with a stored grant (#979).
194
+ */
195
+ readonly staticConsentScopesNotGranted: readonly string[];
140
196
  readonly accountRef?: string;
141
197
  readonly accessTokenExpiresAt?: string;
142
198
  readonly refreshable: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"provider-connect.service.d.ts","sourceRoot":"","sources":["../../../../src/services/registry/provider-connect.service.ts"],"names":[],"mappings":"AA4CA,OAAO,EAAgC,KAAK,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE7G,OAAO,KAAK,KAAK,cAAc,MAAM,4BAA4B,CAAC;AAOlE,OAAO,EASL,KAAK,cAAc,EACnB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAEL,4BAA4B,EAE5B,KAAK,4BAA4B,EAClC,MAAM,iEAAiE,CAAC;AAEzE,2FAA2F;AAC3F,eAAO,MAAM,uBAAuB,uBAAuB,CAAC;AAE5D;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAC9C,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,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1
+ {"version":3,"file":"provider-connect.service.d.ts","sourceRoot":"","sources":["../../../../src/services/registry/provider-connect.service.ts"],"names":[],"mappings":"AA4CA,OAAO,EAAgC,KAAK,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAE7G,OAAO,KAAK,KAAK,cAAc,MAAM,4BAA4B,CAAC;AAOlE,OAAO,EASL,KAAK,cAAc,EACnB,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACzB,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAEL,4BAA4B,EAE5B,KAAK,4BAA4B,EAClC,MAAM,iEAAiE,CAAC;AAEzE,2FAA2F;AAC3F,eAAO,MAAM,uBAAuB,uBAAuB,CAAC;AAE5D;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE;IAC9C,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACvB,GAAG,MAAM,GAAG,SAAS,CAOrB;AAED,0GAA0G;AAC1G,eAAO,MAAM,6BAA6B,QAAQ,CAAC;AACnD,8EAA8E;AAC9E,eAAO,MAAM,8BAA8B,cAAc,CAAC;AAC1D,wEAAwE;AACxE,eAAO,MAAM,mCAAmC,QAAgB,CAAC;AAIjE,uHAAuH;AACvH,oBAAY,2BAA2B;IACrC,SAAS,cAAc;IACvB,aAAa,cAAc;CAC5B;AAED,uFAAuF;AACvF,MAAM,WAAW,sBAAsB;IACrC,iEAAiE;IACjE,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACjE,mDAAmD;IACnD,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO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,GAAG,OAAO,CAAC,wBAAwB,CAAC,CA4EpC;AAED;;;;;;;GAOG;AACH,wBAAsB,wCAAwC,CAAC,KAAK,EAAE;IACpE,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;QAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC;IACzG,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1D,QAAQ,CAAC,SAAS,CAAC,EAAE,kBAAkB,CAAC;IACxC,iGAAiG;IACjG,QAAQ,CAAC,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IACjD,QAAQ,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC;IACpB,0FAA0F;IAC1F,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IACnC,mHAAmH;IACnH,QAAQ,CAAC,yBAAyB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACvE,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAsC/B"}
@@ -93,12 +93,60 @@ export async function loadProviderConnectSubject(facetDir, options = {}) {
93
93
  scopes.add(scope);
94
94
  return { probed, contract, operationRequiredScopes: [...scopes].sort() };
95
95
  }
96
+ /**
97
+ * Whether `scope` is the Microsoft identity platform's STATIC consent scope for a resource: the resource's identifier
98
+ * URI, `/`, then `.default` (`https://graph.microsoft.com/.default`, a Dataverse `<environment-url>/.default`, an
99
+ * `api://…/.default`). Such a scope asks for no permission by name; it asks for every permission the app registration
100
+ * lists.
101
+ * spec-cite: https://learn.microsoft.com/en-us/entra/identity-platform/scopes-oidc — "The `.default` scope": "The scope
102
+ * parameter value is constructed by using the identifier URI for the resource and `.default`, separated by a forward
103
+ * slash (`/`)." Fetched 2026-11-11.
104
+ */
105
+ export function isProviderStaticConsentScope(scope) {
106
+ return scope.length > '/.default'.length && scope.endsWith('/.default');
107
+ }
108
+ /**
109
+ * The OpenID Connect scope that asks for a refresh token (OpenID Connect Core 1.0, section 11, "Offline Access"). Its
110
+ * grant is the refresh token itself, and a vendor need not list it among the granted scopes: Microsoft's token answer
111
+ * omitted it on 2026-11-11 while issuing a refresh token. So it counts as granted whenever a refresh token arrived, and
112
+ * as missing when none did, which is the case the warning exists for.
113
+ */
114
+ const OPENID_OFFLINE_ACCESS_SCOPE = 'offline_access';
96
115
  /**
97
116
  * The scopes one consent asks for: the contract's `oauth2.scopes` UNION every scope the catalogue's operations need,
98
117
  * so one consent covers every operation a probe calls. The additions go through the engine's connection ceiling
99
118
  * (`computeProviderConnectionScopeCeiling`), the same admission a host applies to an augmentation's scopes: an addition
100
119
  * must name a resource among the provider's declared audiences, so a module cannot widen a consent to a resource its
101
120
  * base never declared.
121
+ *
122
+ * ## Static consent: the additions are REGISTERED, never requested
123
+ *
124
+ * When the provider's own scopes ask for static consent (Microsoft's `https://graph.microsoft.com/.default`), no admitted
125
+ * addition goes on the request; each is returned in `staticConsentRegistrationScopes`, for the person to list on the app
126
+ * registration before consenting. Microsoft refuses the mix outright (`AADSTS70011 … .default scope can't be combined
127
+ * with resource-specific scopes`, observed 2026-11-11 on `microsoft-outlook`):
128
+ * spec-cite: https://learn.microsoft.com/en-us/entra/identity-platform/scopes-oidc — "The `.default` scope": "Clients
129
+ * can't combine static (`.default`) consent and dynamic consent in a single request. So
130
+ * `scope=https://graph.microsoft.com/.default Mail.Read` results in an error because it combines scope types."; and
131
+ * "consent should be prompted for all required permissions listed in the application registration (for all APIs in the
132
+ * list)". Fetched 2026-11-11.
133
+ *
134
+ * This is what a running application does too. Its connect asks for the base's own scopes and nothing more (the ceiling
135
+ * is what a LATER re-authorization may ask for), and Microsoft's incremental consent asks for one missing scope beside
136
+ * the declared `restatedScopes`, never beside `.default` (`planProviderIncrementalAuthorization`). So a grant this
137
+ * command stores is the grant an application's connection holds: whatever the registration lists, consented through
138
+ * `.default`.
139
+ *
140
+ * The rule covers every addition, not only those naming the `.default`'s own resource. The sentence above forbids the
141
+ * mix in one request, whatever resource the dynamic scope names, and an application never puts a non-primary audience's
142
+ * scope on a person's consent either (`classifyProviderConnectionScopes` refuses it `NOT_PRIMARY_AUDIENCE`): static
143
+ * consent covers "all APIs in the list", so registering it is how such a scope is granted.
144
+ *
145
+ * Rejected: drop `.default` and request the operations' scopes by name (dynamic consent). The request would then be
146
+ * accepted, but the base and every application are built on static consent (the token for a second audience, such as a
147
+ * Dataverse environment, is minted from the same refresh token because the registration lists it), so the stored grant
148
+ * would hold a different consent from the one an application's connection holds, and a probe would prove a grant no
149
+ * application has.
102
150
  */
103
151
  export function planProviderConnectScopes(engine, input) {
104
152
  const owner = engine.resolveProviderOAuth2Scopes({
@@ -113,12 +161,16 @@ export function planProviderConnectScopes(engine, input) {
113
161
  sources: [{ providerRef: input.providerRef, scopes: input.operationRequiredScopes }],
114
162
  });
115
163
  const ownerTokens = new Set(owner.flatMap((scope) => scope.split(/\s+/)).filter((token) => token.length > 0));
116
- const additions = ceiling.admittedAdditionalScopes.filter((scope) => !ownerTokens.has(scope));
164
+ const admitted = ceiling.admittedAdditionalScopes.filter((scope) => !ownerTokens.has(scope));
165
+ // Static consent: the additions are registered on the app, never put beside `.default` (see the JSDoc above).
166
+ const staticConsent = [...ownerTokens].some(isProviderStaticConsentScope);
167
+ const additions = staticConsent ? [] : admitted;
117
168
  return {
118
169
  scopes: [...owner, ...additions],
119
170
  additionallyAdmittedScopes: additions,
120
171
  refused: ceiling.refusedScopes.map((entry) => ({ scope: entry.scope, refusal: String(entry.refusal) })),
121
172
  administratorConsent: input.operationRequiredScopes.filter((scope) => ceiling.administratorConsentScopes.includes(scope) && !ownerTokens.has(scope)),
173
+ staticConsentRegistrationScopes: staticConsent ? admitted : [],
122
174
  };
123
175
  }
124
176
  /** The deployment-side answers the engine's OAuth2 functions read, from the environment first, then the store. */
@@ -369,6 +421,11 @@ export async function connectProviderOAuth2(input) {
369
421
  input.report(`Not asked for: ${refused.scope} (${refused.refusal}); an operation needing it will be refused.`);
370
422
  for (const scope of plan.administratorConsent)
371
423
  input.report(`Not asked for: ${scope} (only an administrator grants it).`);
424
+ if (plan.staticConsentRegistrationScopes.length > 0) {
425
+ input.report(`Not asked for by name, because the consent asks for static consent (.default), which grants what the app registration lists: `
426
+ + `register these delegated permissions on the app registration, and grant admin consent where the tenant requires it `
427
+ + `(${plan.staticConsentRegistrationScopes.length}): ${plan.staticConsentRegistrationScopes.join(' ')}`);
428
+ }
372
429
  await prompts.proceed('Press Enter when the redirect URI and the scopes are registered, to open the consent');
373
430
  input.report(`Opening the consent (if no browser opens, visit it yourself): ${authorizeUrl}`);
374
431
  input.openAuthorizeUrl(authorizeUrl);
@@ -433,7 +490,11 @@ export async function connectProviderOAuth2(input) {
433
490
  storedNames: [...Object.keys(values), ...(answer.grant.refreshToken === undefined ? [] : ['oauth2.refreshToken'])],
434
491
  requestedScopes,
435
492
  grantedScopes,
436
- missingScopes: requestedScopes.flatMap((scope) => scope.split(/\s+/)).filter((scope) => scope.length > 0 && !granted.has(scope)),
493
+ missingScopes: requestedScopes.flatMap((scope) => scope.split(/\s+/))
494
+ .filter((scope) => scope.length > 0 && !isProviderStaticConsentScope(scope) && !granted.has(scope))
495
+ .filter((scope) => !(scope === OPENID_OFFLINE_ACCESS_SCOPE && answer.grant.refreshToken !== undefined)),
496
+ staticConsentRegistrationScopes: plan.staticConsentRegistrationScopes,
497
+ staticConsentScopesNotGranted: plan.staticConsentRegistrationScopes.filter((scope) => !granted.has(scope)),
437
498
  ...(answer.grant.accountRef === undefined ? {} : { accountRef: answer.grant.accountRef }),
438
499
  ...(answer.grant.expiresAt === undefined ? {} : { accessTokenExpiresAt: answer.grant.expiresAt }),
439
500
  refreshable: answer.grant.refreshToken !== undefined,