@synteq/cli 0.1.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 (500) hide show
  1. package/bin/run.js +10 -0
  2. package/dist/api/client.d.ts +167 -0
  3. package/dist/api/client.js +367 -0
  4. package/dist/api/client.js.map +1 -0
  5. package/dist/api/errors.d.ts +16 -0
  6. package/dist/api/errors.js +76 -0
  7. package/dist/api/errors.js.map +1 -0
  8. package/dist/api/factory.d.ts +12 -0
  9. package/dist/api/factory.js +18 -0
  10. package/dist/api/factory.js.map +1 -0
  11. package/dist/api/types.d.ts +738 -0
  12. package/dist/api/types.js +2 -0
  13. package/dist/api/types.js.map +1 -0
  14. package/dist/auth/device-flow.d.ts +8 -0
  15. package/dist/auth/device-flow.js +36 -0
  16. package/dist/auth/device-flow.js.map +1 -0
  17. package/dist/auth/keychain.d.ts +3 -0
  18. package/dist/auth/keychain.js +34 -0
  19. package/dist/auth/keychain.js.map +1 -0
  20. package/dist/auth/logout.d.ts +4 -0
  21. package/dist/auth/logout.js +17 -0
  22. package/dist/auth/logout.js.map +1 -0
  23. package/dist/auth/tokens.d.ts +19 -0
  24. package/dist/auth/tokens.js +56 -0
  25. package/dist/auth/tokens.js.map +1 -0
  26. package/dist/base/command.d.ts +17 -0
  27. package/dist/base/command.js +89 -0
  28. package/dist/base/command.js.map +1 -0
  29. package/dist/commands/account/index.d.ts +5 -0
  30. package/dist/commands/account/index.js +9 -0
  31. package/dist/commands/account/index.js.map +1 -0
  32. package/dist/commands/account/show.d.ts +9 -0
  33. package/dist/commands/account/show.js +75 -0
  34. package/dist/commands/account/show.js.map +1 -0
  35. package/dist/commands/api.d.ts +17 -0
  36. package/dist/commands/api.js +144 -0
  37. package/dist/commands/api.js.map +1 -0
  38. package/dist/commands/bare-metal/index.d.ts +4 -0
  39. package/dist/commands/bare-metal/index.js +5 -0
  40. package/dist/commands/bare-metal/index.js.map +1 -0
  41. package/dist/commands/bare-metal/list.d.ts +9 -0
  42. package/dist/commands/bare-metal/list.js +38 -0
  43. package/dist/commands/bare-metal/list.js.map +1 -0
  44. package/dist/commands/bare-metal/order.d.ts +6 -0
  45. package/dist/commands/bare-metal/order.js +27 -0
  46. package/dist/commands/bare-metal/order.js.map +1 -0
  47. package/dist/commands/catalog.d.ts +11 -0
  48. package/dist/commands/catalog.js +115 -0
  49. package/dist/commands/catalog.js.map +1 -0
  50. package/dist/commands/config/index.d.ts +5 -0
  51. package/dist/commands/config/index.js +9 -0
  52. package/dist/commands/config/index.js.map +1 -0
  53. package/dist/commands/config/set-api-url.d.ts +10 -0
  54. package/dist/commands/config/set-api-url.js +43 -0
  55. package/dist/commands/config/set-api-url.js.map +1 -0
  56. package/dist/commands/config/show.d.ts +9 -0
  57. package/dist/commands/config/show.js +75 -0
  58. package/dist/commands/config/show.js.map +1 -0
  59. package/dist/commands/credits/add.d.ts +14 -0
  60. package/dist/commands/credits/add.js +117 -0
  61. package/dist/commands/credits/add.js.map +1 -0
  62. package/dist/commands/credits/index.d.ts +5 -0
  63. package/dist/commands/credits/index.js +9 -0
  64. package/dist/commands/credits/index.js.map +1 -0
  65. package/dist/commands/credits/list.d.ts +6 -0
  66. package/dist/commands/credits/list.js +43 -0
  67. package/dist/commands/credits/list.js.map +1 -0
  68. package/dist/commands/gpu/activity.d.ts +15 -0
  69. package/dist/commands/gpu/activity.js +8 -0
  70. package/dist/commands/gpu/activity.js.map +1 -0
  71. package/dist/commands/gpu/bandwidth.d.ts +14 -0
  72. package/dist/commands/gpu/bandwidth.js +8 -0
  73. package/dist/commands/gpu/bandwidth.js.map +1 -0
  74. package/dist/commands/gpu/boot-order.d.ts +15 -0
  75. package/dist/commands/gpu/boot-order.js +8 -0
  76. package/dist/commands/gpu/boot-order.js.map +1 -0
  77. package/dist/commands/gpu/console.d.ts +14 -0
  78. package/dist/commands/gpu/console.js +8 -0
  79. package/dist/commands/gpu/console.js.map +1 -0
  80. package/dist/commands/gpu/details.d.ts +15 -0
  81. package/dist/commands/gpu/details.js +8 -0
  82. package/dist/commands/gpu/details.js.map +1 -0
  83. package/dist/commands/gpu/index.d.ts +4 -0
  84. package/dist/commands/gpu/index.js +5 -0
  85. package/dist/commands/gpu/index.js.map +1 -0
  86. package/dist/commands/gpu/ip/add.d.ts +18 -0
  87. package/dist/commands/gpu/ip/add.js +8 -0
  88. package/dist/commands/gpu/ip/add.js.map +1 -0
  89. package/dist/commands/gpu/ip/list.d.ts +14 -0
  90. package/dist/commands/gpu/ip/list.js +8 -0
  91. package/dist/commands/gpu/ip/list.js.map +1 -0
  92. package/dist/commands/gpu/list.d.ts +6 -0
  93. package/dist/commands/gpu/list.js +13 -0
  94. package/dist/commands/gpu/list.js.map +1 -0
  95. package/dist/commands/gpu/order.d.ts +6 -0
  96. package/dist/commands/gpu/order.js +13 -0
  97. package/dist/commands/gpu/order.js.map +1 -0
  98. package/dist/commands/gpu/power.d.ts +17 -0
  99. package/dist/commands/gpu/power.js +8 -0
  100. package/dist/commands/gpu/power.js.map +1 -0
  101. package/dist/commands/gpu/reinstall.d.ts +22 -0
  102. package/dist/commands/gpu/reinstall.js +8 -0
  103. package/dist/commands/gpu/reinstall.js.map +1 -0
  104. package/dist/commands/gpu/resize.d.ts +22 -0
  105. package/dist/commands/gpu/resize.js +8 -0
  106. package/dist/commands/gpu/resize.js.map +1 -0
  107. package/dist/commands/gpu/stats.d.ts +14 -0
  108. package/dist/commands/gpu/stats.js +8 -0
  109. package/dist/commands/gpu/stats.js.map +1 -0
  110. package/dist/commands/help.d.ts +9 -0
  111. package/dist/commands/help.js +19 -0
  112. package/dist/commands/help.js.map +1 -0
  113. package/dist/commands/instant-metal/activity.d.ts +15 -0
  114. package/dist/commands/instant-metal/activity.js +8 -0
  115. package/dist/commands/instant-metal/activity.js.map +1 -0
  116. package/dist/commands/instant-metal/bandwidth.d.ts +14 -0
  117. package/dist/commands/instant-metal/bandwidth.js +8 -0
  118. package/dist/commands/instant-metal/bandwidth.js.map +1 -0
  119. package/dist/commands/instant-metal/boot-order.d.ts +15 -0
  120. package/dist/commands/instant-metal/boot-order.js +8 -0
  121. package/dist/commands/instant-metal/boot-order.js.map +1 -0
  122. package/dist/commands/instant-metal/console.d.ts +14 -0
  123. package/dist/commands/instant-metal/console.js +8 -0
  124. package/dist/commands/instant-metal/console.js.map +1 -0
  125. package/dist/commands/instant-metal/details.d.ts +15 -0
  126. package/dist/commands/instant-metal/details.js +8 -0
  127. package/dist/commands/instant-metal/details.js.map +1 -0
  128. package/dist/commands/instant-metal/index.d.ts +4 -0
  129. package/dist/commands/instant-metal/index.js +5 -0
  130. package/dist/commands/instant-metal/index.js.map +1 -0
  131. package/dist/commands/instant-metal/ip/add.d.ts +18 -0
  132. package/dist/commands/instant-metal/ip/add.js +8 -0
  133. package/dist/commands/instant-metal/ip/add.js.map +1 -0
  134. package/dist/commands/instant-metal/ip/list.d.ts +14 -0
  135. package/dist/commands/instant-metal/ip/list.js +8 -0
  136. package/dist/commands/instant-metal/ip/list.js.map +1 -0
  137. package/dist/commands/instant-metal/list.d.ts +6 -0
  138. package/dist/commands/instant-metal/list.js +13 -0
  139. package/dist/commands/instant-metal/list.js.map +1 -0
  140. package/dist/commands/instant-metal/order.d.ts +6 -0
  141. package/dist/commands/instant-metal/order.js +13 -0
  142. package/dist/commands/instant-metal/order.js.map +1 -0
  143. package/dist/commands/instant-metal/power.d.ts +17 -0
  144. package/dist/commands/instant-metal/power.js +8 -0
  145. package/dist/commands/instant-metal/power.js.map +1 -0
  146. package/dist/commands/instant-metal/reinstall.d.ts +22 -0
  147. package/dist/commands/instant-metal/reinstall.js +8 -0
  148. package/dist/commands/instant-metal/reinstall.js.map +1 -0
  149. package/dist/commands/instant-metal/resize.d.ts +22 -0
  150. package/dist/commands/instant-metal/resize.js +8 -0
  151. package/dist/commands/instant-metal/resize.js.map +1 -0
  152. package/dist/commands/instant-metal/stats.d.ts +14 -0
  153. package/dist/commands/instant-metal/stats.js +8 -0
  154. package/dist/commands/instant-metal/stats.js.map +1 -0
  155. package/dist/commands/login.d.ts +10 -0
  156. package/dist/commands/login.js +98 -0
  157. package/dist/commands/login.js.map +1 -0
  158. package/dist/commands/logout.d.ts +6 -0
  159. package/dist/commands/logout.js +20 -0
  160. package/dist/commands/logout.js.map +1 -0
  161. package/dist/commands/order/gpu.d.ts +6 -0
  162. package/dist/commands/order/gpu.js +13 -0
  163. package/dist/commands/order/gpu.js.map +1 -0
  164. package/dist/commands/order/instant-metal.d.ts +7 -0
  165. package/dist/commands/order/instant-metal.js +14 -0
  166. package/dist/commands/order/instant-metal.js.map +1 -0
  167. package/dist/commands/order/storage.d.ts +6 -0
  168. package/dist/commands/order/storage.js +11 -0
  169. package/dist/commands/order/storage.js.map +1 -0
  170. package/dist/commands/order/vps.d.ts +7 -0
  171. package/dist/commands/order/vps.js +14 -0
  172. package/dist/commands/order/vps.js.map +1 -0
  173. package/dist/commands/order.d.ts +6 -0
  174. package/dist/commands/order.js +46 -0
  175. package/dist/commands/order.js.map +1 -0
  176. package/dist/commands/payments/index.d.ts +5 -0
  177. package/dist/commands/payments/index.js +10 -0
  178. package/dist/commands/payments/index.js.map +1 -0
  179. package/dist/commands/payments/methods/add.d.ts +9 -0
  180. package/dist/commands/payments/methods/add.js +30 -0
  181. package/dist/commands/payments/methods/add.js.map +1 -0
  182. package/dist/commands/payments/methods/delete.d.ts +12 -0
  183. package/dist/commands/payments/methods/delete.js +58 -0
  184. package/dist/commands/payments/methods/delete.js.map +1 -0
  185. package/dist/commands/payments/methods/index.d.ts +5 -0
  186. package/dist/commands/payments/methods/index.js +9 -0
  187. package/dist/commands/payments/methods/index.js.map +1 -0
  188. package/dist/commands/payments/methods/list.d.ts +6 -0
  189. package/dist/commands/payments/methods/list.js +33 -0
  190. package/dist/commands/payments/methods/list.js.map +1 -0
  191. package/dist/commands/payments/methods/set-default.d.ts +9 -0
  192. package/dist/commands/payments/methods/set-default.js +31 -0
  193. package/dist/commands/payments/methods/set-default.js.map +1 -0
  194. package/dist/commands/projects/index.d.ts +5 -0
  195. package/dist/commands/projects/index.js +9 -0
  196. package/dist/commands/projects/index.js.map +1 -0
  197. package/dist/commands/projects/list.d.ts +6 -0
  198. package/dist/commands/projects/list.js +31 -0
  199. package/dist/commands/projects/list.js.map +1 -0
  200. package/dist/commands/resources.d.ts +11 -0
  201. package/dist/commands/resources.js +93 -0
  202. package/dist/commands/resources.js.map +1 -0
  203. package/dist/commands/settings/index.d.ts +6 -0
  204. package/dist/commands/settings/index.js +57 -0
  205. package/dist/commands/settings/index.js.map +1 -0
  206. package/dist/commands/settings/render-mode.d.ts +10 -0
  207. package/dist/commands/settings/render-mode.js +76 -0
  208. package/dist/commands/settings/render-mode.js.map +1 -0
  209. package/dist/commands/ssh-key/add.d.ts +11 -0
  210. package/dist/commands/ssh-key/add.js +89 -0
  211. package/dist/commands/ssh-key/add.js.map +1 -0
  212. package/dist/commands/ssh-key/delete.d.ts +12 -0
  213. package/dist/commands/ssh-key/delete.js +43 -0
  214. package/dist/commands/ssh-key/delete.js.map +1 -0
  215. package/dist/commands/ssh-key/list.d.ts +7 -0
  216. package/dist/commands/ssh-key/list.js +47 -0
  217. package/dist/commands/ssh-key/list.js.map +1 -0
  218. package/dist/commands/storage/attach.d.ts +12 -0
  219. package/dist/commands/storage/attach.js +48 -0
  220. package/dist/commands/storage/attach.js.map +1 -0
  221. package/dist/commands/storage/detach.d.ts +12 -0
  222. package/dist/commands/storage/detach.js +60 -0
  223. package/dist/commands/storage/detach.js.map +1 -0
  224. package/dist/commands/storage/list.d.ts +9 -0
  225. package/dist/commands/storage/list.js +41 -0
  226. package/dist/commands/storage/list.js.map +1 -0
  227. package/dist/commands/storage/order.d.ts +16 -0
  228. package/dist/commands/storage/order.js +223 -0
  229. package/dist/commands/storage/order.js.map +1 -0
  230. package/dist/commands/storage/resize.d.ts +16 -0
  231. package/dist/commands/storage/resize.js +129 -0
  232. package/dist/commands/storage/resize.js.map +1 -0
  233. package/dist/commands/team/details.d.ts +9 -0
  234. package/dist/commands/team/details.js +48 -0
  235. package/dist/commands/team/details.js.map +1 -0
  236. package/dist/commands/team/invite.d.ts +14 -0
  237. package/dist/commands/team/invite.js +65 -0
  238. package/dist/commands/team/invite.js.map +1 -0
  239. package/dist/commands/team.d.ts +15 -0
  240. package/dist/commands/team.js +123 -0
  241. package/dist/commands/team.js.map +1 -0
  242. package/dist/commands/tickets/close.d.ts +13 -0
  243. package/dist/commands/tickets/close.js +39 -0
  244. package/dist/commands/tickets/close.js.map +1 -0
  245. package/dist/commands/tickets/create.d.ts +16 -0
  246. package/dist/commands/tickets/create.js +111 -0
  247. package/dist/commands/tickets/create.js.map +1 -0
  248. package/dist/commands/tickets/departments.d.ts +7 -0
  249. package/dist/commands/tickets/departments.js +27 -0
  250. package/dist/commands/tickets/departments.js.map +1 -0
  251. package/dist/commands/tickets/list.d.ts +10 -0
  252. package/dist/commands/tickets/list.js +66 -0
  253. package/dist/commands/tickets/list.js.map +1 -0
  254. package/dist/commands/tickets/open.d.ts +10 -0
  255. package/dist/commands/tickets/open.js +70 -0
  256. package/dist/commands/tickets/open.js.map +1 -0
  257. package/dist/commands/tickets/reply.d.ts +13 -0
  258. package/dist/commands/tickets/reply.js +48 -0
  259. package/dist/commands/tickets/reply.js.map +1 -0
  260. package/dist/commands/transit.d.ts +9 -0
  261. package/dist/commands/transit.js +47 -0
  262. package/dist/commands/transit.js.map +1 -0
  263. package/dist/commands/tui/index.d.ts +7 -0
  264. package/dist/commands/tui/index.js +87 -0
  265. package/dist/commands/tui/index.js.map +1 -0
  266. package/dist/commands/vds/activity.d.ts +15 -0
  267. package/dist/commands/vds/activity.js +8 -0
  268. package/dist/commands/vds/activity.js.map +1 -0
  269. package/dist/commands/vds/bandwidth.d.ts +14 -0
  270. package/dist/commands/vds/bandwidth.js +8 -0
  271. package/dist/commands/vds/bandwidth.js.map +1 -0
  272. package/dist/commands/vds/boot-order.d.ts +15 -0
  273. package/dist/commands/vds/boot-order.js +8 -0
  274. package/dist/commands/vds/boot-order.js.map +1 -0
  275. package/dist/commands/vds/console.d.ts +14 -0
  276. package/dist/commands/vds/console.js +8 -0
  277. package/dist/commands/vds/console.js.map +1 -0
  278. package/dist/commands/vds/details.d.ts +15 -0
  279. package/dist/commands/vds/details.js +8 -0
  280. package/dist/commands/vds/details.js.map +1 -0
  281. package/dist/commands/vds/index.d.ts +4 -0
  282. package/dist/commands/vds/index.js +5 -0
  283. package/dist/commands/vds/index.js.map +1 -0
  284. package/dist/commands/vds/ip/add.d.ts +18 -0
  285. package/dist/commands/vds/ip/add.js +8 -0
  286. package/dist/commands/vds/ip/add.js.map +1 -0
  287. package/dist/commands/vds/ip/list.d.ts +14 -0
  288. package/dist/commands/vds/ip/list.js +8 -0
  289. package/dist/commands/vds/ip/list.js.map +1 -0
  290. package/dist/commands/vds/list.d.ts +6 -0
  291. package/dist/commands/vds/list.js +13 -0
  292. package/dist/commands/vds/list.js.map +1 -0
  293. package/dist/commands/vds/order.d.ts +6 -0
  294. package/dist/commands/vds/order.js +13 -0
  295. package/dist/commands/vds/order.js.map +1 -0
  296. package/dist/commands/vds/power.d.ts +17 -0
  297. package/dist/commands/vds/power.js +8 -0
  298. package/dist/commands/vds/power.js.map +1 -0
  299. package/dist/commands/vds/reinstall.d.ts +22 -0
  300. package/dist/commands/vds/reinstall.js +8 -0
  301. package/dist/commands/vds/reinstall.js.map +1 -0
  302. package/dist/commands/vds/resize.d.ts +22 -0
  303. package/dist/commands/vds/resize.js +8 -0
  304. package/dist/commands/vds/resize.js.map +1 -0
  305. package/dist/commands/vds/stats.d.ts +14 -0
  306. package/dist/commands/vds/stats.js +8 -0
  307. package/dist/commands/vds/stats.js.map +1 -0
  308. package/dist/commands/vps/activity.d.ts +13 -0
  309. package/dist/commands/vps/activity.js +50 -0
  310. package/dist/commands/vps/activity.js.map +1 -0
  311. package/dist/commands/vps/bandwidth.d.ts +9 -0
  312. package/dist/commands/vps/bandwidth.js +91 -0
  313. package/dist/commands/vps/bandwidth.js.map +1 -0
  314. package/dist/commands/vps/boot-order.d.ts +10 -0
  315. package/dist/commands/vps/boot-order.js +51 -0
  316. package/dist/commands/vps/boot-order.js.map +1 -0
  317. package/dist/commands/vps/console.d.ts +15 -0
  318. package/dist/commands/vps/console.js +198 -0
  319. package/dist/commands/vps/console.js.map +1 -0
  320. package/dist/commands/vps/details.d.ts +15 -0
  321. package/dist/commands/vps/details.js +78 -0
  322. package/dist/commands/vps/details.js.map +1 -0
  323. package/dist/commands/vps/ip/add.d.ts +17 -0
  324. package/dist/commands/vps/ip/add.js +212 -0
  325. package/dist/commands/vps/ip/add.js.map +1 -0
  326. package/dist/commands/vps/ip/list.d.ts +9 -0
  327. package/dist/commands/vps/ip/list.js +102 -0
  328. package/dist/commands/vps/ip/list.js.map +1 -0
  329. package/dist/commands/vps/list.d.ts +12 -0
  330. package/dist/commands/vps/list.js +55 -0
  331. package/dist/commands/vps/list.js.map +1 -0
  332. package/dist/commands/vps/order.d.ts +30 -0
  333. package/dist/commands/vps/order.js +497 -0
  334. package/dist/commands/vps/order.js.map +1 -0
  335. package/dist/commands/vps/power.d.ts +15 -0
  336. package/dist/commands/vps/power.js +123 -0
  337. package/dist/commands/vps/power.js.map +1 -0
  338. package/dist/commands/vps/reinstall.d.ts +20 -0
  339. package/dist/commands/vps/reinstall.js +166 -0
  340. package/dist/commands/vps/reinstall.js.map +1 -0
  341. package/dist/commands/vps/resize.d.ts +22 -0
  342. package/dist/commands/vps/resize.js +205 -0
  343. package/dist/commands/vps/resize.js.map +1 -0
  344. package/dist/commands/vps/stats.d.ts +12 -0
  345. package/dist/commands/vps/stats.js +83 -0
  346. package/dist/commands/vps/stats.js.map +1 -0
  347. package/dist/commands/whoami.d.ts +9 -0
  348. package/dist/commands/whoami.js +70 -0
  349. package/dist/commands/whoami.js.map +1 -0
  350. package/dist/config/paths.d.ts +3 -0
  351. package/dist/config/paths.js +17 -0
  352. package/dist/config/paths.js.map +1 -0
  353. package/dist/config/store.d.ts +15 -0
  354. package/dist/config/store.js +38 -0
  355. package/dist/config/store.js.map +1 -0
  356. package/dist/help.d.ts +9 -0
  357. package/dist/help.js +119 -0
  358. package/dist/help.js.map +1 -0
  359. package/dist/tui/App.d.ts +9 -0
  360. package/dist/tui/App.js +93 -0
  361. package/dist/tui/App.js.map +1 -0
  362. package/dist/tui/components/ActionButton.d.ts +9 -0
  363. package/dist/tui/components/ActionButton.js +52 -0
  364. package/dist/tui/components/ActionButton.js.map +1 -0
  365. package/dist/tui/components/AppHeader.d.ts +6 -0
  366. package/dist/tui/components/AppHeader.js +18 -0
  367. package/dist/tui/components/AppHeader.js.map +1 -0
  368. package/dist/tui/components/BackButton.d.ts +6 -0
  369. package/dist/tui/components/BackButton.js +15 -0
  370. package/dist/tui/components/BackButton.js.map +1 -0
  371. package/dist/tui/components/CenteredFrame.d.ts +8 -0
  372. package/dist/tui/components/CenteredFrame.js +14 -0
  373. package/dist/tui/components/CenteredFrame.js.map +1 -0
  374. package/dist/tui/components/Clickable.d.ts +9 -0
  375. package/dist/tui/components/Clickable.js +48 -0
  376. package/dist/tui/components/Clickable.js.map +1 -0
  377. package/dist/tui/components/ConfirmModal.d.ts +8 -0
  378. package/dist/tui/components/ConfirmModal.js +22 -0
  379. package/dist/tui/components/ConfirmModal.js.map +1 -0
  380. package/dist/tui/components/DataTable.d.ts +14 -0
  381. package/dist/tui/components/DataTable.js +26 -0
  382. package/dist/tui/components/DataTable.js.map +1 -0
  383. package/dist/tui/components/InputBar.d.ts +9 -0
  384. package/dist/tui/components/InputBar.js +10 -0
  385. package/dist/tui/components/InputBar.js.map +1 -0
  386. package/dist/tui/components/Menu.d.ts +16 -0
  387. package/dist/tui/components/Menu.js +78 -0
  388. package/dist/tui/components/Menu.js.map +1 -0
  389. package/dist/tui/components/NumberInput.d.ts +13 -0
  390. package/dist/tui/components/NumberInput.js +55 -0
  391. package/dist/tui/components/NumberInput.js.map +1 -0
  392. package/dist/tui/components/Panel.d.ts +13 -0
  393. package/dist/tui/components/Panel.js +11 -0
  394. package/dist/tui/components/Panel.js.map +1 -0
  395. package/dist/tui/components/Sparkline.d.ts +11 -0
  396. package/dist/tui/components/Sparkline.js +40 -0
  397. package/dist/tui/components/Sparkline.js.map +1 -0
  398. package/dist/tui/components/Spinner.d.ts +4 -0
  399. package/dist/tui/components/Spinner.js +11 -0
  400. package/dist/tui/components/Spinner.js.map +1 -0
  401. package/dist/tui/components/StatusBar.d.ts +6 -0
  402. package/dist/tui/components/StatusBar.js +9 -0
  403. package/dist/tui/components/StatusBar.js.map +1 -0
  404. package/dist/tui/components/Tip.d.ts +4 -0
  405. package/dist/tui/components/Tip.js +11 -0
  406. package/dist/tui/components/Tip.js.map +1 -0
  407. package/dist/tui/hooks/useApi.d.ts +12 -0
  408. package/dist/tui/hooks/useApi.js +15 -0
  409. package/dist/tui/hooks/useApi.js.map +1 -0
  410. package/dist/tui/hooks/useHeader.d.ts +18 -0
  411. package/dist/tui/hooks/useHeader.js +65 -0
  412. package/dist/tui/hooks/useHeader.js.map +1 -0
  413. package/dist/tui/hooks/useMouse.d.ts +27 -0
  414. package/dist/tui/hooks/useMouse.js +174 -0
  415. package/dist/tui/hooks/useMouse.js.map +1 -0
  416. package/dist/tui/hooks/useStdinCapture.d.ts +1 -0
  417. package/dist/tui/hooks/useStdinCapture.js +37 -0
  418. package/dist/tui/hooks/useStdinCapture.js.map +1 -0
  419. package/dist/tui/index.d.ts +12 -0
  420. package/dist/tui/index.js +19 -0
  421. package/dist/tui/index.js.map +1 -0
  422. package/dist/tui/router.d.ts +10 -0
  423. package/dist/tui/router.js +9 -0
  424. package/dist/tui/router.js.map +1 -0
  425. package/dist/tui/screens/Account.d.ts +2 -0
  426. package/dist/tui/screens/Account.js +212 -0
  427. package/dist/tui/screens/Account.js.map +1 -0
  428. package/dist/tui/screens/Billing.d.ts +2 -0
  429. package/dist/tui/screens/Billing.js +586 -0
  430. package/dist/tui/screens/Billing.js.map +1 -0
  431. package/dist/tui/screens/Dashboard.d.ts +2 -0
  432. package/dist/tui/screens/Dashboard.js +150 -0
  433. package/dist/tui/screens/Dashboard.js.map +1 -0
  434. package/dist/tui/screens/Order.d.ts +2 -0
  435. package/dist/tui/screens/Order.js +1169 -0
  436. package/dist/tui/screens/Order.js.map +1 -0
  437. package/dist/tui/screens/Resources.d.ts +2 -0
  438. package/dist/tui/screens/Resources.js +720 -0
  439. package/dist/tui/screens/Resources.js.map +1 -0
  440. package/dist/tui/screens/Tickets.d.ts +2 -0
  441. package/dist/tui/screens/Tickets.js +395 -0
  442. package/dist/tui/screens/Tickets.js.map +1 -0
  443. package/dist/tui/theme/colors.d.ts +12 -0
  444. package/dist/tui/theme/colors.js +29 -0
  445. package/dist/tui/theme/colors.js.map +1 -0
  446. package/dist/tui/theme/glyphs.d.ts +5 -0
  447. package/dist/tui/theme/glyphs.js +6 -0
  448. package/dist/tui/theme/glyphs.js.map +1 -0
  449. package/dist/ui/confirm.d.ts +7 -0
  450. package/dist/ui/confirm.js +18 -0
  451. package/dist/ui/confirm.js.map +1 -0
  452. package/dist/ui/glyphs.d.ts +18 -0
  453. package/dist/ui/glyphs.js +47 -0
  454. package/dist/ui/glyphs.js.map +1 -0
  455. package/dist/ui/payment.d.ts +33 -0
  456. package/dist/ui/payment.js +179 -0
  457. package/dist/ui/payment.js.map +1 -0
  458. package/dist/ui/pm-resolve.d.ts +3 -0
  459. package/dist/ui/pm-resolve.js +19 -0
  460. package/dist/ui/pm-resolve.js.map +1 -0
  461. package/dist/ui/portal.d.ts +1 -0
  462. package/dist/ui/portal.js +19 -0
  463. package/dist/ui/portal.js.map +1 -0
  464. package/dist/ui/render-mode.d.ts +10 -0
  465. package/dist/ui/render-mode.js +30 -0
  466. package/dist/ui/render-mode.js.map +1 -0
  467. package/dist/ui/sparkline.d.ts +6 -0
  468. package/dist/ui/sparkline.js +30 -0
  469. package/dist/ui/sparkline.js.map +1 -0
  470. package/dist/ui/spinner.d.ts +1 -0
  471. package/dist/ui/spinner.js +19 -0
  472. package/dist/ui/spinner.js.map +1 -0
  473. package/dist/ui/stats.d.ts +22 -0
  474. package/dist/ui/stats.js +71 -0
  475. package/dist/ui/stats.js.map +1 -0
  476. package/dist/ui/stdin.d.ts +1 -0
  477. package/dist/ui/stdin.js +8 -0
  478. package/dist/ui/stdin.js.map +1 -0
  479. package/dist/ui/table.d.ts +2 -0
  480. package/dist/ui/table.js +48 -0
  481. package/dist/ui/table.js.map +1 -0
  482. package/dist/ui/ticket-resolve.d.ts +2 -0
  483. package/dist/ui/ticket-resolve.js +17 -0
  484. package/dist/ui/ticket-resolve.js.map +1 -0
  485. package/dist/ui/volume-resolve.d.ts +3 -0
  486. package/dist/ui/volume-resolve.js +30 -0
  487. package/dist/ui/volume-resolve.js.map +1 -0
  488. package/dist/ui/vps-detail.d.ts +3 -0
  489. package/dist/ui/vps-detail.js +79 -0
  490. package/dist/ui/vps-detail.js.map +1 -0
  491. package/dist/ui/vps-resolve.d.ts +4 -0
  492. package/dist/ui/vps-resolve.js +24 -0
  493. package/dist/ui/vps-resolve.js.map +1 -0
  494. package/dist/ui/wait.d.ts +31 -0
  495. package/dist/ui/wait.js +66 -0
  496. package/dist/ui/wait.js.map +1 -0
  497. package/dist/ui/wizard.d.ts +33 -0
  498. package/dist/ui/wizard.js +168 -0
  499. package/dist/ui/wizard.js.map +1 -0
  500. package/package.json +142 -0
