@metabase/cli 0.2.1 → 0.2.2

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 (240) hide show
  1. package/README.md +198 -11
  2. package/dist/{add-collection-CUBn11d4.mjs → add-collection-B-Pf12HY.mjs} +4 -4
  3. package/dist/add-collection-B2PdVMRy.mjs +9 -0
  4. package/dist/alert-DGcECcDb.mjs +26 -0
  5. package/dist/alerts-CRGMX4eB.mjs +49 -0
  6. package/dist/{append-BgDaYJW9.mjs → append-lL0IaI6U.mjs} +5 -5
  7. package/dist/{archive-Czzktgho.mjs → archive-3rLXY0nS.mjs} +4 -4
  8. package/dist/{archive-BCPA0HhV.mjs → archive-BUFc1me2.mjs} +5 -5
  9. package/dist/{archive-EoYl-lS-.mjs → archive-Baz4OVDd.mjs} +4 -4
  10. package/dist/{archive-Bv59HYsU.mjs → archive-C9mJGN6J.mjs} +4 -4
  11. package/dist/{archive-BZpXnQSu.mjs → archive-CUGRnyRV.mjs} +4 -4
  12. package/dist/{archive-BM9HjJHQ.mjs → archive-D3DErepm.mjs} +4 -4
  13. package/dist/{archive-BncW2dGw.mjs → archive-D8YrImIU.mjs} +6 -6
  14. package/dist/{archive-DFCu5hVG.mjs → archive-DihHU042.mjs} +5 -5
  15. package/dist/archive-DyPsHSFb.mjs +39 -0
  16. package/dist/{archive-Oh1iZu2y.mjs → archive-ExcEma7q.mjs} +7 -7
  17. package/dist/archive-hKPQXgXa.mjs +38 -0
  18. package/dist/{auth-hgAnMUfi.mjs → auth-B8Yb4ZaN.mjs} +5 -5
  19. package/dist/{body-DKcQw7G5.mjs → body-DXJ2v3GY.mjs} +3 -3
  20. package/dist/{branches-CCmtr3W8.mjs → branches-ByCzTuiv.mjs} +4 -4
  21. package/dist/{cancel-72y10-Rg.mjs → cancel-DvehNbDD.mjs} +3 -3
  22. package/dist/{cancel-task-CGwdz91O.mjs → cancel-task-BM8ADd3Y.mjs} +4 -4
  23. package/dist/{capabilities-DOTcPraV.mjs → capabilities-1HTHeDa4.mjs} +1 -1
  24. package/dist/{card-B8G5jQQT.mjs → card-BFRRyTGs.mjs} +3 -3
  25. package/dist/card-BT7ce7uO.mjs +27 -0
  26. package/dist/{cards-CYSyvN7Z.mjs → cards-Bz6anDNX.mjs} +6 -6
  27. package/dist/cli.mjs +43 -28
  28. package/dist/{collection-CFoLPrY5.mjs → collection-BrrjbPLN.mjs} +4 -2
  29. package/dist/collection-ahFSJT-e.mjs +23 -0
  30. package/dist/{collection-namespace-C7mr_a8H.mjs → collection-namespace-8i_CvWsg.mjs} +2 -2
  31. package/dist/{create-C_WqoOf5.mjs → create--_4GZUNY.mjs} +7 -6
  32. package/dist/{create-Brh8WCa3.mjs → create-1O1UiTVt.mjs} +6 -6
  33. package/dist/{create-C3DThF9E.mjs → create-BnNRvoyz.mjs} +11 -11
  34. package/dist/{create-CPEOSxIH.mjs → create-BynNiG1N.mjs} +6 -6
  35. package/dist/{create-E7XhC0gJ.mjs → create-CHK9cJcK.mjs} +8 -8
  36. package/dist/create-COI80Veo.mjs +52 -0
  37. package/dist/{create-QYctYGSa.mjs → create-CtIOvInN.mjs} +8 -8
  38. package/dist/{create-7pbf5Wu0.mjs → create-Cy57naL0.mjs} +12 -12
  39. package/dist/{create-nXlnVzXl.mjs → create-D57tRDrg.mjs} +9 -8
  40. package/dist/{create-pTnveKkm.mjs → create-D6bXJlBS.mjs} +6 -6
  41. package/dist/{create-DFyZCXQD.mjs → create-DAj8pyfQ.mjs} +5 -4
  42. package/dist/create-DOpa2TmH.mjs +53 -0
  43. package/dist/{create-branch-DPE6itiS.mjs → create-branch-BwqFHYcZ.mjs} +4 -4
  44. package/dist/{create-BDY38_Kr.mjs → create-qzjhJFP8.mjs} +6 -6
  45. package/dist/{create-U_XDwsIX.mjs → create-t7z8Eb4T.mjs} +6 -6
  46. package/dist/{create-CaWFrPRU.mjs → create-yK1-fuX5.mjs} +9 -9
  47. package/dist/cron-93wjhtrP.mjs +7 -0
  48. package/dist/{csv-CR2qhmC6.mjs → csv-yoFA1hhv.mjs} +5 -5
  49. package/dist/{current-task-MUHaiHIg.mjs → current-task-D8Q1uFmk.mjs} +4 -4
  50. package/dist/{dashboard-B-MTpfeS.mjs → dashboard-BSCXTX4H.mjs} +2 -2
  51. package/dist/dashboard-C__PiWrv.mjs +36 -0
  52. package/dist/{database-CIbVSfua.mjs → database-B-xwx5LA.mjs} +1 -1
  53. package/dist/{db-eWy7A-H3.mjs → db-BiLWl1J9.mjs} +7 -7
  54. package/dist/{delete-B58Cng0p.mjs → delete-B8dui6O6.mjs} +5 -5
  55. package/dist/{delete-BKMOtpjs.mjs → delete-BwPgIWV8.mjs} +5 -5
  56. package/dist/{delete-CW3dYmuT.mjs → delete-CA7IjA5J.mjs} +5 -5
  57. package/dist/{delete-BMa26SzX.mjs → delete-CawUDFud.mjs} +5 -5
  58. package/dist/{delete-doa3R-c5.mjs → delete-Dcu3iDkg.mjs} +5 -5
  59. package/dist/{delete-runtime-_YOukDRC.mjs → delete-runtime-00-R9iJm.mjs} +2 -2
  60. package/dist/{delete-table-D_tjBZPd.mjs → delete-table-DS0b3i0k.mjs} +5 -5
  61. package/dist/{dependencies-BR_4um7h.mjs → dependencies-BQVZylqV.mjs} +4 -4
  62. package/dist/{dirty-BKCg6oVN.mjs → dirty-BqdcrfUz.mjs} +4 -4
  63. package/dist/document-C9ykHYOG.mjs +22 -0
  64. package/dist/{eid-DSOk7Khb.mjs → eid-DcCAs-RP.mjs} +5 -5
  65. package/dist/{events-Dxm7me47.mjs → events-C9PqRUCO.mjs} +4 -4
  66. package/dist/{export-Gb_wfZpt.mjs → export-CdKR5nPT.mjs} +6 -6
  67. package/dist/field-P7aJaet9.mjs +21 -0
  68. package/dist/{fields-hZeq6IF2.mjs → fields-D2czTLKq.mjs} +5 -5
  69. package/dist/get-4rA8pbRu.mjs +38 -0
  70. package/dist/{get-CP3lrIYi.mjs → get-75Vdyusm.mjs} +4 -4
  71. package/dist/{get-nZW0W7Ui.mjs → get-B2vvnMpl.mjs} +5 -5
  72. package/dist/{get--rGDVyje.mjs → get-B6fSPCfp.mjs} +4 -4
  73. package/dist/{get-7Np_G2je.mjs → get-BbKC0fTx.mjs} +4 -4
  74. package/dist/{get-CH_JmPc-.mjs → get-BfFKIfpX.mjs} +5 -4
  75. package/dist/{get-DZatHVdn.mjs → get-Bpw05IUm.mjs} +7 -7
  76. package/dist/{get-DtvzjfjG.mjs → get-CJYv3CfV.mjs} +3 -3
  77. package/dist/{get-DB6Y9igl.mjs → get-CaIYg15K.mjs} +6 -6
  78. package/dist/get-CvXOGyFj.mjs +36 -0
  79. package/dist/{get-T85qZgnv.mjs → get-Cvkt6GcQ.mjs} +4 -4
  80. package/dist/{get-DRK5-UdU.mjs → get-DQ0pb4tT.mjs} +4 -4
  81. package/dist/{get-43Smv3RI.mjs → get-DXiL39gi.mjs} +6 -6
  82. package/dist/{get-DWzMR8sn.mjs → get-DXydDRVU.mjs} +4 -4
  83. package/dist/{get-BSdOE5J4.mjs → get-DZRB5S37.mjs} +4 -4
  84. package/dist/{get-CgZ5qjQx.mjs → get-Db8YNxId.mjs} +5 -4
  85. package/dist/{get-DT2MOZ8L.mjs → get-DhS4y0K9.mjs} +4 -4
  86. package/dist/{get-CuPCE_AG.mjs → get-Dy5f54pV.mjs} +4 -4
  87. package/dist/{get-run-Cwia6e0d.mjs → get-run-BF5ZBE8o.mjs} +4 -4
  88. package/dist/{get-CHAH_F37.mjs → get-vGqyjGSW.mjs} +4 -4
  89. package/dist/git-sync-BzievbUz.mjs +31 -0
  90. package/dist/{has-remote-changes-CIIib71u.mjs → has-remote-changes-CjDHphUH.mjs} +4 -4
  91. package/dist/{import-D9ID9Mz4.mjs → import-DzA5Ty9_.mjs} +6 -6
  92. package/dist/{input-DzbvxKYU.mjs → input-BpXlmJ5J.mjs} +1 -1
  93. package/dist/{is-dirty-CHbUJ-bh.mjs → is-dirty-4kIyD4oP.mjs} +3 -3
  94. package/dist/is-dirty-Cv0bdKkX.mjs +8 -0
  95. package/dist/{items-DN63mjpF.mjs → items-BXH0f1r6.mjs} +6 -6
  96. package/dist/{key-BnGRTX8U.mjs → key-B9AAqwjq.mjs} +1 -1
  97. package/dist/{library-DF2qx50w.mjs → library-BFZYsBcz.mjs} +5 -5
  98. package/dist/list-AyGEaws8.mjs +8 -0
  99. package/dist/{list-B3HoSfYj.mjs → list-Bar8uQRC.mjs} +3 -3
  100. package/dist/{list-KDHLmoUx.mjs → list-BiAVv9jX.mjs} +3 -3
  101. package/dist/{list-BSxMFDMR.mjs → list-Bm1PlZEV.mjs} +3 -3
  102. package/dist/{list-CQN2BpaW.mjs → list-BtgjcC2w.mjs} +3 -3
  103. package/dist/{list-n2PY3OIx.mjs → list-By1yYVGq.mjs} +7 -7
  104. package/dist/{list-De82cXvn.mjs → list-CG3ec9BZ.mjs} +4 -4
  105. package/dist/{list-C6YpaUpC.mjs → list-CLgkOcmY.mjs} +5 -5
  106. package/dist/{list-CvS68tLn.mjs → list-CSnpbFML.mjs} +3 -3
  107. package/dist/list-Cn-VruXD.mjs +8 -0
  108. package/dist/{list-C5Ir-96z.mjs → list-D7mMcRG5.mjs} +6 -6
  109. package/dist/{list-BeqcZVSn.mjs → list-DOhVPh95.mjs} +3 -3
  110. package/dist/{list-CY-jpBNE.mjs → list-DSHteJOl.mjs} +4 -3
  111. package/dist/{list-C0344yqi.mjs → list-Dl81pkVs.mjs} +6 -5
  112. package/dist/{list-MqqHcBvD.mjs → list-DwMcwucR.mjs} +3 -3
  113. package/dist/{list-B1sdMz6m.mjs → list-IxaPXKXu.mjs} +3 -3
  114. package/dist/list-SiSfX4wl.mjs +73 -0
  115. package/dist/{list-CkTsOOA7.mjs → list-hKRQUcGB.mjs} +3 -3
  116. package/dist/list-oRyXsJXs.mjs +50 -0
  117. package/dist/{list-C7TqbWG1.mjs → list-w61Uovt2.mjs} +5 -5
  118. package/dist/listing-1G8iFfZe.mjs +10 -0
  119. package/dist/{login-jy9rbYev.mjs → login-zUCMDLC8.mjs} +7 -7
  120. package/dist/{logout-CRbk1SuY.mjs → logout-BFh7QHx6.mjs} +3 -3
  121. package/dist/{measure-CPqisgyf.mjs → measure-DNldT89z.mjs} +6 -6
  122. package/dist/notification-BR5wehqg.mjs +201 -0
  123. package/dist/{parameter-values-CcgcG3S5.mjs → parameter-values-BYDFzxNY.mjs} +4 -4
  124. package/dist/{parse-enum-C_2lGr3g.mjs → parse-enum-D1zTYr_i.mjs} +1 -1
  125. package/dist/{parse-id-CD54Chc5.mjs → parse-id-waEVK-uR.mjs} +1 -1
  126. package/dist/{parse-ref-BLgKEEF-.mjs → parse-ref-C3DUXwci.mjs} +1 -1
  127. package/dist/patch-BpjI9BOz.mjs +20 -0
  128. package/dist/patch-DrMVqf34.mjs +36 -0
  129. package/dist/{path-CPMr1RJO.mjs → path-Bvs9IR4k.mjs} +3 -3
  130. package/dist/{poll-DVF9EnEb.mjs → poll-rqLkEJVP.mjs} +2 -2
  131. package/dist/{poll-task-CpHGQOd5.mjs → poll-task-CiB1o1wG.mjs} +2 -2
  132. package/dist/{preflight-xhwEOHAt.mjs → preflight-DJOBTWVq.mjs} +3 -3
  133. package/dist/{process-HDPKLS_z.mjs → process-BxAUv3Wx.mjs} +1 -1
  134. package/dist/{prompt-BgkWNgIR.mjs → prompt-DmxSLNrO.mjs} +1 -1
  135. package/dist/{publish-xVPABwE8.mjs → publish-C1y_vGGw.mjs} +12 -7
  136. package/dist/pulse-C8q469KD.mjs +186 -0
  137. package/dist/{query-Cxh9hmrP.mjs → query-B9LlGOZI.mjs} +8 -8
  138. package/dist/{query-B3HDIsJ-.mjs → query-DpVWKW-y.mjs} +12 -12
  139. package/dist/{query-result-Drvjv7DD.mjs → query-result-Bvh89K4f.mjs} +1 -1
  140. package/dist/{remove-collection-_a4uIlLB.mjs → remove-collection-DYQibG6d.mjs} +6 -6
  141. package/dist/{replace-BwvKDNur.mjs → replace-sHtPBNnA.mjs} +5 -5
  142. package/dist/{requests-qyh002pL.mjs → requests-Pc0u7PQS.mjs} +2 -2
  143. package/dist/{rescan-values-Bd0Joerq.mjs → rescan-values-CuPGOzKI.mjs} +6 -6
  144. package/dist/{resolve-Ct084wx3.mjs → resolve-BiL5scF0.mjs} +22 -15
  145. package/dist/{run-yrpSF6VL.mjs → run-Ce_gPVcg.mjs} +3 -3
  146. package/dist/{run-BfpKUjqL.mjs → run-D6jyZ0nv.mjs} +6 -6
  147. package/dist/{runs-D_08Ma08.mjs → runs-DRxrpAkU.mjs} +5 -5
  148. package/dist/{runtime-Ab96yYlM.mjs → runtime-CPIHg_Zg.mjs} +105 -101
  149. package/dist/{schema-tables-ChBYz4mO.mjs → schema-tables-D91DWM5l.mjs} +5 -5
  150. package/dist/{schemas-C2crnVML.mjs → schemas-OVYRgvz9.mjs} +3 -3
  151. package/dist/{search-DnGEh6sZ.mjs → search-msFNbxU6.mjs} +3 -3
  152. package/dist/{segment-DyVTZSIM.mjs → segment-BIKVTq_n.mjs} +6 -6
  153. package/dist/{selectors-Ll_TRxl5.mjs → selectors-Bsyhe1zP.mjs} +3 -3
  154. package/dist/send-BeFpVrwD.mjs +60 -0
  155. package/dist/{set-active-qqDoBh_Z.mjs → set-active-CFWtIWzX.mjs} +3 -3
  156. package/dist/{set-tHsHXRGV.mjs → set-jRnCLhvc.mjs} +6 -6
  157. package/dist/{setting-B9xSyMf6.mjs → setting-CApPg0Xr.mjs} +4 -4
  158. package/dist/{setup-CXGcyTuv.mjs → setup-CruHFQJz.mjs} +5 -5
  159. package/dist/{skills-rnvVgau4.mjs → skills-CxqkjkdQ.mjs} +3 -3
  160. package/dist/{skills-BKuiGkc1.mjs → skills-DlFbbaoS.mjs} +1 -1
  161. package/dist/snippet-DdoeL-7N.mjs +22 -0
  162. package/dist/{stash-DxmpBS7x.mjs → stash-CR-ESWiX.mjs} +6 -6
  163. package/dist/{status-B5ar0uXc.mjs → status-BMEdl-_G.mjs} +3 -3
  164. package/dist/{status-D5CR1SrS.mjs → status-DCIOvsc6.mjs} +26 -10
  165. package/dist/subscription-BOOBR5Ir.mjs +25 -0
  166. package/dist/subscriptions-C_1AQpZF.mjs +47 -0
  167. package/dist/summary-D1fKnwE3.mjs +8 -0
  168. package/dist/{summary-BEEJl2O1.mjs → summary-WUjzNITU.mjs} +4 -4
  169. package/dist/{sync-schema-B5HDpmrp.mjs → sync-schema-Cq5LzHHc.mjs} +8 -8
  170. package/dist/sync-scope-Dh1wBlrg.mjs +55 -0
  171. package/dist/table-BK56VDw8.mjs +21 -0
  172. package/dist/{table-C3RIKiYM.mjs → table-fDvuvqoU.mjs} +1 -1
  173. package/dist/timeline-Dl5pm5tN.mjs +24 -0
  174. package/dist/{timeline-event-BVDTt-pM.mjs → timeline-event-5JAeGVSI.mjs} +6 -6
  175. package/dist/transform-ATK6rJBl.mjs +31 -0
  176. package/dist/transform-job-BezBE6Y8.mjs +25 -0
  177. package/dist/{transform-job-CjsAXMej.mjs → transform-job-sJmW_En3.mjs} +4 -4
  178. package/dist/{transform-tag-B1xnFa9w.mjs → transform-tag-GqbcG_6_.mjs} +5 -5
  179. package/dist/{transforms-CLkv3e81.mjs → transforms-Cosz-Vq3.mjs} +4 -4
  180. package/dist/{tree-CB2IURsX.mjs → tree-BkXtw0c4.mjs} +3 -3
  181. package/dist/{unpublish-BkZldbkP.mjs → unpublish-BlGj7omM.mjs} +4 -4
  182. package/dist/{update-BghbOcv6.mjs → update-BHhEtxwC.mjs} +13 -13
  183. package/dist/update-C-ChEcI9.mjs +57 -0
  184. package/dist/{update-BHC3pwzR.mjs → update-C9K1QnOo.mjs} +8 -7
  185. package/dist/{update-B4atxTx0.mjs → update-CTWsiwme.mjs} +7 -7
  186. package/dist/{update-BacyVaLu.mjs → update-CXlhrcy8.mjs} +7 -7
  187. package/dist/update-Cbsgvopz.mjs +56 -0
  188. package/dist/{update-D7Ia9Qrt.mjs → update-CsYFWkVd.mjs} +12 -12
  189. package/dist/{update-DajyWtBN.mjs → update-CuKHukZ6.mjs} +7 -7
  190. package/dist/{update-CGWTX1Z0.mjs → update-CzrbMLZq.mjs} +7 -7
  191. package/dist/{update-CO9uCJxV.mjs → update-DDVuyquf.mjs} +9 -9
  192. package/dist/{update-B1dkPypu.mjs → update-DpIzJ8Ts.mjs} +10 -10
  193. package/dist/{update-iY9WZqy0.mjs → update-DrvAdi-O.mjs} +8 -8
  194. package/dist/{update-Cyxjg496.mjs → update-Tw0kARao.mjs} +7 -7
  195. package/dist/{update-D80GWpWl.mjs → update-ZJ5T-SBW.mjs} +9 -9
  196. package/dist/{update-dashcard-DLq7ihNO.mjs → update-dashcard-Dnfa8_aJ.mjs} +9 -9
  197. package/dist/{update-8bTrglfc.mjs → update-hoCyoR-u.mjs} +7 -7
  198. package/dist/{upgrade-CXoNQ4FH.mjs → upgrade-D0HiyTxw.mjs} +4 -4
  199. package/dist/upload-WT6SywFa.mjs +16 -0
  200. package/dist/{uuid-D6dao_q4.mjs → uuid-D7NcSTj8.mjs} +2 -2
  201. package/dist/{validate-Cqa14t7o.mjs → validate-BoY75_M3.mjs} +1 -1
  202. package/dist/{validate-query-D1N30wJ7.mjs → validate-query-Di0VKMF-.mjs} +2 -2
  203. package/dist/{values-DIBAgSyz.mjs → values-OBiEVCVH.mjs} +4 -4
  204. package/dist/{verify-DvhZWmS2.mjs → verify-VEB7TBQ_.mjs} +2 -2
  205. package/dist/{wait-CW1OawkI.mjs → wait-B9qNlcTe.mjs} +5 -5
  206. package/dist/{wait-flags-DvNU8ahZ.mjs → wait-flags-D0FEgH6k.mjs} +2 -2
  207. package/package.json +1 -1
  208. package/skill-data/core/SKILL.md +6 -4
  209. package/skill-data/git-sync/SKILL.md +20 -5
  210. package/skill-data/notification/SKILL.md +157 -0
  211. package/dist/add-collection-C8ZTPlIE.mjs +0 -9
  212. package/dist/card-Ct-q_C4S.mjs +0 -26
  213. package/dist/collection-K82kJWdj.mjs +0 -23
  214. package/dist/dashboard-B1iRSUBI.mjs +0 -35
  215. package/dist/document-CVxhTnUD.mjs +0 -22
  216. package/dist/field-BTCw6voJ.mjs +0 -21
  217. package/dist/git-sync-Cjrx2meo.mjs +0 -31
  218. package/dist/is-dirty-DY5Zhsbk.mjs +0 -8
  219. package/dist/snippet-C4h-GMUf.mjs +0 -22
  220. package/dist/table-DHmaW3Ec.mjs +0 -21
  221. package/dist/timeline-B0R6-dm8.mjs +0 -24
  222. package/dist/transform-Cq2_muWO.mjs +0 -31
  223. package/dist/transform-job-BpebgMnq.mjs +0 -25
  224. package/dist/upload-D3eiApa0.mjs +0 -16
  225. /package/dist/{body-flags-CgHgJBRC.mjs → body-flags-Cbv-Ba6W.mjs} +0 -0
  226. /package/dist/{document-CL4ML5FN.mjs → document-C7IR6T8c.mjs} +0 -0
  227. /package/dist/{embedding-CKdw8q7p.mjs → embedding-B0x9CPkU.mjs} +0 -0
  228. /package/dist/{field-DsXTeqBy.mjs → field-RYBTW2KS.mjs} +0 -0
  229. /package/dist/{group-CILtQqCL.mjs → group-DfTvzGz-.mjs} +0 -0
  230. /package/dist/{measure-S9WszHre.mjs → measure-DH3ow2ko.mjs} +0 -0
  231. /package/dist/{paginate-CMqbqhMC.mjs → paginate-DuDXvUPr.mjs} +0 -0
  232. /package/dist/{parameter-BZ6y-Gfs.mjs → parameter-hCQ80jnc.mjs} +0 -0
  233. /package/dist/{render-CkuFkWlQ.mjs → render-rgZBe3rO.mjs} +0 -0
  234. /package/dist/{revision-message-flag-CHzX0cqV.mjs → revision-message-flag-B4BxzDXJ.mjs} +0 -0
  235. /package/dist/{segment-BPb1H6DW.mjs → segment-cwIOOF0v.mjs} +0 -0
  236. /package/dist/{setting-Cko6bE_w.mjs → setting-CDEoJYO0.mjs} +0 -0
  237. /package/dist/{snippet-DWiXNy4T.mjs → snippet-1xYckIwc.mjs} +0 -0
  238. /package/dist/{timeline-BCTRThc-.mjs → timeline-BNwnJ3g9.mjs} +0 -0
  239. /package/dist/{transform-BVHYzWpK.mjs → transform-BkSkCvpx.mjs} +0 -0
  240. /package/dist/{transform-tag--IBQ-8Ij.mjs → transform-tag-qTjNVfTW.mjs} +0 -0
