@aglyn/aglyn 1.0.0-beta.220 → 1.0.0-beta.222

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 (358) hide show
  1. package/package.json +15 -11
  2. package/src/lib/app-utils/agent-openapi.js +1 -1
  3. package/src/lib/app-utils/agent-openapi.js.map +1 -1
  4. package/src/lib/app-utils/analytics-events.d.ts +3 -2
  5. package/src/lib/app-utils/analytics-events.js +3 -2
  6. package/src/lib/app-utils/analytics-events.js.map +1 -1
  7. package/src/lib/app-utils/api-plugins.d.ts +30 -0
  8. package/src/lib/app-utils/api-plugins.js +24 -1
  9. package/src/lib/app-utils/api-plugins.js.map +1 -1
  10. package/src/lib/app-utils/author-html.d.ts +1 -1
  11. package/src/lib/app-utils/author-html.js.map +1 -1
  12. package/src/lib/app-utils/bandwidth-cap.d.ts +12 -1
  13. package/src/lib/app-utils/bandwidth-cap.js +17 -1
  14. package/src/lib/app-utils/bandwidth-cap.js.map +1 -1
  15. package/src/lib/app-utils/compose-reusable-components.d.ts +19 -0
  16. package/src/lib/app-utils/compose-reusable-components.js +116 -26
  17. package/src/lib/app-utils/compose-reusable-components.js.map +1 -1
  18. package/src/lib/app-utils/console-routes.d.ts +4 -0
  19. package/src/lib/app-utils/console-routes.js +3 -0
  20. package/src/lib/app-utils/console-routes.js.map +1 -1
  21. package/src/lib/app-utils/contacts.d.ts +71 -0
  22. package/src/lib/app-utils/contacts.js +55 -0
  23. package/src/lib/app-utils/contacts.js.map +1 -1
  24. package/src/lib/app-utils/contexts.d.ts +1 -0
  25. package/src/lib/app-utils/contexts.js +1 -0
  26. package/src/lib/app-utils/contexts.js.map +1 -1
  27. package/src/lib/app-utils/crm-email-templates.js +21 -4
  28. package/src/lib/app-utils/crm-email-templates.js.map +1 -1
  29. package/src/lib/app-utils/crm-kinds.d.ts +2 -0
  30. package/src/lib/app-utils/crm-kinds.js +1 -0
  31. package/src/lib/app-utils/crm-kinds.js.map +1 -1
  32. package/src/lib/app-utils/crm.d.ts +1199 -67
  33. package/src/lib/app-utils/crm.js +1951 -310
  34. package/src/lib/app-utils/crm.js.map +1 -1
  35. package/src/lib/app-utils/csv-import.d.ts +10 -38
  36. package/src/lib/app-utils/csv-import.js +17 -42
  37. package/src/lib/app-utils/csv-import.js.map +1 -1
  38. package/src/lib/app-utils/csv.d.ts +32 -11
  39. package/src/lib/app-utils/csv.js +43 -5
  40. package/src/lib/app-utils/csv.js.map +1 -1
  41. package/src/lib/app-utils/default-site.d.ts +116 -0
  42. package/src/lib/app-utils/default-site.js +1024 -0
  43. package/src/lib/app-utils/default-site.js.map +1 -0
  44. package/src/lib/app-utils/docs-help.generated.d.ts +23 -23
  45. package/src/lib/app-utils/docs-help.generated.js +47 -10
  46. package/src/lib/app-utils/docs-help.generated.js.map +1 -1
  47. package/src/lib/app-utils/docs-index.generated.js +746 -151
  48. package/src/lib/app-utils/docs-index.generated.js.map +1 -1
  49. package/src/lib/app-utils/draft-placeholders.d.ts +76 -0
  50. package/src/lib/app-utils/draft-placeholders.js +115 -0
  51. package/src/lib/app-utils/draft-placeholders.js.map +1 -0
  52. package/src/lib/app-utils/entity-picker-context.d.ts +19 -15
  53. package/src/lib/app-utils/entity-picker-context.js +4 -4
  54. package/src/lib/app-utils/entity-picker-context.js.map +1 -1
  55. package/src/lib/app-utils/expand-repeatables.d.ts +66 -10
  56. package/src/lib/app-utils/expand-repeatables.js +88 -14
  57. package/src/lib/app-utils/expand-repeatables.js.map +1 -1
  58. package/src/lib/app-utils/forms.d.ts +33 -22
  59. package/src/lib/app-utils/forms.js +47 -28
  60. package/src/lib/app-utils/forms.js.map +1 -1
  61. package/src/lib/app-utils/full-use-cost.d.ts +277 -0
  62. package/src/lib/app-utils/full-use-cost.js +421 -0
  63. package/src/lib/app-utils/full-use-cost.js.map +1 -0
  64. package/src/lib/app-utils/health-report.js +33 -0
  65. package/src/lib/app-utils/health-report.js.map +1 -1
  66. package/src/lib/app-utils/leaving-notice.d.ts +96 -0
  67. package/src/lib/app-utils/leaving-notice.js +157 -0
  68. package/src/lib/app-utils/leaving-notice.js.map +1 -0
  69. package/src/lib/app-utils/llms-txt.d.ts +20 -0
  70. package/src/lib/app-utils/llms-txt.js +7 -1
  71. package/src/lib/app-utils/llms-txt.js.map +1 -1
  72. package/src/lib/app-utils/media-asset-facts.d.ts +16 -1
  73. package/src/lib/app-utils/media-asset-facts.js +40 -13
  74. package/src/lib/app-utils/media-asset-facts.js.map +1 -1
  75. package/src/lib/app-utils/media-bandwidth.d.ts +52 -0
  76. package/src/lib/app-utils/media-bandwidth.js +94 -0
  77. package/src/lib/app-utils/media-bandwidth.js.map +1 -0
  78. package/src/lib/app-utils/media-ref.d.ts +241 -33
  79. package/src/lib/app-utils/media-ref.js +324 -43
  80. package/src/lib/app-utils/media-ref.js.map +1 -1
  81. package/src/lib/app-utils/media-src.d.ts +8 -8
  82. package/src/lib/app-utils/media-src.js +27 -11
  83. package/src/lib/app-utils/media-src.js.map +1 -1
  84. package/src/lib/app-utils/media-takedown-reach.d.ts +4 -1
  85. package/src/lib/app-utils/media-takedown-reach.js +6 -3
  86. package/src/lib/app-utils/media-takedown-reach.js.map +1 -1
  87. package/src/lib/app-utils/notifications.d.ts +1 -1
  88. package/src/lib/app-utils/notifications.js +2 -0
  89. package/src/lib/app-utils/notifications.js.map +1 -1
  90. package/src/lib/app-utils/operator-alerts.js +17 -0
  91. package/src/lib/app-utils/operator-alerts.js.map +1 -1
  92. package/src/lib/app-utils/organizations.d.ts +51 -2
  93. package/src/lib/app-utils/organizations.js +56 -3
  94. package/src/lib/app-utils/organizations.js.map +1 -1
  95. package/src/lib/app-utils/page-record-sources.d.ts +87 -0
  96. package/src/lib/app-utils/page-record-sources.js +53 -0
  97. package/src/lib/app-utils/page-record-sources.js.map +1 -0
  98. package/src/lib/app-utils/paid-media-source.d.ts +3 -7
  99. package/src/lib/app-utils/paid-media-source.js +5 -19
  100. package/src/lib/app-utils/paid-media-source.js.map +1 -1
  101. package/src/lib/app-utils/person-erasure.d.ts +5 -2
  102. package/src/lib/app-utils/person-erasure.js.map +1 -1
  103. package/src/lib/app-utils/picklists.d.ts +187 -0
  104. package/src/lib/app-utils/picklists.js +320 -0
  105. package/src/lib/app-utils/picklists.js.map +1 -0
  106. package/src/lib/app-utils/plan-entitlements.d.ts +220 -50
  107. package/src/lib/app-utils/plan-entitlements.js +309 -115
  108. package/src/lib/app-utils/plan-entitlements.js.map +1 -1
  109. package/src/lib/app-utils/realm-host-surface.generated.js +2 -0
  110. package/src/lib/app-utils/realm-host-surface.generated.js.map +1 -1
  111. package/src/lib/app-utils/release-flags.d.ts +1 -1
  112. package/src/lib/app-utils/release-flags.js +11 -0
  113. package/src/lib/app-utils/release-flags.js.map +1 -1
  114. package/src/lib/app-utils/rendered-widths.d.ts +121 -0
  115. package/src/lib/app-utils/rendered-widths.js +211 -0
  116. package/src/lib/app-utils/rendered-widths.js.map +1 -0
  117. package/src/lib/app-utils/repeat-sources.d.ts +2 -1
  118. package/src/lib/app-utils/repeat-sources.js.map +1 -1
  119. package/src/lib/app-utils/screen-link-context-value.d.ts +7 -0
  120. package/src/lib/app-utils/screen-link-context-value.js.map +1 -1
  121. package/src/lib/app-utils/screen-link-context.js +14 -2
  122. package/src/lib/app-utils/screen-link-context.js.map +1 -1
  123. package/src/lib/app-utils/screen-route.d.ts +157 -36
  124. package/src/lib/app-utils/screen-route.js +191 -41
  125. package/src/lib/app-utils/screen-route.js.map +1 -1
  126. package/src/lib/app-utils/seo-audit.d.ts +11 -1
  127. package/src/lib/app-utils/seo-audit.js +33 -13
  128. package/src/lib/app-utils/seo-audit.js.map +1 -1
  129. package/src/lib/app-utils/seo-keywords.d.ts +11 -0
  130. package/src/lib/app-utils/seo-keywords.js +19 -5
  131. package/src/lib/app-utils/seo-keywords.js.map +1 -1
  132. package/src/lib/app-utils/seo-page-facts.d.ts +47 -4
  133. package/src/lib/app-utils/seo-page-facts.js +136 -31
  134. package/src/lib/app-utils/seo-page-facts.js.map +1 -1
  135. package/src/lib/app-utils/seo-site-scan.d.ts +42 -4
  136. package/src/lib/app-utils/seo-site-scan.js +113 -12
  137. package/src/lib/app-utils/seo-site-scan.js.map +1 -1
  138. package/src/lib/app-utils/server.d.ts +5 -4
  139. package/src/lib/app-utils/server.js +14 -5
  140. package/src/lib/app-utils/server.js.map +1 -1
  141. package/src/lib/app-utils/site-icon-set.d.ts +195 -0
  142. package/src/lib/app-utils/site-icon-set.js +351 -0
  143. package/src/lib/app-utils/site-icon-set.js.map +1 -0
  144. package/src/lib/app-utils/site-interactions.d.ts +101 -4
  145. package/src/lib/app-utils/site-interactions.js +120 -4
  146. package/src/lib/app-utils/site-interactions.js.map +1 -1
  147. package/src/lib/app-utils/starter-template-nodes.d.ts +7 -0
  148. package/src/lib/app-utils/starter-template-nodes.js +3 -0
  149. package/src/lib/app-utils/starter-template-nodes.js.map +1 -1
  150. package/src/lib/app-utils/starter-templates.d.ts +5 -19
  151. package/src/lib/app-utils/starter-templates.js +5 -49
  152. package/src/lib/app-utils/starter-templates.js.map +1 -1
  153. package/src/lib/app-utils/transfer-launcher-context.d.ts +136 -0
  154. package/src/lib/app-utils/transfer-launcher-context.js +23 -0
  155. package/src/lib/app-utils/transfer-launcher-context.js.map +1 -0
  156. package/src/lib/app-utils/transfer-resume-import.d.ts +39 -0
  157. package/src/lib/app-utils/transfer-resume-import.js +128 -0
  158. package/src/lib/app-utils/transfer-resume-import.js.map +1 -0
  159. package/src/lib/app-utils/upgrade-proposal.d.ts +66 -0
  160. package/src/lib/app-utils/upgrade-proposal.js +95 -0
  161. package/src/lib/app-utils/upgrade-proposal.js.map +1 -0
  162. package/src/lib/app-utils/utc-month.d.ts +33 -0
  163. package/src/lib/app-utils/utc-month.js +35 -0
  164. package/src/lib/app-utils/utc-month.js.map +1 -0
  165. package/src/lib/app-utils/visitor-record-ceiling.d.ts +4 -4
  166. package/src/lib/app-utils/visitor-record-ceiling.js +4 -4
  167. package/src/lib/app-utils/visitor-record-ceiling.js.map +1 -1
  168. package/src/lib/app-utils/wire-nodes.d.ts +39 -19
  169. package/src/lib/app-utils/wire-nodes.js +120 -34
  170. package/src/lib/app-utils/wire-nodes.js.map +1 -1
  171. package/src/lib/data-transfer/access.d.ts +74 -0
  172. package/src/lib/data-transfer/access.js +93 -0
  173. package/src/lib/data-transfer/access.js.map +1 -0
  174. package/src/lib/data-transfer/derive.d.ts +246 -0
  175. package/src/lib/data-transfer/derive.js +1007 -0
  176. package/src/lib/data-transfer/derive.js.map +1 -0
  177. package/src/lib/data-transfer/export-file.d.ts +46 -0
  178. package/src/lib/data-transfer/export-file.js +146 -0
  179. package/src/lib/data-transfer/export-file.js.map +1 -0
  180. package/src/lib/data-transfer/field-catalog.d.ts +134 -0
  181. package/src/lib/data-transfer/field-catalog.js +278 -0
  182. package/src/lib/data-transfer/field-catalog.js.map +1 -0
  183. package/src/lib/data-transfer/header-match.d.ts +129 -0
  184. package/src/lib/data-transfer/header-match.js +367 -0
  185. package/src/lib/data-transfer/header-match.js.map +1 -0
  186. package/src/lib/data-transfer/index.d.ts +34 -0
  187. package/src/lib/data-transfer/index.js +40 -0
  188. package/src/lib/data-transfer/index.js.map +1 -0
  189. package/src/lib/data-transfer/job.d.ts +190 -0
  190. package/src/lib/data-transfer/job.js +229 -0
  191. package/src/lib/data-transfer/job.js.map +1 -0
  192. package/src/lib/data-transfer/lookup.d.ts +45 -0
  193. package/src/lib/data-transfer/lookup.js +71 -0
  194. package/src/lib/data-transfer/lookup.js.map +1 -0
  195. package/src/lib/data-transfer/match.d.ts +99 -0
  196. package/src/lib/data-transfer/match.js +244 -0
  197. package/src/lib/data-transfer/match.js.map +1 -0
  198. package/src/lib/data-transfer/package-plan.d.ts +205 -0
  199. package/src/lib/data-transfer/package-plan.js +475 -0
  200. package/src/lib/data-transfer/package-plan.js.map +1 -0
  201. package/src/lib/data-transfer/package.d.ts +181 -0
  202. package/src/lib/data-transfer/package.js +426 -0
  203. package/src/lib/data-transfer/package.js.map +1 -0
  204. package/src/lib/data-transfer/picklist-map.d.ts +139 -0
  205. package/src/lib/data-transfer/picklist-map.js +271 -0
  206. package/src/lib/data-transfer/picklist-map.js.map +1 -0
  207. package/src/lib/data-transfer/plan.d.ts +176 -0
  208. package/src/lib/data-transfer/plan.js +451 -0
  209. package/src/lib/data-transfer/plan.js.map +1 -0
  210. package/src/lib/data-transfer/policy.d.ts +170 -0
  211. package/src/lib/data-transfer/policy.js +378 -0
  212. package/src/lib/data-transfer/policy.js.map +1 -0
  213. package/src/lib/data-transfer/resource.d.ts +211 -0
  214. package/src/lib/data-transfer/resource.js +241 -0
  215. package/src/lib/data-transfer/resource.js.map +1 -0
  216. package/src/lib/data-transfer/review.d.ts +70 -0
  217. package/src/lib/data-transfer/review.js +233 -0
  218. package/src/lib/data-transfer/review.js.map +1 -0
  219. package/src/lib/data-transfer/similarity.d.ts +40 -0
  220. package/src/lib/data-transfer/similarity.js +106 -0
  221. package/src/lib/data-transfer/similarity.js.map +1 -0
  222. package/src/lib/data-transfer/site-package.d.ts +365 -0
  223. package/src/lib/data-transfer/site-package.js +1077 -0
  224. package/src/lib/data-transfer/site-package.js.map +1 -0
  225. package/src/lib/data-transfer/source.d.ts +74 -0
  226. package/src/lib/data-transfer/source.js +293 -0
  227. package/src/lib/data-transfer/source.js.map +1 -0
  228. package/src/lib/data-transfer/transfer-api.d.ts +898 -0
  229. package/src/lib/data-transfer/transfer-api.js +107 -0
  230. package/src/lib/data-transfer/transfer-api.js.map +1 -0
  231. package/src/lib/foundation/definitions/org-billing.types.d.ts +31 -0
  232. package/src/lib/foundation/definitions/org-billing.types.js.map +1 -1
  233. package/src/lib/foundation/definitions/organization.types.d.ts +42 -1
  234. package/src/lib/foundation/definitions/organization.types.js.map +1 -1
  235. package/src/lib/foundation/definitions/platform.types.d.ts +6 -4
  236. package/src/lib/foundation/definitions/platform.types.js.map +1 -1
  237. package/src/lib/foundation/index.d.ts +1 -1
  238. package/src/lib/foundation/index.js.map +1 -1
  239. package/src/lib/plugin-manager/feature-plugins.d.ts +91 -2
  240. package/src/lib/plugin-manager/feature-plugins.js +48 -3
  241. package/src/lib/plugin-manager/feature-plugins.js.map +1 -1
  242. package/src/lib/plugin-manager/first-party-plugins.generated.d.ts +56 -0
  243. package/src/lib/plugin-manager/first-party-plugins.generated.js +1132 -27
  244. package/src/lib/plugin-manager/first-party-plugins.generated.js.map +1 -1
  245. package/src/lib/plugin-manager/index.d.ts +0 -1
  246. package/src/lib/plugin-manager/index.js +0 -1
  247. package/src/lib/plugin-manager/index.js.map +1 -1
  248. package/src/lib/plugin-manager/interaction-recipes.d.ts +142 -0
  249. package/src/lib/plugin-manager/interaction-recipes.js +104 -0
  250. package/src/lib/plugin-manager/interaction-recipes.js.map +1 -0
  251. package/src/lib/plugin-manager/interaction-step-checks.d.ts +66 -0
  252. package/src/lib/plugin-manager/interaction-step-checks.js +86 -0
  253. package/src/lib/plugin-manager/interaction-step-checks.js.map +1 -0
  254. package/src/lib/plugin-manager/plugin-artifact-types.d.ts +235 -0
  255. package/src/lib/plugin-manager/plugin-artifact-types.js +99 -0
  256. package/src/lib/plugin-manager/plugin-artifact-types.js.map +1 -0
  257. package/src/lib/plugin-manager/plugin-contact-capture.d.ts +8 -0
  258. package/src/lib/plugin-manager/plugin-contact-capture.js.map +1 -1
  259. package/src/lib/plugin-manager/plugin-conversion-credit.d.ts +216 -0
  260. package/src/lib/plugin-manager/plugin-conversion-credit.js +91 -0
  261. package/src/lib/plugin-manager/plugin-conversion-credit.js.map +1 -0
  262. package/src/lib/plugin-manager/plugin-entity-pickers.d.ts +83 -0
  263. package/src/lib/plugin-manager/plugin-entity-pickers.js +87 -0
  264. package/src/lib/plugin-manager/plugin-entity-pickers.js.map +1 -0
  265. package/src/lib/plugin-manager/plugin-host-resources.d.ts +6 -0
  266. package/src/lib/plugin-manager/plugin-host-resources.js +6 -1
  267. package/src/lib/plugin-manager/plugin-host-resources.js.map +1 -1
  268. package/src/lib/plugin-manager/plugin-intake-gates.d.ts +75 -0
  269. package/src/lib/plugin-manager/plugin-intake-gates.js +49 -0
  270. package/src/lib/plugin-manager/plugin-intake-gates.js.map +1 -0
  271. package/src/lib/plugin-manager/plugin-jobs.d.ts +5 -5
  272. package/src/lib/plugin-manager/plugin-jobs.js +7 -7
  273. package/src/lib/plugin-manager/plugin-jobs.js.map +1 -1
  274. package/src/lib/plugin-manager/plugin-live-paths.d.ts +70 -0
  275. package/src/lib/plugin-manager/plugin-live-paths.js +66 -0
  276. package/src/lib/plugin-manager/plugin-live-paths.js.map +1 -0
  277. package/src/lib/plugin-manager/plugin-org-erasure.d.ts +3 -2
  278. package/src/lib/plugin-manager/plugin-org-erasure.js +30 -5
  279. package/src/lib/plugin-manager/plugin-org-erasure.js.map +1 -1
  280. package/src/lib/plugin-manager/plugin-person-erasure.d.ts +68 -9
  281. package/src/lib/plugin-manager/plugin-person-erasure.js +196 -51
  282. package/src/lib/plugin-manager/plugin-person-erasure.js.map +1 -1
  283. package/src/lib/plugin-manager/plugin-person-records.d.ts +275 -0
  284. package/src/lib/plugin-manager/plugin-person-records.js +107 -0
  285. package/src/lib/plugin-manager/plugin-person-records.js.map +1 -0
  286. package/src/lib/plugin-manager/plugin-record-counts.d.ts +76 -0
  287. package/src/lib/plugin-manager/plugin-record-counts.js +49 -0
  288. package/src/lib/plugin-manager/plugin-record-counts.js.map +1 -0
  289. package/src/lib/plugin-manager/plugin-record-email-state.d.ts +26 -0
  290. package/src/lib/plugin-manager/plugin-record-email-state.js +16 -0
  291. package/src/lib/plugin-manager/plugin-record-email-state.js.map +1 -1
  292. package/src/lib/plugin-manager/plugin-record-index.d.ts +10 -0
  293. package/src/lib/plugin-manager/plugin-record-index.js.map +1 -1
  294. package/src/lib/plugin-manager/plugin-record-lists.d.ts +86 -6
  295. package/src/lib/plugin-manager/plugin-record-lists.js +42 -5
  296. package/src/lib/plugin-manager/plugin-record-lists.js.map +1 -1
  297. package/src/lib/plugin-manager/plugin-record-origin.d.ts +79 -0
  298. package/src/lib/plugin-manager/plugin-record-origin.js +46 -0
  299. package/src/lib/plugin-manager/plugin-record-origin.js.map +1 -0
  300. package/src/lib/plugin-manager/plugin-record-pages.d.ts +37 -0
  301. package/src/lib/plugin-manager/plugin-record-pages.js +52 -0
  302. package/src/lib/plugin-manager/plugin-record-pages.js.map +1 -0
  303. package/src/lib/plugin-manager/plugin-record-timeline.d.ts +60 -0
  304. package/src/lib/plugin-manager/plugin-record-timeline.js +16 -0
  305. package/src/lib/plugin-manager/plugin-record-timeline.js.map +1 -1
  306. package/src/lib/plugin-manager/plugin-resource-drafts.d.ts +5 -5
  307. package/src/lib/plugin-manager/plugin-resource-drafts.js.map +1 -1
  308. package/src/lib/plugin-manager/plugin-revocations.d.ts +64 -0
  309. package/src/lib/plugin-manager/plugin-revocations.js +47 -0
  310. package/src/lib/plugin-manager/plugin-revocations.js.map +1 -0
  311. package/src/lib/plugin-manager/plugin-send-tallies.d.ts +69 -0
  312. package/src/lib/plugin-manager/plugin-send-tallies.js +45 -0
  313. package/src/lib/plugin-manager/plugin-send-tallies.js.map +1 -0
  314. package/src/lib/plugin-manager/plugin-server-steps.d.ts +170 -0
  315. package/src/lib/plugin-manager/plugin-server-steps.js +116 -0
  316. package/src/lib/plugin-manager/plugin-server-steps.js.map +1 -0
  317. package/src/lib/plugin-manager/plugin-site-bundle.d.ts +40 -0
  318. package/src/lib/plugin-manager/plugin-site-bundle.js +4 -0
  319. package/src/lib/plugin-manager/plugin-site-bundle.js.map +1 -1
  320. package/src/lib/plugin-manager/plugin-site-export.d.ts +57 -1
  321. package/src/lib/plugin-manager/plugin-site-export.js +23 -10
  322. package/src/lib/plugin-manager/plugin-site-export.js.map +1 -1
  323. package/src/lib/plugin-manager/plugin-sitemap-readers.d.ts +146 -0
  324. package/src/lib/plugin-manager/plugin-sitemap-readers.js +110 -0
  325. package/src/lib/plugin-manager/plugin-sitemap-readers.js.map +1 -0
  326. package/src/lib/plugin-manager/plugin-transfer-resources.d.ts +714 -0
  327. package/src/lib/plugin-manager/plugin-transfer-resources.js +443 -0
  328. package/src/lib/plugin-manager/plugin-transfer-resources.js.map +1 -0
  329. package/src/lib/plugin-manager/plugin-usage-axes.d.ts +54 -5
  330. package/src/lib/plugin-manager/plugin-usage-axes.js +11 -3
  331. package/src/lib/plugin-manager/plugin-usage-axes.js.map +1 -1
  332. package/src/lib/plugin-manager/plugin-user-erasure.js +9 -1
  333. package/src/lib/plugin-manager/plugin-user-erasure.js.map +1 -1
  334. package/src/lib/plugin-manager/plugin-visitor-doors.d.ts +104 -0
  335. package/src/lib/plugin-manager/plugin-visitor-doors.js +108 -0
  336. package/src/lib/plugin-manager/plugin-visitor-doors.js.map +1 -0
  337. package/src/lib/plugin-manager/realm-host-aglyn.generated.js +2 -0
  338. package/src/lib/plugin-manager/realm-host-aglyn.generated.js.map +1 -1
  339. package/src/lib/plugin-manager/repeat-rows.d.ts +5 -6
  340. package/src/lib/plugin-manager/repeat-rows.js.map +1 -1
  341. package/src/lib/app-utils/actions.d.ts +0 -310
  342. package/src/lib/app-utils/actions.js +0 -506
  343. package/src/lib/app-utils/actions.js.map +0 -1
  344. package/src/lib/app-utils/automation-placeholders.d.ts +0 -72
  345. package/src/lib/app-utils/automation-placeholders.js +0 -207
  346. package/src/lib/app-utils/automation-placeholders.js.map +0 -1
  347. package/src/lib/app-utils/dataset-models.d.ts +0 -339
  348. package/src/lib/app-utils/dataset-models.js +0 -722
  349. package/src/lib/app-utils/dataset-models.js.map +0 -1
  350. package/src/lib/app-utils/datasets.d.ts +0 -171
  351. package/src/lib/app-utils/datasets.js +0 -227
  352. package/src/lib/app-utils/datasets.js.map +0 -1
  353. package/src/lib/app-utils/form-abuse-ceiling.d.ts +0 -146
  354. package/src/lib/app-utils/form-abuse-ceiling.js +0 -158
  355. package/src/lib/app-utils/form-abuse-ceiling.js.map +0 -1
  356. package/src/lib/plugin-manager/order-fulfilment.d.ts +0 -142
  357. package/src/lib/plugin-manager/order-fulfilment.js +0 -104
  358. package/src/lib/plugin-manager/order-fulfilment.js.map +0 -1
