@leavepulse/control-sdk 0.3.40 → 0.3.42
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.
- package/client.ts +11 -0
- package/index.ts +1 -0
- package/models.ts +14 -0
- package/package.json +1 -1
- package/resources/ControlEnvVar.ts +75 -0
- package/resources/ControlHost.ts +11 -0
- package/types.ts +563 -1
package/client.ts
CHANGED
|
@@ -28,6 +28,7 @@ import { ControlDcimStorageNode } from "./resources/ControlDcimStorageNode";
|
|
|
28
28
|
import { ControlEdge } from "./resources/ControlEdge";
|
|
29
29
|
import { ControlEnrollToken } from "./resources/ControlEnrollToken";
|
|
30
30
|
import { ControlEnvGroup } from "./resources/ControlEnvGroup";
|
|
31
|
+
import { ControlEnvVar } from "./resources/ControlEnvVar";
|
|
31
32
|
import { ControlHost } from "./resources/ControlHost";
|
|
32
33
|
import { ControlNode } from "./resources/ControlNode";
|
|
33
34
|
import { ControlProject } from "./resources/ControlProject";
|
|
@@ -252,6 +253,15 @@ export class LeavePulse {
|
|
|
252
253
|
) as ControlEnvGroup;
|
|
253
254
|
}
|
|
254
255
|
|
|
256
|
+
controlenvvar(owner: string, ownerId: string, key: string): ControlEnvVar {
|
|
257
|
+
return this.ctx.cache.ensure(
|
|
258
|
+
"ControlEnvVar",
|
|
259
|
+
key,
|
|
260
|
+
() =>
|
|
261
|
+
new ControlEnvVar({ owner, owner_id: ownerId, key } as never, this.ctx),
|
|
262
|
+
) as ControlEnvVar;
|
|
263
|
+
}
|
|
264
|
+
|
|
255
265
|
controlhost(id: string): ControlHost {
|
|
256
266
|
return this.ctx.cache.ensure(
|
|
257
267
|
"ControlHost",
|
|
@@ -334,6 +344,7 @@ export class LeavePulse {
|
|
|
334
344
|
ControlEdge: (d) => new ControlEdge(d as never, this.ctx),
|
|
335
345
|
ControlEnrollToken: (d) => new ControlEnrollToken(d as never, this.ctx),
|
|
336
346
|
ControlEnvGroup: (d) => new ControlEnvGroup(d as never, this.ctx),
|
|
347
|
+
ControlEnvVar: (d) => new ControlEnvVar(d as never, this.ctx),
|
|
337
348
|
ControlHost: (d) => new ControlHost(d as never, this.ctx),
|
|
338
349
|
ControlNode: (d) => new ControlNode(d as never, this.ctx),
|
|
339
350
|
ControlProject: (d) => new ControlProject(d as never, this.ctx),
|
package/index.ts
CHANGED
|
@@ -24,6 +24,7 @@ export { ControlDcimStorageNode } from "./resources/ControlDcimStorageNode";
|
|
|
24
24
|
export { ControlEdge } from "./resources/ControlEdge";
|
|
25
25
|
export { ControlEnrollToken } from "./resources/ControlEnrollToken";
|
|
26
26
|
export { ControlEnvGroup } from "./resources/ControlEnvGroup";
|
|
27
|
+
export { ControlEnvVar } from "./resources/ControlEnvVar";
|
|
27
28
|
export { ControlHost } from "./resources/ControlHost";
|
|
28
29
|
export { ControlNode } from "./resources/ControlNode";
|
|
29
30
|
export { ControlProject } from "./resources/ControlProject";
|
package/models.ts
CHANGED
|
@@ -17,11 +17,13 @@ export type ApplyDeviceTypeRequest =
|
|
|
17
17
|
components["schemas"]["ApplyDeviceTypeRequest"];
|
|
18
18
|
export type ApplyDeviceTypeResultDTO =
|
|
19
19
|
components["schemas"]["ApplyDeviceTypeResultDTO"];
|
|
20
|
+
export type BridgeDTO = components["schemas"]["BridgeDTO"];
|
|
20
21
|
export type CableDTO = components["schemas"]["CableDTO"];
|
|
21
22
|
export type CableListResponse = components["schemas"]["CableListResponse"];
|
|
22
23
|
export type CableTerminalDTO = components["schemas"]["CableTerminalDTO"];
|
|
23
24
|
export type CableTerminalInput = components["schemas"]["CableTerminalInput"];
|
|
24
25
|
export type CanvasViewDTO = components["schemas"]["CanvasViewDTO"];
|
|
26
|
+
export type CapacityDTO = components["schemas"]["CapacityDTO"];
|
|
25
27
|
export type CfAccountDTO = components["schemas"]["CfAccountDTO"];
|
|
26
28
|
export type CfAccountListResponse =
|
|
27
29
|
components["schemas"]["CfAccountListResponse"];
|
|
@@ -94,6 +96,8 @@ export type DnsTypeSpecListResponse =
|
|
|
94
96
|
export type DockerDfResponse = components["schemas"]["DockerDfResponse"];
|
|
95
97
|
export type DockerPruneRequest = components["schemas"]["DockerPruneRequest"];
|
|
96
98
|
export type DockerPruneResponse = components["schemas"]["DockerPruneResponse"];
|
|
99
|
+
export type DriftDTO = components["schemas"]["DriftDTO"];
|
|
100
|
+
export type DriftListResponse = components["schemas"]["DriftListResponse"];
|
|
97
101
|
export type EdgeDTO = components["schemas"]["EdgeDTO"];
|
|
98
102
|
export type EnrollTokenDTO = components["schemas"]["EnrollTokenDTO"];
|
|
99
103
|
export type EnrollTokenListResponse =
|
|
@@ -101,6 +105,8 @@ export type EnrollTokenListResponse =
|
|
|
101
105
|
export type EnvGroupDTO = components["schemas"]["EnvGroupDTO"];
|
|
102
106
|
export type EnvGroupListResponse =
|
|
103
107
|
components["schemas"]["EnvGroupListResponse"];
|
|
108
|
+
export type EnvVarDTO = components["schemas"]["EnvVarDTO"];
|
|
109
|
+
export type EnvVarListResponse = components["schemas"]["EnvVarListResponse"];
|
|
104
110
|
export type FeedDTO = components["schemas"]["FeedDTO"];
|
|
105
111
|
export type FeedListResponse = components["schemas"]["FeedListResponse"];
|
|
106
112
|
export type FirewallActionResponse =
|
|
@@ -113,6 +119,9 @@ export type FirewallRulesResponse =
|
|
|
113
119
|
export type HostCapabilitiesDTO = components["schemas"]["HostCapabilitiesDTO"];
|
|
114
120
|
export type HostDTO = components["schemas"]["HostDTO"];
|
|
115
121
|
export type HostListResponse = components["schemas"]["HostListResponse"];
|
|
122
|
+
export type HypervisorDTO = components["schemas"]["HypervisorDTO"];
|
|
123
|
+
export type HypervisorListResponse =
|
|
124
|
+
components["schemas"]["HypervisorListResponse"];
|
|
116
125
|
export type ImportDeviceTypesRequest =
|
|
117
126
|
components["schemas"]["ImportDeviceTypesRequest"];
|
|
118
127
|
export type ImportDeviceTypesResponse =
|
|
@@ -177,6 +186,9 @@ export type SetCanvasViewRequest =
|
|
|
177
186
|
components["schemas"]["SetCanvasViewRequest"];
|
|
178
187
|
export type SetDeviceTypePortsRequest =
|
|
179
188
|
components["schemas"]["SetDeviceTypePortsRequest"];
|
|
189
|
+
export type SetEnvVarRequest = components["schemas"]["SetEnvVarRequest"];
|
|
190
|
+
export type SetHostEndpointRequest =
|
|
191
|
+
components["schemas"]["SetHostEndpointRequest"];
|
|
180
192
|
export type SetPositionRequest = components["schemas"]["SetPositionRequest"];
|
|
181
193
|
export type SetRoleRequest = components["schemas"]["SetRoleRequest"];
|
|
182
194
|
export type SignAcceptanceRequest =
|
|
@@ -231,6 +243,8 @@ export type VerifyAcceptanceItemInput =
|
|
|
231
243
|
components["schemas"]["VerifyAcceptanceItemInput"];
|
|
232
244
|
export type VerifyAcceptanceRequest =
|
|
233
245
|
components["schemas"]["VerifyAcceptanceRequest"];
|
|
246
|
+
export type VmDTO = components["schemas"]["VmDTO"];
|
|
247
|
+
export type VmListResponse = components["schemas"]["VmListResponse"];
|
|
234
248
|
export type VolumeSpec = components["schemas"]["VolumeSpec"];
|
|
235
249
|
export type ZoneDTO = components["schemas"]["ZoneDTO"];
|
|
236
250
|
export type ZoneListResponse = components["schemas"]["ZoneListResponse"];
|
package/package.json
CHANGED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// Generated from the LeavePulse contract. Do not edit.
|
|
2
|
+
import { Resource } from "../runtime/resource";
|
|
3
|
+
import { fetchCachedOrThrow } from "../runtime/etag-store";
|
|
4
|
+
import type * as models from "../models";
|
|
5
|
+
import type { ClientContext } from "../client";
|
|
6
|
+
|
|
7
|
+
type Data = { id: string | number } & Record<string, unknown> & {
|
|
8
|
+
owner?: string | number;
|
|
9
|
+
owner_id?: string | number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export class ControlEnvVar extends Resource<Data> {
|
|
13
|
+
constructor(
|
|
14
|
+
data: Data,
|
|
15
|
+
private readonly ctx: ClientContext,
|
|
16
|
+
) {
|
|
17
|
+
super(data);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** control.env_vars.list */
|
|
21
|
+
async controlEnvVarsList(
|
|
22
|
+
owner: string,
|
|
23
|
+
ownerId: string,
|
|
24
|
+
params?: { reveal?: boolean },
|
|
25
|
+
): Promise<models.EnvVarListResponse> {
|
|
26
|
+
return fetchCachedOrThrow<models.EnvVarListResponse>(
|
|
27
|
+
this.ctx.transport,
|
|
28
|
+
this.ctx.etagStore,
|
|
29
|
+
{
|
|
30
|
+
method: "GET",
|
|
31
|
+
path: `/v1/control/env/${owner}/${ownerId}/vars`,
|
|
32
|
+
query: { reveal: params?.reveal },
|
|
33
|
+
},
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** control.env_vars.get */
|
|
38
|
+
async controlEnvVarsGet(
|
|
39
|
+
owner: string,
|
|
40
|
+
ownerId: string,
|
|
41
|
+
params?: { reveal?: boolean },
|
|
42
|
+
): Promise<models.EnvVarDTO> {
|
|
43
|
+
return fetchCachedOrThrow<models.EnvVarDTO>(
|
|
44
|
+
this.ctx.transport,
|
|
45
|
+
this.ctx.etagStore,
|
|
46
|
+
{
|
|
47
|
+
method: "GET",
|
|
48
|
+
path: `/v1/control/env/${owner}/${ownerId}/vars/${this.id}`,
|
|
49
|
+
query: { reveal: params?.reveal },
|
|
50
|
+
},
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** control.env_vars.delete */
|
|
55
|
+
async envVarsDelete(owner: string, ownerId: string): Promise<this> {
|
|
56
|
+
await this.ctx.transport.request({
|
|
57
|
+
method: "DELETE",
|
|
58
|
+
path: `/v1/control/env/${owner}/${ownerId}/vars/${this.id}`,
|
|
59
|
+
});
|
|
60
|
+
return this;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** control.env_vars.set */
|
|
64
|
+
async envVarsSet(
|
|
65
|
+
owner: string,
|
|
66
|
+
ownerId: string,
|
|
67
|
+
body: models.SetEnvVarRequest,
|
|
68
|
+
): Promise<models.EnvVarDTO> {
|
|
69
|
+
return this.ctx.transport.request<models.EnvVarDTO>({
|
|
70
|
+
method: "PUT",
|
|
71
|
+
path: `/v1/control/env/${owner}/${ownerId}/vars/${this.id}`,
|
|
72
|
+
body,
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}
|
package/resources/ControlHost.ts
CHANGED
|
@@ -128,6 +128,17 @@ export class ControlHost extends Resource<Data> {
|
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
/** control.hosts.set_endpoint */
|
|
132
|
+
async hostsSetEndpoint(
|
|
133
|
+
body: models.SetHostEndpointRequest,
|
|
134
|
+
): Promise<models.HostDTO> {
|
|
135
|
+
return this.ctx.transport.request<models.HostDTO>({
|
|
136
|
+
method: "PATCH",
|
|
137
|
+
path: `/v1/control/hosts/${this.id}/endpoint`,
|
|
138
|
+
body,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
131
142
|
/** control.hosts.install_exporter */
|
|
132
143
|
async hostsInstallExporter(
|
|
133
144
|
body: models.InstallExporterRequest,
|
package/types.ts
CHANGED
|
@@ -1145,6 +1145,42 @@ export interface paths {
|
|
|
1145
1145
|
patch?: never;
|
|
1146
1146
|
trace?: never;
|
|
1147
1147
|
};
|
|
1148
|
+
"/v1/control/env/{owner}/{owner_id}/vars": {
|
|
1149
|
+
parameters: {
|
|
1150
|
+
query?: never;
|
|
1151
|
+
header?: never;
|
|
1152
|
+
path?: never;
|
|
1153
|
+
cookie?: never;
|
|
1154
|
+
};
|
|
1155
|
+
/** List variables */
|
|
1156
|
+
get: operations["control.env_vars.list"];
|
|
1157
|
+
put?: never;
|
|
1158
|
+
post?: never;
|
|
1159
|
+
delete?: never;
|
|
1160
|
+
options?: never;
|
|
1161
|
+
head?: never;
|
|
1162
|
+
patch?: never;
|
|
1163
|
+
trace?: never;
|
|
1164
|
+
};
|
|
1165
|
+
"/v1/control/env/{owner}/{owner_id}/vars/{key}": {
|
|
1166
|
+
parameters: {
|
|
1167
|
+
query?: never;
|
|
1168
|
+
header?: never;
|
|
1169
|
+
path?: never;
|
|
1170
|
+
cookie?: never;
|
|
1171
|
+
};
|
|
1172
|
+
/** Read one variable */
|
|
1173
|
+
get: operations["control.env_vars.get"];
|
|
1174
|
+
/** Create or update one variable */
|
|
1175
|
+
put: operations["control.env_vars.set"];
|
|
1176
|
+
post?: never;
|
|
1177
|
+
/** Remove one variable */
|
|
1178
|
+
delete: operations["control.env_vars.delete"];
|
|
1179
|
+
options?: never;
|
|
1180
|
+
head?: never;
|
|
1181
|
+
patch?: never;
|
|
1182
|
+
trace?: never;
|
|
1183
|
+
};
|
|
1148
1184
|
"/v1/control/graph/canvas-view": {
|
|
1149
1185
|
parameters: {
|
|
1150
1186
|
query?: never;
|
|
@@ -1437,6 +1473,23 @@ export interface paths {
|
|
|
1437
1473
|
patch?: never;
|
|
1438
1474
|
trace?: never;
|
|
1439
1475
|
};
|
|
1476
|
+
"/v1/control/hosts/{host_id}/endpoint": {
|
|
1477
|
+
parameters: {
|
|
1478
|
+
query?: never;
|
|
1479
|
+
header?: never;
|
|
1480
|
+
path?: never;
|
|
1481
|
+
cookie?: never;
|
|
1482
|
+
};
|
|
1483
|
+
get?: never;
|
|
1484
|
+
put?: never;
|
|
1485
|
+
post?: never;
|
|
1486
|
+
delete?: never;
|
|
1487
|
+
options?: never;
|
|
1488
|
+
head?: never;
|
|
1489
|
+
/** Set where peers dial this host for WireGuard */
|
|
1490
|
+
patch: operations["control.hosts.set_endpoint"];
|
|
1491
|
+
trace?: never;
|
|
1492
|
+
};
|
|
1440
1493
|
"/v1/control/hosts/{host_id}/exporters": {
|
|
1441
1494
|
parameters: {
|
|
1442
1495
|
query?: never;
|
|
@@ -1505,6 +1558,40 @@ export interface paths {
|
|
|
1505
1558
|
patch?: never;
|
|
1506
1559
|
trace?: never;
|
|
1507
1560
|
};
|
|
1561
|
+
"/v1/control/hypervisors": {
|
|
1562
|
+
parameters: {
|
|
1563
|
+
query?: never;
|
|
1564
|
+
header?: never;
|
|
1565
|
+
path?: never;
|
|
1566
|
+
cookie?: never;
|
|
1567
|
+
};
|
|
1568
|
+
/** List hypervisors */
|
|
1569
|
+
get: operations["control.hypervisors.list"];
|
|
1570
|
+
put?: never;
|
|
1571
|
+
post?: never;
|
|
1572
|
+
delete?: never;
|
|
1573
|
+
options?: never;
|
|
1574
|
+
head?: never;
|
|
1575
|
+
patch?: never;
|
|
1576
|
+
trace?: never;
|
|
1577
|
+
};
|
|
1578
|
+
"/v1/control/hypervisors/{node}/capacity": {
|
|
1579
|
+
parameters: {
|
|
1580
|
+
query?: never;
|
|
1581
|
+
header?: never;
|
|
1582
|
+
path?: never;
|
|
1583
|
+
cookie?: never;
|
|
1584
|
+
};
|
|
1585
|
+
/** What is left on one hypervisor */
|
|
1586
|
+
get: operations["control.hypervisors.capacity"];
|
|
1587
|
+
put?: never;
|
|
1588
|
+
post?: never;
|
|
1589
|
+
delete?: never;
|
|
1590
|
+
options?: never;
|
|
1591
|
+
head?: never;
|
|
1592
|
+
patch?: never;
|
|
1593
|
+
trace?: never;
|
|
1594
|
+
};
|
|
1508
1595
|
"/v1/control/services": {
|
|
1509
1596
|
parameters: {
|
|
1510
1597
|
query?: never;
|
|
@@ -1609,6 +1696,40 @@ export interface paths {
|
|
|
1609
1696
|
patch?: never;
|
|
1610
1697
|
trace?: never;
|
|
1611
1698
|
};
|
|
1699
|
+
"/v1/control/vm-drift": {
|
|
1700
|
+
parameters: {
|
|
1701
|
+
query?: never;
|
|
1702
|
+
header?: never;
|
|
1703
|
+
path?: never;
|
|
1704
|
+
cookie?: never;
|
|
1705
|
+
};
|
|
1706
|
+
/** Records vs metal */
|
|
1707
|
+
get: operations["control.vm_drift.list"];
|
|
1708
|
+
put?: never;
|
|
1709
|
+
post?: never;
|
|
1710
|
+
delete?: never;
|
|
1711
|
+
options?: never;
|
|
1712
|
+
head?: never;
|
|
1713
|
+
patch?: never;
|
|
1714
|
+
trace?: never;
|
|
1715
|
+
};
|
|
1716
|
+
"/v1/control/vms": {
|
|
1717
|
+
parameters: {
|
|
1718
|
+
query?: never;
|
|
1719
|
+
header?: never;
|
|
1720
|
+
path?: never;
|
|
1721
|
+
cookie?: never;
|
|
1722
|
+
};
|
|
1723
|
+
/** List VMs on the hypervisors */
|
|
1724
|
+
get: operations["control.vms.list"];
|
|
1725
|
+
put?: never;
|
|
1726
|
+
post?: never;
|
|
1727
|
+
delete?: never;
|
|
1728
|
+
options?: never;
|
|
1729
|
+
head?: never;
|
|
1730
|
+
patch?: never;
|
|
1731
|
+
trace?: never;
|
|
1732
|
+
};
|
|
1612
1733
|
}
|
|
1613
1734
|
export type webhooks = Record<string, never>;
|
|
1614
1735
|
export interface components {
|
|
@@ -1703,6 +1824,13 @@ export interface components {
|
|
|
1703
1824
|
device: components["schemas"]["DeviceDTO"];
|
|
1704
1825
|
ports_added: number;
|
|
1705
1826
|
};
|
|
1827
|
+
/** BridgeDTO */
|
|
1828
|
+
BridgeDTO: {
|
|
1829
|
+
cidr: string;
|
|
1830
|
+
gateway: string;
|
|
1831
|
+
name: string;
|
|
1832
|
+
ports: string;
|
|
1833
|
+
};
|
|
1706
1834
|
/** CableDTO */
|
|
1707
1835
|
CableDTO: {
|
|
1708
1836
|
asset_tag: string;
|
|
@@ -1741,6 +1869,18 @@ export interface components {
|
|
|
1741
1869
|
pan_y: number;
|
|
1742
1870
|
zoom: number;
|
|
1743
1871
|
};
|
|
1872
|
+
/** CapacityDTO */
|
|
1873
|
+
CapacityDTO: {
|
|
1874
|
+
cores: number;
|
|
1875
|
+
foreign: number;
|
|
1876
|
+
mem_committed_foreign: number;
|
|
1877
|
+
mem_free_bytes: number;
|
|
1878
|
+
mem_total_bytes: number;
|
|
1879
|
+
mem_used_bytes: number;
|
|
1880
|
+
node: string;
|
|
1881
|
+
ours: number;
|
|
1882
|
+
utilisation: number;
|
|
1883
|
+
};
|
|
1744
1884
|
/** CfAccountDTO */
|
|
1745
1885
|
CfAccountDTO: {
|
|
1746
1886
|
auth_method: string;
|
|
@@ -2072,7 +2212,7 @@ export interface components {
|
|
|
2072
2212
|
host_id: string;
|
|
2073
2213
|
/** @default */
|
|
2074
2214
|
tag?: string;
|
|
2075
|
-
/** @default
|
|
2215
|
+
/** @default true */
|
|
2076
2216
|
zero_downtime?: boolean;
|
|
2077
2217
|
};
|
|
2078
2218
|
/** DeploymentDTO */
|
|
@@ -2247,6 +2387,21 @@ export interface components {
|
|
|
2247
2387
|
reclaimed_bytes: number;
|
|
2248
2388
|
target: string;
|
|
2249
2389
|
};
|
|
2390
|
+
/** DriftDTO */
|
|
2391
|
+
DriftDTO: {
|
|
2392
|
+
detail: string;
|
|
2393
|
+
kind: string;
|
|
2394
|
+
severity: string;
|
|
2395
|
+
subject: string;
|
|
2396
|
+
};
|
|
2397
|
+
/** DriftListResponse */
|
|
2398
|
+
DriftListResponse: {
|
|
2399
|
+
blocking: number;
|
|
2400
|
+
items: components["schemas"]["DriftDTO"][];
|
|
2401
|
+
shared_segments?: {
|
|
2402
|
+
[key: string]: string[];
|
|
2403
|
+
};
|
|
2404
|
+
};
|
|
2250
2405
|
/** EdgeDTO */
|
|
2251
2406
|
EdgeDTO: {
|
|
2252
2407
|
dst_node: string;
|
|
@@ -2287,6 +2442,17 @@ export interface components {
|
|
|
2287
2442
|
EnvGroupListResponse: {
|
|
2288
2443
|
items: components["schemas"]["EnvGroupDTO"][];
|
|
2289
2444
|
};
|
|
2445
|
+
/** EnvVarDTO */
|
|
2446
|
+
EnvVarDTO: {
|
|
2447
|
+
key: string;
|
|
2448
|
+
kind: string;
|
|
2449
|
+
secret: boolean;
|
|
2450
|
+
value: string;
|
|
2451
|
+
};
|
|
2452
|
+
/** EnvVarListResponse */
|
|
2453
|
+
EnvVarListResponse: {
|
|
2454
|
+
items: components["schemas"]["EnvVarDTO"][];
|
|
2455
|
+
};
|
|
2290
2456
|
/** FeedDTO */
|
|
2291
2457
|
FeedDTO: {
|
|
2292
2458
|
breaker: string;
|
|
@@ -2353,11 +2519,33 @@ export interface components {
|
|
|
2353
2519
|
online: boolean;
|
|
2354
2520
|
slug: string;
|
|
2355
2521
|
tags: string[];
|
|
2522
|
+
/** @default */
|
|
2523
|
+
wg_endpoint: string;
|
|
2356
2524
|
};
|
|
2357
2525
|
/** HostListResponse */
|
|
2358
2526
|
HostListResponse: {
|
|
2359
2527
|
items: components["schemas"]["HostDTO"][];
|
|
2360
2528
|
};
|
|
2529
|
+
/** HypervisorDTO */
|
|
2530
|
+
HypervisorDTO: {
|
|
2531
|
+
api_host: string;
|
|
2532
|
+
blast_radius?: string[];
|
|
2533
|
+
bridges: components["schemas"]["BridgeDTO"][];
|
|
2534
|
+
cores: number;
|
|
2535
|
+
last_error: string;
|
|
2536
|
+
last_seen_at: number;
|
|
2537
|
+
mem_total_bytes: number;
|
|
2538
|
+
mem_used_bytes: number;
|
|
2539
|
+
node: string;
|
|
2540
|
+
uptime_seconds: number;
|
|
2541
|
+
vm_count: number;
|
|
2542
|
+
vm_count_ours: number;
|
|
2543
|
+
};
|
|
2544
|
+
/** HypervisorListResponse */
|
|
2545
|
+
HypervisorListResponse: {
|
|
2546
|
+
failures?: string[][];
|
|
2547
|
+
items: components["schemas"]["HypervisorDTO"][];
|
|
2548
|
+
};
|
|
2361
2549
|
/** ImportDeviceTypesRequest */
|
|
2362
2550
|
ImportDeviceTypesRequest: {
|
|
2363
2551
|
documents: components["schemas"]["ImportDocumentInput"][];
|
|
@@ -2735,6 +2923,10 @@ export interface components {
|
|
|
2735
2923
|
latest_digest: string;
|
|
2736
2924
|
/** @default 0 */
|
|
2737
2925
|
latest_digest_checked_at: number;
|
|
2926
|
+
/** @default legacy */
|
|
2927
|
+
management: string;
|
|
2928
|
+
/** @default */
|
|
2929
|
+
management_next_step: string;
|
|
2738
2930
|
name: string;
|
|
2739
2931
|
provides?: string[];
|
|
2740
2932
|
requires?: Record<string, never>[];
|
|
@@ -2794,6 +2986,16 @@ export interface components {
|
|
|
2794
2986
|
SetDeviceTypePortsRequest: {
|
|
2795
2987
|
ports: components["schemas"]["DeviceTypePortInput"][];
|
|
2796
2988
|
};
|
|
2989
|
+
/** SetEnvVarRequest */
|
|
2990
|
+
SetEnvVarRequest: {
|
|
2991
|
+
kind?: string | null;
|
|
2992
|
+
secret?: boolean | null;
|
|
2993
|
+
value: string;
|
|
2994
|
+
};
|
|
2995
|
+
/** SetHostEndpointRequest */
|
|
2996
|
+
SetHostEndpointRequest: {
|
|
2997
|
+
wg_endpoint: string;
|
|
2998
|
+
};
|
|
2797
2999
|
/** SetPositionRequest */
|
|
2798
3000
|
SetPositionRequest: {
|
|
2799
3001
|
pos_x: number;
|
|
@@ -3070,6 +3272,7 @@ export interface components {
|
|
|
3070
3272
|
env_meta?: {
|
|
3071
3273
|
[key: string]: Record<string, never>;
|
|
3072
3274
|
} | null;
|
|
3275
|
+
env_remove?: string[] | null;
|
|
3073
3276
|
/** @default */
|
|
3074
3277
|
name?: string;
|
|
3075
3278
|
};
|
|
@@ -3159,6 +3362,27 @@ export interface components {
|
|
|
3159
3362
|
VerifyAcceptanceRequest: {
|
|
3160
3363
|
items?: components["schemas"]["VerifyAcceptanceItemInput"][];
|
|
3161
3364
|
};
|
|
3365
|
+
/** VmDTO */
|
|
3366
|
+
VmDTO: {
|
|
3367
|
+
addresses: string[];
|
|
3368
|
+
cores: number;
|
|
3369
|
+
host_id: string;
|
|
3370
|
+
hostname: string;
|
|
3371
|
+
mem_bytes: number;
|
|
3372
|
+
name: string;
|
|
3373
|
+
node: string;
|
|
3374
|
+
ownership: string;
|
|
3375
|
+
reason: string;
|
|
3376
|
+
status: string;
|
|
3377
|
+
tags: string[];
|
|
3378
|
+
vmid: number;
|
|
3379
|
+
};
|
|
3380
|
+
/** VmListResponse */
|
|
3381
|
+
VmListResponse: {
|
|
3382
|
+
items: components["schemas"]["VmDTO"][];
|
|
3383
|
+
ours: number;
|
|
3384
|
+
total: number;
|
|
3385
|
+
};
|
|
3162
3386
|
/** VolumeSpec */
|
|
3163
3387
|
VolumeSpec: {
|
|
3164
3388
|
mount: string;
|
|
@@ -7327,6 +7551,179 @@ export interface operations {
|
|
|
7327
7551
|
};
|
|
7328
7552
|
};
|
|
7329
7553
|
};
|
|
7554
|
+
"control.env_vars.list": {
|
|
7555
|
+
parameters: {
|
|
7556
|
+
query?: {
|
|
7557
|
+
reveal?: boolean;
|
|
7558
|
+
};
|
|
7559
|
+
header?: never;
|
|
7560
|
+
path: {
|
|
7561
|
+
owner: string;
|
|
7562
|
+
owner_id: string;
|
|
7563
|
+
};
|
|
7564
|
+
cookie?: never;
|
|
7565
|
+
};
|
|
7566
|
+
requestBody?: never;
|
|
7567
|
+
responses: {
|
|
7568
|
+
/** @description Request fulfilled, document follows */
|
|
7569
|
+
200: {
|
|
7570
|
+
headers: {
|
|
7571
|
+
[name: string]: unknown;
|
|
7572
|
+
};
|
|
7573
|
+
content: {
|
|
7574
|
+
"application/json": components["schemas"]["EnvVarListResponse"];
|
|
7575
|
+
};
|
|
7576
|
+
};
|
|
7577
|
+
/** @description Bad request syntax or unsupported method */
|
|
7578
|
+
400: {
|
|
7579
|
+
headers: {
|
|
7580
|
+
[name: string]: unknown;
|
|
7581
|
+
};
|
|
7582
|
+
content: {
|
|
7583
|
+
"application/json": {
|
|
7584
|
+
detail: string;
|
|
7585
|
+
extra?:
|
|
7586
|
+
| null
|
|
7587
|
+
| {
|
|
7588
|
+
[key: string]: unknown;
|
|
7589
|
+
}
|
|
7590
|
+
| unknown[];
|
|
7591
|
+
status_code: number;
|
|
7592
|
+
};
|
|
7593
|
+
};
|
|
7594
|
+
};
|
|
7595
|
+
};
|
|
7596
|
+
};
|
|
7597
|
+
"control.env_vars.get": {
|
|
7598
|
+
parameters: {
|
|
7599
|
+
query?: {
|
|
7600
|
+
reveal?: boolean;
|
|
7601
|
+
};
|
|
7602
|
+
header?: never;
|
|
7603
|
+
path: {
|
|
7604
|
+
owner: string;
|
|
7605
|
+
owner_id: string;
|
|
7606
|
+
key: string;
|
|
7607
|
+
};
|
|
7608
|
+
cookie?: never;
|
|
7609
|
+
};
|
|
7610
|
+
requestBody?: never;
|
|
7611
|
+
responses: {
|
|
7612
|
+
/** @description Request fulfilled, document follows */
|
|
7613
|
+
200: {
|
|
7614
|
+
headers: {
|
|
7615
|
+
[name: string]: unknown;
|
|
7616
|
+
};
|
|
7617
|
+
content: {
|
|
7618
|
+
"application/json": components["schemas"]["EnvVarDTO"];
|
|
7619
|
+
};
|
|
7620
|
+
};
|
|
7621
|
+
/** @description Bad request syntax or unsupported method */
|
|
7622
|
+
400: {
|
|
7623
|
+
headers: {
|
|
7624
|
+
[name: string]: unknown;
|
|
7625
|
+
};
|
|
7626
|
+
content: {
|
|
7627
|
+
"application/json": {
|
|
7628
|
+
detail: string;
|
|
7629
|
+
extra?:
|
|
7630
|
+
| null
|
|
7631
|
+
| {
|
|
7632
|
+
[key: string]: unknown;
|
|
7633
|
+
}
|
|
7634
|
+
| unknown[];
|
|
7635
|
+
status_code: number;
|
|
7636
|
+
};
|
|
7637
|
+
};
|
|
7638
|
+
};
|
|
7639
|
+
};
|
|
7640
|
+
};
|
|
7641
|
+
"control.env_vars.set": {
|
|
7642
|
+
parameters: {
|
|
7643
|
+
query?: never;
|
|
7644
|
+
header?: never;
|
|
7645
|
+
path: {
|
|
7646
|
+
owner: string;
|
|
7647
|
+
owner_id: string;
|
|
7648
|
+
key: string;
|
|
7649
|
+
};
|
|
7650
|
+
cookie?: never;
|
|
7651
|
+
};
|
|
7652
|
+
requestBody: {
|
|
7653
|
+
content: {
|
|
7654
|
+
"application/json": components["schemas"]["SetEnvVarRequest"];
|
|
7655
|
+
};
|
|
7656
|
+
};
|
|
7657
|
+
responses: {
|
|
7658
|
+
/** @description Request fulfilled, document follows */
|
|
7659
|
+
200: {
|
|
7660
|
+
headers: {
|
|
7661
|
+
[name: string]: unknown;
|
|
7662
|
+
};
|
|
7663
|
+
content: {
|
|
7664
|
+
"application/json": components["schemas"]["EnvVarDTO"];
|
|
7665
|
+
};
|
|
7666
|
+
};
|
|
7667
|
+
/** @description Bad request syntax or unsupported method */
|
|
7668
|
+
400: {
|
|
7669
|
+
headers: {
|
|
7670
|
+
[name: string]: unknown;
|
|
7671
|
+
};
|
|
7672
|
+
content: {
|
|
7673
|
+
"application/json": {
|
|
7674
|
+
detail: string;
|
|
7675
|
+
extra?:
|
|
7676
|
+
| null
|
|
7677
|
+
| {
|
|
7678
|
+
[key: string]: unknown;
|
|
7679
|
+
}
|
|
7680
|
+
| unknown[];
|
|
7681
|
+
status_code: number;
|
|
7682
|
+
};
|
|
7683
|
+
};
|
|
7684
|
+
};
|
|
7685
|
+
};
|
|
7686
|
+
};
|
|
7687
|
+
"control.env_vars.delete": {
|
|
7688
|
+
parameters: {
|
|
7689
|
+
query?: never;
|
|
7690
|
+
header?: never;
|
|
7691
|
+
path: {
|
|
7692
|
+
owner: string;
|
|
7693
|
+
owner_id: string;
|
|
7694
|
+
key: string;
|
|
7695
|
+
};
|
|
7696
|
+
cookie?: never;
|
|
7697
|
+
};
|
|
7698
|
+
requestBody?: never;
|
|
7699
|
+
responses: {
|
|
7700
|
+
/** @description Request fulfilled, nothing follows */
|
|
7701
|
+
204: {
|
|
7702
|
+
headers: {
|
|
7703
|
+
[name: string]: unknown;
|
|
7704
|
+
};
|
|
7705
|
+
content?: never;
|
|
7706
|
+
};
|
|
7707
|
+
/** @description Bad request syntax or unsupported method */
|
|
7708
|
+
400: {
|
|
7709
|
+
headers: {
|
|
7710
|
+
[name: string]: unknown;
|
|
7711
|
+
};
|
|
7712
|
+
content: {
|
|
7713
|
+
"application/json": {
|
|
7714
|
+
detail: string;
|
|
7715
|
+
extra?:
|
|
7716
|
+
| null
|
|
7717
|
+
| {
|
|
7718
|
+
[key: string]: unknown;
|
|
7719
|
+
}
|
|
7720
|
+
| unknown[];
|
|
7721
|
+
status_code: number;
|
|
7722
|
+
};
|
|
7723
|
+
};
|
|
7724
|
+
};
|
|
7725
|
+
};
|
|
7726
|
+
};
|
|
7330
7727
|
"control.graph.canvas_view.get": {
|
|
7331
7728
|
parameters: {
|
|
7332
7729
|
query?: never;
|
|
@@ -8122,6 +8519,50 @@ export interface operations {
|
|
|
8122
8519
|
};
|
|
8123
8520
|
};
|
|
8124
8521
|
};
|
|
8522
|
+
"control.hosts.set_endpoint": {
|
|
8523
|
+
parameters: {
|
|
8524
|
+
query?: never;
|
|
8525
|
+
header?: never;
|
|
8526
|
+
path: {
|
|
8527
|
+
host_id: string;
|
|
8528
|
+
};
|
|
8529
|
+
cookie?: never;
|
|
8530
|
+
};
|
|
8531
|
+
requestBody: {
|
|
8532
|
+
content: {
|
|
8533
|
+
"application/json": components["schemas"]["SetHostEndpointRequest"];
|
|
8534
|
+
};
|
|
8535
|
+
};
|
|
8536
|
+
responses: {
|
|
8537
|
+
/** @description Request fulfilled, document follows */
|
|
8538
|
+
200: {
|
|
8539
|
+
headers: {
|
|
8540
|
+
[name: string]: unknown;
|
|
8541
|
+
};
|
|
8542
|
+
content: {
|
|
8543
|
+
"application/json": components["schemas"]["HostDTO"];
|
|
8544
|
+
};
|
|
8545
|
+
};
|
|
8546
|
+
/** @description Bad request syntax or unsupported method */
|
|
8547
|
+
400: {
|
|
8548
|
+
headers: {
|
|
8549
|
+
[name: string]: unknown;
|
|
8550
|
+
};
|
|
8551
|
+
content: {
|
|
8552
|
+
"application/json": {
|
|
8553
|
+
detail: string;
|
|
8554
|
+
extra?:
|
|
8555
|
+
| null
|
|
8556
|
+
| {
|
|
8557
|
+
[key: string]: unknown;
|
|
8558
|
+
}
|
|
8559
|
+
| unknown[];
|
|
8560
|
+
status_code: number;
|
|
8561
|
+
};
|
|
8562
|
+
};
|
|
8563
|
+
};
|
|
8564
|
+
};
|
|
8565
|
+
};
|
|
8125
8566
|
"control.hosts.install_exporter": {
|
|
8126
8567
|
parameters: {
|
|
8127
8568
|
query?: never;
|
|
@@ -8294,6 +8735,66 @@ export interface operations {
|
|
|
8294
8735
|
};
|
|
8295
8736
|
};
|
|
8296
8737
|
};
|
|
8738
|
+
"control.hypervisors.list": {
|
|
8739
|
+
parameters: {
|
|
8740
|
+
query?: never;
|
|
8741
|
+
header?: never;
|
|
8742
|
+
path?: never;
|
|
8743
|
+
cookie?: never;
|
|
8744
|
+
};
|
|
8745
|
+
requestBody?: never;
|
|
8746
|
+
responses: {
|
|
8747
|
+
/** @description Request fulfilled, document follows */
|
|
8748
|
+
200: {
|
|
8749
|
+
headers: {
|
|
8750
|
+
[name: string]: unknown;
|
|
8751
|
+
};
|
|
8752
|
+
content: {
|
|
8753
|
+
"application/json": components["schemas"]["HypervisorListResponse"];
|
|
8754
|
+
};
|
|
8755
|
+
};
|
|
8756
|
+
};
|
|
8757
|
+
};
|
|
8758
|
+
"control.hypervisors.capacity": {
|
|
8759
|
+
parameters: {
|
|
8760
|
+
query?: never;
|
|
8761
|
+
header?: never;
|
|
8762
|
+
path: {
|
|
8763
|
+
node: string;
|
|
8764
|
+
};
|
|
8765
|
+
cookie?: never;
|
|
8766
|
+
};
|
|
8767
|
+
requestBody?: never;
|
|
8768
|
+
responses: {
|
|
8769
|
+
/** @description Request fulfilled, document follows */
|
|
8770
|
+
200: {
|
|
8771
|
+
headers: {
|
|
8772
|
+
[name: string]: unknown;
|
|
8773
|
+
};
|
|
8774
|
+
content: {
|
|
8775
|
+
"application/json": components["schemas"]["CapacityDTO"];
|
|
8776
|
+
};
|
|
8777
|
+
};
|
|
8778
|
+
/** @description Bad request syntax or unsupported method */
|
|
8779
|
+
400: {
|
|
8780
|
+
headers: {
|
|
8781
|
+
[name: string]: unknown;
|
|
8782
|
+
};
|
|
8783
|
+
content: {
|
|
8784
|
+
"application/json": {
|
|
8785
|
+
detail: string;
|
|
8786
|
+
extra?:
|
|
8787
|
+
| null
|
|
8788
|
+
| {
|
|
8789
|
+
[key: string]: unknown;
|
|
8790
|
+
}
|
|
8791
|
+
| unknown[];
|
|
8792
|
+
status_code: number;
|
|
8793
|
+
};
|
|
8794
|
+
};
|
|
8795
|
+
};
|
|
8796
|
+
};
|
|
8797
|
+
};
|
|
8297
8798
|
"control.services.list": {
|
|
8298
8799
|
parameters: {
|
|
8299
8800
|
query?: never;
|
|
@@ -8610,4 +9111,65 @@ export interface operations {
|
|
|
8610
9111
|
};
|
|
8611
9112
|
};
|
|
8612
9113
|
};
|
|
9114
|
+
"control.vm_drift.list": {
|
|
9115
|
+
parameters: {
|
|
9116
|
+
query?: never;
|
|
9117
|
+
header?: never;
|
|
9118
|
+
path?: never;
|
|
9119
|
+
cookie?: never;
|
|
9120
|
+
};
|
|
9121
|
+
requestBody?: never;
|
|
9122
|
+
responses: {
|
|
9123
|
+
/** @description Request fulfilled, document follows */
|
|
9124
|
+
200: {
|
|
9125
|
+
headers: {
|
|
9126
|
+
[name: string]: unknown;
|
|
9127
|
+
};
|
|
9128
|
+
content: {
|
|
9129
|
+
"application/json": components["schemas"]["DriftListResponse"];
|
|
9130
|
+
};
|
|
9131
|
+
};
|
|
9132
|
+
};
|
|
9133
|
+
};
|
|
9134
|
+
"control.vms.list": {
|
|
9135
|
+
parameters: {
|
|
9136
|
+
query?: {
|
|
9137
|
+
node?: string | null;
|
|
9138
|
+
ours?: boolean;
|
|
9139
|
+
};
|
|
9140
|
+
header?: never;
|
|
9141
|
+
path?: never;
|
|
9142
|
+
cookie?: never;
|
|
9143
|
+
};
|
|
9144
|
+
requestBody?: never;
|
|
9145
|
+
responses: {
|
|
9146
|
+
/** @description Request fulfilled, document follows */
|
|
9147
|
+
200: {
|
|
9148
|
+
headers: {
|
|
9149
|
+
[name: string]: unknown;
|
|
9150
|
+
};
|
|
9151
|
+
content: {
|
|
9152
|
+
"application/json": components["schemas"]["VmListResponse"];
|
|
9153
|
+
};
|
|
9154
|
+
};
|
|
9155
|
+
/** @description Bad request syntax or unsupported method */
|
|
9156
|
+
400: {
|
|
9157
|
+
headers: {
|
|
9158
|
+
[name: string]: unknown;
|
|
9159
|
+
};
|
|
9160
|
+
content: {
|
|
9161
|
+
"application/json": {
|
|
9162
|
+
detail: string;
|
|
9163
|
+
extra?:
|
|
9164
|
+
| null
|
|
9165
|
+
| {
|
|
9166
|
+
[key: string]: unknown;
|
|
9167
|
+
}
|
|
9168
|
+
| unknown[];
|
|
9169
|
+
status_code: number;
|
|
9170
|
+
};
|
|
9171
|
+
};
|
|
9172
|
+
};
|
|
9173
|
+
};
|
|
9174
|
+
};
|
|
8613
9175
|
}
|