@meowpanel/api 0.1.0-alpha.11 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +40 -0
  3. package/esm/mod.d.ts +87 -1
  4. package/esm/mod.d.ts.map +1 -1
  5. package/esm/mod.js +85 -1
  6. package/esm/src/client.d.ts +248 -0
  7. package/esm/src/client.d.ts.map +1 -0
  8. package/esm/src/client.js +235 -0
  9. package/esm/src/emitter.d.ts +53 -0
  10. package/esm/src/emitter.d.ts.map +1 -0
  11. package/esm/src/emitter.js +55 -0
  12. package/esm/src/errors.d.ts +42 -0
  13. package/esm/src/errors.d.ts.map +1 -0
  14. package/esm/src/errors.js +45 -0
  15. package/esm/src/http.d.ts +157 -0
  16. package/esm/src/http.d.ts.map +1 -0
  17. package/esm/src/http.js +317 -0
  18. package/esm/src/namespace.d.ts +59 -0
  19. package/esm/src/namespace.d.ts.map +1 -0
  20. package/esm/src/namespace.js +79 -0
  21. package/esm/src/reactive.d.ts +29 -0
  22. package/esm/src/reactive.d.ts.map +1 -0
  23. package/esm/src/reactive.js +35 -0
  24. package/esm/src/resources/account.d.ts +125 -0
  25. package/esm/src/resources/account.d.ts.map +1 -0
  26. package/esm/src/resources/account.js +151 -0
  27. package/esm/src/resources/api-keys.d.ts +116 -0
  28. package/esm/src/resources/api-keys.d.ts.map +1 -0
  29. package/esm/src/resources/api-keys.js +105 -0
  30. package/esm/src/resources/auth.d.ts +57 -0
  31. package/esm/src/resources/auth.d.ts.map +1 -0
  32. package/esm/src/resources/auth.js +39 -0
  33. package/esm/src/resources/eggs.d.ts +238 -0
  34. package/esm/src/resources/eggs.d.ts.map +1 -0
  35. package/esm/src/resources/eggs.js +187 -0
  36. package/esm/src/resources/hosts.d.ts +62 -0
  37. package/esm/src/resources/hosts.d.ts.map +1 -0
  38. package/esm/src/resources/hosts.js +62 -0
  39. package/esm/src/resources/members.d.ts +138 -0
  40. package/esm/src/resources/members.d.ts.map +1 -0
  41. package/esm/src/resources/members.js +122 -0
  42. package/esm/src/resources/nodes.d.ts +397 -0
  43. package/esm/src/resources/nodes.d.ts.map +1 -0
  44. package/esm/src/resources/nodes.js +352 -0
  45. package/esm/src/resources/server-groups.d.ts +150 -0
  46. package/esm/src/resources/server-groups.d.ts.map +1 -0
  47. package/esm/src/resources/server-groups.js +111 -0
  48. package/esm/src/resources/servers/activity.d.ts +120 -0
  49. package/esm/src/resources/servers/activity.d.ts.map +1 -0
  50. package/esm/src/resources/servers/activity.js +163 -0
  51. package/esm/src/resources/servers/allocations.d.ts +125 -0
  52. package/esm/src/resources/servers/allocations.d.ts.map +1 -0
  53. package/esm/src/resources/servers/allocations.js +137 -0
  54. package/esm/src/resources/servers/connection.d.ts +108 -0
  55. package/esm/src/resources/servers/connection.d.ts.map +1 -0
  56. package/esm/src/resources/servers/connection.js +169 -0
  57. package/esm/src/resources/servers/files.d.ts +164 -0
  58. package/esm/src/resources/servers/files.d.ts.map +1 -0
  59. package/esm/src/resources/servers/files.js +281 -0
  60. package/esm/src/resources/servers/index.d.ts +126 -0
  61. package/esm/src/resources/servers/index.d.ts.map +1 -0
  62. package/esm/src/resources/servers/index.js +135 -0
  63. package/esm/src/resources/servers/profiles.d.ts +138 -0
  64. package/esm/src/resources/servers/profiles.d.ts.map +1 -0
  65. package/esm/src/resources/servers/profiles.js +177 -0
  66. package/esm/src/resources/servers/server.d.ts +136 -0
  67. package/esm/src/resources/servers/server.d.ts.map +1 -0
  68. package/esm/src/resources/servers/server.js +202 -0
  69. package/esm/src/resources/servers/sftp.d.ts +147 -0
  70. package/esm/src/resources/servers/sftp.d.ts.map +1 -0
  71. package/esm/src/resources/servers/sftp.js +153 -0
  72. package/esm/src/resources/servers/types.d.ts +199 -0
  73. package/esm/src/resources/servers/types.d.ts.map +1 -0
  74. package/esm/src/resources/servers/types.js +1 -0
  75. package/esm/src/sse.d.ts +53 -0
  76. package/esm/src/sse.d.ts.map +1 -0
  77. package/esm/src/sse.js +133 -0
  78. package/esm/src/types.d.ts +126 -0
  79. package/esm/src/types.d.ts.map +1 -0
  80. package/esm/src/types.js +21 -0
  81. package/package.json +4 -92
  82. package/script/mod.d.ts +87 -1
  83. package/script/mod.d.ts.map +1 -1
  84. package/script/mod.js +132 -3
  85. package/script/src/client.d.ts +248 -0
  86. package/script/src/client.d.ts.map +1 -0
  87. package/script/src/client.js +239 -0
  88. package/script/src/emitter.d.ts +53 -0
  89. package/script/src/emitter.d.ts.map +1 -0
  90. package/script/src/emitter.js +59 -0
  91. package/script/src/errors.d.ts +42 -0
  92. package/script/src/errors.d.ts.map +1 -0
  93. package/script/src/errors.js +49 -0
  94. package/script/src/http.d.ts +157 -0
  95. package/script/src/http.d.ts.map +1 -0
  96. package/script/src/http.js +321 -0
  97. package/script/src/namespace.d.ts +59 -0
  98. package/script/src/namespace.d.ts.map +1 -0
  99. package/script/src/namespace.js +83 -0
  100. package/script/src/reactive.d.ts +29 -0
  101. package/script/src/reactive.d.ts.map +1 -0
  102. package/script/src/reactive.js +39 -0
  103. package/script/src/resources/account.d.ts +125 -0
  104. package/script/src/resources/account.d.ts.map +1 -0
  105. package/script/src/resources/account.js +158 -0
  106. package/script/src/resources/api-keys.d.ts +116 -0
  107. package/script/src/resources/api-keys.d.ts.map +1 -0
  108. package/script/src/resources/api-keys.js +110 -0
  109. package/script/src/resources/auth.d.ts +57 -0
  110. package/script/src/resources/auth.d.ts.map +1 -0
  111. package/script/src/resources/auth.js +43 -0
  112. package/script/src/resources/eggs.d.ts +238 -0
  113. package/script/src/resources/eggs.d.ts.map +1 -0
  114. package/script/src/resources/eggs.js +193 -0
  115. package/script/src/resources/hosts.d.ts +62 -0
  116. package/script/src/resources/hosts.d.ts.map +1 -0
  117. package/script/src/resources/hosts.js +67 -0
  118. package/script/src/resources/members.d.ts +138 -0
  119. package/script/src/resources/members.d.ts.map +1 -0
  120. package/script/src/resources/members.js +127 -0
  121. package/script/src/resources/nodes.d.ts +397 -0
  122. package/script/src/resources/nodes.d.ts.map +1 -0
  123. package/script/src/resources/nodes.js +362 -0
  124. package/script/src/resources/server-groups.d.ts +150 -0
  125. package/script/src/resources/server-groups.d.ts.map +1 -0
  126. package/script/src/resources/server-groups.js +116 -0
  127. package/script/src/resources/servers/activity.d.ts +120 -0
  128. package/script/src/resources/servers/activity.d.ts.map +1 -0
  129. package/script/src/resources/servers/activity.js +170 -0
  130. package/script/src/resources/servers/allocations.d.ts +125 -0
  131. package/script/src/resources/servers/allocations.d.ts.map +1 -0
  132. package/script/src/resources/servers/allocations.js +142 -0
  133. package/script/src/resources/servers/connection.d.ts +108 -0
  134. package/script/src/resources/servers/connection.d.ts.map +1 -0
  135. package/script/src/resources/servers/connection.js +173 -0
  136. package/script/src/resources/servers/files.d.ts +164 -0
  137. package/script/src/resources/servers/files.d.ts.map +1 -0
  138. package/script/src/resources/servers/files.js +286 -0
  139. package/script/src/resources/servers/index.d.ts +126 -0
  140. package/script/src/resources/servers/index.d.ts.map +1 -0
  141. package/script/src/resources/servers/index.js +139 -0
  142. package/script/src/resources/servers/profiles.d.ts +138 -0
  143. package/script/src/resources/servers/profiles.d.ts.map +1 -0
  144. package/script/src/resources/servers/profiles.js +182 -0
  145. package/script/src/resources/servers/server.d.ts +136 -0
  146. package/script/src/resources/servers/server.d.ts.map +1 -0
  147. package/script/src/resources/servers/server.js +206 -0
  148. package/script/src/resources/servers/sftp.d.ts +147 -0
  149. package/script/src/resources/servers/sftp.d.ts.map +1 -0
  150. package/script/src/resources/servers/sftp.js +158 -0
  151. package/script/src/resources/servers/types.d.ts +199 -0
  152. package/script/src/resources/servers/types.d.ts.map +1 -0
  153. package/script/src/resources/servers/types.js +2 -0
  154. package/script/src/sse.d.ts +53 -0
  155. package/script/src/sse.d.ts.map +1 -0
  156. package/script/src/sse.js +137 -0
  157. package/script/src/types.d.ts +126 -0
  158. package/script/src/types.d.ts.map +1 -0
  159. package/script/src/types.js +25 -0
  160. package/esm/api.d.ts +0 -76
  161. package/esm/api.d.ts.map +0 -1
  162. package/esm/api.js +0 -187
  163. package/esm/components/auth.d.ts +0 -15
  164. package/esm/components/auth.d.ts.map +0 -1
  165. package/esm/components/auth.js +0 -13
  166. package/esm/components/connection/abstract.d.ts +0 -23
  167. package/esm/components/connection/abstract.d.ts.map +0 -1
  168. package/esm/components/connection/abstract.js +0 -43
  169. package/esm/components/connection/sse.d.ts +0 -20
  170. package/esm/components/connection/sse.d.ts.map +0 -1
  171. package/esm/components/connection/sse.js +0 -65
  172. package/esm/components/egg/egg.d.ts +0 -32
  173. package/esm/components/egg/egg.d.ts.map +0 -1
  174. package/esm/components/egg/egg.js +0 -70
  175. package/esm/components/group.d.ts +0 -14
  176. package/esm/components/group.d.ts.map +0 -1
  177. package/esm/components/group.js +0 -33
  178. package/esm/components/member_2.d.ts +0 -69
  179. package/esm/components/member_2.d.ts.map +0 -1
  180. package/esm/components/member_2.js +0 -140
  181. package/esm/components/node.d.ts +0 -78
  182. package/esm/components/node.d.ts.map +0 -1
  183. package/esm/components/node.js +0 -342
  184. package/esm/components/server/activity.d.ts +0 -45
  185. package/esm/components/server/activity.d.ts.map +0 -1
  186. package/esm/components/server/activity.js +0 -158
  187. package/esm/components/server/allocations.d.ts +0 -45
  188. package/esm/components/server/allocations.d.ts.map +0 -1
  189. package/esm/components/server/allocations.js +0 -146
  190. package/esm/components/server/files.d.ts +0 -50
  191. package/esm/components/server/files.d.ts.map +0 -1
  192. package/esm/components/server/files.js +0 -90
  193. package/esm/components/server/power.d.ts +0 -21
  194. package/esm/components/server/power.d.ts.map +0 -1
  195. package/esm/components/server/power.js +0 -43
  196. package/esm/components/server/profiles.d.ts +0 -63
  197. package/esm/components/server/profiles.d.ts.map +0 -1
  198. package/esm/components/server/profiles.js +0 -163
  199. package/esm/components/server/server.d.ts +0 -141
  200. package/esm/components/server/server.d.ts.map +0 -1
  201. package/esm/components/server/server.js +0 -358
  202. package/esm/components/server/sftp.d.ts +0 -31
  203. package/esm/components/server/sftp.d.ts.map +0 -1
  204. package/esm/components/server/sftp.js +0 -84
  205. package/esm/components/server/startup.d.ts +0 -17
  206. package/esm/components/server/startup.d.ts.map +0 -1
  207. package/esm/components/server/startup.js +0 -21
  208. package/esm/components/server/stats.d.ts +0 -19
  209. package/esm/components/server/stats.d.ts.map +0 -1
  210. package/esm/components/server/stats.js +0 -46
  211. package/esm/utils/cache.d.ts +0 -20
  212. package/esm/utils/cache.d.ts.map +0 -1
  213. package/esm/utils/cache.js +0 -66
  214. package/esm/utils/event.d.ts +0 -38
  215. package/esm/utils/event.d.ts.map +0 -1
  216. package/esm/utils/event.js +0 -71
  217. package/esm/utils/object.d.ts +0 -58
  218. package/esm/utils/object.d.ts.map +0 -1
  219. package/esm/utils/object.js +0 -86
  220. package/esm/utils/subscribe.d.ts +0 -37
  221. package/esm/utils/subscribe.d.ts.map +0 -1
  222. package/esm/utils/subscribe.js +0 -29
  223. package/esm/utils/timer.d.ts +0 -13
  224. package/esm/utils/timer.d.ts.map +0 -1
  225. package/esm/utils/timer.js +0 -32
  226. package/esm/utils/units.d.ts +0 -18
  227. package/esm/utils/units.d.ts.map +0 -1
  228. package/esm/utils/units.js +0 -82
  229. package/script/api.d.ts +0 -76
  230. package/script/api.d.ts.map +0 -1
  231. package/script/api.js +0 -192
  232. package/script/components/auth.d.ts +0 -15
  233. package/script/components/auth.d.ts.map +0 -1
  234. package/script/components/auth.js +0 -17
  235. package/script/components/connection/abstract.d.ts +0 -23
  236. package/script/components/connection/abstract.d.ts.map +0 -1
  237. package/script/components/connection/abstract.js +0 -47
  238. package/script/components/connection/sse.d.ts +0 -20
  239. package/script/components/connection/sse.d.ts.map +0 -1
  240. package/script/components/connection/sse.js +0 -69
  241. package/script/components/egg/egg.d.ts +0 -32
  242. package/script/components/egg/egg.d.ts.map +0 -1
  243. package/script/components/egg/egg.js +0 -74
  244. package/script/components/group.d.ts +0 -14
  245. package/script/components/group.d.ts.map +0 -1
  246. package/script/components/group.js +0 -37
  247. package/script/components/member_2.d.ts +0 -69
  248. package/script/components/member_2.d.ts.map +0 -1
  249. package/script/components/member_2.js +0 -146
  250. package/script/components/node.d.ts +0 -78
  251. package/script/components/node.d.ts.map +0 -1
  252. package/script/components/node.js +0 -349
  253. package/script/components/server/activity.d.ts +0 -45
  254. package/script/components/server/activity.d.ts.map +0 -1
  255. package/script/components/server/activity.js +0 -164
  256. package/script/components/server/allocations.d.ts +0 -45
  257. package/script/components/server/allocations.d.ts.map +0 -1
  258. package/script/components/server/allocations.js +0 -152
  259. package/script/components/server/files.d.ts +0 -50
  260. package/script/components/server/files.d.ts.map +0 -1
  261. package/script/components/server/files.js +0 -94
  262. package/script/components/server/power.d.ts +0 -21
  263. package/script/components/server/power.d.ts.map +0 -1
  264. package/script/components/server/power.js +0 -47
  265. package/script/components/server/profiles.d.ts +0 -63
  266. package/script/components/server/profiles.d.ts.map +0 -1
  267. package/script/components/server/profiles.js +0 -168
  268. package/script/components/server/server.d.ts +0 -141
  269. package/script/components/server/server.d.ts.map +0 -1
  270. package/script/components/server/server.js +0 -362
  271. package/script/components/server/sftp.d.ts +0 -31
  272. package/script/components/server/sftp.d.ts.map +0 -1
  273. package/script/components/server/sftp.js +0 -88
  274. package/script/components/server/startup.d.ts +0 -17
  275. package/script/components/server/startup.d.ts.map +0 -1
  276. package/script/components/server/startup.js +0 -25
  277. package/script/components/server/stats.d.ts +0 -19
  278. package/script/components/server/stats.d.ts.map +0 -1
  279. package/script/components/server/stats.js +0 -50
  280. package/script/utils/cache.d.ts +0 -20
  281. package/script/utils/cache.d.ts.map +0 -1
  282. package/script/utils/cache.js +0 -70
  283. package/script/utils/event.d.ts +0 -38
  284. package/script/utils/event.d.ts.map +0 -1
  285. package/script/utils/event.js +0 -75
  286. package/script/utils/object.d.ts +0 -58
  287. package/script/utils/object.d.ts.map +0 -1
  288. package/script/utils/object.js +0 -90
  289. package/script/utils/subscribe.d.ts +0 -37
  290. package/script/utils/subscribe.d.ts.map +0 -1
  291. package/script/utils/subscribe.js +0 -32
  292. package/script/utils/timer.d.ts +0 -13
  293. package/script/utils/timer.d.ts.map +0 -1
  294. package/script/utils/timer.js +0 -36
  295. package/script/utils/units.d.ts +0 -18
  296. package/script/utils/units.d.ts.map +0 -1
  297. package/script/utils/units.js +0 -86
