@mittwald/cli 1.0.0-alpha.3

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 (549) hide show
  1. package/.deps/client.tgz +0 -0
  2. package/.deps/commons.tgz +0 -0
  3. package/LICENSE +21 -0
  4. package/README.md +2716 -0
  5. package/bin/dev +17 -0
  6. package/bin/dev.cmd +3 -0
  7. package/bin/mw.cmd +3 -0
  8. package/bin/run.js +9 -0
  9. package/dist/esm/BaseCommand.d.ts +11 -0
  10. package/dist/esm/BaseCommand.js +44 -0
  11. package/dist/esm/DeleteBaseCommand.d.ts +15 -0
  12. package/dist/esm/DeleteBaseCommand.js +37 -0
  13. package/dist/esm/ExtendedBaseCommand.d.ts +7 -0
  14. package/dist/esm/ExtendedBaseCommand.js +16 -0
  15. package/dist/esm/Flags.d.ts +1 -0
  16. package/dist/esm/Flags.js +1 -0
  17. package/dist/esm/Formatter.d.ts +15 -0
  18. package/dist/esm/Formatter.js +28 -0
  19. package/dist/esm/GetBaseCommand.d.ts +17 -0
  20. package/dist/esm/GetBaseCommand.js +27 -0
  21. package/dist/esm/Helpers.d.ts +5 -0
  22. package/dist/esm/Helpers.js +24 -0
  23. package/dist/esm/ListBaseCommand.d.ts +20 -0
  24. package/dist/esm/ListBaseCommand.js +60 -0
  25. package/dist/esm/Printer.d.ts +16 -0
  26. package/dist/esm/Printer.js +30 -0
  27. package/dist/esm/Translator.d.ts +5 -0
  28. package/dist/esm/Translator.js +53 -0
  29. package/dist/esm/commands/app/delete.d.ts +12 -0
  30. package/dist/esm/commands/app/delete.js +45 -0
  31. package/dist/esm/commands/app/getApp.d.ts +3 -0
  32. package/dist/esm/commands/app/getApp.js +6 -0
  33. package/dist/esm/commands/app/getAppinstallation.d.ts +3 -0
  34. package/dist/esm/commands/app/getAppinstallation.js +6 -0
  35. package/dist/esm/commands/app/getAppversion.d.ts +3 -0
  36. package/dist/esm/commands/app/getAppversion.js +6 -0
  37. package/dist/esm/commands/app/getSystemsoftware.d.ts +3 -0
  38. package/dist/esm/commands/app/getSystemsoftware.js +6 -0
  39. package/dist/esm/commands/app/getSystemsoftwareversion.d.ts +3 -0
  40. package/dist/esm/commands/app/getSystemsoftwareversion.js +6 -0
  41. package/dist/esm/commands/app/list.d.ts +16 -0
  42. package/dist/esm/commands/app/list.js +64 -0
  43. package/dist/esm/commands/app/listAppinstallations.d.ts +9 -0
  44. package/dist/esm/commands/app/listAppinstallations.js +6 -0
  45. package/dist/esm/commands/app/listApps.d.ts +9 -0
  46. package/dist/esm/commands/app/listApps.js +6 -0
  47. package/dist/esm/commands/app/listAppversions.d.ts +9 -0
  48. package/dist/esm/commands/app/listAppversions.js +6 -0
  49. package/dist/esm/commands/app/listSystemsoftwares.d.ts +9 -0
  50. package/dist/esm/commands/app/listSystemsoftwares.js +6 -0
  51. package/dist/esm/commands/app/listSystemsoftwareversions.d.ts +9 -0
  52. package/dist/esm/commands/app/listSystemsoftwareversions.js +6 -0
  53. package/dist/esm/commands/app/retrieveStatus.d.ts +3 -0
  54. package/dist/esm/commands/app/retrieveStatus.js +6 -0
  55. package/dist/esm/commands/article/getArticle.d.ts +3 -0
  56. package/dist/esm/commands/article/getArticle.js +6 -0
  57. package/dist/esm/commands/article/listArticles.d.ts +9 -0
  58. package/dist/esm/commands/article/listArticles.js +6 -0
  59. package/dist/esm/commands/contract/getBaseItemOfContract.d.ts +3 -0
  60. package/dist/esm/commands/contract/getBaseItemOfContract.js +6 -0
  61. package/dist/esm/commands/contract/getDetailOfContract.d.ts +3 -0
  62. package/dist/esm/commands/contract/getDetailOfContract.js +6 -0
  63. package/dist/esm/commands/contract/getDetailOfContractByDomain.d.ts +3 -0
  64. package/dist/esm/commands/contract/getDetailOfContractByDomain.js +6 -0
  65. package/dist/esm/commands/contract/getDetailOfContractByProject.d.ts +3 -0
  66. package/dist/esm/commands/contract/getDetailOfContractByProject.js +6 -0
  67. package/dist/esm/commands/contract/getDetailOfContractByServer.d.ts +3 -0
  68. package/dist/esm/commands/contract/getDetailOfContractByServer.js +6 -0
  69. package/dist/esm/commands/contract/getDetailOfContractItem.d.ts +3 -0
  70. package/dist/esm/commands/contract/getDetailOfContractItem.js +6 -0
  71. package/dist/esm/commands/contract/getNextTerminationDateForItem.d.ts +3 -0
  72. package/dist/esm/commands/contract/getNextTerminationDateForItem.js +6 -0
  73. package/dist/esm/commands/contract/invoiceDetailOfInvoice.d.ts +3 -0
  74. package/dist/esm/commands/contract/invoiceDetailOfInvoice.js +6 -0
  75. package/dist/esm/commands/contract/invoiceGetDetailOfInvoiceSettings.d.ts +3 -0
  76. package/dist/esm/commands/contract/invoiceGetDetailOfInvoiceSettings.js +6 -0
  77. package/dist/esm/commands/contract/invoiceListCustomerInvoices.d.ts +9 -0
  78. package/dist/esm/commands/contract/invoiceListCustomerInvoices.js +6 -0
  79. package/dist/esm/commands/contract/listContracts.d.ts +9 -0
  80. package/dist/esm/commands/contract/listContracts.js +6 -0
  81. package/dist/esm/commands/contract/orderGetOrder.d.ts +3 -0
  82. package/dist/esm/commands/contract/orderGetOrder.js +6 -0
  83. package/dist/esm/commands/contract/orderListCustomerOrders.d.ts +9 -0
  84. package/dist/esm/commands/contract/orderListCustomerOrders.js +6 -0
  85. package/dist/esm/commands/contract/orderListProjectOrders.d.ts +9 -0
  86. package/dist/esm/commands/contract/orderListProjectOrders.js +6 -0
  87. package/dist/esm/commands/conversation/categories.d.ts +11 -0
  88. package/dist/esm/commands/conversation/categories.js +16 -0
  89. package/dist/esm/commands/conversation/close.d.ts +8 -0
  90. package/dist/esm/commands/conversation/close.js +24 -0
  91. package/dist/esm/commands/conversation/create.d.ts +13 -0
  92. package/dist/esm/commands/conversation/create.js +50 -0
  93. package/dist/esm/commands/conversation/list.d.ts +11 -0
  94. package/dist/esm/commands/conversation/list.js +28 -0
  95. package/dist/esm/commands/conversation/reply.d.ts +13 -0
  96. package/dist/esm/commands/conversation/reply.js +30 -0
  97. package/dist/esm/commands/conversation/show.d.ts +8 -0
  98. package/dist/esm/commands/conversation/show.js +78 -0
  99. package/dist/esm/commands/conversation/show2.d.ts +11 -0
  100. package/dist/esm/commands/conversation/show2.js +37 -0
  101. package/dist/esm/commands/cronjob/getCronjob.d.ts +3 -0
  102. package/dist/esm/commands/cronjob/getCronjob.js +6 -0
  103. package/dist/esm/commands/cronjob/getExecution.d.ts +3 -0
  104. package/dist/esm/commands/cronjob/getExecution.js +6 -0
  105. package/dist/esm/commands/cronjob/listCronjobs.d.ts +9 -0
  106. package/dist/esm/commands/cronjob/listCronjobs.js +6 -0
  107. package/dist/esm/commands/cronjob/listExecutions.d.ts +9 -0
  108. package/dist/esm/commands/cronjob/listExecutions.js +6 -0
  109. package/dist/esm/commands/customer/getCustomer.d.ts +3 -0
  110. package/dist/esm/commands/customer/getCustomer.js +6 -0
  111. package/dist/esm/commands/customer/getCustomerCategory.d.ts +3 -0
  112. package/dist/esm/commands/customer/getCustomerCategory.js +6 -0
  113. package/dist/esm/commands/customer/getCustomerInvite.d.ts +3 -0
  114. package/dist/esm/commands/customer/getCustomerInvite.js +6 -0
  115. package/dist/esm/commands/customer/getCustomerMembership.d.ts +3 -0
  116. package/dist/esm/commands/customer/getCustomerMembership.js +6 -0
  117. package/dist/esm/commands/customer/getCustomerTokenInvite.d.ts +3 -0
  118. package/dist/esm/commands/customer/getCustomerTokenInvite.js +6 -0
  119. package/dist/esm/commands/customer/isCustomerLegallyCompetent.d.ts +3 -0
  120. package/dist/esm/commands/customer/isCustomerLegallyCompetent.js +6 -0
  121. package/dist/esm/commands/customer/listCustomerInvites.d.ts +9 -0
  122. package/dist/esm/commands/customer/listCustomerInvites.js +6 -0
  123. package/dist/esm/commands/customer/listCustomerMemberships.d.ts +9 -0
  124. package/dist/esm/commands/customer/listCustomerMemberships.js +6 -0
  125. package/dist/esm/commands/customer/listCustomers.d.ts +9 -0
  126. package/dist/esm/commands/customer/listCustomers.js +6 -0
  127. package/dist/esm/commands/customer/listInvitesForCustomer.d.ts +9 -0
  128. package/dist/esm/commands/customer/listInvitesForCustomer.js +6 -0
  129. package/dist/esm/commands/customer/listMembershipsForCustomer.d.ts +9 -0
  130. package/dist/esm/commands/customer/listMembershipsForCustomer.js +6 -0
  131. package/dist/esm/commands/customer/listOfCustomerCategories.d.ts +9 -0
  132. package/dist/esm/commands/customer/listOfCustomerCategories.js +6 -0
  133. package/dist/esm/commands/database/mysql/charsets.d.ts +9 -0
  134. package/dist/esm/commands/database/mysql/charsets.js +6 -0
  135. package/dist/esm/commands/database/mysql/get.d.ts +3 -0
  136. package/dist/esm/commands/database/mysql/get.js +6 -0
  137. package/dist/esm/commands/database/mysql/list.d.ts +11 -0
  138. package/dist/esm/commands/database/mysql/list.js +54 -0
  139. package/dist/esm/commands/database/mysql/user/get.d.ts +3 -0
  140. package/dist/esm/commands/database/mysql/user/get.js +6 -0
  141. package/dist/esm/commands/database/mysql/user/getMysqlUserPhpMyAdminUrl.d.ts +3 -0
  142. package/dist/esm/commands/database/mysql/user/getMysqlUserPhpMyAdminUrl.js +7 -0
  143. package/dist/esm/commands/database/mysql/user/list.d.ts +9 -0
  144. package/dist/esm/commands/database/mysql/user/list.js +6 -0
  145. package/dist/esm/commands/database/mysql/versions.d.ts +9 -0
  146. package/dist/esm/commands/database/mysql/versions.js +6 -0
  147. package/dist/esm/commands/database/redis/get.d.ts +3 -0
  148. package/dist/esm/commands/database/redis/get.js +6 -0
  149. package/dist/esm/commands/database/redis/list.d.ts +9 -0
  150. package/dist/esm/commands/database/redis/list.js +6 -0
  151. package/dist/esm/commands/database/redis/versions.d.ts +9 -0
  152. package/dist/esm/commands/database/redis/versions.js +6 -0
  153. package/dist/esm/commands/domain/dnsZoneGetSpecific.d.ts +3 -0
  154. package/dist/esm/commands/domain/dnsZoneGetSpecific.js +6 -0
  155. package/dist/esm/commands/domain/dnsZonesForProject.d.ts +3 -0
  156. package/dist/esm/commands/domain/dnsZonesForProject.js +6 -0
  157. package/dist/esm/commands/domain/get.d.ts +3 -0
  158. package/dist/esm/commands/domain/get.js +6 -0
  159. package/dist/esm/commands/domain/getHandleFields.d.ts +3 -0
  160. package/dist/esm/commands/domain/getHandleFields.js +6 -0
  161. package/dist/esm/commands/domain/getSpecificDomainOwnership.d.ts +3 -0
  162. package/dist/esm/commands/domain/getSpecificDomainOwnership.js +6 -0
  163. package/dist/esm/commands/domain/list.d.ts +9 -0
  164. package/dist/esm/commands/domain/list.js +6 -0
  165. package/dist/esm/commands/domain/listDomainOwnerships.d.ts +9 -0
  166. package/dist/esm/commands/domain/listDomainOwnerships.js +6 -0
  167. package/dist/esm/commands/domain/tld/get.d.ts +3 -0
  168. package/dist/esm/commands/domain/tld/get.js +6 -0
  169. package/dist/esm/commands/domain/tld/list.d.ts +9 -0
  170. package/dist/esm/commands/domain/tld/list.js +6 -0
  171. package/dist/esm/commands/domain/virtualhost/get.d.ts +3 -0
  172. package/dist/esm/commands/domain/virtualhost/get.js +6 -0
  173. package/dist/esm/commands/domain/virtualhost/list.d.ts +20 -0
  174. package/dist/esm/commands/domain/virtualhost/list.js +49 -0
  175. package/dist/esm/commands/login/status.d.ts +5 -0
  176. package/dist/esm/commands/login/status.js +29 -0
  177. package/dist/esm/commands/login/token.d.ts +9 -0
  178. package/dist/esm/commands/login/token.js +39 -0
  179. package/dist/esm/commands/mail/address/create.d.ts +12 -0
  180. package/dist/esm/commands/mail/address/create.js +52 -0
  181. package/dist/esm/commands/mail/address/delete.d.ts +12 -0
  182. package/dist/esm/commands/mail/address/delete.js +22 -0
  183. package/dist/esm/commands/mail/address/get.d.ts +3 -0
  184. package/dist/esm/commands/mail/address/get.js +6 -0
  185. package/dist/esm/commands/mail/address/list.d.ts +12 -0
  186. package/dist/esm/commands/mail/address/list.js +47 -0
  187. package/dist/esm/commands/mail/deliverybox/get.d.ts +3 -0
  188. package/dist/esm/commands/mail/deliverybox/get.js +6 -0
  189. package/dist/esm/commands/mail/deliverybox/list.d.ts +12 -0
  190. package/dist/esm/commands/mail/deliverybox/list.js +25 -0
  191. package/dist/esm/commands/project/backup/get.d.ts +3 -0
  192. package/dist/esm/commands/project/backup/get.js +6 -0
  193. package/dist/esm/commands/project/backup/list.d.ts +12 -0
  194. package/dist/esm/commands/project/backup/list.js +24 -0
  195. package/dist/esm/commands/project/backupschedule/get.d.ts +3 -0
  196. package/dist/esm/commands/project/backupschedule/get.js +6 -0
  197. package/dist/esm/commands/project/backupschedule/list.d.ts +13 -0
  198. package/dist/esm/commands/project/backupschedule/list.js +21 -0
  199. package/dist/esm/commands/project/create.d.ts +10 -0
  200. package/dist/esm/commands/project/create.js +59 -0
  201. package/dist/esm/commands/project/delete.d.ts +13 -0
  202. package/dist/esm/commands/project/delete.js +26 -0
  203. package/dist/esm/commands/project/filesystem/directories.d.ts +3 -0
  204. package/dist/esm/commands/project/filesystem/directories.js +6 -0
  205. package/dist/esm/commands/project/filesystem/file-content.d.ts +3 -0
  206. package/dist/esm/commands/project/filesystem/file-content.js +6 -0
  207. package/dist/esm/commands/project/filesystem/files.d.ts +16 -0
  208. package/dist/esm/commands/project/filesystem/files.js +25 -0
  209. package/dist/esm/commands/project/filesystem/usage.d.ts +4 -0
  210. package/dist/esm/commands/project/filesystem/usage.js +11 -0
  211. package/dist/esm/commands/project/get.d.ts +4 -0
  212. package/dist/esm/commands/project/get.js +11 -0
  213. package/dist/esm/commands/project/invite/get.d.ts +3 -0
  214. package/dist/esm/commands/project/invite/get.js +6 -0
  215. package/dist/esm/commands/project/invite/list-own.d.ts +11 -0
  216. package/dist/esm/commands/project/invite/list-own.js +29 -0
  217. package/dist/esm/commands/project/invite/list.d.ts +12 -0
  218. package/dist/esm/commands/project/invite/list.js +32 -0
  219. package/dist/esm/commands/project/list.d.ts +12 -0
  220. package/dist/esm/commands/project/list.js +33 -0
  221. package/dist/esm/commands/project/list1.d.ts +7 -0
  222. package/dist/esm/commands/project/list1.js +18 -0
  223. package/dist/esm/commands/project/list2.d.ts +9 -0
  224. package/dist/esm/commands/project/list2.js +26 -0
  225. package/dist/esm/commands/project/membership/get-own.d.ts +4 -0
  226. package/dist/esm/commands/project/membership/get-own.js +11 -0
  227. package/dist/esm/commands/project/membership/get.d.ts +3 -0
  228. package/dist/esm/commands/project/membership/get.js +6 -0
  229. package/dist/esm/commands/project/membership/list-own.d.ts +11 -0
  230. package/dist/esm/commands/project/membership/list-own.js +28 -0
  231. package/dist/esm/commands/project/membership/list.d.ts +25 -0
  232. package/dist/esm/commands/project/membership/list.js +46 -0
  233. package/dist/esm/commands/project/sftp-user/list.d.ts +13 -0
  234. package/dist/esm/commands/project/sftp-user/list.js +24 -0
  235. package/dist/esm/commands/project/ssh-user/list.d.ts +13 -0
  236. package/dist/esm/commands/project/ssh-user/list.js +24 -0
  237. package/dist/esm/commands/project/ssh.d.ts +8 -0
  238. package/dist/esm/commands/project/ssh.js +31 -0
  239. package/dist/esm/commands/project/update.d.ts +8 -0
  240. package/dist/esm/commands/project/update.js +15 -0
  241. package/dist/esm/commands/server/get.d.ts +3 -0
  242. package/dist/esm/commands/server/get.js +6 -0
  243. package/dist/esm/commands/server/list.d.ts +11 -0
  244. package/dist/esm/commands/server/list.js +41 -0
  245. package/dist/esm/commands/user/api-token/create.d.ts +11 -0
  246. package/dist/esm/commands/user/api-token/create.js +46 -0
  247. package/dist/esm/commands/user/api-token/get.d.ts +3 -0
  248. package/dist/esm/commands/user/api-token/get.js +6 -0
  249. package/dist/esm/commands/user/api-token/list.d.ts +11 -0
  250. package/dist/esm/commands/user/api-token/list.js +21 -0
  251. package/dist/esm/commands/user/api-token/revoke.d.ts +8 -0
  252. package/dist/esm/commands/user/api-token/revoke.js +21 -0
  253. package/dist/esm/commands/user/get.d.ts +3 -0
  254. package/dist/esm/commands/user/get.js +6 -0
  255. package/dist/esm/commands/user/session/get.d.ts +3 -0
  256. package/dist/esm/commands/user/session/get.js +6 -0
  257. package/dist/esm/commands/user/session/list.d.ts +11 -0
  258. package/dist/esm/commands/user/session/list.js +24 -0
  259. package/dist/esm/commands/user/ssh-key/create.d.ts +10 -0
  260. package/dist/esm/commands/user/ssh-key/create.js +60 -0
  261. package/dist/esm/commands/user/ssh-key/delete.d.ts +12 -0
  262. package/dist/esm/commands/user/ssh-key/delete.js +41 -0
  263. package/dist/esm/commands/user/ssh-key/get.d.ts +3 -0
  264. package/dist/esm/commands/user/ssh-key/get.js +6 -0
  265. package/dist/esm/commands/user/ssh-key/list.d.ts +11 -0
  266. package/dist/esm/commands/user/ssh-key/list.js +21 -0
  267. package/dist/esm/generated/app/getApp.d.ts +16 -0
  268. package/dist/esm/generated/app/getApp.js +25 -0
  269. package/dist/esm/generated/app/getAppinstallation.d.ts +16 -0
  270. package/dist/esm/generated/app/getAppinstallation.js +25 -0
  271. package/dist/esm/generated/app/getAppversion.d.ts +16 -0
  272. package/dist/esm/generated/app/getAppversion.js +29 -0
  273. package/dist/esm/generated/app/getSystemsoftware.d.ts +16 -0
  274. package/dist/esm/generated/app/getSystemsoftware.js +25 -0
  275. package/dist/esm/generated/app/getSystemsoftwareversion.d.ts +16 -0
  276. package/dist/esm/generated/app/getSystemsoftwareversion.js +29 -0
  277. package/dist/esm/generated/app/listAppinstallations.d.ts +13 -0
  278. package/dist/esm/generated/app/listAppinstallations.js +24 -0
  279. package/dist/esm/generated/app/listApps.d.ts +13 -0
  280. package/dist/esm/generated/app/listApps.js +17 -0
  281. package/dist/esm/generated/app/listAppversions.d.ts +13 -0
  282. package/dist/esm/generated/app/listAppversions.js +24 -0
  283. package/dist/esm/generated/app/listSystemsoftwares.d.ts +13 -0
  284. package/dist/esm/generated/app/listSystemsoftwares.js +17 -0
  285. package/dist/esm/generated/app/listSystemsoftwareversions.d.ts +13 -0
  286. package/dist/esm/generated/app/listSystemsoftwareversions.js +24 -0
  287. package/dist/esm/generated/app/retrieveStatus.d.ts +14 -0
  288. package/dist/esm/generated/app/retrieveStatus.js +24 -0
  289. package/dist/esm/generated/article/getArticle.d.ts +16 -0
  290. package/dist/esm/generated/article/getArticle.js +25 -0
  291. package/dist/esm/generated/article/listArticles.d.ts +13 -0
  292. package/dist/esm/generated/article/listArticles.js +17 -0
  293. package/dist/esm/generated/backup/getProjectBackup.d.ts +16 -0
  294. package/dist/esm/generated/backup/getProjectBackup.js +25 -0
  295. package/dist/esm/generated/backup/getProjectBackupSchedule.d.ts +16 -0
  296. package/dist/esm/generated/backup/getProjectBackupSchedule.js +25 -0
  297. package/dist/esm/generated/backup/listProjectBackupSchedules.d.ts +13 -0
  298. package/dist/esm/generated/backup/listProjectBackupSchedules.js +24 -0
  299. package/dist/esm/generated/backup/listProjectBackups.d.ts +13 -0
  300. package/dist/esm/generated/backup/listProjectBackups.js +24 -0
  301. package/dist/esm/generated/contract/getBaseItemOfContract.d.ts +14 -0
  302. package/dist/esm/generated/contract/getBaseItemOfContract.js +24 -0
  303. package/dist/esm/generated/contract/getDetailOfContract.d.ts +16 -0
  304. package/dist/esm/generated/contract/getDetailOfContract.js +25 -0
  305. package/dist/esm/generated/contract/getDetailOfContractByDomain.d.ts +14 -0
  306. package/dist/esm/generated/contract/getDetailOfContractByDomain.js +24 -0
  307. package/dist/esm/generated/contract/getDetailOfContractByProject.d.ts +14 -0
  308. package/dist/esm/generated/contract/getDetailOfContractByProject.js +24 -0
  309. package/dist/esm/generated/contract/getDetailOfContractByServer.d.ts +14 -0
  310. package/dist/esm/generated/contract/getDetailOfContractByServer.js +24 -0
  311. package/dist/esm/generated/contract/getDetailOfContractItem.d.ts +16 -0
  312. package/dist/esm/generated/contract/getDetailOfContractItem.js +29 -0
  313. package/dist/esm/generated/contract/getNextTerminationDateForItem.d.ts +15 -0
  314. package/dist/esm/generated/contract/getNextTerminationDateForItem.js +28 -0
  315. package/dist/esm/generated/contract/invoiceDetailOfInvoice.d.ts +16 -0
  316. package/dist/esm/generated/contract/invoiceDetailOfInvoice.js +29 -0
  317. package/dist/esm/generated/contract/invoiceGetDetailOfInvoiceSettings.d.ts +14 -0
  318. package/dist/esm/generated/contract/invoiceGetDetailOfInvoiceSettings.js +24 -0
  319. package/dist/esm/generated/contract/invoiceListCustomerInvoices.d.ts +13 -0
  320. package/dist/esm/generated/contract/invoiceListCustomerInvoices.js +24 -0
  321. package/dist/esm/generated/contract/listContracts.d.ts +13 -0
  322. package/dist/esm/generated/contract/listContracts.js +24 -0
  323. package/dist/esm/generated/contract/orderGetOrder.d.ts +16 -0
  324. package/dist/esm/generated/contract/orderGetOrder.js +25 -0
  325. package/dist/esm/generated/contract/orderListCustomerOrders.d.ts +13 -0
  326. package/dist/esm/generated/contract/orderListCustomerOrders.js +24 -0
  327. package/dist/esm/generated/contract/orderListProjectOrders.d.ts +13 -0
  328. package/dist/esm/generated/contract/orderListProjectOrders.js +24 -0
  329. package/dist/esm/generated/conversation/getCategory.d.ts +16 -0
  330. package/dist/esm/generated/conversation/getCategory.js +25 -0
  331. package/dist/esm/generated/conversation/getConversation.d.ts +16 -0
  332. package/dist/esm/generated/conversation/getConversation.js +25 -0
  333. package/dist/esm/generated/conversation/listCategories.d.ts +13 -0
  334. package/dist/esm/generated/conversation/listCategories.js +17 -0
  335. package/dist/esm/generated/conversation/listConversations.d.ts +13 -0
  336. package/dist/esm/generated/conversation/listConversations.js +17 -0
  337. package/dist/esm/generated/conversation/listMessagesByConversation.d.ts +13 -0
  338. package/dist/esm/generated/conversation/listMessagesByConversation.js +24 -0
  339. package/dist/esm/generated/cronjob/getCronjob.d.ts +16 -0
  340. package/dist/esm/generated/cronjob/getCronjob.js +25 -0
  341. package/dist/esm/generated/cronjob/getExecution.d.ts +16 -0
  342. package/dist/esm/generated/cronjob/getExecution.js +29 -0
  343. package/dist/esm/generated/cronjob/listCronjobs.d.ts +13 -0
  344. package/dist/esm/generated/cronjob/listCronjobs.js +24 -0
  345. package/dist/esm/generated/cronjob/listExecutions.d.ts +13 -0
  346. package/dist/esm/generated/cronjob/listExecutions.js +24 -0
  347. package/dist/esm/generated/customer/getCustomer.d.ts +16 -0
  348. package/dist/esm/generated/customer/getCustomer.js +25 -0
  349. package/dist/esm/generated/customer/getCustomerCategory.d.ts +16 -0
  350. package/dist/esm/generated/customer/getCustomerCategory.js +25 -0
  351. package/dist/esm/generated/customer/getCustomerInvite.d.ts +16 -0
  352. package/dist/esm/generated/customer/getCustomerInvite.js +25 -0
  353. package/dist/esm/generated/customer/getCustomerMembership.d.ts +16 -0
  354. package/dist/esm/generated/customer/getCustomerMembership.js +25 -0
  355. package/dist/esm/generated/customer/getCustomerTokenInvite.d.ts +14 -0
  356. package/dist/esm/generated/customer/getCustomerTokenInvite.js +16 -0
  357. package/dist/esm/generated/customer/isCustomerLegallyCompetent.d.ts +14 -0
  358. package/dist/esm/generated/customer/isCustomerLegallyCompetent.js +24 -0
  359. package/dist/esm/generated/customer/listCustomerInvites.d.ts +13 -0
  360. package/dist/esm/generated/customer/listCustomerInvites.js +17 -0
  361. package/dist/esm/generated/customer/listCustomerMemberships.d.ts +13 -0
  362. package/dist/esm/generated/customer/listCustomerMemberships.js +17 -0
  363. package/dist/esm/generated/customer/listCustomers.d.ts +13 -0
  364. package/dist/esm/generated/customer/listCustomers.js +17 -0
  365. package/dist/esm/generated/customer/listInvitesForCustomer.d.ts +13 -0
  366. package/dist/esm/generated/customer/listInvitesForCustomer.js +24 -0
  367. package/dist/esm/generated/customer/listMembershipsForCustomer.d.ts +13 -0
  368. package/dist/esm/generated/customer/listMembershipsForCustomer.js +24 -0
  369. package/dist/esm/generated/customer/listOfCustomerCategories.d.ts +13 -0
  370. package/dist/esm/generated/customer/listOfCustomerCategories.js +17 -0
  371. package/dist/esm/generated/database/getMysqlDatabase.d.ts +16 -0
  372. package/dist/esm/generated/database/getMysqlDatabase.js +25 -0
  373. package/dist/esm/generated/database/getMysqlUser.d.ts +16 -0
  374. package/dist/esm/generated/database/getMysqlUser.js +25 -0
  375. package/dist/esm/generated/database/getMysqlUserPhpMyAdminUrl.d.ts +14 -0
  376. package/dist/esm/generated/database/getMysqlUserPhpMyAdminUrl.js +24 -0
  377. package/dist/esm/generated/database/getRedisDatabase.d.ts +16 -0
  378. package/dist/esm/generated/database/getRedisDatabase.js +25 -0
  379. package/dist/esm/generated/database/listMysqlCharsets.d.ts +13 -0
  380. package/dist/esm/generated/database/listMysqlCharsets.js +17 -0
  381. package/dist/esm/generated/database/listMysqlDatabases.d.ts +13 -0
  382. package/dist/esm/generated/database/listMysqlDatabases.js +24 -0
  383. package/dist/esm/generated/database/listMysqlUsers.d.ts +13 -0
  384. package/dist/esm/generated/database/listMysqlUsers.js +24 -0
  385. package/dist/esm/generated/database/listMysqlVersions.d.ts +13 -0
  386. package/dist/esm/generated/database/listMysqlVersions.js +17 -0
  387. package/dist/esm/generated/database/listRedisDatabases.d.ts +13 -0
  388. package/dist/esm/generated/database/listRedisDatabases.js +24 -0
  389. package/dist/esm/generated/database/listRedisVersions.d.ts +13 -0
  390. package/dist/esm/generated/database/listRedisVersions.js +17 -0
  391. package/dist/esm/generated/domain/dnsZoneGetSpecific.d.ts +16 -0
  392. package/dist/esm/generated/domain/dnsZoneGetSpecific.js +25 -0
  393. package/dist/esm/generated/domain/dnsZonesForProject.d.ts +14 -0
  394. package/dist/esm/generated/domain/dnsZonesForProject.js +24 -0
  395. package/dist/esm/generated/domain/getDomain.d.ts +16 -0
  396. package/dist/esm/generated/domain/getDomain.js +25 -0
  397. package/dist/esm/generated/domain/getHandleFields.d.ts +16 -0
  398. package/dist/esm/generated/domain/getHandleFields.js +25 -0
  399. package/dist/esm/generated/domain/getSpecificDomainOwnership.d.ts +16 -0
  400. package/dist/esm/generated/domain/getSpecificDomainOwnership.js +25 -0
  401. package/dist/esm/generated/domain/getToplevelDomain.d.ts +16 -0
  402. package/dist/esm/generated/domain/getToplevelDomain.js +25 -0
  403. package/dist/esm/generated/domain/ingressGetSpecific.d.ts +16 -0
  404. package/dist/esm/generated/domain/ingressGetSpecific.js +25 -0
  405. package/dist/esm/generated/domain/ingressListAccessible.d.ts +13 -0
  406. package/dist/esm/generated/domain/ingressListAccessible.js +17 -0
  407. package/dist/esm/generated/domain/ingressListForProject.d.ts +13 -0
  408. package/dist/esm/generated/domain/ingressListForProject.js +24 -0
  409. package/dist/esm/generated/domain/listDomainOwnerships.d.ts +13 -0
  410. package/dist/esm/generated/domain/listDomainOwnerships.js +24 -0
  411. package/dist/esm/generated/domain/listDomains.d.ts +13 -0
  412. package/dist/esm/generated/domain/listDomains.js +24 -0
  413. package/dist/esm/generated/domain/listToplevelDomains.d.ts +13 -0
  414. package/dist/esm/generated/domain/listToplevelDomains.js +17 -0
  415. package/dist/esm/generated/file/getFile.d.ts +16 -0
  416. package/dist/esm/generated/file/getFile.js +25 -0
  417. package/dist/esm/generated/file/getFileMeta.d.ts +14 -0
  418. package/dist/esm/generated/file/getFileMeta.js +24 -0
  419. package/dist/esm/generated/file/getFileTokenRules.d.ts +16 -0
  420. package/dist/esm/generated/file/getFileTokenRules.js +25 -0
  421. package/dist/esm/generated/file/getFileTypeRules.d.ts +16 -0
  422. package/dist/esm/generated/file/getFileTypeRules.js +25 -0
  423. package/dist/esm/generated/mail/deliveryboxGetSpecific.d.ts +16 -0
  424. package/dist/esm/generated/mail/deliveryboxGetSpecific.js +25 -0
  425. package/dist/esm/generated/mail/deliveryboxList.d.ts +13 -0
  426. package/dist/esm/generated/mail/deliveryboxList.js +24 -0
  427. package/dist/esm/generated/mail/mailaddressGetSpecific.d.ts +16 -0
  428. package/dist/esm/generated/mail/mailaddressGetSpecific.js +25 -0
  429. package/dist/esm/generated/mail/mailaddressList.d.ts +13 -0
  430. package/dist/esm/generated/mail/mailaddressList.js +24 -0
  431. package/dist/esm/generated/mail/projectsettingGetSpecific.d.ts +14 -0
  432. package/dist/esm/generated/mail/projectsettingGetSpecific.js +24 -0
  433. package/dist/esm/generated/notification/newsletterGetInfo.d.ts +14 -0
  434. package/dist/esm/generated/notification/newsletterGetInfo.js +16 -0
  435. package/dist/esm/generated/notification/scountUnreadNotifications.d.ts +14 -0
  436. package/dist/esm/generated/notification/scountUnreadNotifications.js +16 -0
  437. package/dist/esm/generated/notification/slistNotifications.d.ts +13 -0
  438. package/dist/esm/generated/notification/slistNotifications.js +17 -0
  439. package/dist/esm/generated/project/getProject.d.ts +16 -0
  440. package/dist/esm/generated/project/getProject.js +25 -0
  441. package/dist/esm/generated/project/getProjectInvite.d.ts +16 -0
  442. package/dist/esm/generated/project/getProjectInvite.js +25 -0
  443. package/dist/esm/generated/project/getProjectMembership.d.ts +16 -0
  444. package/dist/esm/generated/project/getProjectMembership.js +25 -0
  445. package/dist/esm/generated/project/getProjectTokenInvite.d.ts +14 -0
  446. package/dist/esm/generated/project/getProjectTokenInvite.js +16 -0
  447. package/dist/esm/generated/project/getSelfMembershipForProject.d.ts +14 -0
  448. package/dist/esm/generated/project/getSelfMembershipForProject.js +24 -0
  449. package/dist/esm/generated/project/getServer.d.ts +16 -0
  450. package/dist/esm/generated/project/getServer.js +25 -0
  451. package/dist/esm/generated/project/listInvitesForProject.d.ts +13 -0
  452. package/dist/esm/generated/project/listInvitesForProject.js +24 -0
  453. package/dist/esm/generated/project/listMembershipsForProject.d.ts +13 -0
  454. package/dist/esm/generated/project/listMembershipsForProject.js +24 -0
  455. package/dist/esm/generated/project/listProjectInvites.d.ts +13 -0
  456. package/dist/esm/generated/project/listProjectInvites.js +17 -0
  457. package/dist/esm/generated/project/listProjectMemberships.d.ts +13 -0
  458. package/dist/esm/generated/project/listProjectMemberships.js +17 -0
  459. package/dist/esm/generated/project/listProjects.d.ts +13 -0
  460. package/dist/esm/generated/project/listProjects.js +17 -0
  461. package/dist/esm/generated/project/listServers.d.ts +13 -0
  462. package/dist/esm/generated/project/listServers.js +17 -0
  463. package/dist/esm/generated/projectFileSystem/getDirectories.d.ts +14 -0
  464. package/dist/esm/generated/projectFileSystem/getDirectories.js +24 -0
  465. package/dist/esm/generated/projectFileSystem/getDiskUsage.d.ts +14 -0
  466. package/dist/esm/generated/projectFileSystem/getDiskUsage.js +24 -0
  467. package/dist/esm/generated/projectFileSystem/getFileContent.d.ts +14 -0
  468. package/dist/esm/generated/projectFileSystem/getFileContent.js +24 -0
  469. package/dist/esm/generated/projectFileSystem/getJwt.d.ts +14 -0
  470. package/dist/esm/generated/projectFileSystem/getJwt.js +24 -0
  471. package/dist/esm/generated/projectFileSystem/listFiles.d.ts +13 -0
  472. package/dist/esm/generated/projectFileSystem/listFiles.js +24 -0
  473. package/dist/esm/generated/sshsftpUser/sftpUserGetSftpUser.d.ts +16 -0
  474. package/dist/esm/generated/sshsftpUser/sftpUserGetSftpUser.js +25 -0
  475. package/dist/esm/generated/sshsftpUser/sftpUserListSftpUsers.d.ts +13 -0
  476. package/dist/esm/generated/sshsftpUser/sftpUserListSftpUsers.js +24 -0
  477. package/dist/esm/generated/sshsftpUser/sshUserGetSshUser.d.ts +16 -0
  478. package/dist/esm/generated/sshsftpUser/sshUserGetSshUser.js +25 -0
  479. package/dist/esm/generated/sshsftpUser/sshUserListSshUsers.d.ts +13 -0
  480. package/dist/esm/generated/sshsftpUser/sshUserListSshUsers.js +24 -0
  481. package/dist/esm/generated/user/getApiToken.d.ts +16 -0
  482. package/dist/esm/generated/user/getApiToken.js +25 -0
  483. package/dist/esm/generated/user/getEmail.d.ts +14 -0
  484. package/dist/esm/generated/user/getEmail.js +16 -0
  485. package/dist/esm/generated/user/getMfaStatus.d.ts +14 -0
  486. package/dist/esm/generated/user/getMfaStatus.js +16 -0
  487. package/dist/esm/generated/user/getOwnProfile.d.ts +14 -0
  488. package/dist/esm/generated/user/getOwnProfile.js +16 -0
  489. package/dist/esm/generated/user/getPasswordUpdatedAt.d.ts +14 -0
  490. package/dist/esm/generated/user/getPasswordUpdatedAt.js +16 -0
  491. package/dist/esm/generated/user/getPersonalizedSettings.d.ts +14 -0
  492. package/dist/esm/generated/user/getPersonalizedSettings.js +24 -0
  493. package/dist/esm/generated/user/getSession.d.ts +16 -0
  494. package/dist/esm/generated/user/getSession.js +25 -0
  495. package/dist/esm/generated/user/getSshKey.d.ts +16 -0
  496. package/dist/esm/generated/user/getSshKey.js +25 -0
  497. package/dist/esm/generated/user/getUser.d.ts +14 -0
  498. package/dist/esm/generated/user/getUser.js +16 -0
  499. package/dist/esm/generated/user/listApiTokens.d.ts +13 -0
  500. package/dist/esm/generated/user/listApiTokens.js +17 -0
  501. package/dist/esm/generated/user/listFeedback.d.ts +13 -0
  502. package/dist/esm/generated/user/listFeedback.js +24 -0
  503. package/dist/esm/generated/user/listSessions.d.ts +13 -0
  504. package/dist/esm/generated/user/listSessions.js +17 -0
  505. package/dist/esm/generated/user/listSshKeys.d.ts +13 -0
  506. package/dist/esm/generated/user/listSshKeys.js +17 -0
  507. package/dist/esm/generated/user/supportCodeRequest.d.ts +14 -0
  508. package/dist/esm/generated/user/supportCodeRequest.js +16 -0
  509. package/dist/esm/lib/conversation/message_input.d.ts +10 -0
  510. package/dist/esm/lib/conversation/message_input.js +49 -0
  511. package/dist/esm/lib/handleError.d.ts +4 -0
  512. package/dist/esm/lib/handleError.js +17 -0
  513. package/dist/esm/lib/mergeObjects.d.ts +1 -0
  514. package/dist/esm/lib/mergeObjects.js +6 -0
  515. package/dist/esm/lib/notify.d.ts +2 -0
  516. package/dist/esm/lib/notify.js +5 -0
  517. package/dist/esm/lib/viewhelpers/date.d.ts +4 -0
  518. package/dist/esm/lib/viewhelpers/date.js +16 -0
  519. package/dist/esm/lib/viewhelpers/size.d.ts +1 -0
  520. package/dist/esm/lib/viewhelpers/size.js +4 -0
  521. package/dist/esm/lib/viewhelpers/tui.d.ts +2 -0
  522. package/dist/esm/lib/viewhelpers/tui.js +13 -0
  523. package/dist/esm/rendering/oclif/components/table.d.ts +11 -0
  524. package/dist/esm/rendering/oclif/components/table.js +49 -0
  525. package/dist/esm/rendering/react/RenderBaseCommand.d.ts +7 -0
  526. package/dist/esm/rendering/react/RenderBaseCommand.js +13 -0
  527. package/dist/esm/rendering/react/components/ConversationMessage.d.ts +8 -0
  528. package/dist/esm/rendering/react/components/ConversationMessage.js +12 -0
  529. package/dist/esm/rendering/react/components/ConversationMeta.d.ts +6 -0
  530. package/dist/esm/rendering/react/components/ConversationMeta.js +21 -0
  531. package/dist/esm/rendering/react/components/ConversationStatusUpdate.d.ts +8 -0
  532. package/dist/esm/rendering/react/components/ConversationStatusUpdate.js +6 -0
  533. package/dist/esm/rendering/react/components/Header.d.ts +6 -0
  534. package/dist/esm/rendering/react/components/Header.js +6 -0
  535. package/dist/esm/rendering/react/components/Table.d.ts +7 -0
  536. package/dist/esm/rendering/react/components/Table.js +4 -0
  537. package/dist/esm/rendering/react/context.d.ts +8 -0
  538. package/dist/esm/rendering/react/context.js +4 -0
  539. package/dist/esm/rendering/react/hooks/useMyUserProfile.d.ts +2 -0
  540. package/dist/esm/rendering/react/hooks/useMyUserProfile.js +11 -0
  541. package/dist/esm/rendering/setup/FlagSupportedSetup.d.ts +13 -0
  542. package/dist/esm/rendering/setup/FlagSupportedSetup.js +22 -0
  543. package/dist/esm/rendering/setup/TableRenderSetup.d.ts +13 -0
  544. package/dist/esm/rendering/setup/TableRenderSetup.js +11 -0
  545. package/dist/esm/rendering/setup/usePromiseSetup.d.ts +11 -0
  546. package/dist/esm/rendering/setup/usePromiseSetup.js +11 -0
  547. package/dist/esm/types.d.ts +8 -0
  548. package/dist/esm/types.js +1 -0
  549. package/package.json +126 -0
