@endora-commerce/contracts 0.110.0 → 0.111.0

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 (347) hide show
  1. package/dist/accept-language.d.ts +31 -0
  2. package/dist/accept-language.js +64 -0
  3. package/dist/admin-actions.d.ts +2 -0
  4. package/dist/admin-actions.js +18 -0
  5. package/dist/admin-contributions.d.ts +37 -5
  6. package/dist/admin-contributions.js +9 -2
  7. package/dist/admin-roles.d.ts +9 -0
  8. package/dist/admin.d.ts +37 -0
  9. package/dist/admin.js +19 -0
  10. package/dist/api-keys.d.ts +22 -0
  11. package/dist/api-keys.js +4 -0
  12. package/dist/assets-library.d.ts +19 -0
  13. package/dist/assets-library.js +14 -0
  14. package/dist/auth.d.ts +9 -0
  15. package/dist/auth.js +9 -0
  16. package/dist/carts.d.ts +30 -1
  17. package/dist/carts.js +20 -5
  18. package/dist/catalog.d.ts +61 -22
  19. package/dist/catalog.js +32 -6
  20. package/dist/cms.d.ts +33 -3
  21. package/dist/cms.js +15 -0
  22. package/dist/command-hooks.d.ts +301 -0
  23. package/dist/command-hooks.js +248 -0
  24. package/dist/comparisons.d.ts +14 -14
  25. package/dist/credit-limits.d.ts +21 -0
  26. package/dist/credit-limits.js +21 -0
  27. package/dist/crm.d.ts +81 -55
  28. package/dist/crm.js +15 -5
  29. package/dist/custom-fields.d.ts +403 -49
  30. package/dist/custom-fields.js +127 -0
  31. package/dist/customer-accounts.d.ts +138 -0
  32. package/dist/customer-accounts.js +4 -0
  33. package/dist/customer-notifications.d.ts +143 -0
  34. package/dist/customer-notifications.js +41 -0
  35. package/dist/customers.d.ts +52 -0
  36. package/dist/customers.js +53 -0
  37. package/dist/dictionary.d.ts +53 -0
  38. package/dist/dictionary.js +25 -0
  39. package/dist/document-templates.d.ts +4 -4
  40. package/dist/email.d.ts +34 -0
  41. package/dist/email.js +6 -0
  42. package/dist/errors.d.ts +312 -2
  43. package/dist/errors.js +377 -2
  44. package/dist/forms.d.ts +88 -88
  45. package/dist/i18n.d.ts +34 -0
  46. package/dist/i18n.js +15 -0
  47. package/dist/index.d.ts +7 -1
  48. package/dist/index.js +12 -1
  49. package/dist/invoice-ledger.d.ts +6 -6
  50. package/dist/invoices.d.ts +126 -0
  51. package/dist/invoices.js +49 -0
  52. package/dist/line-bounds.d.ts +53 -0
  53. package/dist/line-bounds.js +65 -0
  54. package/dist/megamenu.d.ts +27 -27
  55. package/dist/mfa.d.ts +86 -0
  56. package/dist/mfa.js +90 -0
  57. package/dist/modules.d.ts +21 -5
  58. package/dist/modules.js +60 -3
  59. package/dist/orders.d.ts +141 -0
  60. package/dist/orders.js +80 -3
  61. package/dist/organization-hooks.d.ts +99 -0
  62. package/dist/organization-hooks.js +22 -0
  63. package/dist/organization-registry-lookup.d.ts +5 -5
  64. package/dist/organization-roles.d.ts +1 -0
  65. package/dist/organization-roles.js +7 -0
  66. package/dist/organizations.d.ts +954 -17
  67. package/dist/organizations.js +229 -8
  68. package/dist/price-books.d.ts +173 -25
  69. package/dist/price-books.js +41 -0
  70. package/dist/price-lists.d.ts +5 -2
  71. package/dist/product-feeds.d.ts +157 -8
  72. package/dist/product-feeds.js +41 -2
  73. package/dist/product-scopes.d.ts +17 -0
  74. package/dist/product-scopes.js +31 -5
  75. package/dist/projects.d.ts +61 -28
  76. package/dist/projects.js +47 -9
  77. package/dist/promotions.d.ts +157 -5
  78. package/dist/promotions.js +23 -1
  79. package/dist/pwa.d.ts +39 -0
  80. package/dist/quick-order.d.ts +9 -3
  81. package/dist/quick-order.js +4 -3
  82. package/dist/quote-requests.d.ts +168 -5
  83. package/dist/quote-requests.js +69 -8
  84. package/dist/record-references.d.ts +15 -15
  85. package/dist/returns.d.ts +6 -0
  86. package/dist/returns.js +4 -2
  87. package/dist/sales-channels.d.ts +34 -3
  88. package/dist/sales-channels.js +16 -1
  89. package/dist/schema-extensions.d.ts +36 -0
  90. package/dist/schema-extensions.js +29 -0
  91. package/dist/seo.d.ts +2 -2
  92. package/dist/settings.d.ts +44 -2
  93. package/dist/settings.js +17 -2
  94. package/dist/shopping-lists.d.ts +39 -1
  95. package/dist/shopping-lists.js +37 -3
  96. package/dist/storefront-cache-tags.d.ts +10 -0
  97. package/dist/tasks.d.ts +21 -21
  98. package/dist/taxes.d.ts +27 -0
  99. package/dist/taxes.js +4 -0
  100. package/dist/transactional-emails.d.ts +39 -13
  101. package/dist/webhooks.d.ts +75 -0
  102. package/dist/webhooks.js +24 -0
  103. package/package.json +4 -2
  104. package/dist/actor.d.ts.map +0 -1
  105. package/dist/actor.js.map +0 -1
  106. package/dist/addresses.d.ts.map +0 -1
  107. package/dist/addresses.js.map +0 -1
  108. package/dist/admin-actions.d.ts.map +0 -1
  109. package/dist/admin-actions.js.map +0 -1
  110. package/dist/admin-contributions.d.ts.map +0 -1
  111. package/dist/admin-contributions.js.map +0 -1
  112. package/dist/admin-feedback.d.ts.map +0 -1
  113. package/dist/admin-feedback.js.map +0 -1
  114. package/dist/admin-i18n.d.ts.map +0 -1
  115. package/dist/admin-i18n.js.map +0 -1
  116. package/dist/admin-name.d.ts.map +0 -1
  117. package/dist/admin-name.js.map +0 -1
  118. package/dist/admin-notifications.d.ts.map +0 -1
  119. package/dist/admin-notifications.js.map +0 -1
  120. package/dist/admin-preferences.d.ts.map +0 -1
  121. package/dist/admin-preferences.js.map +0 -1
  122. package/dist/admin-roles.d.ts.map +0 -1
  123. package/dist/admin-roles.js.map +0 -1
  124. package/dist/admin-search.d.ts.map +0 -1
  125. package/dist/admin-search.js.map +0 -1
  126. package/dist/admin-users.d.ts.map +0 -1
  127. package/dist/admin-users.js.map +0 -1
  128. package/dist/admin.d.ts.map +0 -1
  129. package/dist/admin.js.map +0 -1
  130. package/dist/analytics.d.ts.map +0 -1
  131. package/dist/analytics.js.map +0 -1
  132. package/dist/api-keys.d.ts.map +0 -1
  133. package/dist/api-keys.js.map +0 -1
  134. package/dist/assets-library.d.ts.map +0 -1
  135. package/dist/assets-library.js.map +0 -1
  136. package/dist/audit-logs.d.ts.map +0 -1
  137. package/dist/audit-logs.js.map +0 -1
  138. package/dist/auth.d.ts.map +0 -1
  139. package/dist/auth.js.map +0 -1
  140. package/dist/blog.d.ts.map +0 -1
  141. package/dist/blog.js.map +0 -1
  142. package/dist/capabilities.d.ts.map +0 -1
  143. package/dist/capabilities.js.map +0 -1
  144. package/dist/carts.d.ts.map +0 -1
  145. package/dist/carts.js.map +0 -1
  146. package/dist/catalog.d.ts.map +0 -1
  147. package/dist/catalog.js.map +0 -1
  148. package/dist/cms-brand.d.ts.map +0 -1
  149. package/dist/cms-brand.js.map +0 -1
  150. package/dist/cms-contact-form.d.ts.map +0 -1
  151. package/dist/cms-contact-form.js.map +0 -1
  152. package/dist/cms.d.ts.map +0 -1
  153. package/dist/cms.js.map +0 -1
  154. package/dist/common.d.ts.map +0 -1
  155. package/dist/common.js.map +0 -1
  156. package/dist/comparisons.d.ts.map +0 -1
  157. package/dist/comparisons.js.map +0 -1
  158. package/dist/credentials.d.ts.map +0 -1
  159. package/dist/credentials.js.map +0 -1
  160. package/dist/credit-limits.d.ts.map +0 -1
  161. package/dist/credit-limits.js.map +0 -1
  162. package/dist/crm-rich-text.d.ts.map +0 -1
  163. package/dist/crm-rich-text.js.map +0 -1
  164. package/dist/crm.d.ts.map +0 -1
  165. package/dist/crm.js.map +0 -1
  166. package/dist/currencies.d.ts.map +0 -1
  167. package/dist/currencies.js.map +0 -1
  168. package/dist/custom-fields.d.ts.map +0 -1
  169. package/dist/custom-fields.js.map +0 -1
  170. package/dist/customer-accounts.d.ts.map +0 -1
  171. package/dist/customer-accounts.js.map +0 -1
  172. package/dist/customers.d.ts.map +0 -1
  173. package/dist/customers.js.map +0 -1
  174. package/dist/dictionary.d.ts.map +0 -1
  175. package/dist/dictionary.js.map +0 -1
  176. package/dist/document-templates.d.ts.map +0 -1
  177. package/dist/document-templates.js.map +0 -1
  178. package/dist/document-values.d.ts.map +0 -1
  179. package/dist/document-values.js.map +0 -1
  180. package/dist/email-address.d.ts.map +0 -1
  181. package/dist/email-address.js.map +0 -1
  182. package/dist/email.d.ts.map +0 -1
  183. package/dist/email.js.map +0 -1
  184. package/dist/envelopes.d.ts.map +0 -1
  185. package/dist/envelopes.js.map +0 -1
  186. package/dist/environment-inputs.d.ts.map +0 -1
  187. package/dist/environment-inputs.js.map +0 -1
  188. package/dist/erp-connector.d.ts.map +0 -1
  189. package/dist/erp-connector.js.map +0 -1
  190. package/dist/errors.d.ts.map +0 -1
  191. package/dist/errors.js.map +0 -1
  192. package/dist/forms-logic.d.ts.map +0 -1
  193. package/dist/forms-logic.fixtures.d.ts.map +0 -1
  194. package/dist/forms-logic.fixtures.js.map +0 -1
  195. package/dist/forms-logic.js.map +0 -1
  196. package/dist/forms.d.ts.map +0 -1
  197. package/dist/forms.js.map +0 -1
  198. package/dist/google-analytics.d.ts.map +0 -1
  199. package/dist/google-analytics.js.map +0 -1
  200. package/dist/google-tag-manager.d.ts.map +0 -1
  201. package/dist/google-tag-manager.js.map +0 -1
  202. package/dist/i18n.d.ts.map +0 -1
  203. package/dist/i18n.js.map +0 -1
  204. package/dist/import-export.d.ts.map +0 -1
  205. package/dist/import-export.js.map +0 -1
  206. package/dist/index.d.ts.map +0 -1
  207. package/dist/index.js.map +0 -1
  208. package/dist/inventory.d.ts.map +0 -1
  209. package/dist/inventory.js.map +0 -1
  210. package/dist/invoice-ledger.d.ts.map +0 -1
  211. package/dist/invoice-ledger.js.map +0 -1
  212. package/dist/invoices.d.ts.map +0 -1
  213. package/dist/invoices.js.map +0 -1
  214. package/dist/kernel.d.ts.map +0 -1
  215. package/dist/kernel.js.map +0 -1
  216. package/dist/languages.d.ts.map +0 -1
  217. package/dist/languages.js.map +0 -1
  218. package/dist/line-groups.d.ts.map +0 -1
  219. package/dist/line-groups.js.map +0 -1
  220. package/dist/linkedin-ads.d.ts.map +0 -1
  221. package/dist/linkedin-ads.js.map +0 -1
  222. package/dist/localized-name.d.ts.map +0 -1
  223. package/dist/localized-name.js.map +0 -1
  224. package/dist/megamenu.d.ts.map +0 -1
  225. package/dist/megamenu.js.map +0 -1
  226. package/dist/meta-ads.d.ts.map +0 -1
  227. package/dist/meta-ads.js.map +0 -1
  228. package/dist/mfa.d.ts.map +0 -1
  229. package/dist/mfa.js.map +0 -1
  230. package/dist/modules.d.ts.map +0 -1
  231. package/dist/modules.js.map +0 -1
  232. package/dist/money-decimal.d.ts.map +0 -1
  233. package/dist/money-decimal.js.map +0 -1
  234. package/dist/money-input.d.ts.map +0 -1
  235. package/dist/money-input.js.map +0 -1
  236. package/dist/newsletter.d.ts.map +0 -1
  237. package/dist/newsletter.js.map +0 -1
  238. package/dist/order-minimums.d.ts.map +0 -1
  239. package/dist/order-minimums.js.map +0 -1
  240. package/dist/orders.d.ts.map +0 -1
  241. package/dist/orders.js.map +0 -1
  242. package/dist/organization-registry-lookup.d.ts.map +0 -1
  243. package/dist/organization-registry-lookup.js.map +0 -1
  244. package/dist/organization-roles.d.ts.map +0 -1
  245. package/dist/organization-roles.js.map +0 -1
  246. package/dist/organizations.d.ts.map +0 -1
  247. package/dist/organizations.js.map +0 -1
  248. package/dist/page-builder-props.d.ts.map +0 -1
  249. package/dist/page-builder-props.js.map +0 -1
  250. package/dist/page-builder-values.d.ts.map +0 -1
  251. package/dist/page-builder-values.js.map +0 -1
  252. package/dist/pagination.d.ts.map +0 -1
  253. package/dist/pagination.js.map +0 -1
  254. package/dist/payment-methods.d.ts.map +0 -1
  255. package/dist/payment-methods.js.map +0 -1
  256. package/dist/payment-return-url.d.ts.map +0 -1
  257. package/dist/payment-return-url.js.map +0 -1
  258. package/dist/payments.d.ts.map +0 -1
  259. package/dist/payments.js.map +0 -1
  260. package/dist/pim-connector.d.ts.map +0 -1
  261. package/dist/pim-connector.js.map +0 -1
  262. package/dist/pim-field-path.d.ts.map +0 -1
  263. package/dist/pim-field-path.js.map +0 -1
  264. package/dist/pim-locale-mapping.d.ts.map +0 -1
  265. package/dist/pim-locale-mapping.js.map +0 -1
  266. package/dist/platform-info.d.ts.map +0 -1
  267. package/dist/platform-info.js.map +0 -1
  268. package/dist/platform-language.d.ts.map +0 -1
  269. package/dist/platform-language.js.map +0 -1
  270. package/dist/price-book-decimal.d.ts.map +0 -1
  271. package/dist/price-book-decimal.js.map +0 -1
  272. package/dist/price-books.d.ts.map +0 -1
  273. package/dist/price-books.js.map +0 -1
  274. package/dist/price-lists.d.ts.map +0 -1
  275. package/dist/price-lists.js.map +0 -1
  276. package/dist/product-feeds.d.ts.map +0 -1
  277. package/dist/product-feeds.js.map +0 -1
  278. package/dist/product-scope-model.d.ts.map +0 -1
  279. package/dist/product-scope-model.js.map +0 -1
  280. package/dist/product-scope-overrides.d.ts.map +0 -1
  281. package/dist/product-scope-overrides.js.map +0 -1
  282. package/dist/product-scoped-values.d.ts.map +0 -1
  283. package/dist/product-scoped-values.js.map +0 -1
  284. package/dist/product-scopes.d.ts.map +0 -1
  285. package/dist/product-scopes.js.map +0 -1
  286. package/dist/product-summary-text.d.ts.map +0 -1
  287. package/dist/product-summary-text.js.map +0 -1
  288. package/dist/product-tax-rates.d.ts.map +0 -1
  289. package/dist/product-tax-rates.js.map +0 -1
  290. package/dist/product-url-keys.d.ts.map +0 -1
  291. package/dist/product-url-keys.js.map +0 -1
  292. package/dist/product-value-resolver.d.ts.map +0 -1
  293. package/dist/product-value-resolver.js.map +0 -1
  294. package/dist/projects.d.ts.map +0 -1
  295. package/dist/projects.js.map +0 -1
  296. package/dist/promotions.d.ts.map +0 -1
  297. package/dist/promotions.js.map +0 -1
  298. package/dist/prompt-actions.d.ts.map +0 -1
  299. package/dist/prompt-actions.js.map +0 -1
  300. package/dist/pwa.d.ts.map +0 -1
  301. package/dist/pwa.js.map +0 -1
  302. package/dist/quick-order.d.ts.map +0 -1
  303. package/dist/quick-order.js.map +0 -1
  304. package/dist/quote-requests.d.ts.map +0 -1
  305. package/dist/quote-requests.js.map +0 -1
  306. package/dist/record-references.d.ts.map +0 -1
  307. package/dist/record-references.js.map +0 -1
  308. package/dist/record-rich-text.d.ts.map +0 -1
  309. package/dist/record-rich-text.js.map +0 -1
  310. package/dist/returns.d.ts.map +0 -1
  311. package/dist/returns.js.map +0 -1
  312. package/dist/sales-channels.d.ts.map +0 -1
  313. package/dist/sales-channels.js.map +0 -1
  314. package/dist/saved-list-views.d.ts.map +0 -1
  315. package/dist/saved-list-views.js.map +0 -1
  316. package/dist/scope-notice.d.ts.map +0 -1
  317. package/dist/scope-notice.js.map +0 -1
  318. package/dist/scoped-write-encoding.d.ts.map +0 -1
  319. package/dist/scoped-write-encoding.js.map +0 -1
  320. package/dist/search.d.ts.map +0 -1
  321. package/dist/search.js.map +0 -1
  322. package/dist/seo.d.ts.map +0 -1
  323. package/dist/seo.js.map +0 -1
  324. package/dist/settings.d.ts.map +0 -1
  325. package/dist/settings.js.map +0 -1
  326. package/dist/shipments.d.ts.map +0 -1
  327. package/dist/shipments.js.map +0 -1
  328. package/dist/shipping-methods.d.ts.map +0 -1
  329. package/dist/shipping-methods.js.map +0 -1
  330. package/dist/shopping-lists.d.ts.map +0 -1
  331. package/dist/shopping-lists.js.map +0 -1
  332. package/dist/storefront-cache-tags.d.ts.map +0 -1
  333. package/dist/storefront-cache-tags.js.map +0 -1
  334. package/dist/storefront-language-path.d.ts.map +0 -1
  335. package/dist/storefront-language-path.js.map +0 -1
  336. package/dist/storefront-value-overrides.d.ts.map +0 -1
  337. package/dist/storefront-value-overrides.js.map +0 -1
  338. package/dist/tasks.d.ts.map +0 -1
  339. package/dist/tasks.js.map +0 -1
  340. package/dist/taxes.d.ts.map +0 -1
  341. package/dist/taxes.js.map +0 -1
  342. package/dist/text-normalization.d.ts.map +0 -1
  343. package/dist/text-normalization.js.map +0 -1
  344. package/dist/transactional-emails.d.ts.map +0 -1
  345. package/dist/transactional-emails.js.map +0 -1
  346. package/dist/webhooks.d.ts.map +0 -1
  347. package/dist/webhooks.js.map +0 -1
