@cycleplatform/api-client-typescript 0.1.11 → 0.1.12
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/package.json +1 -1
- package/src/generated/types.ts +266 -96
package/package.json
CHANGED
package/src/generated/types.ts
CHANGED
|
@@ -346,10 +346,10 @@ export interface paths {
|
|
|
346
346
|
};
|
|
347
347
|
"/v1/environments/{environmentId}/services/vpn/tasks": {
|
|
348
348
|
/**
|
|
349
|
-
*
|
|
350
|
-
* @description Requires the `environments-vpn-manage` capability.
|
|
349
|
+
* Create Environment VPN Job
|
|
350
|
+
* @description Used to reconfigure or reset the environment VPN. Requires the `environments-vpn-manage` capability.
|
|
351
351
|
*/
|
|
352
|
-
post: operations["
|
|
352
|
+
post: operations["createEnvironmentVpnTask"];
|
|
353
353
|
};
|
|
354
354
|
"/v1/environments/{environmentId}/telemetry/instances": {
|
|
355
355
|
/**
|
|
@@ -1620,6 +1620,16 @@ export interface components {
|
|
|
1620
1620
|
key: string;
|
|
1621
1621
|
} | null;
|
|
1622
1622
|
};
|
|
1623
|
+
/**
|
|
1624
|
+
* HubWebhooks
|
|
1625
|
+
* @description Hub related webhooks. When supplied, the given webhook will be called with a payload any time one of these events occurs.
|
|
1626
|
+
*/
|
|
1627
|
+
HubWebhooks: {
|
|
1628
|
+
/** @description A webhook that is called any time a server is deployed to this hub. The payload will be a `Server` object. */
|
|
1629
|
+
server_deployed: string | null;
|
|
1630
|
+
/** @description A webhook that is called any time a server in this hub is deleted. The payload will be a `Server` object. */
|
|
1631
|
+
server_deleted: string | null;
|
|
1632
|
+
};
|
|
1623
1633
|
/**
|
|
1624
1634
|
* BillingTerm
|
|
1625
1635
|
* @description Information about a billing term.
|
|
@@ -1701,12 +1711,8 @@ export interface components {
|
|
|
1701
1711
|
};
|
|
1702
1712
|
state: components["schemas"]["HubState"];
|
|
1703
1713
|
integrations: components["schemas"]["HubIntegrations"];
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
/** @description A webhook to report information to each time a server is deployed on the given hub. */
|
|
1707
|
-
server_deployed: string | null;
|
|
1708
|
-
};
|
|
1709
|
-
billing: components["schemas"]["HubBillingProfile"] | null;
|
|
1714
|
+
webhooks: components["schemas"]["HubWebhooks"];
|
|
1715
|
+
billing: (Record<string, unknown> | null) & components["schemas"]["HubBillingProfile"];
|
|
1710
1716
|
meta?: components["schemas"]["HubMeta"];
|
|
1711
1717
|
};
|
|
1712
1718
|
/**
|
|
@@ -2581,42 +2587,175 @@ export interface components {
|
|
|
2581
2587
|
};
|
|
2582
2588
|
/** HaProxyLbType */
|
|
2583
2589
|
HaProxyLbType: {
|
|
2590
|
+
/** @description Allow / disallow traffic to be routed via IPv4. */
|
|
2591
|
+
ipv4: boolean;
|
|
2592
|
+
/** @description Allow / disallow traffic to be routed via IPv6. */
|
|
2593
|
+
ipv6: boolean;
|
|
2584
2594
|
/** @enum {string} */
|
|
2585
2595
|
type: "haproxy";
|
|
2586
2596
|
details: components["schemas"]["HaProxyConfig"] | null;
|
|
2587
2597
|
};
|
|
2588
|
-
/**
|
|
2589
|
-
|
|
2590
|
-
|
|
2598
|
+
/**
|
|
2599
|
+
* Duration
|
|
2600
|
+
* @description A string signifying a duration of time. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h", "d", "w", "y".
|
|
2601
|
+
* @example 72h45m2s
|
|
2602
|
+
*/
|
|
2603
|
+
Duration: string;
|
|
2604
|
+
/**
|
|
2605
|
+
* TcpTransportConfig
|
|
2606
|
+
* @description Additional configuration options for the TCP transport mode.
|
|
2607
|
+
*/
|
|
2608
|
+
TcpTransportConfig: {
|
|
2609
|
+
/** @enum {string} */
|
|
2610
|
+
type: "tcp";
|
|
2611
|
+
details: {
|
|
2612
|
+
connections: {
|
|
2613
|
+
[key: string]: unknown;
|
|
2614
|
+
};
|
|
2615
|
+
};
|
|
2616
|
+
};
|
|
2617
|
+
/**
|
|
2618
|
+
* HttpTransportConfig
|
|
2619
|
+
* @description Additional configuration options for the HTTP transport mode.
|
|
2620
|
+
*/
|
|
2621
|
+
HttpTransportConfig: {
|
|
2591
2622
|
/** @enum {string} */
|
|
2623
|
+
type: "http";
|
|
2624
|
+
details: {
|
|
2625
|
+
/** @description Defines extra configuration options connections to the load balancer */
|
|
2626
|
+
connections: {
|
|
2627
|
+
/** @description Maximum number of simultaneous connections (via http/2) per connection. */
|
|
2628
|
+
max_idle_conns_per_connection: number | null;
|
|
2629
|
+
};
|
|
2630
|
+
};
|
|
2631
|
+
};
|
|
2632
|
+
/**
|
|
2633
|
+
* TcpRouterConfig
|
|
2634
|
+
* @description Additional configuration options for TCP mode routers
|
|
2635
|
+
*/
|
|
2636
|
+
TcpRouterConfig: {
|
|
2637
|
+
/** @enum {string} */
|
|
2638
|
+
type: "tcp";
|
|
2639
|
+
details: {
|
|
2640
|
+
[key: string]: unknown;
|
|
2641
|
+
};
|
|
2642
|
+
};
|
|
2643
|
+
/**
|
|
2644
|
+
* HttpRouterConfig
|
|
2645
|
+
* @description Additional configuration options for HTTP mode routers.
|
|
2646
|
+
*/
|
|
2647
|
+
HttpRouterConfig: {
|
|
2648
|
+
/** @enum {string} */
|
|
2649
|
+
type: "http";
|
|
2650
|
+
details: {
|
|
2651
|
+
/** @description Defines a built-in redirect for HTTP mode routers */
|
|
2652
|
+
redirect: ({
|
|
2653
|
+
/** @description If enabled and a sibling controller exists for port 443, requests will be auto redirected to it. Essentially sets up automatic TLS redirection for this router. */
|
|
2654
|
+
auto_https_redirect: boolean | null;
|
|
2655
|
+
/** @description The port to redirect traffic to. */
|
|
2656
|
+
port: number | null;
|
|
2657
|
+
/** @description The scheme to redirect to. (i.e. `https`) */
|
|
2658
|
+
scheme: string | null;
|
|
2659
|
+
/** @description A specific URL to redirect to. */
|
|
2660
|
+
url: string | null;
|
|
2661
|
+
}) | null;
|
|
2662
|
+
forward: ({
|
|
2663
|
+
/** @enum {string|null} */
|
|
2664
|
+
scheme: "tcp" | "http" | null;
|
|
2665
|
+
}) | null;
|
|
2666
|
+
};
|
|
2667
|
+
};
|
|
2668
|
+
/**
|
|
2669
|
+
* V1LbRouterConfig
|
|
2670
|
+
* @description A specific router configuration that describes how traffic matching the rule is handled.
|
|
2671
|
+
*/
|
|
2672
|
+
V1LbConfigRouter: {
|
|
2673
|
+
/** @description The ruleset for this router to be selected. If both `domains`` and `internal_port` are null, then this match acts as a wildcard and will match all. */
|
|
2674
|
+
match: {
|
|
2675
|
+
/** @description The specific domains to match against. */
|
|
2676
|
+
domains: string[] | null;
|
|
2677
|
+
/** @description The specific ports to match against. */
|
|
2678
|
+
internal_port: number[] | null;
|
|
2679
|
+
};
|
|
2680
|
+
/**
|
|
2681
|
+
* @description How to route the traffic to the destination.
|
|
2682
|
+
* `random`: Pick a valid destination at random.
|
|
2683
|
+
* `round-robin`: Send each request to the 'next' destination on the list, restarting from the beginning when the last destination is used.
|
|
2684
|
+
*
|
|
2685
|
+
* @enum {string}
|
|
2686
|
+
*/
|
|
2592
2687
|
mode: "random" | "round-robin";
|
|
2593
2688
|
config: {
|
|
2594
|
-
|
|
2689
|
+
/** @description If a request comes in from the same origin, ensure it hits the same destination. */
|
|
2595
2690
|
sticky_sessions: boolean;
|
|
2691
|
+
/** @description If a destination is unavailable, retry up to [x] times, instead of immediately failing with a 503/504 error. */
|
|
2596
2692
|
destination_retries: number;
|
|
2597
|
-
|
|
2693
|
+
/** @description Defines how the length of various sorts of timeouts when communicating with the destination. */
|
|
2598
2694
|
timeouts: {
|
|
2599
|
-
|
|
2695
|
+
/** @description The duration the load balancer will wait before timing out while attempting to connect to the destination. */
|
|
2696
|
+
destination_connection: components["schemas"]["Duration"];
|
|
2600
2697
|
};
|
|
2698
|
+
/** @description Additional configuration options specific to the selected mode (tcp/http). */
|
|
2699
|
+
extension?: components["schemas"]["TcpRouterConfig"] | components["schemas"]["HttpRouterConfig"];
|
|
2601
2700
|
};
|
|
2602
2701
|
};
|
|
2603
2702
|
/** V1LbConfig */
|
|
2604
2703
|
V1LbConfig: {
|
|
2704
|
+
/** @description A configuration for a specific port. */
|
|
2605
2705
|
controllers: {
|
|
2606
2706
|
[key: string]: ({
|
|
2607
|
-
identifier
|
|
2608
|
-
|
|
2707
|
+
/** @description A human-readable identifier for this controller. It will default to the port, i.e. `port-443`, but can be renamed to anything, such as the service this controller represents. */
|
|
2708
|
+
identifier: string;
|
|
2709
|
+
/**
|
|
2710
|
+
* V1LbControllerTransport
|
|
2711
|
+
* @description Defines how traffic comes in to the load balancer, and how the load balancer handles it.
|
|
2712
|
+
*/
|
|
2609
2713
|
transport: {
|
|
2610
|
-
/**
|
|
2714
|
+
/**
|
|
2715
|
+
* @description The kind of traffic (http/tcp) that will be sent to the load balancer.
|
|
2716
|
+
* @enum {string}
|
|
2717
|
+
*/
|
|
2611
2718
|
mode: "tcp" | "http";
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2719
|
+
/** @description Defines how the transport for this controller operates. */
|
|
2720
|
+
config: {
|
|
2721
|
+
/**
|
|
2722
|
+
* @description Enable/disable performance mode. If enabled, some telemetry will be disabled to dedicate full processing to handling requests.
|
|
2723
|
+
* You will not see per-request breakdowns or URL logging if performance mode is enabled.
|
|
2724
|
+
*/
|
|
2725
|
+
performance: boolean;
|
|
2726
|
+
/** @description Defines how traffic gets into the load balancer. */
|
|
2727
|
+
ingress: {
|
|
2728
|
+
/** @description The port inbound trafic is accepted on. */
|
|
2729
|
+
port: number;
|
|
2730
|
+
/** @description TLS termination configuration. If null, the platform will use the default configuration. Port 443 by default has TLS termination enabled. */
|
|
2731
|
+
tls: ({
|
|
2732
|
+
/** @description Allow TLS connections and enable TLS termination. */
|
|
2733
|
+
enable: boolean;
|
|
2734
|
+
/** @description [Advanced] Change the domain the controller listens on. */
|
|
2735
|
+
server_name: string | null;
|
|
2736
|
+
/** @description If enabled, accept TLS traffic with an invalid certificate. This is usually done for development/testing, and is not recommended for production use. */
|
|
2737
|
+
allow_insecure: boolean;
|
|
2738
|
+
/**
|
|
2739
|
+
* @description Defines how to validate the connecting TLS certificate.
|
|
2740
|
+
* `none`: Do not require a TLS certificate to be sent
|
|
2741
|
+
* `request`: Asks the client to send a TLS certificate, but does not require nor validate it.
|
|
2742
|
+
* `require`: Requires a certificate be sent for the request to be valid, but does not validate the certificate.
|
|
2743
|
+
* `require-verify`: Requires both that the client send a certificate, and that the certificate is valid. This is required when using https.
|
|
2744
|
+
*
|
|
2745
|
+
* @enum {string}
|
|
2746
|
+
*/
|
|
2747
|
+
client_auth: "none" | "request" | "require" | "require-verify";
|
|
2748
|
+
}) | null;
|
|
2749
|
+
};
|
|
2750
|
+
/** @description Defines settings for various types of timeouts. */
|
|
2751
|
+
timeouts: {
|
|
2752
|
+
/** @description The total amount of time a connection can be idle before being killed. */
|
|
2753
|
+
idle: components["schemas"]["Duration"];
|
|
2754
|
+
};
|
|
2755
|
+
/** @description Extended configurations for the specified transport mode (http/tcp) */
|
|
2756
|
+
extension?: components["schemas"]["TcpTransportConfig"] | components["schemas"]["HttpTransportConfig"];
|
|
2619
2757
|
};
|
|
2758
|
+
/** @description Defines where traffic is sent. Many can be defined per controller. */
|
|
2620
2759
|
routers: components["schemas"]["V1LbConfigRouter"][];
|
|
2621
2760
|
};
|
|
2622
2761
|
}) | undefined;
|
|
@@ -2624,26 +2763,29 @@ export interface components {
|
|
|
2624
2763
|
};
|
|
2625
2764
|
/** V1LbType */
|
|
2626
2765
|
V1LbType: {
|
|
2766
|
+
/** @description Allow / disallow traffic to be routed via IPv4. */
|
|
2767
|
+
ipv4: boolean;
|
|
2768
|
+
/** @description Allow / disallow traffic to be routed via IPv6. */
|
|
2769
|
+
ipv6: boolean;
|
|
2627
2770
|
/** @enum {string} */
|
|
2628
2771
|
type: "v1";
|
|
2629
2772
|
details: components["schemas"]["V1LbConfig"] | null;
|
|
2630
2773
|
};
|
|
2631
2774
|
/** DefaultLbType */
|
|
2632
2775
|
DefaultLbType: {
|
|
2776
|
+
/** @description Allow / disallow traffic to be routed via IPv4. */
|
|
2777
|
+
ipv4: boolean;
|
|
2778
|
+
/** @description Allow / disallow traffic to be routed via IPv6. */
|
|
2779
|
+
ipv6: boolean;
|
|
2633
2780
|
/** @enum {string} */
|
|
2634
2781
|
type: "default";
|
|
2635
|
-
details: (components["schemas"]["HaProxyConfig"] | components["schemas"]["V1LbConfig"])
|
|
2782
|
+
details: (Record<string, unknown> | null) & (components["schemas"]["HaProxyConfig"] | components["schemas"]["V1LbConfig"]);
|
|
2636
2783
|
};
|
|
2637
2784
|
/**
|
|
2638
2785
|
* LoadBalancerConfig
|
|
2639
2786
|
* @description The config object for the loadbalancer service.
|
|
2640
2787
|
*/
|
|
2641
|
-
LoadBalancerConfig: (
|
|
2642
|
-
/** @description Allow / disallow traffic to be routed via IPv4. */
|
|
2643
|
-
ipv4: boolean;
|
|
2644
|
-
/** @description Allow / disallow traffic to be routed via IPv6. */
|
|
2645
|
-
ipv6: boolean;
|
|
2646
|
-
} & (components["schemas"]["V1LbType"] | components["schemas"]["HaProxyLbType"] | components["schemas"]["DefaultLbType"])) | null;
|
|
2788
|
+
LoadBalancerConfig: (components["schemas"]["V1LbType"] | components["schemas"]["HaProxyLbType"] | components["schemas"]["DefaultLbType"]) | null;
|
|
2647
2789
|
/**
|
|
2648
2790
|
* LoadBalancerEnvironmentService
|
|
2649
2791
|
* @description Information about the environments loadbalancer service(s).
|
|
@@ -3134,6 +3276,44 @@ export interface components {
|
|
|
3134
3276
|
deleted: components["schemas"]["DateTime"];
|
|
3135
3277
|
};
|
|
3136
3278
|
};
|
|
3279
|
+
/**
|
|
3280
|
+
* VpnResetTask
|
|
3281
|
+
* @description This will reset the VPN certificates and restart the container. Should be done when the certificates expire, every 1000 days. Then, you will need to redownload the VPN config in order to connect.
|
|
3282
|
+
*/
|
|
3283
|
+
VpnResetTask: {
|
|
3284
|
+
/**
|
|
3285
|
+
* @description The name of the action to perform.
|
|
3286
|
+
* @enum {string}
|
|
3287
|
+
*/
|
|
3288
|
+
action: "reset";
|
|
3289
|
+
};
|
|
3290
|
+
/** VpnReconfigureTask */
|
|
3291
|
+
VpnReconfigureTask: {
|
|
3292
|
+
/**
|
|
3293
|
+
* @description The action to take.
|
|
3294
|
+
* @enum {string}
|
|
3295
|
+
*/
|
|
3296
|
+
action: "reconfigure";
|
|
3297
|
+
/** @description Additional information the platform needs to create this job. */
|
|
3298
|
+
contents: {
|
|
3299
|
+
/** @description A boolean where true means the VPN service is enabled. */
|
|
3300
|
+
enable?: boolean;
|
|
3301
|
+
/** @description The config object for the VPN service, in this case without the required fields normally found in a VPN config object. */
|
|
3302
|
+
config?: ({
|
|
3303
|
+
/** @description If true, routes all traffic through the VPN, even non-Cycle traffic. */
|
|
3304
|
+
allow_internet?: boolean;
|
|
3305
|
+
/** @description Auth configuration for the VPN. */
|
|
3306
|
+
auth?: {
|
|
3307
|
+
/** @description A webhook endpoint to hit. Will be passed the login credentials provided to the user, and should return a 200 status if the login is permitted. */
|
|
3308
|
+
webhook: string | null;
|
|
3309
|
+
/** @description If true, allows any Cycle account with access to the environment to log in to the VPN using their Cycle email and password. */
|
|
3310
|
+
cycle_accounts: boolean;
|
|
3311
|
+
/** @description If true, allows the custom VPN accounts to log in to the VPN. */
|
|
3312
|
+
vpn_accounts?: boolean;
|
|
3313
|
+
};
|
|
3314
|
+
}) | null;
|
|
3315
|
+
};
|
|
3316
|
+
};
|
|
3137
3317
|
/**
|
|
3138
3318
|
* InstanceTelemetryPoint
|
|
3139
3319
|
* @description A point-in-time snapshot of a count of instances by state.
|
|
@@ -3297,12 +3477,6 @@ export interface components {
|
|
|
3297
3477
|
* @enum {string}
|
|
3298
3478
|
*/
|
|
3299
3479
|
DeploymentStrategyName: "resource-density" | "high-availability" | "first-available" | "node" | "edge" | "manual";
|
|
3300
|
-
/**
|
|
3301
|
-
* Duration
|
|
3302
|
-
* @description A string signifying a duration of time. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h", "d", "w", "y".
|
|
3303
|
-
* @example 72h45m2s
|
|
3304
|
-
*/
|
|
3305
|
-
Duration: string;
|
|
3306
3480
|
/**
|
|
3307
3481
|
* ContainerDeploy
|
|
3308
3482
|
* @description Deployment configuration for the given container.
|
|
@@ -3343,6 +3517,11 @@ export interface components {
|
|
|
3343
3517
|
/** @description How long the platform will wait before sending the start signal to the given container. */
|
|
3344
3518
|
delay?: components["schemas"]["Duration"];
|
|
3345
3519
|
};
|
|
3520
|
+
/** @description Configurations for container updates. */
|
|
3521
|
+
update?: {
|
|
3522
|
+
/** @description When set, Cycle will pick a random time from `0 - this duration`, and stagger the instances so they all start at different times (up to the time specified here). */
|
|
3523
|
+
stagger?: components["schemas"]["Duration"];
|
|
3524
|
+
};
|
|
3346
3525
|
/** @description Configurations for container restart events. */
|
|
3347
3526
|
restart?: {
|
|
3348
3527
|
/**
|
|
@@ -3361,6 +3540,8 @@ export interface components {
|
|
|
3361
3540
|
command: string;
|
|
3362
3541
|
/** @description The number of times the platform will retry the command before marking the container unhealthy. */
|
|
3363
3542
|
retries: number;
|
|
3543
|
+
/** @description How long to wait before performing an initial health check when the instance starts. The `state.health.healthy` field of the instance will be `null`` until the first check is performed. */
|
|
3544
|
+
delay?: components["schemas"]["Duration"];
|
|
3364
3545
|
/** @description How long to wait between restarts. */
|
|
3365
3546
|
interval: components["schemas"]["Duration"];
|
|
3366
3547
|
/** @description How long before a health check attempt times out. */
|
|
@@ -3633,7 +3814,7 @@ export interface components {
|
|
|
3633
3814
|
/** @description A DNS MX record */
|
|
3634
3815
|
mx?: {
|
|
3635
3816
|
/** @description The priority setting for this mx record. */
|
|
3636
|
-
priority:
|
|
3817
|
+
priority: number;
|
|
3637
3818
|
/** @description The domain this mx record points to. */
|
|
3638
3819
|
domain: string;
|
|
3639
3820
|
};
|
|
@@ -4349,6 +4530,11 @@ export interface components {
|
|
|
4349
4530
|
/** @description How long the platform will wait before sending the start signal to the given container. */
|
|
4350
4531
|
delay?: string | null;
|
|
4351
4532
|
};
|
|
4533
|
+
/** @description Configurations for container updates. */
|
|
4534
|
+
update?: {
|
|
4535
|
+
/** @description When set, Cycle will pick a random time from `0 - this duration`, and stagger the instances so they all start at different times (up to the time specified here). */
|
|
4536
|
+
stagger?: components["schemas"]["Duration"];
|
|
4537
|
+
};
|
|
4352
4538
|
restart?: {
|
|
4353
4539
|
/** @enum {string} */
|
|
4354
4540
|
condition: "always" | "never" | "failure";
|
|
@@ -4484,12 +4670,7 @@ export interface components {
|
|
|
4484
4670
|
* StackSpecLoadBalancerConfig
|
|
4485
4671
|
* @description The config object for the loadbalancer service.
|
|
4486
4672
|
*/
|
|
4487
|
-
StackSpecLoadBalancerConfig:
|
|
4488
|
-
/** @description Allow / disallow traffic to be routed via IPv4. */
|
|
4489
|
-
ipv4: boolean | null;
|
|
4490
|
-
/** @description Allow / disallow traffic to be routed via IPv6. */
|
|
4491
|
-
ipv6: boolean | null;
|
|
4492
|
-
}) & (components["schemas"]["HaProxyLbType"] | components["schemas"]["V1LbType"] | components["schemas"]["DefaultLbType"]);
|
|
4673
|
+
StackSpecLoadBalancerConfig: components["schemas"]["HaProxyLbType"] | components["schemas"]["V1LbType"] | components["schemas"]["DefaultLbType"];
|
|
4493
4674
|
/** StackSpec */
|
|
4494
4675
|
StackSpec: {
|
|
4495
4676
|
/** @description A string defining the version of the stack spec. */
|
|
@@ -5074,7 +5255,7 @@ export interface components {
|
|
|
5074
5255
|
id: string;
|
|
5075
5256
|
/** @description A name for the location. */
|
|
5076
5257
|
name: string;
|
|
5077
|
-
geographic: components["schemas"]["Geographic"]
|
|
5258
|
+
geographic: (Record<string, unknown> | null) & components["schemas"]["Geographic"];
|
|
5078
5259
|
provider: components["schemas"]["LocationProvider"];
|
|
5079
5260
|
/** @description A boolean where true means the locaiton is supported by the platform. */
|
|
5080
5261
|
compatible: boolean;
|
|
@@ -5310,12 +5491,17 @@ export interface components {
|
|
|
5310
5491
|
*/
|
|
5311
5492
|
current: "new" | "starting" | "reimaging" | "migrating" | "running" | "stopping" | "stopped" | "failed" | "deleting" | "deleted";
|
|
5312
5493
|
/** @description information about the health of the instance. */
|
|
5313
|
-
health?: {
|
|
5314
|
-
/**
|
|
5315
|
-
|
|
5494
|
+
health?: ({
|
|
5495
|
+
/**
|
|
5496
|
+
* @description Describes the healthiness of the instance. Health checks can be configured at the container level.
|
|
5497
|
+
* - `true`: The instance is considered healthy.
|
|
5498
|
+
* - `false`: The instance is considered unhealthy.
|
|
5499
|
+
* - `null`: The instance has not yet reported its health, or a health check has not yet been performed.
|
|
5500
|
+
*/
|
|
5501
|
+
healthy: boolean | null;
|
|
5316
5502
|
/** @description A timestamp of the last time the instance health was updated. */
|
|
5317
5503
|
updated: components["schemas"]["DateTime"];
|
|
5318
|
-
};
|
|
5504
|
+
}) | null;
|
|
5319
5505
|
}) & components["schemas"]["State"];
|
|
5320
5506
|
/**
|
|
5321
5507
|
* Instance
|
|
@@ -5908,6 +6094,10 @@ export interface components {
|
|
|
5908
6094
|
*/
|
|
5909
6095
|
Logs: {
|
|
5910
6096
|
id: components["schemas"]["ID"];
|
|
6097
|
+
/** @description An identifier for the container. */
|
|
6098
|
+
container_id: string;
|
|
6099
|
+
/** @description An identifier for the instance. */
|
|
6100
|
+
instance_id: string;
|
|
5911
6101
|
/** @description An identifier for the backup. */
|
|
5912
6102
|
backup_id: string;
|
|
5913
6103
|
hub_id: components["schemas"]["HubID"];
|
|
@@ -5918,6 +6108,15 @@ export interface components {
|
|
|
5918
6108
|
type: "restore" | "backup";
|
|
5919
6109
|
/** @description The log. */
|
|
5920
6110
|
log: string;
|
|
6111
|
+
error?: {
|
|
6112
|
+
message: string;
|
|
6113
|
+
message_internal?: string;
|
|
6114
|
+
stack?: {
|
|
6115
|
+
file: string;
|
|
6116
|
+
function: string;
|
|
6117
|
+
line: number;
|
|
6118
|
+
}[];
|
|
6119
|
+
} | null;
|
|
5921
6120
|
/**
|
|
5922
6121
|
* BackupLogEvents
|
|
5923
6122
|
* @description A collection of timestamps for each event in the backup log's lifetime.
|
|
@@ -6482,10 +6681,10 @@ export interface components {
|
|
|
6482
6681
|
*/
|
|
6483
6682
|
ResourceLocation: OneOf<[{
|
|
6484
6683
|
/** @description The ID of an existing resource that exists before the pipeline is run. */
|
|
6485
|
-
id
|
|
6684
|
+
id: string;
|
|
6486
6685
|
}, {
|
|
6487
6686
|
/** @description The stage and step to report on. */
|
|
6488
|
-
from
|
|
6687
|
+
from: {
|
|
6489
6688
|
/** @description An identifier for the stage the step being reported on resides in. */
|
|
6490
6689
|
stage?: string;
|
|
6491
6690
|
/** @description An identifier for the step to be reported on. */
|
|
@@ -8559,6 +8758,10 @@ export interface operations {
|
|
|
8559
8758
|
*/
|
|
8560
8759
|
getInvoice: {
|
|
8561
8760
|
parameters: {
|
|
8761
|
+
query?: {
|
|
8762
|
+
/** @description A comma separated list of meta values. Meta values will show up under a resource's `meta` field. In the case of applying a meta to a collection of resources, each resource will have it's own relevant meta data. In some rare cases, meta may not apply to individual resources, and may appear in the root document. These will be clearly labeled. */
|
|
8763
|
+
meta?: "due"[];
|
|
8764
|
+
};
|
|
8562
8765
|
path: {
|
|
8563
8766
|
/** @description The ID of the invoice. */
|
|
8564
8767
|
invoiceId: string;
|
|
@@ -9266,45 +9469,20 @@ export interface operations {
|
|
|
9266
9469
|
};
|
|
9267
9470
|
};
|
|
9268
9471
|
/**
|
|
9269
|
-
*
|
|
9270
|
-
* @description Requires the `environments-vpn-manage` capability.
|
|
9472
|
+
* Create Environment VPN Job
|
|
9473
|
+
* @description Used to reconfigure or reset the environment VPN. Requires the `environments-vpn-manage` capability.
|
|
9271
9474
|
*/
|
|
9272
|
-
|
|
9475
|
+
createEnvironmentVpnTask: {
|
|
9273
9476
|
parameters: {
|
|
9274
9477
|
path: {
|
|
9275
9478
|
/** @description The ID of the environment the VPN service resides in. */
|
|
9276
9479
|
environmentId: string;
|
|
9277
9480
|
};
|
|
9278
9481
|
};
|
|
9279
|
-
/** @description
|
|
9482
|
+
/** @description The task contents used to build the environment VPN job. */
|
|
9280
9483
|
requestBody?: {
|
|
9281
9484
|
content: {
|
|
9282
|
-
"application/json":
|
|
9283
|
-
/**
|
|
9284
|
-
* @description The action to take.
|
|
9285
|
-
* @enum {string}
|
|
9286
|
-
*/
|
|
9287
|
-
action: "reconfigure";
|
|
9288
|
-
/** @description Additional information the platform needs to create this job. */
|
|
9289
|
-
contents: {
|
|
9290
|
-
/** @description A boolean where true means the VPN service is enabled. */
|
|
9291
|
-
enable?: boolean;
|
|
9292
|
-
/** @description The config object for the VPN service, in this case without the required fields normally found in a VPN config object. */
|
|
9293
|
-
config?: ({
|
|
9294
|
-
/** @description If true, routes all traffic through the VPN, even non-Cycle traffic. */
|
|
9295
|
-
allow_internet?: boolean;
|
|
9296
|
-
/** @description Auth configuration for the VPN. */
|
|
9297
|
-
auth?: {
|
|
9298
|
-
/** @description A webhook endpoint to hit. Will be passed the login credentials provided to the user, and should return a 200 status if the login is permitted. */
|
|
9299
|
-
webhook: string | null;
|
|
9300
|
-
/** @description If true, allows any Cycle account with access to the environment to log in to the VPN using their Cycle email and password. */
|
|
9301
|
-
cycle_accounts: boolean;
|
|
9302
|
-
/** @description If true, allows the custom VPN accounts to log in to the VPN. */
|
|
9303
|
-
vpn_accounts?: boolean;
|
|
9304
|
-
};
|
|
9305
|
-
}) | null;
|
|
9306
|
-
};
|
|
9307
|
-
};
|
|
9485
|
+
"application/json": components["schemas"]["VpnResetTask"] | components["schemas"]["VpnReconfigureTask"];
|
|
9308
9486
|
};
|
|
9309
9487
|
};
|
|
9310
9488
|
responses: {
|
|
@@ -10824,11 +11002,7 @@ export interface operations {
|
|
|
10824
11002
|
name?: string;
|
|
10825
11003
|
identifier?: components["schemas"]["Identifier"];
|
|
10826
11004
|
integrations?: components["schemas"]["HubIntegrations"];
|
|
10827
|
-
|
|
10828
|
-
webhooks?: {
|
|
10829
|
-
/** @description A webhook to report information to each time a server is deployed on the given hub. */
|
|
10830
|
-
server_deployed: string | null;
|
|
10831
|
-
};
|
|
11005
|
+
webhooks?: components["schemas"]["HubWebhooks"];
|
|
10832
11006
|
};
|
|
10833
11007
|
};
|
|
10834
11008
|
};
|
|
@@ -10896,11 +11070,7 @@ export interface operations {
|
|
|
10896
11070
|
/** @description A name for the hub. */
|
|
10897
11071
|
name?: string;
|
|
10898
11072
|
integrations?: components["schemas"]["HubIntegrations"];
|
|
10899
|
-
|
|
10900
|
-
webhooks?: {
|
|
10901
|
-
/** @description A webahook to report information to each time a server is deployed on the given hub. */
|
|
10902
|
-
server_deployed: string | null;
|
|
10903
|
-
};
|
|
11073
|
+
webhooks?: components["schemas"]["HubWebhooks"];
|
|
10904
11074
|
};
|
|
10905
11075
|
};
|
|
10906
11076
|
};
|
|
@@ -10944,8 +11114,8 @@ export interface operations {
|
|
|
10944
11114
|
instance?: string;
|
|
10945
11115
|
/** @description `filter[server]=ID` server filtering by ID. Submit the ID of the server you wish to filter for and the return will be any activity from that server. */
|
|
10946
11116
|
server?: string;
|
|
10947
|
-
/** @description `filter[
|
|
10948
|
-
|
|
11117
|
+
/** @description `filter[events]=value` filter by event names. Example: `filter[events]=environment.services.vpn.login` */
|
|
11118
|
+
events?: string;
|
|
10949
11119
|
/**
|
|
10950
11120
|
* @description `filter[verbosity]=integer` filter the activity return by verbosity. The verbosity can be:
|
|
10951
11121
|
* `0` - Activity that users would find useful.
|
|
@@ -11939,7 +12109,7 @@ export interface operations {
|
|
|
11939
12109
|
page?: components["parameters"]["PageParam"];
|
|
11940
12110
|
};
|
|
11941
12111
|
path: {
|
|
11942
|
-
/** @description The
|
|
12112
|
+
/** @description The identifier for the given provider. Can be `aws`, `gcp`, `equinix-metal`, `vultr`. */
|
|
11943
12113
|
providerId: string;
|
|
11944
12114
|
};
|
|
11945
12115
|
};
|
|
@@ -11966,7 +12136,7 @@ export interface operations {
|
|
|
11966
12136
|
page?: components["parameters"]["PageParam"];
|
|
11967
12137
|
};
|
|
11968
12138
|
path: {
|
|
11969
|
-
/** @description The
|
|
12139
|
+
/** @description The identifier for the given provider. Can be `aws`, `gcp`, `equinix-metal`, `vultr`. */
|
|
11970
12140
|
providerId: string;
|
|
11971
12141
|
};
|
|
11972
12142
|
};
|