@hubspot/cli 7.7.19-experimental.3 → 7.7.21-experimental.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (696) hide show
  1. package/api/__tests__/migrate.test.d.ts +1 -0
  2. package/api/__tests__/migrate.test.js +181 -0
  3. package/api/migrate.js +14 -22
  4. package/bin/cli.js +92 -97
  5. package/bin/hs +2 -2
  6. package/bin/hscms +2 -2
  7. package/bin/silenceErrors.js +1 -2
  8. package/commands/__tests__/account.test.d.ts +1 -0
  9. package/commands/__tests__/account.test.js +69 -0
  10. package/commands/__tests__/auth.test.d.ts +1 -0
  11. package/commands/__tests__/auth.test.js +38 -0
  12. package/commands/__tests__/cms.test.d.ts +1 -0
  13. package/commands/__tests__/cms.test.js +44 -0
  14. package/commands/__tests__/config.test.d.ts +1 -0
  15. package/commands/__tests__/config.test.js +44 -0
  16. package/commands/__tests__/create.test.d.ts +1 -0
  17. package/commands/__tests__/create.test.js +33 -0
  18. package/commands/__tests__/customObject.test.d.ts +1 -0
  19. package/commands/__tests__/customObject.test.js +49 -0
  20. package/commands/__tests__/doctor.test.d.ts +1 -0
  21. package/commands/__tests__/doctor.test.js +134 -0
  22. package/commands/__tests__/feedback.test.d.ts +1 -0
  23. package/commands/__tests__/feedback.test.js +24 -0
  24. package/commands/__tests__/fetch.test.d.ts +1 -0
  25. package/commands/__tests__/fetch.test.js +57 -0
  26. package/commands/__tests__/filemanager.test.d.ts +1 -0
  27. package/commands/__tests__/filemanager.test.js +45 -0
  28. package/commands/__tests__/function.test.d.ts +1 -0
  29. package/commands/__tests__/function.test.js +46 -0
  30. package/commands/__tests__/getStarted.test.d.ts +1 -0
  31. package/commands/__tests__/getStarted.test.js +165 -0
  32. package/commands/__tests__/hubdb.test.d.ts +1 -0
  33. package/commands/__tests__/hubdb.test.js +50 -0
  34. package/commands/__tests__/init.test.d.ts +1 -0
  35. package/commands/__tests__/init.test.js +42 -0
  36. package/commands/__tests__/lint.test.d.ts +1 -0
  37. package/commands/__tests__/lint.test.js +33 -0
  38. package/commands/__tests__/list.test.d.ts +1 -0
  39. package/commands/__tests__/list.test.js +42 -0
  40. package/commands/__tests__/logs.test.d.ts +1 -0
  41. package/commands/__tests__/logs.test.js +71 -0
  42. package/commands/__tests__/mcp.test.d.ts +1 -0
  43. package/commands/__tests__/mcp.test.js +46 -0
  44. package/commands/__tests__/mv.test.d.ts +1 -0
  45. package/commands/__tests__/mv.test.js +46 -0
  46. package/commands/__tests__/open.test.d.ts +1 -0
  47. package/commands/__tests__/open.test.js +58 -0
  48. package/commands/__tests__/project.test.d.ts +1 -0
  49. package/commands/__tests__/project.test.js +95 -0
  50. package/commands/__tests__/remove.test.d.ts +1 -0
  51. package/commands/__tests__/remove.test.js +39 -0
  52. package/commands/__tests__/sandbox.test.d.ts +1 -0
  53. package/commands/__tests__/sandbox.test.js +44 -0
  54. package/commands/__tests__/secret.test.d.ts +1 -0
  55. package/commands/__tests__/secret.test.js +49 -0
  56. package/commands/__tests__/testAccount.test.d.ts +1 -0
  57. package/commands/__tests__/testAccount.test.js +55 -0
  58. package/commands/__tests__/theme.test.d.ts +1 -0
  59. package/commands/__tests__/theme.test.js +47 -0
  60. package/commands/account/__tests__/auth.test.d.ts +1 -0
  61. package/commands/account/__tests__/auth.test.js +26 -0
  62. package/commands/account/__tests__/clean.test.d.ts +1 -0
  63. package/commands/account/__tests__/clean.test.js +28 -0
  64. package/commands/account/__tests__/createOverride.test.d.ts +1 -0
  65. package/commands/account/__tests__/createOverride.test.js +32 -0
  66. package/commands/account/__tests__/info.test.d.ts +1 -0
  67. package/commands/account/__tests__/info.test.js +28 -0
  68. package/commands/account/__tests__/list.test.d.ts +1 -0
  69. package/commands/account/__tests__/list.test.js +28 -0
  70. package/commands/account/__tests__/remove.test.d.ts +1 -0
  71. package/commands/account/__tests__/remove.test.js +36 -0
  72. package/commands/account/__tests__/removeOverride.d.ts +1 -0
  73. package/commands/account/__tests__/removeOverride.js +25 -0
  74. package/commands/account/__tests__/rename.test.d.ts +1 -0
  75. package/commands/account/__tests__/rename.test.js +42 -0
  76. package/commands/account/__tests__/use.test.d.ts +1 -0
  77. package/commands/account/__tests__/use.test.js +32 -0
  78. package/commands/account/auth.d.ts +1 -1
  79. package/commands/account/auth.js +65 -67
  80. package/commands/account/clean.d.ts +1 -1
  81. package/commands/account/clean.js +55 -60
  82. package/commands/account/createOverride.d.ts +1 -1
  83. package/commands/account/createOverride.js +52 -57
  84. package/commands/account/info.d.ts +1 -1
  85. package/commands/account/info.js +33 -35
  86. package/commands/account/list.d.ts +1 -1
  87. package/commands/account/list.js +43 -45
  88. package/commands/account/remove.d.ts +1 -1
  89. package/commands/account/remove.js +37 -42
  90. package/commands/account/removeOverride.d.ts +1 -1
  91. package/commands/account/removeOverride.js +38 -43
  92. package/commands/account/rename.d.ts +1 -1
  93. package/commands/account/rename.js +18 -20
  94. package/commands/account/use.d.ts +1 -1
  95. package/commands/account/use.js +29 -31
  96. package/commands/account.d.ts +1 -1
  97. package/commands/account.js +23 -28
  98. package/commands/app/__tests__/migrate.test.d.ts +1 -0
  99. package/commands/app/__tests__/migrate.test.js +124 -0
  100. package/commands/app/migrate.d.ts +2 -2
  101. package/commands/app/migrate.js +40 -43
  102. package/commands/app/secret/__tests__/add.test.d.ts +1 -0
  103. package/commands/app/secret/__tests__/add.test.js +28 -0
  104. package/commands/app/secret/__tests__/delete.test.d.ts +1 -0
  105. package/commands/app/secret/__tests__/delete.test.js +28 -0
  106. package/commands/app/secret/__tests__/list.test.d.ts +1 -0
  107. package/commands/app/secret/__tests__/list.test.js +25 -0
  108. package/commands/app/secret/__tests__/update.test.d.ts +1 -0
  109. package/commands/app/secret/__tests__/update.test.js +28 -0
  110. package/commands/app/secret/add.d.ts +1 -1
  111. package/commands/app/secret/add.js +28 -30
  112. package/commands/app/secret/delete.d.ts +1 -1
  113. package/commands/app/secret/delete.js +34 -36
  114. package/commands/app/secret/list.d.ts +1 -1
  115. package/commands/app/secret/list.js +25 -27
  116. package/commands/app/secret/update.d.ts +1 -1
  117. package/commands/app/secret/update.js +32 -34
  118. package/commands/app/secret.d.ts +1 -1
  119. package/commands/app/secret.js +12 -17
  120. package/commands/app.d.ts +1 -1
  121. package/commands/app.js +6 -16
  122. package/commands/auth.d.ts +1 -1
  123. package/commands/auth.js +70 -72
  124. package/commands/cms/convertFields.d.ts +1 -1
  125. package/commands/cms/convertFields.js +34 -39
  126. package/commands/cms/getReactModule.d.ts +1 -1
  127. package/commands/cms/getReactModule.js +32 -37
  128. package/commands/cms/lighthouseScore.d.ts +1 -1
  129. package/commands/cms/lighthouseScore.js +67 -72
  130. package/commands/cms.d.ts +1 -1
  131. package/commands/cms.js +11 -16
  132. package/commands/completion.d.ts +1 -1
  133. package/commands/completion.js +10 -15
  134. package/commands/config/migrate.d.ts +1 -1
  135. package/commands/config/migrate.js +27 -32
  136. package/commands/config/set.d.ts +1 -1
  137. package/commands/config/set.js +23 -25
  138. package/commands/config.d.ts +1 -1
  139. package/commands/config.js +8 -13
  140. package/commands/create/api-sample.d.ts +1 -1
  141. package/commands/create/api-sample.js +28 -33
  142. package/commands/create/app.d.ts +1 -1
  143. package/commands/create/app.js +3 -5
  144. package/commands/create/function.d.ts +1 -1
  145. package/commands/create/function.js +9 -11
  146. package/commands/create/index.d.ts +1 -1
  147. package/commands/create/index.js +19 -24
  148. package/commands/create/module.d.ts +1 -1
  149. package/commands/create/module.js +12 -14
  150. package/commands/create/react-app.d.ts +1 -1
  151. package/commands/create/react-app.js +3 -5
  152. package/commands/create/template.d.ts +1 -1
  153. package/commands/create/template.js +12 -14
  154. package/commands/create/vue-app.d.ts +1 -1
  155. package/commands/create/vue-app.js +3 -5
  156. package/commands/create/webpack-serverless.d.ts +1 -1
  157. package/commands/create/webpack-serverless.js +3 -5
  158. package/commands/create/website-theme.d.ts +1 -1
  159. package/commands/create/website-theme.js +5 -7
  160. package/commands/create.d.ts +2 -2
  161. package/commands/create.js +30 -35
  162. package/commands/customObject/__tests__/create.test.d.ts +1 -0
  163. package/commands/customObject/__tests__/create.test.js +40 -0
  164. package/commands/customObject/__tests__/schema.test.d.ts +1 -0
  165. package/commands/customObject/__tests__/schema.test.js +53 -0
  166. package/commands/customObject/create.d.ts +1 -1
  167. package/commands/customObject/create.js +28 -30
  168. package/commands/customObject/schema/__tests__/create.test.d.ts +1 -0
  169. package/commands/customObject/schema/__tests__/create.test.js +28 -0
  170. package/commands/customObject/schema/__tests__/delete.test.d.ts +1 -0
  171. package/commands/customObject/schema/__tests__/delete.test.js +42 -0
  172. package/commands/customObject/schema/__tests__/fetch-all.test.d.ts +1 -0
  173. package/commands/customObject/schema/__tests__/fetch-all.test.js +41 -0
  174. package/commands/customObject/schema/__tests__/fetch.test.d.ts +1 -0
  175. package/commands/customObject/schema/__tests__/fetch.test.js +45 -0
  176. package/commands/customObject/schema/__tests__/list.test.d.ts +1 -0
  177. package/commands/customObject/schema/__tests__/list.test.js +29 -0
  178. package/commands/customObject/schema/__tests__/update.test.d.ts +1 -0
  179. package/commands/customObject/schema/__tests__/update.test.js +40 -0
  180. package/commands/customObject/schema/create.d.ts +1 -1
  181. package/commands/customObject/schema/create.js +28 -30
  182. package/commands/customObject/schema/delete.d.ts +1 -1
  183. package/commands/customObject/schema/delete.js +24 -26
  184. package/commands/customObject/schema/fetch-all.d.ts +1 -1
  185. package/commands/customObject/schema/fetch-all.js +22 -24
  186. package/commands/customObject/schema/fetch.d.ts +1 -1
  187. package/commands/customObject/schema/fetch.js +24 -26
  188. package/commands/customObject/schema/list.d.ts +1 -1
  189. package/commands/customObject/schema/list.js +13 -15
  190. package/commands/customObject/schema/update.d.ts +1 -1
  191. package/commands/customObject/schema/update.js +32 -34
  192. package/commands/customObject/schema.d.ts +1 -1
  193. package/commands/customObject/schema.js +17 -22
  194. package/commands/customObject.d.ts +1 -1
  195. package/commands/customObject.js +13 -18
  196. package/commands/doctor.d.ts +1 -1
  197. package/commands/doctor.js +28 -33
  198. package/commands/feedback.d.ts +1 -1
  199. package/commands/feedback.js +19 -24
  200. package/commands/fetch.d.ts +1 -1
  201. package/commands/fetch.js +28 -31
  202. package/commands/filemanager/__tests__/fetch.test.d.ts +1 -0
  203. package/commands/filemanager/__tests__/fetch.test.js +32 -0
  204. package/commands/filemanager/__tests__/upload.test.d.ts +1 -0
  205. package/commands/filemanager/__tests__/upload.test.js +30 -0
  206. package/commands/filemanager/fetch.d.ts +1 -1
  207. package/commands/filemanager/fetch.js +23 -25
  208. package/commands/filemanager/upload.d.ts +1 -1
  209. package/commands/filemanager/upload.js +39 -44
  210. package/commands/filemanager.d.ts +1 -1
  211. package/commands/filemanager.js +8 -13
  212. package/commands/function/deploy.d.ts +1 -1
  213. package/commands/function/deploy.js +35 -40
  214. package/commands/function/list.d.ts +1 -1
  215. package/commands/function/list.js +24 -29
  216. package/commands/function/server.d.ts +1 -1
  217. package/commands/function/server.js +15 -17
  218. package/commands/function.d.ts +1 -1
  219. package/commands/function.js +12 -18
  220. package/commands/getStarted.d.ts +1 -1
  221. package/commands/getStarted.js +124 -130
  222. package/commands/hubdb/__tests__/clear.test.d.ts +1 -0
  223. package/commands/hubdb/__tests__/clear.test.js +28 -0
  224. package/commands/hubdb/__tests__/create.test.d.ts +1 -0
  225. package/commands/hubdb/__tests__/create.test.js +28 -0
  226. package/commands/hubdb/__tests__/delete.test.d.ts +1 -0
  227. package/commands/hubdb/__tests__/delete.test.js +28 -0
  228. package/commands/hubdb/__tests__/fetch.test.d.ts +1 -0
  229. package/commands/hubdb/__tests__/fetch.test.js +28 -0
  230. package/commands/hubdb/__tests__/list.test.d.ts +1 -0
  231. package/commands/hubdb/__tests__/list.test.js +96 -0
  232. package/commands/hubdb/clear.d.ts +1 -1
  233. package/commands/hubdb/clear.js +20 -22
  234. package/commands/hubdb/create.d.ts +1 -1
  235. package/commands/hubdb/create.js +30 -35
  236. package/commands/hubdb/delete.d.ts +1 -1
  237. package/commands/hubdb/delete.js +24 -26
  238. package/commands/hubdb/fetch.d.ts +1 -1
  239. package/commands/hubdb/fetch.js +17 -19
  240. package/commands/hubdb/list.d.ts +1 -1
  241. package/commands/hubdb/list.js +33 -35
  242. package/commands/hubdb.d.ts +1 -1
  243. package/commands/hubdb.js +18 -24
  244. package/commands/init.d.ts +1 -1
  245. package/commands/init.js +83 -88
  246. package/commands/lint.d.ts +1 -1
  247. package/commands/lint.js +24 -26
  248. package/commands/list.d.ts +1 -1
  249. package/commands/list.js +32 -37
  250. package/commands/logs.d.ts +1 -1
  251. package/commands/logs.js +35 -38
  252. package/commands/mcp/__tests__/setup.test.d.ts +1 -0
  253. package/commands/mcp/__tests__/setup.test.js +26 -0
  254. package/commands/mcp/__tests__/start.test.d.ts +1 -0
  255. package/commands/mcp/__tests__/start.test.js +27 -0
  256. package/commands/mcp/setup.d.ts +1 -1
  257. package/commands/mcp/setup.js +17 -19
  258. package/commands/mcp/start.d.ts +1 -1
  259. package/commands/mcp/start.js +29 -34
  260. package/commands/mcp.d.ts +1 -1
  261. package/commands/mcp.js +7 -12
  262. package/commands/module/marketplace-validate.d.ts +1 -1
  263. package/commands/module/marketplace-validate.js +21 -26
  264. package/commands/module.d.ts +1 -1
  265. package/commands/module.js +7 -13
  266. package/commands/mv.d.ts +1 -1
  267. package/commands/mv.js +20 -22
  268. package/commands/open.d.ts +1 -1
  269. package/commands/open.js +19 -21
  270. package/commands/project/__tests__/add.test.d.ts +1 -0
  271. package/commands/project/__tests__/add.test.js +43 -0
  272. package/commands/project/__tests__/create.test.d.ts +1 -0
  273. package/commands/project/__tests__/create.test.js +40 -0
  274. package/commands/project/__tests__/deploy.test.d.ts +1 -0
  275. package/commands/project/__tests__/deploy.test.js +306 -0
  276. package/commands/project/__tests__/devUnifiedFlow.test.d.ts +1 -0
  277. package/commands/project/__tests__/devUnifiedFlow.test.js +414 -0
  278. package/commands/project/__tests__/download.test.d.ts +1 -0
  279. package/commands/project/__tests__/download.test.js +39 -0
  280. package/commands/project/__tests__/fixtures/exampleProject.json +33 -0
  281. package/commands/project/__tests__/installDeps.test.d.ts +1 -0
  282. package/commands/project/__tests__/installDeps.test.js +142 -0
  283. package/commands/project/__tests__/listBuilds.test.d.ts +1 -0
  284. package/commands/project/__tests__/listBuilds.test.js +38 -0
  285. package/commands/project/__tests__/logs.test.d.ts +1 -0
  286. package/commands/project/__tests__/logs.test.js +208 -0
  287. package/commands/project/__tests__/migrate.test.d.ts +1 -0
  288. package/commands/project/__tests__/migrate.test.js +111 -0
  289. package/commands/project/__tests__/migrateApp.test.d.ts +1 -0
  290. package/commands/project/__tests__/migrateApp.test.js +82 -0
  291. package/commands/project/__tests__/open.test.d.ts +1 -0
  292. package/commands/project/__tests__/open.test.js +39 -0
  293. package/commands/project/__tests__/profile.test.d.ts +1 -0
  294. package/commands/project/__tests__/profile.test.js +42 -0
  295. package/commands/project/__tests__/upload.test.d.ts +1 -0
  296. package/commands/project/__tests__/upload.test.js +43 -0
  297. package/commands/project/__tests__/watch.test.d.ts +1 -0
  298. package/commands/project/__tests__/watch.test.js +35 -0
  299. package/commands/project/add.d.ts +1 -1
  300. package/commands/project/add.js +34 -36
  301. package/commands/project/cloneApp.d.ts +1 -1
  302. package/commands/project/cloneApp.js +67 -72
  303. package/commands/project/create.d.ts +2 -2
  304. package/commands/project/create.js +62 -67
  305. package/commands/project/deploy.d.ts +1 -1
  306. package/commands/project/deploy.js +72 -77
  307. package/commands/project/dev/deprecatedFlow.d.ts +2 -2
  308. package/commands/project/dev/deprecatedFlow.js +52 -58
  309. package/commands/project/dev/index.d.ts +1 -1
  310. package/commands/project/dev/index.js +44 -47
  311. package/commands/project/dev/unifiedFlow.d.ts +3 -3
  312. package/commands/project/dev/unifiedFlow.js +62 -68
  313. package/commands/project/download.d.ts +1 -1
  314. package/commands/project/download.js +35 -40
  315. package/commands/project/installDeps.d.ts +1 -1
  316. package/commands/project/installDeps.js +29 -34
  317. package/commands/project/listBuilds.d.ts +1 -1
  318. package/commands/project/listBuilds.js +40 -45
  319. package/commands/project/logs.d.ts +1 -1
  320. package/commands/project/logs.js +52 -54
  321. package/commands/project/migrate.d.ts +1 -1
  322. package/commands/project/migrate.js +24 -26
  323. package/commands/project/migrateApp.d.ts +2 -2
  324. package/commands/project/migrateApp.js +18 -20
  325. package/commands/project/open.d.ts +1 -1
  326. package/commands/project/open.js +25 -30
  327. package/commands/project/profile/add.d.ts +1 -1
  328. package/commands/project/profile/add.js +68 -73
  329. package/commands/project/profile/delete.d.ts +1 -1
  330. package/commands/project/profile/delete.js +51 -56
  331. package/commands/project/profile.d.ts +1 -1
  332. package/commands/project/profile.js +9 -14
  333. package/commands/project/upload.d.ts +1 -1
  334. package/commands/project/upload.js +50 -55
  335. package/commands/project/validate.d.ts +1 -1
  336. package/commands/project/validate.js +35 -40
  337. package/commands/project/watch.d.ts +1 -1
  338. package/commands/project/watch.js +59 -61
  339. package/commands/project.d.ts +1 -1
  340. package/commands/project.js +38 -43
  341. package/commands/remove.d.ts +1 -1
  342. package/commands/remove.js +15 -17
  343. package/commands/sandbox/__tests__/create.test.d.ts +1 -0
  344. package/commands/sandbox/__tests__/create.test.js +31 -0
  345. package/commands/sandbox/__tests__/delete.test.d.ts +1 -0
  346. package/commands/sandbox/__tests__/delete.test.js +31 -0
  347. package/commands/sandbox/create.d.ts +1 -1
  348. package/commands/sandbox/create.js +67 -69
  349. package/commands/sandbox/delete.d.ts +1 -1
  350. package/commands/sandbox/delete.js +94 -96
  351. package/commands/sandbox.d.ts +1 -1
  352. package/commands/sandbox.js +9 -14
  353. package/commands/secret/__tests__/addSecret.test.d.ts +1 -0
  354. package/commands/secret/__tests__/addSecret.test.js +29 -0
  355. package/commands/secret/__tests__/deleteSecret.test.d.ts +1 -0
  356. package/commands/secret/__tests__/deleteSecret.test.js +41 -0
  357. package/commands/secret/__tests__/listSecret.test.d.ts +1 -0
  358. package/commands/secret/__tests__/listSecret.test.js +29 -0
  359. package/commands/secret/__tests__/updateSecret.test.d.ts +1 -0
  360. package/commands/secret/__tests__/updateSecret.test.js +29 -0
  361. package/commands/secret/addSecret.d.ts +1 -1
  362. package/commands/secret/addSecret.js +26 -28
  363. package/commands/secret/deleteSecret.d.ts +1 -1
  364. package/commands/secret/deleteSecret.js +27 -29
  365. package/commands/secret/listSecret.d.ts +1 -1
  366. package/commands/secret/listSecret.js +19 -21
  367. package/commands/secret/updateSecret.d.ts +1 -1
  368. package/commands/secret/updateSecret.js +25 -27
  369. package/commands/secret.d.ts +1 -1
  370. package/commands/secret.js +13 -18
  371. package/commands/testAccount/__tests__/create.test.d.ts +1 -0
  372. package/commands/testAccount/__tests__/create.test.js +33 -0
  373. package/commands/testAccount/__tests__/createConfig.test.d.ts +1 -0
  374. package/commands/testAccount/__tests__/createConfig.test.js +35 -0
  375. package/commands/testAccount/__tests__/delete.test.d.ts +1 -0
  376. package/commands/testAccount/__tests__/delete.test.js +31 -0
  377. package/commands/testAccount/create.d.ts +1 -1
  378. package/commands/testAccount/create.js +62 -57
  379. package/commands/testAccount/createConfig.d.ts +2 -2
  380. package/commands/testAccount/createConfig.js +36 -41
  381. package/commands/testAccount/delete.d.ts +1 -1
  382. package/commands/testAccount/delete.js +17 -19
  383. package/commands/testAccount.d.ts +1 -1
  384. package/commands/testAccount.js +10 -15
  385. package/commands/theme/__tests__/generate-selectors.test.d.ts +1 -0
  386. package/commands/theme/__tests__/generate-selectors.test.js +28 -0
  387. package/commands/theme/__tests__/marketplace-validate.test.d.ts +1 -0
  388. package/commands/theme/__tests__/marketplace-validate.test.js +36 -0
  389. package/commands/theme/__tests__/preview.test.d.ts +1 -0
  390. package/commands/theme/__tests__/preview.test.js +60 -0
  391. package/commands/theme/generate-selectors.d.ts +1 -1
  392. package/commands/theme/generate-selectors.js +23 -28
  393. package/commands/theme/marketplace-validate.d.ts +1 -1
  394. package/commands/theme/marketplace-validate.js +19 -24
  395. package/commands/theme/preview.d.ts +1 -1
  396. package/commands/theme/preview.js +60 -65
  397. package/commands/theme.d.ts +1 -1
  398. package/commands/theme.js +11 -16
  399. package/commands/upload.d.ts +1 -1
  400. package/commands/upload.js +77 -82
  401. package/commands/watch.d.ts +1 -1
  402. package/commands/watch.js +45 -51
  403. package/lang/en.d.ts +5 -65
  404. package/lang/en.js +374 -440
  405. package/lib/__tests__/accountTypes.test.d.ts +1 -0
  406. package/lib/__tests__/accountTypes.test.js +98 -0
  407. package/lib/__tests__/buildAccount.test.d.ts +1 -0
  408. package/lib/__tests__/buildAccount.test.js +196 -0
  409. package/lib/__tests__/commonOpts.test.d.ts +1 -0
  410. package/lib/__tests__/commonOpts.test.js +85 -0
  411. package/lib/__tests__/dependencyManagement.test.d.ts +1 -0
  412. package/lib/__tests__/dependencyManagement.test.js +175 -0
  413. package/lib/__tests__/developerTestAccounts.test.d.ts +1 -0
  414. package/lib/__tests__/developerTestAccounts.test.js +145 -0
  415. package/lib/__tests__/hasFeature.test.d.ts +1 -0
  416. package/lib/__tests__/hasFeature.test.js +35 -0
  417. package/lib/__tests__/npm.test.d.ts +1 -0
  418. package/lib/__tests__/npm.test.js +57 -0
  419. package/lib/__tests__/oauth.test.d.ts +1 -0
  420. package/lib/__tests__/oauth.test.js +108 -0
  421. package/lib/__tests__/parsing.test.d.ts +1 -0
  422. package/lib/__tests__/parsing.test.js +34 -0
  423. package/lib/__tests__/polling.test.d.ts +1 -0
  424. package/lib/__tests__/polling.test.js +76 -0
  425. package/lib/__tests__/process.test.d.ts +1 -0
  426. package/lib/__tests__/process.test.js +85 -0
  427. package/lib/__tests__/projectProfiles.test.d.ts +1 -0
  428. package/lib/__tests__/projectProfiles.test.js +129 -0
  429. package/lib/__tests__/sandboxSync.test.d.ts +1 -0
  430. package/lib/__tests__/sandboxSync.test.js +126 -0
  431. package/lib/__tests__/sandboxes.test.d.ts +1 -0
  432. package/lib/__tests__/sandboxes.test.js +146 -0
  433. package/lib/__tests__/serverlessLogs.test.d.ts +1 -0
  434. package/lib/__tests__/serverlessLogs.test.js +149 -0
  435. package/lib/__tests__/usageTracking.test.d.ts +1 -0
  436. package/lib/__tests__/usageTracking.test.js +170 -0
  437. package/lib/__tests__/validation.test.d.ts +1 -0
  438. package/lib/__tests__/validation.test.js +143 -0
  439. package/lib/__tests__/yargsUtils.test.d.ts +1 -0
  440. package/lib/__tests__/yargsUtils.test.js +39 -0
  441. package/lib/accountTypes.js +24 -34
  442. package/lib/app/__tests__/migrate.test.d.ts +1 -0
  443. package/lib/app/__tests__/migrate.test.js +490 -0
  444. package/lib/app/__tests__/migrate_legacy.test.d.ts +1 -0
  445. package/lib/app/__tests__/migrate_legacy.test.js +134 -0
  446. package/lib/app/migrate.d.ts +3 -3
  447. package/lib/app/migrate.js +127 -145
  448. package/lib/app/migrate_legacy.d.ts +1 -1
  449. package/lib/app/migrate_legacy.js +72 -78
  450. package/lib/app/urls.js +5 -9
  451. package/lib/buildAccount.d.ts +2 -8
  452. package/lib/buildAccount.js +61 -119
  453. package/lib/commonOpts.d.ts +1 -1
  454. package/lib/commonOpts.js +42 -59
  455. package/lib/configMigrate.js +34 -38
  456. package/lib/configOptions.js +34 -40
  457. package/lib/constants.js +31 -34
  458. package/lib/customObject.js +2 -6
  459. package/lib/dependencyManagement.js +37 -45
  460. package/lib/developerTestAccounts.d.ts +1 -1
  461. package/lib/developerTestAccounts.js +34 -39
  462. package/lib/doctor/Diagnosis.d.ts +1 -1
  463. package/lib/doctor/Diagnosis.js +15 -19
  464. package/lib/doctor/DiagnosticInfoBuilder.d.ts +1 -1
  465. package/lib/doctor/DiagnosticInfoBuilder.js +30 -37
  466. package/lib/doctor/Doctor.d.ts +1 -1
  467. package/lib/doctor/Doctor.js +56 -63
  468. package/lib/doctor/__tests__/Diagnosis.test.d.ts +1 -0
  469. package/lib/doctor/__tests__/Diagnosis.test.js +82 -0
  470. package/lib/doctor/__tests__/DiagnosticInfoBuilder.test.d.ts +1 -0
  471. package/lib/doctor/__tests__/DiagnosticInfoBuilder.test.js +167 -0
  472. package/lib/doctor/__tests__/Doctor.test.d.ts +1 -0
  473. package/lib/doctor/__tests__/Doctor.test.js +396 -0
  474. package/lib/enums/exitCodes.js +1 -4
  475. package/lib/errorHandlers/index.js +32 -41
  476. package/lib/errorHandlers/suppressError.d.ts +1 -1
  477. package/lib/errorHandlers/suppressError.js +28 -31
  478. package/lib/filesystem.js +8 -15
  479. package/lib/generateSelectors.js +18 -29
  480. package/lib/hasFeature.d.ts +1 -1
  481. package/lib/hasFeature.js +3 -6
  482. package/lib/interpolation.js +11 -18
  483. package/lib/lang.d.ts +1 -1
  484. package/lib/lang.js +22 -27
  485. package/lib/links.js +16 -24
  486. package/lib/marketplaceValidate.js +29 -39
  487. package/lib/mcp/setup.js +68 -80
  488. package/lib/middleware/__test__/configMiddleware.test.js +32 -67
  489. package/lib/middleware/__test__/gitMiddleware.test.js +11 -46
  490. package/lib/middleware/__test__/notificationsMiddleware.test.js +1 -3
  491. package/lib/middleware/__test__/requestMiddleware.test.js +8 -13
  492. package/lib/middleware/__test__/utils.test.js +9 -11
  493. package/lib/middleware/__test__/yargsChecksMiddleware.test.js +16 -51
  494. package/lib/middleware/autoUpdateMiddleware.js +33 -40
  495. package/lib/middleware/configMiddleware.js +36 -42
  496. package/lib/middleware/fireAlarmMiddleware.js +12 -18
  497. package/lib/middleware/gitMiddleware.js +5 -8
  498. package/lib/middleware/notificationsMiddleware.js +7 -11
  499. package/lib/middleware/requestMiddleware.js +4 -10
  500. package/lib/middleware/utils.js +1 -4
  501. package/lib/middleware/yargsChecksMiddleware.js +10 -13
  502. package/lib/npm.js +14 -23
  503. package/lib/oauth.js +29 -35
  504. package/lib/parsing.js +3 -6
  505. package/lib/polling.js +11 -15
  506. package/lib/process.js +11 -19
  507. package/lib/projectProfiles.d.ts +2 -2
  508. package/lib/projectProfiles.js +32 -42
  509. package/lib/projects/ProjectLogsManager.js +18 -21
  510. package/lib/projects/__tests__/AppDevModeInterface.test.d.ts +1 -0
  511. package/lib/projects/__tests__/AppDevModeInterface.test.js +512 -0
  512. package/lib/projects/__tests__/LocalDevProcess.test.d.ts +1 -0
  513. package/lib/projects/__tests__/LocalDevProcess.test.js +309 -0
  514. package/lib/projects/__tests__/LocalDevWebsocketServer.test.d.ts +1 -0
  515. package/lib/projects/__tests__/LocalDevWebsocketServer.test.js +170 -0
  516. package/lib/projects/__tests__/ProjectLogsManager.test.d.ts +1 -0
  517. package/lib/projects/__tests__/ProjectLogsManager.test.js +189 -0
  518. package/lib/projects/__tests__/buildAndDeploy.test.d.ts +1 -0
  519. package/lib/projects/__tests__/buildAndDeploy.test.js +23 -0
  520. package/lib/projects/__tests__/components.test.d.ts +1 -0
  521. package/lib/projects/__tests__/components.test.js +181 -0
  522. package/lib/projects/__tests__/projects.test.d.ts +1 -0
  523. package/lib/projects/__tests__/projects.test.js +84 -0
  524. package/lib/projects/__tests__/structure.test.d.ts +1 -0
  525. package/lib/projects/__tests__/structure.test.js +211 -0
  526. package/lib/projects/add/__tests__/legacyAddComponent.test.d.ts +1 -0
  527. package/lib/projects/add/__tests__/legacyAddComponent.test.js +204 -0
  528. package/lib/projects/add/__tests__/v3AddComponent.test.d.ts +1 -0
  529. package/lib/projects/add/__tests__/v3AddComponent.test.js +185 -0
  530. package/lib/projects/add/legacyAddComponent.d.ts +1 -1
  531. package/lib/projects/add/legacyAddComponent.js +23 -29
  532. package/lib/projects/add/v3AddComponent.d.ts +1 -1
  533. package/lib/projects/add/v3AddComponent.js +35 -41
  534. package/lib/projects/buildAndDeploy.d.ts +1 -1
  535. package/lib/projects/buildAndDeploy.js +88 -97
  536. package/lib/projects/components.js +19 -25
  537. package/lib/projects/config.d.ts +1 -1
  538. package/lib/projects/config.js +32 -41
  539. package/lib/projects/create/__tests__/legacy.test.d.ts +1 -0
  540. package/lib/projects/create/__tests__/legacy.test.js +91 -0
  541. package/lib/projects/create/__tests__/v3.test.d.ts +1 -0
  542. package/lib/projects/create/__tests__/v3.test.js +78 -0
  543. package/lib/projects/create/index.d.ts +3 -3
  544. package/lib/projects/create/index.js +19 -22
  545. package/lib/projects/create/legacy.d.ts +1 -1
  546. package/lib/projects/create/legacy.js +25 -31
  547. package/lib/projects/create/v3.d.ts +3 -3
  548. package/lib/projects/create/v3.js +49 -59
  549. package/lib/projects/ensureProjectExists.js +31 -37
  550. package/lib/projects/localDev/AppDevModeInterface.d.ts +3 -3
  551. package/lib/projects/localDev/AppDevModeInterface.js +58 -60
  552. package/lib/projects/localDev/DevServerManager.d.ts +1 -1
  553. package/lib/projects/localDev/DevServerManager.js +24 -27
  554. package/lib/projects/localDev/DevServerManagerV2.d.ts +2 -2
  555. package/lib/projects/localDev/DevServerManagerV2.js +17 -22
  556. package/lib/projects/localDev/LocalDevLogger.d.ts +1 -1
  557. package/lib/projects/localDev/LocalDevLogger.js +59 -64
  558. package/lib/projects/localDev/LocalDevManager.d.ts +1 -1
  559. package/lib/projects/localDev/LocalDevManager.js +106 -111
  560. package/lib/projects/localDev/LocalDevProcess.d.ts +4 -4
  561. package/lib/projects/localDev/LocalDevProcess.js +25 -30
  562. package/lib/projects/localDev/LocalDevState.d.ts +3 -3
  563. package/lib/projects/localDev/LocalDevState.js +3 -5
  564. package/lib/projects/localDev/LocalDevWatcher.d.ts +1 -1
  565. package/lib/projects/localDev/LocalDevWatcher.js +6 -11
  566. package/lib/projects/localDev/LocalDevWebsocketServer.d.ts +1 -1
  567. package/lib/projects/localDev/LocalDevWebsocketServer.js +25 -27
  568. package/lib/projects/localDev/helpers.d.ts +4 -4
  569. package/lib/projects/localDev/helpers.js +156 -174
  570. package/lib/projects/structure.d.ts +4 -4
  571. package/lib/projects/structure.js +32 -78
  572. package/lib/projects/ui.js +10 -13
  573. package/lib/projects/upload.d.ts +2 -3
  574. package/lib/projects/upload.js +55 -65
  575. package/lib/projects/urls.js +14 -24
  576. package/lib/projects/watch.d.ts +1 -1
  577. package/lib/projects/watch.js +48 -54
  578. package/lib/prompts/__tests__/downloadProjectPrompt.test.d.ts +1 -0
  579. package/lib/prompts/__tests__/downloadProjectPrompt.test.js +28 -0
  580. package/lib/prompts/__tests__/projectsLogsPrompt.test.d.ts +1 -0
  581. package/lib/prompts/__tests__/projectsLogsPrompt.test.js +37 -0
  582. package/lib/prompts/accountNamePrompt.d.ts +1 -1
  583. package/lib/prompts/accountNamePrompt.js +26 -31
  584. package/lib/prompts/accountsPrompt.js +12 -15
  585. package/lib/prompts/cmsFieldPrompt.js +13 -19
  586. package/lib/prompts/createApiSamplePrompt.d.ts +1 -1
  587. package/lib/prompts/createApiSamplePrompt.js +9 -12
  588. package/lib/prompts/createDeveloperTestAccountConfigPrompt.d.ts +10 -9
  589. package/lib/prompts/createDeveloperTestAccountConfigPrompt.js +52 -93
  590. package/lib/prompts/createFunctionPrompt.js +17 -20
  591. package/lib/prompts/createModulePrompt.js +12 -15
  592. package/lib/prompts/createTemplatePrompt.js +5 -8
  593. package/lib/prompts/downloadProjectPrompt.js +17 -20
  594. package/lib/prompts/installAppPrompt.js +19 -26
  595. package/lib/prompts/personalAccessKeyPrompt.d.ts +2 -2
  596. package/lib/prompts/personalAccessKeyPrompt.js +40 -47
  597. package/lib/prompts/previewPrompt.js +15 -22
  598. package/lib/prompts/projectAddPrompt.d.ts +1 -1
  599. package/lib/prompts/projectAddPrompt.js +14 -18
  600. package/lib/prompts/projectDevTargetAccountPrompt.d.ts +1 -1
  601. package/lib/prompts/projectDevTargetAccountPrompt.js +48 -54
  602. package/lib/prompts/projectNameAndDestPrompt.d.ts +1 -1
  603. package/lib/prompts/projectNameAndDestPrompt.js +22 -29
  604. package/lib/prompts/projectNamePrompt.js +11 -14
  605. package/lib/prompts/projectsLogsPrompt.js +5 -8
  606. package/lib/prompts/promptUtils.d.ts +1 -1
  607. package/lib/prompts/promptUtils.js +15 -22
  608. package/lib/prompts/sandboxesPrompt.d.ts +1 -1
  609. package/lib/prompts/sandboxesPrompt.js +26 -30
  610. package/lib/prompts/secretPrompt.js +10 -15
  611. package/lib/prompts/selectAppPrompt.js +11 -14
  612. package/lib/prompts/selectHubDBTablePrompt.js +24 -30
  613. package/lib/prompts/selectProjectTemplatePrompt.d.ts +1 -1
  614. package/lib/prompts/selectProjectTemplatePrompt.js +10 -13
  615. package/lib/prompts/selectPublicAppForMigrationPrompt.js +22 -25
  616. package/lib/prompts/setAsDefaultAccountPrompt.js +13 -16
  617. package/lib/prompts/uploadPrompt.js +11 -17
  618. package/lib/sandboxSync.d.ts +1 -1
  619. package/lib/sandboxSync.js +58 -65
  620. package/lib/sandboxes.d.ts +1 -1
  621. package/lib/sandboxes.js +68 -76
  622. package/lib/schema.js +12 -19
  623. package/lib/serverlessLogs.js +45 -52
  624. package/lib/testUtils.js +4 -8
  625. package/lib/ui/SpinniesManager.d.ts +1 -1
  626. package/lib/ui/SpinniesManager.js +29 -35
  627. package/lib/ui/boxen.js +11 -14
  628. package/lib/ui/git.js +14 -20
  629. package/lib/ui/index.js +55 -73
  630. package/lib/ui/logger.js +10 -13
  631. package/lib/ui/serverlessFunctionLogs.js +14 -20
  632. package/lib/ui/spinniesUtils.js +24 -39
  633. package/lib/ui/supportHyperlinks.js +3 -6
  634. package/lib/ui/supportsColor.js +11 -17
  635. package/lib/ui/table.js +6 -13
  636. package/lib/upload.js +15 -21
  637. package/lib/usageTracking.js +44 -50
  638. package/lib/utils/hasFlag.d.ts +1 -0
  639. package/lib/utils/hasFlag.js +9 -0
  640. package/lib/validation.js +48 -87
  641. package/lib/yargsUtils.d.ts +2 -1
  642. package/lib/yargsUtils.js +13 -26
  643. package/mcp-server/server.js +6 -8
  644. package/mcp-server/tools/index.js +13 -16
  645. package/mcp-server/tools/project/AddFeatureToProject.d.ts +1 -1
  646. package/mcp-server/tools/project/AddFeatureToProject.js +33 -37
  647. package/mcp-server/tools/project/CreateProjectTool.d.ts +1 -1
  648. package/mcp-server/tools/project/CreateProjectTool.js +44 -48
  649. package/mcp-server/tools/project/DeployProject.d.ts +1 -1
  650. package/mcp-server/tools/project/DeployProject.js +16 -20
  651. package/mcp-server/tools/project/GuidedWalkthroughTool.d.ts +1 -1
  652. package/mcp-server/tools/project/GuidedWalkthroughTool.js +19 -23
  653. package/mcp-server/tools/project/UploadProjectTools.d.ts +1 -1
  654. package/mcp-server/tools/project/UploadProjectTools.js +10 -17
  655. package/mcp-server/tools/project/ValidateProjectTool.d.ts +1 -1
  656. package/mcp-server/tools/project/ValidateProjectTool.js +11 -15
  657. package/mcp-server/tools/project/__tests__/AddFeatureToProject.test.d.ts +1 -0
  658. package/mcp-server/tools/project/__tests__/AddFeatureToProject.test.js +150 -0
  659. package/mcp-server/tools/project/__tests__/CreateProjectTool.test.d.ts +1 -0
  660. package/mcp-server/tools/project/__tests__/CreateProjectTool.test.js +127 -0
  661. package/mcp-server/tools/project/__tests__/DeployProject.test.d.ts +1 -0
  662. package/mcp-server/tools/project/__tests__/DeployProject.test.js +118 -0
  663. package/mcp-server/tools/project/__tests__/GuidedWalkthroughTool.test.d.ts +1 -0
  664. package/mcp-server/tools/project/__tests__/GuidedWalkthroughTool.test.js +125 -0
  665. package/mcp-server/tools/project/__tests__/UploadProjectTools.test.d.ts +1 -0
  666. package/mcp-server/tools/project/__tests__/UploadProjectTools.test.js +106 -0
  667. package/mcp-server/tools/project/__tests__/ValidateProjectTool.test.d.ts +1 -0
  668. package/mcp-server/tools/project/__tests__/ValidateProjectTool.test.js +109 -0
  669. package/mcp-server/tools/project/constants.js +3 -9
  670. package/mcp-server/types.js +1 -5
  671. package/mcp-server/utils/__tests__/command.test.d.ts +1 -0
  672. package/mcp-server/utils/__tests__/command.test.js +45 -0
  673. package/mcp-server/utils/__tests__/project.test.d.ts +1 -0
  674. package/mcp-server/utils/__tests__/project.test.js +76 -0
  675. package/mcp-server/utils/command.d.ts +1 -1
  676. package/mcp-server/utils/command.js +4 -11
  677. package/mcp-server/utils/content.d.ts +1 -1
  678. package/mcp-server/utils/content.js +2 -6
  679. package/mcp-server/utils/project.js +8 -14
  680. package/package.json +20 -16
  681. package/types/LocalDev.d.ts +4 -4
  682. package/types/LocalDev.js +1 -2
  683. package/types/ProjectComponents.d.ts +2 -2
  684. package/types/ProjectComponents.js +1 -2
  685. package/types/Projects.d.ts +1 -1
  686. package/types/Projects.js +2 -5
  687. package/types/Prompts.js +1 -2
  688. package/types/Yargs.js +1 -2
  689. package/types/{Cms.d.ts → cms.d.ts} +1 -1
  690. package/types/cms.js +1 -0
  691. package/types/sandboxes.js +1 -0
  692. package/commands/app/install.d.ts +0 -8
  693. package/commands/app/install.js +0 -127
  694. package/types/Cms.js +0 -2
  695. package/types/Sandboxes.js +0 -2
  696. /package/types/{Sandboxes.d.ts → sandboxes.d.ts} +0 -0