@@ -16,8 +16,8 @@ export type MegamenuItemKind = z.infer<typeof megamenuItemKindSchema>;
16
16
  * departments → subcategories catalogue panel.
17
17
  */
18
18
  export declare const megamenuPresentationSchema: z.ZodEnum<{
19
- link: "link";
20
19
  catalog: "catalog";
20
+ link: "link";
21
21
  dropdown: "dropdown";
22
22
  mega: "mega";
23
23
  }>;
@@ -83,8 +83,8 @@ export declare const megamenuItemBaseFields: {
83
83
  readonly descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
84
84
  /** Tabs only, and required there (FR-001) — the server refuses either mistake. */
85
85
  readonly presentation: z.ZodOptional<z.ZodEnum<{
86
- link: "link";
87
86
  catalog: "catalog";
87
+ link: "link";
88
88
  dropdown: "dropdown";
89
89
  mega: "mega";
90
90
  }>>;
@@ -197,8 +197,8 @@ export declare const megamenuItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
197
197
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
198
198
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
199
199
  presentation: z.ZodOptional<z.ZodEnum<{
200
- link: "link";
201
200
  catalog: "catalog";
201
+ link: "link";
202
202
  dropdown: "dropdown";
203
203
  mega: "mega";
204
204
  }>>;
@@ -233,8 +233,8 @@ export declare const megamenuItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
233
233
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
234
234
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
235
235
  presentation: z.ZodOptional<z.ZodEnum<{
236
- link: "link";
237
236
  catalog: "catalog";
237
+ link: "link";
238
238
  dropdown: "dropdown";
239
239
  mega: "mega";
240
240
  }>>;
@@ -269,8 +269,8 @@ export declare const megamenuItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
269
269
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
270
270
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
271
271
  presentation: z.ZodOptional<z.ZodEnum<{
272
- link: "link";
273
272
  catalog: "catalog";
273
+ link: "link";
274
274
  dropdown: "dropdown";
275
275
  mega: "mega";
276
276
  }>>;
@@ -305,8 +305,8 @@ export declare const megamenuItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
305
305
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
306
306
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
307
307
  presentation: z.ZodOptional<z.ZodEnum<{
308
- link: "link";
309
308
  catalog: "catalog";
309
+ link: "link";
310
310
  dropdown: "dropdown";
311
311
  mega: "mega";
312
312
  }>>;
@@ -346,8 +346,8 @@ export declare const megamenuItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
346
346
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
347
347
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
348
348
  presentation: z.ZodOptional<z.ZodEnum<{
349
- link: "link";
350
349
  catalog: "catalog";
350
+ link: "link";
351
351
  dropdown: "dropdown";
352
352
  mega: "mega";
353
353
  }>>;
@@ -381,8 +381,8 @@ export declare const megamenuItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
381
381
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
382
382
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
383
383
  presentation: z.ZodOptional<z.ZodEnum<{
384
- link: "link";
385
384
  catalog: "catalog";
385
+ link: "link";
386
386
  dropdown: "dropdown";
387
387
  mega: "mega";
388
388
  }>>;
@@ -410,8 +410,8 @@ export declare const megamenuItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
410
410
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
411
411
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
412
412
  presentation: z.ZodOptional<z.ZodEnum<{
413
- link: "link";
414
413
  catalog: "catalog";
414
+ link: "link";
415
415
  dropdown: "dropdown";
416
416
  mega: "mega";
417
417
  }>>;
@@ -442,8 +442,8 @@ export declare const megamenuItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
442
442
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
443
443
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
444
444
  presentation: z.ZodOptional<z.ZodEnum<{
445
- link: "link";
446
445
  catalog: "catalog";
446
+ link: "link";
447
447
  dropdown: "dropdown";
448
448
  mega: "mega";
449
449
  }>>;
@@ -523,8 +523,8 @@ export declare const megamenuDetailSchema: z.ZodObject<{
523
523
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
524
524
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
525
525
  presentation: z.ZodOptional<z.ZodEnum<{
526
- link: "link";
527
526
  catalog: "catalog";
527
+ link: "link";
528
528
  dropdown: "dropdown";
529
529
  mega: "mega";
530
530
  }>>;
@@ -559,8 +559,8 @@ export declare const megamenuDetailSchema: z.ZodObject<{
559
559
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
560
560
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
561
561
  presentation: z.ZodOptional<z.ZodEnum<{
562
- link: "link";
563
562
  catalog: "catalog";
563
+ link: "link";
564
564
  dropdown: "dropdown";
565
565
  mega: "mega";
566
566
  }>>;
@@ -595,8 +595,8 @@ export declare const megamenuDetailSchema: z.ZodObject<{
595
595
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
596
596
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
597
597
  presentation: z.ZodOptional<z.ZodEnum<{
598
- link: "link";
599
598
  catalog: "catalog";
599
+ link: "link";
600
600
  dropdown: "dropdown";
601
601
  mega: "mega";
602
602
  }>>;
@@ -631,8 +631,8 @@ export declare const megamenuDetailSchema: z.ZodObject<{
631
631
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
632
632
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
633
633
  presentation: z.ZodOptional<z.ZodEnum<{
634
- link: "link";
635
634
  catalog: "catalog";
635
+ link: "link";
636
636
  dropdown: "dropdown";
637
637
  mega: "mega";
638
638
  }>>;
@@ -672,8 +672,8 @@ export declare const megamenuDetailSchema: z.ZodObject<{
672
672
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
673
673
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
674
674
  presentation: z.ZodOptional<z.ZodEnum<{
675
- link: "link";
676
675
  catalog: "catalog";
676
+ link: "link";
677
677
  dropdown: "dropdown";
678
678
  mega: "mega";
679
679
  }>>;
@@ -707,8 +707,8 @@ export declare const megamenuDetailSchema: z.ZodObject<{
707
707
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
708
708
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
709
709
  presentation: z.ZodOptional<z.ZodEnum<{
710
- link: "link";
711
710
  catalog: "catalog";
711
+ link: "link";
712
712
  dropdown: "dropdown";
713
713
  mega: "mega";
714
714
  }>>;
@@ -736,8 +736,8 @@ export declare const megamenuDetailSchema: z.ZodObject<{
736
736
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
737
737
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
738
738
  presentation: z.ZodOptional<z.ZodEnum<{
739
- link: "link";
740
739
  catalog: "catalog";
740
+ link: "link";
741
741
  dropdown: "dropdown";
742
742
  mega: "mega";
743
743
  }>>;
@@ -768,8 +768,8 @@ export declare const megamenuDetailSchema: z.ZodObject<{
768
768
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
769
769
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
770
770
  presentation: z.ZodOptional<z.ZodEnum<{
771
- link: "link";
772
771
  catalog: "catalog";
772
+ link: "link";
773
773
  dropdown: "dropdown";
774
774
  mega: "mega";
775
775
  }>>;
@@ -819,8 +819,8 @@ export declare const putItemsRequestSchema: z.ZodObject<{
819
819
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
820
820
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
821
821
  presentation: z.ZodOptional<z.ZodEnum<{
822
- link: "link";
823
822
  catalog: "catalog";
823
+ link: "link";
824
824
  dropdown: "dropdown";
825
825
  mega: "mega";
826
826
  }>>;
@@ -855,8 +855,8 @@ export declare const putItemsRequestSchema: z.ZodObject<{
855
855
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
856
856
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
857
857
  presentation: z.ZodOptional<z.ZodEnum<{
858
- link: "link";
859
858
  catalog: "catalog";
859
+ link: "link";
860
860
  dropdown: "dropdown";
861
861
  mega: "mega";
862
862
  }>>;
@@ -891,8 +891,8 @@ export declare const putItemsRequestSchema: z.ZodObject<{
891
891
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
892
892
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
893
893
  presentation: z.ZodOptional<z.ZodEnum<{
894
- link: "link";
895
894
  catalog: "catalog";
895
+ link: "link";
896
896
  dropdown: "dropdown";
897
897
  mega: "mega";
898
898
  }>>;
@@ -927,8 +927,8 @@ export declare const putItemsRequestSchema: z.ZodObject<{
927
927
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
928
928
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
929
929
  presentation: z.ZodOptional<z.ZodEnum<{
930
- link: "link";
931
930
  catalog: "catalog";
931
+ link: "link";
932
932
  dropdown: "dropdown";
933
933
  mega: "mega";
934
934
  }>>;
@@ -968,8 +968,8 @@ export declare const putItemsRequestSchema: z.ZodObject<{
968
968
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
969
969
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
970
970
  presentation: z.ZodOptional<z.ZodEnum<{
971
- link: "link";
972
971
  catalog: "catalog";
972
+ link: "link";
973
973
  dropdown: "dropdown";
974
974
  mega: "mega";
975
975
  }>>;
@@ -1003,8 +1003,8 @@ export declare const putItemsRequestSchema: z.ZodObject<{
1003
1003
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
1004
1004
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1005
1005
  presentation: z.ZodOptional<z.ZodEnum<{
1006
- link: "link";
1007
1006
  catalog: "catalog";
1007
+ link: "link";
1008
1008
  dropdown: "dropdown";
1009
1009
  mega: "mega";
1010
1010
  }>>;
@@ -1032,8 +1032,8 @@ export declare const putItemsRequestSchema: z.ZodObject<{
1032
1032
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
1033
1033
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1034
1034
  presentation: z.ZodOptional<z.ZodEnum<{
1035
- link: "link";
1036
1035
  catalog: "catalog";
1036
+ link: "link";
1037
1037
  dropdown: "dropdown";
1038
1038
  mega: "mega";
1039
1039
  }>>;
@@ -1064,8 +1064,8 @@ export declare const putItemsRequestSchema: z.ZodObject<{
1064
1064
  labels: z.ZodRecord<z.ZodString, z.ZodString>;
1065
1065
  descriptions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1066
1066
  presentation: z.ZodOptional<z.ZodEnum<{
1067
- link: "link";
1068
1067
  catalog: "catalog";
1068
+ link: "link";
1069
1069
  dropdown: "dropdown";
1070
1070
  mega: "mega";
1071
1071
  }>>;
@@ -1155,8 +1155,8 @@ declare const resolvedMenuItemBase: z.ZodObject<{
1155
1155
  }>;
1156
1156
  label: z.ZodString;
1157
1157
  presentation: z.ZodOptional<z.ZodEnum<{
1158
- link: "link";
1159
1158
  catalog: "catalog";
1159
+ link: "link";
1160
1160
  dropdown: "dropdown";
1161
1161
  mega: "mega";
1162
1162
  }>>;
package/dist/mfa.d.ts CHANGED
@@ -76,6 +76,69 @@ export declare const federatedSignInErrorCodeSchema: z.ZodEnum<{
76
76
  sales_channel_not_permitted: "sales_channel_not_permitted";
77
77
  }>;
78
78
  export type FederatedSignInErrorCode = z.infer<typeof federatedSignInErrorCodeSchema>;
79
+ /**
80
+ * The storefront route the customer callback sends the browser to, on the sales
81
+ * channel's own storefront origin (`sales_channels.storefront_url`, else
82
+ * `STOREFRONT_BASE_URL`): `<origin>/auth/federated/complete?code=<code>`. Not
83
+ * language-prefixed. The storefront redeems the code server-to-server through
84
+ * `POST /api/v1/auth/customer/oauth/exchange` and sets its own cookies, so the
85
+ * sign-in works when the API is served from another host than the storefront.
86
+ */
87
+ export declare const FEDERATED_SIGN_IN_COMPLETE_PATH = "/auth/federated/complete";
88
+ /** Seconds a hand-off code can be redeemed for; it is single-use either way. */
89
+ export declare const FEDERATED_SIGN_IN_HANDOFF_TTL_SECONDS = 60;
90
+ /**
91
+ * `GET /api/v1/auth/customer/oauth/:provider/start` query. `binding` is the
92
+ * SHA-256 (lower-case hex) of the secret the storefront put in its own
93
+ * `b2b_federated_binding` cookie before redirecting here; the exchange is
94
+ * answered only for a caller presenting that secret, so a hand-off code cannot be
95
+ * redeemed from another browser (login CSRF, history replay). Required on the
96
+ * customer surface: a start without it is sent back to `/login?error=sign_in_failed`.
97
+ */
98
+ export declare const customerFederatedSignInStartQuerySchema: z.ZodObject<{
99
+ next: z.ZodOptional<z.ZodString>;
100
+ salesChannel: z.ZodOptional<z.ZodString>;
101
+ binding: z.ZodString;
102
+ }, z.core.$strip>;
103
+ export type CustomerFederatedSignInStartQuery = z.infer<typeof customerFederatedSignInStartQuerySchema>;
104
+ /**
105
+ * `POST /api/v1/auth/customer/oauth/exchange` body: the hand-off `code` from the
106
+ * landing URL and the raw `binding` secret from the storefront's cookie.
107
+ */
108
+ export declare const federatedSignInExchangeRequestSchema: z.ZodObject<{
109
+ code: z.ZodString;
110
+ binding: z.ZodString;
111
+ }, z.core.$strict>;
112
+ export type FederatedSignInExchangeRequest = z.infer<typeof federatedSignInExchangeRequestSchema>;
113
+ /**
114
+ * `POST /api/v1/auth/customer/oauth/exchange` answer — the same kinds of answer
115
+ * the password sign-in gives. `authenticated`: the session arrives as
116
+ * `Set-Cookie: b2b_session` (as from `POST /api/v1/auth/customer/login`) and
117
+ * `cartMerge` is the signed-out basket's merge. `mfaRequired`: the storefront
118
+ * keeps `challengeId` in its second-step cookie and sends the buyer to
119
+ * `redirectPath`, the code screen. A second factor still to be set up, and every
120
+ * refusal, never reaches the exchange: the callback sends those to
121
+ * `/login?error=<code>`. Every failure is `400 MFA_FEDERATED_HANDOFF_INVALID`.
122
+ */
123
+ export declare const federatedSignInExchangeResponseSchema: z.ZodObject<{
124
+ data: z.ZodDiscriminatedUnion<[z.ZodObject<{
125
+ status: z.ZodLiteral<"authenticated">;
126
+ redirectPath: z.ZodString;
127
+ cartMerge: z.ZodNullable<z.ZodObject<{
128
+ outcome: z.ZodEnum<{
129
+ adopted: "adopted";
130
+ merged: "merged";
131
+ noop: "noop";
132
+ }>;
133
+ destinationCartId: z.ZodString;
134
+ }, z.core.$strip>>;
135
+ }, z.core.$strip>, z.ZodObject<{
136
+ status: z.ZodLiteral<"mfaRequired">;
137
+ challengeId: z.ZodString;
138
+ redirectPath: z.ZodString;
139
+ }, z.core.$strip>], "status">;
140
+ }, z.core.$strip>;
141
+ export type FederatedSignInExchangeResponse = z.infer<typeof federatedSignInExchangeResponseSchema>;
79
142
  /**
80
143
  * Discriminated result returned by the first login step (email+password) and
81
144
  * by the OAuth callback. Only `authenticated` carries/sets a session cookie;
@@ -182,11 +245,27 @@ export declare const mfaSocialUnlinkResponseSchema: z.ZodObject<{
182
245
  }>;
183
246
  }, z.core.$strip>;
184
247
  export type MfaSocialUnlinkResponse = z.infer<typeof mfaSocialUnlinkResponseSchema>;
248
+ /**
249
+ * Why the account may not switch its second factor off (issue #935).
250
+ *
251
+ * `factor_required` — it is the account's last second factor, and a
252
+ * requirement is in force for it: a setting, an administrator's role or a
253
+ * customer's organization. The same verdict refuses `POST …/mfa/disable` with
254
+ * `409 MFA_LAST_FACTOR_REQUIRED`.
255
+ */
256
+ export declare const mfaDisableBlockedReasonSchema: z.ZodEnum<{
257
+ factor_required: "factor_required";
258
+ }>;
259
+ export type MfaDisableBlockedReason = z.infer<typeof mfaDisableBlockedReasonSchema>;
185
260
  export declare const mfaStatusResponseSchema: z.ZodObject<{
186
261
  totpActive: z.ZodBoolean;
187
262
  recoveryCodesRemaining: z.ZodNumber;
188
263
  totpEnabledForScope: z.ZodBoolean;
189
264
  totpEnforcedForScope: z.ZodBoolean;
265
+ canDisable: z.ZodBoolean;
266
+ disableBlockedReason: z.ZodNullable<z.ZodEnum<{
267
+ factor_required: "factor_required";
268
+ }>>;
190
269
  socialLinks: z.ZodArray<z.ZodObject<{
191
270
  provider: z.ZodEnum<{
192
271
  google: "google";
@@ -233,6 +312,13 @@ export type MfaResetBulkResult = z.infer<typeof mfaResetBulkResultSchema>;
233
312
  * two-factor flag — as `details.reason` and as the sentence token.
234
313
  */
235
314
  export declare const ENCRYPTION_KEY_MISSING: "encryption_key_missing";
315
+ /**
316
+ * Issue #947 — sentence token for customer-side refusals; `details.reason`
317
+ * stays `ENCRYPTION_KEY_MISSING`. Carried as `details.code` by the refusal of
318
+ * `mfa.storefront.totp_enforced` and of an organization's policy, whose
319
+ * sentence names customers rather than administrators.
320
+ */
321
+ export declare const CUSTOMER_ENCRYPTION_KEY_MISSING: "customer_encryption_key_missing";
236
322
  export declare const MFA_SETTING_CODES: {
237
323
  /**
238
324
  * Feature 074 — the operator-activation control (Constitution XVII). It sits
package/dist/mfa.js CHANGED
@@ -4,6 +4,7 @@
4
4
  // the two-step login result, federated sign-in, and admin reset/enforcement.
5
5
  // Provider client secrets are NOT modelled here — they are backend config/env.
6
6
  import { z } from 'zod';
7
+ import { cartMergeOutcomePublicSchema } from './organizations.js';
7
8
  // ---------------------------------------------------------------------------
8
9
  // Shared enums
9
10
  // ---------------------------------------------------------------------------
@@ -75,6 +76,76 @@ export const federatedSignInErrorCodeSchema = z.enum([
75
76
  'sales_channel_not_permitted',
76
77
  ]);
77
78
  // ---------------------------------------------------------------------------
79
+ // Federated customer sign-in hand-off (issue #1279)
80
+ // ---------------------------------------------------------------------------
81
+ /**
82
+ * The storefront route the customer callback sends the browser to, on the sales
83
+ * channel's own storefront origin (`sales_channels.storefront_url`, else
84
+ * `STOREFRONT_BASE_URL`): `<origin>/auth/federated/complete?code=<code>`. Not
85
+ * language-prefixed. The storefront redeems the code server-to-server through
86
+ * `POST /api/v1/auth/customer/oauth/exchange` and sets its own cookies, so the
87
+ * sign-in works when the API is served from another host than the storefront.
88
+ */
89
+ export const FEDERATED_SIGN_IN_COMPLETE_PATH = '/auth/federated/complete';
90
+ /** Seconds a hand-off code can be redeemed for; it is single-use either way. */
91
+ export const FEDERATED_SIGN_IN_HANDOFF_TTL_SECONDS = 60;
92
+ /**
93
+ * `GET /api/v1/auth/customer/oauth/:provider/start` query. `binding` is the
94
+ * SHA-256 (lower-case hex) of the secret the storefront put in its own
95
+ * `b2b_federated_binding` cookie before redirecting here; the exchange is
96
+ * answered only for a caller presenting that secret, so a hand-off code cannot be
97
+ * redeemed from another browser (login CSRF, history replay). Required on the
98
+ * customer surface: a start without it is sent back to `/login?error=sign_in_failed`.
99
+ */
100
+ export const customerFederatedSignInStartQuerySchema = z.object({
101
+ next: z.string().max(2048).optional(),
102
+ salesChannel: z.string().optional(),
103
+ binding: z.string().regex(/^[0-9a-f]{64}$/),
104
+ });
105
+ /** 32 random bytes, base64url without padding. */
106
+ const handoffTokenSchema = z.string().regex(/^[A-Za-z0-9_-]{43}$/);
107
+ /**
108
+ * `POST /api/v1/auth/customer/oauth/exchange` body: the hand-off `code` from the
109
+ * landing URL and the raw `binding` secret from the storefront's cookie.
110
+ */
111
+ export const federatedSignInExchangeRequestSchema = z
112
+ .object({
113
+ code: handoffTokenSchema,
114
+ binding: handoffTokenSchema,
115
+ })
116
+ .strict();
117
+ /** A path on the storefront: starts with `/`, never `//`. Carries the language prefix. */
118
+ const storefrontRedirectPathSchema = z
119
+ .string()
120
+ .min(1)
121
+ .refine((path) => path.startsWith('/') && !path.startsWith('//'), {
122
+ message: 'Must be a root-relative path',
123
+ });
124
+ /**
125
+ * `POST /api/v1/auth/customer/oauth/exchange` answer — the same kinds of answer
126
+ * the password sign-in gives. `authenticated`: the session arrives as
127
+ * `Set-Cookie: b2b_session` (as from `POST /api/v1/auth/customer/login`) and
128
+ * `cartMerge` is the signed-out basket's merge. `mfaRequired`: the storefront
129
+ * keeps `challengeId` in its second-step cookie and sends the buyer to
130
+ * `redirectPath`, the code screen. A second factor still to be set up, and every
131
+ * refusal, never reaches the exchange: the callback sends those to
132
+ * `/login?error=<code>`. Every failure is `400 MFA_FEDERATED_HANDOFF_INVALID`.
133
+ */
134
+ export const federatedSignInExchangeResponseSchema = z.object({
135
+ data: z.discriminatedUnion('status', [
136
+ z.object({
137
+ status: z.literal('authenticated'),
138
+ redirectPath: storefrontRedirectPathSchema,
139
+ cartMerge: cartMergeOutcomePublicSchema.nullable(),
140
+ }),
141
+ z.object({
142
+ status: z.literal('mfaRequired'),
143
+ challengeId: z.string().min(1),
144
+ redirectPath: storefrontRedirectPathSchema,
145
+ }),
146
+ ]),
147
+ });
148
+ // ---------------------------------------------------------------------------
78
149
  // Two-step login result (replaces the inline `twoFactorCode` shape)
79
150
  // ---------------------------------------------------------------------------
80
151
  /**
@@ -171,11 +242,23 @@ export const mfaSocialUnlinkResponseSchema = z.object({
171
242
  status: z.literal('unlinked'),
172
243
  provider: mfaSocialProviderSchema,
173
244
  });
245
+ /**
246
+ * Why the account may not switch its second factor off (issue #935).
247
+ *
248
+ * `factor_required` — it is the account's last second factor, and a
249
+ * requirement is in force for it: a setting, an administrator's role or a
250
+ * customer's organization. The same verdict refuses `POST …/mfa/disable` with
251
+ * `409 MFA_LAST_FACTOR_REQUIRED`.
252
+ */
253
+ export const mfaDisableBlockedReasonSchema = z.enum(['factor_required']);
174
254
  export const mfaStatusResponseSchema = z.object({
175
255
  totpActive: z.boolean(),
176
256
  recoveryCodesRemaining: z.number().int().nonnegative(),
177
257
  totpEnabledForScope: z.boolean(),
178
258
  totpEnforcedForScope: z.boolean(),
259
+ /** The surface renders the disable control from this, never from its own guess (issue #935). */
260
+ canDisable: z.boolean(),
261
+ disableBlockedReason: mfaDisableBlockedReasonSchema.nullable(),
179
262
  socialLinks: z.array(mfaSocialLinkSummarySchema),
180
263
  });
181
264
  // ---------------------------------------------------------------------------
@@ -211,6 +294,13 @@ export const mfaResetBulkResultSchema = z.object({
211
294
  * two-factor flag — as `details.reason` and as the sentence token.
212
295
  */
213
296
  export const ENCRYPTION_KEY_MISSING = 'encryption_key_missing';
297
+ /**
298
+ * Issue #947 — sentence token for customer-side refusals; `details.reason`
299
+ * stays `ENCRYPTION_KEY_MISSING`. Carried as `details.code` by the refusal of
300
+ * `mfa.storefront.totp_enforced` and of an organization's policy, whose
301
+ * sentence names customers rather than administrators.
302
+ */
303
+ export const CUSTOMER_ENCRYPTION_KEY_MISSING = 'customer_encryption_key_missing';
214
304
  export const MFA_SETTING_CODES = {
215
305
  /**
216
306
  * Feature 074 — the operator-activation control (Constitution XVII). It sits
package/dist/modules.d.ts CHANGED
@@ -426,10 +426,10 @@ export type OmittedModule = z.infer<typeof OmittedModuleSchema>;
426
426
  * report's, so neither belongs here
427
427
  * (`specs/107-override-report-and-ladder/contracts/deployment-declaration.md` §5).
428
428
  *
429
- * Every field defaults to empty, so a declaration that leaves one out means
429
+ * Every field defaults to empty (or is optional), so a declaration that leaves one out means
430
430
  * "none of these" rather than "unparseable" — the reading an absent file already
431
431
  * gets. A deployment that diverges by nothing still ships the file with all
432
- * three written out, because the mechanism is easier to find than to remember.
432
+ * fields written out, because the mechanism is easier to find than to remember.
433
433
  */
434
434
  export declare const DeploymentDivergenceDeclarationSchema: z.ZodObject<{
435
435
  omittedModules: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -438,13 +438,14 @@ export declare const DeploymentDivergenceDeclarationSchema: z.ZodObject<{
438
438
  }, z.core.$strip>>>;
439
439
  decorationOrder: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
440
440
  reasons: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
441
+ commandHookOrder: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
441
442
  }, z.core.$strict>;
442
443
  export type DeploymentDivergenceDeclaration = z.infer<typeof DeploymentDivergenceDeclarationSchema>;
443
444
  /**
444
445
  * One kind of divergence a deployment's tree can hold
445
446
  * (`specs/107-override-report-and-ladder/data-model.md` §2.3).
446
447
  *
447
- * Nine, and every one of them is one seam of `ModuleContext` — seven read off
448
+ * Ten, and every one of them is one seam of `ModuleContext` — eight read off
448
449
  * the members themselves, plus `port-consumed` (which is `lazyPort` over the
449
450
  * cradle rather than a member) and `omission` (which comes from the declaration
450
451
  * and from no seam at all). `routes`, `ungatedRoutes`, `onBoot` and the manifest
@@ -453,7 +454,7 @@ export type DeploymentDivergenceDeclaration = z.infer<typeof DeploymentDivergenc
453
454
  * named in {@link DivergenceBoundary.notRecorded} so a reader can tell "not a
454
455
  * divergence" from "not looked at".
455
456
  */
456
- export type DivergenceKind = 'omission' | 'registration' | 'port-provided' | 'port-consumed' | 'subscription' | 'interceptor' | 'decoration' | 'root-plugin' | 'worker';
457
+ export type DivergenceKind = 'omission' | 'registration' | 'port-provided' | 'port-consumed' | 'subscription' | 'interceptor' | 'decoration' | 'root-plugin' | 'worker' | 'command-hook';
457
458
  /**
458
459
  * `<kind>:<module>:<subject>` — the three facts that identify a divergence
459
460
  * independently of where it is written.
@@ -502,6 +503,12 @@ export type DivergenceDetail = {
502
503
  } | {
503
504
  readonly kind: 'root-plugin';
504
505
  readonly declaredReason: string;
506
+ } | {
507
+ readonly kind: 'command-hook';
508
+ /** `beforeCommit` or `afterCommit`. */
509
+ readonly phase: 'beforeCommit' | 'afterCommit';
510
+ /** The hook's id, unique within its module. */
511
+ readonly id: string;
505
512
  } | {
506
513
  readonly kind: 'omission';
507
514
  };
@@ -829,6 +836,7 @@ export declare const ModuleManifestSchema: z.ZodObject<{
829
836
  }>;
830
837
  targetRoute: z.ZodString;
831
838
  requiredPermission: z.ZodOptional<z.ZodString>;
839
+ entryApiRoute: z.ZodOptional<z.ZodString>;
832
840
  keywords: z.ZodDefault<z.ZodArray<z.ZodString>>;
833
841
  keywordsKey: z.ZodOptional<z.ZodString>;
834
842
  weight: z.ZodDefault<z.ZodNumber>;
@@ -886,8 +894,8 @@ export declare const ModuleManifestSchema: z.ZodObject<{
886
894
  object: "object";
887
895
  array: "array";
888
896
  text: "text";
889
- external: "external";
890
897
  select: "select";
898
+ external: "external";
891
899
  uuid: "uuid";
892
900
  textarea: "textarea";
893
901
  radio: "radio";
@@ -972,6 +980,14 @@ export declare const ModuleManifestSchema: z.ZodObject<{
972
980
  storefront: "storefront";
973
981
  }>>;
974
982
  }, z.core.$strip>>>;
983
+ hookableActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
984
+ action: z.ZodString;
985
+ objectType: z.ZodString;
986
+ phases: z.ZodArray<z.ZodEnum<{
987
+ beforeCommit: "beforeCommit";
988
+ afterCommit: "afterCommit";
989
+ }>>;
990
+ }, z.core.$strict>>>;
975
991
  }, z.core.$strip>;
976
992
  export type ModuleManifest = z.infer<typeof ModuleManifestSchema>;
977
993
  /**