package/README.md CHANGED
@@ -574,6 +574,19 @@ mb card query 1 --parameters '[{"type":"category","value":"A","target":["variabl
574
574
  | `--format-rows` | Streamed exports only: apply the card's visualization-settings formatting to values (default `false`). |
575
575
  | `--pivot-results` | Streamed exports only: emit the pivoted output for pivot questions (default `false`). |
576
576
 
577
+ ### `mb card alerts <id>`
578
+
579
+ List the alerts watching this card. Manage them with `mb alert create|update|send|archive`, which take the alert id printed here.
580
+
581
+ ```sh
582
+ mb card alerts 94
583
+ mb card alerts 94 --include-inactive --json
584
+ ```
585
+
586
+ | Flag | Description |
587
+ | -------------------- | ----------------------------------- |
588
+ | `--include-inactive` | Include archived (inactive) alerts. |
589
+
577
590
  ### `mb card create`
578
591
 
579
592
  ```sh
@@ -650,6 +663,19 @@ mb dashboard cards 1
650
663
  mb dashboard cards 1 --json
651
664
  ```
652
665
 
666
+ ### `mb dashboard subscriptions <id>`
667
+
668
+ List the subscriptions delivering this dashboard. Manage them with `mb subscription create|update|archive`, which take the subscription id printed here.
669
+
670
+ ```sh
671
+ mb dashboard subscriptions 10
672
+ mb dashboard subscriptions 10 --json
673
+ ```
674
+
675
+ | Flag | Description |
676
+ | ------------ | --------------------------------------------------- |
677
+ | `--archived` | Show archived subscriptions instead of active ones. |
678
+
653
679
  #### Dashboard parameters (filters)
