@ttt-productions/q-core 0.1.28 → 0.1.30

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 (496) hide show
  1. package/dist/constants/admin-views.d.ts.map +1 -1
  2. package/dist/constants/admin-views.js +0 -3
  3. package/dist/constants/admin-views.js.map +1 -1
  4. package/dist/constants/business.d.ts.map +1 -1
  5. package/dist/constants/business.js +0 -52
  6. package/dist/constants/business.js.map +1 -1
  7. package/dist/constants/deployment.d.ts +0 -2
  8. package/dist/constants/deployment.d.ts.map +1 -1
  9. package/dist/constants/deployment.js +0 -2
  10. package/dist/constants/deployment.js.map +1 -1
  11. package/dist/constants/media.d.ts.map +1 -1
  12. package/dist/constants/media.js +4 -30
  13. package/dist/constants/media.js.map +1 -1
  14. package/dist/constants/scheduled-jobs.d.ts +0 -25
  15. package/dist/constants/scheduled-jobs.d.ts.map +1 -1
  16. package/dist/constants/scheduled-jobs.js +0 -26
  17. package/dist/constants/scheduled-jobs.js.map +1 -1
  18. package/dist/constants/sports.d.ts +1 -0
  19. package/dist/constants/sports.d.ts.map +1 -1
  20. package/dist/constants/sports.js +4 -25
  21. package/dist/constants/sports.js.map +1 -1
  22. package/dist/constants/storage-keys.d.ts +0 -38
  23. package/dist/constants/storage-keys.d.ts.map +1 -1
  24. package/dist/constants/storage-keys.js +0 -41
  25. package/dist/constants/storage-keys.js.map +1 -1
  26. package/dist/constants/telemetry.d.ts +0 -3
  27. package/dist/constants/telemetry.d.ts.map +1 -1
  28. package/dist/constants/telemetry.js +2 -11
  29. package/dist/constants/telemetry.js.map +1 -1
  30. package/dist/doc-schemas/admin-notifications.d.ts +1 -2
  31. package/dist/doc-schemas/admin-notifications.d.ts.map +1 -1
  32. package/dist/doc-schemas/admin-notifications.js +0 -41
  33. package/dist/doc-schemas/admin-notifications.js.map +1 -1
  34. package/dist/doc-schemas/aggregate-stats.d.ts.map +1 -1
  35. package/dist/doc-schemas/aggregate-stats.js +0 -35
  36. package/dist/doc-schemas/aggregate-stats.js.map +1 -1
  37. package/dist/doc-schemas/atoms.d.ts +0 -17
  38. package/dist/doc-schemas/atoms.d.ts.map +1 -1
  39. package/dist/doc-schemas/atoms.js +0 -36
  40. package/dist/doc-schemas/atoms.js.map +1 -1
  41. package/dist/doc-schemas/audit-event.d.ts +2 -0
  42. package/dist/doc-schemas/audit-event.d.ts.map +1 -1
  43. package/dist/doc-schemas/audit-event.js +0 -8
  44. package/dist/doc-schemas/audit-event.js.map +1 -1
  45. package/dist/doc-schemas/award-group-grant.d.ts +2 -8
  46. package/dist/doc-schemas/award-group-grant.d.ts.map +1 -1
  47. package/dist/doc-schemas/award-group-grant.js +0 -25
  48. package/dist/doc-schemas/award-group-grant.js.map +1 -1
  49. package/dist/doc-schemas/catalogs.d.ts.map +1 -1
  50. package/dist/doc-schemas/catalogs.js +0 -12
  51. package/dist/doc-schemas/catalogs.js.map +1 -1
  52. package/dist/doc-schemas/firestore-primitives.d.ts.map +1 -1
  53. package/dist/doc-schemas/firestore-primitives.js +0 -5
  54. package/dist/doc-schemas/firestore-primitives.js.map +1 -1
  55. package/dist/doc-schemas/gallery.d.ts.map +1 -1
  56. package/dist/doc-schemas/gallery.js +9 -18
  57. package/dist/doc-schemas/gallery.js.map +1 -1
  58. package/dist/doc-schemas/game-location.d.ts.map +1 -1
  59. package/dist/doc-schemas/game-location.js +2 -11
  60. package/dist/doc-schemas/game-location.js.map +1 -1
  61. package/dist/doc-schemas/game-stat-history.d.ts.map +1 -1
  62. package/dist/doc-schemas/game-stat-history.js +2 -11
  63. package/dist/doc-schemas/game-stat-history.js.map +1 -1
  64. package/dist/doc-schemas/game-stats.d.ts.map +1 -1
  65. package/dist/doc-schemas/game-stats.js +0 -56
  66. package/dist/doc-schemas/game-stats.js.map +1 -1
  67. package/dist/doc-schemas/league-team.d.ts.map +1 -1
  68. package/dist/doc-schemas/league-team.js +6 -29
  69. package/dist/doc-schemas/league-team.js.map +1 -1
  70. package/dist/doc-schemas/membership-roster-sync.d.ts.map +1 -1
  71. package/dist/doc-schemas/membership-roster-sync.js +0 -17
  72. package/dist/doc-schemas/membership-roster-sync.js.map +1 -1
  73. package/dist/doc-schemas/migration-console.d.ts +21 -15
  74. package/dist/doc-schemas/migration-console.d.ts.map +1 -1
  75. package/dist/doc-schemas/migration-console.js +0 -32
  76. package/dist/doc-schemas/migration-console.js.map +1 -1
  77. package/dist/doc-schemas/pending-media.d.ts.map +1 -1
  78. package/dist/doc-schemas/pending-media.js +8 -20
  79. package/dist/doc-schemas/pending-media.js.map +1 -1
  80. package/dist/doc-schemas/picture-retirement.d.ts.map +1 -1
  81. package/dist/doc-schemas/picture-retirement.js +8 -13
  82. package/dist/doc-schemas/picture-retirement.js.map +1 -1
  83. package/dist/doc-schemas/publicUser.d.ts.map +1 -1
  84. package/dist/doc-schemas/publicUser.js +0 -5
  85. package/dist/doc-schemas/publicUser.js.map +1 -1
  86. package/dist/doc-schemas/registration-start.d.ts.map +1 -1
  87. package/dist/doc-schemas/registration-start.js +2 -5
  88. package/dist/doc-schemas/registration-start.js.map +1 -1
  89. package/dist/doc-schemas/registry.d.ts +25 -14
  90. package/dist/doc-schemas/registry.d.ts.map +1 -1
  91. package/dist/doc-schemas/registry.js +0 -10
  92. package/dist/doc-schemas/registry.js.map +1 -1
  93. package/dist/doc-schemas/reserved-display-name.d.ts.map +1 -1
  94. package/dist/doc-schemas/reserved-display-name.js +0 -5
  95. package/dist/doc-schemas/reserved-display-name.js.map +1 -1
  96. package/dist/doc-schemas/sport-game.d.ts.map +1 -1
  97. package/dist/doc-schemas/sport-game.js +1 -29
  98. package/dist/doc-schemas/sport-game.js.map +1 -1
  99. package/dist/doc-schemas/sport-league.d.ts +0 -9
  100. package/dist/doc-schemas/sport-league.d.ts.map +1 -1
  101. package/dist/doc-schemas/sport-league.js +4 -26
  102. package/dist/doc-schemas/sport-league.js.map +1 -1
  103. package/dist/doc-schemas/stats-operation.d.ts +22 -18
  104. package/dist/doc-schemas/stats-operation.d.ts.map +1 -1
  105. package/dist/doc-schemas/stats-operation.js +7 -44
  106. package/dist/doc-schemas/stats-operation.js.map +1 -1
  107. package/dist/doc-schemas/status-reconcile-queue.d.ts +0 -6
  108. package/dist/doc-schemas/status-reconcile-queue.d.ts.map +1 -1
  109. package/dist/doc-schemas/status-reconcile-queue.js +0 -13
  110. package/dist/doc-schemas/status-reconcile-queue.js.map +1 -1
  111. package/dist/doc-schemas/sweep-state.d.ts.map +1 -1
  112. package/dist/doc-schemas/sweep-state.js +4 -20
  113. package/dist/doc-schemas/sweep-state.js.map +1 -1
  114. package/dist/doc-schemas/system.d.ts.map +1 -1
  115. package/dist/doc-schemas/system.js +1 -27
  116. package/dist/doc-schemas/system.js.map +1 -1
  117. package/dist/doc-schemas/team-membership.d.ts.map +1 -1
  118. package/dist/doc-schemas/team-membership.js +0 -10
  119. package/dist/doc-schemas/team-membership.js.map +1 -1
  120. package/dist/doc-schemas/user-profile.d.ts +0 -1
  121. package/dist/doc-schemas/user-profile.d.ts.map +1 -1
  122. package/dist/doc-schemas/user-profile.js +0 -28
  123. package/dist/doc-schemas/user-profile.js.map +1 -1
  124. package/dist/doc-schemas/waiver-template.d.ts.map +1 -1
  125. package/dist/doc-schemas/waiver-template.js +4 -25
  126. package/dist/doc-schemas/waiver-template.js.map +1 -1
  127. package/dist/doc-schemas/waivers-and-hardware.d.ts.map +1 -1
  128. package/dist/doc-schemas/waivers-and-hardware.js +0 -20
  129. package/dist/doc-schemas/waivers-and-hardware.js.map +1 -1
  130. package/dist/domain-events/domain-events.d.ts.map +1 -1
  131. package/dist/domain-events/domain-events.js +0 -67
  132. package/dist/domain-events/domain-events.js.map +1 -1
  133. package/dist/ids/award-grant-ids.d.ts.map +1 -1
  134. package/dist/ids/award-grant-ids.js +0 -7
  135. package/dist/ids/award-grant-ids.js.map +1 -1
  136. package/dist/ids/compound-ids.d.ts.map +1 -1
  137. package/dist/ids/compound-ids.js +0 -7
  138. package/dist/ids/compound-ids.js.map +1 -1
  139. package/dist/ids/minted-ids.d.ts.map +1 -1
  140. package/dist/ids/minted-ids.js +4 -14
  141. package/dist/ids/minted-ids.js.map +1 -1
  142. package/dist/ids/notification-ids.d.ts.map +1 -1
  143. package/dist/ids/notification-ids.js +0 -15
  144. package/dist/ids/notification-ids.js.map +1 -1
  145. package/dist/ids/picture-ids.d.ts +0 -5
  146. package/dist/ids/picture-ids.d.ts.map +1 -1
  147. package/dist/ids/picture-ids.js +0 -11
  148. package/dist/ids/picture-ids.js.map +1 -1
  149. package/dist/ids/stat-event-ids.d.ts +0 -6
  150. package/dist/ids/stat-event-ids.d.ts.map +1 -1
  151. package/dist/ids/stat-event-ids.js +0 -15
  152. package/dist/ids/stat-event-ids.js.map +1 -1
  153. package/dist/ids/stats-operation-ids.d.ts.map +1 -1
  154. package/dist/ids/stats-operation-ids.js +0 -7
  155. package/dist/ids/stats-operation-ids.js.map +1 -1
  156. package/dist/ids/waiver-template-ids.d.ts +0 -1
  157. package/dist/ids/waiver-template-ids.d.ts.map +1 -1
  158. package/dist/ids/waiver-template-ids.js +0 -2
  159. package/dist/ids/waiver-template-ids.js.map +1 -1
  160. package/dist/index.d.ts +2 -0
  161. package/dist/index.d.ts.map +1 -1
  162. package/dist/index.js +2 -2
  163. package/dist/index.js.map +1 -1
  164. package/dist/input-formats/input-formats.d.ts +0 -80
  165. package/dist/input-formats/input-formats.d.ts.map +1 -1
  166. package/dist/input-formats/input-formats.js +0 -86
  167. package/dist/input-formats/input-formats.js.map +1 -1
  168. package/dist/media/file-origins.d.ts +0 -3
  169. package/dist/media/file-origins.d.ts.map +1 -1
  170. package/dist/media/file-origins.js +0 -26
  171. package/dist/media/file-origins.js.map +1 -1
  172. package/dist/media/picture-aspects.d.ts +0 -2
  173. package/dist/media/picture-aspects.d.ts.map +1 -1
  174. package/dist/media/picture-aspects.js +0 -5
  175. package/dist/media/picture-aspects.js.map +1 -1
  176. package/dist/media/picture-url.d.ts +0 -6
  177. package/dist/media/picture-url.d.ts.map +1 -1
  178. package/dist/media/picture-url.js +0 -9
  179. package/dist/media/picture-url.js.map +1 -1
  180. package/dist/media/upload-tray-display.d.ts +0 -3
  181. package/dist/media/upload-tray-display.d.ts.map +1 -1
  182. package/dist/media/upload-tray-display.js +0 -6
  183. package/dist/media/upload-tray-display.js.map +1 -1
  184. package/dist/migration-console/action-ids.d.ts +4 -1
  185. package/dist/migration-console/action-ids.d.ts.map +1 -1
  186. package/dist/migration-console/action-ids.js +8 -45
  187. package/dist/migration-console/action-ids.js.map +1 -1
  188. package/dist/migration-console/console-lock.d.ts +10 -0
  189. package/dist/migration-console/console-lock.d.ts.map +1 -0
  190. package/dist/migration-console/console-lock.js +14 -0
  191. package/dist/migration-console/console-lock.js.map +1 -0
  192. package/dist/migration-console/consumed-source.d.ts +4 -0
  193. package/dist/migration-console/consumed-source.d.ts.map +1 -0
  194. package/dist/migration-console/consumed-source.js +10 -0
  195. package/dist/migration-console/consumed-source.js.map +1 -0
  196. package/dist/migration-console/manifest.d.ts +2 -24
  197. package/dist/migration-console/manifest.d.ts.map +1 -1
  198. package/dist/migration-console/manifest.js +174 -61
  199. package/dist/migration-console/manifest.js.map +1 -1
  200. package/dist/migration-console/run-state.d.ts +2 -14
  201. package/dist/migration-console/run-state.d.ts.map +1 -1
  202. package/dist/migration-console/run-state.js +3 -16
  203. package/dist/migration-console/run-state.js.map +1 -1
  204. package/dist/notifications/admin-notification-config.d.ts +0 -11
  205. package/dist/notifications/admin-notification-config.d.ts.map +1 -1
  206. package/dist/notifications/admin-notification-config.js +2 -13
  207. package/dist/notifications/admin-notification-config.js.map +1 -1
  208. package/dist/notifications/archive-all.d.ts.map +1 -1
  209. package/dist/notifications/archive-all.js +0 -2
  210. package/dist/notifications/archive-all.js.map +1 -1
  211. package/dist/notifications/occurrences.d.ts +0 -3
  212. package/dist/notifications/occurrences.d.ts.map +1 -1
  213. package/dist/notifications/occurrences.js +0 -7
  214. package/dist/notifications/occurrences.js.map +1 -1
  215. package/dist/paths/app-routes.d.ts +0 -12
  216. package/dist/paths/app-routes.d.ts.map +1 -1
  217. package/dist/paths/app-routes.js +0 -18
  218. package/dist/paths/app-routes.js.map +1 -1
  219. package/dist/paths/collection-groups.d.ts.map +1 -1
  220. package/dist/paths/collection-groups.js +0 -5
  221. package/dist/paths/collection-groups.js.map +1 -1
  222. package/dist/paths/collection-refs.d.ts.map +1 -1
  223. package/dist/paths/collection-refs.js +0 -4
  224. package/dist/paths/collection-refs.js.map +1 -1
  225. package/dist/paths/collections.d.ts +0 -5
  226. package/dist/paths/collections.d.ts.map +1 -1
  227. package/dist/paths/collections.js +0 -68
  228. package/dist/paths/collections.js.map +1 -1
  229. package/dist/paths/path-builders.d.ts.map +1 -1
  230. package/dist/paths/path-builders.js +0 -16
  231. package/dist/paths/path-builders.js.map +1 -1
  232. package/dist/paths/picture-owner-paths.d.ts +0 -4
  233. package/dist/paths/picture-owner-paths.d.ts.map +1 -1
  234. package/dist/paths/picture-owner-paths.js +2 -11
  235. package/dist/paths/picture-owner-paths.js.map +1 -1
  236. package/dist/paths/storage-paths.d.ts +0 -18
  237. package/dist/paths/storage-paths.d.ts.map +1 -1
  238. package/dist/paths/storage-paths.js +0 -23
  239. package/dist/paths/storage-paths.js.map +1 -1
  240. package/dist/paths/utils.d.ts +0 -6
  241. package/dist/paths/utils.d.ts.map +1 -1
  242. package/dist/paths/utils.js +0 -9
  243. package/dist/paths/utils.js.map +1 -1
  244. package/dist/schemas/account-settings.d.ts.map +1 -1
  245. package/dist/schemas/account-settings.js +0 -7
  246. package/dist/schemas/account-settings.js.map +1 -1
  247. package/dist/schemas/admin-notifications.d.ts.map +1 -1
  248. package/dist/schemas/admin-notifications.js +0 -17
  249. package/dist/schemas/admin-notifications.js.map +1 -1
  250. package/dist/schemas/admin-stats.d.ts.map +1 -1
  251. package/dist/schemas/admin-stats.js +0 -9
  252. package/dist/schemas/admin-stats.js.map +1 -1
  253. package/dist/schemas/app-config.d.ts.map +1 -1
  254. package/dist/schemas/app-config.js +0 -10
  255. package/dist/schemas/app-config.js.map +1 -1
  256. package/dist/schemas/atoms.d.ts.map +1 -1
  257. package/dist/schemas/atoms.js +0 -10
  258. package/dist/schemas/atoms.js.map +1 -1
  259. package/dist/schemas/awards.d.ts +3 -3
  260. package/dist/schemas/awards.d.ts.map +1 -1
  261. package/dist/schemas/awards.js +0 -29
  262. package/dist/schemas/awards.js.map +1 -1
  263. package/dist/schemas/dead-letters.d.ts +0 -3
  264. package/dist/schemas/dead-letters.d.ts.map +1 -1
  265. package/dist/schemas/dead-letters.js +0 -15
  266. package/dist/schemas/dead-letters.js.map +1 -1
  267. package/dist/schemas/game-locations.d.ts.map +1 -1
  268. package/dist/schemas/game-locations.js +0 -6
  269. package/dist/schemas/game-locations.js.map +1 -1
  270. package/dist/schemas/hardware-loan-contracts.d.ts.map +1 -1
  271. package/dist/schemas/hardware-loan-contracts.js +0 -13
  272. package/dist/schemas/hardware-loan-contracts.js.map +1 -1
  273. package/dist/schemas/index.d.ts.map +1 -1
  274. package/dist/schemas/index.js +0 -2
  275. package/dist/schemas/index.js.map +1 -1
  276. package/dist/schemas/leagues.d.ts.map +1 -1
  277. package/dist/schemas/leagues.js +0 -24
  278. package/dist/schemas/leagues.js.map +1 -1
  279. package/dist/schemas/migration-console.d.ts +58 -15
  280. package/dist/schemas/migration-console.d.ts.map +1 -1
  281. package/dist/schemas/migration-console.js +4 -34
  282. package/dist/schemas/migration-console.js.map +1 -1
  283. package/dist/schemas/pictures.d.ts.map +1 -1
  284. package/dist/schemas/pictures.js +0 -10
  285. package/dist/schemas/pictures.js.map +1 -1
  286. package/dist/schemas/schedules.d.ts.map +1 -1
  287. package/dist/schemas/schedules.js +0 -26
  288. package/dist/schemas/schedules.js.map +1 -1
  289. package/dist/schemas/scoring.d.ts +20 -26
  290. package/dist/schemas/scoring.d.ts.map +1 -1
  291. package/dist/schemas/scoring.js +0 -33
  292. package/dist/schemas/scoring.js.map +1 -1
  293. package/dist/schemas/signed-waivers.d.ts.map +1 -1
  294. package/dist/schemas/signed-waivers.js +0 -22
  295. package/dist/schemas/signed-waivers.js.map +1 -1
  296. package/dist/schemas/stats.d.ts +12 -0
  297. package/dist/schemas/stats.d.ts.map +1 -1
  298. package/dist/schemas/stats.js +21 -61
  299. package/dist/schemas/stats.js.map +1 -1
  300. package/dist/schemas/team-joining.d.ts.map +1 -1
  301. package/dist/schemas/team-joining.js +0 -30
  302. package/dist/schemas/team-joining.js.map +1 -1
  303. package/dist/schemas/teams.d.ts +0 -1
  304. package/dist/schemas/teams.d.ts.map +1 -1
  305. package/dist/schemas/teams.js +0 -83
  306. package/dist/schemas/teams.js.map +1 -1
  307. package/dist/schemas/uploads.d.ts +0 -8
  308. package/dist/schemas/uploads.d.ts.map +1 -1
  309. package/dist/schemas/uploads.js +0 -29
  310. package/dist/schemas/uploads.js.map +1 -1
  311. package/dist/schemas/users.d.ts +0 -1
  312. package/dist/schemas/users.d.ts.map +1 -1
  313. package/dist/schemas/users.js +0 -41
  314. package/dist/schemas/users.js.map +1 -1
  315. package/dist/schemas/waiver-templates.d.ts.map +1 -1
  316. package/dist/schemas/waiver-templates.js +0 -7
  317. package/dist/schemas/waiver-templates.js.map +1 -1
  318. package/dist/sports/basketball-scoring.d.ts +0 -4
  319. package/dist/sports/basketball-scoring.d.ts.map +1 -1
  320. package/dist/sports/basketball-scoring.js +0 -34
  321. package/dist/sports/basketball-scoring.js.map +1 -1
  322. package/dist/sports/basketball.d.ts.map +1 -1
  323. package/dist/sports/basketball.js +0 -5
  324. package/dist/sports/basketball.js.map +1 -1
  325. package/dist/sports/bulk-entry.d.ts +0 -22
  326. package/dist/sports/bulk-entry.d.ts.map +1 -1
  327. package/dist/sports/bulk-entry.js +0 -10
  328. package/dist/sports/bulk-entry.js.map +1 -1
  329. package/dist/sports/column-catalog.d.ts +0 -17
  330. package/dist/sports/column-catalog.d.ts.map +1 -1
  331. package/dist/sports/column-catalog.js +0 -10
  332. package/dist/sports/column-catalog.js.map +1 -1
  333. package/dist/sports/contribution.d.ts +2 -59
  334. package/dist/sports/contribution.d.ts.map +1 -1
  335. package/dist/sports/contribution.js +2 -45
  336. package/dist/sports/contribution.js.map +1 -1
  337. package/dist/sports/curling-scoring.d.ts +0 -1
  338. package/dist/sports/curling-scoring.d.ts.map +1 -1
  339. package/dist/sports/curling-scoring.js +0 -27
  340. package/dist/sports/curling-scoring.js.map +1 -1
  341. package/dist/sports/curling.d.ts.map +1 -1
  342. package/dist/sports/curling.js +0 -4
  343. package/dist/sports/curling.js.map +1 -1
  344. package/dist/sports/finalized-record.d.ts +2 -19
  345. package/dist/sports/finalized-record.d.ts.map +1 -1
  346. package/dist/sports/finalized-record.js +21 -22
  347. package/dist/sports/finalized-record.js.map +1 -1
  348. package/dist/sports/football-scoring.d.ts.map +1 -1
  349. package/dist/sports/football-scoring.js +0 -21
  350. package/dist/sports/football-scoring.js.map +1 -1
  351. package/dist/sports/football.d.ts.map +1 -1
  352. package/dist/sports/football.js +0 -4
  353. package/dist/sports/football.js.map +1 -1
  354. package/dist/sports/index.d.ts.map +1 -1
  355. package/dist/sports/index.js +0 -2
  356. package/dist/sports/index.js.map +1 -1
  357. package/dist/sports/ledger-continuity.d.ts +0 -2
  358. package/dist/sports/ledger-continuity.d.ts.map +1 -1
  359. package/dist/sports/ledger-continuity.js +0 -5
  360. package/dist/sports/ledger-continuity.js.map +1 -1
  361. package/dist/sports/lifetime-summary.d.ts +0 -6
  362. package/dist/sports/lifetime-summary.d.ts.map +1 -1
  363. package/dist/sports/lifetime-summary.js +0 -7
  364. package/dist/sports/lifetime-summary.js.map +1 -1
  365. package/dist/sports/rankings.d.ts +0 -12
  366. package/dist/sports/rankings.d.ts.map +1 -1
  367. package/dist/sports/rankings.js +0 -15
  368. package/dist/sports/rankings.js.map +1 -1
  369. package/dist/sports/registry.d.ts +0 -10
  370. package/dist/sports/registry.d.ts.map +1 -1
  371. package/dist/sports/registry.js +0 -9
  372. package/dist/sports/registry.js.map +1 -1
  373. package/dist/sports/replay.d.ts +0 -11
  374. package/dist/sports/replay.d.ts.map +1 -1
  375. package/dist/sports/replay.js +0 -16
  376. package/dist/sports/replay.js.map +1 -1
  377. package/dist/sports/rollup-check.d.ts +0 -7
  378. package/dist/sports/rollup-check.d.ts.map +1 -1
  379. package/dist/sports/rollup-check.js +0 -14
  380. package/dist/sports/rollup-check.js.map +1 -1
  381. package/dist/sports/score-mirror.d.ts +0 -1
  382. package/dist/sports/score-mirror.d.ts.map +1 -1
  383. package/dist/sports/score-mirror.js +0 -4
  384. package/dist/sports/score-mirror.js.map +1 -1
  385. package/dist/sports/scoring-display.d.ts +0 -30
  386. package/dist/sports/scoring-display.d.ts.map +1 -1
  387. package/dist/sports/scoring-display.js +0 -9
  388. package/dist/sports/scoring-display.js.map +1 -1
  389. package/dist/sports/scoring.d.ts +0 -36
  390. package/dist/sports/scoring.d.ts.map +1 -1
  391. package/dist/sports/scoring.js +0 -10
  392. package/dist/sports/scoring.js.map +1 -1
  393. package/dist/sports/shared-columns.d.ts +0 -1
  394. package/dist/sports/shared-columns.d.ts.map +1 -1
  395. package/dist/sports/shared-columns.js +0 -7
  396. package/dist/sports/shared-columns.js.map +1 -1
  397. package/dist/sports/sport-adapter.d.ts +0 -32
  398. package/dist/sports/sport-adapter.d.ts.map +1 -1
  399. package/dist/sports/sport-adapter.js +0 -7
  400. package/dist/sports/sport-adapter.js.map +1 -1
  401. package/dist/sports/store-driver.d.ts +0 -28
  402. package/dist/sports/store-driver.d.ts.map +1 -1
  403. package/dist/sports/store-driver.js +0 -38
  404. package/dist/sports/store-driver.js.map +1 -1
  405. package/dist/types/audit.d.ts +1 -1
  406. package/dist/types/audit.d.ts.map +1 -1
  407. package/dist/types/audit.js +1 -67
  408. package/dist/types/audit.js.map +1 -1
  409. package/dist/types/claims.d.ts +0 -10
  410. package/dist/types/claims.d.ts.map +1 -1
  411. package/dist/types/claims.js +0 -16
  412. package/dist/types/claims.js.map +1 -1
  413. package/dist/types/notifications.d.ts.map +1 -1
  414. package/dist/types/notifications.js +7 -25
  415. package/dist/types/notifications.js.map +1 -1
  416. package/dist/types/picture-owners.d.ts +0 -1
  417. package/dist/types/picture-owners.d.ts.map +1 -1
  418. package/dist/types/picture-owners.js +0 -6
  419. package/dist/types/picture-owners.js.map +1 -1
  420. package/dist/types/schedules.d.ts.map +1 -1
  421. package/dist/types/schedules.js +0 -9
  422. package/dist/types/schedules.js.map +1 -1
  423. package/dist/types/sports.d.ts.map +1 -1
  424. package/dist/types/sports.js +0 -24
  425. package/dist/types/sports.js.map +1 -1
  426. package/dist/types/stats.d.ts.map +1 -1
  427. package/dist/types/stats.js +0 -65
  428. package/dist/types/stats.js.map +1 -1
  429. package/dist/types/unions.d.ts +0 -2
  430. package/dist/types/unions.d.ts.map +1 -1
  431. package/dist/types/unions.js +3 -91
  432. package/dist/types/unions.js.map +1 -1
  433. package/dist/types/uploads.d.ts.map +1 -1
  434. package/dist/types/uploads.js +0 -7
  435. package/dist/types/uploads.js.map +1 -1
  436. package/dist/upload-variables/on-progress.d.ts.map +1 -1
  437. package/dist/upload-variables/on-progress.js +2 -5
  438. package/dist/upload-variables/on-progress.js.map +1 -1
  439. package/dist/upload-variables/picture-upload-variables.d.ts +0 -1
  440. package/dist/upload-variables/picture-upload-variables.d.ts.map +1 -1
  441. package/dist/upload-variables/picture-upload-variables.js +0 -4
  442. package/dist/upload-variables/picture-upload-variables.js.map +1 -1
  443. package/dist/upload-variables/sign-hardware-contract-variables.d.ts.map +1 -1
  444. package/dist/upload-variables/sign-hardware-contract-variables.js +0 -2
  445. package/dist/upload-variables/sign-hardware-contract-variables.js.map +1 -1
  446. package/dist/upload-variables/sign-waiver-variables.d.ts.map +1 -1
  447. package/dist/upload-variables/sign-waiver-variables.js +0 -4
  448. package/dist/upload-variables/sign-waiver-variables.js.map +1 -1
  449. package/dist/utils/account-status.d.ts.map +1 -1
  450. package/dist/utils/account-status.js +0 -4
  451. package/dist/utils/account-status.js.map +1 -1
  452. package/dist/utils/app-config.d.ts +0 -53
  453. package/dist/utils/app-config.d.ts.map +1 -1
  454. package/dist/utils/app-config.js +0 -62
  455. package/dist/utils/app-config.js.map +1 -1
  456. package/dist/utils/display-name.d.ts +0 -7
  457. package/dist/utils/display-name.d.ts.map +1 -1
  458. package/dist/utils/display-name.js +0 -8
  459. package/dist/utils/display-name.js.map +1 -1
  460. package/dist/utils/index.d.ts +1 -0
  461. package/dist/utils/index.d.ts.map +1 -1
  462. package/dist/utils/index.js +1 -0
  463. package/dist/utils/index.js.map +1 -1
  464. package/dist/utils/league-calendar.d.ts +0 -11
  465. package/dist/utils/league-calendar.d.ts.map +1 -1
  466. package/dist/utils/league-calendar.js +7 -19
  467. package/dist/utils/league-calendar.js.map +1 -1
  468. package/dist/utils/league-join-warning.d.ts +0 -11
  469. package/dist/utils/league-join-warning.d.ts.map +1 -1
  470. package/dist/utils/league-join-warning.js +0 -28
  471. package/dist/utils/league-join-warning.js.map +1 -1
  472. package/dist/utils/league-joining.d.ts +0 -1
  473. package/dist/utils/league-joining.d.ts.map +1 -1
  474. package/dist/utils/league-joining.js +0 -7
  475. package/dist/utils/league-joining.js.map +1 -1
  476. package/dist/utils/league-mode.d.ts +0 -1
  477. package/dist/utils/league-mode.d.ts.map +1 -1
  478. package/dist/utils/league-mode.js +0 -4
  479. package/dist/utils/league-mode.js.map +1 -1
  480. package/dist/utils/schedules.d.ts +0 -15
  481. package/dist/utils/schedules.d.ts.map +1 -1
  482. package/dist/utils/schedules.js +0 -19
  483. package/dist/utils/schedules.js.map +1 -1
  484. package/dist/utils/stats-operation-request.d.ts +20 -0
  485. package/dist/utils/stats-operation-request.d.ts.map +1 -0
  486. package/dist/utils/stats-operation-request.js +10 -0
  487. package/dist/utils/stats-operation-request.js.map +1 -0
  488. package/dist/utils/team-creation.d.ts +0 -2
  489. package/dist/utils/team-creation.d.ts.map +1 -1
  490. package/dist/utils/team-creation.js +0 -6
  491. package/dist/utils/team-creation.js.map +1 -1
  492. package/dist/utils/team-member-actions.d.ts +0 -6
  493. package/dist/utils/team-member-actions.d.ts.map +1 -1
  494. package/dist/utils/team-member-actions.js +0 -12
  495. package/dist/utils/team-member-actions.js.map +1 -1
  496. package/package.json +2 -1