package/lang/en.js CHANGED
@@ -1,18 +1,12 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.lib = exports.commands = void 0;
7
- const chalk_1 = __importDefault(require("chalk"));
8
- const projects_1 = require("@hubspot/local-dev-lib/constants/projects");
9
- const auth_1 = require("@hubspot/local-dev-lib/constants/auth");
10
- const config_1 = require("@hubspot/local-dev-lib/constants/config");
11
- const ui_1 = require("../lib/ui");
12
- const urls_1 = require("../lib/projects/urls");
13
- const constants_1 = require("../lib/constants");
14
- const v3_1 = require("../lib/projects/create/v3");
15
- exports.commands = {
1
+ import chalk from 'chalk';
2
+ import { PLATFORM_VERSIONS } from '@hubspot/local-dev-lib/constants/projects';
3
+ import { PERSONAL_ACCESS_KEY_AUTH_METHOD } from '@hubspot/local-dev-lib/constants/auth';
4
+ import { ARCHIVED_HUBSPOT_CONFIG_YAML_FILE_NAME, GLOBAL_CONFIG_PATH, DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME, } from '@hubspot/local-dev-lib/constants/config';
5
+ import { uiAccountDescription, uiBetaTag, uiCommandReference, uiLink, UI_COLORS, } from '../lib/ui/index.js';
6
+ import { getProjectDetailUrl, getProjectSettingsUrl, getLocalDevUiUrl, } from '../lib/projects/urls.js';
7
+ import { PROJECT_CONFIG_FILE } from '../lib/constants.js';
8
+ import { PROJECT_WITH_APP } from '../lib/projects/create/v3.js';
9
+ export const commands = {
16
10
  generalErrors: {
17
11
  srcIsProject: (src, command) => `"${src}" is in a project folder. Did you mean "hs project ${command}"?`,
18
12
  handleDeprecatedEnvVariables: {
@@ -53,14 +47,14 @@ exports.commands = {
53
47
  installDependencies: 'Would you like to install dependencies now?',
54
48
  uploadProject: 'Would you like to upload your project to HubSpot now?',
55
49
  projectCreated: {
56
- title: chalk_1.default.bold('Next steps:'),
57
- description: `Let's prepare and upload your project to HubSpot.\nYou can use ${(0, ui_1.uiCommandReference)('hs project install-deps')} to ${chalk_1.default.bold('install dependencies')} and ${(0, ui_1.uiCommandReference)('hs project upload')} to ${chalk_1.default.bold('upload')} your project.`,
50
+ title: chalk.bold('Next steps:'),
51
+ description: `Let's prepare and upload your project to HubSpot.\nYou can use ${uiCommandReference('hs project install-deps')} to ${chalk.bold('install dependencies')} and ${uiCommandReference('hs project upload')} to ${chalk.bold('upload')} your project.`,
58
52
  },
59
53
  },
60
54
  logs: {
61
- appSelected: `We'll create a new project with a sample app for you.\nProjects are what you can use to create apps, themes, and more at HubSpot.\nUsually you'll use the ${(0, ui_1.uiCommandReference)('hs project create')} command, but we'll go ahead and make one now.`,
55
+ appSelected: `We'll create a new project with a sample app for you.\nProjects are what you can use to create apps, themes, and more at HubSpot.\nUsually you'll use the ${uiCommandReference('hs project create')} command, but we'll go ahead and make one now.`,
62
56
  dependenciesInstalled: 'Dependencies installed successfully.',
63
- dependenciesNotInstalled: `Dependencies not installed. Remember to do this later with the command ${(0, ui_1.uiCommandReference)('hs project install-deps')} from the project directory.`,
57
+ dependenciesNotInstalled: `Dependencies not installed. Remember to do this later with the command ${uiCommandReference('hs project install-deps')} from the project directory.`,
64
58
  uploadingProject: 'Uploading your project to HubSpot...',
65
59
  uploadSuccess: 'Project uploaded successfully!',
66
60
  developerOverviewLink: 'Open this link to navigate to your HubSpot developer portal',
@@ -82,26 +76,26 @@ exports.commands = {
82
76
  subcommands: {
83
77
  auth: {
84
78
  describe: 'Configure authentication for your HubSpot account.',
85
- verboseDescribe: `Configure authentication for a HubSpot account. This will create or update the global config file at ${config_1.GLOBAL_CONFIG_PATH} that stores your account information.\n\nThe authentication method is ${chalk_1.default.bold(auth_1.PERSONAL_ACCESS_KEY_AUTH_METHOD.value)}, which is an access token tied to a specific user account.\n\nGlobal configuration replaces ${config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME}, and you will be prompted to migrate your existing config if one exists.`,
79
+ verboseDescribe: `Configure authentication for a HubSpot account. This will create or update the global config file at ${GLOBAL_CONFIG_PATH} that stores your account information.\n\nThe authentication method is ${chalk.bold(PERSONAL_ACCESS_KEY_AUTH_METHOD.value)}, which is an access token tied to a specific user account.\n\nGlobal configuration replaces ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME}, and you will be prompted to migrate your existing config if one exists.`,
86
80
  options: {
87
81
  account: 'HubSpot account to authenticate',
88
82
  personalAccessKey: 'Enter existing personal access key',
89
83
  },
90
84
  errors: {
91
85
  failedToUpdateConfig: 'Failed to update the configuration file. Please try again.',
92
- migrationNotConfirmed: `Did not migrate your configuration file. Run ${(0, ui_1.uiCommandReference)('hs auth')} to update your existing config, or use ${(0, ui_1.uiCommandReference)('hs config migrate')} to switch to the new global configuration.`,
93
- mergeNotConfirmed: `Did not merge configuration files. When you are ready to merge the deprecated config file with the global config file, run ${(0, ui_1.uiCommandReference)('hs config migrate')}.`,
86
+ migrationNotConfirmed: `Did not migrate your configuration file. Run ${uiCommandReference('hs auth')} to update your existing config, or use ${uiCommandReference('hs config migrate')} to switch to the new global configuration.`,
87
+ mergeNotConfirmed: `Did not merge configuration files. When you are ready to merge the deprecated config file with the global config file, run ${uiCommandReference('hs config migrate')}.`,
94
88
  },
95
89
  success: {
96
90
  configFileCreated: (configPath) => `Created config file "${configPath}"`,
97
- configFileUpdated: (accountId) => `Connected account ${(0, ui_1.uiAccountDescription)(accountId)} and set it as the default account`,
91
+ configFileUpdated: (accountId) => `Connected account ${uiAccountDescription(accountId)} and set it as the default account`,
98
92
  },
99
93
  },
100
94
  list: {
101
- accounts: `${chalk_1.default.bold('Accounts')}:`,
102
- defaultAccount: (account) => `${chalk_1.default.bold('Default account')}: ${account}`,
95
+ accounts: `${chalk.bold('Accounts')}:`,
96
+ defaultAccount: (account) => `${chalk.bold('Default account')}: ${account}`,
103
97
  describe: 'List names of accounts defined in config.',
104
- configPath: (configPath) => `${chalk_1.default.bold('Config path')}: ${configPath}`,
98
+ configPath: (configPath) => `${chalk.bold('Config path')}: ${configPath}`,
105
99
  labels: {
106
100
  accountId: 'Account ID',
107
101
  authType: 'Auth Type',
@@ -168,7 +162,7 @@ exports.commands = {
168
162
  },
169
163
  },
170
164
  info: {
171
- accountId: (accountId) => `${chalk_1.default.bold('Account ID')}: ${accountId}`,
165
+ accountId: (accountId) => `${chalk.bold('Account ID')}: ${accountId}`,
172
166
  describe: 'Print information about the default account, or about the account specified with the "account" option.',
173
167
  errors: {
174
168
  notUsingPersonalAccessKey: 'This command currently only supports fetching scopes for the personal access key auth type.',
@@ -178,8 +172,8 @@ exports.commands = {
178
172
  idBased: 'Print information for the account with accountId equal to "1234567"',
179
173
  nameBased: 'Print information for the account in the config with name equal to "MyAccount"',
180
174
  },
181
- name: (name) => `${chalk_1.default.bold('Account name')}: ${name}`,
182
- scopeGroups: `${chalk_1.default.bold('Scopes available')}:`,
175
+ name: (name) => `${chalk.bold('Account name')}: ${name}`,
176
+ scopeGroups: `${chalk.bold('Scopes available')}:`,
183
177
  },
184
178
  clean: {
185
179
  describe: 'Check for inactive accounts and removes them from the CLI config.',
@@ -201,10 +195,10 @@ exports.commands = {
201
195
  },
202
196
  auth: {
203
197
  describe: 'Configure authentication for your HubSpot account.',
204
- verboseDescribe: (configName, authMethod) => `Configure authentication for a HubSpot account. This will update the ${configName} file that stores your account information.\n\nThe recommended authentication method is ${chalk_1.default.bold(authMethod)}, which uses an access token tied to a specific user account.`,
198
+ verboseDescribe: (configName, authMethod) => `Configure authentication for a HubSpot account. This will update the ${configName} file that stores your account information.\n\nThe recommended authentication method is ${chalk.bold(authMethod)}, which uses an access token tied to a specific user account.`,
205
199
  errors: {
206
200
  invalidAccountIdProvided: `--account must be a number.`,
207
- globalConfigFileExists: (accountAuthCommand) => `You are using our new global configuration for account management, which is not compatible with this command. Please use ${(0, ui_1.uiCommandReference)(accountAuthCommand)} instead.`,
201
+ globalConfigFileExists: (accountAuthCommand) => `You are using our new global configuration for account management, which is not compatible with this command. Please use ${uiCommandReference(accountAuthCommand)} instead.`,
208
202
  noConfigFileFound: 'No config file was found. To create a new config file, use the "hs init" command.',
209
203
  unsupportedAuthType: (type, supportedProtocols) => `Unsupported auth type: ${type}. The only supported authentication protocols are ${supportedProtocols}.`,
210
204
  },
@@ -228,18 +222,18 @@ exports.commands = {
228
222
  describe: 'Commands for managing the CLI config file.',
229
223
  subcommands: {
230
224
  migrate: {
231
- describe: `Migrate from the deprecated ${config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${config_1.GLOBAL_CONFIG_PATH}.`,
232
- verboseDescribe: `This command will create or update the global configuration file in your root directory. It will archive the current config as ${config_1.ARCHIVED_HUBSPOT_CONFIG_YAML_FILE_NAME}.`,
225
+ describe: `Migrate from the deprecated ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${GLOBAL_CONFIG_PATH}.`,
226
+ verboseDescribe: `This command will create or update the global configuration file in your root directory. It will archive the current config as ${ARCHIVED_HUBSPOT_CONFIG_YAML_FILE_NAME}.`,
233
227
  errors: {
234
- noConfigToMigrate: `No ${config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} was found. There is nothing to migrate.`,
228
+ noConfigToMigrate: `No ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} was found. There is nothing to migrate.`,
235
229
  configNotFound: (configPath) => `A configuration file at ${configPath} could not be found. Please try again with a valid file path.`,
236
230
  },
237
231
  options: {
238
232
  force: 'Bypass prompts and overwrite any conflicting values in the global config with the deprecated config values.',
239
233
  },
240
234
  examples: {
241
- default: `Migrate from the deprecated ${config_1.DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${config_1.GLOBAL_CONFIG_PATH}`,
242
- configFlag: `Migrate a specific config file (specified with the config flag) to the new global config file at ${config_1.GLOBAL_CONFIG_PATH}`,
235
+ default: `Migrate from the deprecated ${DEFAULT_HUBSPOT_CONFIG_YAML_FILE_NAME} file to the new global config file at ${GLOBAL_CONFIG_PATH}`,
236
+ configFlag: `Migrate a specific config file (specified with the config flag) to the new global config file at ${GLOBAL_CONFIG_PATH}`,
243
237
  },
244
238
  },
245
239
  set: {
@@ -326,7 +320,7 @@ exports.commands = {
326
320
  create: {
327
321
  describe: (supportedAssetTypes) => `Create HubSpot sample apps and CMS assets. Supported assets are ${supportedAssetTypes}.`,
328
322
  errors: {
329
- deprecatedAssetType: (assetType, newCommand, type) => `The CLI command for asset type ${assetType} has been deprecated in an effort to make it easier to know what asset types can be created. Run the ${(0, ui_1.uiCommandReference)(newCommand)}" command instead. Then when prompted select "${type}".`,
323
+ deprecatedAssetType: (assetType, newCommand, type) => `The CLI command for asset type ${assetType} has been deprecated in an effort to make it easier to know what asset types can be created. Run the ${uiCommandReference(newCommand)}" command instead. Then when prompted select "${type}".`,
330
324
  unsupportedAssetType: (assetType, supportedAssetTypes) => `The asset type ${assetType} is not supported. Supported asset types are ${supportedAssetTypes}.`,
331
325
  unusablePath: (path) => `The "${path}" is not a usable path to a directory.`,
332
326
  },
@@ -368,7 +362,7 @@ exports.commands = {
368
362
  },
369
363
  },
370
364
  customObject: {
371
- betaMessage: `${chalk_1.default.bold('[BETA]')} The Custom Object CLI is currently in beta and is subject to change.`,
365
+ betaMessage: `${chalk.bold('[BETA]')} The Custom Object CLI is currently in beta and is subject to change.`,
372
366
  describe: 'Commands for managing custom objects.',
373
367
  seeMoreLink: 'View our docs to find out more.',
374
368
  subcommands: {
@@ -520,9 +514,9 @@ exports.commands = {
520
514
  },
521
515
  errors: {
522
516
  generatingDiagnosis: 'Error generating diagnosis',
523
- unableToWriteOutputFile: (file, errorMessage) => `Unable to write output to ${chalk_1.default.bold(file)}, ${errorMessage}`,
517
+ unableToWriteOutputFile: (file, errorMessage) => `Unable to write output to ${chalk.bold(file)}, ${errorMessage}`,
524
518
  },
525
- outputWritten: (filename) => `Output written to ${chalk_1.default.bold(filename)}`,
519
+ outputWritten: (filename) => `Output written to ${chalk.bold(filename)}`,
526
520
  },
527
521
  fetch: {
528
522
  describe: 'Fetch a file, directory or module from HubSpot and write to a path on your computer.',
@@ -732,7 +726,7 @@ exports.commands = {
732
726
  },
733
727
  },
734
728
  list: {
735
- tables: `${chalk_1.default.bold('Tables')}:`,
729
+ tables: `${chalk.bold('Tables')}:`,
736
730
  describe: 'List HubDB tables.',
737
731
  labels: {
738
732
  label: 'Label',
@@ -746,13 +740,13 @@ exports.commands = {
746
740
  tablesDisplayed: (displayed, total, truncated) => `Displaying ${displayed} of ${total} tables${truncated
747
741
  ? `, the remaining ${truncated} tables were not displayed.`
748
742
  : '.'}`,
749
- viewTablesLink: (baseUrl, accountId) => (0, ui_1.uiLink)('Manage tables in HubSpot', `${baseUrl}/hubdb/${accountId}`),
743
+ viewTablesLink: (baseUrl, accountId) => uiLink('Manage tables in HubSpot', `${baseUrl}/hubdb/${accountId}`),
750
744
  },
751
745
  },
752
746
  },
753
747
  init: {
754
748
  describe: 'Create a CLI config file and configure authentication for your HubSpot account.',
755
- verboseDescribe: (configName, command, authMethod) => `Configure authentication for a HubSpot account. This will create a ${configName} file to store your account information. To configure authentication for additional accounts, run ${command}.\n\nThe recommended authentication method is ${chalk_1.default.bold(authMethod)}, which uses an access token tied to a specific user account.`,
749
+ verboseDescribe: (configName, command, authMethod) => `Configure authentication for a HubSpot account. This will create a ${configName} file to store your account information. To configure authentication for additional accounts, run ${command}.\n\nThe recommended authentication method is ${chalk.bold(authMethod)}, which uses an access token tied to a specific user account.`,
756
750
  options: {
757
751
  authType: {
758
752
  describe: 'Authentication mechanism',
@@ -776,7 +770,7 @@ exports.commands = {
776
770
  invalidAccountIdProvided: `--account must be a number.`,
777
771
  configFileExists: (configPath) => `The config file ${configPath} already exists.`,
778
772
  bothConfigFilesNotAllowed: (path) => `Unable to create config file, because there is an existing one at "${path}". To create a new config file, delete the existing one and try again.`,
779
- globalConfigFileExists: `You are using our new global configuration for account management, which is not compatible with this command. Please use ${(0, ui_1.uiCommandReference)('hs account auth')} instead.`,
773
+ globalConfigFileExists: `You are using our new global configuration for account management, which is not compatible with this command. Please use ${uiCommandReference('hs account auth')} instead.`,
780
774
  },
781
775
  },
782
776
  lint: {
@@ -843,7 +837,7 @@ exports.commands = {
843
837
  client: 'Target applications to configure',
844
838
  docsSearch: 'Should the docs search mcp server be installed',
845
839
  },
846
- success: (derivedTargets) => `You can now use the HubSpot CLI MCP Server in ${derivedTargets.join(', ')}. ${chalk_1.default.bold('You may need to restart these tools to apply the changes')}.`,
840
+ success: (derivedTargets) => `You can now use the HubSpot CLI MCP Server in ${derivedTargets.join(', ')}. ${chalk.bold('You may need to restart these tools to apply the changes')}.`,
847
841
  errors: {
848
842
  needsNode20: `This feature requires node >=20`,
849
843
  },
@@ -906,15 +900,15 @@ exports.commands = {
906
900
  project: {
907
901
  profile: {
908
902
  describe: 'Commands for managing project profiles',
909
- verboseDescribe: `Commands for managing project profiles\n\nProfiles are stored at the root of your project's source directory and they make configuration dynamic. Use them to couple specialized configurations of your project to specific HubSpot accounts.\n\nRun ${(0, ui_1.uiCommandReference)('hs project profile add')} to get started!`,
903
+ verboseDescribe: `Commands for managing project profiles\n\nProfiles are stored at the root of your project's source directory and they make configuration dynamic. Use them to couple specialized configurations of your project to specific HubSpot accounts.\n\nRun ${uiCommandReference('hs project profile add')} to get started!`,
910
904
  add: {
911
905
  describe: 'Add a new project profile',
912
- verboseDescribe: `Add a new project profile\n\nProfiles enable you to reference variables in your component configuration files. Use the syntax ${chalk_1.default.bold('\${VARIABLE_NAME}')} to reference profile variables in your component configuration files. Then target the profile using the ${(0, ui_1.uiCommandReference)('--profile')} flag when you upload your project.`,
906
+ verboseDescribe: `Add a new project profile\n\nProfiles enable you to reference variables in your component configuration files. Use the syntax ${chalk.bold('\${VARIABLE_NAME}')} to reference profile variables in your component configuration files. Then target the profile using the ${uiCommandReference('--profile')} flag when you upload your project.`,
913
907
  example: 'Add a new project profile named hsprofile.qa.json',
914
908
  logs: {
915
- copyExistingProfile: (profileName) => `Found an existing profile. We can copy the variables from ${chalk_1.default.bold(profileName)} into your new profile.`,
909
+ copyExistingProfile: (profileName) => `Found an existing profile. We can copy the variables from ${chalk.bold(profileName)} into your new profile.`,
916
910
  copyExistingProfiles: 'We can copy the variables from one of your existing profiles into your new profile.',
917
- profileAdded: (profileName) => `Project profile ${chalk_1.default.bold(profileName)} was successfully added`,
911
+ profileAdded: (profileName) => `Project profile ${chalk.bold(profileName)} was successfully added`,
918
912
  },
919
913
  prompts: {
920
914
  namePrompt: 'Enter a name for the new project profile: ',
@@ -925,14 +919,14 @@ exports.commands = {
925
919
  invalidProfileName: 'Profile name cannot contain special characters or spaces',
926
920
  },
927
921
  warnings: {
928
- duplicateTargetAccount: (targetAccountId) => `The account ${(0, ui_1.uiAccountDescription)(targetAccountId)} is being used in an existing profile. Make sure to edit your project's name between uploads if you do not want to overwrite the existing project in this account.`,
922
+ duplicateTargetAccount: (targetAccountId) => `The account ${uiAccountDescription(targetAccountId)} is being used in an existing profile. Make sure to edit your project's name between uploads if you do not want to overwrite the existing project in this account.`,
929
923
  },
930
924
  errors: {
931
925
  noProjectConfig: 'No project config found. Please run this command from a project directory.',
932
- profileExists: (profileName) => `Profile ${chalk_1.default.bold(profileName)} already exists. Please choose a different name.`,
926
+ profileExists: (profileName) => `Profile ${chalk.bold(profileName)} already exists. Please choose a different name.`,
933
927
  invalidTargetAccount: 'Target account is not configured in the CLI',
934
928
  noAccountsConfigured: 'No accounts configured in the CLI',
935
- failedToLoadProfile: (profileName) => `Unable to copy variables. Failed to load profile ${chalk_1.default.bold(profileName)}`,
929
+ failedToLoadProfile: (profileName) => `Unable to copy variables. Failed to load profile ${chalk.bold(profileName)}`,
936
930
  failedToCreateProfile: 'Failed to create profile',
937
931
  },
938
932
  positionals: {
@@ -946,22 +940,22 @@ exports.commands = {
946
940
  describe: 'Delete an existing project profile',
947
941
  example: 'Delete a project profile named hsprofile.qa.json',
948
942
  logs: {
949
- profileDeleted: (profileName) => `Project profile ${chalk_1.default.bold(profileName)} was successfully deleted`,
950
- deletedProject: (accountId) => `Successfully deleted the project from ${(0, ui_1.uiAccountDescription)(accountId)}`,
951
- didNotDeleteProject: (accountId) => `Did not delete the project from ${(0, ui_1.uiAccountDescription)(accountId)}`,
943
+ profileDeleted: (profileName) => `Project profile ${chalk.bold(profileName)} was successfully deleted`,
944
+ deletedProject: (accountId) => `Successfully deleted the project from ${uiAccountDescription(accountId)}`,
945
+ didNotDeleteProject: (accountId) => `Did not delete the project from ${uiAccountDescription(accountId)}`,
952
946
  },
953
947
  debug: {
954
- failedToLoadProfile: (profileName) => `Failed to load profile ${chalk_1.default.bold(profileName)}`,
948
+ failedToLoadProfile: (profileName) => `Failed to load profile ${chalk.bold(profileName)}`,
955
949
  },
956
950
  prompts: {
957
951
  deleteProfilePrompt: 'Select a profile to delete from your project',
958
- deleteProjectPrompt: (accountId) => `Would you like to delete this project from ${(0, ui_1.uiAccountDescription)(accountId)}?`,
952
+ deleteProjectPrompt: (accountId) => `Would you like to delete this project from ${uiAccountDescription(accountId)}?`,
959
953
  },
960
954
  errors: {
961
955
  noProjectConfig: 'No project config found. Please run this command from a project directory.',
962
- noProfileFound: (profileName) => `No profile with filename ${chalk_1.default.bold(profileName)} found in your project.`,
956
+ noProfileFound: (profileName) => `No profile with filename ${chalk.bold(profileName)} found in your project.`,
963
957
  noProfilesFound: 'No profiles found in your project.',
964
- failedToDeleteProfile: (profileName) => `Unable to delete profile ${chalk_1.default.bold(profileName)}. Please try again.`,
958
+ failedToDeleteProfile: (profileName) => `Unable to delete profile ${chalk.bold(profileName)}. Please try again.`,
965
959
  },
966
960
  positionals: {
967
961
  name: 'The name of the project profile',
@@ -975,15 +969,15 @@ exports.commands = {
975
969
  placeholderAccountSelection: 'Using default account as target account (for now)',
976
970
  learnMoreLocalDevServer: 'Learn more about the projects local dev server',
977
971
  accountTypeInformation: 'Testing in a developer test account is strongly recommended, but you can use a sandbox account if your plan allows you to create one.',
978
- learnMoreMessage: `\nVisit our ${(0, ui_1.uiLink)('docs on Developer Test and Sandbox accounts', 'https://developers.hubspot.com/docs/getting-started/account-types')} to learn more.`,
972
+ learnMoreMessage: `\nVisit our ${uiLink('docs on Developer Test and Sandbox accounts', 'https://developers.hubspot.com/docs/getting-started/account-types')} to learn more.`,
979
973
  },
980
974
  errors: {
981
975
  noProjectConfig: 'No project detected. Please run this command again from a project directory.',
982
- noAccount: (accountId) => `An error occurred while reading account ${(0, ui_1.uiAccountDescription)(accountId)} from your config. Run ${(0, ui_1.uiCommandReference)('hs auth')} to re-auth this account.`,
983
- noAccountsInConfig: (authCommand) => `No accounts found in your config. Run ${chalk_1.default.bold(authCommand)} to configure a HubSpot account with the CLI.`,
976
+ noAccount: (accountId) => `An error occurred while reading account ${uiAccountDescription(accountId)} from your config. Run ${uiCommandReference('hs auth')} to re-auth this account.`,
977
+ noAccountsInConfig: (authCommand) => `No accounts found in your config. Run ${chalk.bold(authCommand)} to configure a HubSpot account with the CLI.`,
984
978
  invalidProjectComponents: 'Projects cannot contain both private and public apps. Move your apps to separate projects before attempting local development.',
985
- noRunnableComponents: `No supported components were found in this project. Run ${(0, ui_1.uiCommandReference)('hs project add')} to see a list of available components and add one to your project.`,
986
- accountNotCombined: `\nLocal development of unified apps is currently only compatible with accounts that are opted into the unified apps beta. Make sure that this account is opted in or switch accounts using ${(0, ui_1.uiCommandReference)('hs account use')}.`,
979
+ noRunnableComponents: `No supported components were found in this project. Run ${uiCommandReference('hs project add')} to see a list of available components and add one to your project.`,
980
+ accountNotCombined: `\nLocal development of unified apps is currently only compatible with accounts that are opted into the unified apps beta. Make sure that this account is opted in or switch accounts using ${uiCommandReference('hs account use')}.`,
987
981
  unsupportedAccountFlagLegacy: 'The --projectAccount and --testingAccount flags are not supported for projects with platform versions earlier than 2025.2.',
988
982
  unsupportedAccountFlagV3: 'The --account flag is is not supported supported for projects with platform versions 2025.2 and newer. Use --testingAccount and --projectAccount flags to specify accounts to use for local dev',
989
983
  },
@@ -1005,8 +999,8 @@ exports.commands = {
1005
999
  cannotNestProjects: (projectDir) => `A project already exists at ${projectDir}. Projects cannot be nested within other projects. Please choose a different destination and try again.`,
1006
1000
  },
1007
1001
  logs: {
1008
- success: (projectName, projectDest) => `\nProject ${chalk_1.default.bold(projectName)} was successfully created in ${projectDest}`,
1009
- welcomeMessage: `\n${chalk_1.default.bold('Welcome to HubSpot Developer Projects!')}`,
1002
+ success: (projectName, projectDest) => `\nProject ${chalk.bold(projectName)} was successfully created in ${projectDest}`,
1003
+ welcomeMessage: `\n${chalk.bold('Welcome to HubSpot Developer Projects!')}`,
1010
1004
  },
1011
1005
  prompts: {
1012
1006
  parentComponents: '[--project-base] What would you like in your project?',
@@ -1043,7 +1037,7 @@ exports.commands = {
1043
1037
  describe: 'Authentication model for the application.',
1044
1038
  },
1045
1039
  features: {
1046
- describe: `Features to include in the project. Only valid if project-base is ${v3_1.PROJECT_WITH_APP}`,
1040
+ describe: `Features to include in the project. Only valid if project-base is ${PROJECT_WITH_APP}`,
1047
1041
  },
1048
1042
  },
1049
1043
  },
@@ -1069,17 +1063,17 @@ exports.commands = {
1069
1063
  },
1070
1064
  deprecationWarning: (oldCommand, newCommand) => `The ${oldCommand} command is deprecated and will be removed. Use ${newCommand} going forward.`,
1071
1065
  migrationStatus: {
1072
- inProgress: () => `Converting app configuration to ${chalk_1.default.bold('public-app.json')} component definition ...`,
1073
- success: () => `${chalk_1.default.bold('Your app was converted and build #1 is deployed')}`,
1066
+ inProgress: () => `Converting app configuration to ${chalk.bold('public-app.json')} component definition ...`,
1067
+ success: () => `${chalk.bold('Your app was converted and build #1 is deployed')}`,
1074
1068
  done: () => 'Converting app configuration to public-app.json component definition ... DONE',
1075
1069
  failure: () => 'Converting app configuration to public-app.json component definition ... FAILED',
1076
1070
  },
1077
1071
  warning: {
1078
- title: () => `${chalk_1.default.bold('You are about to migrate an app to the projects framework')}`,
1079
- projectConversion: () => `${chalk_1.default.bold('The selected app will be converted to a project component.')}`,
1080
- appConfig: () => `All supported app configuration will be moved to the ${chalk_1.default.bold('public-app.json')} component definition file. Future updates to those features must be made through the project build and deploy pipeline, not the developer account UI.`,
1072
+ title: () => `${chalk.bold('You are about to migrate an app to the projects framework')}`,
1073
+ projectConversion: () => `${chalk.bold('The selected app will be converted to a project component.')}`,
1074
+ appConfig: () => `All supported app configuration will be moved to the ${chalk.bold('public-app.json')} component definition file. Future updates to those features must be made through the project build and deploy pipeline, not the developer account UI.`,
1081
1075
  buildAndDeploy: 'This will create a new project with a single app component and immediately build and deploy it to your developer account (build #1).',
1082
- existingApps: () => `${chalk_1.default.bold('This will not affect existing app users or installs.')}`,
1076
+ existingApps: () => `${chalk.bold('This will not affect existing app users or installs.')}`,
1083
1077
  copyApp: 'We strongly recommend making a copy of your app to test this process in a development app before replacing production.',
1084
1078
  },
1085
1079
  migrationInterrupted: '\nThe command is terminated, but app migration is still in progress. Please check your account to ensure that the project and associated app have been created successfully.',
@@ -1110,13 +1104,13 @@ exports.commands = {
1110
1104
  },
1111
1105
  },
1112
1106
  cloneStatus: {
1113
- inProgress: () => `Cloning app configuration to ${chalk_1.default.bold('public-app.json')} component definition ...`,
1107
+ inProgress: () => `Cloning app configuration to ${chalk.bold('public-app.json')} component definition ...`,
1114
1108
  done: 'Cloning app configuration to public-app.json component definition ... DONE',
1115
1109
  success: (dest) => `Your cloned project was created in ${dest}`,
1116
1110
  failure: 'Cloning app configuration to public-app.json component definition ... FAILED',
1117
1111
  },
1118
1112
  errors: {
1119
- invalidAccountTypeTitle: () => `${chalk_1.default.bold('Developer account not targeted')}`,
1113
+ invalidAccountTypeTitle: () => `${chalk.bold('Developer account not targeted')}`,
1120
1114
  invalidAccountTypeDescription: (useCommand, authCommand) => `Only public apps created in a developer account can be converted to a project component. Select a connected developer account with ${useCommand} or ${authCommand} and try again.`,
1121
1115
  couldNotWriteConfigPath: (configPath) => `Failed to write project config at ${configPath}`,
1122
1116
  },
@@ -1140,7 +1134,7 @@ exports.commands = {
1140
1134
  describe: 'Which features to include with the application.',
1141
1135
  },
1142
1136
  },
1143
- creatingComponent: (projectName) => `\nAdding a new component to ${chalk_1.default.bold(projectName)}\n`,
1137
+ creatingComponent: (projectName) => `\nAdding a new component to ${chalk.bold(projectName)}\n`,
1144
1138
  success: (componentName, multiple = false) => `${componentName || 'An app'} ${multiple ? 'were' : 'was'} successfully added to your ${componentName ? 'app' : 'project'}.`,
1145
1139
  error: {
1146
1140
  failedToDownloadComponent: 'Failed to download project component. Please try again later.',
@@ -1166,8 +1160,8 @@ exports.commands = {
1166
1160
  deploy: (details) => `Deploy error: ${details}`,
1167
1161
  noBuilds: 'Deploy error: no builds for this project were found.',
1168
1162
  noBuildId: 'You must specify a build to deploy',
1169
- projectNotFound: (projectName, accountIdentifier, command) => `The project ${chalk_1.default.bold(projectName)} does not exist in account ${accountIdentifier}. Run ${command} to upload your project files to HubSpot.`,
1170
- buildIdDoesNotExist: (buildId, projectName, linkToProject) => `Build ${buildId} does not exist for project ${chalk_1.default.bold(projectName)}. ${linkToProject}`,
1163
+ projectNotFound: (projectName, accountIdentifier, command) => `The project ${chalk.bold(projectName)} does not exist in account ${accountIdentifier}. Run ${command} to upload your project files to HubSpot.`,
1164
+ buildIdDoesNotExist: (buildId, projectName, linkToProject) => `Build ${buildId} does not exist for project ${chalk.bold(projectName)}. ${linkToProject}`,
1171
1165
  buildAlreadyDeployed: (buildId, linkToProject) => `Build ${buildId} is already deployed. ${linkToProject}`,
1172
1166
  viewProjectsBuilds: 'View project builds in HubSpot',
1173
1167
  },
@@ -1212,7 +1206,7 @@ exports.commands = {
1212
1206
  noProjectConfig: 'No project detected. Run this command again from a project directory.',
1213
1207
  failedToFetchProjectDetails: 'There was an error fetching project details',
1214
1208
  noFunctionsLinkText: 'Visit developer docs',
1215
- noFunctionsInProject: `There aren't any functions in this project\n\t- Run ${(0, ui_1.uiCommandReference)('hs project logs --help')} to learn more about logs\n\t- ${(0, ui_1.uiLink)('Visit developer docs', 'https://developers.hubspot.com/docs/platform/serverless-functions')} to learn more about serverless functions`,
1209
+ noFunctionsInProject: `There aren't any functions in this project\n\t- Run ${uiCommandReference('hs project logs --help')} to learn more about logs\n\t- ${uiLink('Visit developer docs', 'https://developers.hubspot.com/docs/platform/serverless-functions')} to learn more about serverless functions`,
1216
1210
  noFunctionWithName: (name) => `No function with name "${name}"`,
1217
1211
  functionNotDeployed: (name) => `The function with name "${name}" is not deployed`,
1218
1212
  projectLogsManagerNotInitialized: 'Function called on ProjectLogsManager before initialization',
@@ -1265,7 +1259,7 @@ exports.commands = {
1265
1259
  autoDeployDisabled: (deployCommand) => `Automatic deploys are disabled for this project. Run ${deployCommand} to deploy this build.`,
1266
1260
  },
1267
1261
  errors: {
1268
- projectLockedError: () => `Your project is locked. This may mean that another user is running the ${chalk_1.default.bold('`hs project dev`')} command for this project. If this is you, unlock the project in Projects UI.`,
1262
+ projectLockedError: () => `Your project is locked. This may mean that another user is running the ${chalk.bold('`hs project dev`')} command for this project. If this is you, unlock the project in Projects UI.`,
1269
1263
  },
1270
1264
  options: {
1271
1265
  forceCreate: {
@@ -1283,7 +1277,7 @@ exports.commands = {
1283
1277
  },
1284
1278
  logs: {
1285
1279
  processExited: 'Stopping watcher...',
1286
- watchCancelledFromUi: `The watch process has been cancelled from the UI. Any changes made since cancelling have not been uploaded. To resume watching, rerun ${(0, ui_1.uiCommandReference)('hs project watch')}.`,
1280
+ watchCancelledFromUi: `The watch process has been cancelled from the UI. Any changes made since cancelling have not been uploaded. To resume watching, rerun ${uiCommandReference('hs project watch')}.`,
1287
1281
  resuming: 'Resuming watcher...',
1288
1282
  uploadSucceeded: (remotePath, filePath) => `Uploaded file "${filePath}" to "${remotePath}"`,
1289
1283
  deleteFileSucceeded: (remotePath) => `Deleted file "${remotePath}"`,
@@ -1307,7 +1301,7 @@ exports.commands = {
1307
1301
  },
1308
1302
  errors: {
1309
1303
  projectConfigNotFound: 'No project config found. Please ensure that you are in a project directory.',
1310
- projectLockedError: `Your project is locked. This may mean that another user is running the ${chalk_1.default.bold(`hs project dev`)} command for this project. If this is you, unlock the project in Projects UI.`,
1304
+ projectLockedError: `Your project is locked. This may mean that another user is running the ${chalk.bold(`hs project dev`)} command for this project. If this is you, unlock the project in Projects UI.`,
1311
1305
  uploadFailed: (remotePath, filePath) => `Failed to upload file "${filePath}" to "${remotePath}"`,
1312
1306
  deleteFileFailed: (remotePath) => `Failed to delete file "${remotePath}"`,
1313
1307
  deleteFolderFailed: (remotePath) => `Failed to delete folder "${remotePath}"`,
@@ -1324,7 +1318,7 @@ exports.commands = {
1324
1318
  },
1325
1319
  errors: {
1326
1320
  downloadFailed: 'Something went wrong downloading the project',
1327
- projectNotFound: (projectName, accountId) => `Your project ${chalk_1.default.bold(projectName)} could not be found in ${accountId}`,
1321
+ projectNotFound: (projectName, accountId) => `Your project ${chalk.bold(projectName)} could not be found in ${accountId}`,
1328
1322
  },
1329
1323
  warnings: {
1330
1324
  cannotDownloadWithinProject: 'Cancelling project download. Please run the command again outside the context of an existing project.',
@@ -1356,8 +1350,8 @@ exports.commands = {
1356
1350
  feedback: {
1357
1351
  describe: 'Leave feedback or file a bug report.',
1358
1352
  openPrompt: 'Open the feedback form in your browser?',
1359
- success: (url) => `We opened ${(0, ui_1.uiLink)('the developer feedback form', url)} in your browser.`,
1360
- error: (url) => `Navigate to ${(0, ui_1.uiLink)('the developer feedback form', url)} to leave feedback.`,
1353
+ success: (url) => `We opened ${uiLink('the developer feedback form', url)} in your browser.`,
1354
+ error: (url) => `Navigate to ${uiLink('the developer feedback form', url)} to leave feedback.`,
1361
1355
  },
1362
1356
  installDeps: {
1363
1357
  help: {
@@ -1373,7 +1367,7 @@ exports.commands = {
1373
1367
  installingDependenciesFailed: (directory) => `Installing dependencies for ${directory} failed`,
1374
1368
  noProjectConfig: 'No project detected. Run this command from a project directory.',
1375
1369
  noPackageJsonInProject: (projectName, link) => `No dependencies to install. The project ${projectName} folder might be missing component or subcomponent files. ${link}`,
1376
- packageManagerNotInstalled: (packageManager, link) => `This command depends on ${packageManager}, install ${chalk_1.default.bold(link)}`,
1370
+ packageManagerNotInstalled: (packageManager, link) => `This command depends on ${packageManager}, install ${chalk.bold(link)}`,
1377
1371
  },
1378
1372
  validate: {
1379
1373
  describe: 'Validate the project before uploading',
@@ -1392,9 +1386,9 @@ exports.commands = {
1392
1386
  },
1393
1387
  remove: {
1394
1388
  describe: 'Delete a file or folder from the HubSpot CMS.',
1395
- deleted: (path, accountId) => `Deleted "${path}" from account ${(0, ui_1.uiAccountDescription)(accountId)}`,
1389
+ deleted: (path, accountId) => `Deleted "${path}" from account ${uiAccountDescription(accountId)}`,
1396
1390
  errors: {
1397
- deleteFailed: (path, accountId) => `Deleting "${path}" from account ${(0, ui_1.uiAccountDescription)(accountId)} failed`,
1391
+ deleteFailed: (path, accountId) => `Deleting "${path}" from account ${uiAccountDescription(accountId)} failed`,
1398
1392
  },
1399
1393
  positionals: {
1400
1394
  path: 'Remote hubspot path',
@@ -1406,39 +1400,39 @@ exports.commands = {
1406
1400
  create: {
1407
1401
  developer: {
1408
1402
  loading: {
1409
- add: (accountName) => `Creating developer sandbox ${chalk_1.default.bold(accountName)}`,
1410
- fail: (accountName) => `Failed to create a developer sandbox ${chalk_1.default.bold(accountName)}.`,
1411
- succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
1403
+ add: (accountName) => `Creating developer sandbox ${chalk.bold(accountName)}`,
1404
+ fail: (accountName) => `Failed to create a developer sandbox ${chalk.bold(accountName)}.`,
1405
+ succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
1412
1406
  },
1413
1407
  success: {
1414
1408
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
1415
1409
  },
1416
1410
  failure: {
1417
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1418
- limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
1419
- alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk_1.default.bold('hs accounts use')}.`,
1411
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1412
+ limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
1413
+ alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk.bold('hs accounts use')}.`,
1420
1414
  scopes: {
1421
1415
  message: "The personal access key you provided doesn't include developer sandbox permissions.",
1422
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1416
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1423
1417
  },
1424
1418
  },
1425
1419
  },
1426
1420
  standard: {
1427
1421
  loading: {
1428
- add: (accountName) => `Creating standard sandbox ${chalk_1.default.bold(accountName)}`,
1429
- fail: (accountName) => `Failed to create a standard sandbox ${chalk_1.default.bold(accountName)}.`,
1430
- succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
1422
+ add: (accountName) => `Creating standard sandbox ${chalk.bold(accountName)}`,
1423
+ fail: (accountName) => `Failed to create a standard sandbox ${chalk.bold(accountName)}.`,
1424
+ succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
1431
1425
  },
1432
1426
  success: {
1433
1427
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
1434
1428
  },
1435
1429
  failure: {
1436
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1437
- limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
1438
- alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk_1.default.bold('hs accounts use')}.`,
1430
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1431
+ limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
1432
+ alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk.bold('hs accounts use')}.`,
1439
1433
  scopes: {
1440
1434
  message: "The personal access key you provided doesn't include standard sandbox permissions.",
1441
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1435
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1442
1436
  },
1443
1437
  },
1444
1438
  },
@@ -1452,8 +1446,8 @@ exports.commands = {
1452
1446
  examples: {
1453
1447
  default: 'Deletes the sandbox account named MySandboxAccount.',
1454
1448
  },
1455
- confirm: (account) => `Delete sandbox ${chalk_1.default.bold(account)}? All data for this sandbox will be permanently deleted.`,
1456
- defaultAccountWarning: (account) => `The sandbox ${chalk_1.default.bold(account)} is currently set as the default account.`,
1449
+ confirm: (account) => `Delete sandbox ${chalk.bold(account)}? All data for this sandbox will be permanently deleted.`,
1450
+ defaultAccountWarning: (account) => `The sandbox ${chalk.bold(account)} is currently set as the default account.`,
1457
1451
  success: {
1458
1452
  delete: (account, sandboxHubId) => `Sandbox "${account}" with portalId "${sandboxHubId}" was deleted successfully.`,
1459
1453
  deleteDefault: (account, sandboxHubId) => `Sandbox "${account}" with portalId "${sandboxHubId}" was deleted successfully and removed as the default account.`,
@@ -1465,9 +1459,9 @@ exports.commands = {
1465
1459
  noSandboxAccounts: (authCommand) => `There are no sandboxes connected to the CLI. To add a sandbox, run ${authCommand}.`,
1466
1460
  noSandboxAccountId: "This sandbox can't be deleted from the CLI because we could not find the associated sandbox account.",
1467
1461
  noParentAccount: (authCommand) => `This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run ${authCommand} and add the parent account.`,
1468
- objectNotFound: (account) => `Sandbox ${chalk_1.default.bold(account)} may have been deleted through the UI. The account has been removed from the config.`,
1469
- noParentPortalAvailable: (command, url) => `This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run ${command}. You can also delete the sandbox from the HubSpot management tool: ${chalk_1.default.bold(url)}.`,
1470
- invalidKey: (account, authCommand) => `Your personal access key for account ${chalk_1.default.bold(account)} is inactive. To re-authenticate, please run ${authCommand}.`,
1462
+ objectNotFound: (account) => `Sandbox ${chalk.bold(account)} may have been deleted through the UI. The account has been removed from the config.`,
1463
+ noParentPortalAvailable: (command, url) => `This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run ${command}. You can also delete the sandbox from the HubSpot management tool: ${chalk.bold(url)}.`,
1464
+ invalidKey: (account, authCommand) => `Your personal access key for account ${chalk.bold(account)} is inactive. To re-authenticate, please run ${authCommand}.`,
1471
1465
  },
1472
1466
  options: {
1473
1467
  force: {
@@ -1481,18 +1475,18 @@ exports.commands = {
1481
1475
  },
1482
1476
  sync: {
1483
1477
  loading: {
1484
- add: (accountName) => `Syncing sandbox ${chalk_1.default.bold(accountName)}`,
1485
- fail: (accountName) => `Failed to sync sandbox ${chalk_1.default.bold(accountName)}.`,
1486
- succeed: (accountName) => `Successfully synced sandbox ${chalk_1.default.bold(accountName)}.`,
1478
+ add: (accountName) => `Syncing sandbox ${chalk.bold(accountName)}`,
1479
+ fail: (accountName) => `Failed to sync sandbox ${chalk.bold(accountName)}.`,
1480
+ succeed: (accountName) => `Successfully synced sandbox ${chalk.bold(accountName)}.`,
1487
1481
  },
1488
1482
  success: {
1489
1483
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
1490
1484
  },
1491
1485
  failure: {
1492
- invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1486
+ invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1493
1487
  scopes: {
1494
1488
  message: "The personal access key you provided doesn't include sandbox sync permissions.",
1495
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1489
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1496
1490
  },
1497
1491
  },
1498
1492
  },
@@ -1500,28 +1494,6 @@ exports.commands = {
1500
1494
  app: {
1501
1495
  describe: 'Commands for managing apps.',
1502
1496
  subcommands: {
1503
- install: {
1504
- describe: 'Install an OAuth app into a test account.',
1505
- options: {
1506
- appUid: 'The uid of the app to install',
1507
- projectName: 'The name of the project that contains the app',
1508
- },
1509
- positionals: {
1510
- testAccountId: 'The id of the test account to install the app into',
1511
- },
1512
- errors: {
1513
- mustSpecifyProjectName: `You must specify a project name. Use the ${(0, ui_1.uiCommandReference)('--project-name')} flag to specify the project name or run this command from within a project directory.`,
1514
- noAppUidFound: `No app uid found. Please specify the app uid with the ${(0, ui_1.uiCommandReference)('--app-uid')} flag or run this command from within a project that contains an app.`,
1515
- appMustBeOauth: 'This command only supports installing oauth apps. Please specify an app with oauth auth type.',
1516
- },
1517
- polling: {
1518
- start: 'Installing app...',
1519
- success: 'App installed successfully',
1520
- failure: 'App installation failed',
1521
- error: 'Error installing app',
1522
- },
1523
- example: 'Install the app with uid my-app-uid from the project named "my-project" into the target account with id 1234567890',
1524
- },
1525
1497
  secret: {
1526
1498
  describe: 'Commands for managing secrets.',
1527
1499
  subcommands: {
@@ -1531,7 +1503,7 @@ exports.commands = {
1531
1503
  name: 'Name of the secret',
1532
1504
  },
1533
1505
  errors: {
1534
- noApps: `Please create a new app to add an app secret. Use ${(0, ui_1.uiCommandReference)('hs project create')} to create a new project and begin the app creation process.`,
1506
+ noApps: `Please create a new app to add an app secret. Use ${uiCommandReference('hs project create')} to create a new project and begin the app creation process.`,
1535
1507
  },
1536
1508
  options: {
1537
1509
  app: 'The app id to set the secret for',
@@ -1748,7 +1720,7 @@ exports.commands = {
1748
1720
  invalidPath: (path) => `The path "${path}" is not a path to a file or folder`,
1749
1721
  uploadFailed: (src, dest) => `Uploading file "${src}" to "${dest}" failed`,
1750
1722
  someFilesFailed: (dest) => `One or more files failed to upload to "${dest}" in the Design Manager`,
1751
- deleteFailed: (path, accountId) => `Deleting "${path}" from account ${(0, ui_1.uiAccountDescription)(accountId)} failed`,
1723
+ deleteFailed: (path, accountId) => `Deleting "${path}" from account ${uiAccountDescription(accountId)} failed`,
1752
1724
  },
1753
1725
  options: {
1754
1726
  options: 'Options to pass to javascript fields files',
@@ -1763,19 +1735,19 @@ exports.commands = {
1763
1735
  dest: 'Path in HubSpot Design Tools, can be a net new path.',
1764
1736
  },
1765
1737
  success: {
1766
- fileUploaded: (src, dest, accountId) => `Uploaded file from "${src}" to "${dest}" in the Design Manager of account ${(0, ui_1.uiAccountDescription)(accountId)}`,
1738
+ fileUploaded: (src, dest, accountId) => `Uploaded file from "${src}" to "${dest}" in the Design Manager of account ${uiAccountDescription(accountId)}`,
1767
1739
  uploadComplete: (dest) => `Uploading files to "${dest}" in the Design Manager is complete`,
1768
1740
  },
1769
- uploading: (src, dest, accountId) => `Uploading files from "${src}" to "${dest}" in the Design Manager of account ${(0, ui_1.uiAccountDescription)(accountId)}`,
1741
+ uploading: (src, dest, accountId) => `Uploading files from "${src}" to "${dest}" in the Design Manager of account ${uiAccountDescription(accountId)}`,
1770
1742
  notUploaded: (src) => `There was an error processing "${src}". The file has not been uploaded.`,
1771
- cleaning: (filePath, accountId) => `Removing "${filePath}" from account ${(0, ui_1.uiAccountDescription)(accountId)} and uploading local...`,
1772
- confirmCleanUpload: (filePath, accountId) => `You are about to delete the directory "${filePath}" and its contents on HubSpot account ${(0, ui_1.uiAccountDescription)(accountId)} before uploading. This will also clear the global content associated with any global partial templates and modules. Are you sure you want to do this?`,
1743
+ cleaning: (filePath, accountId) => `Removing "${filePath}" from account ${uiAccountDescription(accountId)} and uploading local...`,
1744
+ confirmCleanUpload: (filePath, accountId) => `You are about to delete the directory "${filePath}" and its contents on HubSpot account ${uiAccountDescription(accountId)} before uploading. This will also clear the global content associated with any global partial templates and modules. Are you sure you want to do this?`,
1773
1745
  },
1774
1746
  watch: {
1775
1747
  describe: 'Watch a directory on your computer for changes and upload the changed files to the HubSpot CMS.',
1776
1748
  errors: {
1777
- folderFailed: (src, dest, accountId) => `Initial uploading of folder "${src}" to "${dest}" in account ${(0, ui_1.uiAccountDescription)(accountId)} had failures`,
1778
- fileFailed: (file, dest, accountId) => `Upload of file "${file}" to "${dest}" in account ${(0, ui_1.uiAccountDescription)(accountId)} failed`,
1749
+ folderFailed: (src, dest, accountId) => `Initial uploading of folder "${src}" to "${dest}" in account ${uiAccountDescription(accountId)} had failures`,
1750
+ fileFailed: (file, dest, accountId) => `Upload of file "${file}" to "${dest}" in account ${uiAccountDescription(accountId)} failed`,
1779
1751
  destinationRequired: 'A destination directory needs to be passed',
1780
1752
  invalidPath: (path) => `The "${path}" is not a path to a directory`,
1781
1753
  },
@@ -1793,9 +1765,9 @@ exports.commands = {
1793
1765
  dest: 'Path in HubSpot Design Tools. Can be a net new path',
1794
1766
  },
1795
1767
  warnings: {
1796
- disableInitial: `Passing the "${chalk_1.default.bold('--disable-initial')}" option is no longer necessary. Running "${(0, ui_1.uiCommandReference)('hs watch')}" no longer uploads the watched directory by default.`,
1797
- initialUpload: `To upload the directory run "${(0, ui_1.uiCommandReference)('hs upload')}" beforehand or add the "${chalk_1.default.bold('--initial-upload')}" option when running "${(0, ui_1.uiCommandReference)('hs watch')}".`,
1798
- notUploaded: (path) => `The "${(0, ui_1.uiCommandReference)('hs watch')}" command no longer uploads the watched directory when started. The directory "${path}" was not uploaded.`,
1768
+ disableInitial: `Passing the "${chalk.bold('--disable-initial')}" option is no longer necessary. Running "${uiCommandReference('hs watch')}" no longer uploads the watched directory by default.`,
1769
+ initialUpload: `To upload the directory run "${uiCommandReference('hs upload')}" beforehand or add the "${chalk.bold('--initial-upload')}" option when running "${uiCommandReference('hs watch')}".`,
1770
+ notUploaded: (path) => `The "${uiCommandReference('hs watch')}" command no longer uploads the watched directory when started. The directory "${path}" was not uploaded.`,
1799
1771
  },
1800
1772
  },
1801
1773
  convertFields: {
@@ -1824,14 +1796,14 @@ exports.commands = {
1824
1796
  createFromConfigOption: 'Create test account from config file',
1825
1797
  createFromScratchOption: 'Create test account from scratch',
1826
1798
  errors: {
1827
- configFileNotFound: (configPath) => `No test account config file exists at ${configPath}. Create a test account config file with the ${(0, ui_1.uiCommandReference)('hs test-account create-config')} command.`,
1799
+ configFileNotFound: (configPath) => `No test account config file exists at ${configPath}. Create a test account config file with the ${uiCommandReference('hs test-account create-config')} command.`,
1828
1800
  configFileParseFailed: (configPath) => `Failed to parse test account config file at ${configPath}`,
1829
1801
  },
1830
1802
  polling: {
1831
- start: (testAccountName) => `Creating test account "${chalk_1.default.bold(testAccountName)}"...`,
1803
+ start: (testAccountName) => `Creating test account "${chalk.bold(testAccountName)}"...`,
1832
1804
  syncing: 'Test account created! Syncing account data... (may take a few minutes - you can exit and the sync will continue)',
1833
- success: (testAccountName, testAccountId) => `Test account "${chalk_1.default.bold(testAccountName)}" successfully created with id: ${chalk_1.default.bold(testAccountId)}`,
1834
- createFailure: 'Failed to create test account.',
1805
+ success: (testAccountName, testAccountId) => `Test account "${chalk.bold(testAccountName)}" successfully created with id: ${chalk.bold(testAccountId)}`,
1806
+ failure: 'Failed to sync data into test account. The account may not be ready to use.',
1835
1807
  },
1836
1808
  options: {
1837
1809
  configPath: 'The path to the test account config',
@@ -1840,7 +1812,7 @@ exports.commands = {
1840
1812
  },
1841
1813
  createConfig: {
1842
1814
  describe: 'Create a test account config file.',
1843
- pathPrompt: '[--path] Enter the name of the Test Account config file: ',
1815
+ pathPrompt: '[--path] What is the path to the test account config?',
1844
1816
  errors: {
1845
1817
  pathError: 'Path is required',
1846
1818
  pathFormatError: 'Path must end with .json',
@@ -1876,35 +1848,35 @@ exports.commands = {
1876
1848
  secrets: {
1877
1849
  add: {
1878
1850
  loading: {
1879
- add: (secretName) => `Adding secret ${chalk_1.default.bold(secretName)}`,
1880
- fail: (secretName) => `Failed to add secret ${chalk_1.default.bold(secretName)}.`,
1881
- succeed: (secretName) => `Successfully added secret ${chalk_1.default.bold(secretName)}.`,
1851
+ add: (secretName) => `Adding secret ${chalk.bold(secretName)}`,
1852
+ fail: (secretName) => `Failed to add secret ${chalk.bold(secretName)}.`,
1853
+ succeed: (secretName) => `Successfully added secret ${chalk.bold(secretName)}.`,
1882
1854
  },
1883
1855
  success: {
1884
1856
  configFileUpdated: (secretName, authType) => `Secret "${secretName}" updated using "${authType}"`,
1885
1857
  },
1886
1858
  failure: {
1887
- invalidUser: (secretName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(secretName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add secrets. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1859
+ invalidUser: (secretName, parentAccountName) => `Couldn't add ${chalk.bold(secretName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add secrets. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1888
1860
  scopes: {
1889
1861
  message: "The personal access key you provided doesn't include secrets permissions.",
1890
- instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1862
+ instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1891
1863
  },
1892
1864
  },
1893
1865
  },
1894
1866
  delete: {
1895
1867
  loading: {
1896
- add: (secretName) => `Deleting secret ${chalk_1.default.bold(secretName)}`,
1897
- fail: (secretName) => `Failed to delete secret ${chalk_1.default.bold(secretName)}.`,
1898
- succeed: (secretName) => `Successfully deleted secret ${chalk_1.default.bold(secretName)}.`,
1868
+ add: (secretName) => `Deleting secret ${chalk.bold(secretName)}`,
1869
+ fail: (secretName) => `Failed to delete secret ${chalk.bold(secretName)}.`,
1870
+ succeed: (secretName) => `Successfully deleted secret ${chalk.bold(secretName)}.`,
1899
1871
  },
1900
1872
  success: {
1901
1873
  configFileUpdated: (secretName, authType) => `Secret "${secretName}" updated using "${authType}"`,
1902
1874
  },
1903
1875
  failure: {
1904
- invalidUser: (secretName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(secretName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete secrets. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1876
+ invalidUser: (secretName, parentAccountName) => `Couldn't delete ${chalk.bold(secretName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete secrets. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1905
1877
  scopes: {
1906
1878
  message: "The personal access key you provided doesn't include secrets permissions.",
1907
- instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1879
+ instructions: (secretName, url) => `To update CLI permissions for "${secretName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1908
1880
  },
1909
1881
  },
1910
1882
  },
@@ -1918,10 +1890,10 @@ exports.commands = {
1918
1890
  configFileUpdated: (authType) => `Secrets updated using "${authType}"`,
1919
1891
  },
1920
1892
  failure: {
1921
- invalidUser: (parentAccountName) => `Couldn't list secrets because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list secrets. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1893
+ invalidUser: (parentAccountName) => `Couldn't list secrets because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list secrets. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1922
1894
  scopes: {
1923
1895
  message: "The personal access key you provided doesn't include secrets permissions.",
1924
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1896
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1925
1897
  },
1926
1898
  },
1927
1899
  },
@@ -1929,35 +1901,35 @@ exports.commands = {
1929
1901
  serverless: {
1930
1902
  add: {
1931
1903
  loading: {
1932
- add: (functionName) => `Adding serverless function ${chalk_1.default.bold(functionName)}`,
1933
- fail: (functionName) => `Failed to add serverless function ${chalk_1.default.bold(functionName)}.`,
1934
- succeed: (functionName) => `Successfully added serverless function ${chalk_1.default.bold(functionName)}.`,
1904
+ add: (functionName) => `Adding serverless function ${chalk.bold(functionName)}`,
1905
+ fail: (functionName) => `Failed to add serverless function ${chalk.bold(functionName)}.`,
1906
+ succeed: (functionName) => `Successfully added serverless function ${chalk.bold(functionName)}.`,
1935
1907
  },
1936
1908
  success: {
1937
1909
  configFileUpdated: (functionName, authType) => `Serverless function "${functionName}" updated using "${authType}"`,
1938
1910
  },
1939
1911
  failure: {
1940
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless functions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1912
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless functions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1941
1913
  scopes: {
1942
1914
  message: "The personal access key you provided doesn't include serverless function permissions.",
1943
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1915
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1944
1916
  },
1945
1917
  },
1946
1918
  },
1947
1919
  delete: {
1948
1920
  loading: {
1949
- add: (functionName) => `Deleting serverless function ${chalk_1.default.bold(functionName)}`,
1950
- fail: (functionName) => `Failed to delete serverless function ${chalk_1.default.bold(functionName)}.`,
1951
- succeed: (functionName) => `Successfully deleted serverless function ${chalk_1.default.bold(functionName)}.`,
1921
+ add: (functionName) => `Deleting serverless function ${chalk.bold(functionName)}`,
1922
+ fail: (functionName) => `Failed to delete serverless function ${chalk.bold(functionName)}.`,
1923
+ succeed: (functionName) => `Successfully deleted serverless function ${chalk.bold(functionName)}.`,
1952
1924
  },
1953
1925
  success: {
1954
1926
  configFileUpdated: (functionName, authType) => `Serverless function "${functionName}" updated using "${authType}"`,
1955
1927
  },
1956
1928
  failure: {
1957
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless functions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1929
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless functions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1958
1930
  scopes: {
1959
1931
  message: "The personal access key you provided doesn't include serverless function permissions.",
1960
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1932
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1961
1933
  },
1962
1934
  },
1963
1935
  },
@@ -1971,10 +1943,10 @@ exports.commands = {
1971
1943
  configFileUpdated: (authType) => `Serverless functions updated using "${authType}"`,
1972
1944
  },
1973
1945
  failure: {
1974
- invalidUser: (parentAccountName) => `Couldn't list serverless functions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless functions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1946
+ invalidUser: (parentAccountName) => `Couldn't list serverless functions because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless functions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1975
1947
  scopes: {
1976
1948
  message: "The personal access key you provided doesn't include serverless function permissions.",
1977
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1949
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1978
1950
  },
1979
1951
  },
1980
1952
  },
@@ -1982,35 +1954,35 @@ exports.commands = {
1982
1954
  serverlessFunctionLogs: {
1983
1955
  add: {
1984
1956
  loading: {
1985
- add: (functionName) => `Adding serverless function logs ${chalk_1.default.bold(functionName)}`,
1986
- fail: (functionName) => `Failed to add serverless function logs ${chalk_1.default.bold(functionName)}.`,
1987
- succeed: (functionName) => `Successfully added serverless function logs ${chalk_1.default.bold(functionName)}.`,
1957
+ add: (functionName) => `Adding serverless function logs ${chalk.bold(functionName)}`,
1958
+ fail: (functionName) => `Failed to add serverless function logs ${chalk.bold(functionName)}.`,
1959
+ succeed: (functionName) => `Successfully added serverless function logs ${chalk.bold(functionName)}.`,
1988
1960
  },
1989
1961
  success: {
1990
1962
  configFileUpdated: (functionName, authType) => `Serverless function logs "${functionName}" updated using "${authType}"`,
1991
1963
  },
1992
1964
  failure: {
1993
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function logs. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1965
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function logs. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
1994
1966
  scopes: {
1995
1967
  message: "The personal access key you provided doesn't include serverless function log permissions.",
1996
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1968
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
1997
1969
  },
1998
1970
  },
1999
1971
  },
2000
1972
  delete: {
2001
1973
  loading: {
2002
- add: (functionName) => `Deleting serverless function logs ${chalk_1.default.bold(functionName)}`,
2003
- fail: (functionName) => `Failed to delete serverless function logs ${chalk_1.default.bold(functionName)}.`,
2004
- succeed: (functionName) => `Successfully deleted serverless function logs ${chalk_1.default.bold(functionName)}.`,
1974
+ add: (functionName) => `Deleting serverless function logs ${chalk.bold(functionName)}`,
1975
+ fail: (functionName) => `Failed to delete serverless function logs ${chalk.bold(functionName)}.`,
1976
+ succeed: (functionName) => `Successfully deleted serverless function logs ${chalk.bold(functionName)}.`,
2005
1977
  },
2006
1978
  success: {
2007
1979
  configFileUpdated: (functionName, authType) => `Serverless function logs "${functionName}" updated using "${authType}"`,
2008
1980
  },
2009
1981
  failure: {
2010
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function logs. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1982
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function logs. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2011
1983
  scopes: {
2012
1984
  message: "The personal access key you provided doesn't include serverless function log permissions.",
2013
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
1985
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2014
1986
  },
2015
1987
  },
2016
1988
  },
@@ -2024,10 +1996,10 @@ exports.commands = {
2024
1996
  configFileUpdated: (authType) => `Serverless function logs updated using "${authType}"`,
2025
1997
  },
2026
1998
  failure: {
2027
- invalidUser: (parentAccountName) => `Couldn't list serverless function logs because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function logs. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
1999
+ invalidUser: (parentAccountName) => `Couldn't list serverless function logs because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function logs. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2028
2000
  scopes: {
2029
2001
  message: "The personal access key you provided doesn't include serverless function log permissions.",
2030
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2002
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2031
2003
  },
2032
2004
  },
2033
2005
  },
@@ -2035,35 +2007,35 @@ exports.commands = {
2035
2007
  serverlessFunctionMetrics: {
2036
2008
  add: {
2037
2009
  loading: {
2038
- add: (functionName) => `Adding serverless function metrics ${chalk_1.default.bold(functionName)}`,
2039
- fail: (functionName) => `Failed to add serverless function metrics ${chalk_1.default.bold(functionName)}.`,
2040
- succeed: (functionName) => `Successfully added serverless function metrics ${chalk_1.default.bold(functionName)}.`,
2010
+ add: (functionName) => `Adding serverless function metrics ${chalk.bold(functionName)}`,
2011
+ fail: (functionName) => `Failed to add serverless function metrics ${chalk.bold(functionName)}.`,
2012
+ succeed: (functionName) => `Successfully added serverless function metrics ${chalk.bold(functionName)}.`,
2041
2013
  },
2042
2014
  success: {
2043
2015
  configFileUpdated: (functionName, authType) => `Serverless function metrics "${functionName}" updated using "${authType}"`,
2044
2016
  },
2045
2017
  failure: {
2046
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function metrics. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2018
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function metrics. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2047
2019
  scopes: {
2048
2020
  message: "The personal access key you provided doesn't include serverless function metric permissions.",
2049
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2021
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2050
2022
  },
2051
2023
  },
2052
2024
  },
2053
2025
  delete: {
2054
2026
  loading: {
2055
- add: (functionName) => `Deleting serverless function metrics ${chalk_1.default.bold(functionName)}`,
2056
- fail: (functionName) => `Failed to delete serverless function metrics ${chalk_1.default.bold(functionName)}.`,
2057
- succeed: (functionName) => `Successfully deleted serverless function metrics ${chalk_1.default.bold(functionName)}.`,
2027
+ add: (functionName) => `Deleting serverless function metrics ${chalk.bold(functionName)}`,
2028
+ fail: (functionName) => `Failed to delete serverless function metrics ${chalk.bold(functionName)}.`,
2029
+ succeed: (functionName) => `Successfully deleted serverless function metrics ${chalk.bold(functionName)}.`,
2058
2030
  },
2059
2031
  success: {
2060
2032
  configFileUpdated: (functionName, authType) => `Serverless function metrics "${functionName}" updated using "${authType}"`,
2061
2033
  },
2062
2034
  failure: {
2063
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function metrics. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2035
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function metrics. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2064
2036
  scopes: {
2065
2037
  message: "The personal access key you provided doesn't include serverless function metric permissions.",
2066
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2038
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2067
2039
  },
2068
2040
  },
2069
2041
  },
@@ -2077,10 +2049,10 @@ exports.commands = {
2077
2049
  configFileUpdated: (authType) => `Serverless function metrics updated using "${authType}"`,
2078
2050
  },
2079
2051
  failure: {
2080
- invalidUser: (parentAccountName) => `Couldn't list serverless function metrics because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function metrics. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2052
+ invalidUser: (parentAccountName) => `Couldn't list serverless function metrics because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function metrics. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2081
2053
  scopes: {
2082
2054
  message: "The personal access key you provided doesn't include serverless function metric permissions.",
2083
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2055
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2084
2056
  },
2085
2057
  },
2086
2058
  },
@@ -2088,35 +2060,35 @@ exports.commands = {
2088
2060
  serverlessFunctionSettings: {
2089
2061
  add: {
2090
2062
  loading: {
2091
- add: (functionName) => `Adding serverless function settings ${chalk_1.default.bold(functionName)}`,
2092
- fail: (functionName) => `Failed to add serverless function settings ${chalk_1.default.bold(functionName)}.`,
2093
- succeed: (functionName) => `Successfully added serverless function settings ${chalk_1.default.bold(functionName)}.`,
2063
+ add: (functionName) => `Adding serverless function settings ${chalk.bold(functionName)}`,
2064
+ fail: (functionName) => `Failed to add serverless function settings ${chalk.bold(functionName)}.`,
2065
+ succeed: (functionName) => `Successfully added serverless function settings ${chalk.bold(functionName)}.`,
2094
2066
  },
2095
2067
  success: {
2096
2068
  configFileUpdated: (functionName, authType) => `Serverless function settings "${functionName}" updated using "${authType}"`,
2097
2069
  },
2098
2070
  failure: {
2099
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function settings. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2071
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function settings. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2100
2072
  scopes: {
2101
2073
  message: "The personal access key you provided doesn't include serverless function setting permissions.",
2102
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2074
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2103
2075
  },
2104
2076
  },
2105
2077
  },
2106
2078
  delete: {
2107
2079
  loading: {
2108
- add: (functionName) => `Deleting serverless function settings ${chalk_1.default.bold(functionName)}`,
2109
- fail: (functionName) => `Failed to delete serverless function settings ${chalk_1.default.bold(functionName)}.`,
2110
- succeed: (functionName) => `Successfully deleted serverless function settings ${chalk_1.default.bold(functionName)}.`,
2080
+ add: (functionName) => `Deleting serverless function settings ${chalk.bold(functionName)}`,
2081
+ fail: (functionName) => `Failed to delete serverless function settings ${chalk.bold(functionName)}.`,
2082
+ succeed: (functionName) => `Successfully deleted serverless function settings ${chalk.bold(functionName)}.`,
2111
2083
  },
2112
2084
  success: {
2113
2085
  configFileUpdated: (functionName, authType) => `Serverless function settings "${functionName}" updated using "${authType}"`,
2114
2086
  },
2115
2087
  failure: {
2116
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function settings. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2088
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function settings. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2117
2089
  scopes: {
2118
2090
  message: "The personal access key you provided doesn't include serverless function setting permissions.",
2119
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2091
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2120
2092
  },
2121
2093
  },
2122
2094
  },
@@ -2130,10 +2102,10 @@ exports.commands = {
2130
2102
  configFileUpdated: (authType) => `Serverless function settings updated using "${authType}"`,
2131
2103
  },
2132
2104
  failure: {
2133
- invalidUser: (parentAccountName) => `Couldn't list serverless function settings because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function settings. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2105
+ invalidUser: (parentAccountName) => `Couldn't list serverless function settings because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function settings. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2134
2106
  scopes: {
2135
2107
  message: "The personal access key you provided doesn't include serverless function setting permissions.",
2136
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2108
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2137
2109
  },
2138
2110
  },
2139
2111
  },
@@ -2141,35 +2113,35 @@ exports.commands = {
2141
2113
  serverlessFunctionVersions: {
2142
2114
  add: {
2143
2115
  loading: {
2144
- add: (functionName) => `Adding serverless function versions ${chalk_1.default.bold(functionName)}`,
2145
- fail: (functionName) => `Failed to add serverless function versions ${chalk_1.default.bold(functionName)}.`,
2146
- succeed: (functionName) => `Successfully added serverless function versions ${chalk_1.default.bold(functionName)}.`,
2116
+ add: (functionName) => `Adding serverless function versions ${chalk.bold(functionName)}`,
2117
+ fail: (functionName) => `Failed to add serverless function versions ${chalk.bold(functionName)}.`,
2118
+ succeed: (functionName) => `Successfully added serverless function versions ${chalk.bold(functionName)}.`,
2147
2119
  },
2148
2120
  success: {
2149
2121
  configFileUpdated: (functionName, authType) => `Serverless function versions "${functionName}" updated using "${authType}"`,
2150
2122
  },
2151
2123
  failure: {
2152
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function versions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2124
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function versions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2153
2125
  scopes: {
2154
2126
  message: "The personal access key you provided doesn't include serverless function version permissions.",
2155
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2127
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2156
2128
  },
2157
2129
  },
2158
2130
  },
2159
2131
  delete: {
2160
2132
  loading: {
2161
- add: (functionName) => `Deleting serverless function versions ${chalk_1.default.bold(functionName)}`,
2162
- fail: (functionName) => `Failed to delete serverless function versions ${chalk_1.default.bold(functionName)}.`,
2163
- succeed: (functionName) => `Successfully deleted serverless function versions ${chalk_1.default.bold(functionName)}.`,
2133
+ add: (functionName) => `Deleting serverless function versions ${chalk.bold(functionName)}`,
2134
+ fail: (functionName) => `Failed to delete serverless function versions ${chalk.bold(functionName)}.`,
2135
+ succeed: (functionName) => `Successfully deleted serverless function versions ${chalk.bold(functionName)}.`,
2164
2136
  },
2165
2137
  success: {
2166
2138
  configFileUpdated: (functionName, authType) => `Serverless function versions "${functionName}" updated using "${authType}"`,
2167
2139
  },
2168
2140
  failure: {
2169
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function versions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2141
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function versions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2170
2142
  scopes: {
2171
2143
  message: "The personal access key you provided doesn't include serverless function version permissions.",
2172
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2144
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2173
2145
  },
2174
2146
  },
2175
2147
  },
@@ -2183,10 +2155,10 @@ exports.commands = {
2183
2155
  configFileUpdated: (authType) => `Serverless function versions updated using "${authType}"`,
2184
2156
  },
2185
2157
  failure: {
2186
- invalidUser: (parentAccountName) => `Couldn't list serverless function versions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function versions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2158
+ invalidUser: (parentAccountName) => `Couldn't list serverless function versions because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function versions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2187
2159
  scopes: {
2188
2160
  message: "The personal access key you provided doesn't include serverless function version permissions.",
2189
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2161
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2190
2162
  },
2191
2163
  },
2192
2164
  },
@@ -2194,35 +2166,35 @@ exports.commands = {
2194
2166
  serverlessFunctionWebhooks: {
2195
2167
  add: {
2196
2168
  loading: {
2197
- add: (functionName) => `Adding serverless function webhooks ${chalk_1.default.bold(functionName)}`,
2198
- fail: (functionName) => `Failed to add serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
2199
- succeed: (functionName) => `Successfully added serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
2169
+ add: (functionName) => `Adding serverless function webhooks ${chalk.bold(functionName)}`,
2170
+ fail: (functionName) => `Failed to add serverless function webhooks ${chalk.bold(functionName)}.`,
2171
+ succeed: (functionName) => `Successfully added serverless function webhooks ${chalk.bold(functionName)}.`,
2200
2172
  },
2201
2173
  success: {
2202
2174
  configFileUpdated: (functionName, authType) => `Serverless function webhooks "${functionName}" updated using "${authType}"`,
2203
2175
  },
2204
2176
  failure: {
2205
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhooks. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2177
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhooks. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2206
2178
  scopes: {
2207
2179
  message: "The personal access key you provided doesn't include serverless function webhook permissions.",
2208
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2180
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2209
2181
  },
2210
2182
  },
2211
2183
  },
2212
2184
  delete: {
2213
2185
  loading: {
2214
- add: (functionName) => `Deleting serverless function webhooks ${chalk_1.default.bold(functionName)}`,
2215
- fail: (functionName) => `Failed to delete serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
2216
- succeed: (functionName) => `Successfully deleted serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
2186
+ add: (functionName) => `Deleting serverless function webhooks ${chalk.bold(functionName)}`,
2187
+ fail: (functionName) => `Failed to delete serverless function webhooks ${chalk.bold(functionName)}.`,
2188
+ succeed: (functionName) => `Successfully deleted serverless function webhooks ${chalk.bold(functionName)}.`,
2217
2189
  },
2218
2190
  success: {
2219
2191
  configFileUpdated: (functionName, authType) => `Serverless function webhooks "${functionName}" updated using "${authType}"`,
2220
2192
  },
2221
2193
  failure: {
2222
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhooks. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2194
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhooks. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2223
2195
  scopes: {
2224
2196
  message: "The personal access key you provided doesn't include serverless function webhook permissions.",
2225
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2197
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2226
2198
  },
2227
2199
  },
2228
2200
  },
@@ -2236,10 +2208,10 @@ exports.commands = {
2236
2208
  configFileUpdated: (authType) => `Serverless function webhooks updated using "${authType}"`,
2237
2209
  },
2238
2210
  failure: {
2239
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhooks because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhooks. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2211
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhooks because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhooks. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2240
2212
  scopes: {
2241
2213
  message: "The personal access key you provided doesn't include serverless function webhook permissions.",
2242
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2214
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2243
2215
  },
2244
2216
  },
2245
2217
  },
@@ -2247,35 +2219,35 @@ exports.commands = {
2247
2219
  serverlessFunctionWebhookSubscriptions: {
2248
2220
  add: {
2249
2221
  loading: {
2250
- add: (functionName) => `Adding serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}`,
2251
- fail: (functionName) => `Failed to add serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
2252
- succeed: (functionName) => `Successfully added serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
2222
+ add: (functionName) => `Adding serverless function webhook subscriptions ${chalk.bold(functionName)}`,
2223
+ fail: (functionName) => `Failed to add serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
2224
+ succeed: (functionName) => `Successfully added serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
2253
2225
  },
2254
2226
  success: {
2255
2227
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscriptions "${functionName}" updated using "${authType}"`,
2256
2228
  },
2257
2229
  failure: {
2258
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2230
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2259
2231
  scopes: {
2260
2232
  message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.",
2261
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2233
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2262
2234
  },
2263
2235
  },
2264
2236
  },
2265
2237
  delete: {
2266
2238
  loading: {
2267
- add: (functionName) => `Deleting serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}`,
2268
- fail: (functionName) => `Failed to delete serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
2269
- succeed: (functionName) => `Successfully deleted serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
2239
+ add: (functionName) => `Deleting serverless function webhook subscriptions ${chalk.bold(functionName)}`,
2240
+ fail: (functionName) => `Failed to delete serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
2241
+ succeed: (functionName) => `Successfully deleted serverless function webhook subscriptions ${chalk.bold(functionName)}.`,
2270
2242
  },
2271
2243
  success: {
2272
2244
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscriptions "${functionName}" updated using "${authType}"`,
2273
2245
  },
2274
2246
  failure: {
2275
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2247
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2276
2248
  scopes: {
2277
2249
  message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.",
2278
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2250
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2279
2251
  },
2280
2252
  },
2281
2253
  },
@@ -2289,10 +2261,10 @@ exports.commands = {
2289
2261
  configFileUpdated: (authType) => `Serverless function webhook subscriptions updated using "${authType}"`,
2290
2262
  },
2291
2263
  failure: {
2292
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscriptions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2264
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscriptions because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2293
2265
  scopes: {
2294
2266
  message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.",
2295
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2267
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2296
2268
  },
2297
2269
  },
2298
2270
  },
@@ -2300,35 +2272,35 @@ exports.commands = {
2300
2272
  serverlessFunctionWebhookSubscriptionEvents: {
2301
2273
  add: {
2302
2274
  loading: {
2303
- add: (functionName) => `Adding serverless function webhook subscription events ${chalk_1.default.bold(functionName)}`,
2304
- fail: (functionName) => `Failed to add serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
2305
- succeed: (functionName) => `Successfully added serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
2275
+ add: (functionName) => `Adding serverless function webhook subscription events ${chalk.bold(functionName)}`,
2276
+ fail: (functionName) => `Failed to add serverless function webhook subscription events ${chalk.bold(functionName)}.`,
2277
+ succeed: (functionName) => `Successfully added serverless function webhook subscription events ${chalk.bold(functionName)}.`,
2306
2278
  },
2307
2279
  success: {
2308
2280
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription events "${functionName}" updated using "${authType}"`,
2309
2281
  },
2310
2282
  failure: {
2311
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2283
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2312
2284
  scopes: {
2313
2285
  message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.",
2314
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2286
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2315
2287
  },
2316
2288
  },
2317
2289
  },
2318
2290
  delete: {
2319
2291
  loading: {
2320
- add: (functionName) => `Deleting serverless function webhook subscription events ${chalk_1.default.bold(functionName)}`,
2321
- fail: (functionName) => `Failed to delete serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
2322
- succeed: (functionName) => `Successfully deleted serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
2292
+ add: (functionName) => `Deleting serverless function webhook subscription events ${chalk.bold(functionName)}`,
2293
+ fail: (functionName) => `Failed to delete serverless function webhook subscription events ${chalk.bold(functionName)}.`,
2294
+ succeed: (functionName) => `Successfully deleted serverless function webhook subscription events ${chalk.bold(functionName)}.`,
2323
2295
  },
2324
2296
  success: {
2325
2297
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription events "${functionName}" updated using "${authType}"`,
2326
2298
  },
2327
2299
  failure: {
2328
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2300
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2329
2301
  scopes: {
2330
2302
  message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.",
2331
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2303
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2332
2304
  },
2333
2305
  },
2334
2306
  },
@@ -2342,10 +2314,10 @@ exports.commands = {
2342
2314
  configFileUpdated: (authType) => `Serverless function webhook subscription events updated using "${authType}"`,
2343
2315
  },
2344
2316
  failure: {
2345
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription events because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2317
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription events because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2346
2318
  scopes: {
2347
2319
  message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.",
2348
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2320
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2349
2321
  },
2350
2322
  },
2351
2323
  },
@@ -2353,35 +2325,35 @@ exports.commands = {
2353
2325
  serverlessFunctionWebhookSubscriptionEventTypes: {
2354
2326
  add: {
2355
2327
  loading: {
2356
- add: (functionName) => `Adding serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}`,
2357
- fail: (functionName) => `Failed to add serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
2358
- succeed: (functionName) => `Successfully added serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
2328
+ add: (functionName) => `Adding serverless function webhook subscription event types ${chalk.bold(functionName)}`,
2329
+ fail: (functionName) => `Failed to add serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
2330
+ succeed: (functionName) => `Successfully added serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
2359
2331
  },
2360
2332
  success: {
2361
2333
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event types "${functionName}" updated using "${authType}"`,
2362
2334
  },
2363
2335
  failure: {
2364
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2336
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2365
2337
  scopes: {
2366
2338
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.",
2367
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2339
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2368
2340
  },
2369
2341
  },
2370
2342
  },
2371
2343
  delete: {
2372
2344
  loading: {
2373
- add: (functionName) => `Deleting serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}`,
2374
- fail: (functionName) => `Failed to delete serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
2375
- succeed: (functionName) => `Successfully deleted serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
2345
+ add: (functionName) => `Deleting serverless function webhook subscription event types ${chalk.bold(functionName)}`,
2346
+ fail: (functionName) => `Failed to delete serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
2347
+ succeed: (functionName) => `Successfully deleted serverless function webhook subscription event types ${chalk.bold(functionName)}.`,
2376
2348
  },
2377
2349
  success: {
2378
2350
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event types "${functionName}" updated using "${authType}"`,
2379
2351
  },
2380
2352
  failure: {
2381
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2353
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2382
2354
  scopes: {
2383
2355
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.",
2384
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2356
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2385
2357
  },
2386
2358
  },
2387
2359
  },
@@ -2395,10 +2367,10 @@ exports.commands = {
2395
2367
  configFileUpdated: (authType) => `Serverless function webhook subscription event types updated using "${authType}"`,
2396
2368
  },
2397
2369
  failure: {
2398
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event types because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2370
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event types because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2399
2371
  scopes: {
2400
2372
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.",
2401
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2373
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2402
2374
  },
2403
2375
  },
2404
2376
  },
@@ -2406,35 +2378,35 @@ exports.commands = {
2406
2378
  serverlessFunctionWebhookSubscriptionEventTypeOptions: {
2407
2379
  add: {
2408
2380
  loading: {
2409
- add: (functionName) => `Adding serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}`,
2410
- fail: (functionName) => `Failed to add serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
2411
- succeed: (functionName) => `Successfully added serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
2381
+ add: (functionName) => `Adding serverless function webhook subscription event type options ${chalk.bold(functionName)}`,
2382
+ fail: (functionName) => `Failed to add serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
2383
+ succeed: (functionName) => `Successfully added serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
2412
2384
  },
2413
2385
  success: {
2414
2386
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event type options "${functionName}" updated using "${authType}"`,
2415
2387
  },
2416
2388
  failure: {
2417
- invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2389
+ invalidUser: (functionName, parentAccountName) => `Couldn't add ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to add serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2418
2390
  scopes: {
2419
2391
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.",
2420
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2392
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2421
2393
  },
2422
2394
  },
2423
2395
  },
2424
2396
  delete: {
2425
2397
  loading: {
2426
- add: (functionName) => `Deleting serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}`,
2427
- fail: (functionName) => `Failed to delete serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
2428
- succeed: (functionName) => `Successfully deleted serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
2398
+ add: (functionName) => `Deleting serverless function webhook subscription event type options ${chalk.bold(functionName)}`,
2399
+ fail: (functionName) => `Failed to delete serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
2400
+ succeed: (functionName) => `Successfully deleted serverless function webhook subscription event type options ${chalk.bold(functionName)}.`,
2429
2401
  },
2430
2402
  success: {
2431
2403
  configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event type options "${functionName}" updated using "${authType}"`,
2432
2404
  },
2433
2405
  failure: {
2434
- invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk_1.default.bold(functionName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2406
+ invalidUser: (functionName, parentAccountName) => `Couldn't delete ${chalk.bold(functionName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to delete serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2435
2407
  scopes: {
2436
2408
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.",
2437
- instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2409
+ instructions: (functionName, url) => `To update CLI permissions for "${functionName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2438
2410
  },
2439
2411
  },
2440
2412
  },
@@ -2448,16 +2420,16 @@ exports.commands = {
2448
2420
  configFileUpdated: (authType) => `Serverless function webhook subscription event type options updated using "${authType}"`,
2449
2421
  },
2450
2422
  failure: {
2451
- invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event type options because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
2423
+ invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event type options because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
2452
2424
  scopes: {
2453
2425
  message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.",
2454
- instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
2426
+ instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
2455
2427
  },
2456
2428
  },
2457
2429
  },
2458
2430
  },
2459
2431
  };
2460
- exports.lib = {
2432
+ export const lib = {
2461
2433
  parsing: {
2462
2434
  unableToParseStringToNumber: 'Unable to parse string to number',
2463
2435
  },
@@ -2473,40 +2445,40 @@ exports.lib = {
2473
2445
  noCompatibleComponents: (serverKey) => `Skipping call to ${serverKey} because there are no compatible components in the project.`,
2474
2446
  },
2475
2447
  LocalDevManager: {
2476
- appNotFound: (accountId, appUid) => `Unable to find app with uid ${appUid} in account ${(0, ui_1.uiAccountDescription)(accountId)}`,
2448
+ appNotFound: (accountId, appUid) => `Unable to find app with uid ${appUid} in account ${uiAccountDescription(accountId)}`,
2477
2449
  failedToInitialize: 'Missing required arguments to initialize Local Dev',
2478
- noDeployedBuild: (projectName, accountIdentifier, uploadCommand) => `Your project ${chalk_1.default.bold(projectName)} exists in ${accountIdentifier}, but has no deployed build. Projects must be successfully deployed to be developed locally. Address any build and deploy errors your project may have, then run ${uploadCommand} to upload and deploy your project.`,
2450
+ noDeployedBuild: (projectName, accountIdentifier, uploadCommand) => `Your project ${chalk.bold(projectName)} exists in ${accountIdentifier}, but has no deployed build. Projects must be successfully deployed to be developed locally. Address any build and deploy errors your project may have, then run ${uploadCommand} to upload and deploy your project.`,
2479
2451
  noComponents: 'There are no components in this project.',
2480
2452
  betaMessage: 'HubSpot projects local development',
2481
- learnMoreLocalDevServer: (0, ui_1.uiLink)('Learn more about the projects local dev server', 'https://developers.hubspot.com/docs/platform/project-cli-commands#start-a-local-development-server'),
2482
- running: (projectName, accountIdentifier) => chalk_1.default.hex(ui_1.UI_COLORS.SORBET)(`Running ${chalk_1.default.bold(projectName)} locally on ${accountIdentifier}, waiting for changes ...`),
2483
- quitHelper: `Press ${chalk_1.default.bold('q')} to stop the local dev server`,
2484
- viewProjectLink: (name, accountId) => (0, ui_1.uiLink)('View project in HubSpot', (0, urls_1.getProjectDetailUrl)(name, accountId) || ''),
2485
- viewLocalDevUILink: (accountId) => (0, ui_1.uiLink)('View local dev session in HubSpot', (0, urls_1.getLocalDevUiUrl)(accountId)),
2453
+ learnMoreLocalDevServer: uiLink('Learn more about the projects local dev server', 'https://developers.hubspot.com/docs/platform/project-cli-commands#start-a-local-development-server'),
2454
+ running: (projectName, accountIdentifier) => chalk.hex(UI_COLORS.SORBET)(`Running ${chalk.bold(projectName)} locally on ${accountIdentifier}, waiting for changes ...`),
2455
+ quitHelper: `Press ${chalk.bold('q')} to stop the local dev server`,
2456
+ viewProjectLink: (name, accountId) => uiLink('View project in HubSpot', getProjectDetailUrl(name, accountId) || ''),
2457
+ viewLocalDevUILink: (accountId) => uiLink('View local dev session in HubSpot', getLocalDevUiUrl(accountId)),
2486
2458
  viewTestAccountLink: 'View developer test account in HubSpot',
2487
2459
  exitingStart: 'Stopping local dev server ...',
2488
2460
  exitingSucceed: 'Successfully exited',
2489
2461
  exitingFail: 'Failed to cleanup before exiting',
2490
- missingUid: `Could not find a uid for the selected app. Confirm that the app config file contains the uid field and re-run ${(0, ui_1.uiCommandReference)('hs project dev')}.`,
2462
+ missingUid: `Could not find a uid for the selected app. Confirm that the app config file contains the uid field and re-run ${uiCommandReference('hs project dev')}.`,
2491
2463
  uploadWarning: {
2492
2464
  appLabel: '[App]',
2493
2465
  uiExtensionLabel: '[UI Extension]',
2494
- missingComponents: (missingComponents) => `Couldn't find the following components in the deployed build for this project: ${chalk_1.default.bold(missingComponents)}. This may cause issues in local development.`,
2495
- defaultWarning: chalk_1.default.bold('Changing project configuration requires a new project build.'),
2496
- defaultPublicAppWarning: (installCount, installText) => `${chalk_1.default.bold('Changing project configuration requires a new project build.')}\n\nThis will affect your public app's ${chalk_1.default.bold(`${installCount} existing ${installText}`)}. If your app has users in production, we strongly recommend creating a copy of this app to test your changes before proceding.`,
2466
+ missingComponents: (missingComponents) => `Couldn't find the following components in the deployed build for this project: ${chalk.bold(missingComponents)}. This may cause issues in local development.`,
2467
+ defaultWarning: chalk.bold('Changing project configuration requires a new project build.'),
2468
+ defaultPublicAppWarning: (installCount, installText) => `${chalk.bold('Changing project configuration requires a new project build.')}\n\nThis will affect your public app's ${chalk.bold(`${installCount} existing ${installText}`)}. If your app has users in production, we strongly recommend creating a copy of this app to test your changes before proceding.`,
2497
2469
  header: (warning) => `${warning} To reflect these changes and continue testing:`,
2498
2470
  instructionsHeader: 'To reflect these changes and continue testing:',
2499
- stopDev: ` * Stop ${(0, ui_1.uiCommandReference)('hs project dev')}`,
2471
+ stopDev: ` * Stop ${uiCommandReference('hs project dev')}`,
2500
2472
  runUpload: (command) => ` * Run ${command}`,
2501
- restartDev: ` * Re-run ${(0, ui_1.uiCommandReference)('hs project dev')}`,
2473
+ restartDev: ` * Re-run ${uiCommandReference('hs project dev')}`,
2502
2474
  pushToGithub: ' * Commit and push your changes to GitHub',
2503
- defaultMarketplaceAppWarning: (installCount, accountText) => `${chalk_1.default.bold('Changing project configuration requires creating a new project build.')}\n\nYour marketplace app is currently installed in ${chalk_1.default.bold(`${installCount} ${accountText}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
2475
+ defaultMarketplaceAppWarning: (installCount, accountText) => `${chalk.bold('Changing project configuration requires creating a new project build.')}\n\nYour marketplace app is currently installed in ${chalk.bold(`${installCount} ${accountText}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
2504
2476
  },
2505
2477
  activeInstallWarning: {
2506
- installCount: (appName, installCount) => `${chalk_1.default.bold(`The app ${appName} is installed in ${installCount} production ${installCount === 1 ? 'account' : 'accounts'}`)}`,
2478
+ installCount: (appName, installCount) => `${chalk.bold(`The app ${appName} is installed in ${installCount} production ${installCount === 1 ? 'account' : 'accounts'}`)}`,
2507
2479
  explanation: 'Some changes made during local development may need to be synced to HubSpot, which will impact those existing installs. We strongly recommend creating a copy of this app to use instead.',
2508
2480
  confirmation: `You will always be asked to confirm any permanent changes to your app's configuration before uploading them.`,
2509
- confirmationPrompt: `Proceed with local development of this ${chalk_1.default.bold('production')} app?`,
2481
+ confirmationPrompt: `Proceed with local development of this ${chalk.bold('production')} app?`,
2510
2482
  },
2511
2483
  devServer: {
2512
2484
  cleanupError: (message) => `Failed to cleanup local dev server: ${message}`,
@@ -2516,10 +2488,10 @@ exports.lib = {
2516
2488
  },
2517
2489
  },
2518
2490
  AppDevModeInterface: {
2519
- defaultMarketplaceAppWarning: (installCount) => `\n\nYour marketplace app is currently installed in ${chalk_1.default.bold(`${installCount} ${installCount === 1 ? 'account' : 'accounts'}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
2491
+ defaultMarketplaceAppWarning: (installCount) => `\n\nYour marketplace app is currently installed in ${chalk.bold(`${installCount} ${installCount === 1 ? 'account' : 'accounts'}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
2520
2492
  autoInstallDeclined: 'You must install your app on your target test account to proceed with local development.',
2521
- autoInstallSuccess: (appName, targetTestAccountId) => `Successfully installed app ${appName} on account ${(0, ui_1.uiAccountDescription)(targetTestAccountId)}\n`,
2522
- autoInstallError: (appName, targetTestAccountId) => `Error installing app ${appName} on account ${(0, ui_1.uiAccountDescription)(targetTestAccountId)}. You may still be able to install your app in your browser.`,
2493
+ autoInstallSuccess: (appName, targetTestAccountId) => `Successfully installed app ${appName} on account ${uiAccountDescription(targetTestAccountId)}\n`,
2494
+ autoInstallError: (appName, targetTestAccountId) => `Error installing app ${appName} on account ${uiAccountDescription(targetTestAccountId)}. You may still be able to install your app in your browser.`,
2523
2495
  },
2524
2496
  LocalDevWebsocketServer: {
2525
2497
  errors: {
@@ -2535,29 +2507,29 @@ exports.lib = {
2535
2507
  },
2536
2508
  },
2537
2509
  LocalDevProcess: {
2538
- projectConfigMismatch: `Unable to upload project. The project config has been modified since starting ${(0, ui_1.uiCommandReference)('hs project dev')}.`,
2510
+ projectConfigMismatch: `Unable to upload project. The project config has been modified since starting ${uiCommandReference('hs project dev')}.`,
2539
2511
  uploadInitiated: 'Project upload initiated from Local Dev UI.',
2540
2512
  uploadFailed: 'Project upload failed. To proceed with local development, fix any necessary errors, then re-upload your project.',
2541
2513
  uploadSuccess: 'Project upload completed successfully. Resuming local dev...',
2542
2514
  },
2543
2515
  localDevHelpers: {
2544
2516
  confirmDefaultAccountIsTarget: {
2545
- configError: `An error occurred while reading the default account from your config. Run ${(0, ui_1.uiCommandReference)('hs auth')} to re-auth this account`,
2546
- declineDefaultAccountExplanation: `To develop on a different account, run ${(0, ui_1.uiCommandReference)('hs accounts use')} to change your default account, then re-run ${(0, ui_1.uiCommandReference)('hs project dev')}.`,
2517
+ configError: `An error occurred while reading the default account from your config. Run ${uiCommandReference('hs auth')} to re-auth this account`,
2518
+ declineDefaultAccountExplanation: `To develop on a different account, run ${uiCommandReference('hs accounts use')} to change your default account, then re-run ${uiCommandReference('hs project dev')}.`,
2547
2519
  },
2548
2520
  checkIfDefaultAccountIsSupported: {
2549
- publicApp: `This project contains a public app. Local development of public apps is only supported on developer accounts and developer test accounts. Change your default account using ${(0, ui_1.uiCommandReference)('hs accounts use')}, or link a new account with ${(0, ui_1.uiCommandReference)('hs auth')}.`,
2550
- privateApp: `This project contains a private app. Local development of private apps is not supported in developer accounts. Change your default account using ${(0, ui_1.uiCommandReference)('hs accounts use')}, or link a new account with ${(0, ui_1.uiCommandReference)('hs auth')}.`,
2521
+ publicApp: `This project contains a public app. Local development of public apps is only supported on developer accounts and developer test accounts. Change your default account using ${uiCommandReference('hs accounts use')}, or link a new account with ${uiCommandReference('hs auth')}.`,
2522
+ privateApp: `This project contains a private app. Local development of private apps is not supported in developer accounts. Change your default account using ${uiCommandReference('hs accounts use')}, or link a new account with ${uiCommandReference('hs auth')}.`,
2551
2523
  },
2552
2524
  validateAccountOption: {
2553
- invalidPublicAppAccount: `This project contains a public app. The "--account" flag must point to a developer test account to develop this project locally. Alternatively, change your default account to an App Developer Account using ${(0, ui_1.uiCommandReference)('hs accounts use')} and run ${(0, ui_1.uiCommandReference)('hs project dev')} to set up a new Developer Test Account.`,
2554
- invalidPrivateAppAccount: `This project contains a private app. The account specified with the "--account" flag points to a developer account, which do not support the local development of private apps. Update the "--account" flag to point to a standard, sandbox, or developer test account, or change your default account by running ${(0, ui_1.uiCommandReference)('hs accounts use')}.`,
2555
- nonSandboxWarning: `Testing in a sandbox is strongly recommended. To switch the target account, select an option below or run ${(0, ui_1.uiCommandReference)('hs accounts use')} before running the command again.`,
2556
- publicAppNonDeveloperTestAccountWarning: `Local development of public apps is only supported in ${chalk_1.default.bold('developer test accounts')}.`,
2525
+ invalidPublicAppAccount: `This project contains a public app. The "--account" flag must point to a developer test account to develop this project locally. Alternatively, change your default account to an App Developer Account using ${uiCommandReference('hs accounts use')} and run ${uiCommandReference('hs project dev')} to set up a new Developer Test Account.`,
2526
+ invalidPrivateAppAccount: `This project contains a private app. The account specified with the "--account" flag points to a developer account, which do not support the local development of private apps. Update the "--account" flag to point to a standard, sandbox, or developer test account, or change your default account by running ${uiCommandReference('hs accounts use')}.`,
2527
+ nonSandboxWarning: `Testing in a sandbox is strongly recommended. To switch the target account, select an option below or run ${uiCommandReference('hs accounts use')} before running the command again.`,
2528
+ publicAppNonDeveloperTestAccountWarning: `Local development of public apps is only supported in ${chalk.bold('developer test accounts')}.`,
2557
2529
  },
2558
2530
  createNewProjectForLocalDev: {
2559
- projectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in the target account ${(0, ui_1.uiAccountDescription)(accountId)}. This command requires the project to exist in the target account.`,
2560
- publicAppProjectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in ${(0, ui_1.uiAccountDescription)(accountId)}, the app developer account associated with your target account. This command requires the project to exist in this app developer account.`,
2531
+ projectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in the target account ${uiAccountDescription(accountId)}. This command requires the project to exist in the target account.`,
2532
+ publicAppProjectMustExistExplanation: (projectName, accountId) => `The project ${projectName} does not exist in ${uiAccountDescription(accountId)}, the app developer account associated with your target account. This command requires the project to exist in this app developer account.`,
2561
2533
  createProject: (projectName, accountIdentifier) => `Create new project ${projectName} in ${accountIdentifier}?`,
2562
2534
  choseNotToCreateProject: 'Exiting because this command requires the project to exist in the target account.',
2563
2535
  creatingProject: (projectName, accountIdentifier) => `Creating project ${projectName} in ${accountIdentifier}`,
@@ -2567,49 +2539,49 @@ exports.lib = {
2567
2539
  createInitialBuildForNewProject: {
2568
2540
  initialUploadMessage: 'HubSpot Local Dev Server Startup',
2569
2541
  projectLockedError: 'Your project is locked. This may mean that another user is running the `hs project watch` command for this project. If this is you, unlock the project in Projects UI.',
2570
- genericError: `An error occurred while creating the initial build for this project. Run ${(0, ui_1.uiCommandReference)('hs project upload')} to try again.`,
2542
+ genericError: `An error occurred while creating the initial build for this project. Run ${uiCommandReference('hs project upload')} to try again.`,
2571
2543
  },
2572
2544
  checkIfParentAccountIsAuthed: {
2573
- notAuthedError: (parentAccountId, accountIdentifier) => `To develop this project locally, run ${(0, ui_1.uiCommandReference)(`hs auth --account=${parentAccountId}`)} to authenticate the App Developer Account ${parentAccountId} associated with ${accountIdentifier}.`,
2545
+ notAuthedError: (parentAccountId, accountIdentifier) => `To develop this project locally, run ${uiCommandReference(`hs auth --account=${parentAccountId}`)} to authenticate the App Developer Account ${parentAccountId} associated with ${accountIdentifier}.`,
2574
2546
  },
2575
2547
  selectAccountTypePrompt: {
2576
2548
  message: '[--account] Choose the type of account to test on',
2577
2549
  developerTestAccountOption: 'Test on a developer test account',
2578
2550
  sandboxAccountOption: 'Test on a sandbox account',
2579
2551
  sandboxAccountOptionDisabled: 'Disabled - requires access to sandbox accounts',
2580
- productionAccountOption: `<${chalk_1.default.red('!')} Test on this account ${chalk_1.default.red('!')}>`,
2552
+ productionAccountOption: `<${chalk.red('!')} Test on this account ${chalk.red('!')}>`,
2581
2553
  },
2582
2554
  },
2583
2555
  middleware: {
2584
2556
  updateNotification: {
2585
- notifyTitle: chalk_1.default.bold('Update available'),
2586
- cmsUpdateNotification: (packageName) => `${chalk_1.default.bold('The CMS CLI is now the HubSpot CLI')}\n\nTo upgrade, uninstall ${chalk_1.default.bold(packageName)}\nand then run ${(0, ui_1.uiCommandReference)('{updateCommand}')}`,
2587
- cliUpdateNotification: `HubSpot CLI version ${chalk_1.default.cyan(chalk_1.default.bold('{currentVersion}'))} is outdated.\nRun ${(0, ui_1.uiCommandReference)('{updateCommand}')} to upgrade to version ${chalk_1.default.cyan(chalk_1.default.bold('{latestVersion}'))}`,
2557
+ notifyTitle: chalk.bold('Update available'),
2558
+ cmsUpdateNotification: (packageName) => `${chalk.bold('The CMS CLI is now the HubSpot CLI')}\n\nTo upgrade, uninstall ${chalk.bold(packageName)}\nand then run ${uiCommandReference('{updateCommand}')}`,
2559
+ cliUpdateNotification: `HubSpot CLI version ${chalk.cyan(chalk.bold('{currentVersion}'))} is outdated.\nRun ${uiCommandReference('{updateCommand}')} to upgrade to version ${chalk.cyan(chalk.bold('{latestVersion}'))}`,
2588
2560
  },
2589
2561
  autoUpdateCLI: {
2590
- updateAvailable: (latestVersion) => `There's a new HubSpot CLI version available! Updating to version ${chalk_1.default.bold(latestVersion)}`,
2591
- updateSucceeded: (latestVersion) => `Successfully updated HubSpot CLI to version ${chalk_1.default.bold(latestVersion)}`,
2562
+ updateAvailable: (latestVersion) => `There's a new HubSpot CLI version available! Updating to version ${chalk.bold(latestVersion)}`,
2563
+ updateSucceeded: (latestVersion) => `Successfully updated HubSpot CLI to version ${chalk.bold(latestVersion)}`,
2592
2564
  notInstalledGlobally: 'Cannot auto-update the HubSpot CLI because NPM is not installed globally',
2593
- updateFailed: (latestVersion) => `Failed to update HubSpot CLI to version ${chalk_1.default.bold(latestVersion)}`,
2565
+ updateFailed: (latestVersion) => `Failed to update HubSpot CLI to version ${chalk.bold(latestVersion)}`,
2594
2566
  },
2595
2567
  },
2596
2568
  projectProfiles: {
2597
2569
  logs: {
2598
- usingProfile: (profileName) => `Using profile from ${chalk_1.default.bold(profileName)}`,
2599
- profileTargetAccount: (accountId) => `Targeting ${(0, ui_1.uiAccountDescription)(accountId)}`,
2570
+ usingProfile: (profileName) => `Using profile from ${chalk.bold(profileName)}`,
2571
+ profileTargetAccount: (accountId) => `Targeting ${uiAccountDescription(accountId)}`,
2600
2572
  profileVariables: 'Profile variables',
2601
2573
  },
2602
2574
  exitIfUsingProfiles: {
2603
2575
  errors: {
2604
- noProfileSpecified: `This project is configured to use profiles, but no profile was specified. Target a profile using the ${(0, ui_1.uiCommandReference)('--profile')} flag.`,
2576
+ noProfileSpecified: `This project is configured to use profiles, but no profile was specified. Target a profile using the ${uiCommandReference('--profile')} flag.`,
2605
2577
  },
2606
2578
  },
2607
2579
  loadProfile: {
2608
2580
  errors: {
2609
2581
  noProjectConfig: 'No project config found. Please run this command from a project directory.',
2610
- profileNotFound: (profileName) => `Profile ${chalk_1.default.bold(profileName)} not found.`,
2611
- missingAccountId: (profileName) => `Profile ${chalk_1.default.bold(profileName)} is missing an account id.`,
2612
- failedToLoadProfile: (profileName) => `Failed to load profile ${chalk_1.default.bold(profileName)}.`,
2582
+ profileNotFound: (profileName) => `Profile ${chalk.bold(profileName)} not found.`,
2583
+ missingAccountId: (profileName) => `Profile ${chalk.bold(profileName)} is missing an account id.`,
2584
+ failedToLoadProfile: (profileName) => `Failed to load profile ${chalk.bold(profileName)}.`,
2613
2585
  },
2614
2586
  },
2615
2587
  },
@@ -2636,10 +2608,10 @@ exports.lib = {
2636
2608
  nothingAdded: 'No features added.',
2637
2609
  },
2638
2610
  validateProjectConfig: {
2639
- configNotFound: `Unable to locate a project configuration file. Try running again from a project directory, or run ${(0, ui_1.uiCommandReference)('hs project create')} to create a new project.`,
2611
+ configNotFound: `Unable to locate a project configuration file. Try running again from a project directory, or run ${uiCommandReference('hs project create')} to create a new project.`,
2640
2612
  configMissingFields: 'The project configuration file is missing required fields.',
2641
- srcDirNotFound: (srcDir, projectDir) => `Project source directory ${chalk_1.default.bold(srcDir)} could not be found in ${chalk_1.default.bold(projectDir)}.`,
2642
- srcOutsideProjectDir: (projectConfig, srcDir) => `Invalid value for 'srcDir' in ${projectConfig}: ${chalk_1.default.bold(`srcDir: "${srcDir}"`)}\n\t'srcDir' must be a relative path to a folder under the project root, such as "." or "./src"`,
2613
+ srcDirNotFound: (srcDir, projectDir) => `Project source directory ${chalk.bold(srcDir)} could not be found in ${chalk.bold(projectDir)}.`,
2614
+ srcOutsideProjectDir: (projectConfig, srcDir) => `Invalid value for 'srcDir' in ${projectConfig}: ${chalk.bold(`srcDir: "${srcDir}"`)}\n\t'srcDir' must be a relative path to a folder under the project root, such as "." or "./src"`,
2643
2615
  },
2644
2616
  getProjectConfig: {
2645
2617
  error: 'Could not read from project config',
@@ -2647,15 +2619,15 @@ exports.lib = {
2647
2619
  ensureProjectExists: {
2648
2620
  createPrompt: (projectName, accountIdentifier) => `The project ${projectName} does not exist in ${accountIdentifier}. Would you like to create it?`,
2649
2621
  createPromptUpload: (projectName, accountIdentifier) => `[--forceCreate] The project ${projectName} does not exist in ${accountIdentifier}. Would you like to create it?`,
2650
- createSuccess: (projectName, accountIdentifier) => `New project ${chalk_1.default.bold(projectName)} successfully created in ${chalk_1.default.bold(accountIdentifier)}.`,
2651
- notFound: (projectName, accountIdentifier) => `Your project ${chalk_1.default.bold(projectName)} could not be found in ${chalk_1.default.bold(accountIdentifier)}.`,
2622
+ createSuccess: (projectName, accountIdentifier) => `New project ${chalk.bold(projectName)} successfully created in ${chalk.bold(accountIdentifier)}.`,
2623
+ notFound: (projectName, accountIdentifier) => `Your project ${chalk.bold(projectName)} could not be found in ${chalk.bold(accountIdentifier)}.`,
2652
2624
  },
2653
2625
  pollFetchProject: {
2654
2626
  checkingProject: (accountIdentifier) => `Checking if project exists in ${accountIdentifier}`,
2655
2627
  },
2656
2628
  logFeedbackMessage: {
2657
2629
  feedbackHeader: "We'd love to hear your feedback!",
2658
- feedbackMessage: `How are you liking the new projects and developer tools? \n > Run ${(0, ui_1.uiCommandReference)('hs feedback')} to let us know what you think!\n`,
2630
+ feedbackMessage: `How are you liking the new projects and developer tools? \n > Run ${uiCommandReference('hs feedback')} to let us know what you think!\n`,
2659
2631
  },
2660
2632
  },
2661
2633
  projectBuildAndDeploy: {
@@ -2669,22 +2641,22 @@ exports.lib = {
2669
2641
  },
2670
2642
  pollBuildAutodeployStatusError: (buildId) => `Error fetching autodeploy status for build #${buildId}`,
2671
2643
  pollProjectBuildAndDeploy: {
2672
- buildSucceededAutomaticallyDeploying: (buildId, accountIdentifier) => `Build #${buildId} succeeded. ${chalk_1.default.bold('Automatically deploying')} to ${accountIdentifier}\n`,
2644
+ buildSucceededAutomaticallyDeploying: (buildId, accountIdentifier) => `Build #${buildId} succeeded. ${chalk.bold('Automatically deploying')} to ${accountIdentifier}\n`,
2673
2645
  cleanedUpTempFile: (path) => `Cleaned up temporary file ${path}`,
2674
2646
  viewDeploys: 'view all deploys for this project in HubSpot',
2675
- unableToFindAutodeployStatus: (buildId, viewDeploysLink) => `Unable to find the auto deploy for build #${buildId}. This deploy may have been skipped or blocked due to components being removed. Manually deploy with ${(0, ui_1.uiCommandReference)('hs project deploy')} or ${viewDeploysLink}.`,
2647
+ unableToFindAutodeployStatus: (buildId, viewDeploysLink) => `Unable to find the auto deploy for build #${buildId}. This deploy may have been skipped or blocked due to components being removed. Manually deploy with ${uiCommandReference('hs project deploy')} or ${viewDeploysLink}.`,
2676
2648
  },
2677
2649
  },
2678
2650
  projectUpload: {
2679
- wrongPlatformVersionMetaFiles: `Detected components that require a minimum platform version of ${projects_1.PLATFORM_VERSIONS.v2025_2}. You need to update your platform version in your ${constants_1.PROJECT_CONFIG_FILE} and run ${(0, ui_1.uiCommandReference)('hs project upload')}`,
2651
+ wrongPlatformVersionMetaFiles: `Detected components that require a minimum platform version of ${PLATFORM_VERSIONS.v2025_2}. You need to update your platform version in your ${PROJECT_CONFIG_FILE} and run ${uiCommandReference('hs project upload')}`,
2680
2652
  uploadProjectFiles: {
2681
- add: (projectName, accountIdentifier) => `Uploading ${chalk_1.default.bold(projectName)} project files to ${accountIdentifier}`,
2682
- fail: (projectName, accountIdentifier) => `Failed to upload ${chalk_1.default.bold(projectName)} project files to ${accountIdentifier}`,
2683
- succeed: (projectName, accountIdentifier) => `Uploaded ${chalk_1.default.bold(projectName)} project files to ${accountIdentifier}`,
2653
+ add: (projectName, accountIdentifier) => `Uploading ${chalk.bold(projectName)} project files to ${accountIdentifier}`,
2654
+ fail: (projectName, accountIdentifier) => `Failed to upload ${chalk.bold(projectName)} project files to ${accountIdentifier}`,
2655
+ succeed: (projectName, accountIdentifier) => `Uploaded ${chalk.bold(projectName)} project files to ${accountIdentifier}`,
2684
2656
  buildCreated: (projectName, buildId) => `Project "${projectName}" uploaded and build #${buildId} created`,
2685
2657
  },
2686
2658
  handleProjectUpload: {
2687
- emptySource: (srcDir) => `Source directory "${srcDir}" is empty. Add files to your project and rerun ${(0, ui_1.uiCommandReference)('hs project upload')} to upload them to HubSpot.`,
2659
+ emptySource: (srcDir) => `Source directory "${srcDir}" is empty. Add files to your project and rerun ${uiCommandReference('hs project upload')} to upload them to HubSpot.`,
2688
2660
  compressed: (byteCount) => `Project files compressed: ${byteCount} bytes`,
2689
2661
  compressing: (path) => `Compressing build files to "${path}"`,
2690
2662
  fileFiltered: (filename) => `Ignore rule triggered for "${filename}"`,
@@ -2694,14 +2666,14 @@ exports.lib = {
2694
2666
  failedToLoad: 'Failed to load boxen util.',
2695
2667
  },
2696
2668
  ui: {
2697
- betaTag: chalk_1.default.bold('[BETA]'),
2669
+ betaTag: chalk.bold('[BETA]'),
2698
2670
  betaWarning: {
2699
- header: chalk_1.default.yellow('***************************** WARNING ****************************'),
2700
- footer: chalk_1.default.yellow('******************************************************************'),
2671
+ header: chalk.yellow('***************************** WARNING ****************************'),
2672
+ footer: chalk.yellow('******************************************************************'),
2701
2673
  },
2702
- infoTag: chalk_1.default.bold('[INFO]'),
2703
- deprecatedTag: chalk_1.default.bold('[DEPRECATED]'),
2704
- errorTag: chalk_1.default.bold('[ERROR]'),
2674
+ infoTag: chalk.bold('[INFO]'),
2675
+ deprecatedTag: chalk.bold('[DEPRECATED]'),
2676
+ errorTag: chalk.bold('[ERROR]'),
2705
2677
  deprecatedMessage: (command, url) => `The ${command} command is deprecated and will be disabled soon. ${url}`,
2706
2678
  deprecatedDescription: (message, command, url) => `${message}. The ${command} command is deprecated and will be disabled soon. ${url}`,
2707
2679
  deprecatedUrlText: 'Learn more.',
@@ -2780,12 +2752,6 @@ exports.lib = {
2780
2752
  noLogsFound: 'No logs found.',
2781
2753
  },
2782
2754
  },
2783
- buildAccount: {
2784
- createDeveloperTestAccountV3: {
2785
- syncFailure: 'Failed to sync developer test account',
2786
- pakFailure: 'Failed to generate personal access key for developer test account',
2787
- },
2788
- },
2789
2755
  configOptions: {
2790
2756
  enableOrDisableBooleanFieldPrompt: {
2791
2757
  message: (fieldName) => `Choose to enable or disable ${fieldName}`,
@@ -2836,13 +2802,13 @@ exports.lib = {
2836
2802
  success: 'Your deprecated config file has been successfully migrated.',
2837
2803
  },
2838
2804
  handleMergeConfigProperties: {
2839
- mergeConflictMessage: (count, propertyList) => `Conflict${count > 1 ? 's' : ''} detected for ${chalk_1.default.bold(propertyList)}.`,
2805
+ mergeConflictMessage: (count, propertyList) => `Conflict${count > 1 ? 's' : ''} detected for ${chalk.bold(propertyList)}.`,
2840
2806
  mergeConfigConflictPrompt: (property, newValue, oldValue) => `Change ${property} from ${newValue} to ${oldValue}?`,
2841
2807
  },
2842
2808
  handleMerge: {
2843
2809
  description: (archivedConfigName) => `We will automatically merge the contents of your deprecated config file into your global configuration file. This will merge the configured accounts and settings into the global config. Then it will archive the deprecated config as ${archivedConfigName} for you to manually cleanup at your convenience.`,
2844
2810
  confirmPrompt: 'Merge the deprecated config into your global config?',
2845
- skippedExistingAccounts: (accountIds) => `The following accounts were not merged because they already exist in the global config:${accountIds.map(id => `\n- ${(0, ui_1.uiAccountDescription)(Number(id))}`).join('')}`,
2811
+ skippedExistingAccounts: (accountIds) => `The following accounts were not merged because they already exist in the global config:${accountIds.map(id => `\n- ${uiAccountDescription(Number(id))}`).join('')}`,
2846
2812
  success: 'Your deprecated config file has been successfully merged with the global config file.',
2847
2813
  },
2848
2814
  },
@@ -2850,17 +2816,17 @@ exports.lib = {
2850
2816
  projectDevTargetAccountPrompt: {
2851
2817
  createNewSandboxOption: '<Test on a new development sandbox>',
2852
2818
  createNewDeveloperTestAccountOption: '<Test on a new developer test account>',
2853
- chooseDefaultAccountOption: () => `<${chalk_1.default.bold('❗')} Test on this production account ${chalk_1.default.bold('❗')}>`,
2819
+ chooseDefaultAccountOption: () => `<${chalk.bold('❗')} Test on this production account ${chalk.bold('❗')}>`,
2854
2820
  promptMessage: (accountType, accountIdentifier) => `[--account] Choose a ${accountType} under ${accountIdentifier} to test with:`,
2855
2821
  sandboxLimit: (limit) => `Your account reached the limit of ${limit} development sandboxes`,
2856
2822
  sandboxLimitWithSuggestion: (limit, authCommand) => `Your account reached the limit of ${limit} development sandboxes. Run ${authCommand} to add an existing one to the config.`,
2857
2823
  developerTestAccountLimit: (limit) => `Your account reached the limit of ${limit} developer test accounts.`,
2858
- confirmDefaultAccount: (accountName, accountType) => `Continue testing on ${chalk_1.default.bold(`${accountName} (${accountType})`)}? (Y/n)`,
2824
+ confirmDefaultAccount: (accountName, accountType) => `Continue testing on ${chalk.bold(`${accountName} (${accountType})`)}? (Y/n)`,
2859
2825
  confirmUseExistingDeveloperTestAccount: (accountName) => `Continue with ${accountName}? This account isn't currently connected to the HubSpot CLI. By continuing, you'll be prompted to generate a personal access key and connect it.`,
2860
2826
  noAccountId: 'No account ID found for the selected account. Please try again.',
2861
2827
  },
2862
2828
  projectLogsPrompt: {
2863
- functionName: (projectName) => `[--function] Select function in ${chalk_1.default.bold(projectName)} project`,
2829
+ functionName: (projectName) => `[--function] Select function in ${chalk.bold(projectName)} project`,
2864
2830
  },
2865
2831
  setAsDefaultAccountPrompt: {
2866
2832
  setAsDefaultAccountMessage: 'Set this account as the default?',
@@ -2868,41 +2834,9 @@ exports.lib = {
2868
2834
  keepingCurrentDefault: (accountName) => `Account "${accountName}" will continue to be the default account`,
2869
2835
  },
2870
2836
  createDeveloperTestAccountConfigPrompt: {
2871
- namePrompt: (withFlag = true) => `${withFlag ? '[--name] ' : ''}Enter the name of the Test Account:`,
2872
- descriptionPrompt: (withFlag = true) => `${withFlag ? '[--description] ' : ''}Enter the description of the Test Account:`,
2873
- useDefaultAccountLevelsPrompt: {
2874
- message: 'Would you like to create a default Test Account, or customize your own?',
2875
- default: 'Default (All Hubs, ENTERPRISE)',
2876
- manual: 'Customize my own',
2877
- },
2878
- tiersPrompt: (withFlag = true) => `${withFlag ? '[--tiers] ' : ''}Select an option per hub to customize tiers. If left blank, default is ENTERPRISE`,
2879
- tiers: {
2880
- marketing: {
2881
- free: 'Marketing [FREE]',
2882
- starter: 'Marketing [STARTER]',
2883
- professional: 'Marketing [PROFESSIONAL]',
2884
- },
2885
- ops: {
2886
- free: 'Ops [FREE]',
2887
- starter: 'Ops [STARTER]',
2888
- professional: 'Ops [PROFESSIONAL]',
2889
- },
2890
- service: {
2891
- free: 'Service [FREE]',
2892
- starter: 'Service [STARTER]',
2893
- professional: 'Service [PROFESSIONAL]',
2894
- },
2895
- sales: {
2896
- free: 'Sales [FREE]',
2897
- starter: 'Sales [STARTER]',
2898
- professional: 'Sales [PROFESSIONAL]',
2899
- },
2900
- content: {
2901
- free: 'Content [FREE]',
2902
- starter: 'Content [STARTER]',
2903
- professional: 'Content [PROFESSIONAL]',
2904
- },
2905
- },
2837
+ namePrompt: '[--name] What is the name of the test account?',
2838
+ descriptionPrompt: '[--description] What is the description of the test account?',
2839
+ tiersPrompt: '[--tiers] Which product tiers should the test account have?',
2906
2840
  errors: {
2907
2841
  tiersError: 'Cannot have more than one tier per hub',
2908
2842
  },
@@ -3011,10 +2945,10 @@ exports.lib = {
3011
2945
  selectAppIdClone: (accountName) => `[--appId] Choose an app under ${accountName} to clone:`,
3012
2946
  errors: {
3013
2947
  noAccountId: 'An account ID is required to select an app.',
3014
- noAppsMigration: () => `${chalk_1.default.bold('No apps to migrate')}`,
3015
- noAppsClone: () => `${chalk_1.default.bold('No apps to clone')}`,
3016
- noAppsMigrationMessage: (accountName) => `The selected developer account ${chalk_1.default.bold(accountName)} doesn't have any apps that can be migrated to the projects framework.`,
3017
- noAppsCloneMessage: (accountName) => `The selected developer account ${chalk_1.default.bold(accountName)} doesn't have any apps that can be cloned to the projects framework.`,
2948
+ noAppsMigration: () => `${chalk.bold('No apps to migrate')}`,
2949
+ noAppsClone: () => `${chalk.bold('No apps to clone')}`,
2950
+ noAppsMigrationMessage: (accountName) => `The selected developer account ${chalk.bold(accountName)} doesn't have any apps that can be migrated to the projects framework.`,
2951
+ noAppsCloneMessage: (accountName) => `The selected developer account ${chalk.bold(accountName)} doesn't have any apps that can be cloned to the projects framework.`,
3018
2952
  errorFetchingApps: 'There was an error fetching public apps.',
3019
2953
  cannotBeMigrated: 'Cannot be migrated',
3020
2954
  },
@@ -3067,7 +3001,7 @@ exports.lib = {
3067
3001
  enterName: '[--project] Enter project name:',
3068
3002
  errors: {
3069
3003
  invalidName: 'You entered an invalid name. Please try again.',
3070
- projectDoesNotExist: (projectName, accountIdentifier) => `Project ${chalk_1.default.bold(projectName)} could not be found in "${accountIdentifier}"`,
3004
+ projectDoesNotExist: (projectName, accountIdentifier) => `Project ${chalk.bold(projectName)} could not be found in "${accountIdentifier}"`,
3071
3005
  },
3072
3006
  },
3073
3007
  previewPrompt: {
@@ -3085,7 +3019,7 @@ exports.lib = {
3085
3019
  prompt: 'Open HubSpot to install this app?',
3086
3020
  autoPrompt: 'Install this app in your target test account?',
3087
3021
  reinstallPrompt: 'Open HubSpot to reinstall this app?',
3088
- decline: `To continue local development of this app, install it in your target test account and re-run ${chalk_1.default.bold('`hs project dev`')}`,
3022
+ decline: `To continue local development of this app, install it in your target test account and re-run ${chalk.bold('`hs project dev`')}`,
3089
3023
  },
3090
3024
  selectHubDBTablePrompt: {
3091
3025
  selectTable: 'Select a HubDB table:',
@@ -3117,20 +3051,20 @@ exports.lib = {
3117
3051
  developerTestAccount: {
3118
3052
  create: {
3119
3053
  loading: {
3120
- add: (accountName) => `Creating developer test account ${chalk_1.default.bold(accountName)}`,
3121
- fail: (accountName) => `Failed to create a developer test account ${chalk_1.default.bold(accountName)}.`,
3122
- succeed: (accountName, accountId) => `Successfully created a developer test account ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
3054
+ add: (accountName) => `Creating developer test account ${chalk.bold(accountName)}`,
3055
+ fail: (accountName) => `Failed to create a developer test account ${chalk.bold(accountName)}.`,
3056
+ succeed: (accountName, accountId) => `Successfully created a developer test account ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
3123
3057
  },
3124
3058
  success: {
3125
3059
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
3126
3060
  },
3127
3061
  failure: {
3128
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
3129
- limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To connect a developer test account to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
3130
- alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To use an existing developer test account, run ${chalk_1.default.bold('hs accounts use')}.`,
3062
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
3063
+ limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To connect a developer test account to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
3064
+ alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer test accounts. \n- To use an existing developer test account, run ${chalk.bold('hs accounts use')}.`,
3131
3065
  scopes: {
3132
3066
  message: "The personal access key you provided doesn't include developer test account permissions.",
3133
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer test account permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
3067
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer test account permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
3134
3068
  },
3135
3069
  },
3136
3070
  },
@@ -3139,58 +3073,58 @@ exports.lib = {
3139
3073
  create: {
3140
3074
  developer: {
3141
3075
  loading: {
3142
- add: (accountName) => `Creating developer sandbox ${chalk_1.default.bold(accountName)}`,
3143
- fail: (accountName) => `Failed to create a developer sandbox ${chalk_1.default.bold(accountName)}.`,
3144
- succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
3076
+ add: (accountName) => `Creating developer sandbox ${chalk.bold(accountName)}`,
3077
+ fail: (accountName) => `Failed to create a developer sandbox ${chalk.bold(accountName)}.`,
3078
+ succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
3145
3079
  },
3146
3080
  success: {
3147
3081
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
3148
3082
  },
3149
3083
  failure: {
3150
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
3151
- limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
3152
- alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk_1.default.bold('hs accounts use')}.`,
3084
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
3085
+ limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To connect a developer sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
3086
+ alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} developer sandboxes. \n- To use an existing developer sandbox, run ${chalk.bold('hs accounts use')}.`,
3153
3087
  scopes: {
3154
3088
  message: "The personal access key you provided doesn't include developer sandbox permissions.",
3155
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
3089
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes developer sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
3156
3090
  },
3157
3091
  generic: 'An error occurred while creating a developer sandbox',
3158
3092
  },
3159
3093
  },
3160
3094
  standard: {
3161
3095
  loading: {
3162
- add: (accountName) => `Creating standard sandbox ${chalk_1.default.bold(accountName)}`,
3163
- fail: (accountName) => `Failed to create a standard sandbox ${chalk_1.default.bold(accountName)}.`,
3164
- succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
3096
+ add: (accountName) => `Creating standard sandbox ${chalk.bold(accountName)}`,
3097
+ fail: (accountName) => `Failed to create a standard sandbox ${chalk.bold(accountName)}.`,
3098
+ succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk.bold(accountName)} with portalId ${chalk.bold(accountId)}.`,
3165
3099
  },
3166
3100
  success: {
3167
3101
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
3168
3102
  },
3169
3103
  failure: {
3170
- invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
3171
- limit: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk_1.default.bold('hs auth')} and follow the prompts.`,
3172
- alreadyInConfig: (accountName, limit) => `${chalk_1.default.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk_1.default.bold('hs accounts use')}.`,
3104
+ invalidUser: (accountName, parentAccountName) => `Couldn't create ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to create the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
3105
+ limit: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To connect a standard sandbox to your HubSpot CLI, run ${chalk.bold('hs auth')} and follow the prompts.`,
3106
+ alreadyInConfig: (accountName, limit) => `${chalk.bold(accountName)} reached the limit of ${limit} standard sandboxes. \n- To use an existing standard sandbox, run ${chalk.bold('hs accounts use')}.`,
3173
3107
  scopes: {
3174
3108
  message: "The personal access key you provided doesn't include standard sandbox permissions.",
3175
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
3109
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes standard sandbox permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
3176
3110
  },
3177
3111
  },
3178
3112
  },
3179
3113
  },
3180
3114
  sync: {
3181
3115
  loading: {
3182
- add: (accountName) => `Syncing sandbox ${chalk_1.default.bold(accountName)}`,
3183
- fail: (accountName) => `Failed to sync sandbox ${chalk_1.default.bold(accountName)}.`,
3184
- succeed: (accountName) => `Successfully synced sandbox ${chalk_1.default.bold(accountName)}.`,
3116
+ add: (accountName) => `Syncing sandbox ${chalk.bold(accountName)}`,
3117
+ fail: (accountName) => `Failed to sync sandbox ${chalk.bold(accountName)}.`,
3118
+ succeed: (accountName) => `Successfully synced sandbox ${chalk.bold(accountName)}.`,
3185
3119
  },
3186
3120
  success: {
3187
3121
  configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
3188
3122
  },
3189
3123
  failure: {
3190
- invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk_1.default.bold(accountName)} because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
3124
+ invalidUser: (accountName, parentAccountName) => `Couldn't sync ${chalk.bold(accountName)} because your account has been removed from ${chalk.bold(parentAccountName)} or your permission set doesn't allow you to sync the sandbox. To update your permissions, contact a super admin in ${chalk.bold(parentAccountName)}.`,
3191
3125
  scopes: {
3192
3126
  message: "The personal access key you provided doesn't include sandbox sync permissions.",
3193
- instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
3127
+ instructions: (accountName, url) => `To update CLI permissions for "${accountName}": \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes sandbox sync permissions. \n- Update the CLI config for this account by running ${chalk.bold('hs auth')} and entering the new key.\n`,
3194
3128
  },
3195
3129
  },
3196
3130
  },
@@ -3205,9 +3139,9 @@ exports.lib = {
3205
3139
  suppressErrors: {
3206
3140
  platformVersionErrors: {
3207
3141
  header: 'Platform version update required',
3208
- unspecifiedPlatformVersion: (platformVersion) => `Projects with an ${chalk_1.default.bold(platformVersion)} are no longer supported.`,
3209
- platformVersionRetired: (platformVersion) => `Projects with ${chalk_1.default.bold(`platformVersion ${platformVersion}`)} are no longer supported.`,
3210
- nonExistentPlatformVersion: (platformVersion) => `Projects with ${chalk_1.default.bold(`platformVersion ${platformVersion}`)} are not supported.`,
3142
+ unspecifiedPlatformVersion: (platformVersion) => `Projects with an ${chalk.bold(platformVersion)} are no longer supported.`,
3143
+ platformVersionRetired: (platformVersion) => `Projects with ${chalk.bold(`platformVersion ${platformVersion}`)} are no longer supported.`,
3144
+ nonExistentPlatformVersion: (platformVersion) => `Projects with ${chalk.bold(`platformVersion ${platformVersion}`)} are not supported.`,
3211
3145
  updateProject: 'Please update your project to the latest version and try again.',
3212
3146
  docsLink: 'Projects platform versioning (BETA)',
3213
3147
  betaLink: (docsLink) => `For more info, see ${docsLink}.`,
@@ -3259,13 +3193,13 @@ exports.lib = {
3259
3193
  unableToDetermineSecondaryLink: 'npm HubSpot CLI version history',
3260
3194
  },
3261
3195
  projectDependenciesChecks: {
3262
- missingDependencies: (dir) => `missing dependencies in ${chalk_1.default.bold(dir)}`,
3196
+ missingDependencies: (dir) => `missing dependencies in ${chalk.bold(dir)}`,
3263
3197
  missingDependenciesSecondary: (command) => `Run ${command} to install all project dependencies locally`,
3264
3198
  unableToDetermine: (dir) => `Unable to determine if dependencies are installed ${dir}`,
3265
3199
  success: 'App dependencies are installed and up to date',
3266
3200
  },
3267
3201
  files: {
3268
- invalidJson: (filename) => `invalid JSON in ${chalk_1.default.bold(filename)}`,
3202
+ invalidJson: (filename) => `invalid JSON in ${chalk.bold(filename)}`,
3269
3203
  validJson: 'JSON files valid',
3270
3204
  },
3271
3205
  port: {
@@ -3279,19 +3213,19 @@ exports.lib = {
3279
3213
  },
3280
3214
  cliConfig: {
3281
3215
  header: 'CLI configuration',
3282
- configFileSubHeader: (filename) => `Config File: ${chalk_1.default.bold(filename)}`,
3216
+ configFileSubHeader: (filename) => `Config File: ${chalk.bold(filename)}`,
3283
3217
  defaultAccountSubHeader: (accountDetails) => `Default Account: ${accountDetails}`,
3284
3218
  noConfigFile: 'CLI configuration not found',
3285
3219
  noConfigFileSecondary: (command) => `Run ${command} and follow the prompts to create your CLI configuration file and connect it to your HubSpot account`,
3286
3220
  },
3287
3221
  projectConfig: {
3288
3222
  header: 'Project configuration',
3289
- projectDirSubHeader: (projectDir) => `Project dir: ${chalk_1.default.bold(projectDir)}`,
3290
- projectNameSubHeader: (projectName) => `Project name: ${chalk_1.default.bold(projectName)}`,
3223
+ projectDirSubHeader: (projectDir) => `Project dir: ${chalk.bold(projectDir)}`,
3224
+ projectNameSubHeader: (projectName) => `Project name: ${chalk.bold(projectName)}`,
3291
3225
  },
3292
3226
  counts: {
3293
- errors: (count) => `${chalk_1.default.bold('Errors:')} ${count}`,
3294
- warnings: (count) => `${chalk_1.default.bold('Warning:')} ${count}`,
3227
+ errors: (count) => `${chalk.bold('Errors:')} ${count}`,
3228
+ warnings: (count) => `${chalk.bold('Warning:')} ${count}`,
3295
3229
  },
3296
3230
  },
3297
3231
  },
@@ -3303,11 +3237,11 @@ exports.lib = {
3303
3237
  componentsThatWillNotBeMigrated: (components) => `[NOTE] These features are not yet supported for migration but will be available later: ${components}`,
3304
3238
  sourceContentsMoved: (newLocation) => `The contents of your old source directory have been moved to ${newLocation}, move any required files to the new source directory.`,
3305
3239
  projectMigrationWarningTitle: '⚠️ Important: Migrating to platformVersion 2025.2 is irreversible ⚠️',
3306
- projectMigrationWarning: (0, ui_1.uiBetaTag)(`Running the ${(0, ui_1.uiCommandReference)('hs project migrate')} command will permanently upgrade your project to platformVersion 2025.2. This action cannot be undone. To ensure you have access to your original files, they will be copied to a new directory (archive) for safekeeping.\n\nThis command will guide you through the process, prompting you to enter the required fields and will download the new project source code into your project source directory.`, false),
3240
+ projectMigrationWarning: uiBetaTag(`Running the ${uiCommandReference('hs project migrate')} command will permanently upgrade your project to platformVersion 2025.2. This action cannot be undone. To ensure you have access to your original files, they will be copied to a new directory (archive) for safekeeping.\n\nThis command will guide you through the process, prompting you to enter the required fields and will download the new project source code into your project source directory.`, false),
3307
3241
  errors: {
3308
3242
  project: {
3309
3243
  invalidConfig: 'The project configuration file is invalid. Please check the config file and try again.',
3310
- doesNotExist: (account) => `Project does not exist in ${(0, ui_1.uiAccountDescription)(account)}. Migrations are only supported for existing projects.`,
3244
+ doesNotExist: (account) => `Project does not exist in ${uiAccountDescription(account)}. Migrations are only supported for existing projects.`,
3311
3245
  multipleApps: 'Multiple apps found in project, this is not allowed in 2025.2',
3312
3246
  alreadyExists: (projectName) => `A project with name ${projectName} already exists. Please choose another name.`,
3313
3247
  },
@@ -3315,12 +3249,12 @@ exports.lib = {
3315
3249
  upToDate: 'App is already up to date',
3316
3250
  isPrivateApp: 'Private apps are not currently migratable',
3317
3251
  listedInMarketplace: 'Listed apps are not currently migratable',
3318
- projectConnectedToGitHub: (projectName, accountId) => `The project is linked to a GitHub repository. ${(0, ui_1.uiLink)('Visit the project settings page to unlink it', (0, urls_1.getProjectSettingsUrl)(projectName, accountId))}`,
3319
- partOfProjectAlready: `This app is part of a project, run ${(0, ui_1.uiCommandReference)('hs project migrate')} from the project directory to migrate it`,
3252
+ projectConnectedToGitHub: (projectName, accountId) => `The project is linked to a GitHub repository. ${uiLink('Visit the project settings page to unlink it', getProjectSettingsUrl(projectName, accountId))}`,
3253
+ partOfProjectAlready: `This app is part of a project, run ${uiCommandReference('hs project migrate')} from the project directory to migrate it`,
3320
3254
  generic: (reasonCode) => `Unable to migrate app: ${reasonCode}`,
3321
3255
  },
3322
3256
  noAppsEligible: (accountId, reasons) => `No apps in account ${accountId} are currently migratable${reasons.length ? `\n - ${reasons.join('\n - ')}` : ''}`,
3323
- invalidAccountTypeTitle: `${chalk_1.default.bold('Developer account not targeted')}`,
3257
+ invalidAccountTypeTitle: `${chalk.bold('Developer account not targeted')}`,
3324
3258
  invalidAccountTypeDescription: (useCommand, authCommand) => `Only public apps created in a developer account can be converted to a project component. Select a connected developer account with ${useCommand} or ${authCommand} and try again.`,
3325
3259
  appWithAppIdNotFound: (appId) => `Could not find an app with the id ${appId} `,
3326
3260
  noAppsForProject: (projectName) => `No apps associated with project ${projectName}`,