654
680
 
655
681
  A dashboard's `parameters` are its filter widgets. They're typed (`Parameter` schema): an invalid `type` is rejected at the CLI boundary with a message that echoes the full allowed enum (`string/=`, `string/contains`, `number/between`, `date/range`, `category`, `id`, `temporal-unit`, …).
@@ -1070,6 +1096,163 @@ mb timeline-event delete 1
1070
1096
  | ------- | ------------------ |
1071
1097
  | `--yes` | Skip confirmation. |
1072
1098
 
1099
+ ## Dashboard subscriptions
1100
+
1101
+ Read and write dashboard subscriptions on `/api/pulse`. A subscription delivers a rendered dashboard on a schedule — by email, to a Slack channel, or to an HTTP webhook. It pins the dashboard's cards by both `id` (the card) and `dashboard_card_id` (its placement); `mb dashboard cards <dashboard-id>` prints both.
1102
+
1103
+ A subscription's `dashboard_id` and `collection_id` are fixed at creation. There is no delete — archiving is the terminal state, and it also disables every channel.
1104
+
1105
+ ### `mb subscription list`
1106
+
1107
+ ```sh
1108
+ mb subscription list
1109
+ mb subscription list --dashboard-id 10 --json
1110
+ mb subscription list --archived --json
1111
+ ```
1112
+
1113
+ | Flag | Description |
1114
+ | --------------------- | --------------------------------------------------- |
1115
+ | `--dashboard-id <id>` | Only subscriptions on this dashboard. |
1116
+ | `--archived` | Show archived subscriptions instead of active ones. |
1117
+
1118
+ Listing from the dashboard side is `mb dashboard subscriptions <dashboard-id>`.
1119
+
1120
+ ### `mb subscription get <id>`
1121
+
1122
+ ```sh
1123
+ mb subscription get 1
1124
+ mb subscription get 1 --full --json
1125
+ ```
1126
+
1127
+ The compact view returns `id`, `name`, `dashboard_id`, `collection_id`, `archived`, `skip_if_empty`, plus the pinned `cards` and the `channels` with their schedules and recipients. `--full` adds the hydrated creator, entity ids, and per-card download permissions.
1128
+
1129
+ ### `mb subscription create`
1130
+
1131
+ The body needs `name`, `dashboard_id`, `cards`, and `channels`.
1132
+
1133
+ Each channel names a `channel_type` (`email`, `slack`, `http`) and a `schedule_type` (`hourly`, `daily`, `weekly`, `monthly`) plus the fields that schedule needs: `daily` needs `schedule_hour` (0–23); `weekly` also needs `schedule_day` (`mon`…`sun`); `monthly` also needs `schedule_frame` (`first`, `mid`, `last`). Email recipients are `{"email":"a@b.com"}` or `{"id":<user-id>}`; Slack targets a channel with `"details":{"channel":"#general"}`. A channel is `enabled` unless you say otherwise.
1134
+
1135
+ ```sh
1136
+ mb subscription create --body '{"name":"Weekly orders","dashboard_id":10,"cards":[{"id":94,"dashboard_card_id":87,"include_csv":false,"include_xls":false}],"channels":[{"channel_type":"email","schedule_type":"daily","schedule_hour":8,"recipients":[{"email":"team@example.com"}]}]}'
1137
+ cat subscription.json | mb subscription create
1138
+ mb subscription create --file subscription.json
1139
+ ```
1140
+
1141
+ | Flag | Description |
1142
+ | --------------- | --------------------------------------------------- |
1143
+ | `--body <json>` | Inline JSON body. |
1144
+ | `--file <path>` | Path to JSON body file. Use `-` to read from stdin. |
1145
+
1146
+ ### `mb subscription update <id>`
1147
+
1148
+ Patches `name`, `cards`, `channels`, `skip_if_empty`, `parameters`, `archived`. `cards` and `channels` each replace the whole list, so send every one you want to keep — `mb subscription get <id> --full` prints the current set.
1149
+
1150
+ The update reads the subscription first and carries `archived` and `skip_if_empty` forward when your patch omits them. That is load-bearing: `PUT /api/pulse/:id` defaults every omitted key, and both of those default to `false`, so a raw name-only PUT would un-archive the subscription and clear `skip_if_empty`.
1151
+
1152
+ ```sh
1153
+ mb subscription update 1 --body '{"name":"Daily orders"}'
1154
+ mb subscription update 1 --body '{"channels":[{"channel_type":"email","schedule_type":"weekly","schedule_hour":8,"schedule_day":"mon","recipients":[{"email":"team@example.com"}]}]}'
1155
+ mb subscription update 1 --file patch.json
1156
+ ```
1157
+
1158
+ | Flag | Description |
1159
+ | --------------- | --------------------------------------------------- |
1160
+ | `--body <json>` | Inline JSON body. |
1161
+ | `--file <path>` | Path to JSON body file. Use `-` to read from stdin. |
1162
+
1163
+ ### `mb subscription archive <id>`
1164
+
1165
+ Archive a subscription, stopping all deliveries. Also disables every channel on it, so restoring means un-archiving and then re-enabling the channels.
1166
+
1167
+ ```sh
1168
+ mb subscription archive 1
1169
+ mb subscription archive 1 --json
1170
+ ```
1171
+
1172
+ ## Question alerts
1173
+
1174
+ Read and write question alerts on `/api/notification`. An alert watches one card and delivers it when a send condition fires on a schedule: `has_result` (the card returned any row), or `goal_above` / `goal_below` (both need a goal set on the card's visualization).
1175
+
1176
+ Schedules are Quartz cron strings — `0 0 8 * * ? *` is daily at 08:00. `/api/notification` also carries Metabase's internal system-event notifications; `mb alert` scopes every request to card alerts, so they never appear.
1177
+
1178
+ Archiving deactivates an alert rather than deleting it: `mb alert list --include-inactive` still finds it, and `mb alert update <id> --body '{"active":true}'` brings it back.
1179
+
1180
+ ### `mb alert list`
1181
+
1182
+ ```sh
1183
+ mb alert list
1184
+ mb alert list --card-id 94 --json
1185
+ mb alert list --include-inactive --json
1186
+ ```
1187
+
1188
+ | Flag | Description |
1189
+ | --------------------- | ----------------------------------- |
1190
+ | `--card-id <id>` | Only alerts watching this card. |
1191
+ | `--creator-id <id>` | Only alerts created by this user. |
1192
+ | `--recipient-id <id>` | Only alerts delivered to this user. |
1193
+ | `--include-inactive` | Include archived (inactive) alerts. |
1194
+
1195
+ Listing from the question side is `mb card alerts <card-id>`.
1196
+
1197
+ ### `mb alert get <id>`
1198
+
1199
+ ```sh
1200
+ mb alert get 9
1201
+ mb alert get 9 --full --json
1202
+ ```
1203
+
1204
+ The compact view returns `id`, `active`, `creator_id`, the `payload` (`card_id`, `send_condition`, `send_once`), the cron `subscriptions`, and the `handlers` with their recipients. `--full` adds the hydrated card the alert watches.
1205
+
1206
+ ### `mb alert create`
1207
+
1208
+ The body needs `payload`, `subscriptions`, and `handlers`. Each handler names a `channel_type` (`channel/email`, `channel/slack`, `channel/http`) and its `recipients`; a recipient is `{"type":"notification-recipient/user","user_id":3}` or `{"type":"notification-recipient/raw-value","details":{"value":"a@b.com"}}`.
1209
+
1210
+ ```sh
1211
+ mb alert create --body '{"payload":{"card_id":94,"send_condition":"has_result"},"subscriptions":[{"cron_schedule":"0 0 8 * * ? *"}],"handlers":[{"channel_type":"channel/email","recipients":[{"type":"notification-recipient/raw-value","details":{"value":"team@example.com"}}]}]}'
1212
+ cat alert.json | mb alert create
1213
+ mb alert create --file alert.json
1214
+ ```
1215
+
1216
+ | Flag | Description |
1217
+ | --------------- | --------------------------------------------------- |
1218
+ | `--body <json>` | Inline JSON body. |
1219
+ | `--file <path>` | Path to JSON body file. Use `-` to read from stdin. |
1220
+
1221
+ ### `mb alert update <id>`
1222
+
1223
+ Patches the top-level fields you send: `payload`, `subscriptions`, `handlers`, `active`. Fields inside `payload` merge over the current ones, so `{"payload":{"send_condition":"goal_above"}}` keeps the card. `subscriptions` and `handlers` each replace the whole list — `mb alert get <id>` prints the current set. An alert cannot be moved to a different card.
1224
+
1225
+ The update reads the alert first and merges your patch over it. That is load-bearing: `PUT /api/notification/:id` is a spec-diff, and a body whose `id` doesn't match the stored one makes Metabase delete the alert and insert a replacement under a fresh id.
1226
+
1227
+ ```sh
1228
+ mb alert update 9 --body '{"payload":{"send_condition":"goal_above"}}'
1229
+ mb alert update 9 --body '{"subscriptions":[{"cron_schedule":"0 0 9 * * ? *"}]}'
1230
+ mb alert update 9 --body '{"active":true}'
1231
+ ```
1232
+
1233
+ | Flag | Description |
1234
+ | --------------- | --------------------------------------------------- |
1235
+ | `--body <json>` | Inline JSON body. |
1236
+ | `--file <path>` | Path to JSON body file. Use `-` to read from stdin. |
1237
+
1238
+ ### `mb alert send <id>`
1239
+
1240
+ Send an alert now, off-schedule. Delivers to every handler, ignoring the send condition. The channel must be configured on the server (email needs SMTP set up).
1241
+
1242
+ ```sh
1243
+ mb alert send 9
1244
+ mb alert send 9 --json
1245
+ ```
1246
+
1247
+ ### `mb alert archive <id>`
1248
+
1249
+ Archive an alert, stopping all deliveries and dropping its scheduled trigger.
1250
+
1251
+ ```sh
1252
+ mb alert archive 9
1253
+ mb alert archive 9 --json
1254
+ ```
1255
+
1073
1256
  ## Collections
1074
1257
 
1075
1258
  Read collections on `/api/collection`. Collections are the folders that contain cards, dashboards, and other collections. The list endpoint surfaces a virtual root collection (id `"root"`) alongside regular numeric ids; the get endpoint accepts only the numeric id.
@@ -1177,7 +1360,7 @@ mb library create --json
1177
1360
 
1178
1361
  ### `mb library publish`
1179
1362
 
1180
- Publish tables (and their upstream dependencies) into the Library's Data collection (`POST /api/ee/data-studio/table/publish-tables`). The target Data collection is resolved automatically and the Library is created if it doesn't exist yet — there's no collection id to pass.
1363
+ Publish tables (and their upstream dependencies) into the Library's Data collection (`POST /api/ee/data-studio/table/publish-tables`). The target Data collection is resolved automatically and the Library is created if it doesn't exist yet — there's no collection id to pass. Publishing does not add the Data collection to the git-sync scope; on an instance with remote sync configured, the command warns on stderr with the `mb git-sync add-collection <id>` invocation that makes exports carry the published tables' metadata.
1181
1364
 
1182
1365
  ```sh
1183
1366
  mb library publish --table-ids 1,2,3
@@ -1328,7 +1511,7 @@ Drive Metabase Enterprise Remote Sync (`/api/ee/remote-sync`) — import / expor
1328
1511
 
1329
1512
  ### `mb git-sync status`
1330
1513
 
1331
- Roll up the current sync state in one call: configured branch, dirty flag, and the most recent sync task (or `null` if none has ever run).
1514
+ Roll up the current sync state in one call: configured branch, dirty flag, the most recent sync task (or `null` if none has ever run), and the collections marked for sync.
1332
1515
 
1333
1516
  ```sh
1334
1517
  mb git-sync status
@@ -1664,15 +1847,19 @@ mb skills path core # one path
1664
1847
 
1665
1848
  Bundled skills:
1666
1849
 
1667
- | Name | Use |
1668
- | --------------------- | --------------------------------------------------------------------------------------------- |
1669
- | `core` | Top-level guide: auth, flag conventions, output flags, body input, every command group |
1670
- | `transform` | Authoring and running transforms (native SQL + MBQL 5), iteration, run inspection |
1671
- | `data-transformation` | Raw, normalized source database → clean, wide, analysis-ready tables for a non-technical user |
1672
- | `semantic-layer` | Turning clean tables into reusable segments, measures, and metrics for a non-technical user |
1673
- | `robot-data-engineer` | Front-door router for the whole journey (raw → tables → definitions → dashboards) |
1674
- | `document` | Authoring document bodies: the TipTap JSON tree, embedding cards, entity links |
1675
- | `git-sync` | Round-tripping Metabase content to/from a git remote |
1850
+ | Name | Use |
1851
+ | --------------- | --------------------------------------------------------------------------------------- |
1852
+ | `core` | Top-level guide: auth, flag conventions, output flags, body input, every command group |
1853
+ | `data-workflow` | Front-door router for the whole journey (raw → clean tables → definitions → dashboards) |
1854
+ | `mbql` | Authoring and fixing MBQL 5 query bodies |
1855
+ | `native-sql` | Native SQL query bodies: template tags, field filters, snippets, card references |
1856
+ | `visualization` | Choosing a card's `display` and authoring `visualization_settings` |
1857
+ | `dashboard` | Interactive dashboards: filter wiring, linked filters, cross-filtering, click behavior |
1858
+ | `metadata` | Semantic types, FK targets, dropdown behavior, and the features each unlocks |
1859
+ | `transform` | Authoring and running transforms (native SQL + MBQL 5), iteration, run inspection |
1860
+ | `notification` | Scheduled delivery: question alerts and dashboard subscriptions |
1861
+ | `document` | Authoring document bodies: the TipTap JSON tree, embedding cards, entity links |
1862
+ | `git-sync` | Round-tripping Metabase content to/from a git remote |
1676
1863
 
1677
1864
  Discovery surfaces:
1678
1865
 
@@ -1,7 +1,7 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
2
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
3
- import { parseId } from "./parse-id-CD54Chc5.mjs";
4
- import { REMOTE_SYNC_PATHS } from "./poll-task-CpHGQOd5.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
3
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
4
+ import { REMOTE_SYNC_PATHS } from "./poll-task-CiB1o1wG.mjs";
5
5
  import { z } from "zod";
6
6
 
7
7
  //#region src/commands/git-sync/add-collection.ts
@@ -0,0 +1,9 @@
1
+ import "./capabilities-1HTHeDa4.mjs";
2
+ import "./command-augment-D9pI9Vbh.mjs";
3
+ import "./runtime-CPIHg_Zg.mjs";
4
+ import "./parse-id-waEVK-uR.mjs";
5
+ import "./poll-rqLkEJVP.mjs";
6
+ import "./poll-task-CiB1o1wG.mjs";
7
+ import { SyncSettingsUpdateResult, add_collection_default, setCollectionRemoteSynced, syncSettingsUpdateView } from "./add-collection-B-Pf12HY.mjs";
8
+
9
+ export { add_collection_default as default };
@@ -0,0 +1,26 @@
1
+ import "./command-augment-D9pI9Vbh.mjs";
2
+ import { defineCommandGroup } from "./group-DfTvzGz-.mjs";
3
+
4
+ //#region src/commands/alert/index.ts
5
+ var alert_default = defineCommandGroup({
6
+ name: "alert",
7
+ description: "Manage Metabase question alerts (scheduled card delivery on a send condition)",
8
+ skills: [{
9
+ skill: "notification",
10
+ purpose: "send conditions, cron schedules, handlers and recipients, testing a send"
11
+ }, {
12
+ skill: "core",
13
+ purpose: "the card an alert watches and how to find its id"
14
+ }],
15
+ subCommands: {
16
+ list: () => import("./list-AyGEaws8.mjs").then((mod) => mod.default),
17
+ get: () => import("./get-4rA8pbRu.mjs").then((mod) => mod.default),
18
+ create: () => import("./create-DOpa2TmH.mjs").then((mod) => mod.default),
19
+ update: () => import("./update-C-ChEcI9.mjs").then((mod) => mod.default),
20
+ send: () => import("./send-BeFpVrwD.mjs").then((mod) => mod.default),
21
+ archive: () => import("./archive-DyPsHSFb.mjs").then((mod) => mod.default)
22
+ }
23
+ });
24
+
25
+ //#endregion
26
+ export { alert_default as default };
@@ -0,0 +1,49 @@
1
+ import { connectionFlags, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-1HTHeDa4.mjs";
2
+ import "./command-augment-D9pI9Vbh.mjs";
3
+ import "./cron-93wjhtrP.mjs";
4
+ import { CARD_PAYLOAD_TYPE, Notification, notificationView } from "./notification-BR5wehqg.mjs";
5
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
6
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
7
+ import { AlertListEnvelope } from "./list-SiSfX4wl.mjs";
8
+ import { z } from "zod";
9
+
10
+ //#region src/commands/card/alerts.ts
11
+ const NotificationApiList = z.array(Notification);
12
+ var alerts_default = defineMetabaseCommand({
13
+ meta: {
14
+ name: "alerts",
15
+ description: "List alerts watching a card"
16
+ },
17
+ details: "Manage them with `mb alert create|update|send|archive`, which take the alert id printed here.",
18
+ capabilities: { minVersion: 58 },
19
+ args: {
20
+ ...outputFlags,
21
+ ...profileFlag,
22
+ ...connectionFlags,
23
+ includeInactive: {
24
+ type: "boolean",
25
+ description: "Include archived (inactive) alerts",
26
+ alias: "include-inactive"
27
+ },
28
+ id: {
29
+ type: "positional",
30
+ description: "Card id",
31
+ required: true
32
+ }
33
+ },
34
+ outputSchema: AlertListEnvelope,
35
+ examples: ["mb card alerts 94", "mb card alerts 94 --include-inactive --json"],
36
+ async run({ args, ctx, getClient }) {
37
+ const id = parseId(args.id);
38
+ const client = await getClient();
39
+ const items = await client.requestParsed(NotificationApiList, "/api/notification", { query: {
40
+ payload_type: CARD_PAYLOAD_TYPE,
41
+ card_id: id,
42
+ include_inactive: args.includeInactive || void 0
43
+ } });
44
+ renderList(wrapList(items), notificationView, ctx);
45
+ }
46
+ });
47
+
48
+ //#endregion
49
+ export { alerts_default as default };
@@ -1,9 +1,9 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import "./input-DzbvxKYU.mjs";
5
- import { parseId } from "./parse-id-CD54Chc5.mjs";
6
- import { UploadUpdateResult, readCsvFile, requireUploadFilePath, updateTableFromCsv, uploadUpdateResultView } from "./requests-qyh002pL.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import "./input-BpXlmJ5J.mjs";
6
+ import { UploadUpdateResult, readCsvFile, requireUploadFilePath, updateTableFromCsv, uploadUpdateResultView } from "./requests-Pc0u7PQS.mjs";
7
7
 
8
8
  //#region src/commands/upload/append.ts
9
9
  var append_default = defineMetabaseCommand({
@@ -1,8 +1,8 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import { parseId } from "./parse-id-CD54Chc5.mjs";
5
- import { Document, documentView } from "./document-CL4ML5FN.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import { Document, documentView } from "./document-C7IR6T8c.mjs";
6
6
 
7
7
  //#region src/commands/document/archive.ts
8
8
  var archive_default = defineMetabaseCommand({
@@ -1,9 +1,9 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import { parseId } from "./parse-id-CD54Chc5.mjs";
5
- import { revisionMessageFlag } from "./revision-message-flag-CHzX0cqV.mjs";
6
- import { Segment, segmentView } from "./segment-BPb1H6DW.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import { revisionMessageFlag } from "./revision-message-flag-B4BxzDXJ.mjs";
6
+ import { Segment, segmentView } from "./segment-cwIOOF0v.mjs";
7
7
 
8
8
  //#region src/commands/segment/archive.ts
9
9
  var archive_default = defineMetabaseCommand({
@@ -1,8 +1,8 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import { parseId } from "./parse-id-CD54Chc5.mjs";
5
- import { Timeline, timelineView } from "./timeline-BCTRThc-.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import { Timeline, timelineView } from "./timeline-BNwnJ3g9.mjs";
6
6
 
7
7
  //#region src/commands/timeline/archive.ts
8
8
  var archive_default = defineMetabaseCommand({
@@ -1,8 +1,8 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import { parseId } from "./parse-id-CD54Chc5.mjs";
5
- import { TimelineEvent, timelineEventView } from "./timeline-BCTRThc-.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import { TimelineEvent, timelineEventView } from "./timeline-BNwnJ3g9.mjs";
6
6
 
7
7
  //#region src/commands/timeline-event/archive.ts
8
8
  var archive_default = defineMetabaseCommand({
@@ -1,8 +1,8 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import { parseId } from "./parse-id-CD54Chc5.mjs";
5
- import { Snippet, snippetView } from "./snippet-DWiXNy4T.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import { Snippet, snippetView } from "./snippet-1xYckIwc.mjs";
6
6
 
7
7
  //#region src/commands/snippet/archive.ts
8
8
  var archive_default = defineMetabaseCommand({
@@ -1,8 +1,8 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import { parseId } from "./parse-id-CD54Chc5.mjs";
5
- import { Collection, collectionView } from "./collection-CFoLPrY5.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import { Collection, collectionView } from "./collection-BrrjbPLN.mjs";
6
6
 
7
7
  //#region src/commands/collection/archive.ts
8
8
  var archive_default = defineMetabaseCommand({
@@ -1,10 +1,10 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import "./embedding-CKdw8q7p.mjs";
5
- import "./parameter-BZ6y-Gfs.mjs";
6
- import { parseId } from "./parse-id-CD54Chc5.mjs";
7
- import { Dashboard, dashboardView } from "./dashboard-B-MTpfeS.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import "./embedding-B0x9CPkU.mjs";
6
+ import "./parameter-hCQ80jnc.mjs";
7
+ import { Dashboard, dashboardView } from "./dashboard-BSCXTX4H.mjs";
8
8
 
9
9
  //#region src/commands/dashboard/archive.ts
10
10
  var archive_default = defineMetabaseCommand({
@@ -1,9 +1,9 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import { parseId } from "./parse-id-CD54Chc5.mjs";
5
- import { Measure, measureView } from "./measure-S9WszHre.mjs";
6
- import { revisionMessageFlag } from "./revision-message-flag-CHzX0cqV.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import { Measure, measureView } from "./measure-DH3ow2ko.mjs";
6
+ import { revisionMessageFlag } from "./revision-message-flag-B4BxzDXJ.mjs";
7
7
 
8
8
  //#region src/commands/measure/archive.ts
9
9
  var archive_default = defineMetabaseCommand({
@@ -0,0 +1,39 @@
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
+ import "./command-augment-D9pI9Vbh.mjs";
3
+ import "./cron-93wjhtrP.mjs";
4
+ import { Notification, notificationView } from "./notification-BR5wehqg.mjs";
5
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
6
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
7
+ import { patchAlert } from "./patch-DrMVqf34.mjs";
8
+ import { describeAlert } from "./summary-D1fKnwE3.mjs";
9
+
10
+ //#region src/commands/alert/archive.ts
11
+ var archive_default = defineMetabaseCommand({
12
+ meta: {
13
+ name: "archive",
14
+ description: "Archive a question alert by id, stopping all deliveries"
15
+ },
16
+ details: "Deactivates the alert and drops its scheduled trigger. `mb alert list --include-inactive` still shows it, and `mb alert update <id> --body '{\"active\":true}'` brings it back.",
17
+ capabilities: { minVersion: 58 },
18
+ args: {
19
+ ...outputFlags,
20
+ ...profileFlag,
21
+ ...connectionFlags,
22
+ id: {
23
+ type: "positional",
24
+ description: "Alert id",
25
+ required: true
26
+ }
27
+ },
28
+ outputSchema: Notification,
29
+ examples: ["mb alert archive 9", "mb alert archive 9 --json"],
30
+ async run({ args, ctx, getClient }) {
31
+ const id = parseId(args.id);
32
+ const client = await getClient();
33
+ const archived = await patchAlert(client, id, { active: false });
34
+ renderSummary(archived, notificationView, describeAlert("Archived", archived), ctx);
35
+ }
36
+ });
37
+
38
+ //#endregion
39
+ export { archive_default as default };
@@ -1,11 +1,11 @@
1
- import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import "./embedding-CKdw8q7p.mjs";
5
- import "./field-DsXTeqBy.mjs";
6
- import "./parameter-BZ6y-Gfs.mjs";
7
- import { Card, cardView } from "./card-B8G5jQQT.mjs";
8
- import { parseId } from "./parse-id-CD54Chc5.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import "./embedding-B0x9CPkU.mjs";
6
+ import "./field-RYBTW2KS.mjs";
7
+ import "./parameter-hCQ80jnc.mjs";
8
+ import { Card, cardView } from "./card-BFRRyTGs.mjs";
9
9
 
10
10
  //#region src/commands/card/archive.ts
11
11
  var archive_default = defineMetabaseCommand({
@@ -0,0 +1,38 @@
1
+ import { connectionFlags, outputFlags, profileFlag, renderSummary } from "./capabilities-1HTHeDa4.mjs";
2
+ import "./command-augment-D9pI9Vbh.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import { parseId } from "./parse-id-waEVK-uR.mjs";
5
+ import "./parameter-hCQ80jnc.mjs";
6
+ import { Pulse, pulseView } from "./pulse-C8q469KD.mjs";
7
+ import { patchSubscription } from "./patch-BpjI9BOz.mjs";
8
+
9
+ //#region src/commands/subscription/archive.ts
10
+ var archive_default = defineMetabaseCommand({
11
+ meta: {
12
+ name: "archive",
13
+ description: "Archive a dashboard subscription by id, stopping all deliveries"
14
+ },
15
+ details: "Archiving also disables every channel on the subscription. Restore it with `mb subscription update <id> --body '{\"archived\":false}'`, then re-enable its channels.",
16
+ capabilities: { minVersion: 58 },
17
+ args: {
18
+ ...outputFlags,
19
+ ...profileFlag,
20
+ ...connectionFlags,
21
+ id: {
22
+ type: "positional",
23
+ description: "Subscription id",
24
+ required: true
25
+ }
26
+ },
27
+ outputSchema: Pulse,
28
+ examples: ["mb subscription archive 1", "mb subscription archive 1 --json"],
29
+ async run({ args, ctx, getClient }) {
30
+ const id = parseId(args.id);
31
+ const client = await getClient();
32
+ const archived = await patchSubscription(client, id, { archived: true });
33
+ renderSummary(archived, pulseView, `Archived subscription ${archived.id}.`, ctx);
34
+ }
35
+ });
36
+
37
+ //#endregion
38
+ export { archive_default as default };
@@ -1,5 +1,5 @@
1
1
  import "./command-augment-D9pI9Vbh.mjs";
2
- import { defineCommandGroup } from "./group-CILtQqCL.mjs";
2
+ import { defineCommandGroup } from "./group-DfTvzGz-.mjs";
3
3
 
4
4
  //#region src/commands/auth/index.ts
5
5
  var auth_default = defineCommandGroup({
@@ -11,10 +11,10 @@ var auth_default = defineCommandGroup({
11
11
  purpose: "authentication and named profiles"
12
12
  }],
13
13
  subCommands: {
14
- login: () => import("./login-jy9rbYev.mjs").then((m) => m.default),
15
- status: () => import("./status-B5ar0uXc.mjs").then((m) => m.default),
16
- list: () => import("./list-De82cXvn.mjs").then((m) => m.default),
17
- logout: () => import("./logout-CRbk1SuY.mjs").then((m) => m.default)
14
+ login: () => import("./login-zUCMDLC8.mjs").then((m) => m.default),
15
+ status: () => import("./status-BMEdl-_G.mjs").then((m) => m.default),
16
+ list: () => import("./list-CG3ec9BZ.mjs").then((m) => m.default),
17
+ logout: () => import("./logout-BFh7QHx6.mjs").then((m) => m.default)
18
18
  }
19
19
  });
20
20
 
@@ -1,6 +1,6 @@
1
- import { ConfigError } from "./capabilities-DOTcPraV.mjs";
2
- import { parseJson } from "./runtime-Ab96yYlM.mjs";
3
- import { DEFAULT_FLAG_NAME, readInput } from "./input-DzbvxKYU.mjs";
1
+ import { ConfigError } from "./capabilities-1HTHeDa4.mjs";
2
+ import { parseJson } from "./runtime-CPIHg_Zg.mjs";
3
+ import { DEFAULT_FLAG_NAME, readInput } from "./input-BpXlmJ5J.mjs";
4
4
 
5
5
  //#region src/runtime/body.ts
6
6
  async function readBody(sources, schema) {
@@ -1,8 +1,8 @@
1
- import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-DOTcPraV.mjs";
1
+ import { connectionFlags, listEnvelopeSchema, outputFlags, profileFlag, renderList, wrapList } from "./capabilities-1HTHeDa4.mjs";
2
2
  import "./command-augment-D9pI9Vbh.mjs";
3
- import { defineMetabaseCommand } from "./runtime-Ab96yYlM.mjs";
4
- import "./poll-DVF9EnEb.mjs";
5
- import { REMOTE_SYNC_PATHS } from "./poll-task-CpHGQOd5.mjs";
3
+ import { defineMetabaseCommand } from "./runtime-CPIHg_Zg.mjs";
4
+ import "./poll-rqLkEJVP.mjs";
5
+ import { REMOTE_SYNC_PATHS } from "./poll-task-CiB1o1wG.mjs";
6
6
  import { z } from "zod";
7
7
 
8
8
  //#region src/commands/git-sync/branches.ts