@@ -1,9 +1,3 @@
1
- // The migration console's recorded state — admin read, written only by the console's callables.
2
- //
3
- // `_serverData/migrationConsole` holds the cutover marker and the lock: one action runs at a time, and
4
- // whether the destinations are still the migration's is recorded here, never taken from the
5
- // operator. `migrationActionRuns/{actionId}` holds each step's latest real run — the one its
6
- // dependents read — its latest preview, and, for a recorded step, what was recorded.
7
1
  import { z } from 'zod';
8
2
  import { MIGRATION_EVIDENCE_INPUT_FORMAT } from '../input-formats/input-formats.js';
9
3
  import { MIGRATION_ACTION_ID_KEYS } from '../migration-console/action-ids.js';
@@ -11,23 +5,15 @@ import { MAX_MIGRATION_FINDING_TEXT_LENGTH, MAX_MIGRATION_RUN_FINDINGS, MIGRATIO
11
5
  import { countSchema, documentIdSegmentSchema, epochMsSchema, repairReasonSchema, statsOperationIdSchema, textFieldSchema, userIdSchema, } from './atoms.js';
12
6
  export const migrationActionIdSchema = z.enum(MIGRATION_ACTION_ID_KEYS);
13
7
  export const migrationDestinationStateSchema = z.enum(MIGRATION_DESTINATION_STATE_KEYS);
14
- /** One logical run of an action, minted by the admin's browser when the admin starts it. */
15
8
  export const migrationOperationIdSchema = documentIdSegmentSchema;
16
- /** What the operator records as proof of a step the console cannot see done. */
17
9
  export const migrationEvidenceSchema = textFieldSchema(MIGRATION_EVIDENCE_INPUT_FORMAT);
18
10
  const findingText = z.string().max(MAX_MIGRATION_FINDING_TEXT_LENGTH);
19
- /**
20
- * One document an action reported: skipped by a copy, missing or mismatched in a verification, or
21
- * named by one of an action's own report lists (a merged pair, a created roster entry, a ghost's
22
- * disposition) — `category` names which.
23
- */
24
11
  export const MigrationFindingSchema = z.strictObject({
25
12
  category: z.string().min(1).max(64),
26
13
  id: findingText,
27
14
  field: findingText,
28
15
  reason: findingText,
29
16
  });
30
- /** A run's totals across its pages. A write action fills the first three, a verification the next three. */
31
17
  export const MigrationRunCountsSchema = z.strictObject({
32
18
  read: countSchema,
33
19
  written: countSchema,
@@ -43,53 +29,35 @@ export const MigrationRunRecordSchema = z.strictObject({
43
29
  startedByUserId: userIdSchema,
44
30
  startedAt: epochMsSchema,
45
31
  updatedAt: epochMsSchema,
46
- // Set with `complete`: the moment the run reached its end.
47
32
  completedAt: epochMsSchema.optional(),
48
33
  status: z.enum(MIGRATION_RUN_STATUS_KEYS),
49
34
  pages: countSchema,
50
- // The resume key of the next page, or null once the run reached its end.
51
35
  nextResumeAfter: z.string().min(1).nullable(),
52
36
  counts: MigrationRunCountsSchema,
53
- // An action's own counters beyond the shared ones — merged pairs, corrections by field, kept
54
- // ghosts by disposition — summed across pages.
55
37
  details: z.record(z.string().min(1), countSchema),
56
38
  findings: z.array(MigrationFindingSchema).max(MAX_MIGRATION_RUN_FINDINGS),
57
- // Findings met past the kept ones; each page's answer carried them in full.
58
39
  findingsNotKept: countSchema,
59
- // A verification run declared, at its start, that its source is empty.
60
40
  expectEmptySource: z.boolean(),
61
- // A `verify.v1Pictures` run acknowledged, at its start, the sources it cannot examine.
62
41
  acknowledgeUnexaminedSources: z.boolean().optional(),
63
- // Why a stopped run stopped: the refusal its core gave.
64
42
  stoppedReason: findingText.optional(),
65
43
  });
66
- /** A product control's run, an operator checkpoint, or the cutover, as recorded. */
67
44
  export const MigrationStepRecordSchema = z.strictObject({
68
45
  recordedAt: epochMsSchema,
69
46
  recordedByUserId: userIdSchema,
70
- // A product control's runs, whose evidence the console checked.
71
47
  operationIds: z.array(statsOperationIdSchema).optional(),
72
- // An operator checkpoint's evidence, or a recorded step's reason.
73
48
  evidence: migrationEvidenceSchema,
74
49
  });
75
50
  export const MigrationActionRunSchema = z.strictObject({
76
51
  actionId: migrationActionIdSchema,
77
- // The latest real run: what every dependent and every gate reads.
78
52
  run: MigrationRunRecordSchema.optional(),
79
- // The latest dry run, kept apart so a preview never stands in for a run.
80
53
  preview: MigrationRunRecordSchema.optional(),
81
54
  recorded: MigrationStepRecordSchema.optional(),
82
55
  });
83
- /** The one action holding the console, until its lease runs out. */
84
56
  export const MigrationConsoleLockSchema = z.strictObject({
85
57
  actionId: migrationActionIdSchema,
86
58
  operationId: migrationOperationIdSchema,
87
59
  heldByUserId: userIdSchema,
88
60
  expiresAt: epochMsSchema,
89
- // Present while one page of the run is in flight: the moment its claim was stamped, and that
90
- // page's fencing token. Only the page holding this exact token records its result or releases the
91
- // lock; any other page, the same run's included, is refused while it stands. A lock stored
92
- // without one has no page in flight.
93
61
  pageClaimedAt: epochMsSchema.optional(),
94
62
  });
95
63
  export const MigrationConsoleSchema = z.strictObject({
@@ -1 +1 @@
1
- {"version":3,"file":"migration-console.js","sourceRoot":"","sources":["../../src/doc-schemas/migration-console.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,EAAE;AACF,uGAAuG;AACvG,4FAA4F;AAC5F,6FAA6F;AAC7F,qFAAqF;AAErF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EACL,iCAAiC,EACjC,0BAA0B,EAC1B,gCAAgC,EAChC,yBAAyB,GAC1B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,WAAW,EACX,uBAAuB,EACvB,aAAa,EACb,kBAAkB,EAClB,sBAAsB,EACtB,eAAe,EACf,YAAY,GACb,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;AACxE,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,IAAI,CAAC,gCAAgC,CAAC,CAAC;AACxF,4FAA4F;AAC5F,MAAM,CAAC,MAAM,0BAA0B,GAAG,uBAAuB,CAAC;AAClE,gFAAgF;A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rC,aAAa,EAAE,aAAa,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,gBAAgB,EAAE,+BAA+B;IACjD,iBAAiB,EAAE,aAAa,CAAC,QAAQ,EAAE;IAC3C,uBAAuB,EAAE,YAAY,CAAC,QAAQ,EAAE;IAChD,IAAI,EAAE,0BAA0B,CAAC,QAAQ,EAAE;IAC3C,SAAS,EAAE,aAAa;CACzB,CAAC,CAAC","sourcesContent":["// The migration console's recorded state — admin read, written only by the console's callables.\n//\n// `_serverData/migrationConsole` holds the cutover marker and the lock: one action runs at a time, and\n// whether the destinations are still the migration's is recorded here, never taken from the\n// operator. `migrationActionRuns/{actionId}` holds each step's latest real run — the one its\n// dependents read — its latest preview, and, for a recorded step, what was recorded.\n\nimport { z } from 'zod';\nimport { MIGRATION_EVIDENCE_INPUT_FORMAT } from '../input-formats/input-formats.js';\nimport { MIGRATION_ACTION_ID_KEYS } from '../migration-console/action-ids.js';\nimport {\n MAX_MIGRATION_FINDING_TEXT_LENGTH,\n MAX_MIGRATION_RUN_FINDINGS,\n MIGRATION_DESTINATION_STATE_KEYS,\n MIGRATION_RUN_STATUS_KEYS,\n} from '../migration-console/run-state.js';\nimport {\n countSchema,\n documentIdSegmentSchema,\n epochMsSchema,\n repairReasonSchema,\n statsOperationIdSchema,\n textFieldSchema,\n userIdSchema,\n} from './atoms.js';\n\nexport const migrationActionIdSchema = z.enum(MIGRATION_ACTION_ID_KEYS);\nexport const migrationDestinationStateSchema = z.enum(MIGRATION_DESTINATION_STATE_KEYS);\n/** One logical run of an action, minted by the admin's browser when the admin starts it. */\nexport const migrationOperationIdSchema = documentIdSegmentSchema;\n/** What the operator records as proof of a step the console cannot see done. */\nexport const migrationEvidenceSchema = textFieldSchema(MIGRATION_EVIDENCE_INPUT_FORMAT);\n\nconst findingText = z.string().max(MAX_MIGRATION_FINDING_TEXT_LENGTH);\n\n/**\n * One document an action reported: skipped by a copy, missing or mismatched in a verification, or\n * named by one of an action's own report lists (a merged pair, a created roster entry, a ghost's\n * disposition) — `category` names which.\n */\nexport const MigrationFindingSchema = z.strictObject({\n category: z.string().min(1).max(64),\n id: findingText,\n field: findingText,\n reason: findingText,\n});\nexport type MigrationFinding = z.infer<typeof MigrationFindingSchema>;\n\n/** A run's totals across its pages. A write action fills the first three, a verification the next three. */\nexport const MigrationRunCountsSchema = z.strictObject({\n read: countSchema,\n written: countSchema,\n skipped: countSchema,\n checked: countSchema,\n missing: countSchema,\n mismatched: countSchema,\n});\nexport type MigrationRunCounts = z.infer<typeof MigrationRunCountsSchema>;\n\nexport const MigrationRunRecordSchema = z.strictObject({\n operationId: migrationOperationIdSchema,\n dryRun: z.boolean(),\n reason: repairReasonSchema,\n startedByUserId: userIdSchema,\n startedAt: epochMsSchema,\n updatedAt: epochMsSchema,\n // Set with `complete`: the moment the run reached its end.\n completedAt: epochMsSchema.optional(),\n status: z.enum(MIGRATION_RUN_STATUS_KEYS),\n pages: countSchema,\n // The resume key of the next page, or null once the run reached its end.\n nextResumeAfter: z.string().min(1).nullable(),\n counts: MigrationRunCountsSchema,\n // An action's own counters beyond the shared ones — merged pairs, corrections by field, kept\n // ghosts by disposition — summed across pages.\n details: z.record(z.string().min(1), countSchema),\n findings: z.array(MigrationFindingSchema).max(MAX_MIGRATION_RUN_FINDINGS),\n // Findings met past the kept ones; each page's answer carried them in full.\n findingsNotKept: countSchema,\n // A verification run declared, at its start, that its source is empty.\n expectEmptySource: z.boolean(),\n // A `verify.v1Pictures` run acknowledged, at its start, the sources it cannot examine.\n acknowledgeUnexaminedSources: z.boolean().optional(),\n // Why a stopped run stopped: the refusal its core gave.\n stoppedReason: findingText.optional(),\n});\nexport type MigrationRunRecord = z.infer<typeof MigrationRunRecordSchema>;\n\n/** A product control's run, an operator checkpoint, or the cutover, as recorded. */\nexport const MigrationStepRecordSchema = z.strictObject({\n recordedAt: epochMsSchema,\n recordedByUserId: userIdSchema,\n // A product control's runs, whose evidence the console checked.\n operationIds: z.array(statsOperationIdSchema).optional(),\n // An operator checkpoint's evidence, or a recorded step's reason.\n evidence: migrationEvidenceSchema,\n});\nexport type MigrationStepRecord = z.infer<typeof MigrationStepRecordSchema>;\n\nexport const MigrationActionRunSchema = z.strictObject({\n actionId: migrationActionIdSchema,\n // The latest real run: what every dependent and every gate reads.\n run: MigrationRunRecordSchema.optional(),\n // The latest dry run, kept apart so a preview never stands in for a run.\n preview: MigrationRunRecordSchema.optional(),\n recorded: MigrationStepRecordSchema.optional(),\n});\nexport type MigrationActionRun = z.infer<typeof MigrationActionRunSchema>;\n\n/** The one action holding the console, until its lease runs out. */\nexport const MigrationConsoleLockSchema = z.strictObject({\n actionId: migrationActionIdSchema,\n operationId: migrationOperationIdSchema,\n heldByUserId: userIdSchema,\n expiresAt: epochMsSchema,\n // Present while one page of the run is in flight: the moment its claim was stamped, and that\n // page's fencing token. Only the page holding this exact token records its result or releases the\n // lock; any other page, the same run's included, is refused while it stands. A lock stored\n // without one has no page in flight.\n pageClaimedAt: epochMsSchema.optional(),\n});\nexport type MigrationConsoleLock = z.infer<typeof MigrationConsoleLockSchema>;\n\nexport const MigrationConsoleSchema = z.strictObject({\n destinationState: migrationDestinationStateSchema,\n cutoverRecordedAt: epochMsSchema.optional(),\n cutoverRecordedByUserId: userIdSchema.optional(),\n lock: MigrationConsoleLockSchema.nullable(),\n updatedAt: epochMsSchema,\n});\nexport type MigrationConsole = z.infer<typeof MigrationConsoleSchema>;\n"]}
1
+ {"version":3,"file":"migration-console.js","sourceRoot":"","sources":["../../src/doc-schemas/migration-console.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EACL,iCAAiC,EACjC,0BAA0B,EAC1B,g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Q,EAAE,uBAAuB;IACjC,WAAW,EAAE,0BAA0B;IACvC,YAAY,EAAE,YAAY;IAC1B,SAAS,EAAE,aAAa;IACxB,aAAa,EAAE,aAAa,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,YAAY,CAAC;IACnD,gBAAgB,EAAE,+BAA+B;IACjD,iBAAiB,EAAE,aAAa,CAAC,QAAQ,EAAE;IAC3C,uBAAuB,EAAE,YAAY,CAAC,QAAQ,EAAE;IAChD,IAAI,EAAE,0BAA0B,CAAC,QAAQ,EAAE;IAC3C,SAAS,EAAE,aAAa;CACzB,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { MIGRATION_EVIDENCE_INPUT_FORMAT } from '../input-formats/input-formats.js';\nimport { MIGRATION_ACTION_ID_KEYS } from '../migration-console/action-ids.js';\nimport {\n MAX_MIGRATION_FINDING_TEXT_LENGTH,\n MAX_MIGRATION_RUN_FINDINGS,\n MIGRATION_DESTINATION_STATE_KEYS,\n MIGRATION_RUN_STATUS_KEYS,\n} from '../migration-console/run-state.js';\nimport {\n countSchema,\n documentIdSegmentSchema,\n epochMsSchema,\n repairReasonSchema,\n statsOperationIdSchema,\n textFieldSchema,\n userIdSchema,\n} from './atoms.js';\n\nexport const migrationActionIdSchema = z.enum(MIGRATION_ACTION_ID_KEYS);\nexport const migrationDestinationStateSchema = z.enum(MIGRATION_DESTINATION_STATE_KEYS);\nexport const migrationOperationIdSchema = documentIdSegmentSchema;\nexport const migrationEvidenceSchema = textFieldSchema(MIGRATION_EVIDENCE_INPUT_FORMAT);\n\nconst findingText = z.string().max(MAX_MIGRATION_FINDING_TEXT_LENGTH);\n\nexport const MigrationFindingSchema = z.strictObject({\n category: z.string().min(1).max(64),\n id: findingText,\n field: findingText,\n reason: findingText,\n});\nexport type MigrationFinding = z.infer<typeof MigrationFindingSchema>;\n\nexport const MigrationRunCountsSchema = z.strictObject({\n read: countSchema,\n written: countSchema,\n skipped: countSchema,\n checked: countSchema,\n missing: countSchema,\n mismatched: countSchema,\n});\nexport type MigrationRunCounts = z.infer<typeof MigrationRunCountsSchema>;\n\nexport const MigrationRunRecordSchema = z.strictObject({\n operationId: migrationOperationIdSchema,\n dryRun: z.boolean(),\n reason: repairReasonSchema,\n startedByUserId: userIdSchema,\n startedAt: epochMsSchema,\n updatedAt: epochMsSchema,\n completedAt: epochMsSchema.optional(),\n status: z.enum(MIGRATION_RUN_STATUS_KEYS),\n pages: countSchema,\n nextResumeAfter: z.string().min(1).nullable(),\n counts: MigrationRunCountsSchema,\n details: z.record(z.string().min(1), countSchema),\n findings: z.array(MigrationFindingSchema).max(MAX_MIGRATION_RUN_FINDINGS),\n findingsNotKept: countSchema,\n expectEmptySource: z.boolean(),\n acknowledgeUnexaminedSources: z.boolean().optional(),\n stoppedReason: findingText.optional(),\n});\nexport type MigrationRunRecord = z.infer<typeof MigrationRunRecordSchema>;\n\nexport const MigrationStepRecordSchema = z.strictObject({\n recordedAt: epochMsSchema,\n recordedByUserId: userIdSchema,\n operationIds: z.array(statsOperationIdSchema).optional(),\n evidence: migrationEvidenceSchema,\n});\nexport type MigrationStepRecord = z.infer<typeof MigrationStepRecordSchema>;\n\nexport const MigrationActionRunSchema = z.strictObject({\n actionId: migrationActionIdSchema,\n run: MigrationRunRecordSchema.optional(),\n preview: MigrationRunRecordSchema.optional(),\n recorded: MigrationStepRecordSchema.optional(),\n});\nexport type MigrationActionRun = z.infer<typeof MigrationActionRunSchema>;\n\nexport const MigrationConsoleLockSchema = z.strictObject({\n actionId: migrationActionIdSchema,\n operationId: migrationOperationIdSchema,\n heldByUserId: userIdSchema,\n expiresAt: epochMsSchema,\n pageClaimedAt: epochMsSchema.optional(),\n});\nexport type MigrationConsoleLock = z.infer<typeof MigrationConsoleLockSchema>;\n\nexport const MigrationConsoleSchema = z.strictObject({\n destinationState: migrationDestinationStateSchema,\n cutoverRecordedAt: epochMsSchema.optional(),\n cutoverRecordedByUserId: userIdSchema.optional(),\n lock: MigrationConsoleLockSchema.nullable(),\n updatedAt: epochMsSchema,\n});\nexport type MigrationConsole = z.infer<typeof MigrationConsoleSchema>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"pending-media.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/pending-media.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,gBAAgB;;;;;;;;EAA2B,CAAC;AACzD,eAAO,MAAM,mBAAmB;;;;;;EAA8B,CAAC;AAI/D,eAAO,MAAM,sBAAsB;;;kBAExB,CAAC;AACZ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAGtE,eAAO,MAAM,qBAAqB;;;;;;;;;kBAEvB,CAAC;AACZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;kBAyBjC,CAAC;AACL,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAO1E,eAAO,MAAM,+BAA+B;;;;;;;EAA0C,CAAC;AACvF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAmC,CA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C"}
@@ -1,41 +1,29 @@
1
- // `pendingMedia/{pendingMediaId}` — one accepted picture upload: the durable hand-off from the
2
- // accepting callable to the processing trigger. Its id is the upload's staging id, which is also
3
- // the picture's id; rows are never deleted, so no two uploads ever share an id.
4
- //
5
- // The shape is media-schemas' generic pending-media lifecycle composed with Q-Sports' origins and
6
- // domain events. Every field is written by the server: `originalFileName` and `clientContext`,
7
- // which the generic shape requires, hold the staging id and the origin, so no client-authored
8
- // metadata reaches the row. `targetInfo` is the server-normalized `PendingMediaTarget`.
9
1
  import { z } from 'zod';
10
2
  import { createPendingMediaSchemas } from '@ttt-productions/media-schemas';
11
3
  import { DomainEventSchema } from '../domain-events/domain-events.js';
12
4
  import { FILE_ORIGIN_KEYS, PICTURE_ORIGIN_KEYS } from '../media/file-origins.js';
13
5
  import { AWARD_DEFINITION_OWNER_KIND } from '../types/picture-owners.js';
14
- import { countSchema } from './atoms.js';
6
+ import { isPictureOwnerId } from '../paths/picture-owner-paths.js';
7
+ import { countSchema, documentIdSegmentSchema } from './atoms.js';
15
8
  import { awardNameSchema } from './catalogs.js';
16
9
  import { pictureOwnerKindSchema } from './gallery.js';
17
10
  export const fileOriginSchema = z.enum(FILE_ORIGIN_KEYS);
18
11
  export const pictureOriginSchema = z.enum(PICTURE_ORIGIN_KEYS);
19
- // A stored object, by bucket and path — never a URL. A retained signature is recorded this way, and
20
- // so is the source a carried picture was read from.
21
12
  export const StorageObjectRefSchema = z
22
13
  .object({ bucket: z.string().min(1), path: z.string().min(1) })
23
14
  .strict();
24
- // The document a picture belongs to. A landing page picture's owner id is `SPECIAL_DOCS.LANDING_PAGE`.
25
15
  export const PictureOwnerRefSchema = z
26
- .object({ kind: pictureOwnerKindSchema, id: z.string().min(1) })
27
- .strict();
16
+ .object({ kind: pictureOwnerKindSchema, id: documentIdSegmentSchema })
17
+ .strict()
18
+ .refine((owner) => isPictureOwnerId(owner.kind, owner.id), {
19
+ message: 'Not an owner of that kind.',
20
+ path: ['id'],
21
+ });
28
22
  export const PendingMediaTargetSchema = z
29
23
  .object({
30
24
  owner: PictureOwnerRefSchema,
31
- // The object a carried picture was read from. Written only by the migration console's picture
32
- // carry, never from a callable's input; a carried picture fills only an empty slot.
33
25
  carriedFrom: StorageObjectRefSchema.optional(),
34
- // A carried picture's position in its V1 source list, so the carried gallery keeps V1's order
35
- // and V1's first image stays the featured one. Only beside `carriedFrom`.
36
26
  sourceIndex: countSchema.optional(),
37
- // A badge upload that creates its award: the award's name, which the publication writes with
38
- // the award. The owner's id is then the upload's staging id.
39
27
  newAwardName: awardNameSchema.optional(),
40
28
  })
41
29
  .strict()
@@ -1 +1 @@
1
- {"version":3,"file":"pending-media.js","sourceRoot":"","sources":["../../src/doc-schemas/pending-media.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,iGAAiG;AACjG,gFAAgF;AAChF,EAAE;AACF,kGAAkG;AAClG,+FAA+F;AAC/F,8FAA8F;AAC9F,wFAAwF;AAExF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAE/D,oGAAoG;AACpG,oDAAoD;AACpD,MAAM,CAAC,MAA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AAgB;IAChB,iBAAiB,EAAE,iBAAiB;CACrC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,OAAO,CAAC,+BAA+B,CAAC;AACvF,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC;AACzE,MAAM,CAAC,MAAM,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC;AAC3E,MAAM,CAAC,MAAM,4BAA4B,GAAG,OAAO,CAAC,4BAA4B,CAAC;AACjF,MAAM,CAAC,MAAM,2BAA2B,GAAG,OAAO,CAAC,2BAA2B,CAAC;AAC/E,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC;AACzE,MAAM,CAAC,MAAM,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC","sourcesContent":["// `pendingMedia/{pendingMediaId}` — one accepted picture upload: the durable hand-off from the\n// accepting callable to the processing trigger. Its id is the upload's staging id, which is also\n// the picture's id; rows are never deleted, so no two uploads ever share an id.\n//\n// The shape is media-schemas' generic pending-media lifecycle composed with Q-Sports' origins and\n// domain events. Every field is written by the server: `originalFileName` and `clientContext`,\n// which the generic shape requires, hold the staging id and the origin, so no client-authored\n// metadata reaches the row. `targetInfo` is the server-normalized `PendingMediaTarget`.\n\nimport { z } from 'zod';\nimport { createPendingMediaSchemas } from '@ttt-productions/media-schemas';\nimport { DomainEventSchema } from '../domain-events/domain-events.js';\nimport { FILE_ORIGIN_KEYS, PICTURE_ORIGIN_KEYS } from '../media/file-origins.js';\nimport { AWARD_DEFINITION_OWNER_KIND } from '../types/picture-owners.js';\nimport { countSchema } from './atoms.js';\nimport { awardNameSchema } from './catalogs.js';\nimport { pictureOwnerKindSchema } from './gallery.js';\n\nexport const fileOriginSchema = z.enum(FILE_ORIGIN_KEYS);\nexport const pictureOriginSchema = z.enum(PICTURE_ORIGIN_KEYS);\n\n// A stored object, by bucket and path — never a URL. A retained signature is recorded this way, and\n// so is the source a carried picture was read from.\nexport const StorageObjectRefSchema = z\n .object({ bucket: z.string().min(1), path: z.string().min(1) })\n .strict();\nexport type StorageObjectRef = z.infer<typeof StorageObjectRefSchema>;\n\n// The document a picture belongs to. A landing page picture's owner id is `SPECIAL_DOCS.LANDING_PAGE`.\nexport const PictureOwnerRefSchema = z\n .object({ kind: pictureOwnerKindSchema, id: z.string().min(1) })\n .strict();\nexport type PictureOwnerRef = z.infer<typeof PictureOwnerRefSchema>;\n\nexport const PendingMediaTargetSchema = z\n .object({\n owner: PictureOwnerRefSchema,\n // The object a carried picture was read from. Written only by the migration console's picture\n // carry, never from a callable's input; a carried picture fills only an empty slot.\n carriedFrom: StorageObjectRefSchema.optional(),\n // A carried picture's position in its V1 source list, so the carried gallery keeps V1's order\n // and V1's first image stays the featured one. Only beside `carriedFrom`.\n sourceIndex: countSchema.optional(),\n // A badge upload that creates its award: the award's name, which the publication writes with\n // the award. The owner's id is then the upload's staging id.\n newAwardName: awardNameSchema.optional(),\n })\n .strict()\n .refine(\n (target) =>\n target.newAwardName === undefined || target.owner.kind === AWARD_DEFINITION_OWNER_KIND,\n {\n message: 'Only a badge upload creates an award.',\n path: ['newAwardName'],\n },\n )\n .refine((target) => target.sourceIndex === undefined || target.carriedFrom !== undefined, {\n message: 'Only a carried picture has a source position.',\n path: ['sourceIndex'],\n });\nexport type PendingMediaTarget = z.infer<typeof PendingMediaTargetSchema>;\n\nconst schemas = createPendingMediaSchemas({\n fileOriginSchema,\n domainEventSchema: DomainEventSchema,\n});\n\nexport const PendingMediaErrorCategorySchema = schemas.PendingMediaErrorCategorySchema;\nexport const PendingMediaResultSchema = schemas.PendingMediaResultSchema;\nexport const PendingMediaPendingSchema = schemas.PendingMediaPendingSchema;\nexport const PendingMediaProcessingSchema = schemas.PendingMediaProcessingSchema;\nexport const PendingMediaCompletedSchema = schemas.PendingMediaCompletedSchema;\nexport const PendingMediaFailedSchema = schemas.PendingMediaFailedSchema;\nexport const PendingMediaRejectedSchema = schemas.PendingMediaRejectedSchema;\nexport const PendingMediaSchema = schemas.PendingMediaSchema;\n\nexport type PendingMediaErrorCategory = z.infer<typeof PendingMediaErrorCategorySchema>;\nexport type PendingMediaResult = z.infer<typeof PendingMediaResultSchema>;\nexport type PendingMediaPending = z.infer<typeof PendingMediaPendingSchema>;\nexport type PendingMediaProcessing = z.infer<typeof PendingMediaProcessingSchema>;\nexport type PendingMediaCompleted = z.infer<typeof PendingMediaCompletedSchema>;\nexport type PendingMediaFailed = z.infer<typeof PendingMediaFailedSchema>;\nexport type PendingMediaRejected = z.infer<typeof PendingMediaRejectedSchema>;\nexport type PendingMedia = z.infer<typeof PendingMediaSchema>;\n"]}
1
+ {"version":3,"file":"pending-media.js","sourceRoot":"","sources":["../../src/doc-schemas/pending-media.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAE/D,MAAM,CAAC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AM,OAAO,GAAG,yBAAyB,CAAC;IACxC,gBAAgB;IAChB,iBAAiB,EAAE,iBAAiB;CACrC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,OAAO,CAAC,+BAA+B,CAAC;AACvF,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC;AACzE,MAAM,CAAC,MAAM,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAC;AAC3E,MAAM,CAAC,MAAM,4BAA4B,GAAG,OAAO,CAAC,4BAA4B,CAAC;AACjF,MAAM,CAAC,MAAM,2BAA2B,GAAG,OAAO,CAAC,2BAA2B,CAAC;AAC/E,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC;AACzE,MAAM,CAAC,MAAM,0BAA0B,GAAG,OAAO,CAAC,0BAA0B,CAAC;AAC7E,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC","sourcesContent":["import { z } from 'zod';\nimport { createPendingMediaSchemas } from '@ttt-productions/media-schemas';\nimport { DomainEventSchema } from '../domain-events/domain-events.js';\nimport { FILE_ORIGIN_KEYS, PICTURE_ORIGIN_KEYS } from '../media/file-origins.js';\nimport { AWARD_DEFINITION_OWNER_KIND } from '../types/picture-owners.js';\nimport { isPictureOwnerId } from '../paths/picture-owner-paths.js';\nimport { countSchema, documentIdSegmentSchema } from './atoms.js';\nimport { awardNameSchema } from './catalogs.js';\nimport { pictureOwnerKindSchema } from './gallery.js';\n\nexport const fileOriginSchema = z.enum(FILE_ORIGIN_KEYS);\nexport const pictureOriginSchema = z.enum(PICTURE_ORIGIN_KEYS);\n\nexport const StorageObjectRefSchema = z\n .object({ bucket: z.string().min(1), path: z.string().min(1) })\n .strict();\nexport type StorageObjectRef = z.infer<typeof StorageObjectRefSchema>;\n\nexport const PictureOwnerRefSchema = z\n .object({ kind: pictureOwnerKindSchema, id: documentIdSegmentSchema })\n .strict()\n .refine((owner) => isPictureOwnerId(owner.kind, owner.id), {\n message: 'Not an owner of that kind.',\n path: ['id'],\n });\nexport type PictureOwnerRef = z.infer<typeof PictureOwnerRefSchema>;\n\nexport const PendingMediaTargetSchema = z\n .object({\n owner: PictureOwnerRefSchema,\n carriedFrom: StorageObjectRefSchema.optional(),\n sourceIndex: countSchema.optional(),\n newAwardName: awardNameSchema.optional(),\n })\n .strict()\n .refine(\n (target) =>\n target.newAwardName === undefined || target.owner.kind === AWARD_DEFINITION_OWNER_KIND,\n {\n message: 'Only a badge upload creates an award.',\n path: ['newAwardName'],\n },\n )\n .refine((target) => target.sourceIndex === undefined || target.carriedFrom !== undefined, {\n message: 'Only a carried picture has a source position.',\n path: ['sourceIndex'],\n });\nexport type PendingMediaTarget = z.infer<typeof PendingMediaTargetSchema>;\n\nconst schemas = createPendingMediaSchemas({\n fileOriginSchema,\n domainEventSchema: DomainEventSchema,\n});\n\nexport const PendingMediaErrorCategorySchema = schemas.PendingMediaErrorCategorySchema;\nexport const PendingMediaResultSchema = schemas.PendingMediaResultSchema;\nexport const PendingMediaPendingSchema = schemas.PendingMediaPendingSchema;\nexport const PendingMediaProcessingSchema = schemas.PendingMediaProcessingSchema;\nexport const PendingMediaCompletedSchema = schemas.PendingMediaCompletedSchema;\nexport const PendingMediaFailedSchema = schemas.PendingMediaFailedSchema;\nexport const PendingMediaRejectedSchema = schemas.PendingMediaRejectedSchema;\nexport const PendingMediaSchema = schemas.PendingMediaSchema;\n\nexport type PendingMediaErrorCategory = z.infer<typeof PendingMediaErrorCategorySchema>;\nexport type PendingMediaResult = z.infer<typeof PendingMediaResultSchema>;\nexport type PendingMediaPending = z.infer<typeof PendingMediaPendingSchema>;\nexport type PendingMediaProcessing = z.infer<typeof PendingMediaProcessingSchema>;\nexport type PendingMediaCompleted = z.infer<typeof PendingMediaCompletedSchema>;\nexport type PendingMediaFailed = z.infer<typeof PendingMediaFailedSchema>;\nexport type PendingMediaRejected = z.infer<typeof PendingMediaRejectedSchema>;\nexport type PendingMedia = z.infer<typeof PendingMediaSchema>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"picture-retirement.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/picture-retirement.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,6BAA6B;;;;;;EAAyC,CAAC;AAEpF,eAAO,MAAM,6BAA6B;;;;;;;;;;;4BAWxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;iBAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
1
+ {"version":3,"file":"picture-retirement.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/picture-retirement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,6BAA6B;;;;;;EAAyC,CAAC;AAEpF,eAAO,MAAM,6BAA6B;;;;;;;;;;;4BAaxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;iBAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -1,27 +1,22 @@
1
- // `pictureRetirements/{retirementId}` — the durable obligation to delete picture files. No client
2
- // access.
3
- //
4
- // It is written in the same transaction that drops a picture's last reference, fails its upload, or
5
- // deletes its owner, and the media maintenance sweep carries it out and then deletes the row.
6
- // Retirement is the only way files under the picture prefix are deleted, and the only way a deleted
7
- // owner's gallery documents go: a picture target's id is the picture id, and a gallery target's is
8
- // `buildGalleryRetirementId(ownerKind, ownerId)`.
9
1
  import { z } from 'zod';
10
2
  import { PICTURE_RETIREMENT_REASON_KEYS } from '../types/uploads.js';
11
- import { epochMsSchema } from './atoms.js';
3
+ import { isPictureOwnerId } from '../paths/picture-owner-paths.js';
4
+ import { documentIdSegmentSchema, epochMsSchema } from './atoms.js';
12
5
  import { galleryOwnerKindSchema, pictureIdSchema } from './gallery.js';
13
6
  export const pictureRetirementReasonSchema = z.enum(PICTURE_RETIREMENT_REASON_KEYS);
14
7
  export const PictureRetirementTargetSchema = z.discriminatedUnion('kind', [
15
- // One picture: its three stored sizes.
16
8
  z.object({ kind: z.literal('picture'), pictureId: pictureIdSchema }).strict(),
17
- // A deleted owner's whole gallery: every one of its gallery documents and their sizes.
18
9
  z
19
10
  .object({
20
11
  kind: z.literal('gallery'),
21
12
  ownerKind: galleryOwnerKindSchema,
22
- ownerId: z.string().min(1),
13
+ ownerId: documentIdSegmentSchema,
23
14
  })
24
- .strict(),
15
+ .strict()
16
+ .refine((target) => isPictureOwnerId(target.ownerKind, target.ownerId), {
17
+ message: 'Not an owner of that kind.',
18
+ path: ['ownerId'],
19
+ }),
25
20
  ]);
26
21
  export const PictureRetirementSchema = z.object({
27
22
  target: PictureRetirementTargetSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"picture-retirement.js","sourceRoot":"","sources":["../../src/doc-schemas/picture-retirement.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,UAAU;AACV,EAAE;AACF,oGAAoG;AACpG,8FAA8F;AAC9F,oGAAoG;AACpG,mGAAmG;AACnG,kDAAkD;AAElD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEvE,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;AAEpF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACxE,uCAAuC;IACvC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7E,uFAAuF;IACvF,CAAC;SACE,MAAM,CAAC;QACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAC1B,SAAS,EAAE,sBAAsB;QACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;KAC3B,CAAC;SACD,MAAM,EAAE;CACZ,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,MAAM,EAAE,6BAA6B;IACrC,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,6BAA6B;CACtC,CAAC,CAAC","sourcesContent":["// `pictureRetirements/{retirementId}` — the durable obligation to delete picture files. No client\n// access.\n//\n// It is written in the same transaction that drops a picture's last reference, fails its upload, or\n// deletes its owner, and the media maintenance sweep carries it out and then deletes the row.\n// Retirement is the only way files under the picture prefix are deleted, and the only way a deleted\n// owner's gallery documents go: a picture target's id is the picture id, and a gallery target's is\n// `buildGalleryRetirementId(ownerKind, ownerId)`.\n\nimport { z } from 'zod';\nimport { PICTURE_RETIREMENT_REASON_KEYS } from '../types/uploads.js';\nimport { epochMsSchema } from './atoms.js';\nimport { galleryOwnerKindSchema, pictureIdSchema } from './gallery.js';\n\nexport const pictureRetirementReasonSchema = z.enum(PICTURE_RETIREMENT_REASON_KEYS);\n\nexport const PictureRetirementTargetSchema = z.discriminatedUnion('kind', [\n // One picture: its three stored sizes.\n z.object({ kind: z.literal('picture'), pictureId: pictureIdSchema }).strict(),\n // A deleted owner's whole gallery: every one of its gallery documents and their sizes.\n z\n .object({\n kind: z.literal('gallery'),\n ownerKind: galleryOwnerKindSchema,\n ownerId: z.string().min(1),\n })\n .strict(),\n]);\nexport type PictureRetirementTarget = z.infer<typeof PictureRetirementTargetSchema>;\n\nexport const PictureRetirementSchema = z.object({\n target: PictureRetirementTargetSchema,\n requestedAt: epochMsSchema,\n reason: pictureRetirementReasonSchema,\n});\nexport type PictureRetirement = z.infer<typeof PictureRetirementSchema>;\n"]}
1
+ {"version":3,"file":"picture-retirement.js","sourceRoot":"","sources":["../../src/doc-schemas/picture-retirement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEvE,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,IAAI,CAAC,8BAA8B,CAAC,CAAC;AAEpF,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACxE,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7E,CAAC;SACE,MAAM,CAAC;QACN,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAC1B,SAAS,EAAE,sBAAsB;QACjC,OAAO,EAAE,uBAAuB;KACjC,CAAC;SACD,MAAM,EAAE;SACR,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;QACtE,OAAO,EAAE,4BAA4B;QACrC,IAAI,EAAE,CAAC,SAAS,CAAC;KAClB,CAAC;CACL,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,MAAM,EAAE,6BAA6B;IACrC,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,6BAA6B;CACtC,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { PICTURE_RETIREMENT_REASON_KEYS } from '../types/uploads.js';\nimport { isPictureOwnerId } from '../paths/picture-owner-paths.js';\nimport { documentIdSegmentSchema, epochMsSchema } from './atoms.js';\nimport { galleryOwnerKindSchema, pictureIdSchema } from './gallery.js';\n\nexport const pictureRetirementReasonSchema = z.enum(PICTURE_RETIREMENT_REASON_KEYS);\n\nexport const PictureRetirementTargetSchema = z.discriminatedUnion('kind', [\n z.object({ kind: z.literal('picture'), pictureId: pictureIdSchema }).strict(),\n z\n .object({\n kind: z.literal('gallery'),\n ownerKind: galleryOwnerKindSchema,\n ownerId: documentIdSegmentSchema,\n })\n .strict()\n .refine((target) => isPictureOwnerId(target.ownerKind, target.ownerId), {\n message: 'Not an owner of that kind.',\n path: ['ownerId'],\n }),\n]);\nexport type PictureRetirementTarget = z.infer<typeof PictureRetirementTargetSchema>;\n\nexport const PictureRetirementSchema = z.object({\n target: PictureRetirementTargetSchema,\n requestedAt: epochMsSchema,\n reason: pictureRetirementReasonSchema,\n});\nexport type PictureRetirement = z.infer<typeof PictureRetirementSchema>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"publicUser.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/publicUser.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAc3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"publicUser.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/publicUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAW3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -1,16 +1,11 @@
1
- // `publicUsers/{uid}` — display identity for real users AND ghosts, resolved at read time by
2
- // everything that shows a name (RULE-STD-ARCH-103). `displayName_lowercase` powers prefix search.
3
1
  import { z } from 'zod';
4
2
  import { epochMsSchema } from './atoms.js';
5
3
  export const PublicUserSchema = z.object({
6
4
  uid: z.string(),
7
5
  displayName: z.string(),
8
6
  displayName_lowercase: z.string(),
9
- // True for a `ghost_*` placeholder player; derived from the id, stored for query filters.
10
7
  isGhost: z.boolean(),
11
- // True while the account is banned; always false for a ghost.
12
8
  disabled: z.boolean(),
13
- // Award ids the user chose to show beside their name.
14
9
  selectedBadges: z.object({
15
10
  primary: z.string().optional(),
16
11
  secondary: z.string().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"publicUser.js","sourceRoot":"","sources":["../../src/doc-schemas/publicUser.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,kGAAkG;AAElG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjC,0FAA0F;IAC1F,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,8DAA8D;IAC9D,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,sDAAsD;IACtD,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC;QACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC;IACF,SAAS,EAAE,aAAa;CACzB,CAAC,CAAC","sourcesContent":["// `publicUsers/{uid}` — display identity for real users AND ghosts, resolved at read time by\n// everything that shows a name (RULE-STD-ARCH-103). `displayName_lowercase` powers prefix search.\n\nimport { z } from 'zod';\nimport { epochMsSchema } from './atoms.js';\n\nexport const PublicUserSchema = z.object({\n uid: z.string(),\n displayName: z.string(),\n displayName_lowercase: z.string(),\n // True for a `ghost_*` placeholder player; derived from the id, stored for query filters.\n isGhost: z.boolean(),\n // True while the account is banned; always false for a ghost.\n disabled: z.boolean(),\n // Award ids the user chose to show beside their name.\n selectedBadges: z.object({\n primary: z.string().optional(),\n secondary: z.string().optional(),\n }),\n updatedAt: epochMsSchema,\n});\nexport type PublicUser = z.infer<typeof PublicUserSchema>;\n"]}
1
+ {"version":3,"file":"publicUser.js","sourceRoot":"","sources":["../../src/doc-schemas/publicUser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,cAAc,EAAE,CAAC,CAAC,MAAM,CAAC;QACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACjC,CAAC;IACF,SAAS,EAAE,aAAa;CACzB,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { epochMsSchema } from './atoms.js';\n\nexport const PublicUserSchema = z.object({\n uid: z.string(),\n displayName: z.string(),\n displayName_lowercase: z.string(),\n isGhost: z.boolean(),\n disabled: z.boolean(),\n selectedBadges: z.object({\n primary: z.string().optional(),\n secondary: z.string().optional(),\n }),\n updatedAt: epochMsSchema,\n});\nexport type PublicUser = z.infer<typeof PublicUserSchema>;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"registration-start.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/registration-start.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,uBAAuB;;;;kBAMzB,CAAC;AACZ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
1
+ {"version":3,"file":"registration-start.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/registration-start.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,uBAAuB;;;;kBAMzB,CAAC;AACZ,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -1,8 +1,5 @@
1
- // `registrationStarts/{userId}` — the record that a login's registration started: written by
2
- // `createRegistrationStart` right after the login is created, before `registerUser`. It is the
3
- // orphan-login cleanup's work list: a login whose registration started more than the grace window
4
- // ago and still holds no profile was abandoned. Backend-only; no client reads or writes it. Its
5
- // `expireAt` is the native-TTL field that removes it (RULE-STD-ARCH-105's exception).
1
+ // `expireAt` is a Timestamp, not epoch ms: Firestore's native TTL removes the document by it
2
+ // (RULE-STD-ARCH-105's exception).
6
3
  import { z } from 'zod';
7
4
  import { epochMsSchema, userIdSchema } from './atoms.js';
8
5
  import { FirestoreTimestampSchema } from './firestore-primitives.js';
@@ -1 +1 @@
1
- {"version":3,"file":"registration-start.js","sourceRoot":"","sources":["../../src/doc-schemas/registration-start.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,+FAA+F;AAC/F,kGAAkG;AAClG,gGAAgG;AAChG,sFAAsF;AAEtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,MAAM,EAAE,YAAY;IACpB,SAAS,EAAE,aAAa;IACxB,QAAQ,EAAE,wBAAwB;CACnC,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["// `registrationStarts/{userId}` — the record that a login's registration started: written by\n// `createRegistrationStart` right after the login is created, before `registerUser`. It is the\n// orphan-login cleanup's work list: a login whose registration started more than the grace window\n// ago and still holds no profile was abandoned. Backend-only; no client reads or writes it. Its\n// `expireAt` is the native-TTL field that removes it (RULE-STD-ARCH-105's exception).\n\nimport { z } from 'zod';\nimport { epochMsSchema, userIdSchema } from './atoms.js';\nimport { FirestoreTimestampSchema } from './firestore-primitives.js';\n\nexport const RegistrationStartSchema = z\n .object({\n userId: userIdSchema,\n startedAt: epochMsSchema,\n expireAt: FirestoreTimestampSchema,\n })\n .strict();\nexport type RegistrationStart = z.infer<typeof RegistrationStartSchema>;\n"]}
1
+ {"version":3,"file":"registration-start.js","sourceRoot":"","sources":["../../src/doc-schemas/registration-start.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,mCAAmC;AAEnC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAErE,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,MAAM,EAAE,YAAY;IACpB,SAAS,EAAE,aAAa;IACxB,QAAQ,EAAE,wBAAwB;CACnC,CAAC;KACD,MAAM,EAAE,CAAC","sourcesContent":["// `expireAt` is a Timestamp, not epoch ms: Firestore's native TTL removes the document by it\n// (RULE-STD-ARCH-105's exception).\n\nimport { z } from 'zod';\nimport { epochMsSchema, userIdSchema } from './atoms.js';\nimport { FirestoreTimestampSchema } from './firestore-primitives.js';\n\nexport const RegistrationStartSchema = z\n .object({\n userId: userIdSchema,\n startedAt: epochMsSchema,\n expireAt: FirestoreTimestampSchema,\n })\n .strict();\nexport type RegistrationStart = z.infer<typeof RegistrationStartSchema>;\n"]}
@@ -1245,8 +1245,8 @@ export declare const COLLECTION_SCHEMAS: {
1245
1245
  decision: z.ZodNumber;
1246
1246
  actorUid: z.ZodString;
1247
1247
  status: z.ZodEnum<{
1248
- pending: "pending";
1249
1248
  complete: "complete";
1249
+ pending: "pending";
1250
1250
  }>;
1251
1251
  createdAt: z.ZodNumber;
1252
1252
  completedAt: z.ZodOptional<z.ZodNumber>;
@@ -1348,8 +1348,8 @@ export declare const COLLECTION_SCHEMAS: {
1348
1348
  startedAt: z.ZodNumber;
1349
1349
  updatedAt: z.ZodNumber;
1350
1350
  status: z.ZodEnum<{
1351
- complete: "complete";
1352
1351
  running: "running";
1352
+ complete: "complete";
1353
1353
  stopped: "stopped";
1354
1354
  }>;
1355
1355
  resumeAfter: z.ZodOptional<z.ZodString>;
@@ -1369,8 +1369,8 @@ export declare const COLLECTION_SCHEMAS: {
1369
1369
  startedAt: z.ZodNumber;
1370
1370
  updatedAt: z.ZodNumber;
1371
1371
  status: z.ZodEnum<{
1372
- complete: "complete";
1373
1372
  running: "running";
1373
+ complete: "complete";
1374
1374
  stopped: "stopped";
1375
1375
  }>;
1376
1376
  resumeAfter: z.ZodOptional<z.ZodString>;
@@ -1395,8 +1395,8 @@ export declare const COLLECTION_SCHEMAS: {
1395
1395
  startedAt: z.ZodNumber;
1396
1396
  updatedAt: z.ZodNumber;
1397
1397
  status: z.ZodEnum<{
1398
- complete: "complete";
1399
1398
  running: "running";
1399
+ complete: "complete";
1400
1400
  stopped: "stopped";
1401
1401
  }>;
1402
1402
  resumeAfter: z.ZodOptional<z.ZodString>;
@@ -1419,8 +1419,8 @@ export declare const COLLECTION_SCHEMAS: {
1419
1419
  startedAt: z.ZodNumber;
1420
1420
  updatedAt: z.ZodNumber;
1421
1421
  status: z.ZodEnum<{
1422
- complete: "complete";
1423
1422
  running: "running";
1423
+ complete: "complete";
1424
1424
  stopped: "stopped";
1425
1425
  }>;
1426
1426
  resumeAfter: z.ZodOptional<z.ZodString>;
@@ -1435,12 +1435,13 @@ export declare const COLLECTION_SCHEMAS: {
1435
1435
  gameId: z.ZodString;
1436
1436
  }, z.core.$strict>;
1437
1437
  reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1438
+ requestHash: z.ZodOptional<z.ZodString>;
1438
1439
  startedByUserId: z.ZodString;
1439
1440
  startedAt: z.ZodNumber;
1440
1441
  updatedAt: z.ZodNumber;
1441
1442
  status: z.ZodEnum<{
1442
- complete: "complete";
1443
1443
  running: "running";
1444
+ complete: "complete";
1444
1445
  stopped: "stopped";
1445
1446
  }>;
1446
1447
  resumeAfter: z.ZodOptional<z.ZodString>;
@@ -1459,8 +1460,8 @@ export declare const COLLECTION_SCHEMAS: {
1459
1460
  startedAt: z.ZodNumber;
1460
1461
  updatedAt: z.ZodNumber;
1461
1462
  status: z.ZodEnum<{
1462
- complete: "complete";
1463
1463
  running: "running";
1464
+ complete: "complete";
1464
1465
  stopped: "stopped";
1465
1466
  }>;
1466
1467
  resumeAfter: z.ZodOptional<z.ZodString>;
@@ -1480,12 +1481,13 @@ export declare const COLLECTION_SCHEMAS: {
1480
1481
  }>;
1481
1482
  }, z.core.$strict>;
1482
1483
  reason: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
1484
+ requestHash: z.ZodOptional<z.ZodString>;
1483
1485
  startedByUserId: z.ZodString;
1484
1486
  startedAt: z.ZodNumber;
1485
1487
  updatedAt: z.ZodNumber;
1486
1488
  status: z.ZodEnum<{
1487
- complete: "complete";
1488
1489
  running: "running";
1490
+ complete: "complete";
1489
1491
  stopped: "stopped";
1490
1492
  }>;
1491
1493
  resumeAfter: z.ZodOptional<z.ZodString>;
@@ -1533,8 +1535,8 @@ export declare const COLLECTION_SCHEMAS: {
1533
1535
  startedAt: z.ZodNumber;
1534
1536
  updatedAt: z.ZodNumber;
1535
1537
  status: z.ZodEnum<{
1536
- complete: "complete";
1537
1538
  running: "running";
1539
+ complete: "complete";
1538
1540
  stopped: "stopped";
1539
1541
  }>;
1540
1542
  resumeAfter: z.ZodOptional<z.ZodString>;
@@ -1552,8 +1554,8 @@ export declare const COLLECTION_SCHEMAS: {
1552
1554
  startedAt: z.ZodNumber;
1553
1555
  updatedAt: z.ZodNumber;
1554
1556
  status: z.ZodEnum<{
1555
- complete: "complete";
1556
1557
  running: "running";
1558
+ complete: "complete";
1557
1559
  stopped: "stopped";
1558
1560
  }>;
1559
1561
  resumeAfter: z.ZodOptional<z.ZodString>;
@@ -2577,6 +2579,7 @@ export declare const COLLECTION_SCHEMAS: {
2577
2579
  "award.deleted": "award.deleted";
2578
2580
  "award.granted": "award.granted";
2579
2581
  "award.revoked": "award.revoked";
2582
+ "award.groupDecisionOpened": "award.groupDecisionOpened";
2580
2583
  "hardwareLoanContract.created": "hardwareLoanContract.created";
2581
2584
  "hardwareLoanContract.signed": "hardwareLoanContract.signed";
2582
2585
  "hardwareLoanContract.returned": "hardwareLoanContract.returned";
@@ -2709,9 +2712,9 @@ export declare const COLLECTION_SCHEMAS: {
2709
2712
  readonly 'notificationDeliveries/{deliveryId}': z.ZodObject<{
2710
2713
  deliveryId: z.ZodString;
2711
2714
  state: z.ZodEnum<{
2715
+ skipped: "skipped";
2712
2716
  queued: "queued";
2713
2717
  materialized: "materialized";
2714
- skipped: "skipped";
2715
2718
  deadLetter: "deadLetter";
2716
2719
  }>;
2717
2720
  notificationType: z.ZodEnum<{
@@ -2806,8 +2809,8 @@ export declare const COLLECTION_SCHEMAS: {
2806
2809
  }, z.core.$strip>;
2807
2810
  readonly '_serverData/migrationConsole': z.ZodObject<{
2808
2811
  destinationState: z.ZodEnum<{
2809
- live: "live";
2810
2812
  preCutover: "preCutover";
2813
+ live: "live";
2811
2814
  }>;
2812
2815
  cutoverRecordedAt: z.ZodOptional<z.ZodNumber>;
2813
2816
  cutoverRecordedByUserId: z.ZodOptional<z.ZodString>;
@@ -2883,6 +2886,10 @@ export declare const COLLECTION_SCHEMAS: {
2883
2886
  "delete.v1GameLocations": "delete.v1GameLocations";
2884
2887
  "delete.v1AdminStats": "delete.v1AdminStats";
2885
2888
  "verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
2889
+ "verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
2890
+ "verify.v1TextFitsLimits": "verify.v1TextFitsLimits";
2891
+ "verify.v1LeagueCapacity": "verify.v1LeagueCapacity";
2892
+ "verify.v1HardwareContractIdsUnique": "verify.v1HardwareContractIdsUnique";
2886
2893
  "delete.v1Commerce": "delete.v1Commerce";
2887
2894
  "rebuild.leagueStats": "rebuild.leagueStats";
2888
2895
  "rebuild.lifetimeStats": "rebuild.lifetimeStats";
@@ -2983,6 +2990,10 @@ export declare const COLLECTION_SCHEMAS: {
2983
2990
  "delete.v1GameLocations": "delete.v1GameLocations";
2984
2991
  "delete.v1AdminStats": "delete.v1AdminStats";
2985
2992
  "verify.v1CommerceDiscardable": "verify.v1CommerceDiscardable";
2993
+ "verify.v1DisplayNamesUnique": "verify.v1DisplayNamesUnique";
2994
+ "verify.v1TextFitsLimits": "verify.v1TextFitsLimits";
2995
+ "verify.v1LeagueCapacity": "verify.v1LeagueCapacity";
2996
+ "verify.v1HardwareContractIdsUnique": "verify.v1HardwareContractIdsUnique";
2986
2997
  "delete.v1Commerce": "delete.v1Commerce";
2987
2998
  "rebuild.leagueStats": "rebuild.leagueStats";
2988
2999
  "rebuild.lifetimeStats": "rebuild.lifetimeStats";
@@ -3007,8 +3018,8 @@ export declare const COLLECTION_SCHEMAS: {
3007
3018
  updatedAt: z.ZodNumber;
3008
3019
  completedAt: z.ZodOptional<z.ZodNumber>;
3009
3020
  status: z.ZodEnum<{
3010
- complete: "complete";
3011
3021
  running: "running";
3022
+ complete: "complete";
3012
3023
  stopped: "stopped";
3013
3024
  }>;
3014
3025
  pages: z.ZodNumber;
@@ -3042,8 +3053,8 @@ export declare const COLLECTION_SCHEMAS: {
3042
3053
  updatedAt: z.ZodNumber;
3043
3054
  completedAt: z.ZodOptional<z.ZodNumber>;
3044
3055
  status: z.ZodEnum<{
3045
- complete: "complete";
3046
3056
  running: "running";
3057
+ complete: "complete";
3047
3058
  stopped: "stopped";
3048
3059
  }>;
3049
3060
  pages: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/doc-schemas/registry.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiD7B,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDkB,CAAC;AAElD,MAAM,MAAM,wBAAwB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAEvE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;CAaiC,CAAC;AAEvE,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAAO,CAAC"}
@@ -1,10 +1,3 @@
1
- // Collection → schema registry: every Firestore path template bound to the zod schema its
2
- // documents must satisfy. Every document a migration copy action writes is validated against the
3
- // schema bound here.
4
- //
5
- // A key is the literal path template — `{placeholder}` for an id, the literal segment for a fixed
6
- // document id. __tests__/doc-schemas-registry.test.ts fails when a collection constant has neither a
7
- // binding here nor an explicit PENDING_COLLECTIONS entry.
8
1
  import { StatusReconcileQueueEntrySchema } from './status-reconcile-queue.js';
9
2
  import { ActiveAdminNotificationSchema, AdminNotificationHistorySchema, NotificationArchiveAllJobSchema, NotificationDeliverySchema, } from './admin-notifications.js';
10
3
  import { AwardDefinitionSchema } from './catalogs.js';
@@ -81,8 +74,6 @@ export const COLLECTION_SCHEMAS = {
81
74
  'migrationActionRuns/{actionId}': MigrationActionRunSchema,
82
75
  'sweepState/{sweepName}': SweepStateSchema,
83
76
  };
84
- // The body field that equals the document id, where a schema declares one. A drift check injects
85
- // `doc.id` under this key before validating, so a doc-id field is never a false mismatch.
86
77
  export const COLLECTION_DOC_ID_FIELDS = {
87
78
  'publicUsers/{userId}': 'uid',
88
79
  'registrationStarts/{userId}': 'userId',
@@ -97,6 +88,5 @@ export const COLLECTION_DOC_ID_FIELDS = {
97
88
  'awardGroupGrants/{grantId}/awardGroupGrantPeople/{userId}': 'userId',
98
89
  'migrationActionRuns/{actionId}': 'actionId',
99
90
  };
100
- // Collections declared in ../paths with no bound schema yet, each with the reason.
101
91
  export const PENDING_COLLECTIONS = [];
102
92
  //# sourceMappingURL=registry.js.map