@@ -1,158 +0,0 @@
1
- import { CachedRelation } from '../../utils/cache.js';
2
- import { Member } from '../member_2.js';
3
- import { Node } from '../node.js';
4
- import { Server } from './server.js';
5
- export class ServerActivityLog {
6
- constructor(api, server, response) {
7
- Object.defineProperty(this, "api", {
8
- enumerable: true,
9
- configurable: true,
10
- writable: true,
11
- value: api
12
- });
13
- Object.defineProperty(this, "server", {
14
- enumerable: true,
15
- configurable: true,
16
- writable: true,
17
- value: server
18
- });
19
- Object.defineProperty(this, "response", {
20
- enumerable: true,
21
- configurable: true,
22
- writable: true,
23
- value: response
24
- });
25
- // TODO: update so it uses as a common function to parse Issuer IDs
26
- Object.defineProperty(this, "issuer", {
27
- enumerable: true,
28
- configurable: true,
29
- writable: true,
30
- value: new CachedRelation(() => this.response.issuer_id ? this.api.members.get(this.response.issuer_id) : null)
31
- });
32
- Object.defineProperty(this, "job", {
33
- enumerable: true,
34
- configurable: true,
35
- writable: true,
36
- value: new CachedRelation(() => this.response.job_id ? this.server.getActivityJob(this.response.job_id) : null)
37
- });
38
- // this.issuer = response.issuer; TODO: Implement Activity Log Issuer (Frontend)
39
- if (response.job) {
40
- this.job.setCache(new ServerActivityJob(this.api, this.server, response.job));
41
- }
42
- if (response.issuer) {
43
- this.issuer.setCache(new Member(this.api, response.issuer));
44
- }
45
- }
46
- get id() {
47
- return this.response.id;
48
- }
49
- get ip() {
50
- return this.response.ip;
51
- }
52
- get event() {
53
- return this.response.event;
54
- }
55
- get metadata() {
56
- return this.response.metadata;
57
- }
58
- get created_at() {
59
- return new Date(this.response.created_at);
60
- }
61
- }
62
- export class ServerActivityJob {
63
- constructor(api, server, response) {
64
- Object.defineProperty(this, "api", {
65
- enumerable: true,
66
- configurable: true,
67
- writable: true,
68
- value: api
69
- });
70
- Object.defineProperty(this, "server", {
71
- enumerable: true,
72
- configurable: true,
73
- writable: true,
74
- value: server
75
- });
76
- Object.defineProperty(this, "response", {
77
- enumerable: true,
78
- configurable: true,
79
- writable: true,
80
- value: response
81
- });
82
- Object.defineProperty(this, "node", {
83
- enumerable: true,
84
- configurable: true,
85
- writable: true,
86
- value: new CachedRelation(() => this.response.node_id ? this.api.getNode(this.response.node_id) : null)
87
- });
88
- Object.defineProperty(this, "logs", {
89
- enumerable: true,
90
- configurable: true,
91
- writable: true,
92
- value: void 0
93
- });
94
- if (response.node)
95
- this.node.setCache(new Node(this.api, response.node)); // TODO: Fix type check
96
- this.logs = response.logs.map((v) => new ServerActivityJobLog(this.api, v));
97
- }
98
- get id() {
99
- return this.response.id;
100
- }
101
- get status() {
102
- return this.response.status;
103
- }
104
- get completedAt() {
105
- return this.response.completed_at ? new Date(this.response.completed_at) : null;
106
- }
107
- isCompleted() {
108
- return this.completedAt !== null;
109
- }
110
- get createdAt() {
111
- return new Date(this.response.created_at);
112
- }
113
- get updatedAt() {
114
- return new Date(this.response.updated_at);
115
- }
116
- }
117
- export class ServerActivityJobLog {
118
- constructor(api, response) {
119
- Object.defineProperty(this, "api", {
120
- enumerable: true,
121
- configurable: true,
122
- writable: true,
123
- value: api
124
- });
125
- Object.defineProperty(this, "response", {
126
- enumerable: true,
127
- configurable: true,
128
- writable: true,
129
- value: response
130
- });
131
- Object.defineProperty(this, "node", {
132
- enumerable: true,
133
- configurable: true,
134
- writable: true,
135
- value: new CachedRelation(() => this.response.node_id ? this.api.getNode(this.response.node_id) : null)
136
- });
137
- Object.defineProperty(this, "server", {
138
- enumerable: true,
139
- configurable: true,
140
- writable: true,
141
- value: new CachedRelation(() => this.response.server_id ? this.api.getServer(this.response.server_id) : null)
142
- });
143
- if (response.node)
144
- this.node.setCache(new Node(this.api, response.node)); // TODO: Fix type check
145
- if (response.server) {
146
- this.server.setCache(new Server(this.api, response.server));
147
- }
148
- }
149
- get type() {
150
- return this.response.type;
151
- }
152
- get metadata() {
153
- return this.response.metadata;
154
- }
155
- get created_at() {
156
- return new Date(this.response.created_at);
157
- }
158
- }
@@ -1,45 +0,0 @@
1
- import type { ApiResponse, MeowPanelApi, Page } from '../../api.js';
2
- import { CachedRelation } from '../../utils/cache.js';
3
- import type { AllocationPortResponse, AllocationsResponse, ServerAllocationPortResponse } from './server_2';
4
- import type { Server } from './server.js';
5
- export declare class ServerAllocations {
6
- protected readonly api: MeowPanelApi;
7
- protected readonly server: Server;
8
- protected readonly response: AllocationsResponse;
9
- static getPaged(api: MeowPanelApi, server: Server, page: number): Promise<{
10
- groups: ServerAllocations[];
11
- page: Page;
12
- }>;
13
- static get(api: MeowPanelApi, server: Server, id: string): Promise<ServerAllocations>;
14
- constructor(api: MeowPanelApi, server: Server, response: AllocationsResponse);
15
- get forceOutgoingIp(): boolean | undefined;
16
- readonly ports: ServerAllocationPort[];
17
- }
18
- export declare class ServerAllocationPort {
19
- protected readonly api: MeowPanelApi;
20
- protected readonly server: Server;
21
- protected readonly response: ServerAllocationPortResponse;
22
- constructor(api: MeowPanelApi, server: Server, response: ServerAllocationPortResponse);
23
- updateDescription(description: string): Promise<ApiResponse<unknown>>;
24
- get id(): string;
25
- get description(): string;
26
- readonly meta: CachedRelation<AllocationPort>;
27
- get isPrimary(): boolean;
28
- get createdAt(): string;
29
- get updatedAt(): string;
30
- }
31
- export declare class AllocationPort {
32
- protected readonly ctx: MeowPanelApi;
33
- protected readonly server: Server;
34
- protected readonly response: AllocationPortResponse;
35
- constructor(ctx: MeowPanelApi, server: Server, response: AllocationPortResponse);
36
- get id(): string;
37
- get ip(): string;
38
- get port(): number;
39
- get readyProtocols(): string[];
40
- get is_in_use(): boolean;
41
- get notes(): string | null | undefined;
42
- get createdAt(): string;
43
- get updatedAt(): string;
44
- }
45
- //# sourceMappingURL=allocations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"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,4BAA4B;IAkBnD,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAU5E,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED,SAAgB,IAAI,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAErD,IAAW,SAAS,IAAI,OAAO,CAE9B;IAED,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,IAAW,SAAS,IAAI,MAAM,CAE7B;CACD;AAED,qBAAa,cAAc;IAEzB,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,YAAY;IACpC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM;IACjC,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,sBAAsB;gBAFhC,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,sBAAsB;IAGpD,IAAW,EAAE,IAAI,MAAM,CAEtB;IACD,IAAW,EAAE,IAAI,MAAM,CAEtB;IACD,IAAW,IAAI,IAAI,MAAM,CAExB;IACD,IAAW,cAAc,IAAI,MAAM,EAAE,CAEpC;IACD,IAAW,SAAS,IAAI,OAAO,CAE9B;IACD,IAAW,KAAK,IAAI,MAAM,GAAG,IAAI,GAAG,SAAS,CAE5C;IACD,IAAW,SAAS,IAAI,MAAM,CAE7B;IACD,IAAW,SAAS,IAAI,MAAM,CAE7B;CACD"}
@@ -1,146 +0,0 @@
1
- import { CachedRelation } from '../../utils/cache.js';
2
- export class ServerAllocations {
3
- static async getPaged(api, server, page) {
4
- const response = await api.request('GET', `/v1/servers/${server.id}/allocations`, {
5
- pagination: { page },
6
- });
7
- return {
8
- groups: response.data.map((data) => new ServerAllocations(api, server, data)),
9
- page: response.page,
10
- };
11
- }
12
- static async get(api, server, id) {
13
- const response = await api.request('GET', `/v1/servers/${server.id}/allocations/${id}`);
14
- return new ServerAllocations(api, server, response.data);
15
- }
16
- constructor(api, server, response) {
17
- Object.defineProperty(this, "api", {
18
- enumerable: true,
19
- configurable: true,
20
- writable: true,
21
- value: api
22
- });
23
- Object.defineProperty(this, "server", {
24
- enumerable: true,
25
- configurable: true,
26
- writable: true,
27
- value: server
28
- });
29
- Object.defineProperty(this, "response", {
30
- enumerable: true,
31
- configurable: true,
32
- writable: true,
33
- value: response
34
- });
35
- Object.defineProperty(this, "ports", {
36
- enumerable: true,
37
- configurable: true,
38
- writable: true,
39
- value: void 0
40
- });
41
- this.ports = this.response.ports.map((v) => new ServerAllocationPort(this.api, this.server, v));
42
- }
43
- get forceOutgoingIp() {
44
- return this.response.force_outgoing_ip;
45
- }
46
- }
47
- export class ServerAllocationPort {
48
- constructor(api, server, response) {
49
- Object.defineProperty(this, "api", {
50
- enumerable: true,
51
- configurable: true,
52
- writable: true,
53
- value: api
54
- });
55
- Object.defineProperty(this, "server", {
56
- enumerable: true,
57
- configurable: true,
58
- writable: true,
59
- value: server
60
- });
61
- Object.defineProperty(this, "response", {
62
- enumerable: true,
63
- configurable: true,
64
- writable: true,
65
- value: response
66
- });
67
- Object.defineProperty(this, "meta", {
68
- enumerable: true,
69
- configurable: true,
70
- writable: true,
71
- value: void 0
72
- });
73
- this.meta = new CachedRelation(async () => {
74
- const response = await this.api.request('GET', `/v1/servers/${this.server.id}/allocations/${this.id}`, { params: { include: 'meta' } });
75
- return new AllocationPort(this.api, this.server, response.data.meta);
76
- });
77
- response.meta &&
78
- this.meta.setCache(new AllocationPort(this.api, this.server, response.meta));
79
- }
80
- updateDescription(description) {
81
- return this.api.request('PATCH', `/v1/servers/${this.server.id}/allocations/${this.id}`, {
82
- body: { description },
83
- });
84
- }
85
- get id() {
86
- return this.response.id;
87
- }
88
- get description() {
89
- return this.response.description;
90
- }
91
- get isPrimary() {
92
- return this.response.is_primary;
93
- }
94
- get createdAt() {
95
- return this.response.created_at;
96
- }
97
- get updatedAt() {
98
- return this.response.updated_at;
99
- }
100
- }
101
- export class AllocationPort {
102
- constructor(ctx, server, response) {
103
- Object.defineProperty(this, "ctx", {
104
- enumerable: true,
105
- configurable: true,
106
- writable: true,
107
- value: ctx
108
- });
109
- Object.defineProperty(this, "server", {
110
- enumerable: true,
111
- configurable: true,
112
- writable: true,
113
- value: server
114
- });
115
- Object.defineProperty(this, "response", {
116
- enumerable: true,
117
- configurable: true,
118
- writable: true,
119
- value: response
120
- });
121
- }
122
- get id() {
123
- return this.response.id;
124
- }
125
- get ip() {
126
- return this.response.ip;
127
- }
128
- get port() {
129
- return this.response.port;
130
- }
131
- get readyProtocols() {
132
- return this.response.ready_protocols;
133
- }
134
- get is_in_use() {
135
- return this.response.is_in_use;
136
- }
137
- get notes() {
138
- return this.response.notes;
139
- }
140
- get createdAt() {
141
- return this.response.created_at;
142
- }
143
- get updatedAt() {
144
- return this.response.updated_at;
145
- }
146
- }
@@ -1,50 +0,0 @@
1
- import type { MeowPanelApi } from '../../mod.js';
2
- import type { DirectoryResponse } from './server_2';
3
- import type { Server } from './server.js';
4
- export interface FileEntry {
5
- type: 'file';
6
- mime: {
7
- type: string;
8
- subtype: string;
9
- };
10
- data: ArrayBuffer | null;
11
- }
12
- export type DirectoryEntry = DirectoryResponse;
13
- export interface DirectoryEntries {
14
- type: 'directory';
15
- entries: DirectoryEntry[];
16
- }
17
- export type ListEntry = FileEntry | DirectoryEntries;
18
- export interface GetEntryOptions {
19
- /**
20
- * What mime types are allowed to be returned as content data. Otherwise returns `null` as its data without reading the content.
21
- */
22
- mimeTypes?: string[];
23
- /**
24
- * The maximum size of the file in megabytes. Otherwise returns `null` as its data without reading the content.
25
- */
26
- maxSizeMb?: number;
27
- }
28
- export declare class ServerFileManager {
29
- protected readonly api: MeowPanelApi;
30
- protected readonly server: Server;
31
- private static readonly mimeHeaderName;
32
- private static readonly mimeDirectory;
33
- constructor(api: MeowPanelApi, server: Server);
34
- private static removeFirstSlash;
35
- getEntry(path: string, options?: GetEntryOptions): Promise<ListEntry>;
36
- putContent(path: string, content: ArrayBuffer | string): Promise<void>;
37
- delete(path: string): Promise<void>;
38
- move(root: string, paths: Record<string, string>): Promise<void>;
39
- copy(root: string, paths: Record<string, string>): Promise<void>;
40
- create(root: string, paths: Record<string, {
41
- type: 'file' | 'directory';
42
- }>): Promise<void>;
43
- compress(root: string, paths: string[]): Promise<void>;
44
- decompress(root: string, path: string): Promise<void>;
45
- chmod(root: string, paths: Record<string, {
46
- mode: number;
47
- }>): Promise<void>;
48
- upload(folderPath: string, ...files: File[]): Promise<void>;
49
- }
50
- //# sourceMappingURL=files.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../../src/components/server/files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,SAAS;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,cAAc,EAAE,CAAC;CAC1B;AAED,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,gBAAgB,CAAC;AAErD,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,iBAAiB;IAK5B,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,YAAY;IACpC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM;IALlC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAiB;IACvD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAqB;gBAGtC,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,MAAM;IAGlC,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAKlB,QAAQ,CACpB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,eAAe,GACvB,OAAO,CAAC,SAAS,CAAC;IAkCR,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,MAAM;IAQtD,MAAM,CAAC,IAAI,EAAE,MAAM;IAOnB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAQhD,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAQhD,MAAM,CAClB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;KAAE,CAAC;IASzC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;IAQtC,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;IAQrC,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAQ3D,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE;CAaxD"}
@@ -1,90 +0,0 @@
1
- export class ServerFileManager {
2
- constructor(api, server) {
3
- Object.defineProperty(this, "api", {
4
- enumerable: true,
5
- configurable: true,
6
- writable: true,
7
- value: api
8
- });
9
- Object.defineProperty(this, "server", {
10
- enumerable: true,
11
- configurable: true,
12
- writable: true,
13
- value: server
14
- });
15
- }
16
- static removeFirstSlash(path) {
17
- return path.replace(/^\//, '');
18
- }
19
- // TODO: this could return classes/additional objects to interact with the returned files/directories
20
- async getEntry(path, options) {
21
- const response = await this.server.requestNodeApi('GET', `/files/${ServerFileManager.removeFirstSlash(path)}`, {
22
- params: {
23
- mime_types: options?.mimeTypes?.join(','),
24
- max_size_mb: options?.maxSizeMb?.toString(),
25
- },
26
- });
27
- const mime = response.headers.get(ServerFileManager.mimeHeaderName);
28
- if (!mime)
29
- throw new Error('File has no mime type');
30
- if (mime === ServerFileManager.mimeDirectory) {
31
- const data = await response.json();
32
- return {
33
- type: 'directory',
34
- entries: data,
35
- };
36
- }
37
- const [type, subtype] = mime.split(';');
38
- return {
39
- type: 'file',
40
- mime: {
41
- type,
42
- subtype,
43
- },
44
- data: response.status === 200 ? await response.arrayBuffer() : null,
45
- };
46
- }
47
- async putContent(path, content) {
48
- await this.server.requestNodeApi('PUT', `/files/${ServerFileManager.removeFirstSlash(path)}`, { body: content });
49
- }
50
- async delete(path) {
51
- await this.server.requestNodeApi('DELETE', `/files/${ServerFileManager.removeFirstSlash(path)}`);
52
- }
53
- async move(root, paths) {
54
- await this.server.requestNodeApi('POST', '/files/move', { body: { root, paths } });
55
- }
56
- async copy(root, paths) {
57
- await this.server.requestNodeApi('POST', '/files/copy', { body: { root, paths } });
58
- }
59
- async create(root, paths) {
60
- await this.server.requestNodeApi('POST', '/files/create', { body: { root, paths } });
61
- }
62
- async compress(root, paths) {
63
- await this.server.requestNodeApi('POST', '/files/compress', { body: { root, paths } });
64
- }
65
- async decompress(root, path) {
66
- await this.server.requestNodeApi('POST', '/files/decompress', { body: { root, path } });
67
- }
68
- async chmod(root, paths) {
69
- await this.server.requestNodeApi('POST', '/files/chmod', { body: { root, paths } });
70
- }
71
- async upload(folderPath, ...files) {
72
- const formData = new FormData();
73
- for (const file of files) {
74
- formData.append('files', file);
75
- }
76
- await this.server.requestNodeApi('POST', '/files/upload', { body: formData, params: { directory: folderPath } });
77
- }
78
- }
79
- Object.defineProperty(ServerFileManager, "mimeHeaderName", {
80
- enumerable: true,
81
- configurable: true,
82
- writable: true,
83
- value: 'X-Mime-Type'
84
- });
85
- Object.defineProperty(ServerFileManager, "mimeDirectory", {
86
- enumerable: true,
87
- configurable: true,
88
- writable: true,
89
- value: 'inode/directory'
90
- });
@@ -1,21 +0,0 @@
1
- export type PowerState = 'online' | 'offline' | 'starting' | 'stopping' | 'error' | 'connecting';
2
- export declare class PowerStateEvent {
3
- private readonly value;
4
- constructor(value: PowerState);
5
- /**
6
- * @returns true if the server is powered
7
- */
8
- get isPowered(): boolean;
9
- /**
10
- * @returns true if the connection is established successfully
11
- */
12
- get connected(): boolean;
13
- get isConnecting(): boolean;
14
- get isOnline(): boolean;
15
- get isOffline(): boolean;
16
- get isStarting(): boolean;
17
- get isStopping(): boolean;
18
- get errored(): boolean;
19
- toString(): PowerState;
20
- }
21
- //# sourceMappingURL=power.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"power.d.ts","sourceRoot":"","sources":["../../../src/components/server/power.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GACnB,QAAQ,GACR,SAAS,GACT,UAAU,GACV,UAAU,GACV,OAAO,GACP,YAAY,CAAC;AAEhB,qBAAa,eAAe;IACR,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE,UAAU;IAErD;;OAEG;IACH,IAAW,SAAS,IAAI,OAAO,CAE9B;IAED;;OAEG;IACH,IAAW,SAAS,IAAI,OAAO,CAE9B;IAED,IAAW,YAAY,IAAI,OAAO,CAEjC;IAED,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED,IAAW,SAAS,IAAI,OAAO,CAE9B;IAED,IAAW,UAAU,IAAI,OAAO,CAE/B;IAED,IAAW,UAAU,IAAI,OAAO,CAE/B;IAED,IAAW,OAAO,IAAI,OAAO,CAE5B;IAEM,QAAQ,IAAI,UAAU;CAG7B"}
@@ -1,43 +0,0 @@
1
- export class PowerStateEvent {
2
- constructor(value) {
3
- Object.defineProperty(this, "value", {
4
- enumerable: true,
5
- configurable: true,
6
- writable: true,
7
- value: value
8
- });
9
- }
10
- /**
11
- * @returns true if the server is powered
12
- */
13
- get isPowered() {
14
- return ['online', 'starting', 'stopping'].includes(this.value);
15
- }
16
- /**
17
- * @returns true if the connection is established successfully
18
- */
19
- get connected() {
20
- return !['error', 'connecting'].includes(this.value);
21
- }
22
- get isConnecting() {
23
- return this.value === 'connecting';
24
- }
25
- get isOnline() {
26
- return this.value === 'online';
27
- }
28
- get isOffline() {
29
- return this.value === 'offline';
30
- }
31
- get isStarting() {
32
- return this.value === 'starting';
33
- }
34
- get isStopping() {
35
- return this.value === 'stopping';
36
- }
37
- get errored() {
38
- return this.value === 'error';
39
- }
40
- toString() {
41
- return this.value;
42
- }
43
- }
@@ -1,63 +0,0 @@
1
- import type { Page } from '../../api.js';
2
- import type { MeowPanelApi } from '../../mod.js';
3
- import { CachedRelation } from '../../utils/cache.js';
4
- import { type EventFunction, EventManager, type EventManagerListener } from '../../utils/event.js';
5
- import { UpdatableObject } from '../../utils/object.js';
6
- import type { Subscription } from '../../utils/subscribe.js';
7
- import type { Extended } from '../../utils/types';
8
- import type { ProfileResponse } from './server_2';
9
- import type { Server } from './server.js';
10
- export declare class ServerProfileManager {
11
- protected readonly api: MeowPanelApi;
12
- protected readonly server: Server;
13
- private readonly profiles;
14
- private activeProfile;
15
- constructor(api: MeowPanelApi, server: Server);
16
- addCached(profile: ProfileResponse[]): void;
17
- getPaged(page: number): Promise<{
18
- profiles: ProfileResponse[];
19
- page: Page;
20
- }>;
21
- geAll(): Promise<ServerProfile[]>;
22
- get(id: string): ServerProfile;
23
- getActiveProfile(): ServerProfile | null;
24
- setActiveProfile(profile: ServerProfile): Promise<void>;
25
- create(data: {
26
- name: string;
27
- description?: string | null;
28
- notes?: string | null;
29
- }): Promise<ServerProfile>;
30
- }
31
- export declare class ServerProfile extends UpdatableObject<ProfileResponse, {
32
- folder: CachedRelation<string | undefined>;
33
- }, 'folder'> implements EventManagerListener<ServerProfileEvents>, Subscription<ServerProfile> {
34
- protected readonly manager: ServerProfileManager;
35
- constructor(api: MeowPanelApi, server: Server, manager: ServerProfileManager, response: ProfileResponse);
36
- protected readonly eventManager: EventManager<ServerProfileEvents>;
37
- on<K extends keyof ServerProfileEvents>(event: K, func: EventFunction<ServerProfileEvents, K>): number;
38
- off<K extends keyof ServerProfileEvents>(event: K | number, func?: number | EventFunction<ServerProfileEvents, K>): boolean;
39
- subscribe(fn: (value: ServerProfile) => void): () => void;
40
- protected applyResponse(oldData: Extended<ProfileResponse, {
41
- folder: CachedRelation<string>;
42
- }> | undefined, _newData: ProfileResponse): {
43
- folder: CachedRelation<string | undefined>;
44
- };
45
- get id(): string;
46
- get name(): string;
47
- get description(): string | null;
48
- get notes(): string | null | undefined;
49
- isActive: boolean;
50
- get folder(): CachedRelation<string | undefined>;
51
- updateDetails(details: {
52
- name?: string;
53
- description?: string | null;
54
- notes?: string | null;
55
- }): Promise<void>;
56
- setAsActive(): Promise<void>;
57
- _update(): void;
58
- }
59
- interface ServerProfileEvents {
60
- active: ServerProfile;
61
- }
62
- export {};
63
- //# sourceMappingURL=profiles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../src/components/server/profiles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,KAAK,aAAa,EAAE,YAAY,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BA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