@hubspot/cli 7.5.11-experimental.0 → 7.7.0-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 (289) hide show
  1. package/bin/cli.js +5 -6
  2. package/bin/hsmcp.d.ts +2 -0
  3. package/bin/hsmcp.js +13 -0
  4. package/commands/account/auth.d.ts +3 -7
  5. package/commands/account/auth.js +19 -9
  6. package/commands/account/clean.d.ts +3 -7
  7. package/commands/account/clean.js +16 -9
  8. package/commands/account/createOverride.d.ts +3 -7
  9. package/commands/account/createOverride.js +23 -6
  10. package/commands/account/info.d.ts +3 -7
  11. package/commands/account/info.js +13 -5
  12. package/commands/account/list.d.ts +3 -7
  13. package/commands/account/list.js +15 -8
  14. package/commands/account/remove.d.ts +3 -7
  15. package/commands/account/remove.js +21 -9
  16. package/commands/account/removeOverride.d.ts +3 -7
  17. package/commands/account/removeOverride.js +23 -6
  18. package/commands/account/rename.d.ts +3 -7
  19. package/commands/account/rename.js +16 -9
  20. package/commands/account/use.d.ts +5 -9
  21. package/commands/account/use.js +14 -6
  22. package/commands/account.d.ts +3 -4
  23. package/commands/account.js +35 -58
  24. package/commands/app/migrate.d.ts +1 -2
  25. package/commands/app/migrate.js +7 -8
  26. package/commands/app/secret/add.d.ts +7 -0
  27. package/commands/app/secret/add.js +64 -0
  28. package/commands/app/secret/delete.d.ts +8 -0
  29. package/commands/app/secret/delete.js +87 -0
  30. package/commands/app/secret/list.d.ts +6 -0
  31. package/commands/app/secret/list.js +64 -0
  32. package/commands/app/secret/update.d.ts +7 -0
  33. package/commands/app/secret/update.js +77 -0
  34. package/commands/app/secret.d.ts +3 -0
  35. package/commands/app/secret.js +30 -0
  36. package/commands/app.d.ts +2 -5
  37. package/commands/app.js +12 -8
  38. package/commands/auth.d.ts +3 -7
  39. package/commands/auth.js +12 -5
  40. package/commands/cms/convertFields.d.ts +7 -1
  41. package/commands/cms/convertFields.js +57 -41
  42. package/commands/cms/getReactModule.d.ts +7 -1
  43. package/commands/cms/getReactModule.js +52 -34
  44. package/commands/cms/lighthouseScore.d.ts +8 -1
  45. package/commands/cms/lighthouseScore.js +129 -100
  46. package/commands/cms.d.ts +3 -1
  47. package/commands/cms.js +24 -15
  48. package/commands/completion.d.ts +3 -1
  49. package/commands/completion.js +25 -12
  50. package/commands/config/migrate.d.ts +3 -7
  51. package/commands/config/migrate.js +25 -15
  52. package/commands/config/set.d.ts +5 -6
  53. package/commands/config/set.js +38 -14
  54. package/commands/config.d.ts +3 -4
  55. package/commands/config.js +20 -44
  56. package/commands/create/api-sample.d.ts +3 -1
  57. package/commands/create/api-sample.js +34 -38
  58. package/commands/create/app.d.ts +3 -1
  59. package/commands/create/app.js +9 -7
  60. package/commands/create/function.d.ts +3 -1
  61. package/commands/create/function.js +11 -10
  62. package/commands/create/index.d.ts +5 -1
  63. package/commands/create/index.js +23 -11
  64. package/commands/create/module.d.ts +3 -1
  65. package/commands/create/module.js +14 -13
  66. package/commands/create/react-app.d.ts +3 -1
  67. package/commands/create/react-app.js +10 -7
  68. package/commands/create/template.d.ts +3 -1
  69. package/commands/create/template.js +14 -14
  70. package/commands/create/vue-app.d.ts +3 -1
  71. package/commands/create/vue-app.js +10 -7
  72. package/commands/create/webpack-serverless.d.ts +3 -1
  73. package/commands/create/webpack-serverless.js +10 -7
  74. package/commands/create/website-theme.d.ts +3 -1
  75. package/commands/create/website-theme.js +10 -9
  76. package/commands/create.d.ts +4 -24
  77. package/commands/create.js +64 -74
  78. package/commands/customObject/create.d.ts +4 -9
  79. package/commands/customObject/create.js +17 -10
  80. package/commands/customObject/schema/create.d.ts +4 -9
  81. package/commands/customObject/schema/create.js +18 -11
  82. package/commands/customObject/schema/delete.d.ts +4 -9
  83. package/commands/customObject/schema/delete.js +17 -10
  84. package/commands/customObject/schema/fetch-all.d.ts +4 -9
  85. package/commands/customObject/schema/fetch-all.js +17 -10
  86. package/commands/customObject/schema/fetch.d.ts +4 -9
  87. package/commands/customObject/schema/fetch.js +17 -10
  88. package/commands/customObject/schema/list.d.ts +4 -8
  89. package/commands/customObject/schema/list.js +17 -10
  90. package/commands/customObject/schema/update.d.ts +4 -9
  91. package/commands/customObject/schema/update.js +18 -11
  92. package/commands/customObject/schema.d.ts +3 -5
  93. package/commands/customObject/schema.js +27 -54
  94. package/commands/customObject.d.ts +3 -4
  95. package/commands/customObject.js +20 -45
  96. package/commands/doctor.d.ts +6 -8
  97. package/commands/doctor.js +32 -21
  98. package/commands/feedback.d.ts +4 -1
  99. package/commands/feedback.js +40 -47
  100. package/commands/fetch.d.ts +12 -1
  101. package/commands/fetch.js +49 -33
  102. package/commands/filemanager/fetch.d.ts +4 -9
  103. package/commands/filemanager/fetch.js +18 -11
  104. package/commands/filemanager/upload.d.ts +4 -9
  105. package/commands/filemanager/upload.js +17 -11
  106. package/commands/filemanager.d.ts +3 -4
  107. package/commands/filemanager.js +20 -41
  108. package/commands/function/deploy.d.ts +6 -1
  109. package/commands/function/deploy.js +70 -50
  110. package/commands/function/list.d.ts +6 -1
  111. package/commands/function/list.js +44 -32
  112. package/commands/function/server.d.ts +10 -1
  113. package/commands/function/server.js +49 -38
  114. package/commands/function.d.ts +5 -1
  115. package/commands/function.js +24 -10
  116. package/commands/hubdb/clear.d.ts +4 -9
  117. package/commands/hubdb/clear.js +17 -10
  118. package/commands/hubdb/create.d.ts +4 -9
  119. package/commands/hubdb/create.js +17 -10
  120. package/commands/hubdb/delete.d.ts +4 -9
  121. package/commands/hubdb/delete.js +17 -10
  122. package/commands/hubdb/fetch.d.ts +4 -9
  123. package/commands/hubdb/fetch.js +17 -10
  124. package/commands/hubdb.d.ts +3 -2
  125. package/commands/hubdb.js +23 -45
  126. package/commands/init.d.ts +3 -7
  127. package/commands/init.js +12 -5
  128. package/commands/lint.d.ts +6 -4
  129. package/commands/lint.js +44 -43
  130. package/commands/list.d.ts +3 -7
  131. package/commands/list.js +19 -11
  132. package/commands/logs.d.ts +10 -1
  133. package/commands/logs.js +53 -44
  134. package/commands/module/marketplace-validate.d.ts +6 -1
  135. package/commands/module/marketplace-validate.js +39 -27
  136. package/commands/module.d.ts +3 -1
  137. package/commands/module.js +22 -10
  138. package/commands/mv.d.ts +3 -7
  139. package/commands/mv.js +19 -11
  140. package/commands/open.d.ts +3 -7
  141. package/commands/open.js +19 -11
  142. package/commands/project/cloneApp.d.ts +1 -1
  143. package/commands/project/cloneApp.js +2 -2
  144. package/commands/project/create.js +3 -3
  145. package/commands/project/deploy.d.ts +1 -0
  146. package/commands/project/deploy.js +40 -12
  147. package/commands/project/dev/index.d.ts +1 -4
  148. package/commands/project/dev/index.js +48 -16
  149. package/commands/project/dev/unifiedFlow.d.ts +2 -1
  150. package/commands/project/dev/unifiedFlow.js +85 -30
  151. package/commands/project/migrate.d.ts +1 -0
  152. package/commands/project/profile/add.d.ts +7 -0
  153. package/commands/project/profile/add.js +209 -0
  154. package/commands/project/profile/delete.d.ts +6 -0
  155. package/commands/project/profile/delete.js +123 -0
  156. package/commands/project/profile.d.ts +3 -0
  157. package/commands/project/profile.js +25 -0
  158. package/commands/project/upload.d.ts +1 -0
  159. package/commands/project/upload.js +38 -8
  160. package/commands/project/validate.d.ts +4 -0
  161. package/commands/project/validate.js +53 -0
  162. package/commands/project.js +4 -0
  163. package/commands/remove.d.ts +3 -7
  164. package/commands/remove.js +19 -11
  165. package/commands/sandbox/create.d.ts +4 -9
  166. package/commands/sandbox/create.js +18 -11
  167. package/commands/sandbox/delete.d.ts +4 -9
  168. package/commands/sandbox/delete.js +18 -11
  169. package/commands/sandbox.d.ts +3 -4
  170. package/commands/sandbox.js +20 -43
  171. package/commands/secret/addSecret.d.ts +4 -9
  172. package/commands/secret/addSecret.js +17 -10
  173. package/commands/secret/deleteSecret.d.ts +4 -9
  174. package/commands/secret/deleteSecret.js +17 -10
  175. package/commands/secret/listSecret.d.ts +4 -9
  176. package/commands/secret/listSecret.js +17 -10
  177. package/commands/secret/updateSecret.d.ts +4 -9
  178. package/commands/secret/updateSecret.js +17 -10
  179. package/commands/secret.d.ts +3 -4
  180. package/commands/secret.js +25 -48
  181. package/commands/setupMcp.d.ts +8 -0
  182. package/commands/setupMcp.js +229 -0
  183. package/commands/theme/generate-selectors.d.ts +3 -7
  184. package/commands/theme/generate-selectors.js +14 -6
  185. package/commands/theme/marketplace-validate.d.ts +4 -9
  186. package/commands/theme/marketplace-validate.js +17 -10
  187. package/commands/theme/preview.d.ts +4 -9
  188. package/commands/theme/preview.js +16 -9
  189. package/commands/theme.d.ts +3 -4
  190. package/commands/theme.js +23 -46
  191. package/commands/upload.d.ts +12 -1
  192. package/commands/upload.js +118 -97
  193. package/commands/watch.d.ts +14 -1
  194. package/commands/watch.js +76 -65
  195. package/lang/en.d.ts +838 -574
  196. package/lang/en.js +630 -373
  197. package/lang/en.lyaml +30 -23
  198. package/lib/accountTypes.js +2 -1
  199. package/lib/app/migrate.d.ts +23 -0
  200. package/lib/app/migrate.js +14 -3
  201. package/lib/app/migrate_legacy.js +7 -7
  202. package/lib/app/urls.d.ts +16 -0
  203. package/lib/app/urls.js +16 -0
  204. package/lib/configMigrate.js +24 -10
  205. package/lib/configOptions.d.ts +4 -0
  206. package/lib/configOptions.js +41 -46
  207. package/lib/constants.d.ts +6 -0
  208. package/lib/constants.js +7 -1
  209. package/lib/dependencyManagement.d.ts +0 -5
  210. package/lib/dependencyManagement.js +13 -39
  211. package/lib/doctor/Doctor.js +2 -1
  212. package/lib/filesystem.d.ts +1 -1
  213. package/lib/interpolation.d.ts +2 -3
  214. package/lib/lang.d.ts +2 -3
  215. package/lib/middleware/autoUpdateMiddleware.d.ts +1 -0
  216. package/lib/middleware/autoUpdateMiddleware.js +89 -0
  217. package/lib/middleware/configMiddleware.js +8 -0
  218. package/lib/npm.d.ts +9 -0
  219. package/lib/npm.js +36 -0
  220. package/lib/projectProfiles.d.ts +6 -0
  221. package/lib/projectProfiles.js +65 -0
  222. package/lib/projects/buildAndDeploy.js +17 -2
  223. package/lib/projects/localDev/AppDevModeInterface.d.ts +26 -0
  224. package/lib/projects/localDev/AppDevModeInterface.js +156 -0
  225. package/lib/projects/localDev/DevServerManagerV2.d.ts +11 -22
  226. package/lib/projects/localDev/DevServerManagerV2.js +19 -15
  227. package/lib/projects/localDev/LocalDevLogger.d.ts +30 -0
  228. package/lib/projects/localDev/LocalDevLogger.js +158 -0
  229. package/lib/projects/localDev/LocalDevManager.js +12 -5
  230. package/lib/projects/localDev/LocalDevProcess.d.ts +27 -0
  231. package/lib/projects/localDev/LocalDevProcess.js +171 -0
  232. package/lib/projects/localDev/LocalDevState.d.ts +37 -0
  233. package/lib/projects/localDev/LocalDevState.js +78 -0
  234. package/lib/projects/localDev/LocalDevWatcher.d.ts +10 -0
  235. package/lib/projects/localDev/LocalDevWatcher.js +56 -0
  236. package/lib/projects/localDev/LocalDevWebsocketServer.d.ts +17 -0
  237. package/lib/projects/localDev/LocalDevWebsocketServer.js +92 -0
  238. package/lib/projects/localDev/helpers.d.ts +3 -2
  239. package/lib/projects/localDev/helpers.js +32 -2
  240. package/lib/projects/upload.d.ts +2 -1
  241. package/lib/projects/upload.js +2 -2
  242. package/lib/prompts/createApiSamplePrompt.d.ts +2 -10
  243. package/lib/prompts/createTemplatePrompt.d.ts +22 -4
  244. package/lib/prompts/installAppPrompt.d.ts +1 -0
  245. package/lib/prompts/installAppPrompt.js +35 -0
  246. package/lib/prompts/projectDevTargetAccountPrompt.d.ts +6 -1
  247. package/lib/prompts/projectDevTargetAccountPrompt.js +6 -6
  248. package/lib/prompts/promptUtils.d.ts +2 -1
  249. package/lib/prompts/promptUtils.js +2 -1
  250. package/lib/prompts/selectAppPrompt.d.ts +2 -0
  251. package/lib/prompts/selectAppPrompt.js +40 -0
  252. package/lib/prompts/{selectPublicAppPrompt.d.ts → selectPublicAppForMigrationPrompt.d.ts} +1 -1
  253. package/lib/prompts/{selectPublicAppPrompt.js → selectPublicAppForMigrationPrompt.js} +8 -8
  254. package/lib/testUtils.d.ts +3 -3
  255. package/lib/testUtils.js +8 -9
  256. package/lib/ui/index.js +4 -1
  257. package/lib/upload.d.ts +1 -1
  258. package/lib/validation.js +4 -5
  259. package/lib/yargsUtils.d.ts +4 -0
  260. package/lib/yargsUtils.js +6 -0
  261. package/mcp-server/index.d.ts +1 -0
  262. package/mcp-server/index.js +17 -0
  263. package/mcp-server/mcpLoader.d.ts +5 -0
  264. package/mcp-server/mcpLoader.js +24 -0
  265. package/mcp-server/tools/ExplainProjectStructureTool.d.ts +33 -0
  266. package/mcp-server/tools/ExplainProjectStructureTool.js +266 -0
  267. package/mcp-server/tools/GenerateAppComponentTool.d.ts +99 -0
  268. package/mcp-server/tools/GenerateAppComponentTool.js +193 -0
  269. package/mcp-server/tools/GenerateCardComponentTool.d.ts +74 -0
  270. package/mcp-server/tools/GenerateCardComponentTool.js +146 -0
  271. package/mcp-server/tools/GenerateProjectConfigTool.d.ts +32 -0
  272. package/mcp-server/tools/GenerateProjectConfigTool.js +40 -0
  273. package/mcp-server/tools/HubSpotCLIHelper.d.ts +16 -0
  274. package/mcp-server/tools/HubSpotCLIHelper.js +74 -0
  275. package/mcp-server/tools/UploadProjectTool.d.ts +44 -0
  276. package/mcp-server/tools/UploadProjectTool.js +149 -0
  277. package/mcp-server/tools/ValidateProjectTool.d.ts +62 -0
  278. package/mcp-server/tools/ValidateProjectTool.js +315 -0
  279. package/package.json +13 -6
  280. package/types/Cms.d.ts +30 -0
  281. package/types/Cms.js +2 -0
  282. package/types/LocalDev.d.ts +24 -0
  283. package/types/LocalDev.js +2 -0
  284. package/types/Prompts.d.ts +0 -7
  285. package/types/Yargs.d.ts +8 -1
  286. package/lib/projects/localDev/LocalDevManagerV2.d.ts +0 -64
  287. package/lib/projects/localDev/LocalDevManagerV2.js +0 -345
  288. package/lib/prompts/installPublicAppPrompt.d.ts +0 -1
  289. package/lib/prompts/installPublicAppPrompt.js +0 -41
