@distilled.cloud/fly-io 1.0.0-rc.11 → 1.0.0-rc.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/README.md +34 -0
- package/lib/protocol.d.ts +2 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +39 -24
- package/lib/protocol.js.map +1 -1
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +125 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +32 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/services/machines.d.ts +206 -58
- package/lib/services/machines.d.ts.map +1 -1
- package/lib/services/machines.js +200 -50
- package/lib/services/machines.js.map +1 -1
- package/lib/sprites-mint.test.d.ts +2 -0
- package/lib/sprites-mint.test.d.ts.map +1 -0
- package/lib/sprites-mint.test.js +170 -0
- package/lib/sprites-mint.test.js.map +1 -0
- package/package.json +4 -4
- package/src/protocol.test.ts +234 -0
- package/src/protocol.ts +81 -42
- package/src/response-validation.test.ts +46 -0
- package/src/services/machines.ts +479 -117
- package/src/sprites-mint.test.ts +270 -0
|
@@ -3,6 +3,31 @@ import * as API from "@distilled.cloud/core/api";
|
|
|
3
3
|
import { type FlyIoOpError, type FlyIoOpContext } from "../protocol.ts";
|
|
4
4
|
import { BadRequest, Conflict, Forbidden, GatewayTimeout, NotFound, UnprocessableEntity } from "../errors.ts";
|
|
5
5
|
export type { FlyIoOpError, FlyIoOpContext };
|
|
6
|
+
declare const MachineReplacing_base: S.Class<MachineReplacing, S.TaggedStruct<"MachineReplacing", {
|
|
7
|
+
readonly message: any;
|
|
8
|
+
}>, import("effect/Cause").YieldableError>;
|
|
9
|
+
export declare class MachineReplacing extends /*@__PURE__*/ MachineReplacing_base {
|
|
10
|
+
}
|
|
11
|
+
declare const MachineStartFromCreatedState_base: S.Class<MachineStartFromCreatedState, S.TaggedStruct<"MachineStartFromCreatedState", {
|
|
12
|
+
readonly message: any;
|
|
13
|
+
}>, import("effect/Cause").YieldableError>;
|
|
14
|
+
export declare class MachineStartFromCreatedState extends /*@__PURE__*/ MachineStartFromCreatedState_base {
|
|
15
|
+
}
|
|
16
|
+
declare const MachineWaitTimeout_base: S.Class<MachineWaitTimeout, S.TaggedStruct<"MachineWaitTimeout", {
|
|
17
|
+
readonly message: any;
|
|
18
|
+
}>, import("effect/Cause").YieldableError>;
|
|
19
|
+
export declare class MachineWaitTimeout extends /*@__PURE__*/ MachineWaitTimeout_base {
|
|
20
|
+
}
|
|
21
|
+
declare const NetworkNotFound_base: S.Class<NetworkNotFound, S.TaggedStruct<"NetworkNotFound", {
|
|
22
|
+
readonly message: any;
|
|
23
|
+
}>, import("effect/Cause").YieldableError>;
|
|
24
|
+
export declare class NetworkNotFound extends /*@__PURE__*/ NetworkNotFound_base {
|
|
25
|
+
}
|
|
26
|
+
declare const VolumeAttached_base: S.Class<VolumeAttached, S.TaggedStruct<"VolumeAttached", {
|
|
27
|
+
readonly message: any;
|
|
28
|
+
}>, import("effect/Cause").YieldableError>;
|
|
29
|
+
export declare class VolumeAttached extends /*@__PURE__*/ VolumeAttached_base {
|
|
30
|
+
}
|
|
6
31
|
export interface AuthenticateTokenRequest {
|
|
7
32
|
header?: string;
|
|
8
33
|
}
|
|
@@ -206,6 +231,7 @@ export interface CordonMachineRequest {
|
|
|
206
231
|
app_name: string;
|
|
207
232
|
/** Machine ID */
|
|
208
233
|
machine_id: string;
|
|
234
|
+
lease_nonce?: string;
|
|
209
235
|
}
|
|
210
236
|
export declare const CordonMachineRequest: S.Schema<CordonMachineRequest>;
|
|
211
237
|
export interface CordonMachineResponse {
|
|
@@ -213,12 +239,16 @@ export interface CordonMachineResponse {
|
|
|
213
239
|
export declare const CordonMachineResponse: S.Schema<CordonMachineResponse>;
|
|
214
240
|
export interface CreateAppRequest {
|
|
215
241
|
enable_subdomains?: boolean;
|
|
242
|
+
/** When set, makes a retry of this exact request safe: a second create with the same key and the same name (or no name) returns the app the first request created, instead of erroring on a false name conflict or creating a duplicate. A second create with the same key but a *different* name is rejected outright; it won't silently hand back the first app. */
|
|
243
|
+
idempotency_key?: string;
|
|
216
244
|
name?: string;
|
|
217
245
|
network?: string;
|
|
218
246
|
org_slug?: string;
|
|
219
247
|
}
|
|
220
248
|
export declare const CreateAppRequest: S.Schema<CreateAppRequest>;
|
|
221
249
|
export interface CreateAppResponse {
|
|
250
|
+
created_at?: number;
|
|
251
|
+
id?: string;
|
|
222
252
|
}
|
|
223
253
|
export declare const CreateAppResponse: S.Schema<CreateAppResponse>;
|
|
224
254
|
export interface CreateAppAcmeCertificateRequest {
|
|
@@ -280,12 +310,20 @@ export interface IPPair {
|
|
|
280
310
|
v6?: string;
|
|
281
311
|
}
|
|
282
312
|
export declare const IPPair: S.Schema<IPPair>;
|
|
313
|
+
/** The 6PN network a Flycast (private_v6) address belongs to. Null for all other IP types. */
|
|
314
|
+
export interface IPAssignmentNetwork {
|
|
315
|
+
/** Network name; empty for the organization's default network. */
|
|
316
|
+
name?: string;
|
|
317
|
+
org_slug?: string;
|
|
318
|
+
}
|
|
319
|
+
export declare const IPAssignmentNetwork: S.Schema<IPAssignmentNetwork>;
|
|
283
320
|
export interface AssignIPResponse {
|
|
284
321
|
created_at?: string;
|
|
285
322
|
egress?: boolean;
|
|
286
323
|
ip?: string;
|
|
287
324
|
/** ip_pair is returned when "egress-pair" IP type is requested; in this case, ip is null. */
|
|
288
325
|
ip_pair?: IPPair;
|
|
326
|
+
network?: IPAssignmentNetwork | null;
|
|
289
327
|
region?: string;
|
|
290
328
|
service_name?: string;
|
|
291
329
|
shared?: boolean;
|
|
@@ -461,16 +499,14 @@ export declare const FlyContainerHealthcheck: S.Schema<FlyContainerHealthcheck>;
|
|
|
461
499
|
/** Healthchecks determine the health of your containers. Healthchecks can use HTTP, TCP or an Exec command. */
|
|
462
500
|
export type FlyContainerConfigHealthchecksList = Array<FlyContainerHealthcheck>;
|
|
463
501
|
export declare const FlyContainerConfigHealthchecksList: S.Schema<FlyContainerConfigHealthchecksList>;
|
|
464
|
-
/** * no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash. * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly. * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules.
|
|
465
|
-
export type FlyMachineRestartPolicy = "no" | "always" | "on-failure"
|
|
502
|
+
/** * no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash. * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly. * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules. */
|
|
503
|
+
export type FlyMachineRestartPolicy = "no" | "always" | "on-failure";
|
|
466
504
|
export declare const FlyMachineRestartPolicy: any;
|
|
467
505
|
/** The Machine restart policy defines whether and how flyd restarts a Machine after its main process exits. See https://fly.io/docs/machines/guides-examples/machine-restart-policy/. */
|
|
468
506
|
export interface FlyMachineRestart {
|
|
469
|
-
/** GPU bid price for spot Machines. */
|
|
470
|
-
gpu_bid_price?: number;
|
|
471
507
|
/** When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop. */
|
|
472
508
|
max_retries?: number;
|
|
473
|
-
/** * no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash. * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly. * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules.
|
|
509
|
+
/** * no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash. * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly. * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules. */
|
|
474
510
|
policy?: FlyMachineRestartPolicy | (string & {});
|
|
475
511
|
}
|
|
476
512
|
export declare const FlyMachineRestart: S.Schema<FlyMachineRestart>;
|
|
@@ -513,7 +549,7 @@ export interface FlyContainerConfig {
|
|
|
513
549
|
image?: string;
|
|
514
550
|
/** Name is used to identify the container in the machine. */
|
|
515
551
|
name?: string;
|
|
516
|
-
/** Restart is used to define the restart policy for the container.
|
|
552
|
+
/** Restart is used to define the restart policy for the container. */
|
|
517
553
|
restart?: FlyMachineRestart;
|
|
518
554
|
/** Secrets can be provided at the process level to explicitly indicate which secrets should be used for the process. If not provided, the secrets provided at the machine level will be used. */
|
|
519
555
|
secrets?: FlyContainerConfigSecretsList;
|
|
@@ -566,6 +602,8 @@ export declare const FlyMachineGuestKernelArgsList: S.Schema<FlyMachineGuestKern
|
|
|
566
602
|
/** Deprecated: use MachineConfig.Rootfs instead */
|
|
567
603
|
export type FlyMachineGuestPersistRootfs = "never" | "always" | "restart";
|
|
568
604
|
export declare const FlyMachineGuestPersistRootfs: any;
|
|
605
|
+
export type FlyMachineGuestRequiredHostFeaturesList = Array<string>;
|
|
606
|
+
export declare const FlyMachineGuestRequiredHostFeaturesList: S.Schema<FlyMachineGuestRequiredHostFeaturesList>;
|
|
569
607
|
export interface FlyMachineGuest {
|
|
570
608
|
cpu_kind?: string;
|
|
571
609
|
cpus?: number;
|
|
@@ -577,6 +615,7 @@ export interface FlyMachineGuest {
|
|
|
577
615
|
memory_mb?: number;
|
|
578
616
|
/** Deprecated: use MachineConfig.Rootfs instead */
|
|
579
617
|
persist_rootfs?: FlyMachineGuestPersistRootfs | (string & {});
|
|
618
|
+
required_host_features?: FlyMachineGuestRequiredHostFeaturesList;
|
|
580
619
|
}
|
|
581
620
|
export declare const FlyMachineGuest: S.Schema<FlyMachineGuest>;
|
|
582
621
|
export type FlyMachineInitCmdList = Array<string>;
|
|
@@ -608,8 +647,12 @@ export interface FlyMachineMetrics {
|
|
|
608
647
|
export declare const FlyMachineMetrics: S.Schema<FlyMachineMetrics>;
|
|
609
648
|
export interface FlyMachineMount {
|
|
610
649
|
add_size_gb?: number;
|
|
650
|
+
/** AddSizePercent grows by a percentage of the current size, rounded up to GiB. It is mutually exclusive with AddSizeGb. */
|
|
651
|
+
add_size_percent?: number;
|
|
611
652
|
encrypted?: boolean;
|
|
612
653
|
extend_threshold_percent?: number;
|
|
654
|
+
/** MinAddSizeGb is the minimum proportional growth in GiB (default 1). */
|
|
655
|
+
min_add_size_gb?: number;
|
|
613
656
|
name?: string;
|
|
614
657
|
path?: string;
|
|
615
658
|
size_gb?: number;
|
|
@@ -659,8 +702,11 @@ export interface FlyMachineRootfs {
|
|
|
659
702
|
}
|
|
660
703
|
export declare const FlyMachineRootfs: S.Schema<FlyMachineRootfs>;
|
|
661
704
|
/** Accepts a string (new format) or a boolean (old format). For backward compatibility with older clients, the API continues to use booleans for "off" and "stop" in responses. * "off" or false - Do not autostop the Machine. * "stop" or true - Automatically stop the Machine. * "suspend" - Automatically suspend the Machine, falling back to a full stop if this is not possible. */
|
|
662
|
-
export type
|
|
663
|
-
export declare const
|
|
705
|
+
export type FlyMachineServiceAutostopMode = "off" | "stop" | "suspend";
|
|
706
|
+
export declare const FlyMachineServiceAutostopMode: any;
|
|
707
|
+
/** Accepts off, stop, or suspend. For backward compatibility, responses encode off as false and stop as true. */
|
|
708
|
+
export type FlyMachineServiceAutostop = FlyMachineServiceAutostopMode | (string & {}) | boolean;
|
|
709
|
+
export declare const FlyMachineServiceAutostop: S.Codec<FlyMachineServiceAutostop>;
|
|
664
710
|
export type FlyMachineServiceCheckHeadersList = Array<FlyMachineHTTPHeader>;
|
|
665
711
|
export declare const FlyMachineServiceCheckHeadersList: S.Schema<FlyMachineServiceCheckHeadersList>;
|
|
666
712
|
export interface FlyMachineServiceCheck {
|
|
@@ -761,7 +807,7 @@ export declare const FlyMachineServicePortsList: S.Schema<FlyMachineServicePorts
|
|
|
761
807
|
export interface FlyMachineService {
|
|
762
808
|
autostart?: boolean;
|
|
763
809
|
/** Accepts a string (new format) or a boolean (old format). For backward compatibility with older clients, the API continues to use booleans for "off" and "stop" in responses. * "off" or false - Do not autostop the Machine. * "stop" or true - Automatically stop the Machine. * "suspend" - Automatically suspend the Machine, falling back to a full stop if this is not possible. */
|
|
764
|
-
autostop?: FlyMachineServiceAutostop
|
|
810
|
+
autostop?: FlyMachineServiceAutostop;
|
|
765
811
|
/** An optional list of service checks */
|
|
766
812
|
checks?: FlyMachineServiceChecksList;
|
|
767
813
|
concurrency?: FlyMachineServiceConcurrency;
|
|
@@ -863,6 +909,8 @@ export interface MachineEvent {
|
|
|
863
909
|
export declare const MachineEvent: S.Schema<MachineEvent>;
|
|
864
910
|
export type MachineEventsList = Array<MachineEvent>;
|
|
865
911
|
export declare const MachineEventsList: S.Schema<MachineEventsList>;
|
|
912
|
+
export type MachineHostFeaturesList = Array<string>;
|
|
913
|
+
export declare const MachineHostFeaturesList: S.Schema<MachineHostFeaturesList>;
|
|
866
914
|
export type MachineHostStatus = "ok" | "unknown" | "unreachable";
|
|
867
915
|
export declare const MachineHostStatus: any;
|
|
868
916
|
export type ImageRefLabelsMap = {
|
|
@@ -889,11 +937,12 @@ export interface Machine {
|
|
|
889
937
|
cordoned?: boolean;
|
|
890
938
|
created_at?: string;
|
|
891
939
|
events?: MachineEventsList;
|
|
940
|
+
host_features?: MachineHostFeaturesList;
|
|
892
941
|
host_status?: MachineHostStatus;
|
|
893
942
|
id?: string;
|
|
894
943
|
image_ref?: ImageRef;
|
|
895
944
|
incomplete_config?: FlyMachineConfig;
|
|
896
|
-
/** InstanceID is
|
|
945
|
+
/** InstanceID is the same value as `version`. Deprecated: use `version`. */
|
|
897
946
|
instance_id?: string;
|
|
898
947
|
lease?: StrippedLease;
|
|
899
948
|
name?: string;
|
|
@@ -904,6 +953,8 @@ export interface Machine {
|
|
|
904
953
|
region?: string;
|
|
905
954
|
state?: string;
|
|
906
955
|
updated_at?: string;
|
|
956
|
+
/** Version is unique for each version of the machine. Pass it as `current_version` when updating the Machine to reject the update if the Machine has changed since this version. */
|
|
957
|
+
version?: string;
|
|
907
958
|
}
|
|
908
959
|
export declare const Machine: S.Schema<Machine>;
|
|
909
960
|
export interface CreateMachineLeaseRequest {
|
|
@@ -914,6 +965,8 @@ export interface CreateMachineLeaseRequest {
|
|
|
914
965
|
description?: string;
|
|
915
966
|
/** seconds lease will be valid */
|
|
916
967
|
ttl?: number;
|
|
968
|
+
/** Existing lease nonce when refreshing; omit to acquire a new lease. Keep the nonce private. */
|
|
969
|
+
lease_nonce?: string;
|
|
917
970
|
}
|
|
918
971
|
export declare const CreateMachineLeaseRequest: S.Schema<CreateMachineLeaseRequest>;
|
|
919
972
|
export interface Lease {
|
|
@@ -929,10 +982,15 @@ export interface Lease {
|
|
|
929
982
|
version?: string;
|
|
930
983
|
}
|
|
931
984
|
export declare const Lease: S.Schema<Lease>;
|
|
985
|
+
export interface MachineLease {
|
|
986
|
+
status?: string;
|
|
987
|
+
data?: Lease;
|
|
988
|
+
}
|
|
989
|
+
export declare const MachineLease: S.Schema<MachineLease>;
|
|
932
990
|
/** Postgres major version. */
|
|
933
991
|
export type CreatePostgresRequestPgMajorVersion = "16" | "17";
|
|
934
992
|
export declare const CreatePostgresRequestPgMajorVersion: any;
|
|
935
|
-
/** Plan slug selecting CPU, memory, and disk sizing. */
|
|
993
|
+
/** Plan slug selecting CPU, memory, and disk sizing. Matched case-insensitively. */
|
|
936
994
|
export type CreatePostgresRequestPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
|
|
937
995
|
export declare const CreatePostgresRequestPlan: any;
|
|
938
996
|
/** Connection pooler mode. */
|
|
@@ -943,11 +1001,11 @@ export interface CreatePostgresRequest {
|
|
|
943
1001
|
disk_size_gb?: number;
|
|
944
1002
|
/** Name for the cluster. A name is generated when omitted. */
|
|
945
1003
|
name?: string;
|
|
946
|
-
/** Slug of the organization that will own the cluster. */
|
|
1004
|
+
/** Slug of the organization that will own the cluster, or "personal" for the caller's personal organization. */
|
|
947
1005
|
org_slug: string;
|
|
948
1006
|
/** Postgres major version. */
|
|
949
1007
|
pg_major_version?: CreatePostgresRequestPgMajorVersion | (string & {});
|
|
950
|
-
/** Plan slug selecting CPU, memory, and disk sizing. */
|
|
1008
|
+
/** Plan slug selecting CPU, memory, and disk sizing. Matched case-insensitively. */
|
|
951
1009
|
plan: CreatePostgresRequestPlan | (string & {});
|
|
952
1010
|
/** Connection pooler mode. */
|
|
953
1011
|
pool_mode?: CreatePostgresRequestPoolMode | (string & {});
|
|
@@ -1012,7 +1070,7 @@ export interface PostgresCluster {
|
|
|
1012
1070
|
cpus?: number;
|
|
1013
1071
|
/** RFC 3339 creation timestamp. */
|
|
1014
1072
|
created_at?: string;
|
|
1015
|
-
/** Disk size in gigabytes. */
|
|
1073
|
+
/** Disk size in gigabytes, for one replica. */
|
|
1016
1074
|
disk_size_gb?: number;
|
|
1017
1075
|
/** Connection endpoints. Populated once the cluster is ready. */
|
|
1018
1076
|
endpoints?: PostgresClusterEndpoints;
|
|
@@ -1035,6 +1093,10 @@ export interface PostgresCluster {
|
|
|
1035
1093
|
replicas?: number;
|
|
1036
1094
|
/** Current lifecycle status. */
|
|
1037
1095
|
status?: PostgresClusterStatus;
|
|
1096
|
+
/** Storage provisioned, summed across the cluster's volumes and measured hourly. Null until first measured. */
|
|
1097
|
+
storage_provisioned_bytes?: number | null;
|
|
1098
|
+
/** Storage used, summed across the cluster's volumes and measured hourly. Null until first measured. */
|
|
1099
|
+
storage_used_bytes?: number | null;
|
|
1038
1100
|
}
|
|
1039
1101
|
export declare const PostgresCluster: S.Schema<PostgresCluster>;
|
|
1040
1102
|
export interface ShowPostgresClusterResponse {
|
|
@@ -1077,7 +1139,7 @@ export declare const CreatePostgresBackupResponse: S.Schema<CreatePostgresBackup
|
|
|
1077
1139
|
export interface CreatePostgresDatabaseRequest {
|
|
1078
1140
|
/** Managed Postgres Cluster ID */
|
|
1079
1141
|
postgres_cluster_id: string;
|
|
1080
|
-
/** Name of the database to create. */
|
|
1142
|
+
/** Name of the database to create. Must start and end with an alphanumeric character and may contain hyphens and underscores, up to 63 characters. */
|
|
1081
1143
|
name: string;
|
|
1082
1144
|
}
|
|
1083
1145
|
export declare const CreatePostgresDatabaseRequest: S.Schema<CreatePostgresDatabaseRequest>;
|
|
@@ -1098,7 +1160,7 @@ export interface CreatePostgresUserRequest {
|
|
|
1098
1160
|
postgres_cluster_id: string;
|
|
1099
1161
|
/** Role to grant the user. */
|
|
1100
1162
|
role: CreatePostgresUserRequestRole | (string & {});
|
|
1101
|
-
/** Name for the new user. */
|
|
1163
|
+
/** Name for the new user. Must start and end with a lowercase alphanumeric character and may contain hyphens and underscores, up to 63 characters. */
|
|
1102
1164
|
username: string;
|
|
1103
1165
|
}
|
|
1104
1166
|
export declare const CreatePostgresUserRequest: S.Schema<CreatePostgresUserRequest>;
|
|
@@ -1156,8 +1218,12 @@ export interface CreateVolumeRequest {
|
|
|
1156
1218
|
unique_zone_app_wide?: boolean;
|
|
1157
1219
|
}
|
|
1158
1220
|
export declare const CreateVolumeRequest: S.Schema<CreateVolumeRequest>;
|
|
1221
|
+
export type VolumeHostFeaturesList = Array<string>;
|
|
1222
|
+
export declare const VolumeHostFeaturesList: S.Schema<VolumeHostFeaturesList>;
|
|
1159
1223
|
export type VolumeHostStatus = "ok" | "unknown" | "unreachable";
|
|
1160
1224
|
export declare const VolumeHostStatus: any;
|
|
1225
|
+
export type VolumeRequiredHostFeaturesList = Array<string>;
|
|
1226
|
+
export declare const VolumeRequiredHostFeaturesList: S.Schema<VolumeRequiredHostFeaturesList>;
|
|
1161
1227
|
export type VolumeType = "local" | "cache";
|
|
1162
1228
|
export declare const VolumeType: any;
|
|
1163
1229
|
export interface Volume {
|
|
@@ -1173,10 +1239,12 @@ export interface Volume {
|
|
|
1173
1239
|
created_at?: string;
|
|
1174
1240
|
encrypted?: boolean;
|
|
1175
1241
|
fstype?: string;
|
|
1242
|
+
host_features?: VolumeHostFeaturesList;
|
|
1176
1243
|
host_status?: VolumeHostStatus;
|
|
1177
1244
|
id?: string;
|
|
1178
1245
|
name?: string;
|
|
1179
1246
|
region?: string;
|
|
1247
|
+
required_host_features?: VolumeRequiredHostFeaturesList;
|
|
1180
1248
|
size_gb?: number;
|
|
1181
1249
|
snapshot_retention?: number;
|
|
1182
1250
|
state?: string;
|
|
@@ -1276,6 +1344,7 @@ export interface DeleteMachineRequest {
|
|
|
1276
1344
|
machine_id: string;
|
|
1277
1345
|
/** Force kill the machine if it's running */
|
|
1278
1346
|
force?: boolean;
|
|
1347
|
+
lease_nonce?: string;
|
|
1279
1348
|
}
|
|
1280
1349
|
export declare const DeleteMachineRequest: S.Schema<DeleteMachineRequest>;
|
|
1281
1350
|
export interface DeleteMachineResponse {
|
|
@@ -1531,6 +1600,8 @@ export interface GetMachineRequest {
|
|
|
1531
1600
|
app_name: string;
|
|
1532
1601
|
/** Machine ID */
|
|
1533
1602
|
machine_id: string;
|
|
1603
|
+
/** 26-character Machine version ID; returns that version of the Machine instead of the current one */
|
|
1604
|
+
version?: string;
|
|
1534
1605
|
/** Include machine lease */
|
|
1535
1606
|
include_leases?: boolean;
|
|
1536
1607
|
}
|
|
@@ -1724,6 +1795,7 @@ export interface IPAssignment {
|
|
|
1724
1795
|
created_at?: string;
|
|
1725
1796
|
egress?: boolean;
|
|
1726
1797
|
ip?: string;
|
|
1798
|
+
network?: IPAssignmentNetwork | null;
|
|
1727
1799
|
region?: string;
|
|
1728
1800
|
service_name?: string;
|
|
1729
1801
|
shared?: boolean;
|
|
@@ -1811,6 +1883,10 @@ export interface ListMachinesRequest {
|
|
|
1811
1883
|
summary?: boolean;
|
|
1812
1884
|
/** Filter by a machine metadata key and exact value. Replace {key} with the metadata key, for example metadata.foo=bar. Specify multiple metadata filters to require all matches. */
|
|
1813
1885
|
metadata__key_?: string;
|
|
1886
|
+
/** Value of the fly-next-cursor response header from the previous page. Requires limit. */
|
|
1887
|
+
cursor?: string;
|
|
1888
|
+
/** The number of machines to fetch (must be between 1 and 1000). Providing a limit enables pagination. This limit is advisory; responses may be shorter, or even empty, even when more machines remain. */
|
|
1889
|
+
limit?: number;
|
|
1814
1890
|
}
|
|
1815
1891
|
export declare const ListMachinesRequest: S.Schema<ListMachinesRequest>;
|
|
1816
1892
|
export type ListMachinesResponseBodyList = Array<Machine>;
|
|
@@ -1888,7 +1964,7 @@ export declare const ListMachineVersionsResponseBodyList: S.Schema<ListMachineVe
|
|
|
1888
1964
|
export type ListMachineVersionsResponse = ListMachineVersionsResponseBodyList;
|
|
1889
1965
|
export declare const ListMachineVersionsResponse: S.Schema<ListMachineVersionsResponse>;
|
|
1890
1966
|
export interface ListPostgresRequest {
|
|
1891
|
-
/** Fly Organization Slug */
|
|
1967
|
+
/** Fly Organization Slug, or 'personal' for the caller's personal organization */
|
|
1892
1968
|
org_slug: string;
|
|
1893
1969
|
/** Include deleted clusters */
|
|
1894
1970
|
include_deleted?: boolean;
|
|
@@ -1975,20 +2051,21 @@ export interface ListPostgresExtensionsRequest {
|
|
|
1975
2051
|
database_name: string;
|
|
1976
2052
|
}
|
|
1977
2053
|
export declare const ListPostgresExtensionsRequest: S.Schema<ListPostgresExtensionsRequest>;
|
|
1978
|
-
|
|
2054
|
+
/** Installation details, or null when the extension is not installed. */
|
|
2055
|
+
export interface PostgresExtensionInstalled {
|
|
1979
2056
|
/** Schema the extension is installed into. */
|
|
1980
2057
|
schema?: string;
|
|
1981
2058
|
/** Installed version. */
|
|
1982
2059
|
version?: string;
|
|
1983
2060
|
}
|
|
1984
|
-
export declare const
|
|
2061
|
+
export declare const PostgresExtensionInstalled: S.Schema<PostgresExtensionInstalled>;
|
|
1985
2062
|
export interface PostgresExtension {
|
|
1986
2063
|
/** Default version installed when enabled. */
|
|
1987
2064
|
default_version?: string;
|
|
1988
2065
|
/** Human-readable description. */
|
|
1989
2066
|
description?: string;
|
|
1990
2067
|
/** Installation details, or null when the extension is not installed. */
|
|
1991
|
-
installed?:
|
|
2068
|
+
installed?: PostgresExtensionInstalled | null;
|
|
1992
2069
|
/** Extension name. */
|
|
1993
2070
|
name?: string;
|
|
1994
2071
|
/** Whether this is a system extension that cannot be disabled. */
|
|
@@ -2093,8 +2170,12 @@ export interface ListVolumesOrgRequest {
|
|
|
2093
2170
|
limit?: number;
|
|
2094
2171
|
}
|
|
2095
2172
|
export declare const ListVolumesOrgRequest: S.Schema<ListVolumesOrgRequest>;
|
|
2173
|
+
export type OrgVolumeHostFeaturesList = Array<string>;
|
|
2174
|
+
export declare const OrgVolumeHostFeaturesList: S.Schema<OrgVolumeHostFeaturesList>;
|
|
2096
2175
|
export type OrgVolumeHostStatus = "ok" | "unknown" | "unreachable";
|
|
2097
2176
|
export declare const OrgVolumeHostStatus: any;
|
|
2177
|
+
export type OrgVolumeRequiredHostFeaturesList = Array<string>;
|
|
2178
|
+
export declare const OrgVolumeRequiredHostFeaturesList: S.Schema<OrgVolumeRequiredHostFeaturesList>;
|
|
2098
2179
|
export type OrgVolumeType = "local" | "cache";
|
|
2099
2180
|
export declare const OrgVolumeType: any;
|
|
2100
2181
|
export interface OrgVolume {
|
|
@@ -2111,10 +2192,12 @@ export interface OrgVolume {
|
|
|
2111
2192
|
created_at?: string;
|
|
2112
2193
|
encrypted?: boolean;
|
|
2113
2194
|
fstype?: string;
|
|
2195
|
+
host_features?: OrgVolumeHostFeaturesList;
|
|
2114
2196
|
host_status?: OrgVolumeHostStatus;
|
|
2115
2197
|
id?: string;
|
|
2116
2198
|
name?: string;
|
|
2117
2199
|
region?: string;
|
|
2200
|
+
required_host_features?: OrgVolumeRequiredHostFeaturesList;
|
|
2118
2201
|
size_gb?: number;
|
|
2119
2202
|
snapshot_retention?: number;
|
|
2120
2203
|
state?: string;
|
|
@@ -2137,6 +2220,8 @@ export interface MachinesReleaseLeaseRequest {
|
|
|
2137
2220
|
app_name: string;
|
|
2138
2221
|
/** Machine ID */
|
|
2139
2222
|
machine_id: string;
|
|
2223
|
+
/** Nonce of the lease to release. Keep the nonce private. */
|
|
2224
|
+
lease_nonce: string;
|
|
2140
2225
|
}
|
|
2141
2226
|
export declare const MachinesReleaseLeaseRequest: S.Schema<MachinesReleaseLeaseRequest>;
|
|
2142
2227
|
export interface MachinesReleaseLeaseResponse {
|
|
@@ -2159,6 +2244,76 @@ export declare const PatchMachineMetadataRequest: S.Schema<PatchMachineMetadataR
|
|
|
2159
2244
|
export interface PatchMachineMetadataResponse {
|
|
2160
2245
|
}
|
|
2161
2246
|
export declare const PatchMachineMetadataResponse: S.Schema<PatchMachineMetadataResponse>;
|
|
2247
|
+
export interface PostgresQueriesActiveRequest {
|
|
2248
|
+
/** Managed Postgres Cluster ID */
|
|
2249
|
+
postgres_cluster_id: string;
|
|
2250
|
+
/** Database to inspect (must not be empty or whitespace-only) */
|
|
2251
|
+
database: string;
|
|
2252
|
+
}
|
|
2253
|
+
export declare const PostgresQueriesActiveRequest: S.Schema<PostgresQueriesActiveRequest>;
|
|
2254
|
+
export interface PostgresActiveQuery {
|
|
2255
|
+
/** Application connected to the backend. */
|
|
2256
|
+
application_name?: string;
|
|
2257
|
+
/** Client address. */
|
|
2258
|
+
client?: string;
|
|
2259
|
+
/** Database name. */
|
|
2260
|
+
database?: string;
|
|
2261
|
+
/** Query duration in seconds. */
|
|
2262
|
+
duration_seconds?: number;
|
|
2263
|
+
/** Process ID of the backend running the query. */
|
|
2264
|
+
pid?: number;
|
|
2265
|
+
/** Full query text. */
|
|
2266
|
+
query?: string;
|
|
2267
|
+
/** Current backend state. */
|
|
2268
|
+
state?: string;
|
|
2269
|
+
/** Time spent in the current state, in seconds. */
|
|
2270
|
+
state_duration_seconds?: number;
|
|
2271
|
+
/** User running the query. */
|
|
2272
|
+
user?: string;
|
|
2273
|
+
/** Event the backend is waiting for. */
|
|
2274
|
+
wait_event?: string;
|
|
2275
|
+
/** Type of event the backend is waiting for. */
|
|
2276
|
+
wait_event_type?: string;
|
|
2277
|
+
}
|
|
2278
|
+
export declare const PostgresActiveQuery: S.Schema<PostgresActiveQuery>;
|
|
2279
|
+
export type ListPostgresActiveQueriesResponseDataList = Array<PostgresActiveQuery>;
|
|
2280
|
+
export declare const ListPostgresActiveQueriesResponseDataList: S.Schema<ListPostgresActiveQueriesResponseDataList>;
|
|
2281
|
+
export interface ListPostgresActiveQueriesResponse {
|
|
2282
|
+
data?: ListPostgresActiveQueriesResponseDataList;
|
|
2283
|
+
}
|
|
2284
|
+
export declare const ListPostgresActiveQueriesResponse: S.Schema<ListPostgresActiveQueriesResponse>;
|
|
2285
|
+
export interface PostgresQueriesSlowRequest {
|
|
2286
|
+
/** Managed Postgres Cluster ID */
|
|
2287
|
+
postgres_cluster_id: string;
|
|
2288
|
+
/** Metrics lookback in seconds */
|
|
2289
|
+
range?: number;
|
|
2290
|
+
}
|
|
2291
|
+
export declare const PostgresQueriesSlowRequest: S.Schema<PostgresQueriesSlowRequest>;
|
|
2292
|
+
export interface PostgresSlowQuery {
|
|
2293
|
+
/** Cumulative number of executions. */
|
|
2294
|
+
calls?: number;
|
|
2295
|
+
/** Database name. */
|
|
2296
|
+
database?: string;
|
|
2297
|
+
/** Maximum execution time in seconds. */
|
|
2298
|
+
max_exec_time_seconds?: number;
|
|
2299
|
+
/** Mean execution time in seconds. */
|
|
2300
|
+
mean_exec_time_seconds?: number;
|
|
2301
|
+
/** Full query pattern. */
|
|
2302
|
+
query?: string;
|
|
2303
|
+
/** Query identifier. */
|
|
2304
|
+
query_id?: string;
|
|
2305
|
+
/** Cumulative total execution time in seconds. */
|
|
2306
|
+
total_exec_time_seconds?: number;
|
|
2307
|
+
/** User running the query. */
|
|
2308
|
+
user?: string;
|
|
2309
|
+
}
|
|
2310
|
+
export declare const PostgresSlowQuery: S.Schema<PostgresSlowQuery>;
|
|
2311
|
+
export type ListPostgresSlowQueriesResponseDataList = Array<PostgresSlowQuery>;
|
|
2312
|
+
export declare const ListPostgresSlowQueriesResponseDataList: S.Schema<ListPostgresSlowQueriesResponseDataList>;
|
|
2313
|
+
export interface ListPostgresSlowQueriesResponse {
|
|
2314
|
+
data?: ListPostgresSlowQueriesResponseDataList;
|
|
2315
|
+
}
|
|
2316
|
+
export declare const ListPostgresSlowQueriesResponse: S.Schema<ListPostgresSlowQueriesResponse>;
|
|
2162
2317
|
export interface PostgresUsersCredentialsRequest {
|
|
2163
2318
|
/** Managed Postgres Cluster ID */
|
|
2164
2319
|
postgres_cluster_id: string;
|
|
@@ -2214,6 +2369,7 @@ export interface RestartMachineRequest {
|
|
|
2214
2369
|
timeout?: string;
|
|
2215
2370
|
/** Unix signal name */
|
|
2216
2371
|
signal?: RestartMachineRequestSignal | (string & {});
|
|
2372
|
+
lease_nonce?: string;
|
|
2217
2373
|
}
|
|
2218
2374
|
export declare const RestartMachineRequest: S.Schema<RestartMachineRequest>;
|
|
2219
2375
|
export interface RestartMachineResponse {
|
|
@@ -2294,6 +2450,7 @@ export interface StartMachineRequest {
|
|
|
2294
2450
|
app_name: string;
|
|
2295
2451
|
/** Machine ID */
|
|
2296
2452
|
machine_id: string;
|
|
2453
|
+
lease_nonce?: string;
|
|
2297
2454
|
}
|
|
2298
2455
|
export declare const StartMachineRequest: S.Schema<StartMachineRequest>;
|
|
2299
2456
|
export interface StartMachineResponse {
|
|
@@ -2308,6 +2465,7 @@ export interface StopMachineRequest {
|
|
|
2308
2465
|
machine_id: string;
|
|
2309
2466
|
signal?: StopMachineRequestSignal | (string & {});
|
|
2310
2467
|
timeout?: string;
|
|
2468
|
+
lease_nonce?: string;
|
|
2311
2469
|
}
|
|
2312
2470
|
export declare const StopMachineRequest: S.Schema<StopMachineRequest>;
|
|
2313
2471
|
export interface StopMachineResponse {
|
|
@@ -2318,6 +2476,7 @@ export interface SuspendMachineRequest {
|
|
|
2318
2476
|
app_name: string;
|
|
2319
2477
|
/** Machine ID */
|
|
2320
2478
|
machine_id: string;
|
|
2479
|
+
lease_nonce?: string;
|
|
2321
2480
|
}
|
|
2322
2481
|
export declare const SuspendMachineRequest: S.Schema<SuspendMachineRequest>;
|
|
2323
2482
|
export interface SuspendMachineResponse {
|
|
@@ -2328,6 +2487,7 @@ export interface UncordonMachineRequest {
|
|
|
2328
2487
|
app_name: string;
|
|
2329
2488
|
/** Machine ID */
|
|
2330
2489
|
machine_id: string;
|
|
2490
|
+
lease_nonce?: string;
|
|
2331
2491
|
}
|
|
2332
2492
|
export declare const UncordonMachineRequest: S.Schema<UncordonMachineRequest>;
|
|
2333
2493
|
export interface UncordonMachineResponse {
|
|
@@ -2340,6 +2500,7 @@ export interface UpdateMachineRequest {
|
|
|
2340
2500
|
machine_id: string;
|
|
2341
2501
|
/** An object defining the Machine configuration */
|
|
2342
2502
|
config?: FlyMachineConfig;
|
|
2503
|
+
/** CurrentVersion is an optional optimistic-concurrency guard: the Machine's `version`, as returned by create, get or a previous update. When set and it is no longer the Machine's current version, the update is rejected with 409 Conflict and nothing changes. Omit it to update unconditionally. */
|
|
2343
2504
|
current_version?: string;
|
|
2344
2505
|
lease_ttl?: number;
|
|
2345
2506
|
min_secrets_version?: number;
|
|
@@ -2350,25 +2511,9 @@ export interface UpdateMachineRequest {
|
|
|
2350
2511
|
skip_launch?: boolean;
|
|
2351
2512
|
skip_secrets?: boolean;
|
|
2352
2513
|
skip_service_registration?: boolean;
|
|
2514
|
+
lease_nonce?: string;
|
|
2353
2515
|
}
|
|
2354
2516
|
export declare const UpdateMachineRequest: S.Schema<UpdateMachineRequest>;
|
|
2355
|
-
export type UpdateMachineMetadataRequestMetadataMap = {
|
|
2356
|
-
[key: string]: string | undefined;
|
|
2357
|
-
};
|
|
2358
|
-
export declare const UpdateMachineMetadataRequestMetadataMap: S.Schema<UpdateMachineMetadataRequestMetadataMap>;
|
|
2359
|
-
export interface UpdateMachineMetadataRequest {
|
|
2360
|
-
/** Fly App Name */
|
|
2361
|
-
app_name: string;
|
|
2362
|
-
/** Machine ID */
|
|
2363
|
-
machine_id: string;
|
|
2364
|
-
machine_version?: string;
|
|
2365
|
-
metadata?: UpdateMachineMetadataRequestMetadataMap;
|
|
2366
|
-
updated_at?: string;
|
|
2367
|
-
}
|
|
2368
|
-
export declare const UpdateMachineMetadataRequest: S.Schema<UpdateMachineMetadataRequest>;
|
|
2369
|
-
export interface UpdateMachineMetadataResponse {
|
|
2370
|
-
}
|
|
2371
|
-
export declare const UpdateMachineMetadataResponse: S.Schema<UpdateMachineMetadataResponse>;
|
|
2372
2517
|
/** New role for the user. */
|
|
2373
2518
|
export type UpdatePostgresUserRoleRequestRole = "schema_admin" | "writer" | "reader";
|
|
2374
2519
|
export declare const UpdatePostgresUserRoleRequestRole: any;
|
|
@@ -2475,7 +2620,7 @@ export declare const authorizeToken: API.OperationMethod<AuthorizeTokenRequest,
|
|
|
2475
2620
|
export type CheckAppCertificateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2476
2621
|
/** Check DNS and re-validate certificate */
|
|
2477
2622
|
export declare const checkAppCertificate: API.OperationMethod<CheckAppCertificateRequest, CertificateCheckResponse, CheckAppCertificateError, FlyIoOpContext>;
|
|
2478
|
-
export type CordonMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2623
|
+
export type CordonMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2479
2624
|
/** Cordon Machine “Cordoning” a Machine refers to disabling its services, so the Fly Proxy won’t route requests to it. In flyctl this is used by blue/green deployments; one set of Machines is started up with services disabled, and when they are all healthy, the services are enabled on the new Machines and disabled on the old ones. */
|
|
2480
2625
|
export declare const cordonMachine: API.OperationMethod<CordonMachineRequest, CordonMachineResponse, CordonMachineError, FlyIoOpContext>;
|
|
2481
2626
|
export type CreateAppError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
|
|
@@ -2490,20 +2635,20 @@ export declare const createAppCustomCertificate: API.OperationMethod<CreateAppCu
|
|
|
2490
2635
|
export type CreateAppDeployTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2491
2636
|
/** Create App deploy token */
|
|
2492
2637
|
export declare const createAppDeployToken: API.OperationMethod<CreateAppDeployTokenRequest, CreateAppDeployTokenResponse, CreateAppDeployTokenError, FlyIoOpContext>;
|
|
2493
|
-
export type CreateAppIPAssignmentError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2638
|
+
export type CreateAppIPAssignmentError = BadRequest | Forbidden | NotFound | Conflict | NetworkNotFound | FlyIoOpError;
|
|
2494
2639
|
/** Assign new IP address to app */
|
|
2495
2640
|
export declare const createAppIPAssignment: API.OperationMethod<CreateAppIPAssignmentRequest, AssignIPResponse, CreateAppIPAssignmentError, FlyIoOpContext>;
|
|
2496
2641
|
export type CreateMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2497
2642
|
/** Create Machine Create a Machine within a specific app using the details provided in the request body. **Important**: This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration! */
|
|
2498
2643
|
export declare const createMachine: API.OperationMethod<CreateMachineRequest, Machine, CreateMachineError, FlyIoOpContext>;
|
|
2499
|
-
export type CreateMachineLeaseError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2644
|
+
export type CreateMachineLeaseError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2500
2645
|
/** Create Lease Create a lease for a specific Machine within an app using the details provided in the request body. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
|
|
2501
|
-
export declare const createMachineLease: API.OperationMethod<CreateMachineLeaseRequest,
|
|
2646
|
+
export declare const createMachineLease: API.OperationMethod<CreateMachineLeaseRequest, MachineLease, CreateMachineLeaseError, FlyIoOpContext>;
|
|
2502
2647
|
export type CreatePostgresError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
|
|
2503
|
-
/** Create Postgres Cluster Create a Managed Postgres cluster for the organization named in the request body. Provisioning is asynchronous
|
|
2648
|
+
/** Create Postgres Cluster Create a Managed Postgres cluster for the organization named in the request body. Provisioning is asynchronous: poll `GET /v1/postgres/{id}` until `status == ready` before calling database, user, extension, or credential endpoints. */
|
|
2504
2649
|
export declare const createPostgres: API.OperationMethod<CreatePostgresRequest, ShowPostgresClusterResponse, CreatePostgresError, FlyIoOpContext>;
|
|
2505
2650
|
export type CreatePostgresAttachmentError = NotFound | FlyIoOpError;
|
|
2506
|
-
/** Attach Cluster to App
|
|
2651
|
+
/** Attach Cluster to App Record an attachment between a cluster and a Fly app. This endpoint records the relationship but does not set DATABASE_URL or other app secrets; configure the connection string separately. The attachment is created if it does not already exist. */
|
|
2507
2652
|
export declare const createPostgresAttachment: API.OperationMethod<CreatePostgresAttachmentRequest, CreatePostgresAttachmentResponse, CreatePostgresAttachmentError, FlyIoOpContext>;
|
|
2508
2653
|
export type CreatePostgresBackupError = NotFound | Conflict | FlyIoOpError;
|
|
2509
2654
|
/** Create Backup Create a backup for a specific cluster. The backup runs asynchronously and is rejected if one is already in progress. */
|
|
@@ -2565,7 +2710,7 @@ export declare const deleteSecret: API.OperationMethod<DeleteSecretRequest, Dele
|
|
|
2565
2710
|
export type DeleteSecretKeyError = Forbidden | NotFound | FlyIoOpError;
|
|
2566
2711
|
/** Delete an app's secret key */
|
|
2567
2712
|
export declare const deleteSecretKey: API.OperationMethod<DeleteSecretKeyRequest, DeleteSecretkeyResponse, DeleteSecretKeyError, FlyIoOpContext>;
|
|
2568
|
-
export type DeleteVolumeError = Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2713
|
+
export type DeleteVolumeError = Forbidden | NotFound | Conflict | VolumeAttached | FlyIoOpError;
|
|
2569
2714
|
/** Destroy Volume Delete a specific volume within an app by volume ID. */
|
|
2570
2715
|
export declare const deleteVolume: API.OperationMethod<DeleteVolumeRequest, Volume, DeleteVolumeError, FlyIoOpContext>;
|
|
2571
2716
|
export type DisablePostgresExtensionError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
|
|
@@ -2577,7 +2722,7 @@ export declare const enablePostgresExtension: API.OperationMethod<EnablePostgres
|
|
|
2577
2722
|
export type EncryptSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2578
2723
|
/** Encrypt with a secret key */
|
|
2579
2724
|
export declare const encryptSecretKey: API.OperationMethod<EncryptSecretKeyRequest, EncryptSecretkeyResponse, EncryptSecretKeyError, FlyIoOpContext>;
|
|
2580
|
-
export type ExecMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2725
|
+
export type ExecMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2581
2726
|
/** Execute Command Execute a command on a specific Machine and return the raw command output bytes. */
|
|
2582
2727
|
export declare const execMachine: API.OperationMethod<ExecMachineRequest, Flydv1ExecResponse, ExecMachineError, FlyIoOpContext>;
|
|
2583
2728
|
export type ExtendVolumeError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
@@ -2603,7 +2748,7 @@ export type GetMachineError = Forbidden | NotFound | FlyIoOpError;
|
|
|
2603
2748
|
export declare const getMachine: API.OperationMethod<GetMachineRequest, Machine, GetMachineError, FlyIoOpContext>;
|
|
2604
2749
|
export type GetMachineLeaseError = Forbidden | NotFound | FlyIoOpError;
|
|
2605
2750
|
/** Get Lease Retrieve the current lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
|
|
2606
|
-
export declare const getMachineLease: API.OperationMethod<GetMachineLeaseRequest,
|
|
2751
|
+
export declare const getMachineLease: API.OperationMethod<GetMachineLeaseRequest, MachineLease, GetMachineLeaseError, FlyIoOpContext>;
|
|
2607
2752
|
export type GetMachineMemoryError = Forbidden | NotFound | FlyIoOpError;
|
|
2608
2753
|
/** Get Machine Memory Get current memory limit and available capacity for a machine */
|
|
2609
2754
|
export declare const getMachineMemory: API.OperationMethod<GetMachineMemoryRequest, MainMemoryResponse, GetMachineMemoryError, FlyIoOpContext>;
|
|
@@ -2655,7 +2800,7 @@ export declare const listMachinesOrg: API.OperationMethod<ListMachinesOrgRequest
|
|
|
2655
2800
|
export type ListMachineVersionsError = Forbidden | NotFound | FlyIoOpError;
|
|
2656
2801
|
/** List Versions List all versions of the configuration for a specific Machine within an app. */
|
|
2657
2802
|
export declare const listMachineVersions: API.OperationMethod<ListMachineVersionsRequest, ListMachineVersionsResponse, ListMachineVersionsError, FlyIoOpContext>;
|
|
2658
|
-
export type ListPostgresError = NotFound | UnprocessableEntity | FlyIoOpError;
|
|
2803
|
+
export type ListPostgresError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
|
|
2659
2804
|
/** List Postgres Clusters List Managed Postgres clusters for an organization. */
|
|
2660
2805
|
export declare const listPostgres: API.OperationMethod<ListPostgresRequest, ListPostgresClustersResponse, ListPostgresError, FlyIoOpContext>;
|
|
2661
2806
|
export type ListPostgresBackupsError = NotFound | FlyIoOpError;
|
|
@@ -2688,9 +2833,15 @@ export declare const listVolumesOrg: API.OperationMethod<ListVolumesOrgRequest,
|
|
|
2688
2833
|
export type MachinesReleaseLeaseError = Forbidden | NotFound | FlyIoOpError;
|
|
2689
2834
|
/** Release Lease Release the lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
|
|
2690
2835
|
export declare const machinesReleaseLease: API.OperationMethod<MachinesReleaseLeaseRequest, MachinesReleaseLeaseResponse, MachinesReleaseLeaseError, FlyIoOpContext>;
|
|
2691
|
-
export type PatchMachineMetadataError = BadRequest | FlyIoOpError;
|
|
2692
|
-
/** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
|
|
2836
|
+
export type PatchMachineMetadataError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2837
|
+
/** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Keys that are not in the request are left untouched. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
|
|
2693
2838
|
export declare const patchMachineMetadata: API.OperationMethod<PatchMachineMetadataRequest, PatchMachineMetadataResponse, PatchMachineMetadataError, FlyIoOpContext>;
|
|
2839
|
+
export type PostgresQueriesActiveError = NotFound | UnprocessableEntity | FlyIoOpError;
|
|
2840
|
+
/** List Active Queries List active queries in the supplied database. The database query parameter is required and must not be empty or whitespace-only. Returns full query text and durations in seconds. */
|
|
2841
|
+
export declare const postgresQueriesActive: API.OperationMethod<PostgresQueriesActiveRequest, ListPostgresActiveQueriesResponse, PostgresQueriesActiveError, FlyIoOpContext>;
|
|
2842
|
+
export type PostgresQueriesSlowError = NotFound | UnprocessableEntity | FlyIoOpError;
|
|
2843
|
+
/** List Slow Queries List the top 20 queries by cumulative total execution time, excluding the postgres database. Uses the latest available metrics within the lookback range; statistics are cumulative PostgreSQL counters, not deltas over that range. Returns full query text and execution times in seconds. */
|
|
2844
|
+
export declare const postgresQueriesSlow: API.OperationMethod<PostgresQueriesSlowRequest, ListPostgresSlowQueriesResponse, PostgresQueriesSlowError, FlyIoOpContext>;
|
|
2694
2845
|
export type PostgresUsersCredentialsError = BadRequest | NotFound | FlyIoOpError;
|
|
2695
2846
|
/** Get User Credentials Get the connection credentials for a specific Postgres user within a cluster. */
|
|
2696
2847
|
export declare const postgresUsersCredentials: API.OperationMethod<PostgresUsersCredentialsRequest, GetPostgresUserCredentialsResponse, PostgresUsersCredentialsError, FlyIoOpContext>;
|
|
@@ -2703,7 +2854,7 @@ export declare const requestKmsToken: API.OperationMethod<RequestKmsTokenRequest
|
|
|
2703
2854
|
export type RequestOidcTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2704
2855
|
/** Request an OIDC token Request an Open ID Connect token for your machine. Customize the audience claim with the `aud` parameter. This returns a JWT token. Learn more about [using OpenID Connect](/docs/reference/openid-connect/) on Fly.io. */
|
|
2705
2856
|
export declare const requestOidcToken: API.OperationMethod<RequestOidcTokenRequest, RequestOidcTokenResponse, RequestOidcTokenError, FlyIoOpContext>;
|
|
2706
|
-
export type RestartMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2857
|
+
export type RestartMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2707
2858
|
/** Restart Machine Restart a specific Machine within an app, with an optional timeout parameter. */
|
|
2708
2859
|
export declare const restartMachine: API.OperationMethod<RestartMachineRequest, RestartMachineResponse, RestartMachineError, FlyIoOpContext>;
|
|
2709
2860
|
export type RestorePostgresError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
|
|
@@ -2724,24 +2875,21 @@ export declare const signalMachine: API.OperationMethod<SignalMachineRequest, Si
|
|
|
2724
2875
|
export type SignSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2725
2876
|
/** Sign with a secret key */
|
|
2726
2877
|
export declare const signSecretKey: API.OperationMethod<SignSecretKeyRequest, SignSecretkeyResponse, SignSecretKeyError, FlyIoOpContext>;
|
|
2727
|
-
export type StartMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2878
|
+
export type StartMachineError = BadRequest | Forbidden | NotFound | Conflict | MachineStartFromCreatedState | MachineReplacing | FlyIoOpError;
|
|
2728
2879
|
/** Start Machine Start a specific Machine within an app. */
|
|
2729
2880
|
export declare const startMachine: API.OperationMethod<StartMachineRequest, StartMachineResponse, StartMachineError, FlyIoOpContext>;
|
|
2730
|
-
export type StopMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2881
|
+
export type StopMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2731
2882
|
/** Stop Machine Stop a specific Machine within an app, with an optional request body to specify signal and timeout. */
|
|
2732
2883
|
export declare const stopMachine: API.OperationMethod<StopMachineRequest, StopMachineResponse, StopMachineError, FlyIoOpContext>;
|
|
2733
|
-
export type SuspendMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2884
|
+
export type SuspendMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2734
2885
|
/** Suspend Machine Suspend a specific Machine within an app. The next start operation will attempt (but is not guaranteed) to resume the Machine from a snapshot taken at suspension time, rather than performing a cold boot. */
|
|
2735
2886
|
export declare const suspendMachine: API.OperationMethod<SuspendMachineRequest, SuspendMachineResponse, SuspendMachineError, FlyIoOpContext>;
|
|
2736
|
-
export type UncordonMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2887
|
+
export type UncordonMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2737
2888
|
/** Uncordon Machine “Cordoning” a Machine refers to disabling its services, so the Fly Proxy won’t route requests to it. In flyctl this is used by blue/green deployments; one set of Machines is started up with services disabled, and when they are all healthy, the services are enabled on the new Machines and disabled on the old ones. */
|
|
2738
2889
|
export declare const uncordonMachine: API.OperationMethod<UncordonMachineRequest, UncordonMachineResponse, UncordonMachineError, FlyIoOpContext>;
|
|
2739
2890
|
export type UpdateMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2740
2891
|
/** Update Machine Update a Machine's configuration using the details provided in the request body. */
|
|
2741
2892
|
export declare const updateMachine: API.OperationMethod<UpdateMachineRequest, Machine, UpdateMachineError, FlyIoOpContext>;
|
|
2742
|
-
export type UpdateMachineMetadataError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2743
|
-
/** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
|
|
2744
|
-
export declare const updateMachineMetadata: API.OperationMethod<UpdateMachineMetadataRequest, UpdateMachineMetadataResponse, UpdateMachineMetadataError, FlyIoOpContext>;
|
|
2745
2893
|
export type UpdatePostgresUserRoleError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
|
|
2746
2894
|
/** Update User Role Update a specific Postgres user's role within a cluster. */
|
|
2747
2895
|
export declare const updatePostgresUserRole: API.OperationMethod<UpdatePostgresUserRoleRequest, UpdatePostgresUserRoleResponse, UpdatePostgresUserRoleError, FlyIoOpContext>;
|
|
@@ -2757,7 +2905,7 @@ export declare const upsertMachineMetadata: API.OperationMethod<UpsertMachineMet
|
|
|
2757
2905
|
export type VerifySecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2758
2906
|
/** Verify with a secret key */
|
|
2759
2907
|
export declare const verifySecretKey: API.OperationMethod<VerifySecretKeyRequest, VerifySecretKeyResponse, VerifySecretKeyError, FlyIoOpContext>;
|
|
2760
|
-
export type WaitMachineError = BadRequest | Forbidden | NotFound | GatewayTimeout | FlyIoOpError;
|
|
2908
|
+
export type WaitMachineError = BadRequest | Forbidden | NotFound | GatewayTimeout | MachineWaitTimeout | FlyIoOpError;
|
|
2761
2909
|
/** Wait for State Wait for a Machine to reach a specific state. Specify the desired state with the state parameter. See the [Machine states table](https://fly.io/docs/machines/working-with-machines/#machine-states) for a list of possible states. The default for this parameter is `started`. This request will block for up to 60 seconds. Set a shorter timeout with the timeout parameter. */
|
|
2762
2910
|
export declare const waitMachine: API.OperationMethod<WaitMachineRequest, WaitMachineResponse, WaitMachineError, FlyIoOpContext>;
|
|
2763
2911
|
//# sourceMappingURL=machines.d.ts.map
|