@nilovonjs/hcloud-js 1.0.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 (62) hide show
  1. package/README.md +90 -0
  2. package/package.json +70 -0
  3. package/src/apis/actions/index.ts +113 -0
  4. package/src/apis/actions/schemas.ts +59 -0
  5. package/src/apis/actions/types.ts +77 -0
  6. package/src/apis/certificates/index.ts +326 -0
  7. package/src/apis/certificates/schemas.ts +140 -0
  8. package/src/apis/certificates/types.ts +176 -0
  9. package/src/apis/common/schemas.ts +19 -0
  10. package/src/apis/dns/index.ts +961 -0
  11. package/src/apis/dns/schemas.ts +437 -0
  12. package/src/apis/dns/types.ts +397 -0
  13. package/src/apis/firewalls/index.ts +469 -0
  14. package/src/apis/firewalls/schemas.ts +274 -0
  15. package/src/apis/firewalls/types.ts +205 -0
  16. package/src/apis/floating-ips/index.ts +466 -0
  17. package/src/apis/floating-ips/schemas.ts +203 -0
  18. package/src/apis/floating-ips/types.ts +207 -0
  19. package/src/apis/images/index.ts +195 -0
  20. package/src/apis/images/schemas.ts +113 -0
  21. package/src/apis/images/types.ts +124 -0
  22. package/src/apis/isos/index.ts +91 -0
  23. package/src/apis/isos/schemas.ts +43 -0
  24. package/src/apis/isos/types.ts +60 -0
  25. package/src/apis/load-balancers/index.ts +892 -0
  26. package/src/apis/load-balancers/schemas.ts +561 -0
  27. package/src/apis/load-balancers/types.ts +361 -0
  28. package/src/apis/locations/index.ts +176 -0
  29. package/src/apis/locations/schemas.ts +83 -0
  30. package/src/apis/locations/types.ts +113 -0
  31. package/src/apis/networks/index.ts +544 -0
  32. package/src/apis/networks/schemas.ts +279 -0
  33. package/src/apis/networks/types.ts +243 -0
  34. package/src/apis/placement-groups/index.ts +212 -0
  35. package/src/apis/placement-groups/schemas.ts +90 -0
  36. package/src/apis/placement-groups/types.ts +99 -0
  37. package/src/apis/pricing/index.ts +42 -0
  38. package/src/apis/pricing/schemas.ts +93 -0
  39. package/src/apis/pricing/types.ts +71 -0
  40. package/src/apis/primary-ips/index.ts +467 -0
  41. package/src/apis/primary-ips/schemas.ts +221 -0
  42. package/src/apis/primary-ips/types.ts +221 -0
  43. package/src/apis/server-types/index.ts +93 -0
  44. package/src/apis/server-types/schemas.ts +29 -0
  45. package/src/apis/server-types/types.ts +43 -0
  46. package/src/apis/servers/index.ts +378 -0
  47. package/src/apis/servers/schemas.ts +771 -0
  48. package/src/apis/servers/types.ts +538 -0
  49. package/src/apis/ssh-keys/index.ts +204 -0
  50. package/src/apis/ssh-keys/schemas.ts +84 -0
  51. package/src/apis/ssh-keys/types.ts +106 -0
  52. package/src/apis/volumes/index.ts +452 -0
  53. package/src/apis/volumes/schemas.ts +195 -0
  54. package/src/apis/volumes/types.ts +197 -0
  55. package/src/auth/index.ts +26 -0
  56. package/src/base/index.ts +10 -0
  57. package/src/client/index.ts +388 -0
  58. package/src/config/index.ts +34 -0
  59. package/src/errors/index.ts +38 -0
  60. package/src/index.ts +799 -0
  61. package/src/types/index.ts +37 -0
  62. package/src/validation/index.ts +109 -0