package/lang/en.d.ts CHANGED
@@ -1,16 +1,11 @@
1
1
  export declare const commands: {
2
2
  readonly generalErrors: {
3
- readonly updateNotify: {
4
- readonly notifyTitle: "Update available";
5
- readonly cmsUpdateNotification: (packageName: string | number, updateCommand: string | number) => string;
6
- readonly cliUpdateNotification: (currentVersion: string | number, latestVersion: string | number, updateCommand: string | number) => string;
7
- };
8
- readonly srcIsProject: (src: string | number, command: string | number) => string;
3
+ readonly srcIsProject: (src: string, command: string) => string;
9
4
  readonly handleDeprecatedEnvVariables: {
10
5
  readonly portalEnvVarDeprecated: "The HUBSPOT_PORTAL_ID environment variable is deprecated. Please use HUBSPOT_ACCOUNT_ID instead.";
11
6
  };
12
7
  readonly loadConfigMiddleware: {
13
- readonly configFileExists: (configPath: string | number) => string;
8
+ readonly configFileExists: (configPath: string) => string;
14
9
  };
15
10
  };
16
11
  readonly completion: {
@@ -24,9 +19,9 @@ export declare const commands: {
24
19
  readonly subcommands: {
25
20
  readonly list: {
26
21
  readonly accounts: `${string}:`;
27
- readonly defaultAccount: (account: string | number) => string;
22
+ readonly defaultAccount: (account: string) => string;
28
23
  readonly describe: "List names of accounts defined in config.";
29
- readonly configPath: (configPath: string | number) => string;
24
+ readonly configPath: (configPath: string) => string;
30
25
  readonly labels: {
31
26
  readonly accountId: "Account ID";
32
27
  readonly authType: "Auth Type";
@@ -44,13 +39,13 @@ export declare const commands: {
44
39
  };
45
40
  };
46
41
  readonly success: {
47
- readonly renamed: (name: string | number, newName: string | number) => string;
42
+ readonly renamed: (name: string, newName: string) => string;
48
43
  };
49
44
  };
50
45
  readonly use: {
51
46
  readonly describe: "Set the Hubspot account to use as the default account. The default account can be overridden with the \"--account\" option.";
52
47
  readonly errors: {
53
- readonly accountNotFound: (specifiedAccount: string | number, configPath: string | number) => string;
48
+ readonly accountNotFound: (specifiedAccount: string, configPath: string) => string;
54
49
  };
55
50
  readonly examples: {
56
51
  readonly default: "Select a HubSpot account to use as the default account";
@@ -64,7 +59,7 @@ export declare const commands: {
64
59
  };
65
60
  readonly promptMessage: "Select an account to use as the default";
66
61
  readonly success: {
67
- readonly defaultAccountUpdated: (accountName: string | number) => string;
62
+ readonly defaultAccountUpdated: (accountName: string) => string;
68
63
  };
69
64
  };
70
65
  readonly remove: {
@@ -76,7 +71,7 @@ export declare const commands: {
76
71
  readonly selectAccountToRemove: "Select an account to remove from the config";
77
72
  };
78
73
  readonly errors: {
79
- readonly accountNotFound: (specifiedAccount: string | number, configPath: string | number) => string;
74
+ readonly accountNotFound: (specifiedAccount: string, configPath: string) => string;
80
75
  };
81
76
  readonly examples: {
82
77
  readonly default: "Select a HubSpot account to remove from the config";
@@ -89,11 +84,11 @@ export declare const commands: {
89
84
  };
90
85
  readonly promptMessage: "Select an account to remove";
91
86
  readonly success: {
92
- readonly accountRemoved: (accountName: string | number) => string;
87
+ readonly accountRemoved: (accountName: string) => string;
93
88
  };
94
89
  };
95
90
  readonly info: {
96
- readonly accountId: (accountId: string | number) => string;
91
+ readonly accountId: (accountId: string) => string;
97
92
  readonly describe: "Print information about the default account, or about the account specified with the \"account\" option.";
98
93
  readonly errors: {
99
94
  readonly notUsingPersonalAccessKey: "This command currently only supports fetching scopes for the personal access key auth type.";
@@ -103,7 +98,7 @@ export declare const commands: {
103
98
  readonly idBased: "Print information for the account with accountId equal to \"1234567\"";
104
99
  readonly nameBased: "Print information for the account in the config with name equal to \"MyAccount\"";
105
100
  };
106
- readonly name: (name: string | number) => string;
101
+ readonly name: (name: string) => string;
107
102
  readonly scopeGroups: `${string}:`;
108
103
  };
109
104
  readonly clean: {
@@ -114,40 +109,40 @@ export declare const commands: {
114
109
  };
115
110
  readonly inactiveAccountsFound: {
116
111
  readonly one: "1 inactive account found:";
117
- readonly other: (count: string | number) => string;
112
+ readonly other: (count: string) => string;
118
113
  };
119
114
  readonly confirm: {
120
115
  readonly one: "Remove 1 inactive account from the CLI config?";
121
- readonly other: (count: string | number) => string;
116
+ readonly other: (count: string) => string;
122
117
  };
123
- readonly removeSuccess: (accountName: string | number) => string;
118
+ readonly removeSuccess: (accountName: string) => string;
124
119
  };
125
120
  };
126
121
  };
127
122
  readonly auth: {
128
- readonly describe: (configName: string | number) => string;
123
+ readonly describe: (configName: string) => string;
129
124
  readonly errors: {
130
125
  readonly noConfigFileFound: "No config file was found. To create a new config file, use the \"hs init\" command.";
131
- readonly unsupportedAuthType: (type: string | number, supportedProtocols: string | number) => string;
126
+ readonly unsupportedAuthType: (type: string, supportedProtocols: string) => string;
132
127
  };
133
128
  readonly options: {
134
129
  readonly authType: {
135
130
  readonly describe: "Authentication mechanism";
136
- readonly defaultDescription: (authMethod: string | number) => string;
131
+ readonly defaultDescription: (authMethod: string) => string;
137
132
  };
138
133
  readonly account: {
139
134
  readonly describe: "HubSpot account to authenticate";
140
135
  };
141
136
  };
142
137
  readonly success: {
143
- readonly configFileUpdated: (accountName: string | number, configFilename: string | number, authType: string | number) => string;
138
+ readonly configFileUpdated: (accountName: string, configFilename: string, authType: string) => string;
144
139
  };
145
140
  };
146
141
  readonly config: {
147
142
  readonly describe: "Commands for managing the CLI config file.";
148
143
  readonly subcommands: {
149
144
  readonly set: {
150
- readonly describe: "Set various configuration options within the hubspot.config.yml file.";
145
+ readonly describe: "Set various configuration options within the hubspot CLI config file.";
151
146
  readonly promptMessage: "Select a config option to update";
152
147
  readonly examples: {
153
148
  readonly default: "Opens a prompt to select a config item to modify";
@@ -155,23 +150,15 @@ export declare const commands: {
155
150
  readonly options: {
156
151
  readonly defaultMode: {
157
152
  readonly describe: "Set the default CMS publish mode";
158
- readonly promptMessage: "Select CMS publish mode to be used as the default";
159
- readonly error: (validModes: string | number) => string;
160
- readonly success: (mode: string | number) => string;
161
153
  };
162
154
  readonly allowUsageTracking: {
163
155
  readonly describe: "Enable or disable usage tracking";
164
- readonly promptMessage: "Choose to enable or disable usage tracking";
165
- readonly success: (isEnabled: string | number) => string;
166
- readonly labels: {
167
- readonly enabled: "Enabled";
168
- readonly disabled: "Disabled";
169
- };
170
156
  };
171
157
  readonly httpTimeout: {
172
158
  readonly describe: "Set the http timeout duration";
173
- readonly promptMessage: "Enter http timeout duration";
174
- readonly success: (timeout: string | number) => string;
159
+ };
160
+ readonly allowAutoUpdates: {
161
+ readonly describe: "Enable or disable auto updates";
175
162
  };
176
163
  };
177
164
  };
@@ -188,8 +175,8 @@ export declare const commands: {
188
175
  readonly info: {
189
176
  readonly promptMessage: "Select a theme to score";
190
177
  readonly fetchingThemes: "Fetching available themes";
191
- readonly generatingScore: (theme: string | number) => string;
192
- readonly targetDeviceNote: (target: string | number) => string;
178
+ readonly generatingScore: (theme: string) => string;
179
+ readonly targetDeviceNote: (target: string) => string;
193
180
  readonly verboseOptionNote: "Theme scores are averages of all theme templates. Use the [--verbose] option to include individual template scores.";
194
181
  readonly pageTemplateScoreTitle: "Page template scores";
195
182
  readonly lighthouseLinksTitle: "Lighthouse links";
@@ -198,7 +185,7 @@ export declare const commands: {
198
185
  readonly errors: {
199
186
  readonly targetOptionRequired: "[--target] is required for detailed view";
200
187
  readonly invalidTargetOption: "[--target] can only be used for detailed view";
201
- readonly themeNotFound: (theme: string | number) => string;
188
+ readonly themeNotFound: (theme: string) => string;
202
189
  readonly failedToFetchThemes: "Failed to fetch available themes. Try running again with the [--theme] option";
203
190
  readonly failedToGetLighthouseScore: "Failed to generate a Google Lighthouse score";
204
191
  };
@@ -226,21 +213,21 @@ export declare const commands: {
226
213
  };
227
214
  };
228
215
  readonly success: {
229
- readonly moduleDownloaded: (moduleName: string | number, path: string | number) => string;
216
+ readonly moduleDownloaded: (moduleName: string, path: string) => string;
230
217
  };
231
218
  readonly errors: {
232
- readonly pathExists: (path: string | number) => string;
219
+ readonly pathExists: (path: string) => string;
233
220
  readonly invalidName: "Module not found with that name, please check the spelling of the module you are trying to download.";
234
221
  };
235
222
  };
236
223
  };
237
224
  };
238
225
  readonly create: {
239
- readonly describe: (supportedAssetTypes: string | number) => string;
226
+ readonly describe: (supportedAssetTypes: string) => string;
240
227
  readonly errors: {
241
- readonly deprecatedAssetType: (assetType: string | number, newCommand: string | number, type: string | number) => string;
242
- readonly unsupportedAssetType: (assetType: string | number, supportedAssetTypes: string | number) => string;
243
- readonly unusablePath: (path: string | number) => string;
228
+ readonly deprecatedAssetType: (assetType: string, newCommand: string, type: string) => string;
229
+ readonly unsupportedAssetType: (assetType: string, supportedAssetTypes: string) => string;
230
+ readonly unusablePath: (path: string) => string;
244
231
  };
245
232
  readonly positionals: {
246
233
  readonly dest: {
@@ -255,16 +242,16 @@ export declare const commands: {
255
242
  };
256
243
  readonly subcommands: {
257
244
  readonly apiSample: {
258
- readonly folderOverwritePrompt: (folderName: string | number) => string;
245
+ readonly folderOverwritePrompt: (folderName: string) => string;
259
246
  readonly errors: {
260
247
  readonly nameRequired: "The \"name\" argument is required when creating an API Sample.";
261
248
  readonly noSamples: "Currently there are no samples available. Please try again later.";
262
249
  };
263
250
  readonly info: {
264
- readonly sampleChosen: (sampleType: string | number, sampleLanguage: string | number) => string;
251
+ readonly sampleChosen: (sampleType: string, sampleLanguage: string) => string;
265
252
  };
266
253
  readonly success: {
267
- readonly sampleCreated: (filePath: string | number) => string;
254
+ readonly sampleCreated: (filePath: string) => string;
268
255
  };
269
256
  };
270
257
  readonly module: {
@@ -288,7 +275,7 @@ export declare const commands: {
288
275
  readonly describe: "Create custom object instances.";
289
276
  readonly errors: {
290
277
  readonly invalidObjectDefinition: "The object definition is invalid. Please check the schema and try again.";
291
- readonly creationFailed: (definition: string | number) => string;
278
+ readonly creationFailed: (definition: string) => string;
292
279
  };
293
280
  readonly options: {
294
281
  readonly path: {
@@ -313,7 +300,7 @@ export declare const commands: {
313
300
  readonly describe: "Create a custom object schema.";
314
301
  readonly errors: {
315
302
  readonly invalidSchema: "The schema definition is invalid. Please check the schema and try again.";
316
- readonly creationFailed: (definition: string | number) => string;
303
+ readonly creationFailed: (definition: string) => string;
317
304
  };
318
305
  readonly options: {
319
306
  readonly definition: {
@@ -321,14 +308,14 @@ export declare const commands: {
321
308
  };
322
309
  };
323
310
  readonly success: {
324
- readonly schemaCreated: (accountId: string | number) => string;
325
- readonly schemaViewable: (url: string | number) => string;
311
+ readonly schemaCreated: (accountId: string) => string;
312
+ readonly schemaViewable: (url: string) => string;
326
313
  };
327
314
  };
328
315
  readonly delete: {
329
316
  readonly describe: "Delete a custom object schema.";
330
317
  readonly errors: {
331
- readonly delete: (name: string | number) => string;
318
+ readonly delete: (name: string) => string;
332
319
  };
333
320
  readonly examples: {
334
321
  readonly default: "Delete \"schemaName\" schema";
@@ -344,10 +331,10 @@ export declare const commands: {
344
331
  };
345
332
  };
346
333
  readonly success: {
347
- readonly delete: (name: string | number) => string;
334
+ readonly delete: (name: string) => string;
348
335
  };
349
- readonly confirmDelete: (name: string | number) => string;
350
- readonly deleteCancelled: (name: string | number) => string;
336
+ readonly confirmDelete: (name: string) => string;
337
+ readonly deleteCancelled: (name: string) => string;
351
338
  readonly selectSchema: "Which schema would you like to delete?";
352
339
  };
353
340
  readonly fetchAll: {
@@ -365,14 +352,14 @@ export declare const commands: {
365
352
  };
366
353
  };
367
354
  readonly success: {
368
- readonly fetch: (path: string | number) => string;
355
+ readonly fetch: (path: string) => string;
369
356
  };
370
357
  readonly inputDest: "Where would you like to save the schemas?";
371
358
  };
372
359
  readonly fetch: {
373
360
  readonly describe: "Fetch a custom object schema.";
374
361
  readonly errors: {
375
- readonly fetch: (name: string | number) => string;
362
+ readonly fetch: (name: string) => string;
376
363
  };
377
364
  readonly examples: {
378
365
  readonly default: "Fetch \"schemaId\" schema and put it in the current working directory";
@@ -389,8 +376,8 @@ export declare const commands: {
389
376
  readonly selectSchema: "Which schema would you like to fetch?";
390
377
  readonly inputDest: "What would you like to name the destination file?";
391
378
  readonly success: {
392
- readonly save: (name: string | number, path: string | number) => string;
393
- readonly savedToPath: (path: string | number) => string;
379
+ readonly save: (name: string, path: string) => string;
380
+ readonly savedToPath: (path: string) => string;
394
381
  };
395
382
  };
396
383
  readonly list: {
@@ -403,7 +390,7 @@ export declare const commands: {
403
390
  readonly describe: "Update an existing custom object schema.";
404
391
  readonly errors: {
405
392
  readonly invalidSchema: "The schema definition is invalid. Please check the schema and try again.";
406
- readonly update: (definition: string | number) => string;
393
+ readonly update: (definition: string) => string;
407
394
  };
408
395
  readonly options: {
409
396
  readonly path: {
@@ -416,8 +403,8 @@ export declare const commands: {
416
403
  };
417
404
  };
418
405
  readonly success: {
419
- readonly update: (accountId: string | number) => string;
420
- readonly viewAtUrl: (url: string | number) => string;
406
+ readonly update: (accountId: string) => string;
407
+ readonly viewAtUrl: (url: string) => string;
421
408
  };
422
409
  readonly selectSchema: "Which schema would you like to update?";
423
410
  };
@@ -432,9 +419,9 @@ export declare const commands: {
432
419
  };
433
420
  readonly errors: {
434
421
  readonly generatingDiagnosis: "Error generating diagnosis";
435
- readonly unableToWriteOutputFile: (file: string | number, errorMessage: string | number) => string;
422
+ readonly unableToWriteOutputFile: (file: string, errorMessage: string) => string;
436
423
  };
437
- readonly outputWritten: (filename: string | number) => string;
424
+ readonly outputWritten: (filename: string) => string;
438
425
  };
439
426
  readonly fetch: {
440
427
  readonly describe: "Fetch a file, directory or module from HubSpot and write to a path on your computer.";
@@ -484,13 +471,13 @@ export declare const commands: {
484
471
  readonly describe: "Upload a folder or file to the File Manager.";
485
472
  readonly errors: {
486
473
  readonly destinationRequired: "A destination path needs to be passed";
487
- readonly fileIgnored: (path: string | number) => string;
488
- readonly invalidPath: (path: string | number) => string;
489
- readonly upload: (src: string | number, dest: string | number) => string;
474
+ readonly fileIgnored: (path: string) => string;
475
+ readonly invalidPath: (path: string) => string;
476
+ readonly upload: (src: string, dest: string) => string;
490
477
  readonly uploadingFailed: "Uploading failed";
491
478
  };
492
479
  readonly logs: {
493
- readonly uploading: (src: string | number, dest: string | number, accountId: string | number) => string;
480
+ readonly uploading: (src: string, dest: string, accountId: string) => string;
494
481
  };
495
482
  readonly positionals: {
496
483
  readonly dest: {
@@ -501,8 +488,8 @@ export declare const commands: {
501
488
  };
502
489
  };
503
490
  readonly success: {
504
- readonly upload: (src: string | number, dest: string | number, accountId: string | number) => string;
505
- readonly uploadComplete: (dest: string | number) => string;
491
+ readonly upload: (src: string, dest: string, accountId: string) => string;
492
+ readonly uploadComplete: (dest: string) => string;
506
493
  };
507
494
  };
508
495
  };
@@ -512,25 +499,25 @@ export declare const commands: {
512
499
  readonly subcommands: {
513
500
  readonly deploy: {
514
501
  readonly debug: {
515
- readonly startingBuildAndDeploy: (functionPath: string | number) => string;
502
+ readonly startingBuildAndDeploy: (functionPath: string) => string;
516
503
  };
517
504
  readonly errors: {
518
- readonly buildError: (details: string | number) => string;
519
- readonly noPackageJson: (functionPath: string | number) => string;
520
- readonly notFunctionsFolder: (functionPath: string | number) => string;
505
+ readonly buildError: (details: string) => string;
506
+ readonly noPackageJson: (functionPath: string) => string;
507
+ readonly notFunctionsFolder: (functionPath: string) => string;
521
508
  };
522
509
  readonly examples: {
523
510
  readonly default: "Build and deploy a new bundle for all functions within the myFunctionFolder.functions folder";
524
511
  };
525
- readonly loading: (functionPath: string | number, account: string | number) => string;
526
- readonly loadingFailed: (functionPath: string | number, account: string | number) => string;
512
+ readonly loading: (functionPath: string, account: string) => string;
513
+ readonly loadingFailed: (functionPath: string, account: string) => string;
527
514
  readonly positionals: {
528
515
  readonly path: {
529
516
  readonly describe: "Path to the \".functions\" folder";
530
517
  };
531
518
  };
532
519
  readonly success: {
533
- readonly deployed: (functionPath: string | number, accountId: string | number, buildTimeSeconds: string | number) => string;
520
+ readonly deployed: (functionPath: string, accountId: string, buildTimeSeconds: string) => string;
534
521
  };
535
522
  };
536
523
  readonly list: {
@@ -549,7 +536,7 @@ export declare const commands: {
549
536
  };
550
537
  readonly server: {
551
538
  readonly debug: {
552
- readonly startingServer: (functionPath: string | number) => string;
539
+ readonly startingServer: (functionPath: string) => string;
553
540
  };
554
541
  readonly examples: {
555
542
  readonly default: "Run a local function test server.";
@@ -582,9 +569,9 @@ export declare const commands: {
582
569
  readonly clear: {
583
570
  readonly describe: "Clear all rows in a HubDB table.";
584
571
  readonly logs: {
585
- readonly removedRows: (deletedRowCount: string | number, tableId: string | number) => string;
586
- readonly rowCount: (tableId: string | number, rowCount: string | number) => string;
587
- readonly tableEmpty: (tableId: string | number) => string;
572
+ readonly removedRows: (deletedRowCount: string, tableId: string) => string;
573
+ readonly rowCount: (tableId: string, rowCount: string) => string;
574
+ readonly tableEmpty: (tableId: string) => string;
588
575
  };
589
576
  readonly positionals: {
590
577
  readonly tableId: {
@@ -596,7 +583,7 @@ export declare const commands: {
596
583
  readonly describe: "Create a HubDB table.";
597
584
  readonly enterPath: "[--path] Enter the local path to the file used for import:";
598
585
  readonly errors: {
599
- readonly create: (filePath: string | number) => string;
586
+ readonly create: (filePath: string) => string;
600
587
  readonly pathRequired: "A path to a local file with a HubDB schema is required to create a HubDB table";
601
588
  readonly invalidCharacters: "The selected file path contains invalid characters. Please provide a new path and try again.";
602
589
  };
@@ -606,14 +593,14 @@ export declare const commands: {
606
593
  };
607
594
  };
608
595
  readonly success: {
609
- readonly create: (tableId: string | number, accountId: string | number, rowCount: string | number) => string;
596
+ readonly create: (tableId: string, accountId: string, rowCount: string) => string;
610
597
  };
611
598
  };
612
599
  readonly delete: {
613
600
  readonly describe: "Delete a HubDB table.";
614
- readonly shouldDeleteTable: (tableId: string | number) => string;
601
+ readonly shouldDeleteTable: (tableId: string) => string;
615
602
  readonly errors: {
616
- readonly delete: (tableId: string | number) => string;
603
+ readonly delete: (tableId: string) => string;
617
604
  };
618
605
  readonly positionals: {
619
606
  readonly tableId: {
@@ -626,7 +613,7 @@ export declare const commands: {
626
613
  };
627
614
  };
628
615
  readonly success: {
629
- readonly delete: (tableId: string | number, accountId: string | number) => string;
616
+ readonly delete: (tableId: string, accountId: string) => string;
630
617
  };
631
618
  };
632
619
  readonly fetch: {
@@ -640,17 +627,17 @@ export declare const commands: {
640
627
  };
641
628
  };
642
629
  readonly success: {
643
- readonly fetch: (tableId: string | number, path: string | number) => string;
630
+ readonly fetch: (tableId: string, path: string) => string;
644
631
  };
645
632
  };
646
633
  };
647
634
  };
648
635
  readonly init: {
649
- readonly describe: (configName: string | number) => string;
636
+ readonly describe: (configName: string) => string;
650
637
  readonly options: {
651
638
  readonly authType: {
652
639
  readonly describe: "Authentication mechanism";
653
- readonly defaultDescription: (authMethod: string | number) => string;
640
+ readonly defaultDescription: (authMethod: string) => string;
654
641
  };
655
642
  readonly account: {
656
643
  readonly describe: "HubSpot account to authenticate";
@@ -660,20 +647,20 @@ export declare const commands: {
660
647
  };
661
648
  };
662
649
  readonly success: {
663
- readonly configFileCreated: (configPath: string | number) => string;
664
- readonly configFileUpdated: (account: string | number, authType: string | number) => string;
650
+ readonly configFileCreated: (configPath: string) => string;
651
+ readonly configFileUpdated: (account: string, authType: string) => string;
665
652
  };
666
653
  readonly logs: {
667
654
  readonly updateConfig: "To update an existing config file, use the \"hs auth\" command.";
668
655
  };
669
656
  readonly errors: {
670
- readonly configFileExists: (configPath: string | number) => string;
671
- readonly bothConfigFilesNotAllowed: (path: string | number) => string;
657
+ readonly configFileExists: (configPath: string) => string;
658
+ readonly bothConfigFilesNotAllowed: (path: string) => string;
672
659
  };
673
660
  };
674
661
  readonly lint: {
675
- readonly issuesFound: (count: string | number) => string;
676
- readonly groupName: (path: string | number) => string;
662
+ readonly issuesFound: (count: string) => string;
663
+ readonly groupName: (path: string) => string;
677
664
  readonly positionals: {
678
665
  readonly path: {
679
666
  readonly describe: "Local folder to lint";
@@ -682,8 +669,8 @@ export declare const commands: {
682
669
  };
683
670
  readonly list: {
684
671
  readonly describe: "List remote contents of a directory.";
685
- readonly gettingPathContents: (path: string | number) => string;
686
- readonly noFilesFoundAtPath: (path: string | number) => string;
672
+ readonly gettingPathContents: (path: string) => string;
673
+ readonly noFilesFoundAtPath: (path: string) => string;
687
674
  readonly positionals: {
688
675
  readonly path: {
689
676
  readonly describe: "Remote directory to list contents";
@@ -693,7 +680,7 @@ export declare const commands: {
693
680
  readonly logs: {
694
681
  readonly describe: "View logs for a CMS serverless function.";
695
682
  readonly errors: {
696
- readonly noLogsFound: (functionPath: string | number, accountId: string | number) => string;
683
+ readonly noLogsFound: (functionPath: string, accountId: string) => string;
697
684
  };
698
685
  readonly examples: {
699
686
  readonly default: "Get 5 most recent logs for function residing at /_hcms/api/my-endpoint";
@@ -701,7 +688,7 @@ export declare const commands: {
701
688
  readonly limit: "Get 10 most recent logs for function residing at /_hcms/api/my-endpoint";
702
689
  };
703
690
  readonly endpointPrompt: "Enter a serverless function endpoint:";
704
- readonly gettingLogs: (latest: string | number, functionPath: string | number) => string;
691
+ readonly gettingLogs: (latest: string, functionPath: string) => string;
705
692
  readonly options: {
706
693
  readonly compact: {
707
694
  readonly describe: "output compact logs";
@@ -721,15 +708,15 @@ export declare const commands: {
721
708
  readonly describe: "Serverless function endpoint";
722
709
  };
723
710
  };
724
- readonly tailLogs: (functionPath: string | number, accountId: string | number) => string;
711
+ readonly tailLogs: (functionPath: string, accountId: string) => string;
725
712
  };
726
713
  readonly mv: {
727
714
  readonly describe: "Move a remote file or folder in HubSpot. This feature is currently in beta and the CLI contract is subject to change.";
728
715
  readonly errors: {
729
- readonly sourcePathExists: (srcPath: string | number, destPath: string | number) => string;
730
- readonly moveFailed: (srcPath: string | number, destPath: string | number, accountId: string | number) => string;
716
+ readonly sourcePathExists: (srcPath: string, destPath: string) => string;
717
+ readonly moveFailed: (srcPath: string, destPath: string, accountId: string) => string;
731
718
  };
732
- readonly move: (srcPath: string | number, destPath: string | number, accountId: string | number) => string;
719
+ readonly move: (srcPath: string, destPath: string, accountId: string) => string;
733
720
  };
734
721
  readonly open: {
735
722
  readonly describe: "Open a HubSpot page in your browser.";
@@ -746,19 +733,91 @@ export declare const commands: {
746
733
  readonly selectLink: "Select a link to open";
747
734
  };
748
735
  readonly project: {
736
+ readonly profile: {
737
+ readonly describe: "Commands for managing project profiles";
738
+ readonly verboseDescribe: `Commands for managing project profiles
739
+
740
+ Profiles 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.
741
+
742
+ Run ${string} to get started!`;
743
+ readonly add: {
744
+ readonly describe: "Add a new project profile";
745
+ readonly verboseDescribe: `Add a new project profile
746
+
747
+ Profiles enable you to reference variables in your component configuration files. Use the syntax ${string} to reference profile variables in your component configuration files. Then target the profile using the ${string} flag when you upload your project.`;
748
+ readonly example: "Add a new project profile named hsprofile.qa.json";
749
+ readonly logs: {
750
+ readonly copyExistingProfile: (profileName: string) => string;
751
+ readonly copyExistingProfiles: "We can copy the variables from one of your existing profiles into your new profile.";
752
+ readonly profileAdded: (profileName: string) => string;
753
+ };
754
+ readonly prompts: {
755
+ readonly namePrompt: "Enter a name for the new project profile: ";
756
+ readonly emptyName: "Profile name cannot be empty";
757
+ readonly targetAccountPrompt: "[target-account] Select a target account for this profile";
758
+ readonly copyExistingProfilePrompt: "Select a profile to copy variables from";
759
+ readonly copyExistingProfilePromptEmpty: "Skip (don't copy any variables)";
760
+ readonly invalidProfileName: "Profile name cannot contain special characters or spaces";
761
+ };
762
+ readonly warnings: {
763
+ readonly duplicateTargetAccount: (targetAccountId: number) => string;
764
+ };
765
+ readonly errors: {
766
+ readonly noProjectConfig: "No project config found. Please run this command from a project directory.";
767
+ readonly profileExists: (profileName: string) => string;
768
+ readonly invalidTargetAccount: "Target account is not configured in the CLI";
769
+ readonly noAccountsConfigured: "No accounts configured in the CLI";
770
+ readonly failedToLoadProfile: (profileName: string) => string;
771
+ readonly failedToCreateProfile: "Failed to create profile";
772
+ };
773
+ readonly positionals: {
774
+ readonly name: "The name of the project profile";
775
+ };
776
+ readonly options: {
777
+ readonly targetAccount: "The target account ID for this profile";
778
+ };
779
+ };
780
+ readonly delete: {
781
+ readonly describe: "Delete an existing project profile";
782
+ readonly example: "Delete a project profile named hsprofile.qa.json";
783
+ readonly logs: {
784
+ readonly profileDeleted: (profileName: string) => string;
785
+ readonly deletedProject: (accountId: number) => string;
786
+ readonly didNotDeleteProject: (accountId: number) => string;
787
+ };
788
+ readonly debug: {
789
+ readonly failedToLoadProfile: (profileName: string) => string;
790
+ };
791
+ readonly prompts: {
792
+ readonly deleteProfilePrompt: "Select a profile to delete from your project";
793
+ readonly deleteProjectPrompt: (accountId: number) => string;
794
+ };
795
+ readonly errors: {
796
+ readonly noProjectConfig: "No project config found. Please run this command from a project directory.";
797
+ readonly noProfileFound: (profileName: string) => string;
798
+ readonly noProfilesFound: "No profiles found in your project.";
799
+ readonly failedToDeleteProfile: (profileName: string) => string;
800
+ };
801
+ readonly positionals: {
802
+ readonly name: "The name of the project profile";
803
+ };
804
+ };
805
+ };
749
806
  readonly dev: {
750
807
  readonly describe: "Start local dev for the current project.";
751
808
  readonly logs: {
752
809
  readonly betaMessage: "HubSpot projects local development";
753
810
  readonly placeholderAccountSelection: "Using default account as target account (for now)";
754
811
  readonly learnMoreLocalDevServer: "Learn more about the projects local dev server";
812
+ readonly 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.";
813
+ readonly learnMoreMessage: `Visit our ${string} to learn more.`;
755
814
  };
756
815
  readonly errors: {
757
816
  readonly noProjectConfig: "No project detected. Please run this command again from a project directory.";
758
- readonly noAccount: (accountId: string | number, authCommand: string | number) => string;
759
- readonly noAccountsInConfig: (authCommand: string | number) => string;
817
+ readonly noAccount: (accountId: string, authCommand: string) => string;
818
+ readonly noAccountsInConfig: (authCommand: string) => string;
760
819
  readonly invalidProjectComponents: "Projects cannot contain both private and public apps. Move your apps to separate projects before attempting local development.";
761
- readonly noRunnableComponents: (command: string | number) => string;
820
+ readonly noRunnableComponents: (command: string) => string;
762
821
  };
763
822
  readonly examples: {
764
823
  readonly default: "Start local dev for the current project";
@@ -770,10 +829,10 @@ export declare const commands: {
770
829
  readonly failedToDownloadProject: "Failed to download project. Please try again later.";
771
830
  readonly invalidTemplateSource: "Invalid template source provided. Use the format <Owner>/<Repo> and try again.";
772
831
  readonly failedToFetchProjectList: "Failed to fetch the list of available project templates. Please try again later.";
773
- readonly cannotNestProjects: (projectDir: string | number) => string;
832
+ readonly cannotNestProjects: (projectDir: string) => string;
774
833
  };
775
834
  readonly logs: {
776
- readonly success: (projectName: string | number, projectDest: string | number) => string;
835
+ readonly success: (projectName: string, projectDest: string) => string;
777
836
  readonly welcomeMessage: "Welcome to HubSpot Developer Projects!";
778
837
  };
779
838
  readonly examples: {
@@ -815,7 +874,7 @@ export declare const commands: {
815
874
  readonly text: "This command will migrate an app to the projects framework. It will walk you through the fields required to complete the migration and download the project source code into a directory of your choosing.";
816
875
  readonly link: "Learn more about migrating apps to the projects framework";
817
876
  };
818
- readonly deprecationWarning: (oldCommand: string | number, newCommand: string | number) => string;
877
+ readonly deprecationWarning: (oldCommand: string, newCommand: string) => string;
819
878
  readonly migrationStatus: {
820
879
  readonly inProgress: () => string;
821
880
  readonly success: () => string;
@@ -838,7 +897,7 @@ export declare const commands: {
838
897
  readonly preamble: (platformVersion: string) => string;
839
898
  readonly describe: "Migrate an existing project to the new version of the projects framework.";
840
899
  readonly errors: {
841
- readonly noProjectConfig: (command: string | number) => string;
900
+ readonly noProjectConfig: (command: string) => string;
842
901
  };
843
902
  readonly examples: {
844
903
  readonly default: "Migrate an existing project to the new version of the projects framework.";
@@ -860,13 +919,13 @@ export declare const commands: {
860
919
  readonly cloneStatus: {
861
920
  readonly inProgress: () => string;
862
921
  readonly done: "Cloning app configuration to public-app.json component definition ... DONE";
863
- readonly success: (dest: string | number) => string;
922
+ readonly success: (dest: string) => string;
864
923
  readonly failure: "Cloning app configuration to public-app.json component definition ... FAILED";
865
924
  };
866
925
  readonly errors: {
867
926
  readonly invalidAccountTypeTitle: () => string;
868
- readonly invalidAccountTypeDescription: (useCommand: string | number, authCommand: string | number) => string;
869
- readonly couldNotWriteConfigPath: (configPath: string | number) => string;
927
+ readonly invalidAccountTypeDescription: (useCommand: string, authCommand: string) => string;
928
+ readonly couldNotWriteConfigPath: (configPath: string) => string;
870
929
  };
871
930
  };
872
931
  readonly add: {
@@ -879,8 +938,8 @@ export declare const commands: {
879
938
  readonly describe: "The path to the component type's location within the hubspot-project-components Github repo: https://github.com/HubSpot/hubspot-project-components";
880
939
  };
881
940
  };
882
- readonly creatingComponent: (projectName: string | number) => string;
883
- readonly success: (componentName: string | number) => string;
941
+ readonly creatingComponent: (projectName: string) => string;
942
+ readonly success: (componentName: string) => string;
884
943
  readonly error: {
885
944
  readonly failedToDownloadComponent: "Failed to download project component. Please try again later.";
886
945
  readonly locationInProject: "This command must be run from within a project directory.";
@@ -896,15 +955,15 @@ export declare const commands: {
896
955
  readonly describe: "Deploy a project build.";
897
956
  readonly deployBuildIdPrompt: "[--build] Deploy which build?";
898
957
  readonly debug: {
899
- readonly deploying: (path: string | number) => string;
958
+ readonly deploying: (path: string) => string;
900
959
  };
901
960
  readonly errors: {
902
- readonly deploy: (details: string | number) => string;
961
+ readonly deploy: (details: string) => string;
903
962
  readonly noBuilds: "Deploy error: no builds for this project were found.";
904
963
  readonly noBuildId: "You must specify a build to deploy";
905
- readonly projectNotFound: (projectName: string | number, accountIdentifier: string | number, command: string | number) => string;
906
- readonly buildIdDoesNotExist: (buildId: string | number, projectName: string | number, linkToProject: string | number) => string;
907
- readonly buildAlreadyDeployed: (buildId: string | number, linkToProject: string | number) => string;
964
+ readonly projectNotFound: (projectName: string, accountIdentifier: string, command: string) => string;
965
+ readonly buildIdDoesNotExist: (buildId: string, projectName: string, linkToProject: string) => string;
966
+ readonly buildAlreadyDeployed: (buildId: string, linkToProject: string) => string;
908
967
  readonly viewProjectsBuilds: "View project builds in HubSpot";
909
968
  };
910
969
  readonly examples: {
@@ -924,11 +983,11 @@ export declare const commands: {
924
983
  readonly describe: "List the project's builds.";
925
984
  readonly continueOrExitPrompt: "Press <enter> to load more, or ctrl+c to exit";
926
985
  readonly viewAllBuildsLink: "View all builds";
927
- readonly showingNextBuilds: (count: string | number, projectName: string | number) => string;
928
- readonly showingRecentBuilds: (count: string | number, projectName: string | number, viewAllBuildsLink: string | number) => string;
986
+ readonly showingNextBuilds: (count: string, projectName: string) => string;
987
+ readonly showingRecentBuilds: (count: string, projectName: string, viewAllBuildsLink: string) => string;
929
988
  readonly errors: {
930
989
  readonly noBuilds: "No builds for this project were found.";
931
- readonly projectNotFound: (projectName: string | number) => string;
990
+ readonly projectNotFound: (projectName: string) => string;
932
991
  };
933
992
  readonly options: {
934
993
  readonly project: {
@@ -951,15 +1010,15 @@ export declare const commands: {
951
1010
  readonly noFunctionsInProject: `There aren't any functions in this project
952
1011
  \t- Run ${string} to learn more about logs
953
1012
  \t- ${string} to learn more about serverless functions`;
954
- readonly noFunctionWithName: (name: string | number) => string;
955
- readonly functionNotDeployed: (name: string | number) => string;
1013
+ readonly noFunctionWithName: (name: string) => string;
1014
+ readonly functionNotDeployed: (name: string) => string;
956
1015
  readonly projectLogsManagerNotInitialized: "Function called on ProjectLogsManager before initialization";
957
1016
  readonly generic: "Error fetching logs";
958
1017
  };
959
1018
  readonly logs: {
960
1019
  readonly showingLogs: "Showing logs for:";
961
1020
  readonly hubspotLogsDirectLink: "View function logs in HubSpot";
962
- readonly noLogsFound: (name: string | number) => string;
1021
+ readonly noLogsFound: (name: string) => string;
963
1022
  };
964
1023
  readonly table: {
965
1024
  readonly accountHeader: "Account";
@@ -997,10 +1056,10 @@ export declare const commands: {
997
1056
  readonly default: "Upload a project into your HubSpot account";
998
1057
  };
999
1058
  readonly logs: {
1000
- readonly buildSucceeded: (buildId: string | number) => string;
1059
+ readonly buildSucceeded: (buildId: string) => string;
1001
1060
  readonly readyToGoLive: "🚀 Ready to take your project live?";
1002
- readonly runCommand: (command: string | number) => string;
1003
- readonly autoDeployDisabled: (deployCommand: string | number) => string;
1061
+ readonly runCommand: (command: string) => string;
1062
+ readonly autoDeployDisabled: (deployCommand: string) => string;
1004
1063
  };
1005
1064
  readonly errors: {
1006
1065
  readonly projectLockedError: () => string;
@@ -1023,10 +1082,10 @@ export declare const commands: {
1023
1082
  readonly processExited: "Stopping watcher...";
1024
1083
  readonly watchCancelledFromUi: `The watch process has been cancelled from the UI. Any changes made since cancelling have not been uploaded. To resume watching, rerun ${string}.`;
1025
1084
  readonly resuming: "Resuming watcher...";
1026
- readonly uploadSucceeded: (remotePath: string | number, filePath: string | number) => string;
1027
- readonly deleteFileSucceeded: (remotePath: string | number) => string;
1028
- readonly deleteFolderSucceeded: (remotePath: string | number) => string;
1029
- readonly watching: (projectDir: string | number) => string;
1085
+ readonly uploadSucceeded: (remotePath: string, filePath: string) => string;
1086
+ readonly deleteFileSucceeded: (remotePath: string) => string;
1087
+ readonly deleteFolderSucceeded: (remotePath: string) => string;
1088
+ readonly watching: (projectDir: string) => string;
1030
1089
  readonly previousStagingBuildCancelled: "Killed the previous watch process. Please try running `hs project watch` again";
1031
1090
  };
1032
1091
  readonly options: {
@@ -1037,18 +1096,18 @@ export declare const commands: {
1037
1096
  readonly debug: {
1038
1097
  readonly pause: "Pausing watcher, attempting to queue build";
1039
1098
  readonly buildStarted: "Build queued.";
1040
- readonly extensionNotAllowed: (filePath: string | number) => string;
1041
- readonly ignored: (filePath: string | number) => string;
1042
- readonly uploading: (filePath: string | number, remotePath: string | number) => string;
1099
+ readonly extensionNotAllowed: (filePath: string) => string;
1100
+ readonly ignored: (filePath: string) => string;
1101
+ readonly uploading: (filePath: string, remotePath: string) => string;
1043
1102
  readonly attemptNewBuild: "Attempting to create a new build";
1044
- readonly fileAlreadyQueued: (filePath: string | number) => string;
1103
+ readonly fileAlreadyQueued: (filePath: string) => string;
1045
1104
  };
1046
1105
  readonly errors: {
1047
1106
  readonly projectConfigNotFound: "No project config found. Please ensure that you are in a project directory.";
1048
1107
  readonly projectLockedError: `Your project is locked. This may mean that another user is running the ${string} command for this project. If this is you, unlock the project in Projects UI.`;
1049
- readonly uploadFailed: (remotePath: string | number, filePath: string | number) => string;
1050
- readonly deleteFileFailed: (remotePath: string | number) => string;
1051
- readonly deleteFolderFailed: (remotePath: string | number) => string;
1108
+ readonly uploadFailed: (remotePath: string, filePath: string) => string;
1109
+ readonly deleteFileFailed: (remotePath: string) => string;
1110
+ readonly deleteFolderFailed: (remotePath: string) => string;
1052
1111
  };
1053
1112
  };
1054
1113
  readonly download: {
@@ -1058,11 +1117,11 @@ export declare const commands: {
1058
1117
  };
1059
1118
  readonly logs: {
1060
1119
  readonly downloadCancelled: "Cancelling project download";
1061
- readonly downloadSucceeded: (buildId: string | number, projectName: string | number) => string;
1120
+ readonly downloadSucceeded: (buildId: string, projectName: string) => string;
1062
1121
  };
1063
1122
  readonly errors: {
1064
1123
  readonly downloadFailed: "Something went wrong downloading the project";
1065
- readonly projectNotFound: (projectName: string | number, accountId: string | number) => string;
1124
+ readonly projectNotFound: (projectName: string, accountId: string) => string;
1066
1125
  };
1067
1126
  readonly warnings: {
1068
1127
  readonly cannotDownloadWithinProject: "Cancelling project download. Please run the command again outside the context of an existing project.";
@@ -1089,25 +1148,13 @@ export declare const commands: {
1089
1148
  readonly examples: {
1090
1149
  readonly default: "Opens the projects page for the specified account";
1091
1150
  };
1092
- readonly success: (projectName: string | number) => string;
1151
+ readonly success: (projectName: string) => string;
1093
1152
  };
1094
1153
  readonly feedback: {
1095
- readonly describe: "Leave feedback on HubSpot projects or file a bug report.";
1096
- readonly feedbackType: {
1097
- readonly prompt: "What type of feedback would you like to leave?";
1098
- readonly bug: "[--bug] Report a bug";
1099
- readonly general: "[--general] Tell us about your experience with HubSpot's developer tools";
1100
- };
1101
- readonly openPrompt: "Create a Github issue in your browser?";
1102
- readonly success: (url: string | number) => string;
1103
- readonly options: {
1104
- readonly bug: {
1105
- readonly describe: "Open Github issues in your browser to report a bug.";
1106
- };
1107
- readonly general: {
1108
- readonly describe: "Open Github issues in your browser to give feedback.";
1109
- };
1110
- };
1154
+ readonly describe: "Leave feedback or file a bug report.";
1155
+ readonly openPrompt: "Open the feedback form in your browser?";
1156
+ readonly success: (url: string) => string;
1157
+ readonly error: (url: string) => string;
1111
1158
  };
1112
1159
  readonly installDeps: {
1113
1160
  readonly help: {
@@ -1117,20 +1164,20 @@ export declare const commands: {
1117
1164
  };
1118
1165
  readonly installLocationPrompt: "Choose the project components to install the dependencies:";
1119
1166
  readonly installLocationPromptRequired: "You must choose at least one subcomponent";
1120
- readonly installingDependencies: (directory: string | number) => string;
1121
- readonly installationSuccessful: (directory: string | number) => string;
1122
- readonly addingDependenciesToLocation: (dependencies: string | number, directory: string | number) => string;
1123
- readonly installingDependenciesFailed: (directory: string | number) => string;
1167
+ readonly installingDependencies: (directory: string) => string;
1168
+ readonly installationSuccessful: (directory: string) => string;
1169
+ readonly addingDependenciesToLocation: (dependencies: string, directory: string) => string;
1170
+ readonly installingDependenciesFailed: (directory: string) => string;
1124
1171
  readonly noProjectConfig: "No project detected. Run this command from a project directory.";
1125
- readonly noPackageJsonInProject: (projectName: string | number, link: string | number) => string;
1126
- readonly packageManagerNotInstalled: (packageManager: string | number, link: string | number) => string;
1172
+ readonly noPackageJsonInProject: (projectName: string, link: string) => string;
1173
+ readonly packageManagerNotInstalled: (packageManager: string, link: string) => string;
1127
1174
  };
1128
1175
  };
1129
1176
  readonly remove: {
1130
1177
  readonly describe: "Delete a file or folder from HubSpot.";
1131
- readonly deleted: (path: string | number, accountId: string | number) => string;
1178
+ readonly deleted: (path: string, accountId: string) => string;
1132
1179
  readonly errors: {
1133
- readonly deleteFailed: (path: string | number, accountId: string | number) => string;
1180
+ readonly deleteFailed: (path: string, accountId: string) => string;
1134
1181
  };
1135
1182
  readonly positionals: {
1136
1183
  readonly path: {
@@ -1144,39 +1191,39 @@ export declare const commands: {
1144
1191
  readonly create: {
1145
1192
  readonly developer: {
1146
1193
  readonly loading: {
1147
- readonly add: (accountName: string | number) => string;
1148
- readonly fail: (accountName: string | number) => string;
1149
- readonly succeed: (accountName: string | number, accountId: string | number) => string;
1194
+ readonly add: (accountName: string) => string;
1195
+ readonly fail: (accountName: string) => string;
1196
+ readonly succeed: (accountName: string, accountId: string) => string;
1150
1197
  };
1151
1198
  readonly success: {
1152
- readonly configFileUpdated: (accountName: string | number, authType: string | number) => string;
1199
+ readonly configFileUpdated: (accountName: string, authType: string) => string;
1153
1200
  };
1154
1201
  readonly failure: {
1155
- readonly invalidUser: (accountName: string | number, parentAccountName: string | number) => string;
1156
- readonly limit: (accountName: string | number, limit: string | number) => string;
1157
- readonly alreadyInConfig: (accountName: string | number, limit: string | number) => string;
1202
+ readonly invalidUser: (accountName: string, parentAccountName: string) => string;
1203
+ readonly limit: (accountName: string, limit: string) => string;
1204
+ readonly alreadyInConfig: (accountName: string, limit: string) => string;
1158
1205
  readonly scopes: {
1159
1206
  readonly message: "The personal access key you provided doesn't include developer sandbox permissions.";
1160
- readonly instructions: (accountName: string | number, url: string | number) => string;
1207
+ readonly instructions: (accountName: string, url: string) => string;
1161
1208
  };
1162
1209
  };
1163
1210
  };
1164
1211
  readonly standard: {
1165
1212
  readonly loading: {
1166
- readonly add: (accountName: string | number) => string;
1167
- readonly fail: (accountName: string | number) => string;
1168
- readonly succeed: (accountName: string | number, accountId: string | number) => string;
1213
+ readonly add: (accountName: string) => string;
1214
+ readonly fail: (accountName: string) => string;
1215
+ readonly succeed: (accountName: string, accountId: string) => string;
1169
1216
  };
1170
1217
  readonly success: {
1171
- readonly configFileUpdated: (accountName: string | number, authType: string | number) => string;
1218
+ readonly configFileUpdated: (accountName: string, authType: string) => string;
1172
1219
  };
1173
1220
  readonly failure: {
1174
- readonly invalidUser: (accountName: string | number, parentAccountName: string | number) => string;
1175
- readonly limit: (accountName: string | number, limit: string | number) => string;
1176
- readonly alreadyInConfig: (accountName: string | number, limit: string | number) => string;
1221
+ readonly invalidUser: (accountName: string, parentAccountName: string) => string;
1222
+ readonly limit: (accountName: string, limit: string) => string;
1223
+ readonly alreadyInConfig: (accountName: string, limit: string) => string;
1177
1224
  readonly scopes: {
1178
1225
  readonly message: "The personal access key you provided doesn't include standard sandbox permissions.";
1179
- readonly instructions: (accountName: string | number, url: string | number) => string;
1226
+ readonly instructions: (accountName: string, url: string) => string;
1180
1227
  };
1181
1228
  };
1182
1229
  };
@@ -1184,28 +1231,28 @@ export declare const commands: {
1184
1231
  readonly delete: {
1185
1232
  readonly describe: "Delete a sandbox account.";
1186
1233
  readonly debug: {
1187
- readonly deleting: (account: string | number) => string;
1234
+ readonly deleting: (account: string) => string;
1188
1235
  readonly error: "Error deleting sandbox account:";
1189
1236
  };
1190
1237
  readonly examples: {
1191
1238
  readonly default: "Deletes the sandbox account named MySandboxAccount.";
1192
1239
  };
1193
- readonly confirm: (account: string | number) => string;
1194
- readonly defaultAccountWarning: (account: string | number) => string;
1240
+ readonly confirm: (account: string) => string;
1241
+ readonly defaultAccountWarning: (account: string) => string;
1195
1242
  readonly success: {
1196
- readonly delete: (account: string | number, sandboxHubId: string | number) => string;
1197
- readonly deleteDefault: (account: string | number, sandboxHubId: string | number) => string;
1198
- readonly configFileUpdated: (account: string | number, configFilename: string | number) => string;
1243
+ readonly delete: (account: string, sandboxHubId: string) => string;
1244
+ readonly deleteDefault: (account: string, sandboxHubId: string) => string;
1245
+ readonly configFileUpdated: (account: string, configFilename: string) => string;
1199
1246
  };
1200
1247
  readonly failure: {
1201
- readonly invalidUser: (accountName: string | number, parentAccountName: string | number) => string;
1248
+ readonly invalidUser: (accountName: string, parentAccountName: string) => string;
1202
1249
  readonly noAccount: "No account specified. Specify an account by using the --account flag.";
1203
- readonly noSandboxAccounts: (authCommand: string | number) => string;
1250
+ readonly noSandboxAccounts: (authCommand: string) => string;
1204
1251
  readonly noSandboxAccountId: "This sandbox can't be deleted from the CLI because we could not find the associated sandbox account.";
1205
- readonly noParentAccount: (authCommand: string | number) => string;
1206
- readonly objectNotFound: (account: string | number) => string;
1207
- readonly noParentPortalAvailable: (command: string | number, url: string | number) => string;
1208
- readonly invalidKey: (account: string | number, authCommand: string | number) => string;
1252
+ readonly noParentAccount: (authCommand: string) => string;
1253
+ readonly objectNotFound: (account: string) => string;
1254
+ readonly noParentPortalAvailable: (command: string, url: string) => string;
1255
+ readonly invalidKey: (account: string, authCommand: string) => string;
1209
1256
  };
1210
1257
  readonly options: {
1211
1258
  readonly force: {
@@ -1219,18 +1266,86 @@ export declare const commands: {
1219
1266
  };
1220
1267
  readonly sync: {
1221
1268
  readonly loading: {
1222
- readonly add: (accountName: string | number) => string;
1223
- readonly fail: (accountName: string | number) => string;
1224
- readonly succeed: (accountName: string | number) => string;
1269
+ readonly add: (accountName: string) => string;
1270
+ readonly fail: (accountName: string) => string;
1271
+ readonly succeed: (accountName: string) => string;
1225
1272
  };
1226
1273
  readonly success: {
1227
- readonly configFileUpdated: (accountName: string | number, authType: string | number) => string;
1274
+ readonly configFileUpdated: (accountName: string, authType: string) => string;
1228
1275
  };
1229
1276
  readonly failure: {
1230
- readonly invalidUser: (accountName: string | number, parentAccountName: string | number) => string;
1277
+ readonly invalidUser: (accountName: string, parentAccountName: string) => string;
1231
1278
  readonly scopes: {
1232
1279
  readonly message: "The personal access key you provided doesn't include sandbox sync permissions.";
1233
- readonly instructions: (accountName: string | number, url: string | number) => string;
1280
+ readonly instructions: (accountName: string, url: string) => string;
1281
+ };
1282
+ };
1283
+ };
1284
+ };
1285
+ readonly app: {
1286
+ readonly describe: "Commands for managing apps.";
1287
+ readonly subcommands: {
1288
+ readonly secret: {
1289
+ readonly describe: "Commands for managing secrets.";
1290
+ readonly subcommands: {
1291
+ readonly add: {
1292
+ readonly describe: "Create a new app secret.";
1293
+ readonly positionals: {
1294
+ readonly name: "Name of the secret";
1295
+ };
1296
+ readonly errors: {
1297
+ readonly noApps: `Please create a new app to add an app secret. Use ${string} to create a new project and begin the app creation process.`;
1298
+ };
1299
+ readonly options: {
1300
+ readonly app: "The app id to set the secret for";
1301
+ };
1302
+ readonly example: "Add a secret named \"my-secret\" to the app with ID 1234567890";
1303
+ readonly success: (appName: string, secretName: string) => string;
1304
+ };
1305
+ readonly delete: {
1306
+ readonly describe: "Delete an app secret.";
1307
+ readonly confirmDelete: (appName: string, secretName: string) => string;
1308
+ readonly deleteCanceled: "Delete canceled";
1309
+ readonly selectSecret: "Select the secret you want to delete";
1310
+ readonly errors: {
1311
+ readonly noSecrets: "No secrets found for the given app";
1312
+ };
1313
+ readonly positionals: {
1314
+ readonly name: "Name of the secret";
1315
+ };
1316
+ readonly options: {
1317
+ readonly app: "The app id to delete the secret for";
1318
+ readonly force: "Force the deletion without confirmation";
1319
+ };
1320
+ readonly example: "Delete a secret named \"my-secret\" from the app with ID 1234567890";
1321
+ readonly success: (appName: string, secretName: string) => string;
1322
+ };
1323
+ readonly list: {
1324
+ readonly describe: "List all app secrets.";
1325
+ readonly example: "List all secrets for the app with ID 1234567890";
1326
+ readonly options: {
1327
+ readonly app: "The app id to list the secrets for";
1328
+ };
1329
+ readonly errors: {
1330
+ readonly noSecrets: "No secrets found for the given app";
1331
+ };
1332
+ readonly success: (appName: string) => string;
1333
+ };
1334
+ readonly update: {
1335
+ readonly describe: "Update an app secret.";
1336
+ readonly selectSecret: "Select the secret you want to update";
1337
+ readonly errors: {
1338
+ readonly noSecrets: "No secrets found for the given app";
1339
+ };
1340
+ readonly positionals: {
1341
+ readonly name: "Name of the secret";
1342
+ };
1343
+ readonly options: {
1344
+ readonly app: "The app id to update the secret for";
1345
+ };
1346
+ readonly example: "Update a secret named \"my-secret\" for the app with ID 1234567890";
1347
+ readonly success: (appName: string, secretName: string) => string;
1348
+ };
1234
1349
  };
1235
1350
  };
1236
1351
  };
@@ -1241,8 +1356,8 @@ export declare const commands: {
1241
1356
  readonly add: {
1242
1357
  readonly describe: "Create a new secret.";
1243
1358
  readonly errors: {
1244
- readonly add: (secretName: string | number) => string;
1245
- readonly alreadyExists: (secretName: string | number, command: string | number) => string;
1359
+ readonly add: (secretName: string) => string;
1360
+ readonly alreadyExists: (secretName: string, command: string) => string;
1246
1361
  };
1247
1362
  readonly positionals: {
1248
1363
  readonly name: {
@@ -1250,17 +1365,17 @@ export declare const commands: {
1250
1365
  };
1251
1366
  };
1252
1367
  readonly success: {
1253
- readonly add: (secretName: string | number, accountIdentifier: string | number) => string;
1368
+ readonly add: (secretName: string, accountIdentifier: string) => string;
1254
1369
  };
1255
1370
  };
1256
1371
  readonly delete: {
1257
1372
  readonly describe: "Delete a secret.";
1258
1373
  readonly selectSecret: "Select the secret you want to delete";
1259
1374
  readonly deleteCanceled: "Delete canceled";
1260
- readonly confirmDelete: (secretName: string | number) => string;
1375
+ readonly confirmDelete: (secretName: string) => string;
1261
1376
  readonly errors: {
1262
- readonly delete: (secretName: string | number) => string;
1263
- readonly noSecret: (secretName: string | number) => string;
1377
+ readonly delete: (secretName: string) => string;
1378
+ readonly noSecret: (secretName: string) => string;
1264
1379
  };
1265
1380
  readonly positionals: {
1266
1381
  readonly name: {
@@ -1268,7 +1383,7 @@ export declare const commands: {
1268
1383
  };
1269
1384
  };
1270
1385
  readonly success: {
1271
- readonly delete: (secretName: string | number, accountIdentifier: string | number) => string;
1386
+ readonly delete: (secretName: string, accountIdentifier: string) => string;
1272
1387
  };
1273
1388
  };
1274
1389
  readonly list: {
@@ -1276,14 +1391,14 @@ export declare const commands: {
1276
1391
  readonly errors: {
1277
1392
  readonly list: "The secrets could not be listed";
1278
1393
  };
1279
- readonly groupLabel: (accountIdentifier: string | number) => string;
1394
+ readonly groupLabel: (accountIdentifier: string) => string;
1280
1395
  };
1281
1396
  readonly update: {
1282
1397
  readonly describe: "Update an existing secret.";
1283
1398
  readonly selectSecret: "Select the secret you want to update";
1284
1399
  readonly errors: {
1285
- readonly update: (secretName: string | number) => string;
1286
- readonly noSecret: (secretName: string | number) => string;
1400
+ readonly update: (secretName: string) => string;
1401
+ readonly noSecret: (secretName: string) => string;
1287
1402
  };
1288
1403
  readonly positionals: {
1289
1404
  readonly name: {
@@ -1291,7 +1406,7 @@ export declare const commands: {
1291
1406
  };
1292
1407
  };
1293
1408
  readonly success: {
1294
- readonly update: (secretName: string | number, accountIdentifier: string | number) => string;
1409
+ readonly update: (secretName: string, accountIdentifier: string) => string;
1295
1410
  readonly updateExplanation: "Existing serverless functions will start using this new value within 10 seconds.";
1296
1411
  };
1297
1412
  };
@@ -1303,11 +1418,11 @@ export declare const commands: {
1303
1418
  readonly generateSelectors: {
1304
1419
  readonly describe: "Automatically generates an editor-preview.json file for the given theme. The selectors this command generates are not perfect, so please edit editor-preview.json after running.";
1305
1420
  readonly errors: {
1306
- readonly invalidPath: (themePath: string | number) => string;
1421
+ readonly invalidPath: (themePath: string) => string;
1307
1422
  readonly fieldsNotFound: "Unable to find theme's fields.json.";
1308
1423
  readonly noSelectorsFound: "No selectors found.";
1309
1424
  };
1310
- readonly success: (themePath: string | number, selectorsPath: string | number) => string;
1425
+ readonly success: (themePath: string, selectorsPath: string) => string;
1311
1426
  readonly positionals: {
1312
1427
  readonly path: {
1313
1428
  readonly describe: "The path of the theme you'd like to generate an editor-preview.json for.";
@@ -1317,17 +1432,17 @@ export declare const commands: {
1317
1432
  readonly marketplaceValidate: {
1318
1433
  readonly describe: "Validate a theme for the marketplace.";
1319
1434
  readonly errors: {
1320
- readonly invalidPath: (path: string | number) => string;
1435
+ readonly invalidPath: (path: string) => string;
1321
1436
  };
1322
1437
  readonly logs: {
1323
- readonly validatingTheme: (path: string | number) => string;
1438
+ readonly validatingTheme: (path: string) => string;
1324
1439
  };
1325
1440
  readonly results: {
1326
1441
  readonly required: "Required validation results:";
1327
1442
  readonly recommended: "Recommended validation results:";
1328
1443
  readonly warnings: {
1329
- readonly file: (file: string | number) => string;
1330
- readonly lineNumber: (line: string | number) => string;
1444
+ readonly file: (file: string) => string;
1445
+ readonly lineNumber: (line: string) => string;
1331
1446
  };
1332
1447
  readonly noErrors: "No errors";
1333
1448
  };
@@ -1340,7 +1455,7 @@ export declare const commands: {
1340
1455
  readonly preview: {
1341
1456
  readonly describe: "Upload and watch a theme directory on your computer for changes and start a local development server to preview theme changes on a site.";
1342
1457
  readonly errors: {
1343
- readonly invalidPath: (path: string | number) => string;
1458
+ readonly invalidPath: (path: string) => string;
1344
1459
  readonly noThemeComponents: "Your project has no theme components available to preview.";
1345
1460
  };
1346
1461
  readonly positionals: {
@@ -1379,10 +1494,10 @@ export declare const commands: {
1379
1494
  readonly marketplaceValidate: {
1380
1495
  readonly describe: "Validate a module for the marketplace. Make sure to include the suffix .module in the path to the module within the Design Manager.";
1381
1496
  readonly errors: {
1382
- readonly invalidPath: (path: string | number) => string;
1497
+ readonly invalidPath: (path: string) => string;
1383
1498
  };
1384
1499
  readonly logs: {
1385
- readonly validatingModule: (path: string | number) => string;
1500
+ readonly validatingModule: (path: string) => string;
1386
1501
  };
1387
1502
  readonly options: {
1388
1503
  readonly json: {
@@ -1393,8 +1508,8 @@ export declare const commands: {
1393
1508
  readonly required: "Required validation results:";
1394
1509
  readonly recommended: "Recommended validation results:";
1395
1510
  readonly warnings: {
1396
- readonly file: (file: string | number) => string;
1397
- readonly lineNumber: (line: string | number) => string;
1511
+ readonly file: (file: string) => string;
1512
+ readonly lineNumber: (line: string) => string;
1398
1513
  };
1399
1514
  readonly noErrors: "No errors";
1400
1515
  };
@@ -1410,11 +1525,11 @@ export declare const commands: {
1410
1525
  readonly describe: "Upload a folder or file from your computer to the HubSpot CMS.";
1411
1526
  readonly errors: {
1412
1527
  readonly destinationRequired: "A destination path needs to be passed";
1413
- readonly fileIgnored: (path: string | number) => string;
1414
- readonly invalidPath: (path: string | number) => string;
1415
- readonly uploadFailed: (src: string | number, dest: string | number) => string;
1416
- readonly someFilesFailed: (dest: string | number) => string;
1417
- readonly deleteFailed: (path: string | number, accountId: string | number) => string;
1528
+ readonly fileIgnored: (path: string) => string;
1529
+ readonly invalidPath: (path: string) => string;
1530
+ readonly uploadFailed: (src: string, dest: string) => string;
1531
+ readonly someFilesFailed: (dest: string) => string;
1532
+ readonly deleteFailed: (path: string, accountId: string) => string;
1418
1533
  };
1419
1534
  readonly options: {
1420
1535
  readonly options: {
@@ -1433,7 +1548,7 @@ export declare const commands: {
1433
1548
  readonly describe: "Skips confirmation prompts when doing a clean upload.";
1434
1549
  };
1435
1550
  };
1436
- readonly previewUrl: (previewUrl: string | number) => string;
1551
+ readonly previewUrl: (previewUrl: string) => string;
1437
1552
  readonly positionals: {
1438
1553
  readonly src: {
1439
1554
  readonly describe: "Path to the local file, relative to your current working directory.";
@@ -1443,21 +1558,21 @@ export declare const commands: {
1443
1558
  };
1444
1559
  };
1445
1560
  readonly success: {
1446
- readonly fileUploaded: (src: string | number, dest: string | number, accountId: string | number) => string;
1447
- readonly uploadComplete: (dest: string | number) => string;
1561
+ readonly fileUploaded: (src: string, dest: string, accountId: string) => string;
1562
+ readonly uploadComplete: (dest: string) => string;
1448
1563
  };
1449
- readonly uploading: (src: string | number, dest: string | number, accountId: string | number) => string;
1450
- readonly notUploaded: (src: string | number) => string;
1451
- readonly cleaning: (filePath: string | number, accountId: string | number) => string;
1452
- readonly confirmCleanUpload: (filePath: string | number, accountId: string | number) => string;
1564
+ readonly uploading: (src: string, dest: string, accountId: string) => string;
1565
+ readonly notUploaded: (src: string) => string;
1566
+ readonly cleaning: (filePath: string, accountId: string) => string;
1567
+ readonly confirmCleanUpload: (filePath: string, accountId: string) => string;
1453
1568
  };
1454
1569
  readonly watch: {
1455
1570
  readonly describe: "Watch a directory on your computer for changes and upload the changed files to the HubSpot CMS.";
1456
1571
  readonly errors: {
1457
- readonly folderFailed: (src: string | number, dest: string | number, accountId: string | number) => string;
1458
- readonly fileFailed: (file: string | number, dest: string | number, accountId: string | number) => string;
1572
+ readonly folderFailed: (src: string, dest: string, accountId: string) => string;
1573
+ readonly fileFailed: (file: string, dest: string, accountId: string) => string;
1459
1574
  readonly destinationRequired: "A destination directory needs to be passed";
1460
- readonly invalidPath: (path: string | number) => string;
1575
+ readonly invalidPath: (path: string) => string;
1461
1576
  };
1462
1577
  readonly options: {
1463
1578
  readonly disableInitial: {
@@ -1493,7 +1608,7 @@ export declare const commands: {
1493
1608
  readonly warnings: {
1494
1609
  readonly disableInitial: () => string;
1495
1610
  readonly initialUpload: () => string;
1496
- readonly notUploaded: (path: string | number) => string;
1611
+ readonly notUploaded: (path: string) => string;
1497
1612
  };
1498
1613
  };
1499
1614
  readonly convertFields: {
@@ -1509,42 +1624,42 @@ export declare const commands: {
1509
1624
  };
1510
1625
  };
1511
1626
  readonly errors: {
1512
- readonly invalidPath: (path: string | number) => string;
1627
+ readonly invalidPath: (path: string) => string;
1513
1628
  readonly missingSrc: "Please specify the path to your javascript fields file or directory with the --src flag.";
1514
1629
  };
1515
1630
  };
1516
1631
  readonly secrets: {
1517
1632
  readonly add: {
1518
1633
  readonly loading: {
1519
- readonly add: (secretName: string | number) => string;
1520
- readonly fail: (secretName: string | number) => string;
1521
- readonly succeed: (secretName: string | number) => string;
1634
+ readonly add: (secretName: string) => string;
1635
+ readonly fail: (secretName: string) => string;
1636
+ readonly succeed: (secretName: string) => string;
1522
1637
  };
1523
1638
  readonly success: {
1524
- readonly configFileUpdated: (secretName: string | number, authType: string | number) => string;
1639
+ readonly configFileUpdated: (secretName: string, authType: string) => string;
1525
1640
  };
1526
1641
  readonly failure: {
1527
- readonly invalidUser: (secretName: string | number, parentAccountName: string | number) => string;
1642
+ readonly invalidUser: (secretName: string, parentAccountName: string) => string;
1528
1643
  readonly scopes: {
1529
1644
  readonly message: "The personal access key you provided doesn't include secrets permissions.";
1530
- readonly instructions: (secretName: string | number, url: string | number) => string;
1645
+ readonly instructions: (secretName: string, url: string) => string;
1531
1646
  };
1532
1647
  };
1533
1648
  };
1534
1649
  readonly delete: {
1535
1650
  readonly loading: {
1536
- readonly add: (secretName: string | number) => string;
1537
- readonly fail: (secretName: string | number) => string;
1538
- readonly succeed: (secretName: string | number) => string;
1651
+ readonly add: (secretName: string) => string;
1652
+ readonly fail: (secretName: string) => string;
1653
+ readonly succeed: (secretName: string) => string;
1539
1654
  };
1540
1655
  readonly success: {
1541
- readonly configFileUpdated: (secretName: string | number, authType: string | number) => string;
1656
+ readonly configFileUpdated: (secretName: string, authType: string) => string;
1542
1657
  };
1543
1658
  readonly failure: {
1544
- readonly invalidUser: (secretName: string | number, parentAccountName: string | number) => string;
1659
+ readonly invalidUser: (secretName: string, parentAccountName: string) => string;
1545
1660
  readonly scopes: {
1546
1661
  readonly message: "The personal access key you provided doesn't include secrets permissions.";
1547
- readonly instructions: (secretName: string | number, url: string | number) => string;
1662
+ readonly instructions: (secretName: string, url: string) => string;
1548
1663
  };
1549
1664
  };
1550
1665
  };
@@ -1555,13 +1670,13 @@ export declare const commands: {
1555
1670
  readonly succeed: () => string;
1556
1671
  };
1557
1672
  readonly success: {
1558
- readonly configFileUpdated: (authType: string | number) => string;
1673
+ readonly configFileUpdated: (authType: string) => string;
1559
1674
  };
1560
1675
  readonly failure: {
1561
- readonly invalidUser: (parentAccountName: string | number) => string;
1676
+ readonly invalidUser: (parentAccountName: string) => string;
1562
1677
  readonly scopes: {
1563
1678
  readonly message: "The personal access key you provided doesn't include secrets permissions.";
1564
- readonly instructions: (url: string | number) => string;
1679
+ readonly instructions: (url: string) => string;
1565
1680
  };
1566
1681
  };
1567
1682
  };
@@ -1569,35 +1684,35 @@ export declare const commands: {
1569
1684
  readonly serverless: {
1570
1685
  readonly add: {
1571
1686
  readonly loading: {
1572
- readonly add: (functionName: string | number) => string;
1573
- readonly fail: (functionName: string | number) => string;
1574
- readonly succeed: (functionName: string | number) => string;
1687
+ readonly add: (functionName: string) => string;
1688
+ readonly fail: (functionName: string) => string;
1689
+ readonly succeed: (functionName: string) => string;
1575
1690
  };
1576
1691
  readonly success: {
1577
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
1692
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1578
1693
  };
1579
1694
  readonly failure: {
1580
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
1695
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1581
1696
  readonly scopes: {
1582
1697
  readonly message: "The personal access key you provided doesn't include serverless function permissions.";
1583
- readonly instructions: (functionName: string | number, url: string | number) => string;
1698
+ readonly instructions: (functionName: string, url: string) => string;
1584
1699
  };
1585
1700
  };
1586
1701
  };
1587
1702
  readonly delete: {
1588
1703
  readonly loading: {
1589
- readonly add: (functionName: string | number) => string;
1590
- readonly fail: (functionName: string | number) => string;
1591
- readonly succeed: (functionName: string | number) => string;
1704
+ readonly add: (functionName: string) => string;
1705
+ readonly fail: (functionName: string) => string;
1706
+ readonly succeed: (functionName: string) => string;
1592
1707
  };
1593
1708
  readonly success: {
1594
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
1709
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1595
1710
  };
1596
1711
  readonly failure: {
1597
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
1712
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1598
1713
  readonly scopes: {
1599
1714
  readonly message: "The personal access key you provided doesn't include serverless function permissions.";
1600
- readonly instructions: (functionName: string | number, url: string | number) => string;
1715
+ readonly instructions: (functionName: string, url: string) => string;
1601
1716
  };
1602
1717
  };
1603
1718
  };
@@ -1608,13 +1723,13 @@ export declare const commands: {
1608
1723
  readonly succeed: () => string;
1609
1724
  };
1610
1725
  readonly success: {
1611
- readonly configFileUpdated: (authType: string | number) => string;
1726
+ readonly configFileUpdated: (authType: string) => string;
1612
1727
  };
1613
1728
  readonly failure: {
1614
- readonly invalidUser: (parentAccountName: string | number) => string;
1729
+ readonly invalidUser: (parentAccountName: string) => string;
1615
1730
  readonly scopes: {
1616
1731
  readonly message: "The personal access key you provided doesn't include serverless function permissions.";
1617
- readonly instructions: (url: string | number) => string;
1732
+ readonly instructions: (url: string) => string;
1618
1733
  };
1619
1734
  };
1620
1735
  };
@@ -1622,35 +1737,35 @@ export declare const commands: {
1622
1737
  readonly serverlessFunctionLogs: {
1623
1738
  readonly add: {
1624
1739
  readonly loading: {
1625
- readonly add: (functionName: string | number) => string;
1626
- readonly fail: (functionName: string | number) => string;
1627
- readonly succeed: (functionName: string | number) => string;
1740
+ readonly add: (functionName: string) => string;
1741
+ readonly fail: (functionName: string) => string;
1742
+ readonly succeed: (functionName: string) => string;
1628
1743
  };
1629
1744
  readonly success: {
1630
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
1745
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1631
1746
  };
1632
1747
  readonly failure: {
1633
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
1748
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1634
1749
  readonly scopes: {
1635
1750
  readonly message: "The personal access key you provided doesn't include serverless function log permissions.";
1636
- readonly instructions: (functionName: string | number, url: string | number) => string;
1751
+ readonly instructions: (functionName: string, url: string) => string;
1637
1752
  };
1638
1753
  };
1639
1754
  };
1640
1755
  readonly delete: {
1641
1756
  readonly loading: {
1642
- readonly add: (functionName: string | number) => string;
1643
- readonly fail: (functionName: string | number) => string;
1644
- readonly succeed: (functionName: string | number) => string;
1757
+ readonly add: (functionName: string) => string;
1758
+ readonly fail: (functionName: string) => string;
1759
+ readonly succeed: (functionName: string) => string;
1645
1760
  };
1646
1761
  readonly success: {
1647
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
1762
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1648
1763
  };
1649
1764
  readonly failure: {
1650
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
1765
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1651
1766
  readonly scopes: {
1652
1767
  readonly message: "The personal access key you provided doesn't include serverless function log permissions.";
1653
- readonly instructions: (functionName: string | number, url: string | number) => string;
1768
+ readonly instructions: (functionName: string, url: string) => string;
1654
1769
  };
1655
1770
  };
1656
1771
  };
@@ -1661,13 +1776,13 @@ export declare const commands: {
1661
1776
  readonly succeed: () => string;
1662
1777
  };
1663
1778
  readonly success: {
1664
- readonly configFileUpdated: (authType: string | number) => string;
1779
+ readonly configFileUpdated: (authType: string) => string;
1665
1780
  };
1666
1781
  readonly failure: {
1667
- readonly invalidUser: (parentAccountName: string | number) => string;
1782
+ readonly invalidUser: (parentAccountName: string) => string;
1668
1783
  readonly scopes: {
1669
1784
  readonly message: "The personal access key you provided doesn't include serverless function log permissions.";
1670
- readonly instructions: (url: string | number) => string;
1785
+ readonly instructions: (url: string) => string;
1671
1786
  };
1672
1787
  };
1673
1788
  };
@@ -1675,35 +1790,35 @@ export declare const commands: {
1675
1790
  readonly serverlessFunctionMetrics: {
1676
1791
  readonly add: {
1677
1792
  readonly loading: {
1678
- readonly add: (functionName: string | number) => string;
1679
- readonly fail: (functionName: string | number) => string;
1680
- readonly succeed: (functionName: string | number) => string;
1793
+ readonly add: (functionName: string) => string;
1794
+ readonly fail: (functionName: string) => string;
1795
+ readonly succeed: (functionName: string) => string;
1681
1796
  };
1682
1797
  readonly success: {
1683
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
1798
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1684
1799
  };
1685
1800
  readonly failure: {
1686
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
1801
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1687
1802
  readonly scopes: {
1688
1803
  readonly message: "The personal access key you provided doesn't include serverless function metric permissions.";
1689
- readonly instructions: (functionName: string | number, url: string | number) => string;
1804
+ readonly instructions: (functionName: string, url: string) => string;
1690
1805
  };
1691
1806
  };
1692
1807
  };
1693
1808
  readonly delete: {
1694
1809
  readonly loading: {
1695
- readonly add: (functionName: string | number) => string;
1696
- readonly fail: (functionName: string | number) => string;
1697
- readonly succeed: (functionName: string | number) => string;
1810
+ readonly add: (functionName: string) => string;
1811
+ readonly fail: (functionName: string) => string;
1812
+ readonly succeed: (functionName: string) => string;
1698
1813
  };
1699
1814
  readonly success: {
1700
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
1815
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1701
1816
  };
1702
1817
  readonly failure: {
1703
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
1818
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1704
1819
  readonly scopes: {
1705
1820
  readonly message: "The personal access key you provided doesn't include serverless function metric permissions.";
1706
- readonly instructions: (functionName: string | number, url: string | number) => string;
1821
+ readonly instructions: (functionName: string, url: string) => string;
1707
1822
  };
1708
1823
  };
1709
1824
  };
@@ -1714,13 +1829,13 @@ export declare const commands: {
1714
1829
  readonly succeed: () => string;
1715
1830
  };
1716
1831
  readonly success: {
1717
- readonly configFileUpdated: (authType: string | number) => string;
1832
+ readonly configFileUpdated: (authType: string) => string;
1718
1833
  };
1719
1834
  readonly failure: {
1720
- readonly invalidUser: (parentAccountName: string | number) => string;
1835
+ readonly invalidUser: (parentAccountName: string) => string;
1721
1836
  readonly scopes: {
1722
1837
  readonly message: "The personal access key you provided doesn't include serverless function metric permissions.";
1723
- readonly instructions: (url: string | number) => string;
1838
+ readonly instructions: (url: string) => string;
1724
1839
  };
1725
1840
  };
1726
1841
  };
@@ -1728,35 +1843,35 @@ export declare const commands: {
1728
1843
  readonly serverlessFunctionSettings: {
1729
1844
  readonly add: {
1730
1845
  readonly loading: {
1731
- readonly add: (functionName: string | number) => string;
1732
- readonly fail: (functionName: string | number) => string;
1733
- readonly succeed: (functionName: string | number) => string;
1846
+ readonly add: (functionName: string) => string;
1847
+ readonly fail: (functionName: string) => string;
1848
+ readonly succeed: (functionName: string) => string;
1734
1849
  };
1735
1850
  readonly success: {
1736
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
1851
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1737
1852
  };
1738
1853
  readonly failure: {
1739
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
1854
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1740
1855
  readonly scopes: {
1741
1856
  readonly message: "The personal access key you provided doesn't include serverless function setting permissions.";
1742
- readonly instructions: (functionName: string | number, url: string | number) => string;
1857
+ readonly instructions: (functionName: string, url: string) => string;
1743
1858
  };
1744
1859
  };
1745
1860
  };
1746
1861
  readonly delete: {
1747
1862
  readonly loading: {
1748
- readonly add: (functionName: string | number) => string;
1749
- readonly fail: (functionName: string | number) => string;
1750
- readonly succeed: (functionName: string | number) => string;
1863
+ readonly add: (functionName: string) => string;
1864
+ readonly fail: (functionName: string) => string;
1865
+ readonly succeed: (functionName: string) => string;
1751
1866
  };
1752
1867
  readonly success: {
1753
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
1868
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1754
1869
  };
1755
1870
  readonly failure: {
1756
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
1871
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1757
1872
  readonly scopes: {
1758
1873
  readonly message: "The personal access key you provided doesn't include serverless function setting permissions.";
1759
- readonly instructions: (functionName: string | number, url: string | number) => string;
1874
+ readonly instructions: (functionName: string, url: string) => string;
1760
1875
  };
1761
1876
  };
1762
1877
  };
@@ -1767,13 +1882,13 @@ export declare const commands: {
1767
1882
  readonly succeed: () => string;
1768
1883
  };
1769
1884
  readonly success: {
1770
- readonly configFileUpdated: (authType: string | number) => string;
1885
+ readonly configFileUpdated: (authType: string) => string;
1771
1886
  };
1772
1887
  readonly failure: {
1773
- readonly invalidUser: (parentAccountName: string | number) => string;
1888
+ readonly invalidUser: (parentAccountName: string) => string;
1774
1889
  readonly scopes: {
1775
1890
  readonly message: "The personal access key you provided doesn't include serverless function setting permissions.";
1776
- readonly instructions: (url: string | number) => string;
1891
+ readonly instructions: (url: string) => string;
1777
1892
  };
1778
1893
  };
1779
1894
  };
@@ -1781,35 +1896,35 @@ export declare const commands: {
1781
1896
  readonly serverlessFunctionVersions: {
1782
1897
  readonly add: {
1783
1898
  readonly loading: {
1784
- readonly add: (functionName: string | number) => string;
1785
- readonly fail: (functionName: string | number) => string;
1786
- readonly succeed: (functionName: string | number) => string;
1899
+ readonly add: (functionName: string) => string;
1900
+ readonly fail: (functionName: string) => string;
1901
+ readonly succeed: (functionName: string) => string;
1787
1902
  };
1788
1903
  readonly success: {
1789
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
1904
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1790
1905
  };
1791
1906
  readonly failure: {
1792
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
1907
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1793
1908
  readonly scopes: {
1794
1909
  readonly message: "The personal access key you provided doesn't include serverless function version permissions.";
1795
- readonly instructions: (functionName: string | number, url: string | number) => string;
1910
+ readonly instructions: (functionName: string, url: string) => string;
1796
1911
  };
1797
1912
  };
1798
1913
  };
1799
1914
  readonly delete: {
1800
1915
  readonly loading: {
1801
- readonly add: (functionName: string | number) => string;
1802
- readonly fail: (functionName: string | number) => string;
1803
- readonly succeed: (functionName: string | number) => string;
1916
+ readonly add: (functionName: string) => string;
1917
+ readonly fail: (functionName: string) => string;
1918
+ readonly succeed: (functionName: string) => string;
1804
1919
  };
1805
1920
  readonly success: {
1806
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
1921
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1807
1922
  };
1808
1923
  readonly failure: {
1809
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
1924
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1810
1925
  readonly scopes: {
1811
1926
  readonly message: "The personal access key you provided doesn't include serverless function version permissions.";
1812
- readonly instructions: (functionName: string | number, url: string | number) => string;
1927
+ readonly instructions: (functionName: string, url: string) => string;
1813
1928
  };
1814
1929
  };
1815
1930
  };
@@ -1820,13 +1935,13 @@ export declare const commands: {
1820
1935
  readonly succeed: () => string;
1821
1936
  };
1822
1937
  readonly success: {
1823
- readonly configFileUpdated: (authType: string | number) => string;
1938
+ readonly configFileUpdated: (authType: string) => string;
1824
1939
  };
1825
1940
  readonly failure: {
1826
- readonly invalidUser: (parentAccountName: string | number) => string;
1941
+ readonly invalidUser: (parentAccountName: string) => string;
1827
1942
  readonly scopes: {
1828
1943
  readonly message: "The personal access key you provided doesn't include serverless function version permissions.";
1829
- readonly instructions: (url: string | number) => string;
1944
+ readonly instructions: (url: string) => string;
1830
1945
  };
1831
1946
  };
1832
1947
  };
@@ -1834,35 +1949,35 @@ export declare const commands: {
1834
1949
  readonly serverlessFunctionWebhooks: {
1835
1950
  readonly add: {
1836
1951
  readonly loading: {
1837
- readonly add: (functionName: string | number) => string;
1838
- readonly fail: (functionName: string | number) => string;
1839
- readonly succeed: (functionName: string | number) => string;
1952
+ readonly add: (functionName: string) => string;
1953
+ readonly fail: (functionName: string) => string;
1954
+ readonly succeed: (functionName: string) => string;
1840
1955
  };
1841
1956
  readonly success: {
1842
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
1957
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1843
1958
  };
1844
1959
  readonly failure: {
1845
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
1960
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1846
1961
  readonly scopes: {
1847
1962
  readonly message: "The personal access key you provided doesn't include serverless function webhook permissions.";
1848
- readonly instructions: (functionName: string | number, url: string | number) => string;
1963
+ readonly instructions: (functionName: string, url: string) => string;
1849
1964
  };
1850
1965
  };
1851
1966
  };
1852
1967
  readonly delete: {
1853
1968
  readonly loading: {
1854
- readonly add: (functionName: string | number) => string;
1855
- readonly fail: (functionName: string | number) => string;
1856
- readonly succeed: (functionName: string | number) => string;
1969
+ readonly add: (functionName: string) => string;
1970
+ readonly fail: (functionName: string) => string;
1971
+ readonly succeed: (functionName: string) => string;
1857
1972
  };
1858
1973
  readonly success: {
1859
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
1974
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1860
1975
  };
1861
1976
  readonly failure: {
1862
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
1977
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1863
1978
  readonly scopes: {
1864
1979
  readonly message: "The personal access key you provided doesn't include serverless function webhook permissions.";
1865
- readonly instructions: (functionName: string | number, url: string | number) => string;
1980
+ readonly instructions: (functionName: string, url: string) => string;
1866
1981
  };
1867
1982
  };
1868
1983
  };
@@ -1873,13 +1988,13 @@ export declare const commands: {
1873
1988
  readonly succeed: () => string;
1874
1989
  };
1875
1990
  readonly success: {
1876
- readonly configFileUpdated: (authType: string | number) => string;
1991
+ readonly configFileUpdated: (authType: string) => string;
1877
1992
  };
1878
1993
  readonly failure: {
1879
- readonly invalidUser: (parentAccountName: string | number) => string;
1994
+ readonly invalidUser: (parentAccountName: string) => string;
1880
1995
  readonly scopes: {
1881
1996
  readonly message: "The personal access key you provided doesn't include serverless function webhook permissions.";
1882
- readonly instructions: (url: string | number) => string;
1997
+ readonly instructions: (url: string) => string;
1883
1998
  };
1884
1999
  };
1885
2000
  };
@@ -1887,35 +2002,35 @@ export declare const commands: {
1887
2002
  readonly serverlessFunctionWebhookSubscriptions: {
1888
2003
  readonly add: {
1889
2004
  readonly loading: {
1890
- readonly add: (functionName: string | number) => string;
1891
- readonly fail: (functionName: string | number) => string;
1892
- readonly succeed: (functionName: string | number) => string;
2005
+ readonly add: (functionName: string) => string;
2006
+ readonly fail: (functionName: string) => string;
2007
+ readonly succeed: (functionName: string) => string;
1893
2008
  };
1894
2009
  readonly success: {
1895
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
2010
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1896
2011
  };
1897
2012
  readonly failure: {
1898
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
2013
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1899
2014
  readonly scopes: {
1900
2015
  readonly message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.";
1901
- readonly instructions: (functionName: string | number, url: string | number) => string;
2016
+ readonly instructions: (functionName: string, url: string) => string;
1902
2017
  };
1903
2018
  };
1904
2019
  };
1905
2020
  readonly delete: {
1906
2021
  readonly loading: {
1907
- readonly add: (functionName: string | number) => string;
1908
- readonly fail: (functionName: string | number) => string;
1909
- readonly succeed: (functionName: string | number) => string;
2022
+ readonly add: (functionName: string) => string;
2023
+ readonly fail: (functionName: string) => string;
2024
+ readonly succeed: (functionName: string) => string;
1910
2025
  };
1911
2026
  readonly success: {
1912
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
2027
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1913
2028
  };
1914
2029
  readonly failure: {
1915
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
2030
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1916
2031
  readonly scopes: {
1917
2032
  readonly message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.";
1918
- readonly instructions: (functionName: string | number, url: string | number) => string;
2033
+ readonly instructions: (functionName: string, url: string) => string;
1919
2034
  };
1920
2035
  };
1921
2036
  };
@@ -1926,13 +2041,13 @@ export declare const commands: {
1926
2041
  readonly succeed: () => string;
1927
2042
  };
1928
2043
  readonly success: {
1929
- readonly configFileUpdated: (authType: string | number) => string;
2044
+ readonly configFileUpdated: (authType: string) => string;
1930
2045
  };
1931
2046
  readonly failure: {
1932
- readonly invalidUser: (parentAccountName: string | number) => string;
2047
+ readonly invalidUser: (parentAccountName: string) => string;
1933
2048
  readonly scopes: {
1934
2049
  readonly message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.";
1935
- readonly instructions: (url: string | number) => string;
2050
+ readonly instructions: (url: string) => string;
1936
2051
  };
1937
2052
  };
1938
2053
  };
@@ -1940,35 +2055,35 @@ export declare const commands: {
1940
2055
  readonly serverlessFunctionWebhookSubscriptionEvents: {
1941
2056
  readonly add: {
1942
2057
  readonly loading: {
1943
- readonly add: (functionName: string | number) => string;
1944
- readonly fail: (functionName: string | number) => string;
1945
- readonly succeed: (functionName: string | number) => string;
2058
+ readonly add: (functionName: string) => string;
2059
+ readonly fail: (functionName: string) => string;
2060
+ readonly succeed: (functionName: string) => string;
1946
2061
  };
1947
2062
  readonly success: {
1948
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
2063
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1949
2064
  };
1950
2065
  readonly failure: {
1951
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
2066
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1952
2067
  readonly scopes: {
1953
2068
  readonly message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.";
1954
- readonly instructions: (functionName: string | number, url: string | number) => string;
2069
+ readonly instructions: (functionName: string, url: string) => string;
1955
2070
  };
1956
2071
  };
1957
2072
  };
1958
2073
  readonly delete: {
1959
2074
  readonly loading: {
1960
- readonly add: (functionName: string | number) => string;
1961
- readonly fail: (functionName: string | number) => string;
1962
- readonly succeed: (functionName: string | number) => string;
2075
+ readonly add: (functionName: string) => string;
2076
+ readonly fail: (functionName: string) => string;
2077
+ readonly succeed: (functionName: string) => string;
1963
2078
  };
1964
2079
  readonly success: {
1965
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
2080
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
1966
2081
  };
1967
2082
  readonly failure: {
1968
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
2083
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
1969
2084
  readonly scopes: {
1970
2085
  readonly message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.";
1971
- readonly instructions: (functionName: string | number, url: string | number) => string;
2086
+ readonly instructions: (functionName: string, url: string) => string;
1972
2087
  };
1973
2088
  };
1974
2089
  };
@@ -1979,13 +2094,13 @@ export declare const commands: {
1979
2094
  readonly succeed: () => string;
1980
2095
  };
1981
2096
  readonly success: {
1982
- readonly configFileUpdated: (authType: string | number) => string;
2097
+ readonly configFileUpdated: (authType: string) => string;
1983
2098
  };
1984
2099
  readonly failure: {
1985
- readonly invalidUser: (parentAccountName: string | number) => string;
2100
+ readonly invalidUser: (parentAccountName: string) => string;
1986
2101
  readonly scopes: {
1987
2102
  readonly message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.";
1988
- readonly instructions: (url: string | number) => string;
2103
+ readonly instructions: (url: string) => string;
1989
2104
  };
1990
2105
  };
1991
2106
  };
@@ -1993,35 +2108,35 @@ export declare const commands: {
1993
2108
  readonly serverlessFunctionWebhookSubscriptionEventTypes: {
1994
2109
  readonly add: {
1995
2110
  readonly loading: {
1996
- readonly add: (functionName: string | number) => string;
1997
- readonly fail: (functionName: string | number) => string;
1998
- readonly succeed: (functionName: string | number) => string;
2111
+ readonly add: (functionName: string) => string;
2112
+ readonly fail: (functionName: string) => string;
2113
+ readonly succeed: (functionName: string) => string;
1999
2114
  };
2000
2115
  readonly success: {
2001
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
2116
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
2002
2117
  };
2003
2118
  readonly failure: {
2004
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
2119
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
2005
2120
  readonly scopes: {
2006
2121
  readonly message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.";
2007
- readonly instructions: (functionName: string | number, url: string | number) => string;
2122
+ readonly instructions: (functionName: string, url: string) => string;
2008
2123
  };
2009
2124
  };
2010
2125
  };
2011
2126
  readonly delete: {
2012
2127
  readonly loading: {
2013
- readonly add: (functionName: string | number) => string;
2014
- readonly fail: (functionName: string | number) => string;
2015
- readonly succeed: (functionName: string | number) => string;
2128
+ readonly add: (functionName: string) => string;
2129
+ readonly fail: (functionName: string) => string;
2130
+ readonly succeed: (functionName: string) => string;
2016
2131
  };
2017
2132
  readonly success: {
2018
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
2133
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
2019
2134
  };
2020
2135
  readonly failure: {
2021
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
2136
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
2022
2137
  readonly scopes: {
2023
2138
  readonly message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.";
2024
- readonly instructions: (functionName: string | number, url: string | number) => string;
2139
+ readonly instructions: (functionName: string, url: string) => string;
2025
2140
  };
2026
2141
  };
2027
2142
  };
@@ -2032,13 +2147,13 @@ export declare const commands: {
2032
2147
  readonly succeed: () => string;
2033
2148
  };
2034
2149
  readonly success: {
2035
- readonly configFileUpdated: (authType: string | number) => string;
2150
+ readonly configFileUpdated: (authType: string) => string;
2036
2151
  };
2037
2152
  readonly failure: {
2038
- readonly invalidUser: (parentAccountName: string | number) => string;
2153
+ readonly invalidUser: (parentAccountName: string) => string;
2039
2154
  readonly scopes: {
2040
2155
  readonly message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.";
2041
- readonly instructions: (url: string | number) => string;
2156
+ readonly instructions: (url: string) => string;
2042
2157
  };
2043
2158
  };
2044
2159
  };
@@ -2046,35 +2161,35 @@ export declare const commands: {
2046
2161
  readonly serverlessFunctionWebhookSubscriptionEventTypeOptions: {
2047
2162
  readonly add: {
2048
2163
  readonly loading: {
2049
- readonly add: (functionName: string | number) => string;
2050
- readonly fail: (functionName: string | number) => string;
2051
- readonly succeed: (functionName: string | number) => string;
2164
+ readonly add: (functionName: string) => string;
2165
+ readonly fail: (functionName: string) => string;
2166
+ readonly succeed: (functionName: string) => string;
2052
2167
  };
2053
2168
  readonly success: {
2054
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
2169
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
2055
2170
  };
2056
2171
  readonly failure: {
2057
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
2172
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
2058
2173
  readonly scopes: {
2059
2174
  readonly message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.";
2060
- readonly instructions: (functionName: string | number, url: string | number) => string;
2175
+ readonly instructions: (functionName: string, url: string) => string;
2061
2176
  };
2062
2177
  };
2063
2178
  };
2064
2179
  readonly delete: {
2065
2180
  readonly loading: {
2066
- readonly add: (functionName: string | number) => string;
2067
- readonly fail: (functionName: string | number) => string;
2068
- readonly succeed: (functionName: string | number) => string;
2181
+ readonly add: (functionName: string) => string;
2182
+ readonly fail: (functionName: string) => string;
2183
+ readonly succeed: (functionName: string) => string;
2069
2184
  };
2070
2185
  readonly success: {
2071
- readonly configFileUpdated: (functionName: string | number, authType: string | number) => string;
2186
+ readonly configFileUpdated: (functionName: string, authType: string) => string;
2072
2187
  };
2073
2188
  readonly failure: {
2074
- readonly invalidUser: (functionName: string | number, parentAccountName: string | number) => string;
2189
+ readonly invalidUser: (functionName: string, parentAccountName: string) => string;
2075
2190
  readonly scopes: {
2076
2191
  readonly message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.";
2077
- readonly instructions: (functionName: string | number, url: string | number) => string;
2192
+ readonly instructions: (functionName: string, url: string) => string;
2078
2193
  };
2079
2194
  };
2080
2195
  };
@@ -2085,36 +2200,89 @@ export declare const commands: {
2085
2200
  readonly succeed: () => string;
2086
2201
  };
2087
2202
  readonly success: {
2088
- readonly configFileUpdated: (authType: string | number) => string;
2203
+ readonly configFileUpdated: (authType: string) => string;
2089
2204
  };
2090
2205
  readonly failure: {
2091
- readonly invalidUser: (parentAccountName: string | number) => string;
2206
+ readonly invalidUser: (parentAccountName: string) => string;
2092
2207
  readonly scopes: {
2093
2208
  readonly message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.";
2094
- readonly instructions: (url: string | number) => string;
2209
+ readonly instructions: (url: string) => string;
2095
2210
  };
2096
2211
  };
2097
2212
  };
2098
2213
  };
2214
+ readonly setupMcp: {
2215
+ readonly describe: "Configure the HubSpot CLI MCP (Model Context Protocol) server for use with Cursor.";
2216
+ readonly errors: {
2217
+ readonly serverNotFound: "hsmcp command not found. Please ensure the HubSpot CLI is properly installed and available in your PATH.";
2218
+ readonly installHint: "If you installed the CLI locally, make sure to install it globally with: npm install -g @hubspot/cli";
2219
+ readonly configurationFailed: "Failed to configure MCP server";
2220
+ };
2221
+ readonly warnings: {
2222
+ readonly alreadyConfigured: "MCP server is already configured.";
2223
+ };
2224
+ readonly success: {
2225
+ readonly configured: "MCP server successfully configured for Cursor.";
2226
+ readonly restartCursor: "Please restart Cursor to apply the changes.";
2227
+ };
2228
+ readonly instructions: {
2229
+ readonly title: "Manual MCP Server Configuration Instructions:";
2230
+ readonly step1: "1. Open or create the Cursor configuration file at:";
2231
+ readonly step2: "2. Add the following configuration to the file:";
2232
+ readonly step3: "3. Restart Cursor to apply the changes.";
2233
+ readonly documentation: "For more information, visit: https://docs.cursor.com/context/model-context-protocol";
2234
+ };
2235
+ readonly options: {
2236
+ readonly autoSetup: {
2237
+ readonly describe: "Automatically configure the MCP server in Cursor configuration";
2238
+ };
2239
+ readonly showInstructions: {
2240
+ readonly describe: "Display manual configuration instructions instead of auto-setup";
2241
+ };
2242
+ readonly global: {
2243
+ readonly describe: "Configure globally for all Cursor workspaces (default: true)";
2244
+ };
2245
+ };
2246
+ readonly prompts: {
2247
+ readonly selectAction: "How would you like to configure the MCP server?";
2248
+ readonly selectScope: "Configure MCP server for:";
2249
+ readonly overwrite: "MCP server is already configured. Overwrite existing configuration?";
2250
+ };
2251
+ readonly choices: {
2252
+ readonly autoSetup: "Automatically configure (recommended)";
2253
+ readonly showInstructions: "Show manual configuration instructions";
2254
+ readonly global: "Global (all Cursor workspaces)";
2255
+ readonly project: "Current project only";
2256
+ };
2257
+ readonly examples: {
2258
+ readonly default: "Configure the MCP server interactively";
2259
+ readonly autoSetup: "Automatically configure the MCP server";
2260
+ readonly autoSetupGlobal: "Automatically configure the MCP server globally";
2261
+ readonly autoSetupProject: "Automatically configure for current project only";
2262
+ readonly showInstructions: "Display manual configuration instructions";
2263
+ };
2264
+ };
2099
2265
  };
2100
2266
  export declare const lib: {
2101
2267
  readonly process: {
2102
- readonly exitDebug: (signal: string | number) => string;
2268
+ readonly exitDebug: (signal: string) => string;
2103
2269
  };
2104
2270
  readonly DevServerManager: {
2105
- readonly portConflict: (port: string | number) => string;
2271
+ readonly portConflict: (port: string) => string;
2106
2272
  readonly notInitialized: "The Dev Server Manager must be initialized before it is started.";
2107
- readonly noCompatibleComponents: (serverKey: string | number) => string;
2273
+ readonly noCompatibleComponents: (serverKey: string) => string;
2108
2274
  };
2109
2275
  readonly LocalDevManager: {
2276
+ readonly staticAuthAccountsMustMatch: "You must test static auth apps in the account the project exists in";
2277
+ readonly appNotFound: (accountId: number, appUid: string | undefined) => string;
2110
2278
  readonly failedToInitialize: "Missing required arguments to initialize Local Dev";
2111
- readonly noDeployedBuild: (projectName: string | number, accountIdentifier: string | number, uploadCommand: string | number) => string;
2279
+ readonly noDeployedBuild: (projectName: string, accountIdentifier: string, uploadCommand: string) => string;
2112
2280
  readonly noComponents: "There are no components in this project.";
2113
2281
  readonly betaMessage: "HubSpot projects local development";
2114
- readonly learnMoreLocalDevServer: "Learn more about the projects local dev server";
2115
- readonly running: (projectName: string | number, accountIdentifier: string | number) => string;
2282
+ readonly learnMoreLocalDevServer: string;
2283
+ readonly running: (projectName: string, accountIdentifier: string) => string;
2116
2284
  readonly quitHelper: `Press ${string} to stop the local dev server`;
2117
- readonly viewProjectLink: "View project in HubSpot";
2285
+ readonly viewProjectLink: (name: string, accountId: number) => string;
2118
2286
  readonly viewTestAccountLink: "View developer test account in HubSpot";
2119
2287
  readonly exitingStart: "Stopping local dev server ...";
2120
2288
  readonly exitingSucceed: "Successfully exited";
@@ -2123,29 +2291,51 @@ export declare const lib: {
2123
2291
  readonly uploadWarning: {
2124
2292
  readonly appLabel: "[App]";
2125
2293
  readonly uiExtensionLabel: "[UI Extension]";
2126
- readonly missingComponents: (missingComponents: string | number) => string;
2294
+ readonly missingComponents: (missingComponents: string) => string;
2127
2295
  readonly defaultWarning: string;
2128
- readonly defaultPublicAppWarning: (installCount: string | number, installText: string | number) => string;
2129
- readonly header: (warning: string | number) => string;
2296
+ readonly defaultPublicAppWarning: (installCount: number, installText: string) => string;
2297
+ readonly header: (warning: string) => string;
2298
+ readonly instructionsHeader: "To reflect these changes and continue testing:";
2130
2299
  readonly stopDev: ` * Stop ${string}`;
2131
- readonly runUpload: (command: string | number) => string;
2300
+ readonly runUpload: (command: string) => string;
2132
2301
  readonly restartDev: ` * Re-run ${string}`;
2133
2302
  readonly pushToGithub: " * Commit and push your changes to GitHub";
2134
- readonly defaultMarketplaceAppWarning: (installCount: string | number, accountText: string | number) => string;
2303
+ readonly defaultMarketplaceAppWarning: (installCount: number, accountText: string) => string;
2135
2304
  };
2136
2305
  readonly activeInstallWarning: {
2137
- readonly installCount: (appName: string | number, installCount: string | number, installText: string | number) => string;
2306
+ readonly installCount: (appName: string, installCount: number) => string;
2138
2307
  readonly 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.";
2139
2308
  readonly confirmation: "You will always be asked to confirm any permanent changes to your app's configuration before uploading them.";
2140
2309
  readonly confirmationPrompt: `Proceed with local development of this ${string} app?`;
2141
2310
  };
2142
2311
  readonly devServer: {
2143
- readonly cleanupError: (message: string | number) => string;
2144
- readonly setupError: (message: string | number) => string;
2145
- readonly startError: (message: string | number) => string;
2146
- readonly fileChangeError: (message: string | number) => string;
2312
+ readonly cleanupError: (message: string) => string;
2313
+ readonly setupError: (message: string) => string;
2314
+ readonly startError: (message: string) => string;
2315
+ readonly fileChangeError: (message: string) => string;
2147
2316
  };
2148
2317
  };
2318
+ readonly AppDevModeInterface: {
2319
+ readonly defaultMarketplaceAppWarning: (installCount: number) => string;
2320
+ };
2321
+ readonly LocalDevWebsocketServer: {
2322
+ readonly errors: {
2323
+ readonly notInitialized: (prefix: string) => string;
2324
+ readonly missingTypeField: (data: string) => string;
2325
+ readonly unknownMessageType: (type: string) => string;
2326
+ readonly invalidJSON: (data: string) => string;
2327
+ readonly portManagerNotRunning: (prefix: string) => string;
2328
+ };
2329
+ readonly logs: {
2330
+ readonly startup: (port: number) => string;
2331
+ };
2332
+ };
2333
+ readonly LocalDevProcess: {
2334
+ readonly projectConfigMismatch: `Unable to upload project. The project config has been modified since starting ${string}.`;
2335
+ readonly uploadInitiated: "Project upload initiated from Local Dev UI.";
2336
+ readonly uploadFailed: "Project upload failed. To proceed with local development, fix any necessary errors, then re-upload your project.";
2337
+ readonly uploadSuccess: "Project upload completed successfully. Resuming local dev...";
2338
+ };
2149
2339
  readonly localDevHelpers: {
2150
2340
  readonly confirmDefaultAccountIsTarget: {
2151
2341
  readonly configError: `An error occurred while reading the default account from your config. Run ${string} to re-auth this account`;
@@ -2162,12 +2352,12 @@ export declare const lib: {
2162
2352
  readonly publicAppNonDeveloperTestAccountWarning: `Local development of public apps is only supported in ${string}.`;
2163
2353
  };
2164
2354
  readonly createNewProjectForLocalDev: {
2165
- readonly projectMustExistExplanation: (projectName: string | number, accountIdentifier: string | number) => string;
2166
- readonly publicAppProjectMustExistExplanation: (projectName: string | number, accountIdentifier: string | number) => string;
2167
- readonly createProject: (projectName: string | number, accountIdentifier: string | number) => string;
2355
+ readonly projectMustExistExplanation: (projectName: string, accountId: number) => string;
2356
+ readonly publicAppProjectMustExistExplanation: (projectName: string, accountId: number) => string;
2357
+ readonly createProject: (projectName: string, accountIdentifier: string) => string;
2168
2358
  readonly choseNotToCreateProject: "Exiting because this command requires the project to exist in the target account.";
2169
- readonly creatingProject: (projectName: string | number, accountIdentifier: string | number) => string;
2170
- readonly createdProject: (projectName: string | number, accountIdentifier: string | number) => string;
2359
+ readonly creatingProject: (projectName: string, accountIdentifier: string) => string;
2360
+ readonly createdProject: (projectName: string, accountIdentifier: string) => string;
2171
2361
  readonly failedToCreateProject: "Failed to create project in the target account.";
2172
2362
  };
2173
2363
  readonly createInitialBuildForNewProject: {
@@ -2176,7 +2366,48 @@ export declare const lib: {
2176
2366
  readonly genericError: `An error occurred while creating the initial build for this project. Run ${string} to try again.`;
2177
2367
  };
2178
2368
  readonly checkIfParentAccountIsAuthed: {
2179
- readonly notAuthedError: (parentAccountId: string | number, accountIdentifier: string | number) => string;
2369
+ readonly notAuthedError: (parentAccountId: number | string, accountIdentifier: string) => string;
2370
+ };
2371
+ readonly selectAccountTypePrompt: {
2372
+ readonly message: "[--account] Choose the type of account to test on";
2373
+ readonly developerTestAccountOption: "Test on a developer test account";
2374
+ readonly sandboxAccountOption: "Test on a sandbox account";
2375
+ readonly sandboxAccountOptionDisabled: "Disabled - requires access to sandbox accounts";
2376
+ readonly productionAccountOption: `<${string} Test on this account ${string}>`;
2377
+ };
2378
+ };
2379
+ readonly middleware: {
2380
+ readonly updateNotification: {
2381
+ readonly notifyTitle: string;
2382
+ readonly cmsUpdateNotification: (packageName: string) => string;
2383
+ readonly cliUpdateNotification: `HubSpot CLI version ${string} is outdated.
2384
+ Run ${string} to upgrade to version ${string}`;
2385
+ };
2386
+ readonly autoUpdateCLI: {
2387
+ readonly updateAvailable: (latestVersion: string) => string;
2388
+ readonly updateSucceeded: (latestVersion: string) => string;
2389
+ readonly notInstalledGlobally: "Cannot auto-update the HubSpot CLI because NPM is not installed globally";
2390
+ readonly updateFailed: (latestVersion: string) => string;
2391
+ };
2392
+ };
2393
+ readonly projectProfiles: {
2394
+ readonly logs: {
2395
+ readonly usingProfile: (profileName: string) => string;
2396
+ readonly profileTargetAccount: (accountId: number) => string;
2397
+ readonly profileVariables: "Profile variables";
2398
+ };
2399
+ readonly exitIfUsingProfiles: {
2400
+ readonly errors: {
2401
+ readonly noProfileSpecified: `This project is configured to use profiles, but no profile was specified. Target a profile using the ${string} flag.`;
2402
+ };
2403
+ };
2404
+ readonly loadProfile: {
2405
+ readonly errors: {
2406
+ readonly noProjectConfig: "No project config found. Please run this command from a project directory.";
2407
+ readonly profileNotFound: (profileName: string) => string;
2408
+ readonly missingAccountId: (profileName: string) => string;
2409
+ readonly failedToLoadProfile: (profileName: string) => string;
2410
+ };
2180
2411
  };
2181
2412
  };
2182
2413
  readonly projects: {
@@ -2190,20 +2421,20 @@ export declare const lib: {
2190
2421
  readonly validateProjectConfig: {
2191
2422
  readonly configNotFound: `Unable to locate a project configuration file. Try running again from a project directory, or run ${string} to create a new project.`;
2192
2423
  readonly configMissingFields: "The project configuration file is missing required fields.";
2193
- readonly srcDirNotFound: (srcDir: string | number, projectDir: string | number) => string;
2194
- readonly srcOutsideProjectDir: (projectConfig: string | number, srcDir: string | number) => string;
2424
+ readonly srcDirNotFound: (srcDir: string, projectDir: string) => string;
2425
+ readonly srcOutsideProjectDir: (projectConfig: string, srcDir: string) => string;
2195
2426
  };
2196
2427
  readonly getProjectConfig: {
2197
2428
  readonly error: "Could not read from project config";
2198
2429
  };
2199
2430
  readonly ensureProjectExists: {
2200
- readonly createPrompt: (projectName: string | number, accountIdentifier: string | number) => string;
2201
- readonly createPromptUpload: (projectName: string | number, accountIdentifier: string | number) => string;
2202
- readonly createSuccess: (projectName: string | number, accountIdentifier: string | number) => string;
2203
- readonly notFound: (projectName: string | number, accountIdentifier: string | number) => string;
2431
+ readonly createPrompt: (projectName: string, accountIdentifier: string) => string;
2432
+ readonly createPromptUpload: (projectName: string, accountIdentifier: string) => string;
2433
+ readonly createSuccess: (projectName: string, accountIdentifier: string) => string;
2434
+ readonly notFound: (projectName: string, accountIdentifier: string) => string;
2204
2435
  };
2205
2436
  readonly pollFetchProject: {
2206
- readonly checkingProject: (accountIdentifier: string | number) => string;
2437
+ readonly checkingProject: (accountIdentifier: string) => string;
2207
2438
  };
2208
2439
  readonly logFeedbackMessage: {
2209
2440
  readonly feedbackHeader: "We'd love to hear your feedback!";
@@ -2216,31 +2447,31 @@ export declare const lib: {
2216
2447
  readonly makePollTaskStatusFunc: {
2217
2448
  readonly errorSummary: "See below for a summary of errors.";
2218
2449
  readonly componentCountSingular: "Found 1 component in this project\n";
2219
- readonly componentCount: (numComponents: string | number) => string;
2450
+ readonly componentCount: (numComponents: number) => string;
2220
2451
  readonly successStatusText: "DONE";
2221
2452
  readonly failedStatusText: "FAILED";
2222
- readonly errorFetchingTaskStatus: (taskType: string | number) => string;
2453
+ readonly errorFetchingTaskStatus: (taskType: string) => string;
2223
2454
  };
2224
- readonly pollBuildAutodeployStatusError: (buildId: string | number) => string;
2455
+ readonly pollBuildAutodeployStatusError: (buildId: number) => string;
2225
2456
  readonly pollProjectBuildAndDeploy: {
2226
- readonly buildSucceededAutomaticallyDeploying: (buildId: string | number, accountIdentifier: string | number) => string;
2227
- readonly cleanedUpTempFile: (path: string | number) => string;
2457
+ readonly buildSucceededAutomaticallyDeploying: (buildId: number, accountIdentifier: string) => string;
2458
+ readonly cleanedUpTempFile: (path: string) => string;
2228
2459
  readonly viewDeploys: "View all deploys for this project in HubSpot";
2229
- readonly unableToFindAutodeployStatus: (buildId: string | number, viewDeploysLink: string | number) => string;
2460
+ readonly unableToFindAutodeployStatus: (buildId: number, viewDeploysLink: string) => string;
2230
2461
  };
2231
2462
  };
2232
2463
  readonly projectUpload: {
2233
2464
  readonly uploadProjectFiles: {
2234
- readonly add: (projectName: string | number, accountIdentifier: string | number) => string;
2235
- readonly fail: (projectName: string | number, accountIdentifier: string | number) => string;
2236
- readonly succeed: (projectName: string | number, accountIdentifier: string | number) => string;
2237
- readonly buildCreated: (projectName: string | number, buildId: string | number) => string;
2465
+ readonly add: (projectName: string, accountIdentifier: string) => string;
2466
+ readonly fail: (projectName: string, accountIdentifier: string) => string;
2467
+ readonly succeed: (projectName: string, accountIdentifier: string) => string;
2468
+ readonly buildCreated: (projectName: string, buildId: number) => string;
2238
2469
  };
2239
2470
  readonly handleProjectUpload: {
2240
- readonly emptySource: (srcDir: string | number) => string;
2241
- readonly compressed: (byteCount: string | number) => string;
2242
- readonly compressing: (path: string | number) => string;
2243
- readonly fileFiltered: (filename: string | number) => string;
2471
+ readonly emptySource: (srcDir: string) => string;
2472
+ readonly compressed: (byteCount: number) => string;
2473
+ readonly compressing: (path: string) => string;
2474
+ readonly fileFiltered: (filename: string) => string;
2244
2475
  };
2245
2476
  };
2246
2477
  readonly boxen: {
@@ -2255,84 +2486,110 @@ export declare const lib: {
2255
2486
  readonly infoTag: string;
2256
2487
  readonly deprecatedTag: string;
2257
2488
  readonly errorTag: string;
2258
- readonly deprecatedMessage: (command: string | number, url: string | number) => string;
2259
- readonly deprecatedDescription: (message: string | number, command: string | number, url: string | number) => string;
2489
+ readonly deprecatedMessage: (command: string, url: string) => string;
2490
+ readonly deprecatedDescription: (message: string, command: string, url: string) => string;
2260
2491
  readonly deprecatedUrlText: "Learn more.";
2261
- readonly disabledMessage: (command: string | number, npmCommand: string | number, url: string | number) => string;
2492
+ readonly disabledMessage: (command: string, npmCommand: string, url: string) => string;
2262
2493
  readonly disabledUrlText: "See all HubSpot CLI commands here.";
2263
2494
  readonly featureHighlight: {
2264
2495
  readonly defaultTitle: "What's next?";
2265
2496
  readonly featureKeys: {
2266
2497
  readonly accountOption: {
2267
2498
  readonly command: "--account";
2268
- readonly message: (command: string | number) => string;
2499
+ readonly message: (command: string) => string;
2269
2500
  };
2270
2501
  readonly accountsListCommand: {
2271
2502
  readonly command: "hs accounts list";
2272
- readonly message: (command: string | number) => string;
2503
+ readonly message: (command: string) => string;
2273
2504
  };
2274
2505
  readonly accountsUseCommand: {
2275
2506
  readonly command: "hs accounts use";
2276
- readonly message: (command: string | number) => string;
2507
+ readonly message: (command: string) => string;
2277
2508
  };
2278
2509
  readonly authCommand: {
2279
2510
  readonly command: "hs auth";
2280
- readonly message: (command: string | number) => string;
2511
+ readonly message: (command: string) => string;
2281
2512
  };
2282
2513
  readonly feedbackCommand: {
2283
2514
  readonly command: "hs feedback";
2284
- readonly message: (command: string | number) => string;
2515
+ readonly message: (command: string) => string;
2285
2516
  };
2286
2517
  readonly helpCommand: {
2287
2518
  readonly command: "hs help";
2288
- readonly message: (command: string | number) => string;
2519
+ readonly message: (command: string) => string;
2289
2520
  };
2290
2521
  readonly projectCreateCommand: {
2291
2522
  readonly command: "hs project create";
2292
- readonly message: (command: string | number) => string;
2523
+ readonly message: (command: string) => string;
2293
2524
  };
2294
2525
  readonly projectDeployCommand: {
2295
2526
  readonly command: "hs project deploy";
2296
- readonly message: (command: string | number) => string;
2527
+ readonly message: (command: string) => string;
2297
2528
  };
2298
2529
  readonly projectHelpCommand: {
2299
2530
  readonly command: "hs project --help";
2300
- readonly message: (command: string | number) => string;
2531
+ readonly message: (command: string) => string;
2301
2532
  };
2302
2533
  readonly projectUploadCommand: {
2303
2534
  readonly command: "hs project upload";
2304
- readonly message: (command: string | number) => string;
2535
+ readonly message: (command: string) => string;
2305
2536
  };
2306
2537
  readonly projectDevCommand: {
2307
2538
  readonly command: "hs project dev";
2308
- readonly message: (command: string | number) => string;
2539
+ readonly message: (command: string) => string;
2309
2540
  };
2310
2541
  readonly projectInstallDepsCommand: {
2311
2542
  readonly command: "hs project install-deps";
2312
- readonly message: (command: string | number) => string;
2543
+ readonly message: (command: string) => string;
2313
2544
  };
2314
2545
  readonly sampleProjects: {
2315
2546
  readonly linkText: "HubSpot's sample projects";
2316
2547
  readonly url: "https://developers.hubspot.com/docs/platform/sample-projects?utm_source=cli&utm_content=project_create_whats_next";
2317
- readonly message: (link: string | number) => string;
2548
+ readonly message: (link: string) => string;
2318
2549
  };
2319
2550
  };
2320
2551
  };
2321
2552
  readonly git: {
2322
2553
  readonly securityIssue: "Security Issue Detected";
2323
2554
  readonly configFileTracked: "The HubSpot config file can be tracked by git.";
2324
- readonly fileName: (configPath: string | number) => string;
2555
+ readonly fileName: (configPath: string) => string;
2325
2556
  readonly remediate: "To remediate:";
2326
- readonly moveConfig: (homeDir: string | number) => string;
2327
- readonly addGitignore: (configPath: string | number) => string;
2557
+ readonly moveConfig: (homeDir: string) => string;
2558
+ readonly addGitignore: (configPath: string) => string;
2328
2559
  readonly noRemote: "- Ensure that the config file has not already been pushed to a remote repository.";
2329
2560
  readonly checkFailed: "Unable to determine if config file is properly ignored by git.";
2330
2561
  };
2331
2562
  readonly serverlessFunctionLogs: {
2332
- readonly unableToProcessLog: (log: string | number) => string;
2563
+ readonly unableToProcessLog: (log: string) => string;
2333
2564
  readonly noLogsFound: "No logs found.";
2334
2565
  };
2335
2566
  };
2567
+ readonly configOptions: {
2568
+ readonly enableOrDisableBooleanFieldPrompt: {
2569
+ readonly message: (fieldName: string) => string;
2570
+ readonly labels: {
2571
+ readonly enabled: "Enabled";
2572
+ readonly disabled: "Disabled";
2573
+ };
2574
+ };
2575
+ readonly setAllowUsageTracking: {
2576
+ readonly fieldName: "usage tracking";
2577
+ readonly success: (isEnabled: string) => string;
2578
+ };
2579
+ readonly setAllowAutoUpdates: {
2580
+ readonly fieldName: "auto updates";
2581
+ readonly success: (isEnabled: string) => string;
2582
+ };
2583
+ readonly setDefaultCmsPublishMode: {
2584
+ readonly promptMessage: "Select CMS publish mode to be used as the default";
2585
+ readonly error: (validModes: string) => string;
2586
+ readonly success: (mode: string) => string;
2587
+ };
2588
+ readonly setHttpTimeout: {
2589
+ readonly promptMessage: "Enter http timeout duration";
2590
+ readonly success: (timeout: string) => string;
2591
+ };
2592
+ };
2336
2593
  readonly commonOpts: {
2337
2594
  readonly options: {
2338
2595
  readonly account: {
@@ -2346,9 +2603,9 @@ export declare const lib: {
2346
2603
  };
2347
2604
  readonly modes: {
2348
2605
  readonly describe: {
2349
- readonly default: (modes: string | number) => string;
2350
- readonly read: (modes: string | number) => string;
2351
- readonly write: (modes: string | number) => string;
2606
+ readonly default: (modes: string) => string;
2607
+ readonly read: (modes: string) => string;
2608
+ readonly write: (modes: string) => string;
2352
2609
  };
2353
2610
  };
2354
2611
  readonly qa: {
@@ -2367,34 +2624,34 @@ export declare const lib: {
2367
2624
  readonly createNewSandboxOption: "<Test on a new development sandbox>";
2368
2625
  readonly createNewDeveloperTestAccountOption: "<Test on a new developer test account>";
2369
2626
  readonly chooseDefaultAccountOption: () => string;
2370
- readonly promptMessage: (accountType: string | number, accountIdentifier: string | number) => string;
2371
- readonly sandboxLimit: (limit: string | number) => string;
2372
- readonly sandboxLimitWithSuggestion: (limit: string | number, authCommand: string | number) => string;
2373
- readonly developerTestAccountLimit: (limit: string | number) => string;
2374
- readonly confirmDefaultAccount: (accountName: string | number, accountType: string | number) => string;
2375
- readonly confirmUseExistingDeveloperTestAccount: (accountName: string | number) => string;
2627
+ readonly promptMessage: (accountType: string, accountIdentifier: string) => string;
2628
+ readonly sandboxLimit: (limit: string) => string;
2629
+ readonly sandboxLimitWithSuggestion: (limit: string, authCommand: string) => string;
2630
+ readonly developerTestAccountLimit: (limit: string) => string;
2631
+ readonly confirmDefaultAccount: (accountName: string, accountType: string) => string;
2632
+ readonly confirmUseExistingDeveloperTestAccount: (accountName: string) => string;
2376
2633
  readonly noAccountId: "No account ID found for the selected account. Please try again.";
2377
2634
  };
2378
2635
  readonly projectLogsPrompt: {
2379
- readonly functionName: (projectName: string | number) => string;
2636
+ readonly functionName: (projectName: string) => string;
2380
2637
  };
2381
2638
  readonly setAsDefaultAccountPrompt: {
2382
2639
  readonly setAsDefaultAccountMessage: "Set this account as the default?";
2383
- readonly setAsDefaultAccount: (accountName: string | number) => string;
2384
- readonly keepingCurrentDefault: (accountName: string | number) => string;
2640
+ readonly setAsDefaultAccount: (accountName: string) => string;
2641
+ readonly keepingCurrentDefault: (accountName: string) => string;
2385
2642
  };
2386
2643
  readonly accountNamePrompt: {
2387
2644
  readonly enterAccountName: "Enter a unique name to reference this account in the CLI:";
2388
2645
  readonly enterDeveloperTestAccountName: "Name your developer test account:";
2389
2646
  readonly enterStandardSandboxName: "Name your standard sandbox:";
2390
2647
  readonly enterDevelopmentSandboxName: "Name your development sandbox:";
2391
- readonly sandboxDefaultName: (sandboxType: string | number) => string;
2392
- readonly developerTestAccountDefaultName: (count: string | number) => string;
2648
+ readonly sandboxDefaultName: (sandboxType: string) => string;
2649
+ readonly developerTestAccountDefaultName: (count: string) => string;
2393
2650
  readonly errors: {
2394
2651
  readonly invalidName: "You entered an invalid name. Please try again.";
2395
2652
  readonly nameRequired: "The name may not be blank. Please try again.";
2396
2653
  readonly spacesInName: "The name may not contain spaces. Please try again.";
2397
- readonly accountNameExists: (name: string | number) => string;
2654
+ readonly accountNameExists: (name: string) => string;
2398
2655
  };
2399
2656
  };
2400
2657
  readonly personalAccessKeyPrompt: {
@@ -2407,7 +2664,7 @@ export declare const lib: {
2407
2664
  readonly personalAccessKeyBrowserOpenPrep: "A personal access key is required to authenticate the CLI to interact with your HubSpot account. We'll open a secure page in your default browser where you can view and copy your personal access key.";
2408
2665
  readonly personalAccessKeyBrowserOpenPrompt: "Open HubSpot to copy your personal access key?";
2409
2666
  readonly logs: {
2410
- readonly openingWebBrowser: (url: string | number) => string;
2667
+ readonly openingWebBrowser: (url: string) => string;
2411
2668
  };
2412
2669
  readonly errors: {
2413
2670
  readonly invalidAccountId: "You did not enter a valid account ID. Please try again.";
@@ -2463,19 +2720,26 @@ export declare const lib: {
2463
2720
  readonly destRequired: "A project dest is required";
2464
2721
  readonly invalidDest: "There is an existing project at this destination. Please provide a new path for this project.";
2465
2722
  readonly invalidCharacters: "The selected destination contains invalid characters. Please provide a new path and try again.";
2466
- readonly invalidTemplate: (template: string | number) => string;
2723
+ readonly invalidTemplate: (template: string) => string;
2467
2724
  readonly projectTemplateRequired: "Project template is required when projectTemplates is provided";
2468
2725
  };
2469
2726
  };
2470
- readonly selectPublicAppPrompt: {
2471
- readonly selectAppIdMigrate: (accountName: string | number) => string;
2472
- readonly selectAppIdClone: (accountName: string | number) => string;
2727
+ readonly selectAppPrompt: {
2728
+ readonly selectAppId: "[--app] Select an app:";
2729
+ readonly errors: {
2730
+ readonly noApps: "No apps were found for the given account.";
2731
+ readonly invalidAppId: "Invalid app id";
2732
+ };
2733
+ };
2734
+ readonly selectPublicAppForMigrationPrompt: {
2735
+ readonly selectAppIdMigrate: (accountName: string) => string;
2736
+ readonly selectAppIdClone: (accountName: string) => string;
2473
2737
  readonly errors: {
2474
2738
  readonly noAccountId: "An account ID is required to select an app.";
2475
2739
  readonly noAppsMigration: () => string;
2476
2740
  readonly noAppsClone: () => string;
2477
- readonly noAppsMigrationMessage: (accountName: string | number) => string;
2478
- readonly noAppsCloneMessage: (accountName: string | number) => string;
2741
+ readonly noAppsMigrationMessage: (accountName: string) => string;
2742
+ readonly noAppsCloneMessage: (accountName: string) => string;
2479
2743
  readonly errorFetchingApps: "There was an error fetching public apps.";
2480
2744
  readonly cannotBeMigrated: "Cannot be migrated";
2481
2745
  };
@@ -2483,7 +2747,7 @@ export declare const lib: {
2483
2747
  readonly downloadProjectPrompt: {
2484
2748
  readonly selectProject: "Select a project to download:";
2485
2749
  readonly errors: {
2486
- readonly projectNotFound: (projectName: string | number, accountId: string | number) => string;
2750
+ readonly projectNotFound: (projectName: string, accountId: string) => string;
2487
2751
  readonly accountIdRequired: "An account ID is required to download a project.";
2488
2752
  };
2489
2753
  };
@@ -2492,12 +2756,12 @@ export declare const lib: {
2492
2756
  readonly enterName: "[--name] Give your component a name: ";
2493
2757
  readonly errors: {
2494
2758
  readonly nameRequired: "A component name is required";
2495
- readonly invalidType: (type: string | number) => string;
2759
+ readonly invalidType: (type: string) => string;
2496
2760
  };
2497
2761
  };
2498
2762
  readonly secretPrompt: {
2499
- readonly enterValue: "Enter a value for your secret: ";
2500
- readonly enterName: "Enter a name for your secret: ";
2763
+ readonly enterValue: "Enter a value for the secret: ";
2764
+ readonly enterName: "Enter the name of the secret to add: ";
2501
2765
  readonly selectSecretUpdate: "Select the secret you want to update";
2502
2766
  readonly selectSecretDelete: "Select the secret you want to delete";
2503
2767
  readonly errors: {
@@ -2520,13 +2784,13 @@ export declare const lib: {
2520
2784
  readonly srcRequired: "You must specify a source directory.";
2521
2785
  readonly destRequired: "You must specify a destination directory.";
2522
2786
  };
2523
- readonly fieldsPrompt: (dir: string | number) => string;
2787
+ readonly fieldsPrompt: (dir: string) => string;
2524
2788
  };
2525
2789
  readonly projectNamePrompt: {
2526
2790
  readonly enterName: "[--project] Enter project name:";
2527
2791
  readonly errors: {
2528
2792
  readonly invalidName: "You entered an invalid name. Please try again.";
2529
- readonly projectDoesNotExist: (projectName: string | number, accountIdentifier: string | number) => string;
2793
+ readonly projectDoesNotExist: (projectName: string, accountIdentifier: string) => string;
2530
2794
  };
2531
2795
  };
2532
2796
  readonly previewPrompt: {
@@ -2538,19 +2802,19 @@ export declare const lib: {
2538
2802
  readonly destRequired: "You must specify a destination directory.";
2539
2803
  };
2540
2804
  };
2541
- readonly installPublicAppPrompt: {
2805
+ readonly installAppPrompt: {
2542
2806
  readonly explanation: "Local development requires this app to be installed in the target test account";
2543
2807
  readonly reinstallExplanation: "This app's required scopes have been updated since it was last installed on the target test account. To avoid issues with local development, we recommend reinstalling the app with the updated scopes.";
2544
2808
  readonly prompt: "Open HubSpot to install this app?";
2545
2809
  readonly reinstallPrompt: "Open HubSpot to reinstall this app?";
2546
- readonly decline: () => string;
2810
+ readonly decline: `To continue local development of this app, install it in your target test account and re-run ${string}`;
2547
2811
  };
2548
2812
  readonly selectHubDBTablePrompt: {
2549
2813
  readonly selectTable: "Select a HubDB table:";
2550
2814
  readonly enterDest: "Enter the destination path:";
2551
2815
  readonly errors: {
2552
- readonly noTables: (accountId: string | number) => string;
2553
- readonly errorFetchingTables: (accountId: string | number) => string;
2816
+ readonly noTables: (accountId: string) => string;
2817
+ readonly errorFetchingTables: (accountId: string) => string;
2554
2818
  readonly destRequired: "A destination is required";
2555
2819
  readonly invalidDest: "The selected destination already exists. Please provide a new path.";
2556
2820
  readonly invalidCharacters: "The selected destination contains invalid characters. Please provide a new path and try again.";
@@ -2572,20 +2836,20 @@ export declare const lib: {
2572
2836
  readonly developerTestAccount: {
2573
2837
  readonly create: {
2574
2838
  readonly loading: {
2575
- readonly add: (accountName: string | number) => string;
2576
- readonly fail: (accountName: string | number) => string;
2577
- readonly succeed: (accountName: string | number, accountId: string | number) => string;
2839
+ readonly add: (accountName: string) => string;
2840
+ readonly fail: (accountName: string) => string;
2841
+ readonly succeed: (accountName: string, accountId: string) => string;
2578
2842
  };
2579
2843
  readonly success: {
2580
- readonly configFileUpdated: (accountName: string | number, authType: string | number) => string;
2844
+ readonly configFileUpdated: (accountName: string, authType: string) => string;
2581
2845
  };
2582
2846
  readonly failure: {
2583
- readonly invalidUser: (accountName: string | number, parentAccountName: string | number) => string;
2584
- readonly limit: (accountName: string | number, limit: string | number) => string;
2585
- readonly alreadyInConfig: (accountName: string | number, limit: string | number) => string;
2847
+ readonly invalidUser: (accountName: string, parentAccountName: string) => string;
2848
+ readonly limit: (accountName: string, limit: string) => string;
2849
+ readonly alreadyInConfig: (accountName: string, limit: string) => string;
2586
2850
  readonly scopes: {
2587
2851
  readonly message: "The personal access key you provided doesn't include developer test account permissions.";
2588
- readonly instructions: (accountName: string | number, url: string | number) => string;
2852
+ readonly instructions: (accountName: string | number, url: string) => string;
2589
2853
  };
2590
2854
  };
2591
2855
  };
@@ -2594,85 +2858,85 @@ export declare const lib: {
2594
2858
  readonly create: {
2595
2859
  readonly developer: {
2596
2860
  readonly loading: {
2597
- readonly add: (accountName: string | number) => string;
2598
- readonly fail: (accountName: string | number) => string;
2599
- readonly succeed: (accountName: string | number, accountId: string | number) => string;
2861
+ readonly add: (accountName: string) => string;
2862
+ readonly fail: (accountName: string) => string;
2863
+ readonly succeed: (accountName: string, accountId: string) => string;
2600
2864
  };
2601
2865
  readonly success: {
2602
- readonly configFileUpdated: (accountName: string | number, authType: string | number) => string;
2866
+ readonly configFileUpdated: (accountName: string, authType: string) => string;
2603
2867
  };
2604
2868
  readonly failure: {
2605
- readonly invalidUser: (accountName: string | number, parentAccountName: string | number) => string;
2606
- readonly limit: (accountName: string | number, limit: string | number) => string;
2607
- readonly alreadyInConfig: (accountName: string | number, limit: string | number) => string;
2869
+ readonly invalidUser: (accountName: string, parentAccountName: string) => string;
2870
+ readonly limit: (accountName: string, limit: string) => string;
2871
+ readonly alreadyInConfig: (accountName: string, limit: string) => string;
2608
2872
  readonly scopes: {
2609
2873
  readonly message: "The personal access key you provided doesn't include developer sandbox permissions.";
2610
- readonly instructions: (accountName: string | number, url: string | number) => string;
2874
+ readonly instructions: (accountName: string | number, url: string) => string;
2611
2875
  };
2612
2876
  readonly generic: "An error occurred while creating a developer sandbox";
2613
2877
  };
2614
2878
  };
2615
2879
  readonly standard: {
2616
2880
  readonly loading: {
2617
- readonly add: (accountName: string | number) => string;
2618
- readonly fail: (accountName: string | number) => string;
2619
- readonly succeed: (accountName: string | number, accountId: string | number) => string;
2881
+ readonly add: (accountName: string) => string;
2882
+ readonly fail: (accountName: string) => string;
2883
+ readonly succeed: (accountName: string, accountId: string) => string;
2620
2884
  };
2621
2885
  readonly success: {
2622
- readonly configFileUpdated: (accountName: string | number, authType: string | number) => string;
2886
+ readonly configFileUpdated: (accountName: string, authType: string) => string;
2623
2887
  };
2624
2888
  readonly failure: {
2625
- readonly invalidUser: (accountName: string | number, parentAccountName: string | number) => string;
2626
- readonly limit: (accountName: string | number, limit: string | number) => string;
2627
- readonly alreadyInConfig: (accountName: string | number, limit: string | number) => string;
2889
+ readonly invalidUser: (accountName: string, parentAccountName: string) => string;
2890
+ readonly limit: (accountName: string, limit: string) => string;
2891
+ readonly alreadyInConfig: (accountName: string, limit: string) => string;
2628
2892
  readonly scopes: {
2629
2893
  readonly message: "The personal access key you provided doesn't include standard sandbox permissions.";
2630
- readonly instructions: (accountName: string | number, url: string | number) => string;
2894
+ readonly instructions: (accountName: string, url: string) => string;
2631
2895
  };
2632
2896
  };
2633
2897
  };
2634
2898
  };
2635
2899
  readonly sync: {
2636
2900
  readonly loading: {
2637
- readonly add: (accountName: string | number) => string;
2638
- readonly fail: (accountName: string | number) => string;
2639
- readonly succeed: (accountName: string | number) => string;
2901
+ readonly add: (accountName: string) => string;
2902
+ readonly fail: (accountName: string) => string;
2903
+ readonly succeed: (accountName: string) => string;
2640
2904
  };
2641
2905
  readonly success: {
2642
- readonly configFileUpdated: (accountName: string | number, authType: string | number) => string;
2906
+ readonly configFileUpdated: (accountName: string, authType: string) => string;
2643
2907
  };
2644
2908
  readonly failure: {
2645
- readonly invalidUser: (accountName: string | number, parentAccountName: string | number) => string;
2909
+ readonly invalidUser: (accountName: string, parentAccountName: string) => string;
2646
2910
  readonly scopes: {
2647
2911
  readonly message: "The personal access key you provided doesn't include sandbox sync permissions.";
2648
- readonly instructions: (accountName: string | number, url: string | number) => string;
2912
+ readonly instructions: (accountName: string, url: string) => string;
2649
2913
  };
2650
2914
  };
2651
2915
  };
2652
2916
  };
2653
2917
  readonly errorHandlers: {
2654
2918
  readonly index: {
2655
- readonly errorOccurred: (error: string | number) => string;
2656
- readonly errorContext: (context: string | number) => string;
2657
- readonly errorCause: (cause: string | number) => string;
2919
+ readonly errorOccurred: (error: string) => string;
2920
+ readonly errorContext: (context: string) => string;
2921
+ readonly errorCause: (cause: string) => string;
2658
2922
  readonly unknownErrorOccurred: "An unknown error has occurred.";
2659
2923
  };
2660
2924
  readonly suppressErrors: {
2661
2925
  readonly platformVersionErrors: {
2662
2926
  readonly header: "Platform version update required";
2663
- readonly unspecifiedPlatformVersion: (platformVersion: string | number) => string;
2664
- readonly platformVersionRetired: (platformVersion: string | number) => string;
2665
- readonly nonExistentPlatformVersion: (platformVersion: string | number) => string;
2927
+ readonly unspecifiedPlatformVersion: (platformVersion: string) => string;
2928
+ readonly platformVersionRetired: (platformVersion: string) => string;
2929
+ readonly nonExistentPlatformVersion: (platformVersion: string) => string;
2666
2930
  readonly updateProject: "Please update your project to the latest version and try again.";
2667
2931
  readonly docsLink: "Projects platform versioning (BETA)";
2668
- readonly betaLink: (docsLink: string | number) => string;
2932
+ readonly betaLink: (docsLink: string) => string;
2669
2933
  };
2670
- readonly missingScopeError: (request: string | number, accountName: string | number, authCommand: string | number) => string;
2934
+ readonly missingScopeError: (request: string, accountName: string, authCommand: string) => string;
2671
2935
  };
2672
2936
  };
2673
2937
  readonly serverless: {
2674
2938
  readonly verifyAccessKeyAndUserAccess: {
2675
- readonly fetchScopeDataError: (scopeGroup: string | number) => string;
2939
+ readonly fetchScopeDataError: (scopeGroup: string) => string;
2676
2940
  readonly portalMissingScope: "Your account does not have access to this action. Talk to an account admin to request it.";
2677
2941
  readonly userMissingScope: "You don't have access to this action. Ask an account admin to change your permissions in Users & Teams settings.";
2678
2942
  readonly genericMissingScope: "Your access key does not allow this action. Please generate a new access key by running `hs auth personalaccesskey`.";
@@ -2684,49 +2948,49 @@ export declare const lib: {
2684
2948
  readonly accountChecks: {
2685
2949
  readonly active: "Default account active";
2686
2950
  readonly inactive: "Default account isn't active";
2687
- readonly inactiveSecondary: (command: string | number) => string;
2951
+ readonly inactiveSecondary: (command: string) => string;
2688
2952
  readonly unableToDetermine: "Unable to determine if the portal is active";
2689
2953
  readonly pak: {
2690
2954
  readonly incomplete: "Personal access key is valid, but there are more scopes available to your user that are not included in your key.";
2691
- readonly incompleteSecondary: (command: string | number, link: string | number) => string;
2955
+ readonly incompleteSecondary: (command: string, link: string) => string;
2692
2956
  readonly invalid: "Personal access key is invalid";
2693
- readonly invalidSecondary: (command: string | number) => string;
2694
- readonly valid: (link: string | number) => string;
2957
+ readonly invalidSecondary: (command: string) => string;
2958
+ readonly valid: (link: string) => string;
2695
2959
  readonly viewScopes: "View selected scopes";
2696
2960
  };
2697
2961
  };
2698
2962
  readonly nodeChecks: {
2699
2963
  readonly unableToDetermine: "Unable to determine what version of node is installed";
2700
- readonly minimumNotMet: (nodeVersion: string | number) => string;
2701
- readonly success: (nodeVersion: string | number) => string;
2964
+ readonly minimumNotMet: (nodeVersion: string) => string;
2965
+ readonly success: (nodeVersion: string) => string;
2702
2966
  };
2703
2967
  readonly npmChecks: {
2704
2968
  readonly notInstalled: "npm is not installed";
2705
- readonly installed: (npmVersion: string | number) => string;
2969
+ readonly installed: (npmVersion: string) => string;
2706
2970
  readonly unableToDetermine: "Unable to determine if npm is installed";
2707
2971
  };
2708
2972
  readonly hsChecks: {
2709
- readonly notLatest: (hsVersion: string | number) => string;
2710
- readonly notLatestSecondary: (command: string | number, hsVersion: string | number) => string;
2711
- readonly latest: (hsVersion: string | number) => string;
2973
+ readonly notLatest: (hsVersion: string) => string;
2974
+ readonly notLatestSecondary: (command: string, hsVersion: string) => string;
2975
+ readonly latest: (hsVersion: string) => string;
2712
2976
  readonly unableToDetermine: "Unable to determine if HubSpot CLI is up to date.";
2713
- readonly unableToDetermineSecondary: (command: string | number, link: string | number) => string;
2977
+ readonly unableToDetermineSecondary: (command: string, link: string) => string;
2714
2978
  readonly unableToDetermineSecondaryLink: "npm HubSpot CLI version history";
2715
2979
  };
2716
2980
  readonly projectDependenciesChecks: {
2717
- readonly missingDependencies: (dir: string | number) => string;
2718
- readonly missingDependenciesSecondary: (command: string | number) => string;
2719
- readonly unableToDetermine: (dir: string | number) => string;
2981
+ readonly missingDependencies: (dir: string) => string;
2982
+ readonly missingDependenciesSecondary: (command: string) => string;
2983
+ readonly unableToDetermine: (dir: string) => string;
2720
2984
  readonly success: "App dependencies are installed and up to date";
2721
2985
  };
2722
2986
  readonly files: {
2723
- readonly invalidJson: (filename: string | number) => string;
2987
+ readonly invalidJson: (filename: string) => string;
2724
2988
  readonly validJson: "JSON files valid";
2725
2989
  };
2726
2990
  readonly port: {
2727
- readonly inUse: (port: string | number) => string;
2728
- readonly inUseSecondary: (command: string | number) => string;
2729
- readonly available: (port: string | number) => string;
2991
+ readonly inUse: (port: string) => string;
2992
+ readonly inUseSecondary: (command: string) => string;
2993
+ readonly available: (port: string) => string;
2730
2994
  };
2731
2995
  readonly diagnosis: {
2732
2996
  readonly cli: {
@@ -2734,19 +2998,19 @@ export declare const lib: {
2734
2998
  };
2735
2999
  readonly cliConfig: {
2736
3000
  readonly header: "CLI configuration";
2737
- readonly configFileSubHeader: (filename: string | number) => string;
2738
- readonly defaultAccountSubHeader: (accountDetails: string | number) => string;
3001
+ readonly configFileSubHeader: (filename: string) => string;
3002
+ readonly defaultAccountSubHeader: (accountDetails: string) => string;
2739
3003
  readonly noConfigFile: "CLI configuration not found";
2740
- readonly noConfigFileSecondary: (command: string | number) => string;
3004
+ readonly noConfigFileSecondary: (command: string) => string;
2741
3005
  };
2742
3006
  readonly projectConfig: {
2743
3007
  readonly header: "Project configuration";
2744
- readonly projectDirSubHeader: (projectDir: string | number) => string;
2745
- readonly projectNameSubHeader: (projectName: string | number) => string;
3008
+ readonly projectDirSubHeader: (projectDir: string) => string;
3009
+ readonly projectNameSubHeader: (projectName: string) => string;
2746
3010
  };
2747
3011
  readonly counts: {
2748
- readonly errors: (count: string | number) => string;
2749
- readonly warnings: (count: string | number) => string;
3012
+ readonly errors: (count: string) => string;
3013
+ readonly warnings: (count: string) => string;
2750
3014
  };
2751
3015
  };
2752
3016
  };
@@ -2754,8 +3018,8 @@ export declare const lib: {
2754
3018
  readonly missingClientId: "Error building oauth URL: missing client ID.";
2755
3019
  };
2756
3020
  readonly migrate: {
2757
- readonly componentsToBeMigrated: (components: string | number) => string;
2758
- readonly componentsThatWillNotBeMigrated: (components: string | number) => string;
3021
+ readonly componentsToBeMigrated: (components: string) => string;
3022
+ readonly componentsThatWillNotBeMigrated: (components: string) => string;
2759
3023
  readonly sourceContentsMoved: (newLocation: string) => string;
2760
3024
  readonly projectMigrationWarningTitle: "⚠️ Important: Migrating to platformVersion 2025.2 is irreversible ⚠️";
2761
3025
  readonly projectMigrationWarning: string;
@@ -2764,7 +3028,7 @@ export declare const lib: {
2764
3028
  readonly invalidConfig: "The project configuration file is invalid. Please check the config file and try again.";
2765
3029
  readonly doesNotExist: (account: number) => string;
2766
3030
  readonly multipleApps: "Multiple apps found in project, this is not allowed in 2025.2";
2767
- readonly alreadyExists: (projectName: string | number) => string;
3031
+ readonly alreadyExists: (projectName: string) => string;
2768
3032
  };
2769
3033
  readonly unmigratableReasons: {
2770
3034
  readonly upToDate: "App is already up to date";
@@ -2772,21 +3036,21 @@ export declare const lib: {
2772
3036
  readonly listedInMarketplace: "Listed apps are not currently migratable";
2773
3037
  readonly projectConnectedToGitHub: (projectName: string | undefined, accountId: number) => string;
2774
3038
  readonly partOfProjectAlready: `This app is part of a project, run ${string} from the project directory to migrate it`;
2775
- readonly generic: (reasonCode: string | number) => string;
3039
+ readonly generic: (reasonCode: string) => string;
2776
3040
  };
2777
- readonly noAppsEligible: (accountId: string | number, reasons: string[]) => string;
3041
+ readonly noAppsEligible: (accountId: string, reasons: string[]) => string;
2778
3042
  readonly invalidAccountTypeTitle: string;
2779
- readonly invalidAccountTypeDescription: (useCommand: string | number, authCommand: string | number) => string;
2780
- readonly appWithAppIdNotFound: (appId: string | number) => string;
3043
+ readonly invalidAccountTypeDescription: (useCommand: string, authCommand: string) => string;
3044
+ readonly appWithAppIdNotFound: (appId: number) => string;
2781
3045
  readonly noAppsForProject: (projectName: string) => string;
2782
3046
  readonly migrationFailed: "Migration Failed";
2783
- readonly notUngatedForUnifiedApps: (account: string | number) => string;
3047
+ readonly notUngatedForUnifiedApps: (account: string) => string;
2784
3048
  };
2785
3049
  readonly prompt: {
2786
3050
  readonly chooseApp: "Which app would you like to migrate?";
2787
3051
  readonly inputName: "[--name] What would you like to name the project?";
2788
3052
  readonly inputDest: "[--dest] Where would you like to save the project?";
2789
- readonly uidForComponent: (componentName: string | number) => string;
3053
+ readonly uidForComponent: (componentName: string) => string;
2790
3054
  readonly proceed: "Would you like to proceed?";
2791
3055
  };
2792
3056
  readonly spinners: {