@@ -0,0 +1,277 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2026 Aglyn LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import type { AglynOrgBilling, OrgDiscount, OrgPlan } from '../foundation';
18
+ import { type ResolvedOrgEntitlements } from './plan-entitlements';
19
+ /**
20
+ * WHAT A WORKSPACE COSTS IF IT SPENDS EXACTLY WHAT IT BOUGHT (AGL-3473).
21
+ *
22
+ * `orgMonthlyCogsUsd` prices what an org DID use, from its rollup. Every
23
+ * guard that rated a price against it — the discount guardrail, the
24
+ * enterprise quote card — therefore approved deals on the strength of how
25
+ * little the customer had used so far, and a deal is a promise about the
26
+ * whole allowance. Agency at 20% off read "ok, 75.5%" against its measured
27
+ * month while sitting under what its bands cost at 100%.
28
+ *
29
+ * This is the same multiplication `tier-margin-floor.spec.ts` does for the
30
+ * price list — every band at 100%, at the rates the platform's own model
31
+ * uses — over RESOLVED entitlements, so a staff override, a comp's plan and
32
+ * a purchased add-on all cost what they deliver. That spec holds its own
33
+ * independent model and asserts this function agrees with it on every plan.
34
+ *
35
+ * Two readers, held to it differently. An enterprise quote must clear
36
+ * `FULL_USE_QUOTE_MULTIPLE` × the cost and is refused below it. A coupon or
37
+ * discount is judged on the charges it reaches and WARNED about below 1× —
38
+ * never refused, because a first-month or first-year discount that spends
39
+ * cost to close a deal is a decision staff are allowed to make.
40
+ *
41
+ * ## An unbounded band costs Infinity, never 0
42
+ *
43
+ * A band that is `UNLIMITED` cannot be costed, and every cost model in this
44
+ * repo that scored one as zero reported the largest line item on a plan as
45
+ * contributing nothing. So a non-finite term — or one that is `NaN` because a
46
+ * zero met an infinity — is `Infinity`, the total is `Infinity`, and no price
47
+ * clears it. The term is named in `unbounded` so a refusal or a warning can
48
+ * say which band to bound.
49
+ */
50
+ /**
51
+ * What one console seat costs to serve for a month — about 60,000 reads and
52
+ * 10,000 writes at `nam5` list prices, ≈$0.054, carried as $0.06 (the Drive
53
+ * pricing decision of 2026-09-05).
54
+ *
55
+ * NOT in `ORG_COGS_UNIT_RATES_USD`: no rollup meter counts seat-months, so a
56
+ * rate there would be one no axis of `orgMonthlyCogsUsd` reads.
57
+ */
58
+ export declare const SEAT_COGS_USD_PER_MONTH = 0.06;
59
+ /**
60
+ * How many times its full-use cost an enterprise quote must cover, net of
61
+ * Stripe: cost + 30%, the markup every metered overage already carries, so a
62
+ * negotiated deal earns what the price list does.
63
+ */
64
+ export declare const FULL_USE_QUOTE_MULTIPLE = 1.3;
65
+ /**
66
+ * The full-use cost a discounted charge is judged against, net of Stripe: 1×.
67
+ * A discount that spends only the 30% a price carries above cost clears it;
68
+ * one that reaches into the cost is WARNED about, never refused — a coupon is
69
+ * a tool for closing a deal, and staff choose to spend cost on one knowingly.
70
+ */
71
+ export declare const FULL_USE_DISCOUNT_MULTIPLE = 1;
72
+ export interface FullUseCogsResult {
73
+ /** `measuredUsd` or the per-site floor, whichever is larger; `Infinity` when any band is unbounded. */
74
+ cogsUsd: number;
75
+ /** The sum of every term at 100% of its band. */
76
+ measuredUsd: number;
77
+ /** `INFRA_COGS_PER_SITE_USD × hostLimit` — the sites sold, not the sites built. */
78
+ floorUsd: number;
79
+ /** Every term, in USD a month, for showing the working. */
80
+ breakdown: Record<string, number>;
81
+ /** The terms whose band is unbounded, sorted. Empty when the plan can be costed. */
82
+ unbounded: string[];
83
+ }
84
+ export interface FullUseCogsOptions {
85
+ /**
86
+ * Seats bought on top of the plan's — the org-wide manager add-on and the
87
+ * collaborator pool, neither of which `resolveOrgEntitlements` folds into
88
+ * a band.
89
+ */
90
+ extraSeats?: number;
91
+ }
92
+ /**
93
+ * Every cost a workspace's RESOLVED bands imply at 100%, per month.
94
+ *
95
+ * The platform's own bands, each at the rate `orgMonthlyCogsUsd` prices its
96
+ * meter on: media storage per site (× `hostLimit`), bandwidth at its weight
97
+ * (`perPageView`) and at its CDN requests (`PAGE_VIEW_CDN_REQUEST_COST_USD`),
98
+ * stored data (`dataStorageMbPerOrg`), API requests and every email the
99
+ * campaign band sends. Then every band a plugin declares
100
+ * (`plugin-usage-axes.ts`), a per-site one expanded by `hostLimit`. Then the
101
+ * two costs no meter records:
102
+ *
103
+ * - SEATS — every collaborator each site admits on every site
104
+ * (`membersPerHost × hostLimit`), the org's managers (`managersPerOrg`)
105
+ * and any bought on top, at `SEAT_COGS_USD_PER_MONTH`;
106
+ * - ONE-TO-ONE EMAIL — the CRM's daily cap spent every day of the month, at
107
+ * the rate every other send costs.
108
+ *
109
+ * `INFRA_COGS_PER_SITE_USD × hostLimit` is a FLOOR rather than an added
110
+ * term, exactly as in `orgMonthlyCogsUsd`.
111
+ */
112
+ export declare function fullUseCogs(entitlements: ResolvedOrgEntitlements, options?: FullUseCogsOptions): FullUseCogsResult;
113
+ /** `fullUseCogs(entitlements).cogsUsd` — the figure every guard compares against. */
114
+ export declare function fullUseMonthlyCogsUsd(entitlements: ResolvedOrgEntitlements, options?: FullUseCogsOptions): number;
115
+ /**
116
+ * The full-use cost of an org as it stands: its resolved entitlements, plus
117
+ * the manager and collaborator seats it bought, which no band carries.
118
+ */
119
+ export declare function orgFullUseCogs(org: Partial<AglynOrgBilling> | null | undefined): FullUseCogsResult;
120
+ /** A price rated against what the bands it buys cost at 100%. */
121
+ export interface FullUseFloorResult {
122
+ /** The monthly list price before the discount (annual billing as its monthly equivalent). */
123
+ listUsd: number;
124
+ /** The same after the discount. */
125
+ discountedUsd: number;
126
+ /** The discounted price net of Stripe's fee — what is kept before any cost. */
127
+ netUsd: number;
128
+ annual: boolean;
129
+ /** `fullUseCogs(…).cogsUsd`; `Infinity` when a band is unbounded. */
130
+ fullUseCogsUsd: number;
131
+ /** The multiple of full-use cost the net price must reach. */
132
+ multiple: number;
133
+ /** `multiple × fullUseCogsUsd` — the net price the floor asks for. */
134
+ requiredNetUsd: number;
135
+ /** `netUsd / fullUseCogsUsd`: 1.30 is cost + 30%. 0 when the cost is unbounded. */
136
+ coverage: number;
137
+ ok: boolean;
138
+ /** The unbounded terms, when that is why it fails. */
139
+ unbounded: string[];
140
+ }
141
+ /**
142
+ * Rate a monthly price — after `discount`, net of Stripe — against `multiple`
143
+ * times a full-use cost. Pure: the callers below bring the price and the cost.
144
+ */
145
+ export declare function rateAgainstFullUse(input: {
146
+ listMonthlyUsd: number;
147
+ annual: boolean;
148
+ cogs: FullUseCogsResult;
149
+ multiple: number;
150
+ discount?: Pick<OrgDiscount, 'percentOff' | 'amountOffUsd'> | null;
151
+ }): FullUseFloorResult;
152
+ /**
153
+ * An org's subscription after `discount`, against `multiple` × its full-use
154
+ * cost — the enterprise quote floor, where the negotiated `customMonthlyUsd`
155
+ * is the list price. `org` must carry its subscription: a list price of 0
156
+ * rates against nothing and fails, so a caller holding a stale mirror is
157
+ * refused rather than waved through.
158
+ */
159
+ export declare function orgFullUseFloor(org: Partial<AglynOrgBilling> | null | undefined, options: {
160
+ multiple: number;
161
+ discount?: Pick<OrgDiscount, 'percentOff' | 'amountOffUsd'> | null;
162
+ }): FullUseFloorResult;
163
+ /** How long a coupon takes its discount off — Stripe's `duration` and `duration_in_months`. */
164
+ export interface CouponDuration {
165
+ duration?: string | null;
166
+ durationInMonths?: number | null;
167
+ }
168
+ /** Which charges a discount reaches on one billing interval. */
169
+ export interface DiscountReach {
170
+ /** Stripe's duration, or `unknown` when none is on record — judged as `forever`. */
171
+ duration: 'once' | 'repeating' | 'forever' | 'unknown';
172
+ /** How many charges it comes off; `Infinity` for every one. */
173
+ charges: number;
174
+ /** The months one charge pays for: 1 billed monthly, 12 billed annually. */
175
+ monthsPerCharge: 1 | 12;
176
+ /** How many of the first twelve months the discounted charges pay for. */
177
+ monthsOfFirstYear: number;
178
+ }
179
+ /**
180
+ * Which charges a coupon of `duration` comes off (AGL-3473).
181
+ *
182
+ * `once` is the first charge: the first month billed monthly, the whole first
183
+ * year billed annually. `repeating` covers the invoices dated within its
184
+ * months of redemption: N monthly charges, or — billed annually — the annual
185
+ * charges that fall inside them, which is the first one for any N up to 12.
186
+ * `forever` is every charge. A duration not on record is judged as
187
+ * `forever`, the reading that cannot understate what a discount gives away.
188
+ */
189
+ export declare function discountReach(coupon: CouponDuration | null | undefined, annual: boolean): DiscountReach;
190
+ /**
191
+ * A discount against full-use cost on the charges it actually reaches, and on
192
+ * the first year as a whole. `ok` and `coverage` are one DISCOUNTED charge's:
193
+ * the warning is about the charges a coupon touches, never about the ones it
194
+ * does not.
195
+ */
196
+ export interface DiscountFullUseAssessment extends FullUseFloorResult {
197
+ reach: DiscountReach;
198
+ /** What one discounted charge keeps, net of Stripe. */
199
+ chargeNetUsd: number;
200
+ /** What the months one charge pays for cost at full use. */
201
+ chargeCogsUsd: number;
202
+ /** How far under its full-use cost each discounted charge falls; 0 when it clears. */
203
+ chargeUnderCostUsd: number;
204
+ /** The first twelve months together: the discounted charges, the rest at list. */
205
+ firstYearNetUsd: number;
206
+ firstYearCogsUsd: number;
207
+ /** `firstYearNetUsd / firstYearCogsUsd`; 0 when the cost is unbounded. */
208
+ firstYearCoverage: number;
209
+ /** How far under twelve months of full-use cost the first year falls; 0 when covered. */
210
+ firstYearUnderCostUsd: number;
211
+ }
212
+ /**
213
+ * Judge a discount on one price against full-use cost — pure: the callers
214
+ * below bring the price, the cost and the coupon.
215
+ */
216
+ export declare function assessDiscountAgainstFullUse(input: {
217
+ listMonthlyUsd: number;
218
+ annual: boolean;
219
+ cogs: FullUseCogsResult;
220
+ discount: Pick<OrgDiscount, 'percentOff' | 'amountOffUsd'> | null | undefined;
221
+ duration: CouponDuration | null | undefined;
222
+ }): DiscountFullUseAssessment;
223
+ /**
224
+ * A discount on an org as it bills — its plan, overrides, add-ons, interval
225
+ * and the price it pays — against its full-use cost: the warning behind
226
+ * applying a coupon to an org and behind the winback. A list price of 0 (no
227
+ * subscription on record) is reported as such, never as covered.
228
+ */
229
+ export declare function orgDiscountFullUse(org: Partial<AglynOrgBilling> | null | undefined, discount: Pick<OrgDiscount, 'percentOff' | 'amountOffUsd'> | null | undefined, duration: CouponDuration | null | undefined): DiscountFullUseAssessment;
230
+ /** One plan and interval a coupon could be redeemed on, judged. */
231
+ export interface CouponFullUseCase extends DiscountFullUseAssessment {
232
+ plan: OrgPlan;
233
+ interval: 'month' | 'year';
234
+ }
235
+ export interface CouponFullUseVerdict {
236
+ /** Every case clears: no discounted charge, on any plan, falls under its full-use cost. */
237
+ ok: boolean;
238
+ /** Every paid self-serve plan, monthly and annual, judged. */
239
+ cases: CouponFullUseCase[];
240
+ /** The case with the least cover — the one the warning leads with. */
241
+ worst: CouponFullUseCase;
242
+ /** The cases under full-use cost, as "Agency, annual". */
243
+ under: string[];
244
+ /** The staff warning, with the figures; `null` when every case clears. */
245
+ warning: string | null;
246
+ }
247
+ /**
248
+ * Judge a coupon or promotion code against full-use cost before it is minted
249
+ * (AGL-3473) — a WARNING for staff, never a refusal.
250
+ *
251
+ * A coupon here carries no plan restriction, so its code can be redeemed on
252
+ * any paid self-serve plan, on either interval, by a customer using
253
+ * everything the plan includes; each case is that plan's list price against
254
+ * its own bands at 100%, on the charges `duration` reaches. Enterprise is
255
+ * quoted per deal and never takes a code at checkout; a coupon applied to one
256
+ * is judged on that org.
257
+ */
258
+ export declare function rateCouponAgainstFullUse(discount: Pick<OrgDiscount, 'percentOff' | 'amountOffUsd'>, duration?: CouponDuration | null): CouponFullUseVerdict;
259
+ /**
260
+ * The deepest whole percent off a coupon can take with every discounted
261
+ * charge, on every paid self-serve plan, still covering its full-use cost —
262
+ * or `null` when a plan is under it at list price.
263
+ */
264
+ export declare function deepestCouponPercentWithinFullUse(): number | null;
265
+ /**
266
+ * The staff sentence for a discount against full-use cost: which charges it
267
+ * reaches, what each keeps against what its months cost, how far under, and
268
+ * the first year as a whole. Staff-facing only — it names Aglyn's cost.
269
+ */
270
+ export declare function describeDiscountFullUse(result: DiscountFullUseAssessment, subject?: string): string;
271
+ /**
272
+ * The sentence an enterprise quote refusal or verdict states: the floor, and
273
+ * the figures that missed it. Staff-facing only — it names Aglyn's cost.
274
+ */
275
+ export declare function describeFullUseFloor(result: FullUseFloorResult, subject?: string): string;
276
+ /** "Agency, annual" — how a coupon case names itself. */
277
+ export declare function couponCaseLabel(one: Pick<CouponFullUseCase, 'plan' | 'interval'>): string;