@@ -0,0 +1,24 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
+ import { GeneratedSftpUserListSftpUsers } from "../../../generated/sshsftpUser/sftpUserListSftpUsers.js";
5
+ import { normalizeProjectIdToUuid } from "../../../Helpers.js";
6
+ export default class List extends GeneratedSftpUserListSftpUsers {
7
+ mapData(data) {
8
+ return data;
9
+ }
10
+ async mapParams(input) {
11
+ input.projectId = await normalizeProjectIdToUuid(this.apiClient, input.projectId);
12
+ return super.mapParams(input);
13
+ }
14
+ getColumns(data) {
15
+ const baseColumns = super.getColumns(data);
16
+ return {
17
+ id: baseColumns.id,
18
+ userName: { header: "Username" },
19
+ description: {},
20
+ active: {},
21
+ createdAt: baseColumns.createdAt,
22
+ };
23
+ }
24
+ }
@@ -0,0 +1,13 @@
1
+ import { GeneratedSshUserListSshUsers, PathParams } from "../../../generated/sshsftpUser/sshUserListSshUsers.js";
2
+ import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
3
+ import { Simplify } from "@mittwald/api-client-commons";
4
+ import { SuccessfulResponse } from "../../../types.js";
5
+ import { ListColumns } from "../../../Formatter.js";
6
+ type SshUserResponse = Awaited<ReturnType<MittwaldAPIV2Client["sshsftpUser"]["sftpUserListSftpUsers"]>>;
7
+ type SshUserResponseItem = Simplify<MittwaldAPIV2.Paths.V2ProjectsProjectIdSftpUsers.Get.Responses.$200.Content.ApplicationJson[number]>;
8
+ export default class Get extends GeneratedSshUserListSshUsers<SshUserResponseItem> {
9
+ protected mapData(data: SuccessfulResponse<SshUserResponse, 200>["data"]): SshUserResponseItem[];
10
+ protected mapParams(input: PathParams): Promise<PathParams>;
11
+ protected getColumns(data: SshUserResponseItem[]): ListColumns<SshUserResponseItem>;
12
+ }
13
+ export {};
@@ -0,0 +1,24 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
+ import { GeneratedSshUserListSshUsers } from "../../../generated/sshsftpUser/sshUserListSshUsers.js";
5
+ import { normalizeProjectIdToUuid } from "../../../Helpers.js";
6
+ export default class Get extends GeneratedSshUserListSshUsers {
7
+ mapData(data) {
8
+ return data;
9
+ }
10
+ async mapParams(input) {
11
+ input.projectId = await normalizeProjectIdToUuid(this.apiClient, input.projectId);
12
+ return super.mapParams(input);
13
+ }
14
+ getColumns(data) {
15
+ const baseColumns = super.getColumns(data);
16
+ return {
17
+ id: baseColumns.id,
18
+ userName: { header: "Username" },
19
+ description: {},
20
+ active: {},
21
+ createdAt: baseColumns.createdAt,
22
+ };
23
+ }
24
+ }
@@ -0,0 +1,8 @@
1
+ import { BaseCommand } from "../../BaseCommand.js";
2
+ export default class Ssh extends BaseCommand<typeof Ssh> {
3
+ static description: string;
4
+ static args: {
5
+ id: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
6
+ };
7
+ run(): Promise<void>;
8
+ }
@@ -0,0 +1,31 @@
1
+ import { Args } from "@oclif/core";
2
+ import { BaseCommand } from "../../BaseCommand.js";
3
+ import { assertStatus } from "@mittwald/api-client-commons";
4
+ import * as child_process from "child_process";
5
+ export default class Ssh extends BaseCommand {
6
+ static description = "Connect to a project via SSH";
7
+ static args = {
8
+ id: Args.string({
9
+ required: true,
10
+ description: "ID of the Project to be retrieved.",
11
+ }),
12
+ };
13
+ async run() {
14
+ const { args } = await this.parse(Ssh);
15
+ const { id } = args;
16
+ const projectResponse = await this.apiClient.project.getProject({
17
+ pathParameters: { id },
18
+ });
19
+ const userResponse = await this.apiClient.user.getOwnProfile({
20
+ data: {},
21
+ });
22
+ assertStatus(projectResponse, 200);
23
+ assertStatus(userResponse, 200);
24
+ const sshHost = `ssh.${projectResponse.data.clusterID}.${projectResponse.data.clusterDomain}`;
25
+ const sshUser = `${userResponse.data.email}@${projectResponse.data.shortId}`;
26
+ this.log("connecting to %o as %o", sshHost, sshUser);
27
+ child_process.spawnSync("/usr/bin/ssh", ["-l", sshUser, sshHost], {
28
+ stdio: "inherit",
29
+ });
30
+ }
31
+ }
@@ -0,0 +1,8 @@
1
+ import { BaseCommand } from "../../BaseCommand.js";
2
+ export default class Update extends BaseCommand<typeof Update> {
3
+ static description: string;
4
+ static args: {
5
+ id: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
6
+ };
7
+ run(): Promise<void>;
8
+ }
@@ -0,0 +1,15 @@
1
+ import { Args } from "@oclif/core";
2
+ import { BaseCommand } from "../../BaseCommand.js";
3
+ export default class Update extends BaseCommand {
4
+ static description = "Updates a project";
5
+ static args = {
6
+ id: Args.string({
7
+ required: true,
8
+ description: "ID of the Project to be retrieved.",
9
+ }),
10
+ };
11
+ async run() {
12
+ const { args, flags } = await this.parse(Update);
13
+ console.log(args, flags);
14
+ }
15
+ }
@@ -0,0 +1,3 @@
1
+ import { GeneratedProjectGetServer } from "../../generated/project/getServer.js";
2
+ export default class Get extends GeneratedProjectGetServer {
3
+ }
@@ -0,0 +1,6 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
+ import { GeneratedProjectGetServer } from "../../generated/project/getServer.js";
5
+ export default class Get extends GeneratedProjectGetServer {
6
+ }
@@ -0,0 +1,11 @@
1
+ import { Simplify } from "@mittwald/api-client-commons";
2
+ import { MittwaldAPIV2 } from "@mittwald/api-client";
3
+ import { SuccessfulResponse } from "../../types.js";
4
+ import { GeneratedProjectListServers, Response } from "../../generated/project/listServers.js";
5
+ import { ListColumns } from "../../Formatter.js";
6
+ type ResponseItem = Simplify<MittwaldAPIV2.Paths.V2Servers.Get.Responses.$200.Content.ApplicationJson[number]>;
7
+ export default class List extends GeneratedProjectListServers<ResponseItem> {
8
+ protected mapData(data: SuccessfulResponse<Response, 200>["data"]): MittwaldAPIV2.Components.Schemas.ProjectServer[];
9
+ protected getColumns(ignoredData: ResponseItem[]): ListColumns<ResponseItem>;
10
+ }
11
+ export {};
@@ -0,0 +1,41 @@
1
+ import { GeneratedProjectListServers, } from "../../generated/project/listServers.js";
2
+ export default class List extends GeneratedProjectListServers {
3
+ mapData(data) {
4
+ return data;
5
+ }
6
+ getColumns(ignoredData) {
7
+ const baseColumns = super.getColumns(ignoredData);
8
+ return {
9
+ id: baseColumns.id,
10
+ shortId: baseColumns.shortId,
11
+ customerId: {
12
+ header: "Customer ID",
13
+ extended: true,
14
+ },
15
+ description: {
16
+ header: "Description",
17
+ },
18
+ status: {
19
+ header: "Status",
20
+ get: (row) => {
21
+ if (!row.isReady) {
22
+ return "disabled";
23
+ }
24
+ return row.readiness;
25
+ },
26
+ },
27
+ machineTypeName: {
28
+ header: "Machine type",
29
+ get: (row) => row.machineType.name,
30
+ },
31
+ machineTypeCpu: {
32
+ header: "CPUs",
33
+ get: (row) => row.machineType.cpu,
34
+ },
35
+ machineTypeMemory: {
36
+ header: "Memory",
37
+ get: (row) => row.machineType.memory,
38
+ },
39
+ };
40
+ }
41
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseCommand } from "../../../BaseCommand.js";
2
+ export default class Create extends BaseCommand<typeof Create> {
3
+ static description: string;
4
+ static flags: {
5
+ description: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
6
+ "expires-in": import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
7
+ roles: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string[], import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
8
+ };
9
+ private determineExpiration;
10
+ run(): Promise<void>;
11
+ }
@@ -0,0 +1,46 @@
1
+ import { Flags, ux } from "@oclif/core";
2
+ import { BaseCommand } from "../../../BaseCommand.js";
3
+ import { assertStatus } from "@mittwald/api-client-commons";
4
+ import parseDuration from "parse-duration";
5
+ export default class Create extends BaseCommand {
6
+ static description = "Create a new API token";
7
+ static flags = {
8
+ description: Flags.string({
9
+ description: "Description of the API token",
10
+ required: true,
11
+ }),
12
+ "expires-in": Flags.string({
13
+ description: "Expiration interval of the API token (example: 30d)",
14
+ }),
15
+ roles: Flags.string({
16
+ description: "Roles of the API token",
17
+ required: true,
18
+ multiple: true,
19
+ options: ["api_read", "api_write"],
20
+ }),
21
+ };
22
+ determineExpiration(input) {
23
+ if (input === undefined) {
24
+ return undefined;
25
+ }
26
+ const duration = parseDuration(input);
27
+ if (duration === undefined) {
28
+ throw new Error(`Could not parse duration ${input}`);
29
+ }
30
+ return new Date(Date.now() + duration);
31
+ }
32
+ async run() {
33
+ const { flags, args } = await this.parse(Create);
34
+ const expiresAt = this.determineExpiration(flags["expires-in"]);
35
+ ux.action.start("creating API token");
36
+ const response = await this.apiClient.user.createApiToken({
37
+ data: {
38
+ description: flags.description,
39
+ expiresAt: expiresAt?.toJSON(),
40
+ roles: flags.roles,
41
+ },
42
+ });
43
+ assertStatus(response, 201);
44
+ ux.action.stop();
45
+ }
46
+ }
@@ -0,0 +1,3 @@
1
+ import { GeneratedUserGetApiToken } from "../../../generated/user/getApiToken.js";
2
+ export default class Get extends GeneratedUserGetApiToken {
3
+ }
@@ -0,0 +1,6 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
+ import { GeneratedUserGetApiToken } from "../../../generated/user/getApiToken.js";
5
+ export default class Get extends GeneratedUserGetApiToken {
6
+ }
@@ -0,0 +1,11 @@
1
+ import { Simplify } from "@mittwald/api-client-commons";
2
+ import { MittwaldAPIV2 } from "@mittwald/api-client";
3
+ import { SuccessfulResponse } from "../../../types.js";
4
+ import { GeneratedUserListApiTokens, Response } from "../../../generated/user/listApiTokens.js";
5
+ import { ListColumns } from "../../../Formatter.js";
6
+ type ResponseItem = Simplify<MittwaldAPIV2.Paths.V2SignupTokenApi.Get.Responses.$200.Content.ApplicationJson[number]>;
7
+ export default class List extends GeneratedUserListApiTokens<ResponseItem> {
8
+ protected mapData(data: SuccessfulResponse<Response, 200>["data"]): MittwaldAPIV2.Components.Schemas.SignupApiToken[];
9
+ protected getColumns(): ListColumns<ResponseItem>;
10
+ }
11
+ export {};
@@ -0,0 +1,21 @@
1
+ import { GeneratedUserListApiTokens, } from "../../../generated/user/listApiTokens.js";
2
+ import { formatCreatedAt, formatDate } from "../../../lib/viewhelpers/date.js";
3
+ export default class List extends GeneratedUserListApiTokens {
4
+ mapData(data) {
5
+ return data;
6
+ }
7
+ getColumns() {
8
+ return {
9
+ apiTokenId: { header: "ID", minWidth: 36 },
10
+ description: {},
11
+ createdAt: {
12
+ header: "Created at",
13
+ get: formatCreatedAt,
14
+ },
15
+ expiresAt: {
16
+ header: "Expires at",
17
+ get: (r) => r.expiresAt ? formatDate(new Date(`${r.expiresAt}`)) : "never",
18
+ },
19
+ };
20
+ }
21
+ }
@@ -0,0 +1,8 @@
1
+ import { BaseCommand } from "../../../BaseCommand.js";
2
+ export default class Revoke extends BaseCommand<typeof Revoke> {
3
+ static description: string;
4
+ static args: {
5
+ id: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
6
+ };
7
+ run(): Promise<void>;
8
+ }
@@ -0,0 +1,21 @@
1
+ import { Args, ux } from "@oclif/core";
2
+ import { BaseCommand } from "../../../BaseCommand.js";
3
+ import { assertStatus } from "@mittwald/api-client-commons";
4
+ export default class Revoke extends BaseCommand {
5
+ static description = "Revoke an API token";
6
+ static args = {
7
+ id: Args.string({
8
+ description: "ID of the API token to revoke",
9
+ required: true,
10
+ }),
11
+ };
12
+ async run() {
13
+ const { args } = await this.parse(Revoke);
14
+ ux.action.start(`revoking API token ${args.id}`);
15
+ const response = await this.apiClient.user.deleteApiToken({
16
+ pathParameters: { apiTokenId: args.id },
17
+ });
18
+ assertStatus(response, 200);
19
+ ux.action.stop();
20
+ }
21
+ }
@@ -0,0 +1,3 @@
1
+ import { GeneratedUserGetUser } from "../../generated/user/getUser.js";
2
+ export default class Get extends GeneratedUserGetUser {
3
+ }
@@ -0,0 +1,6 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
+ import { GeneratedUserGetUser } from "../../generated/user/getUser.js";
5
+ export default class Get extends GeneratedUserGetUser {
6
+ }
@@ -0,0 +1,3 @@
1
+ import { GeneratedUserGetSession } from "../../../generated/user/getSession.js";
2
+ export default class Get extends GeneratedUserGetSession {
3
+ }
@@ -0,0 +1,6 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
+ import { GeneratedUserGetSession } from "../../../generated/user/getSession.js";
5
+ export default class Get extends GeneratedUserGetSession {
6
+ }
@@ -0,0 +1,11 @@
1
+ import { Simplify } from "@mittwald/api-client-commons";
2
+ import { MittwaldAPIV2 } from "@mittwald/api-client";
3
+ import { SuccessfulResponse } from "../../../types.js";
4
+ import { GeneratedUserListSessions, Response } from "../../../generated/user/listSessions.js";
5
+ import { ListColumns } from "../../../Formatter.js";
6
+ type ResponseItem = Simplify<MittwaldAPIV2.Paths.V2SignupSessions.Get.Responses.$200.Content.ApplicationJson[number]>;
7
+ export default class List extends GeneratedUserListSessions<ResponseItem> {
8
+ protected mapData(data: SuccessfulResponse<Response, 200>["data"]): MittwaldAPIV2.Components.Schemas.SignupUserSession[];
9
+ protected getColumns(): ListColumns<ResponseItem>;
10
+ }
11
+ export {};
@@ -0,0 +1,24 @@
1
+ import { GeneratedUserListSessions, } from "../../../generated/user/listSessions.js";
2
+ import { formatDate } from "../../../lib/viewhelpers/date.js";
3
+ export default class List extends GeneratedUserListSessions {
4
+ mapData(data) {
5
+ return data;
6
+ }
7
+ getColumns() {
8
+ return {
9
+ tokenId: { header: "ID", minWidth: 36 },
10
+ device: {
11
+ header: "Device",
12
+ get: (row) => `${row.device.browser} on ${row.device.os}`,
13
+ },
14
+ location: {
15
+ header: "Location",
16
+ get: (row) => row.location?.country,
17
+ },
18
+ lastAccess: {
19
+ header: "Last Access",
20
+ get: (row) => row.lastAccess ? formatDate(new Date(`${row.lastAccess}`)) : "never",
21
+ },
22
+ };
23
+ }
24
+ }
@@ -0,0 +1,10 @@
1
+ import { BaseCommand } from "../../../BaseCommand.js";
2
+ export default class Create extends BaseCommand<typeof Create> {
3
+ static description: string;
4
+ static flags: {
5
+ "no-passphrase": import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
6
+ comment: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
7
+ expiresAt: import("@oclif/core/lib/interfaces/parser.js").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser.js").CustomOptions>;
8
+ };
9
+ run(): Promise<void>;
10
+ }
@@ -0,0 +1,60 @@
1
+ import { Flags, ux } from "@oclif/core";
2
+ import { assertStatus } from "@mittwald/api-client-commons";
3
+ import { BaseCommand } from "../../../BaseCommand.js";
4
+ import * as cp from "child_process";
5
+ import * as path from "path";
6
+ import * as os from "os";
7
+ import * as fs from "fs/promises";
8
+ import parseDuration from "parse-duration";
9
+ export default class Create extends BaseCommand {
10
+ static description = "Create and import a new SSH key";
11
+ static flags = {
12
+ "no-passphrase": Flags.boolean({
13
+ description: "Use this flag to not set a passphrase for the SSH key.",
14
+ }),
15
+ comment: Flags.string({
16
+ description: "A comment for the SSH key.",
17
+ }),
18
+ expiresAt: Flags.string({
19
+ description: "Duration after which the SSH key should expire (example: '1y').",
20
+ }),
21
+ };
22
+ async run() {
23
+ const { flags } = await this.parse(Create);
24
+ const cmd = "ssh-keygen";
25
+ const outputFile = path.join(os.homedir(), ".ssh", "mstudio-cli");
26
+ const args = ["-t", "rsa", "-f", outputFile];
27
+ let expiresAt;
28
+ if (flags["expiresAt"]) {
29
+ const parsedDuration = parseDuration(flags["expiresAt"]);
30
+ if (!parsedDuration) {
31
+ throw new Error("Invalid duration");
32
+ }
33
+ expiresAt = new Date();
34
+ expiresAt.setTime(new Date().getTime() + parsedDuration);
35
+ }
36
+ if (flags["no-passphrase"]) {
37
+ args.push("-N", "");
38
+ }
39
+ else {
40
+ const passphrase = await ux.prompt("enter passphrase for SSH key", {
41
+ type: "hide",
42
+ });
43
+ args.push("-N", passphrase);
44
+ }
45
+ if (flags.comment) {
46
+ args.push("-C", flags.comment);
47
+ }
48
+ cp.spawnSync(cmd, args, { stdio: "inherit" });
49
+ const publicKey = await fs.readFile(outputFile + ".pub", "utf-8");
50
+ ux.action.start("importing SSH key");
51
+ const response = await this.apiClient.user.createSshKey({
52
+ data: {
53
+ publicKey,
54
+ expiresAt: expiresAt?.toJSON(),
55
+ },
56
+ });
57
+ assertStatus(response, 201);
58
+ ux.action.stop();
59
+ }
60
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseCommand } from "../../../BaseCommand.js";
2
+ export default class Delete extends BaseCommand<typeof Delete> {
3
+ static description: string;
4
+ static args: {
5
+ id: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
6
+ };
7
+ static flags: {
8
+ force: import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
9
+ };
10
+ run(): Promise<void>;
11
+ private confirmDeletion;
12
+ }
@@ -0,0 +1,41 @@
1
+ import { Flags, Args, ux } from "@oclif/core";
2
+ import { BaseCommand } from "../../../BaseCommand.js";
3
+ import { assertStatus } from "@mittwald/api-client-commons";
4
+ export default class Delete extends BaseCommand {
5
+ static description = "Delete an SSH key";
6
+ static args = {
7
+ id: Args.string({
8
+ required: true,
9
+ description: "ID of the SSH key to be deleted.",
10
+ }),
11
+ };
12
+ static flags = {
13
+ force: Flags.boolean({
14
+ char: "f",
15
+ description: "delete without prompting for confirmation",
16
+ }),
17
+ };
18
+ async run() {
19
+ const { args, flags } = await this.parse(Delete);
20
+ const { id } = args;
21
+ if (!(await this.confirmDeletion(flags.force))) {
22
+ this.log("aborting.");
23
+ return;
24
+ }
25
+ ux.action.start("deleting SSH key");
26
+ const response = await this.apiClient.user.deleteSshKey({
27
+ pathParameters: { sshKeyId: id },
28
+ });
29
+ assertStatus(response, 200);
30
+ ux.action.stop("deleted");
31
+ }
32
+ async confirmDeletion(force) {
33
+ if (force) {
34
+ return true;
35
+ }
36
+ const promptResult = await ux.prompt("Are you sure you want to delete this SSH key? y/n", {
37
+ type: "single",
38
+ });
39
+ return promptResult === "y";
40
+ }
41
+ }
@@ -0,0 +1,3 @@
1
+ import { GeneratedUserGetSshKey } from "../../../generated/user/getSshKey.js";
2
+ export default class Get extends GeneratedUserGetSshKey {
3
+ }
@@ -0,0 +1,6 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
+ import { GeneratedUserGetSshKey } from "../../../generated/user/getSshKey.js";
5
+ export default class Get extends GeneratedUserGetSshKey {
6
+ }
@@ -0,0 +1,11 @@
1
+ import { Simplify } from "@mittwald/api-client-commons";
2
+ import { MittwaldAPIV2 } from "@mittwald/api-client";
3
+ import { SuccessfulResponse } from "../../../types.js";
4
+ import { GeneratedUserListSshKeys, Response } from "../../../generated/user/listSshKeys.js";
5
+ import { ListColumns } from "../../../Formatter.js";
6
+ type ResponseItem = Simplify<Required<MittwaldAPIV2.Paths.V2SignupSsh.Get.Responses.$200.Content.ApplicationJson>["sshKeys"][number]>;
7
+ export default class List extends GeneratedUserListSshKeys<ResponseItem> {
8
+ protected mapData(data: SuccessfulResponse<Response, 200>["data"]): MittwaldAPIV2.Components.Schemas.SignupSshKey[];
9
+ protected getColumns(): ListColumns<ResponseItem>;
10
+ }
11
+ export {};
@@ -0,0 +1,21 @@
1
+ import { GeneratedUserListSshKeys, } from "../../../generated/user/listSshKeys.js";
2
+ import { formatCreatedAt } from "../../../lib/viewhelpers/date.js";
3
+ export default class List extends GeneratedUserListSshKeys {
4
+ mapData(data) {
5
+ return data.sshKeys ?? [];
6
+ }
7
+ getColumns() {
8
+ return {
9
+ sshKeyId: {
10
+ header: "ID",
11
+ minWidth: 36,
12
+ },
13
+ comment: {},
14
+ fingerprint: {},
15
+ created: {
16
+ header: "Created at",
17
+ get: formatCreatedAt,
18
+ },
19
+ };
20
+ }
21
+ }
@@ -0,0 +1,16 @@
1
+ import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ import { GetBaseCommand } from "../../GetBaseCommand.js";
3
+ export type PathParams = MittwaldAPIV2.Paths.V2AppsAppId.Get.Parameters.Path;
4
+ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["app"]["getApp"]>>;
5
+ export declare abstract class GeneratedAppGetApp extends GetBaseCommand<typeof GeneratedAppGetApp, APIResponse> {
6
+ static description: string;
7
+ static flags: {
8
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
9
+ };
10
+ static args: {
11
+ appId: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
12
+ };
13
+ protected getData(): Promise<APIResponse>;
14
+ protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
15
+ }
16
+ export {};
@@ -0,0 +1,25 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ /* This file is auto-generated with acg (@mittwald/api-code-generator) */
4
+ import { Args } from "@oclif/core";
5
+ import { GetBaseCommand } from "../../GetBaseCommand.js";
6
+ export class GeneratedAppGetApp extends GetBaseCommand {
7
+ static description = "get a specific `App`";
8
+ static flags = {
9
+ ...GetBaseCommand.baseFlags,
10
+ };
11
+ static args = {
12
+ appId: Args.string({
13
+ description: "undefined",
14
+ required: true,
15
+ }),
16
+ };
17
+ async getData() {
18
+ return await this.apiClient.app.getApp({
19
+ pathParameters: await this.mapParams(this.args),
20
+ });
21
+ }
22
+ mapParams(input) {
23
+ return input;
24
+ }
25
+ }
@@ -0,0 +1,16 @@
1
+ import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ import { GetBaseCommand } from "../../GetBaseCommand.js";
3
+ export type PathParams = MittwaldAPIV2.Paths.V2AppinstallationsAppInstallationId.Get.Parameters.Path;
4
+ type APIResponse = Awaited<ReturnType<MittwaldAPIV2Client["app"]["getAppinstallation"]>>;
5
+ export declare abstract class GeneratedAppGetAppinstallation extends GetBaseCommand<typeof GeneratedAppGetAppinstallation, APIResponse> {
6
+ static description: string;
7
+ static flags: {
8
+ [x: string]: import("@oclif/core/lib/interfaces/parser.js").CompletableFlag<any>;
9
+ };
10
+ static args: {
11
+ appInstallationId: import("@oclif/core/lib/interfaces/parser.js").Arg<string, Record<string, unknown>>;
12
+ };
13
+ protected getData(): Promise<APIResponse>;
14
+ protected mapParams(input: PathParams): Promise<PathParams> | PathParams;
15
+ }
16
+ export {};