@@ -0,0 +1,538 @@
1
+ /**
2
+ * Types for Hetzner Cloud Servers API
3
+ * Types are inferred from Zod schemas
4
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-list-servers
5
+ */
6
+
7
+ // biome-ignore assist/source/organizeImports: we need to import the schemas first
8
+ import {
9
+ serverStatusSchema,
10
+ serverSchema,
11
+ serverTypeSchema,
12
+ locationSchema,
13
+ datacenterSchema,
14
+ networkSchema,
15
+ publicNetSchema,
16
+ privateNetSchema,
17
+ isoSchema,
18
+ backupWindowSchema,
19
+ serverProtectionSchema,
20
+ listServersResponseSchema,
21
+ createServerRequestSchema,
22
+ createServerResponseSchema,
23
+ getServerResponseSchema,
24
+ updateServerRequestSchema,
25
+ updateServerResponseSchema,
26
+ deleteServerResponseSchema,
27
+ getServerMetricsResponseSchema,
28
+ serverMetricsSchema,
29
+ serverMetricsTimeSeriesValueSchema,
30
+ serverActionSchema,
31
+ serverImageSchema,
32
+ listServerActionsResponseSchema,
33
+ getServerActionResponseSchema,
34
+ powerOnServerResponseSchema,
35
+ powerOffServerResponseSchema,
36
+ rebootServerResponseSchema,
37
+ resetServerResponseSchema,
38
+ shutdownServerResponseSchema,
39
+ attachISOToServerRequestSchema,
40
+ attachISOToServerResponseSchema,
41
+ detachISOFromServerResponseSchema,
42
+ enableRescueModeRequestSchema,
43
+ enableRescueModeResponseSchema,
44
+ disableRescueModeResponseSchema,
45
+ createImageFromServerRequestSchema,
46
+ createImageFromServerResponseSchema,
47
+ rebuildServerFromImageRequestSchema,
48
+ rebuildServerFromImageResponseSchema,
49
+ changeServerProtectionRequestSchema,
50
+ changeServerProtectionResponseSchema,
51
+ changeServerTypeRequestSchema,
52
+ changeServerTypeResponseSchema,
53
+ enableBackupsRequestSchema,
54
+ enableBackupsResponseSchema,
55
+ disableBackupsResponseSchema,
56
+ attachServerToNetworkRequestSchema,
57
+ attachServerToNetworkResponseSchema,
58
+ detachServerFromNetworkRequestSchema,
59
+ detachServerFromNetworkResponseSchema,
60
+ changeAliasIPsOfNetworkRequestSchema,
61
+ changeAliasIPsOfNetworkResponseSchema,
62
+ changeServerReverseDNSRequestSchema,
63
+ changeServerReverseDNSResponseSchema,
64
+ requestConsoleForServerRequestSchema,
65
+ requestConsoleForServerResponseSchema,
66
+ resetRootPasswordResponseSchema,
67
+ addServerToPlacementGroupRequestSchema,
68
+ addServerToPlacementGroupResponseSchema,
69
+ removeServerFromPlacementGroupRequestSchema,
70
+ removeServerFromPlacementGroupResponseSchema,
71
+ } from "../../apis/servers/schemas";
72
+ import type { z } from "zod";
73
+ import type { paginationMetaSchema } from "../../apis/common/schemas";
74
+
75
+ /**
76
+ * Server status values
77
+ */
78
+ export type ServerStatus = z.infer<typeof serverStatusSchema>;
79
+
80
+ /**
81
+ * Server type information
82
+ */
83
+ export type ServerType = z.infer<typeof serverTypeSchema>;
84
+
85
+ /**
86
+ * Server Image information
87
+ */
88
+ export type ServerImage = z.infer<typeof serverImageSchema>;
89
+
90
+ /**
91
+ * Location information
92
+ */
93
+ export type Location = z.infer<typeof locationSchema>;
94
+
95
+ /**
96
+ * Datacenter information
97
+ */
98
+ export type Datacenter = z.infer<typeof datacenterSchema>;
99
+
100
+ /**
101
+ * Network information
102
+ */
103
+ export type Network = z.infer<typeof networkSchema>;
104
+
105
+ /**
106
+ * Public Net information
107
+ */
108
+ export type PublicNet = z.infer<typeof publicNetSchema>;
109
+
110
+ /**
111
+ * Private Net information
112
+ */
113
+ export type PrivateNet = z.infer<typeof privateNetSchema>;
114
+
115
+ /**
116
+ * ISO information
117
+ */
118
+ export type ISO = z.infer<typeof isoSchema>;
119
+
120
+ /**
121
+ * Backup window information
122
+ */
123
+ export type BackupWindow = z.infer<typeof backupWindowSchema>;
124
+
125
+ /**
126
+ * Server protection settings
127
+ */
128
+ export type ServerProtection = z.infer<typeof serverProtectionSchema>;
129
+
130
+ /**
131
+ * Hetzner Cloud Server
132
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-list-servers
133
+ */
134
+ export type Server = z.infer<typeof serverSchema>;
135
+
136
+ /**
137
+ * Pagination metadata
138
+ * @see https://docs.hetzner.cloud/reference/cloud#pagination
139
+ */
140
+ export type PaginationMeta = z.infer<typeof paginationMetaSchema>;
141
+
142
+ /**
143
+ * List Servers query parameters
144
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-list-servers
145
+ */
146
+ export interface ListServersParams {
147
+ /**
148
+ * Can be used to filter Servers by their name. The response will only contain the Server matching the specified name.
149
+ */
150
+ name?: string;
151
+ /**
152
+ * Can be used to filter Servers by labels. The response will only contain Servers matching the label selector.
153
+ * @see https://docs.hetzner.cloud/reference/cloud#label-selector
154
+ */
155
+ label_selector?: string;
156
+ /**
157
+ * Can be used multiple times. Choices: id, id:asc, id:desc, name, name:asc, name:desc, created, created:asc, created:desc
158
+ * @see https://docs.hetzner.cloud/reference/cloud#sorting
159
+ */
160
+ sort?: string | string[];
161
+ /**
162
+ * Can be used multiple times. The response will only contain Servers matching the status.
163
+ * Choices: running, initializing, starting, stopping, off, deleting, migrating, rebuilding, unknown
164
+ */
165
+ status?: ServerStatus | ServerStatus[];
166
+ /**
167
+ * Page number to return. For more information, see [Pagination](https://docs.hetzner.cloud/reference/cloud#pagination).
168
+ */
169
+ page?: number;
170
+ /**
171
+ * Maximum number of entries returned per page. For more information, see [Pagination](https://docs.hetzner.cloud/reference/cloud#pagination).
172
+ */
173
+ per_page?: number;
174
+ }
175
+
176
+ /**
177
+ * List Servers response
178
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-list-servers
179
+ */
180
+ export type ListServersResponse = z.infer<typeof listServersResponseSchema>;
181
+
182
+ /**
183
+ * Create Server request parameters
184
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-create-a-server
185
+ */
186
+ export type CreateServerParams = z.infer<typeof createServerRequestSchema>;
187
+
188
+ /**
189
+ * Create Server response
190
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-create-a-server
191
+ */
192
+ export type CreateServerResponse = z.infer<typeof createServerResponseSchema>;
193
+
194
+ /**
195
+ * Get Server response
196
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-get-a-server
197
+ */
198
+ export type GetServerResponse = z.infer<typeof getServerResponseSchema>;
199
+
200
+ /**
201
+ * Update Server request parameters
202
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-update-a-server
203
+ */
204
+ export type UpdateServerParams = z.infer<typeof updateServerRequestSchema>;
205
+
206
+ /**
207
+ * Update Server response
208
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-update-a-server
209
+ */
210
+ export type UpdateServerResponse = z.infer<typeof updateServerResponseSchema>;
211
+
212
+ /**
213
+ * Delete Server response
214
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-delete-a-server
215
+ */
216
+ export type DeleteServerResponse = z.infer<typeof deleteServerResponseSchema>;
217
+
218
+ /**
219
+ * Server Metrics query parameters
220
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-get-metrics-for-a-server
221
+ */
222
+ export interface GetServerMetricsParams {
223
+ /**
224
+ * Type of metrics to get. Can be one or multiple of: cpu, disk, network
225
+ */
226
+ type: Array<"cpu" | "disk" | "network"> | "cpu" | "disk" | "network";
227
+ /**
228
+ * Start of period to get Metrics for (ISO 8601 format)
229
+ */
230
+ start: string;
231
+ /**
232
+ * End of period to get Metrics for (ISO 8601 format)
233
+ */
234
+ end: string;
235
+ /**
236
+ * Resolution of results in seconds
237
+ */
238
+ step?: number;
239
+ }
240
+
241
+ /**
242
+ * Server Metrics time series value
243
+ */
244
+ export type ServerMetricsTimeSeriesValue = z.infer<typeof serverMetricsTimeSeriesValueSchema>;
245
+
246
+ /**
247
+ * Server Metrics
248
+ */
249
+ export type ServerMetrics = z.infer<typeof serverMetricsSchema>;
250
+
251
+ /**
252
+ * Get Server Metrics response
253
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-get-metrics-for-a-server
254
+ */
255
+ export type GetServerMetricsResponse = z.infer<typeof getServerMetricsResponseSchema>;
256
+
257
+ /**
258
+ * Action information
259
+ */
260
+ export type ServerAction = z.infer<typeof serverActionSchema>;
261
+
262
+ /**
263
+ * List Server Actions query parameters
264
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-list-actions-for-a-server
265
+ */
266
+ export interface ListServerActionsParams {
267
+ /**
268
+ * Can be used multiple times. Choices: id, id:asc, id:desc, command, command:asc, command:desc, status, status:asc, status:desc, progress, progress:asc, progress:desc, started, started:asc, started:desc, finished, finished:asc, finished:desc
269
+ * @see https://docs.hetzner.cloud/reference/cloud#sorting
270
+ */
271
+ sort?: string | string[];
272
+ /**
273
+ * Can be used to filter Actions by status. The response will only contain Actions matching the status.
274
+ */
275
+ status?: string | string[];
276
+ /**
277
+ * Page number to return. For more information, see [Pagination](https://docs.hetzner.cloud/reference/cloud#pagination).
278
+ */
279
+ page?: number;
280
+ /**
281
+ * Maximum number of entries returned per page. For more information, see [Pagination](https://docs.hetzner.cloud/reference/cloud#pagination).
282
+ */
283
+ per_page?: number;
284
+ }
285
+
286
+ /**
287
+ * List Server Actions response
288
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-list-actions-for-a-server
289
+ */
290
+ export type ListServerActionsResponse = z.infer<typeof listServerActionsResponseSchema>;
291
+
292
+ /**
293
+ * Get Server Action response
294
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-get-an-action-for-a-server
295
+ */
296
+ export type GetServerActionResponse = z.infer<typeof getServerActionResponseSchema>;
297
+
298
+ /**
299
+ * Power On Server response
300
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-power-on-a-server
301
+ */
302
+ export type PowerOnServerResponse = z.infer<typeof powerOnServerResponseSchema>;
303
+
304
+ /**
305
+ * Power Off Server response
306
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-power-off-a-server
307
+ */
308
+ export type PowerOffServerResponse = z.infer<typeof powerOffServerResponseSchema>;
309
+
310
+ /**
311
+ * Reboot Server response
312
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-soft-reboot-a-server
313
+ */
314
+ export type RebootServerResponse = z.infer<typeof rebootServerResponseSchema>;
315
+
316
+ /**
317
+ * Reset Server response
318
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-reset-a-server
319
+ */
320
+ export type ResetServerResponse = z.infer<typeof resetServerResponseSchema>;
321
+
322
+ /**
323
+ * Shutdown Server response
324
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-shutdown-a-server
325
+ */
326
+ export type ShutdownServerResponse = z.infer<typeof shutdownServerResponseSchema>;
327
+
328
+ /**
329
+ * Attach ISO to Server parameters
330
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-attach-an-iso-to-a-server
331
+ */
332
+ export type AttachISOToServerParams = z.infer<typeof attachISOToServerRequestSchema>;
333
+
334
+ /**
335
+ * Attach ISO to Server response
336
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-attach-an-iso-to-a-server
337
+ */
338
+ export type AttachISOToServerResponse = z.infer<typeof attachISOToServerResponseSchema>;
339
+
340
+ /**
341
+ * Detach ISO from Server response
342
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-detach-an-iso-from-a-server
343
+ */
344
+ export type DetachISOFromServerResponse = z.infer<typeof detachISOFromServerResponseSchema>;
345
+
346
+ /**
347
+ * Enable Rescue Mode parameters
348
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-enable-rescue-mode-for-a-server
349
+ */
350
+ export type EnableRescueModeParams = z.infer<typeof enableRescueModeRequestSchema>;
351
+
352
+ /**
353
+ * Enable Rescue Mode response
354
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-enable-rescue-mode-for-a-server
355
+ */
356
+ export type EnableRescueModeResponse = z.infer<typeof enableRescueModeResponseSchema>;
357
+
358
+ /**
359
+ * Disable Rescue Mode response
360
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-disable-rescue-mode-for-a-server
361
+ */
362
+ export type DisableRescueModeResponse = z.infer<typeof disableRescueModeResponseSchema>;
363
+
364
+ /**
365
+ * Create Image from Server parameters
366
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-create-image-from-a-server
367
+ */
368
+ export type CreateImageFromServerParams = z.infer<typeof createImageFromServerRequestSchema>;
369
+
370
+ /**
371
+ * Create Image from Server response
372
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-create-image-from-a-server
373
+ */
374
+ export type CreateImageFromServerResponse = z.infer<typeof createImageFromServerResponseSchema>;
375
+
376
+ /**
377
+ * Rebuild Server from Image parameters
378
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-rebuild-a-server-from-an-image
379
+ */
380
+ export type RebuildServerFromImageParams = z.infer<typeof rebuildServerFromImageRequestSchema>;
381
+
382
+ /**
383
+ * Rebuild Server from Image response
384
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-rebuild-a-server-from-an-image
385
+ */
386
+ export type RebuildServerFromImageResponse = z.infer<
387
+ typeof rebuildServerFromImageResponseSchema
388
+ >;
389
+
390
+ /**
391
+ * Change Server Protection parameters
392
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-change-server-protection
393
+ */
394
+ export type ChangeServerProtectionParams = z.infer<
395
+ typeof changeServerProtectionRequestSchema
396
+ >;
397
+
398
+ /**
399
+ * Change Server Protection response
400
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-change-server-protection
401
+ */
402
+ export type ChangeServerProtectionResponse = z.infer<
403
+ typeof changeServerProtectionResponseSchema
404
+ >;
405
+
406
+ /**
407
+ * Change Server Type parameters
408
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-change-the-type-of-a-server
409
+ */
410
+ export type ChangeServerTypeParams = z.infer<typeof changeServerTypeRequestSchema>;
411
+
412
+ /**
413
+ * Change Server Type response
414
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-change-the-type-of-a-server
415
+ */
416
+ export type ChangeServerTypeResponse = z.infer<typeof changeServerTypeResponseSchema>;
417
+
418
+ /**
419
+ * Enable Backups parameters
420
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-enable-and-configure-backups-for-a-server
421
+ */
422
+ export type EnableBackupsParams = z.infer<typeof enableBackupsRequestSchema>;
423
+
424
+ /**
425
+ * Enable Backups response
426
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-enable-and-configure-backups-for-a-server
427
+ */
428
+ export type EnableBackupsResponse = z.infer<typeof enableBackupsResponseSchema>;
429
+
430
+ /**
431
+ * Disable Backups response
432
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-disable-backups-for-a-server
433
+ */
434
+ export type DisableBackupsResponse = z.infer<typeof disableBackupsResponseSchema>;
435
+
436
+ /**
437
+ * Attach Server to Network parameters
438
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-attach-a-server-to-a-network
439
+ */
440
+ export type AttachServerToNetworkParams = z.infer<typeof attachServerToNetworkRequestSchema>;
441
+
442
+ /**
443
+ * Attach Server to Network response
444
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-attach-a-server-to-a-network
445
+ */
446
+ export type AttachServerToNetworkResponse = z.infer<typeof attachServerToNetworkResponseSchema>;
447
+
448
+ /**
449
+ * Detach Server from Network parameters
450
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-detach-a-server-from-a-network
451
+ */
452
+ export type DetachServerFromNetworkParams = z.infer<
453
+ typeof detachServerFromNetworkRequestSchema
454
+ >;
455
+
456
+ /**
457
+ * Detach Server from Network response
458
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-detach-a-server-from-a-network
459
+ */
460
+ export type DetachServerFromNetworkResponse = z.infer<
461
+ typeof detachServerFromNetworkResponseSchema
462
+ >;
463
+
464
+ /**
465
+ * Change alias IPs of Network parameters
466
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-change-alias-ips-of-a-network
467
+ */
468
+ export type ChangeAliasIPsOfNetworkParams = z.infer<
469
+ typeof changeAliasIPsOfNetworkRequestSchema
470
+ >;
471
+
472
+ /**
473
+ * Change alias IPs of Network response
474
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-change-alias-ips-of-a-network
475
+ */
476
+ export type ChangeAliasIPsOfNetworkResponse = z.infer<
477
+ typeof changeAliasIPsOfNetworkResponseSchema
478
+ >;
479
+
480
+ /**
481
+ * Change reverse DNS entry for Server parameters
482
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-change-reverse-dns-entry-for-this-server
483
+ */
484
+ export type ChangeServerReverseDNSParams = z.infer<typeof changeServerReverseDNSRequestSchema>;
485
+
486
+ /**
487
+ * Change reverse DNS entry for Server response
488
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-change-reverse-dns-entry-for-this-server
489
+ */
490
+ export type ChangeServerReverseDNSResponse = z.infer<
491
+ typeof changeServerReverseDNSResponseSchema
492
+ >;
493
+
494
+ /**
495
+ * Request Console for Server parameters
496
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-request-console-for-a-server
497
+ */
498
+ export type RequestConsoleForServerParams = z.infer<
499
+ typeof requestConsoleForServerRequestSchema
500
+ >;
501
+
502
+ /**
503
+ * Request Console for Server response
504
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-request-console-for-a-server
505
+ */
506
+ export type RequestConsoleForServerResponse = z.infer<
507
+ typeof requestConsoleForServerResponseSchema
508
+ >;
509
+
510
+ /**
511
+ * Reset root Password response
512
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-reset-root-password-of-a-server
513
+ */
514
+ export type ResetRootPasswordResponse = z.infer<typeof resetRootPasswordResponseSchema>;
515
+
516
+ /**
517
+ * Add Server to Placement Group parameters
518
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-add-a-server-to-a-placement-group
519
+ */
520
+ export type AddServerToPlacementGroupParams = z.infer<
521
+ typeof addServerToPlacementGroupRequestSchema
522
+ >;
523
+
524
+ /**
525
+ * Add Server to Placement Group response
526
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-add-a-server-to-a-placement-group
527
+ */
528
+ export type AddServerToPlacementGroupResponse = z.infer<
529
+ typeof addServerToPlacementGroupResponseSchema
530
+ >;
531
+
532
+ /**
533
+ * Remove Server from Placement Group response
534
+ * @see https://docs.hetzner.cloud/reference/cloud#servers-remove-from-placement-group
535
+ */
536
+ export type RemoveServerFromPlacementGroupResponse = z.infer<
537
+ typeof removeServerFromPlacementGroupResponseSchema
538
+ >;