@cycleplatform/api-client-typescript 0.1.9 → 0.1.10
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/README.md +5 -8
- package/package.json +3 -4
- package/src/generated/types.ts +156 -22
- /package/dist/{index.js → index.mjs} +0 -0
- /package/dist/{index.umd.cjs → index.umd.js} +0 -0
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ _This is an auto-generated API client based on the [OpenAPI Spec for Cycle](http
|
|
|
8
8
|
|
|
9
9
|
This client utilizes [openapi-typescript](https://github.com/drwpow/openapi-typescript) to generate the type definitions for our client. The client itself is a pre-built [openapi-fetch](https://github.com/drwpow/openapi-typescript/tree/main/packages/openapi-fetch) client for convenience.
|
|
10
10
|
|
|
11
|
-
Every request should be typesafe, and only endpoints described in the spec will be valid in Typescript as the first parameter to `
|
|
11
|
+
Every request should be typesafe, and only endpoints described in the spec will be valid in Typescript as the first parameter to `GET`, `POST`, `PATCH` etc.
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
@@ -30,8 +30,7 @@ import {
|
|
|
30
30
|
setAuthToken("secret_MY-API-KEY");
|
|
31
31
|
setHubScope("myhubid");
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
const resp = await client.get("/v1/containers/{containerId}", {
|
|
33
|
+
const resp = await client.GET("/v1/containers/{containerId}", {
|
|
35
34
|
params: { query: {}, path: { containerId: "abc123" } },
|
|
36
35
|
});
|
|
37
36
|
|
|
@@ -47,24 +46,22 @@ import {
|
|
|
47
46
|
client,
|
|
48
47
|
setAuthToken,
|
|
49
48
|
setHubScope,
|
|
50
|
-
setBaseUrl
|
|
49
|
+
setBaseUrl,
|
|
51
50
|
} from "@cycleplatform/api-client-typescript";
|
|
52
51
|
|
|
53
52
|
// Add this
|
|
54
|
-
setBaseUrl("https://api.my-company.cycle.io")
|
|
53
|
+
setBaseUrl("https://api.my-company.cycle.io");
|
|
55
54
|
|
|
56
55
|
setAuthToken("secret_MY-API-KEY");
|
|
57
56
|
setHubScope("myhubid");
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
const resp = await client.get("/v1/containers/{containerId}", {
|
|
58
|
+
const resp = await client.GET("/v1/containers/{containerId}", {
|
|
61
59
|
params: { query: {}, path: { containerId: "abc123" } },
|
|
62
60
|
});
|
|
63
61
|
|
|
64
62
|
console.log(test.data, test.error);
|
|
65
63
|
```
|
|
66
64
|
|
|
67
|
-
|
|
68
65
|
## Development
|
|
69
66
|
|
|
70
67
|
### Cloning submodules
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cycleplatform/api-client-typescript",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "A Cycle API client for the web/nodejs",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
|
-
"type": "module",
|
|
8
7
|
"exports": {
|
|
9
8
|
".": {
|
|
10
9
|
"import": "./dist/index.js",
|
|
@@ -36,11 +35,11 @@
|
|
|
36
35
|
},
|
|
37
36
|
"homepage": "https://github.com/cycleplatform/api-client-typescript#readme",
|
|
38
37
|
"dependencies": {
|
|
39
|
-
"openapi-fetch": "0.7.
|
|
38
|
+
"openapi-fetch": "0.7.2"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"msw": "1.2.3",
|
|
43
|
-
"openapi-typescript": "6.
|
|
42
|
+
"openapi-typescript": "6.4.4",
|
|
44
43
|
"typescript": "^5.0.4",
|
|
45
44
|
"vite": "4.4.7",
|
|
46
45
|
"vitest": "0.33.0"
|
package/src/generated/types.ts
CHANGED
|
@@ -1802,10 +1802,9 @@ export interface components {
|
|
|
1802
1802
|
};
|
|
1803
1803
|
/**
|
|
1804
1804
|
* NativeProviderIdentifier
|
|
1805
|
-
* @description An identifier for
|
|
1806
|
-
* @enum {string}
|
|
1805
|
+
* @description An identifier for a native Cycle provider.
|
|
1807
1806
|
*/
|
|
1808
|
-
NativeProviderIdentifier:
|
|
1807
|
+
NativeProviderIdentifier: string;
|
|
1809
1808
|
/**
|
|
1810
1809
|
* Announcement
|
|
1811
1810
|
* @description An announcement from the Cycle team that has something to do with the current or future state of the platform.
|
|
@@ -2633,7 +2632,7 @@ export interface components {
|
|
|
2633
2632
|
DefaultLbType: {
|
|
2634
2633
|
/** @enum {string} */
|
|
2635
2634
|
type: "default";
|
|
2636
|
-
details:
|
|
2635
|
+
details: (components["schemas"]["HaProxyConfig"] | components["schemas"]["V1LbConfig"]) | null;
|
|
2637
2636
|
};
|
|
2638
2637
|
/**
|
|
2639
2638
|
* LoadBalancerConfig
|
|
@@ -3378,7 +3377,7 @@ export interface components {
|
|
|
3378
3377
|
/** @description A boolean where true disables all telemetry reporting for this container. */
|
|
3379
3378
|
disable: boolean;
|
|
3380
3379
|
/** @description An endpoint to report the telemetry data to. */
|
|
3381
|
-
|
|
3380
|
+
web_hook?: string;
|
|
3382
3381
|
};
|
|
3383
3382
|
};
|
|
3384
3383
|
/**
|
|
@@ -3678,7 +3677,7 @@ export interface components {
|
|
|
3678
3677
|
};
|
|
3679
3678
|
} & OneOf<[{
|
|
3680
3679
|
/** @description The ID of the container this record is related to. */
|
|
3681
|
-
container_id
|
|
3680
|
+
container_id?: string;
|
|
3682
3681
|
}, {
|
|
3683
3682
|
/** @description If pointed at a global load balancer, the information about which container behind that global lb this record points to. Must point to a container identifier, and that identifier must be the same in every environment referenced by the global lb. */
|
|
3684
3683
|
global_lb: {
|
|
@@ -3844,8 +3843,8 @@ export interface components {
|
|
|
3844
3843
|
*/
|
|
3845
3844
|
DockerHubOrigin: {
|
|
3846
3845
|
/** @enum {string} */
|
|
3847
|
-
type
|
|
3848
|
-
details
|
|
3846
|
+
type: "docker-hub";
|
|
3847
|
+
details: {
|
|
3849
3848
|
existing?: components["schemas"]["ExistingSource"];
|
|
3850
3849
|
/** @description The DockerHub target string. ex - `mysql:5.7` */
|
|
3851
3850
|
target: string;
|
|
@@ -3921,8 +3920,8 @@ export interface components {
|
|
|
3921
3920
|
*/
|
|
3922
3921
|
DockerFileOrigin: {
|
|
3923
3922
|
/** @enum {string} */
|
|
3924
|
-
type
|
|
3925
|
-
details
|
|
3923
|
+
type: "docker-file";
|
|
3924
|
+
details: {
|
|
3926
3925
|
existing?: components["schemas"]["ExistingSource"];
|
|
3927
3926
|
repo?: components["schemas"]["RepoType"];
|
|
3928
3927
|
/** @description An endpoint that serves the tar file. */
|
|
@@ -3940,8 +3939,8 @@ export interface components {
|
|
|
3940
3939
|
*/
|
|
3941
3940
|
DockerRegistryOrigin: {
|
|
3942
3941
|
/** @enum {string} */
|
|
3943
|
-
type
|
|
3944
|
-
details
|
|
3942
|
+
type: "docker-registry";
|
|
3943
|
+
details: {
|
|
3945
3944
|
existing?: components["schemas"]["ExistingSource"];
|
|
3946
3945
|
/** @description The image name on the registry. */
|
|
3947
3946
|
target: string;
|
|
@@ -3955,6 +3954,73 @@ export interface components {
|
|
|
3955
3954
|
password?: string;
|
|
3956
3955
|
};
|
|
3957
3956
|
};
|
|
3957
|
+
/**
|
|
3958
|
+
* RegistryAuthUser
|
|
3959
|
+
* @description User/token based credentials for authentication to a third-party image source.
|
|
3960
|
+
*/
|
|
3961
|
+
RegistryAuthUser: {
|
|
3962
|
+
/** @enum {string} */
|
|
3963
|
+
type: "user";
|
|
3964
|
+
details: {
|
|
3965
|
+
username?: string;
|
|
3966
|
+
token?: string;
|
|
3967
|
+
};
|
|
3968
|
+
};
|
|
3969
|
+
/**
|
|
3970
|
+
* RegistryAuthProvider
|
|
3971
|
+
* @description Credentials for authentication to a provider-native image registry, such as AWS ECR.
|
|
3972
|
+
*/
|
|
3973
|
+
RegistryAuthProvider: {
|
|
3974
|
+
/** @enum {string} */
|
|
3975
|
+
type: "provider";
|
|
3976
|
+
details: {
|
|
3977
|
+
/** @enum {string} */
|
|
3978
|
+
flavor: "ecr";
|
|
3979
|
+
/** RegistryAuthProviderCredentials */
|
|
3980
|
+
credentials: {
|
|
3981
|
+
region?: string;
|
|
3982
|
+
namespace?: string;
|
|
3983
|
+
api_key?: string;
|
|
3984
|
+
secret?: string;
|
|
3985
|
+
subscription_id?: string;
|
|
3986
|
+
client_id?: string;
|
|
3987
|
+
/** @description A base64'd string of additional configuration options. */
|
|
3988
|
+
config?: string;
|
|
3989
|
+
};
|
|
3990
|
+
};
|
|
3991
|
+
};
|
|
3992
|
+
/**
|
|
3993
|
+
* RegistryAuthWebhook
|
|
3994
|
+
* @description Webhook-based authentication to the provided URL. This webhook expects to receive a base-64 string that when decoded is in the format `username:password`
|
|
3995
|
+
*/
|
|
3996
|
+
RegistryAuthWebhook: {
|
|
3997
|
+
/** @enum {string} */
|
|
3998
|
+
type: "webhook";
|
|
3999
|
+
details: {
|
|
4000
|
+
url: string;
|
|
4001
|
+
};
|
|
4002
|
+
};
|
|
4003
|
+
/**
|
|
4004
|
+
* RegistryAuth
|
|
4005
|
+
* @description Authentication details for a third party image registry/source.
|
|
4006
|
+
*/
|
|
4007
|
+
RegistryAuth: (components["schemas"]["RegistryAuthUser"] | components["schemas"]["RegistryAuthProvider"] | components["schemas"]["RegistryAuthWebhook"]) | null;
|
|
4008
|
+
/**
|
|
4009
|
+
* OciRegistryOrigin
|
|
4010
|
+
* @description An image origin that pulls images fro an OCI-compatible registry. Also used for provider-native registries, such as AWS ECR.
|
|
4011
|
+
*/
|
|
4012
|
+
OciRegistryOrigin: {
|
|
4013
|
+
/** @enum {string} */
|
|
4014
|
+
type: "oci-registry";
|
|
4015
|
+
details: {
|
|
4016
|
+
existing?: components["schemas"]["ExistingSource"];
|
|
4017
|
+
/** @description The image name on the registry. */
|
|
4018
|
+
target: string;
|
|
4019
|
+
/** @description The url of the remote registry. */
|
|
4020
|
+
url: string;
|
|
4021
|
+
auth: components["schemas"]["RegistryAuth"];
|
|
4022
|
+
};
|
|
4023
|
+
};
|
|
3958
4024
|
/**
|
|
3959
4025
|
* CycleUploadOrigin
|
|
3960
4026
|
* @description An image origin where the image is pushed directly to the factory, bypassing the need for a registry or external source.
|
|
@@ -3980,8 +4046,8 @@ export interface components {
|
|
|
3980
4046
|
*/
|
|
3981
4047
|
CycleSourceOrigin: {
|
|
3982
4048
|
/** @enum {string} */
|
|
3983
|
-
type
|
|
3984
|
-
details
|
|
4049
|
+
type: "cycle-source";
|
|
4050
|
+
details: {
|
|
3985
4051
|
/** @description The ID referencing the image source where this image originated. */
|
|
3986
4052
|
source_id: components["schemas"]["ID"];
|
|
3987
4053
|
};
|
|
@@ -3992,14 +4058,14 @@ export interface components {
|
|
|
3992
4058
|
*/
|
|
3993
4059
|
NoneOrigin: {
|
|
3994
4060
|
/** @enum {string} */
|
|
3995
|
-
type
|
|
4061
|
+
type: "none";
|
|
3996
4062
|
details?: Record<string, never>;
|
|
3997
4063
|
};
|
|
3998
4064
|
/**
|
|
3999
4065
|
* ImageOrigin
|
|
4000
4066
|
* @description The origin of the given image source.
|
|
4001
4067
|
*/
|
|
4002
|
-
ImageOrigin: components["schemas"]["DockerHubOrigin"] | components["schemas"]["DockerFileOrigin"] | components["schemas"]["DockerRegistryOrigin"] | components["schemas"]["CycleUploadOrigin"] | components["schemas"]["CycleSourceOrigin"] | components["schemas"]["NoneOrigin"];
|
|
4068
|
+
ImageOrigin: components["schemas"]["DockerHubOrigin"] | components["schemas"]["DockerFileOrigin"] | components["schemas"]["DockerRegistryOrigin"] | components["schemas"]["OciRegistryOrigin"] | components["schemas"]["CycleUploadOrigin"] | components["schemas"]["CycleSourceOrigin"] | components["schemas"]["NoneOrigin"];
|
|
4003
4069
|
/** StackImageSource */
|
|
4004
4070
|
StackImageSourceType: {
|
|
4005
4071
|
/** @enum {string} */
|
|
@@ -4755,6 +4821,19 @@ export interface components {
|
|
|
4755
4821
|
/** @description CPU idle time. */
|
|
4756
4822
|
cpu_idle?: number;
|
|
4757
4823
|
};
|
|
4824
|
+
/** ServerStatsCpuUsage */
|
|
4825
|
+
ServerStatsCpuUsage: {
|
|
4826
|
+
user?: number;
|
|
4827
|
+
nice?: number;
|
|
4828
|
+
system?: number;
|
|
4829
|
+
idle?: number;
|
|
4830
|
+
iowait?: number;
|
|
4831
|
+
irq?: number;
|
|
4832
|
+
soft_irq?: number;
|
|
4833
|
+
steal?: number;
|
|
4834
|
+
guest?: number;
|
|
4835
|
+
guest_nice?: number;
|
|
4836
|
+
};
|
|
4758
4837
|
/**
|
|
4759
4838
|
* ServerStatsCpu
|
|
4760
4839
|
* @description Statistics about the CPU resources on a server.
|
|
@@ -4769,17 +4848,27 @@ export interface components {
|
|
|
4769
4848
|
/** @description The speed of the processor. */
|
|
4770
4849
|
speed?: number;
|
|
4771
4850
|
}[];
|
|
4851
|
+
usage?: components["schemas"]["ServerStatsCpuUsage"];
|
|
4772
4852
|
};
|
|
4773
4853
|
/**
|
|
4774
4854
|
* ServerStatsLoad
|
|
4775
4855
|
* @description Statistics about the current load on the server.
|
|
4776
4856
|
*/
|
|
4777
4857
|
ServerStatsLoad: {
|
|
4778
|
-
/**
|
|
4858
|
+
/**
|
|
4859
|
+
* Format: float
|
|
4860
|
+
* @description The 1 minute load average.
|
|
4861
|
+
*/
|
|
4779
4862
|
avg1m: number;
|
|
4780
|
-
/**
|
|
4863
|
+
/**
|
|
4864
|
+
* Format: float
|
|
4865
|
+
* @description The 5 minute load average.
|
|
4866
|
+
*/
|
|
4781
4867
|
avg5m: number;
|
|
4782
|
-
/**
|
|
4868
|
+
/**
|
|
4869
|
+
* Format: float
|
|
4870
|
+
* @description the 15 minute load average.
|
|
4871
|
+
*/
|
|
4783
4872
|
avg15m: number;
|
|
4784
4873
|
};
|
|
4785
4874
|
/**
|
|
@@ -6101,7 +6190,7 @@ export interface components {
|
|
|
6101
6190
|
* @description The activity event.
|
|
6102
6191
|
* @enum {string}
|
|
6103
6192
|
*/
|
|
6104
|
-
event: "hub.images.prune" | "hub.update" | "hub.create" | "hub.task.delete" | "hub.task.images.prune" | "environment.services.discovery.reconfigure" | "environment.services.lb.reconfigure" | "environment.services.vpn.reconfigure" | "environment.delete" | "environment.initialize" | "environment.start" | "environment.stop" | "environment.create" | "environment.update" | "environment.task.delete" | "environment.services.discovery.task.reconfigure" | "environment.services.lb.task.reconfigure" | "environment.services.vpn.task.reconfigure" | "environment.vpn.user.create" | "environment.services.vpn.login" | "environment.task.initialize" | "environment.task.start" | "environment.task.stop" | "environment.scoped-variable.delete" | "environment.scoped-variable.update" | "environment.scoped-variable.task.delete" | "environment.scoped-variable.create" | "image.delete" | "image.import" | "image.create" | "image.update" | "image.task.delete" | "image.task.import" | "image.source.delete" | "image.source.create" | "image.source.update" | "image.source.task.delete" | "billing.invoice.task.void" | "billing.invoice.task.credit" | "billing.invoice.task.refund" | "billing.invoice.pay" | "billing.invoice.task.pay" | "billing.order.confirm" | "billing.order.task.confirm" | "billing.method.update" | "billing.method.delete" | "billing.method.task.delete" | "billing.method.create" | "infrastructure.provider.update" | "infrastructure.provider.task.delete" | "infrastructure.provider.create" | "infrastructure.provider.task.verify" | "hub.apikey.update" | "hub.apikey.delete" | "hub.apikey.create" | "hub.membership.delete" | "hub.membership.create" | "hub.membership.update" | "container.initialize" | "container.task.start" | "container.start" | "container.task.stop" | "container.stop" | "container.task.reconfigure" | "container.reconfigure" | "container.task.reconfigure.volumes" | "container.reconfigure.volumes" | "container.create" | "container.restart" | "container.task.reimage" | "container.reimage" | "container.update" | "container.task.delete" | "container.delete" | "container.task.scale" | "container.scale" | "container.instances.create" | "container.instances.delete" | "container.instance.healthcheck.restarted" | "container.instance.error" | "container.instance.ssh.login" | "container.instance.migration.start" | "container.instance.migration.revert" | "container.instance.delete" | "container.instance.task.migrate_revert" | "container.instance.task.migrate" | "container.backup.create" | "container.backup.restore" | "container.backup.delete" | "container.backup.task.delete" | "container.backup.task.restore" | "dns.zone.verify" | "dns.zone.delete" | "dns.zone.task.verify" | "dns.zone.update" | "dns.zone.task.delete" | "dns.zone.create" | "dns.zone.record.delete" | "dns.zone.record.cert.generate" | "dns.zone.record.cert.generate.auto" | "dns.zone.record.task.cert.generate" | "dns.zone.record.update" | "dns.zone.record.task.delete" | "dns.zone.record.create" | "stack.update" | "stack.task.delete" | "stack.create" | "stack.task.prune" | "stack.build.create" | "stack.build.generate" | "stack.build.deploy" | "stack.build.delete" | "stack.build.task.delete" | "stack.build.task.generate" | "stack.build.task.deploy" | "infrastructure.server.task.delete" | "infrastructure.server.task.restart" | "infrastructure.server.services.sftp.auth" | "infrastructure.server.live" | "infrastructure.server.delete" | "infrastructure.server.restart" | "infrastructure.server.compute.restart" | "infrastructure.server.compute.spawner.restart" | "infrastructure.server.reconfigure.features" | "infrastructure.server.provision" | "infrastructure.server.console" | "infrastructure.server.update" | "infrastructure.server.task.provision" | "infrastructure.server.ssh.token" | "infrastructure.server.task.reconfigure.features" | "infrastructure.server.services.sftp.lockdown" | "infrastructure.server.services.internal-api.throttle" | "sdn.network.update" | "sdn.network.task.delete" | "sdn.network.create" | "sdn.network.task.reconfigure" | "pipeline.delete" | "pipeline.trigger" | "pipeline.update" | "pipeline.task.delete" | "pipeline.create" | "pipeline.task.trigger" | "pipeline.key.update" | "pipeline.key.delete" | "pipeline.key.create" | "infrastructure.ips.pool.task.delete";
|
|
6193
|
+
event: "hub.images.prune" | "hub.update" | "hub.create" | "hub.task.delete" | "hub.task.images.prune" | "environment.services.discovery.reconfigure" | "environment.services.lb.reconfigure" | "environment.services.vpn.reconfigure" | "environment.delete" | "environment.initialize" | "environment.start" | "environment.stop" | "environment.create" | "environment.update" | "environment.task.delete" | "environment.services.discovery.task.reconfigure" | "environment.services.lb.task.reconfigure" | "environment.services.vpn.task.reconfigure" | "environment.services.vpn.user.create" | "environment.services.vpn.login" | "environment.task.initialize" | "environment.task.start" | "environment.task.stop" | "environment.scoped-variable.delete" | "environment.scoped-variable.update" | "environment.scoped-variable.task.delete" | "environment.scoped-variable.create" | "image.delete" | "image.import" | "image.create" | "image.update" | "image.task.delete" | "image.task.import" | "image.source.delete" | "image.source.create" | "image.source.update" | "image.source.task.delete" | "billing.invoice.task.void" | "billing.invoice.task.credit" | "billing.invoice.task.refund" | "billing.invoice.pay" | "billing.invoice.task.pay" | "billing.order.confirm" | "billing.order.task.confirm" | "billing.method.update" | "billing.method.delete" | "billing.method.task.delete" | "billing.method.create" | "infrastructure.provider.update" | "infrastructure.provider.task.delete" | "infrastructure.provider.create" | "infrastructure.provider.task.verify" | "hub.apikey.update" | "hub.apikey.delete" | "hub.apikey.create" | "hub.membership.delete" | "hub.membership.create" | "hub.membership.update" | "container.initialize" | "container.task.start" | "container.start" | "container.task.stop" | "container.stop" | "container.task.reconfigure" | "container.reconfigure" | "container.task.reconfigure.volumes" | "container.reconfigure.volumes" | "container.create" | "container.restart" | "container.task.reimage" | "container.reimage" | "container.update" | "container.task.delete" | "container.delete" | "container.task.scale" | "container.scale" | "container.instances.create" | "container.instances.delete" | "container.instance.healthcheck.restarted" | "container.instance.error" | "container.instance.ssh.login" | "container.instance.migration.start" | "container.instance.migration.revert" | "container.instance.delete" | "container.instance.task.migrate_revert" | "container.instance.task.migrate" | "container.backup.create" | "container.backup.restore" | "container.backup.delete" | "container.backup.task.delete" | "container.backup.task.restore" | "dns.zone.verify" | "dns.zone.delete" | "dns.zone.task.verify" | "dns.zone.update" | "dns.zone.task.delete" | "dns.zone.create" | "dns.zone.record.delete" | "dns.zone.record.cert.generate" | "dns.zone.record.cert.generate.auto" | "dns.zone.record.task.cert.generate" | "dns.zone.record.update" | "dns.zone.record.task.delete" | "dns.zone.record.create" | "stack.update" | "stack.task.delete" | "stack.create" | "stack.task.prune" | "stack.build.create" | "stack.build.generate" | "stack.build.deploy" | "stack.build.delete" | "stack.build.task.delete" | "stack.build.task.generate" | "stack.build.task.deploy" | "infrastructure.server.task.delete" | "infrastructure.server.task.restart" | "infrastructure.server.services.sftp.auth" | "infrastructure.server.live" | "infrastructure.server.delete" | "infrastructure.server.restart" | "infrastructure.server.compute.restart" | "infrastructure.server.compute.spawner.restart" | "infrastructure.server.reconfigure.features" | "infrastructure.server.provision" | "infrastructure.server.console" | "infrastructure.server.update" | "infrastructure.server.task.provision" | "infrastructure.server.ssh.token" | "infrastructure.server.task.reconfigure.features" | "infrastructure.server.services.sftp.lockdown" | "infrastructure.server.services.internal-api.throttle" | "sdn.network.update" | "sdn.network.task.delete" | "sdn.network.create" | "sdn.network.task.reconfigure" | "pipeline.delete" | "pipeline.trigger" | "pipeline.update" | "pipeline.task.delete" | "pipeline.create" | "pipeline.task.trigger" | "pipeline.key.update" | "pipeline.key.delete" | "pipeline.key.create" | "infrastructure.ips.pool.task.delete";
|
|
6105
6194
|
/** @description A timestamp for when the activity took place. */
|
|
6106
6195
|
time: components["schemas"]["DateTime"];
|
|
6107
6196
|
};
|
|
@@ -6391,7 +6480,7 @@ export interface components {
|
|
|
6391
6480
|
* StepResourceLocation
|
|
6392
6481
|
* @description Either a details ID or details from where the ID is an identifier for an existing resource and a from is an identifier from a previous step in this pipeline.
|
|
6393
6482
|
*/
|
|
6394
|
-
ResourceLocation:
|
|
6483
|
+
ResourceLocation: OneOf<[{
|
|
6395
6484
|
/** @description The ID of an existing resource that exists before the pipeline is run. */
|
|
6396
6485
|
id?: string;
|
|
6397
6486
|
}, {
|
|
@@ -7159,6 +7248,50 @@ export interface components {
|
|
|
7159
7248
|
};
|
|
7160
7249
|
features: string[];
|
|
7161
7250
|
};
|
|
7251
|
+
/** ServerStatsCpuUsageTelemetry */
|
|
7252
|
+
ServerStatsCpuUsageTelemetry: {
|
|
7253
|
+
/** Format: float */
|
|
7254
|
+
user?: number;
|
|
7255
|
+
/** Format: float */
|
|
7256
|
+
nice?: number;
|
|
7257
|
+
/** Format: float */
|
|
7258
|
+
system?: number;
|
|
7259
|
+
/** Format: float */
|
|
7260
|
+
idle?: number;
|
|
7261
|
+
/** Format: float */
|
|
7262
|
+
iowait?: number;
|
|
7263
|
+
/** Format: float */
|
|
7264
|
+
irq?: number;
|
|
7265
|
+
/** Format: float */
|
|
7266
|
+
soft_irq?: number;
|
|
7267
|
+
/** Format: float */
|
|
7268
|
+
steal?: number;
|
|
7269
|
+
/** Format: float */
|
|
7270
|
+
guest?: number;
|
|
7271
|
+
/** Format: float */
|
|
7272
|
+
guest_nice?: number;
|
|
7273
|
+
};
|
|
7274
|
+
/**
|
|
7275
|
+
* ServerStatsRamTelemetry
|
|
7276
|
+
* @description Statistics about the RAM on a given server.
|
|
7277
|
+
*/
|
|
7278
|
+
ServerStatsRamTelemetry: {
|
|
7279
|
+
/**
|
|
7280
|
+
* Format: float
|
|
7281
|
+
* @description The available RAM on the server.
|
|
7282
|
+
*/
|
|
7283
|
+
available: number;
|
|
7284
|
+
/**
|
|
7285
|
+
* Format: float
|
|
7286
|
+
* @description The free RAM on the server.
|
|
7287
|
+
*/
|
|
7288
|
+
free: number;
|
|
7289
|
+
/**
|
|
7290
|
+
* Format: float
|
|
7291
|
+
* @description The total RAM on the server.
|
|
7292
|
+
*/
|
|
7293
|
+
total: number;
|
|
7294
|
+
};
|
|
7162
7295
|
/**
|
|
7163
7296
|
* ServerStatsTelemetry
|
|
7164
7297
|
* @description Statistics about a given servers telemetery data.
|
|
@@ -7166,8 +7299,9 @@ export interface components {
|
|
|
7166
7299
|
ServerStatsTelemetry: {
|
|
7167
7300
|
/** @description The timestamp for when the telemetery data was collected. */
|
|
7168
7301
|
time: components["schemas"]["DateTime"];
|
|
7302
|
+
cpu_usage?: components["schemas"]["ServerStatsCpuUsageTelemetry"];
|
|
7169
7303
|
load: components["schemas"]["ServerStatsLoad"];
|
|
7170
|
-
ram: components["schemas"]["
|
|
7304
|
+
ram: components["schemas"]["ServerStatsRamTelemetry"];
|
|
7171
7305
|
/** @description Telemetry data for the base volume of a given server. */
|
|
7172
7306
|
storage_base: {
|
|
7173
7307
|
/** @description The amount of storage currently used in the base volume. */
|
|
File without changes
|
|
File without changes
|