@cycleplatform/api-client-typescript 0.1.11 → 0.1.13
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 +275 -97
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: {
|
|
2591
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: {
|
|
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";
|
|
@@ -4361,13 +4547,21 @@ export interface components {
|
|
|
4361
4547
|
};
|
|
4362
4548
|
};
|
|
4363
4549
|
health_check?: {
|
|
4550
|
+
/**
|
|
4551
|
+
* @description The command to run as your health check
|
|
4552
|
+
* @example /bin/sh healthcheck.sh
|
|
4553
|
+
*/
|
|
4364
4554
|
command: string;
|
|
4555
|
+
/** @description The number of times to retry the command before marking an instance unhealthy */
|
|
4365
4556
|
retries: number;
|
|
4366
|
-
/** @description How long to wait between
|
|
4557
|
+
/** @description How long to wait between running health checks. */
|
|
4367
4558
|
interval: components["schemas"]["Duration"];
|
|
4368
4559
|
/** @description How long before a health check attempt times out. */
|
|
4369
4560
|
timeout: components["schemas"]["Duration"];
|
|
4561
|
+
/** @description A boolean where true represents the desire for the container to restart if any instance is unhealthy. */
|
|
4370
4562
|
restart: boolean;
|
|
4563
|
+
/** @description How long to wait after a container start event before starting health checks. */
|
|
4564
|
+
delay?: components["schemas"]["Duration"];
|
|
4371
4565
|
};
|
|
4372
4566
|
telemetry?: {
|
|
4373
4567
|
/** @description How long telemetry data should be retained. */
|
|
@@ -4484,12 +4678,7 @@ export interface components {
|
|
|
4484
4678
|
* StackSpecLoadBalancerConfig
|
|
4485
4679
|
* @description The config object for the loadbalancer service.
|
|
4486
4680
|
*/
|
|
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"]);
|
|
4681
|
+
StackSpecLoadBalancerConfig: components["schemas"]["HaProxyLbType"] | components["schemas"]["V1LbType"] | components["schemas"]["DefaultLbType"];
|
|
4493
4682
|
/** StackSpec */
|
|
4494
4683
|
StackSpec: {
|
|
4495
4684
|
/** @description A string defining the version of the stack spec. */
|
|
@@ -5074,7 +5263,7 @@ export interface components {
|
|
|
5074
5263
|
id: string;
|
|
5075
5264
|
/** @description A name for the location. */
|
|
5076
5265
|
name: string;
|
|
5077
|
-
geographic: components["schemas"]["Geographic"]
|
|
5266
|
+
geographic: (Record<string, unknown> | null) & components["schemas"]["Geographic"];
|
|
5078
5267
|
provider: components["schemas"]["LocationProvider"];
|
|
5079
5268
|
/** @description A boolean where true means the locaiton is supported by the platform. */
|
|
5080
5269
|
compatible: boolean;
|
|
@@ -5310,12 +5499,17 @@ export interface components {
|
|
|
5310
5499
|
*/
|
|
5311
5500
|
current: "new" | "starting" | "reimaging" | "migrating" | "running" | "stopping" | "stopped" | "failed" | "deleting" | "deleted";
|
|
5312
5501
|
/** @description information about the health of the instance. */
|
|
5313
|
-
health?: {
|
|
5314
|
-
/**
|
|
5315
|
-
|
|
5502
|
+
health?: ({
|
|
5503
|
+
/**
|
|
5504
|
+
* @description Describes the healthiness of the instance. Health checks can be configured at the container level.
|
|
5505
|
+
* - `true`: The instance is considered healthy.
|
|
5506
|
+
* - `false`: The instance is considered unhealthy.
|
|
5507
|
+
* - `null`: The instance has not yet reported its health, or a health check has not yet been performed.
|
|
5508
|
+
*/
|
|
5509
|
+
healthy: boolean | null;
|
|
5316
5510
|
/** @description A timestamp of the last time the instance health was updated. */
|
|
5317
5511
|
updated: components["schemas"]["DateTime"];
|
|
5318
|
-
};
|
|
5512
|
+
}) | null;
|
|
5319
5513
|
}) & components["schemas"]["State"];
|
|
5320
5514
|
/**
|
|
5321
5515
|
* Instance
|
|
@@ -5908,6 +6102,10 @@ export interface components {
|
|
|
5908
6102
|
*/
|
|
5909
6103
|
Logs: {
|
|
5910
6104
|
id: components["schemas"]["ID"];
|
|
6105
|
+
/** @description An identifier for the container. */
|
|
6106
|
+
container_id: string;
|
|
6107
|
+
/** @description An identifier for the instance. */
|
|
6108
|
+
instance_id: string;
|
|
5911
6109
|
/** @description An identifier for the backup. */
|
|
5912
6110
|
backup_id: string;
|
|
5913
6111
|
hub_id: components["schemas"]["HubID"];
|
|
@@ -5918,6 +6116,15 @@ export interface components {
|
|
|
5918
6116
|
type: "restore" | "backup";
|
|
5919
6117
|
/** @description The log. */
|
|
5920
6118
|
log: string;
|
|
6119
|
+
error?: {
|
|
6120
|
+
message: string;
|
|
6121
|
+
message_internal?: string;
|
|
6122
|
+
stack?: {
|
|
6123
|
+
file: string;
|
|
6124
|
+
function: string;
|
|
6125
|
+
line: number;
|
|
6126
|
+
}[];
|
|
6127
|
+
} | null;
|
|
5921
6128
|
/**
|
|
5922
6129
|
* BackupLogEvents
|
|
5923
6130
|
* @description A collection of timestamps for each event in the backup log's lifetime.
|
|
@@ -6482,10 +6689,10 @@ export interface components {
|
|
|
6482
6689
|
*/
|
|
6483
6690
|
ResourceLocation: OneOf<[{
|
|
6484
6691
|
/** @description The ID of an existing resource that exists before the pipeline is run. */
|
|
6485
|
-
id
|
|
6692
|
+
id: string;
|
|
6486
6693
|
}, {
|
|
6487
6694
|
/** @description The stage and step to report on. */
|
|
6488
|
-
from
|
|
6695
|
+
from: {
|
|
6489
6696
|
/** @description An identifier for the stage the step being reported on resides in. */
|
|
6490
6697
|
stage?: string;
|
|
6491
6698
|
/** @description An identifier for the step to be reported on. */
|
|
@@ -8559,6 +8766,10 @@ export interface operations {
|
|
|
8559
8766
|
*/
|
|
8560
8767
|
getInvoice: {
|
|
8561
8768
|
parameters: {
|
|
8769
|
+
query?: {
|
|
8770
|
+
/** @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. */
|
|
8771
|
+
meta?: "due"[];
|
|
8772
|
+
};
|
|
8562
8773
|
path: {
|
|
8563
8774
|
/** @description The ID of the invoice. */
|
|
8564
8775
|
invoiceId: string;
|
|
@@ -9266,45 +9477,20 @@ export interface operations {
|
|
|
9266
9477
|
};
|
|
9267
9478
|
};
|
|
9268
9479
|
/**
|
|
9269
|
-
*
|
|
9270
|
-
* @description Requires the `environments-vpn-manage` capability.
|
|
9480
|
+
* Create Environment VPN Job
|
|
9481
|
+
* @description Used to reconfigure or reset the environment VPN. Requires the `environments-vpn-manage` capability.
|
|
9271
9482
|
*/
|
|
9272
|
-
|
|
9483
|
+
createEnvironmentVpnTask: {
|
|
9273
9484
|
parameters: {
|
|
9274
9485
|
path: {
|
|
9275
9486
|
/** @description The ID of the environment the VPN service resides in. */
|
|
9276
9487
|
environmentId: string;
|
|
9277
9488
|
};
|
|
9278
9489
|
};
|
|
9279
|
-
/** @description
|
|
9490
|
+
/** @description The task contents used to build the environment VPN job. */
|
|
9280
9491
|
requestBody?: {
|
|
9281
9492
|
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
|
-
};
|
|
9493
|
+
"application/json": components["schemas"]["VpnResetTask"] | components["schemas"]["VpnReconfigureTask"];
|
|
9308
9494
|
};
|
|
9309
9495
|
};
|
|
9310
9496
|
responses: {
|
|
@@ -10824,11 +11010,7 @@ export interface operations {
|
|
|
10824
11010
|
name?: string;
|
|
10825
11011
|
identifier?: components["schemas"]["Identifier"];
|
|
10826
11012
|
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
|
-
};
|
|
11013
|
+
webhooks?: components["schemas"]["HubWebhooks"];
|
|
10832
11014
|
};
|
|
10833
11015
|
};
|
|
10834
11016
|
};
|
|
@@ -10896,11 +11078,7 @@ export interface operations {
|
|
|
10896
11078
|
/** @description A name for the hub. */
|
|
10897
11079
|
name?: string;
|
|
10898
11080
|
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
|
-
};
|
|
11081
|
+
webhooks?: components["schemas"]["HubWebhooks"];
|
|
10904
11082
|
};
|
|
10905
11083
|
};
|
|
10906
11084
|
};
|
|
@@ -10944,8 +11122,8 @@ export interface operations {
|
|
|
10944
11122
|
instance?: string;
|
|
10945
11123
|
/** @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
11124
|
server?: string;
|
|
10947
|
-
/** @description `filter[
|
|
10948
|
-
|
|
11125
|
+
/** @description `filter[events]=value` filter by event names. Example: `filter[events]=environment.services.vpn.login` */
|
|
11126
|
+
events?: string;
|
|
10949
11127
|
/**
|
|
10950
11128
|
* @description `filter[verbosity]=integer` filter the activity return by verbosity. The verbosity can be:
|
|
10951
11129
|
* `0` - Activity that users would find useful.
|
|
@@ -11939,7 +12117,7 @@ export interface operations {
|
|
|
11939
12117
|
page?: components["parameters"]["PageParam"];
|
|
11940
12118
|
};
|
|
11941
12119
|
path: {
|
|
11942
|
-
/** @description The
|
|
12120
|
+
/** @description The identifier for the given provider. Can be `aws`, `gcp`, `equinix-metal`, `vultr`. */
|
|
11943
12121
|
providerId: string;
|
|
11944
12122
|
};
|
|
11945
12123
|
};
|
|
@@ -11966,7 +12144,7 @@ export interface operations {
|
|
|
11966
12144
|
page?: components["parameters"]["PageParam"];
|
|
11967
12145
|
};
|
|
11968
12146
|
path: {
|
|
11969
|
-
/** @description The
|
|
12147
|
+
/** @description The identifier for the given provider. Can be `aws`, `gcp`, `equinix-metal`, `vultr`. */
|
|
11970
12148
|
providerId: string;
|
|
11971
12149
|
};
|
|
11972
12150
|
};
|