@@ -0,0 +1,738 @@
1
+ export interface WhoAmI {
2
+ id: string;
3
+ email: string;
4
+ full_name: string;
5
+ role: string;
6
+ email_verified: boolean;
7
+ avatar_url?: string | null;
8
+ totp_enabled?: boolean;
9
+ phone?: string | null;
10
+ admin_roles?: string[];
11
+ admin_permissions?: string[];
12
+ is_super_admin?: boolean;
13
+ onboarding_completed?: boolean;
14
+ }
15
+ export interface Team {
16
+ id: string;
17
+ name: string;
18
+ is_owner: boolean;
19
+ is_default: boolean;
20
+ my_role?: string;
21
+ resource_count?: number;
22
+ }
23
+ export interface Project {
24
+ id: string;
25
+ team_id: string;
26
+ name: string;
27
+ description: string | null;
28
+ is_default: boolean;
29
+ created_at: string;
30
+ }
31
+ export interface VPSPlan {
32
+ name?: string;
33
+ category?: string;
34
+ cpu_cores?: number;
35
+ ram_mb?: number;
36
+ disk_gb?: number;
37
+ monthly_price?: number;
38
+ is_custom?: boolean;
39
+ }
40
+ export interface VPSLocation {
41
+ name?: string;
42
+ city?: string;
43
+ country?: string;
44
+ }
45
+ export interface VPSIp {
46
+ id: string;
47
+ address: string;
48
+ subnet_cidr: string;
49
+ gateway: string | null;
50
+ version: number;
51
+ ptr_record: string | null;
52
+ }
53
+ export interface VPS {
54
+ id: string;
55
+ hostname: string;
56
+ status: string;
57
+ plan: VPSPlan | null;
58
+ location: VPSLocation | null;
59
+ location_id?: string;
60
+ project_id: string | null;
61
+ project_name: string | null;
62
+ created_at: string;
63
+ ip_addresses?: VPSIp[];
64
+ node?: string;
65
+ vmid?: number;
66
+ cluster_id?: string;
67
+ managed_os?: string | null;
68
+ last_installed_os?: string | null;
69
+ ptr_record?: string | null;
70
+ team_id?: string | null;
71
+ team_name?: string | null;
72
+ is_suspended?: boolean;
73
+ suspension_reason?: string | null;
74
+ cancellation_requested?: boolean;
75
+ cancellation_reason?: string | null;
76
+ cancellation_date?: string | null;
77
+ next_due?: string | null;
78
+ billing_anchor_at?: string | null;
79
+ effective_monthly_price?: number | null;
80
+ gpu_count?: number;
81
+ gpu_model_name?: string | null;
82
+ gpu_vram_gb?: number | null;
83
+ }
84
+ export interface BaremetalService {
85
+ id: string;
86
+ reference: string;
87
+ hostname: string | null;
88
+ location_name: string | null;
89
+ location_city: string | null;
90
+ cpu_cores: number | null;
91
+ ram_gb: number | null;
92
+ primary_ipv4: string | null;
93
+ is_active: boolean;
94
+ project_id: string | null;
95
+ project_name: string | null;
96
+ }
97
+ export interface StorageVolume {
98
+ id: string;
99
+ name: string;
100
+ size_gb: number;
101
+ status: string;
102
+ is_attached: boolean;
103
+ disk_slot: string | null;
104
+ monthly_price: number | null;
105
+ vps_id: string | null;
106
+ vps_hostname: string | null;
107
+ project_id: string;
108
+ project_name: string | null;
109
+ location_id: string | null;
110
+ location_name: string | null;
111
+ created_at: string;
112
+ }
113
+ export interface TransitService {
114
+ id: string;
115
+ service_name: string;
116
+ description: string | null;
117
+ commit_rate_bps: number | null;
118
+ project_id: string | null;
119
+ project_name: string | null;
120
+ }
121
+ export interface ResourceListItem {
122
+ kind: "vps" | "metal" | "colo" | "transit" | "storage";
123
+ id: string;
124
+ name: string;
125
+ status: string;
126
+ location: string;
127
+ project_name: string;
128
+ }
129
+ export interface TokenPair {
130
+ access_token: string;
131
+ refresh_token: string;
132
+ token_type: "Bearer";
133
+ expires_in: number;
134
+ user_id: string;
135
+ team_id: string | null;
136
+ }
137
+ export interface DeviceCodeOut {
138
+ device_code: string;
139
+ user_code: string;
140
+ verification_uri: string;
141
+ interval: number;
142
+ expires_in: number;
143
+ }
144
+ export interface CreditEntry {
145
+ id: string;
146
+ credit_number: string;
147
+ amount: number;
148
+ remaining: number;
149
+ currency: string;
150
+ description: string;
151
+ reference: string | null;
152
+ created_at: string;
153
+ }
154
+ export interface BalanceOut {
155
+ outstanding?: string | number;
156
+ credit?: string | number;
157
+ net_balance?: string | number;
158
+ currency?: string;
159
+ [k: string]: unknown;
160
+ }
161
+ export interface BandwidthPeriod {
162
+ period_start: string;
163
+ period_end: string;
164
+ bytes_in: number;
165
+ bytes_out: number;
166
+ used_tb: number;
167
+ last_polled_at: string | null;
168
+ overage_invoiced_at: string | null;
169
+ }
170
+ export interface BandwidthSummary {
171
+ included_tb: number | null;
172
+ overage_per_tb: number | null;
173
+ current: BandwidthPeriod | null;
174
+ history: BandwidthPeriod[];
175
+ }
176
+ export interface CreditTopupIn {
177
+ payment_method_id: string;
178
+ amount: number;
179
+ currency?: string;
180
+ bitpay_redirect_url?: string;
181
+ }
182
+ export interface CreditTopupOut {
183
+ status: string;
184
+ charge_id: string | null;
185
+ provider: string;
186
+ checkout_url: string | null;
187
+ credits_applied: string;
188
+ failure_reason: string | null;
189
+ invoice_id: string;
190
+ }
191
+ export interface PaymentMethod {
192
+ id: string;
193
+ provider: "stripe" | "paypal" | "gocardless" | "bitpay";
194
+ card_brand: string | null;
195
+ card_last4: string | null;
196
+ nickname: string | null;
197
+ is_default: boolean;
198
+ is_active: boolean;
199
+ }
200
+ export interface SetDefaultMethodOut {
201
+ id: string;
202
+ is_default: boolean;
203
+ }
204
+ export interface ReinstallIn {
205
+ image_id: string;
206
+ password?: string;
207
+ ssh_key_ids?: string[];
208
+ ssh_public_key?: string;
209
+ ciuser?: string;
210
+ }
211
+ export interface HypervisorTask {
212
+ task_id: string;
213
+ status: string;
214
+ action: string;
215
+ }
216
+ export interface BootOrderOut {
217
+ boot_order: "disk_first" | "cdrom_first";
218
+ requires_reboot: boolean;
219
+ pending_keys: string[];
220
+ }
221
+ export interface ActivityActor {
222
+ id: string;
223
+ full_name: string;
224
+ email: string;
225
+ avatar_url: string | null;
226
+ }
227
+ export interface ActivityEntry {
228
+ id: number;
229
+ action: string;
230
+ detail: string | null;
231
+ ip_address: string | null;
232
+ created_at: string;
233
+ actor: ActivityActor | null;
234
+ }
235
+ export interface ActivityList {
236
+ items: ActivityEntry[];
237
+ total: number;
238
+ }
239
+ export interface OrderCatalogPlan {
240
+ id: string;
241
+ slug: string;
242
+ name: string;
243
+ category: string;
244
+ cpu_cores: number;
245
+ ram_mb: number;
246
+ disk_gb: number;
247
+ monthly_price: number;
248
+ is_custom: boolean;
249
+ bandwidth_mbps?: number | null;
250
+ included_tb?: number | null;
251
+ gpu_model?: string | null;
252
+ gpu_vram_gb?: number | null;
253
+ in_stock: boolean;
254
+ out_of_stock_reason?: string | null;
255
+ per_location_stock?: Record<string, {
256
+ in_stock: boolean;
257
+ qty: number | null;
258
+ }>;
259
+ }
260
+ export interface OrderCatalogLocation {
261
+ id: string;
262
+ code: string;
263
+ name: string;
264
+ city: string;
265
+ country: string;
266
+ vat_exempt?: boolean;
267
+ }
268
+ export interface OrderCatalogImage {
269
+ id: string;
270
+ display_name: string;
271
+ os_type: string;
272
+ os_logo_url?: string | null;
273
+ }
274
+ export interface DedicatedPricing {
275
+ base_price: number;
276
+ price_per_cpu: number;
277
+ price_per_ram_gb: number;
278
+ price_per_disk_gb: number;
279
+ price_per_tb: number;
280
+ cpu_min: number;
281
+ cpu_max: number;
282
+ cpu_step: number;
283
+ cpu_stops: number[] | null;
284
+ }
285
+ export interface CustomVPSConfig {
286
+ enabled: boolean;
287
+ cpu_min: number;
288
+ cpu_max: number;
289
+ cpu_step: number;
290
+ ram_min_gb: number;
291
+ ram_max_gb: number;
292
+ ram_step_gb: number;
293
+ disk_min_gb: number;
294
+ disk_max_gb: number;
295
+ disk_step_gb: number;
296
+ base_price: number;
297
+ price_per_cpu: number;
298
+ price_per_ram_gb: number;
299
+ price_per_disk_gb: number;
300
+ bandwidth_min_tb: number;
301
+ bandwidth_max_tb: number;
302
+ bandwidth_step_tb: number;
303
+ bandwidth_included_tb: number;
304
+ price_per_tb: number;
305
+ cpu_stops: number[] | null;
306
+ ram_stops: number[] | null;
307
+ disk_stops: number[] | null;
308
+ bandwidth_stops: number[] | null;
309
+ dedicated: DedicatedPricing;
310
+ }
311
+ export interface OrderCatalogAddon {
312
+ addon_type: string;
313
+ monthly_price: number | null;
314
+ max_per_resource: number | null;
315
+ customer_billing_mode: "prorate_only" | "new_cycle_only" | "customer_choice";
316
+ customer_default_billing_mode: "prorate" | "new_cycle";
317
+ }
318
+ export interface OrderCatalog {
319
+ plans: OrderCatalogPlan[];
320
+ locations: OrderCatalogLocation[];
321
+ images: OrderCatalogImage[];
322
+ categories?: unknown[];
323
+ custom_config?: CustomVPSConfig | null;
324
+ addons?: OrderCatalogAddon[];
325
+ order_quantity?: {
326
+ cap: number;
327
+ tier: string;
328
+ paid_invoice_count: number;
329
+ lifetime_spend: string;
330
+ };
331
+ }
332
+ export interface VPSCustomSpec {
333
+ cpu_cores: number;
334
+ ram_mb: number;
335
+ disk_gb: number;
336
+ bandwidth_tb?: number;
337
+ dedicated?: boolean;
338
+ }
339
+ export interface VPSOrderIn {
340
+ project_id: string;
341
+ plan_id?: string;
342
+ custom_spec?: VPSCustomSpec;
343
+ location_id: string;
344
+ image_id: string;
345
+ hostname?: string;
346
+ hostnames?: string[];
347
+ quantity?: number;
348
+ payment_kind?: "method" | "bitpay";
349
+ payment_method_id?: string;
350
+ apply_credits?: boolean;
351
+ ssh_key_id?: string;
352
+ ssh_public_key?: string;
353
+ password?: string;
354
+ ciuser?: string;
355
+ bitpay_redirect_url?: string;
356
+ }
357
+ export interface OrderResultOut {
358
+ status: string;
359
+ order_id?: string | null;
360
+ invoice_id?: string | null;
361
+ charge_id?: string | null;
362
+ provider?: string | null;
363
+ checkout_url?: string | null;
364
+ credits_applied?: string | null;
365
+ failure_reason?: string | null;
366
+ }
367
+ export interface StorageCatalog {
368
+ is_active: boolean;
369
+ pricing_mode: string;
370
+ price_per_gb: number | string;
371
+ price_unit: "gb" | "tb";
372
+ min_size_gb: number;
373
+ max_size_gb: number;
374
+ step_gb: number;
375
+ size_stops?: {
376
+ size_gb: number;
377
+ monthly_price: number;
378
+ }[];
379
+ locations: {
380
+ id: string;
381
+ code?: string;
382
+ name: string;
383
+ city?: string;
384
+ country?: string;
385
+ in_stock: boolean;
386
+ }[];
387
+ }
388
+ export interface BlockVolumeCreateIn {
389
+ name: string;
390
+ size_gb: number;
391
+ location_id: string;
392
+ attach_vps_id?: string;
393
+ payment_method_id?: string;
394
+ apply_credits?: boolean;
395
+ bitpay_redirect_url?: string;
396
+ }
397
+ export interface BlockVolumeCreateOut {
398
+ status: "succeeded" | "pending" | "failed";
399
+ volume_id: string | null;
400
+ order_id: string | null;
401
+ invoice_id: string | null;
402
+ charge_id: string | null;
403
+ provider: string | null;
404
+ checkout_url: string | null;
405
+ credits_applied: string | null;
406
+ failure_reason: string | null;
407
+ }
408
+ export interface AttachOut {
409
+ status: "attached";
410
+ volume_id: string;
411
+ vps_id: string;
412
+ disk_slot: string | null;
413
+ }
414
+ export interface DetachOut {
415
+ status: "detached";
416
+ volume_id: string;
417
+ }
418
+ export interface VpsAddon {
419
+ id: string;
420
+ addon_type: string;
421
+ label: string | null;
422
+ ip_address: string | null;
423
+ as_set: string | null;
424
+ speed_mbps: number | null;
425
+ monthly_price: number | null;
426
+ created_at: string | null;
427
+ }
428
+ export interface PendingVpsAddon {
429
+ id: string;
430
+ addon_type: string;
431
+ label: string | null;
432
+ ip_address: string | null;
433
+ monthly_price: number;
434
+ charge_amount: number;
435
+ billing_anchor_at: string | null;
436
+ proration_mode: string | null;
437
+ pending_invoice_id: string | null;
438
+ created_at: string | null;
439
+ order_id?: string;
440
+ quantity?: number;
441
+ }
442
+ export interface AddonAttachIn {
443
+ addon_type: string;
444
+ count: number;
445
+ billing_mode: "prorate" | "new_cycle";
446
+ apply_credits?: boolean;
447
+ payment_method_id?: string;
448
+ }
449
+ export interface AddonAttachOut {
450
+ status: "succeeded" | "pending" | "failed";
451
+ addons: {
452
+ id: string;
453
+ ip_address: string | null;
454
+ monthly_price: number;
455
+ }[];
456
+ invoice_id: string | null;
457
+ order_id?: string | null;
458
+ charge_id: string | null;
459
+ provider: string | null;
460
+ checkout_url: string | null;
461
+ credits_applied: string | null;
462
+ failure_reason: string | null;
463
+ amount_paid: number;
464
+ billing_mode: string;
465
+ }
466
+ export interface AddonRemoveOut {
467
+ id: string;
468
+ status: string;
469
+ }
470
+ export type TeamInviteRole = "admin" | "billing" | "technical" | "read_only";
471
+ export interface TeamInviteIn {
472
+ email: string;
473
+ role: TeamInviteRole;
474
+ project_ids?: string[];
475
+ }
476
+ export interface OrgDetails {
477
+ id: string;
478
+ name: string;
479
+ entity_type: "personal" | "business";
480
+ billing_email: string | null;
481
+ phone: string | null;
482
+ legal_name: string | null;
483
+ address_line1: string | null;
484
+ address_line2: string | null;
485
+ city: string | null;
486
+ state: string | null;
487
+ postcode: string | null;
488
+ country: string | null;
489
+ vat_number: string | null;
490
+ tax_exempt: boolean;
491
+ xero_contact_id: string | null;
492
+ }
493
+ export interface SSHKey {
494
+ id: string;
495
+ name: string;
496
+ public_key: string;
497
+ created_at: string;
498
+ resource_count: number;
499
+ }
500
+ export interface ApiKeyWhoami {
501
+ team_id: string;
502
+ team_name: string;
503
+ projects: {
504
+ id: string;
505
+ name: string;
506
+ is_default: boolean;
507
+ }[];
508
+ project_scoped: boolean;
509
+ }
510
+ export interface VpsOrderStatusOut {
511
+ order_id: string;
512
+ status: string;
513
+ vps_id: string | null;
514
+ hostname?: string | null;
515
+ error_detail?: string | null;
516
+ created_at?: string;
517
+ [k: string]: unknown;
518
+ }
519
+ export interface ReinstallStatusOut {
520
+ reinstalling: boolean;
521
+ step?: string | null;
522
+ progress_percent?: number;
523
+ }
524
+ export interface VPSResizeIn {
525
+ cpu_cores: number;
526
+ ram_mb: number;
527
+ disk_gb: number;
528
+ bandwidth_tb?: number;
529
+ dedicated?: boolean | null;
530
+ payment_method_id?: string;
531
+ apply_credits?: boolean;
532
+ bitpay_redirect_url?: string;
533
+ }
534
+ export interface ResizeSpecOut {
535
+ cpu_cores: number;
536
+ ram_mb: number;
537
+ disk_gb: number;
538
+ dedicated: boolean;
539
+ }
540
+ export interface VPSResizeQuoteOut {
541
+ current_spec: ResizeSpecOut;
542
+ requested_spec: ResizeSpecOut;
543
+ current_monthly_price: number;
544
+ new_monthly_price: number;
545
+ monthly_delta: number;
546
+ prorated_amount: number;
547
+ action: string;
548
+ next_due: string | null;
549
+ restart_required: boolean;
550
+ can_resize: boolean;
551
+ message: string;
552
+ in_stock: boolean;
553
+ out_of_stock_reason?: string | null;
554
+ credit_balance_available?: string;
555
+ can_switch_to_dedicated?: boolean;
556
+ }
557
+ export interface VPSResizeOut {
558
+ status: string;
559
+ pending_resize_id: string | null;
560
+ direction: string;
561
+ charge_id?: string | null;
562
+ provider: string | null;
563
+ checkout_url: string | null;
564
+ credits_applied: string;
565
+ failure_reason: string | null;
566
+ }
567
+ export interface PendingResizeOut {
568
+ id: string;
569
+ status: string;
570
+ direction: string;
571
+ target_cpu_cores: number | null;
572
+ target_ram_mb: number | null;
573
+ target_disk_gb: number | null;
574
+ target_included_tb: number | null;
575
+ target_monthly_price: number;
576
+ dedicated_cpu: boolean | null;
577
+ current_dedicated_cpu: boolean | null;
578
+ invoice_id: string | null;
579
+ effective_at: string | null;
580
+ current_snapshot?: Record<string, unknown> | null;
581
+ }
582
+ export interface BlockVolumeResizeQuoteIn {
583
+ new_size_gb: number;
584
+ }
585
+ export interface BlockVolumeResizeQuoteOut {
586
+ current_size_gb: number;
587
+ new_size_gb: number;
588
+ new_monthly_price: string;
589
+ monthly_delta: string;
590
+ prorated_amount: string;
591
+ currency: string;
592
+ }
593
+ export interface BlockVolumeResizeIn {
594
+ new_size_gb: number;
595
+ payment_method_id?: string;
596
+ apply_credits?: boolean;
597
+ bitpay_redirect_url?: string;
598
+ }
599
+ export interface BlockVolumeResizeOut {
600
+ status: string;
601
+ volume_id: string;
602
+ invoice_id: string | null;
603
+ charge_id: string | null;
604
+ provider: string | null;
605
+ checkout_url: string | null;
606
+ credits_applied: string | null;
607
+ failure_reason: string | null;
608
+ }
609
+ export interface BlockVolumeCancelIn {
610
+ reason: string;
611
+ notes?: string;
612
+ }
613
+ export interface BlockVolumeDeleteIn {
614
+ password: string;
615
+ reason?: string;
616
+ notes?: string;
617
+ }
618
+ export interface BlockVolumeDetailOut {
619
+ id: string;
620
+ project_id: string;
621
+ cluster_id: string;
622
+ vps_id: string | null;
623
+ name: string;
624
+ size_gb: number;
625
+ status: string;
626
+ monthly_price: string | null;
627
+ cancellation_requested: boolean;
628
+ cancellation_reason: string | null;
629
+ cancellation_notes: string | null;
630
+ cancellation_date: string | null;
631
+ cancellation_initiated_by: string | null;
632
+ attached_vps_hostname: string | null;
633
+ location_name: string | null;
634
+ location_country: string | null;
635
+ [k: string]: unknown;
636
+ }
637
+ export interface ConsoleTokenOut {
638
+ token: string;
639
+ console_type: "serial" | "vnc";
640
+ keyboard?: string | null;
641
+ preview?: boolean;
642
+ }
643
+ export type TicketStatus = "open" | "in_progress" | "waiting_customer" | "waiting_staff" | "resolved" | "closed";
644
+ export type TicketPriority = "low" | "normal" | "high" | "urgent";
645
+ export interface TicketDepartment {
646
+ key: string;
647
+ name: string;
648
+ }
649
+ export interface TicketListMessage {
650
+ id: string;
651
+ body: string;
652
+ is_staff: boolean;
653
+ author_name: string | null;
654
+ created_at: string;
655
+ }
656
+ export interface TicketListItem {
657
+ id: string;
658
+ display_id: number;
659
+ user_id: string;
660
+ user_email: string | null;
661
+ user_name: string | null;
662
+ user_company: string | null;
663
+ team_id: string;
664
+ team_name: string | null;
665
+ subject: string;
666
+ status: TicketStatus;
667
+ priority: TicketPriority;
668
+ department: string;
669
+ service_type: string | null;
670
+ service_id: string | null;
671
+ created_at: string;
672
+ updated_at: string;
673
+ assigned_to_id: string | null;
674
+ assigned_to_name: string | null;
675
+ message_count: number;
676
+ latest_message_preview: string | null;
677
+ messages: TicketListMessage[];
678
+ last_message_at: string;
679
+ viewer_role: "owner" | "cc" | "team_admin";
680
+ is_unread: boolean;
681
+ last_seen_at: string | null;
682
+ }
683
+ export interface Ticket {
684
+ id: string;
685
+ display_id: number;
686
+ user_id: string;
687
+ user_email: string | null;
688
+ user_name: string | null;
689
+ user_company: string | null;
690
+ team_id: string;
691
+ team_name: string | null;
692
+ subject: string;
693
+ status: TicketStatus;
694
+ priority: TicketPriority;
695
+ department: string;
696
+ service_type: string | null;
697
+ service_id: string | null;
698
+ created_at: string;
699
+ updated_at: string;
700
+ assigned_to_id: string | null;
701
+ assigned_to_name: string | null;
702
+ message_count: number;
703
+ }
704
+ export interface TicketAttachment {
705
+ id: string;
706
+ ticket_message_id: string;
707
+ filename: string;
708
+ content_type: string;
709
+ size_bytes: number;
710
+ created_at: string;
711
+ }
712
+ export interface TicketMessage {
713
+ id: string;
714
+ ticket_id: string;
715
+ author_id: string;
716
+ author_name: string | null;
717
+ author_email: string | null;
718
+ body: string;
719
+ is_staff: boolean;
720
+ created_at: string;
721
+ attachments: TicketAttachment[];
722
+ }
723
+ export interface TicketCreateIn {
724
+ subject: string;
725
+ body: string;
726
+ priority?: TicketPriority;
727
+ department?: string;
728
+ service_type?: string | null;
729
+ service_id?: string | null;
730
+ team_id?: string | null;
731
+ recipient_emails?: string[] | null;
732
+ }
733
+ export interface TicketMessageIn {
734
+ body: string;
735
+ }
736
+ export interface TicketStatusIn {
737
+ status: TicketStatus;
738
+ }