@distilled.cloud/fly-io 1.0.0-rc.7 → 1.0.0-rc.9
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/LICENSE +201 -0
- package/lib/credentials.d.ts +11 -5
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +13 -7
- package/lib/credentials.js.map +1 -1
- package/lib/protocol.d.ts +1 -1
- package/lib/protocol.js +2 -2
- package/lib/protocol.js.map +1 -1
- package/lib/services/machines.d.ts +642 -92
- package/lib/services/machines.d.ts.map +1 -1
- package/lib/services/machines.js +810 -171
- package/lib/services/machines.js.map +1 -1
- package/package.json +6 -6
- package/src/credentials.ts +13 -7
- package/src/protocol.ts +2 -2
- package/src/services/machines.ts +1810 -283
|
@@ -262,6 +262,9 @@ export interface CreateAppDeployTokenResponse {
|
|
|
262
262
|
token?: string;
|
|
263
263
|
}
|
|
264
264
|
export declare const CreateAppDeployTokenResponse: S.Schema<CreateAppDeployTokenResponse>;
|
|
265
|
+
/** Type of IP address to allocate. "egress-pair" allocates both v4 and v6 egress IP addresses (recommended when using egress IPs). */
|
|
266
|
+
export type IPAssignmentType = "v4" | "v6" | "shared_v4" | "private_v6" | "egress_v4" | "egress_v6" | "egress_pair";
|
|
267
|
+
export declare const IPAssignmentType: any;
|
|
265
268
|
export interface CreateAppIPAssignmentRequest {
|
|
266
269
|
/** Fly App Name */
|
|
267
270
|
app_name: string;
|
|
@@ -269,18 +272,25 @@ export interface CreateAppIPAssignmentRequest {
|
|
|
269
272
|
org_slug?: string;
|
|
270
273
|
region?: string;
|
|
271
274
|
service_name?: string;
|
|
272
|
-
type?: string;
|
|
275
|
+
type?: IPAssignmentType | (string & {});
|
|
273
276
|
}
|
|
274
277
|
export declare const CreateAppIPAssignmentRequest: S.Schema<CreateAppIPAssignmentRequest>;
|
|
275
|
-
export interface
|
|
278
|
+
export interface IPPair {
|
|
279
|
+
v4?: string;
|
|
280
|
+
v6?: string;
|
|
281
|
+
}
|
|
282
|
+
export declare const IPPair: S.Schema<IPPair>;
|
|
283
|
+
export interface AssignIPResponse {
|
|
276
284
|
created_at?: string;
|
|
285
|
+
egress?: boolean;
|
|
277
286
|
ip?: string;
|
|
287
|
+
/** ip_pair is returned when "egress-pair" IP type is requested; in this case, ip is null. */
|
|
288
|
+
ip_pair?: IPPair;
|
|
278
289
|
region?: string;
|
|
279
290
|
service_name?: string;
|
|
280
291
|
shared?: boolean;
|
|
281
|
-
type?: string;
|
|
282
292
|
}
|
|
283
|
-
export declare const
|
|
293
|
+
export declare const AssignIPResponse: S.Schema<AssignIPResponse>;
|
|
284
294
|
export interface FlyMachineCacheDrive {
|
|
285
295
|
size_mb?: number;
|
|
286
296
|
}
|
|
@@ -867,9 +877,16 @@ export interface ImageRef {
|
|
|
867
877
|
tag?: string;
|
|
868
878
|
}
|
|
869
879
|
export declare const ImageRef: S.Schema<ImageRef>;
|
|
880
|
+
export interface StrippedLease {
|
|
881
|
+
description?: string;
|
|
882
|
+
expires_at?: number;
|
|
883
|
+
owner?: string;
|
|
884
|
+
}
|
|
885
|
+
export declare const StrippedLease: S.Schema<StrippedLease>;
|
|
870
886
|
export interface Machine {
|
|
871
887
|
checks?: MachineChecksList;
|
|
872
888
|
config?: FlyMachineConfig;
|
|
889
|
+
cordoned?: boolean;
|
|
873
890
|
created_at?: string;
|
|
874
891
|
events?: MachineEventsList;
|
|
875
892
|
host_status?: MachineHostStatus;
|
|
@@ -878,6 +895,7 @@ export interface Machine {
|
|
|
878
895
|
incomplete_config?: FlyMachineConfig;
|
|
879
896
|
/** InstanceID is unique for each version of the machine */
|
|
880
897
|
instance_id?: string;
|
|
898
|
+
lease?: StrippedLease;
|
|
881
899
|
name?: string;
|
|
882
900
|
/** Nonce is only every returned on machine creation if a lease_duration was provided. */
|
|
883
901
|
nonce?: string;
|
|
@@ -911,6 +929,193 @@ export interface Lease {
|
|
|
911
929
|
version?: string;
|
|
912
930
|
}
|
|
913
931
|
export declare const Lease: S.Schema<Lease>;
|
|
932
|
+
/** Postgres major version. */
|
|
933
|
+
export type CreatePostgresRequestPgMajorVersion = "16" | "17";
|
|
934
|
+
export declare const CreatePostgresRequestPgMajorVersion: any;
|
|
935
|
+
/** Plan slug selecting CPU, memory, and disk sizing. */
|
|
936
|
+
export type CreatePostgresRequestPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
|
|
937
|
+
export declare const CreatePostgresRequestPlan: any;
|
|
938
|
+
/** Connection pooler mode. */
|
|
939
|
+
export type CreatePostgresRequestPoolMode = "session" | "transaction";
|
|
940
|
+
export declare const CreatePostgresRequestPoolMode: any;
|
|
941
|
+
export interface CreatePostgresRequest {
|
|
942
|
+
/** Disk size in gigabytes. */
|
|
943
|
+
disk_size_gb?: number;
|
|
944
|
+
/** Name for the cluster. A name is generated when omitted. */
|
|
945
|
+
name?: string;
|
|
946
|
+
/** Slug of the organization that will own the cluster. */
|
|
947
|
+
org_slug: string;
|
|
948
|
+
/** Postgres major version. */
|
|
949
|
+
pg_major_version?: CreatePostgresRequestPgMajorVersion | (string & {});
|
|
950
|
+
/** Plan slug selecting CPU, memory, and disk sizing. */
|
|
951
|
+
plan: CreatePostgresRequestPlan | (string & {});
|
|
952
|
+
/** Connection pooler mode. */
|
|
953
|
+
pool_mode?: CreatePostgresRequestPoolMode | (string & {});
|
|
954
|
+
/** Enable PostGIS support, required to later enable PostGIS extensions. */
|
|
955
|
+
postgis_enabled?: boolean;
|
|
956
|
+
/** Fly region code where the cluster's primary runs. */
|
|
957
|
+
region: string;
|
|
958
|
+
}
|
|
959
|
+
export declare const CreatePostgresRequest: S.Schema<CreatePostgresRequest>;
|
|
960
|
+
export interface PostgresAttachedApp {
|
|
961
|
+
/** Attached Fly app name. */
|
|
962
|
+
name?: string;
|
|
963
|
+
}
|
|
964
|
+
export declare const PostgresAttachedApp: S.Schema<PostgresAttachedApp>;
|
|
965
|
+
/** Apps attached to the cluster. */
|
|
966
|
+
export type PostgresClusterAttachedAppsList = Array<PostgresAttachedApp>;
|
|
967
|
+
export declare const PostgresClusterAttachedAppsList: S.Schema<PostgresClusterAttachedAppsList>;
|
|
968
|
+
/** CPU class. */
|
|
969
|
+
export type PostgresClusterCpuKind = "shared" | "performance";
|
|
970
|
+
export declare const PostgresClusterCpuKind: any;
|
|
971
|
+
export interface PostgresEndpoint {
|
|
972
|
+
/** Hostname to connect to. */
|
|
973
|
+
host?: string;
|
|
974
|
+
/** TCP port. */
|
|
975
|
+
port?: number;
|
|
976
|
+
}
|
|
977
|
+
export declare const PostgresEndpoint: S.Schema<PostgresEndpoint>;
|
|
978
|
+
export interface PostgresNodeEndpoints {
|
|
979
|
+
/** Unpooled connection to the cluster node. */
|
|
980
|
+
direct?: PostgresEndpoint;
|
|
981
|
+
/** Pooled connection to the cluster node (through PgBouncer). */
|
|
982
|
+
pooler?: PostgresEndpoint;
|
|
983
|
+
}
|
|
984
|
+
export declare const PostgresNodeEndpoints: S.Schema<PostgresNodeEndpoints>;
|
|
985
|
+
export interface PostgresClusterEndpoints {
|
|
986
|
+
/** Endpoints for connecting to the primary node. */
|
|
987
|
+
primary?: PostgresNodeEndpoints;
|
|
988
|
+
}
|
|
989
|
+
export declare const PostgresClusterEndpoints: S.Schema<PostgresClusterEndpoints>;
|
|
990
|
+
export interface OrganizationRef {
|
|
991
|
+
/** Organization name. */
|
|
992
|
+
name?: string;
|
|
993
|
+
/** Organization slug. */
|
|
994
|
+
slug?: string;
|
|
995
|
+
}
|
|
996
|
+
export declare const OrganizationRef: S.Schema<OrganizationRef>;
|
|
997
|
+
/** Postgres major version. */
|
|
998
|
+
export type PostgresClusterPgMajorVersion = "16" | "17";
|
|
999
|
+
export declare const PostgresClusterPgMajorVersion: any;
|
|
1000
|
+
/** Plan slug. */
|
|
1001
|
+
export type PostgresClusterPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
|
|
1002
|
+
export declare const PostgresClusterPlan: any;
|
|
1003
|
+
/** Current lifecycle status. */
|
|
1004
|
+
export type PostgresClusterStatus = "creating" | "initializing" | "ready" | "deleting" | "deleted" | "failed";
|
|
1005
|
+
export declare const PostgresClusterStatus: any;
|
|
1006
|
+
export interface PostgresCluster {
|
|
1007
|
+
/** Apps attached to the cluster. */
|
|
1008
|
+
attached_apps?: PostgresClusterAttachedAppsList;
|
|
1009
|
+
/** CPU class. */
|
|
1010
|
+
cpu_kind?: PostgresClusterCpuKind;
|
|
1011
|
+
/** vCPUs per node. */
|
|
1012
|
+
cpus?: number;
|
|
1013
|
+
/** RFC 3339 creation timestamp. */
|
|
1014
|
+
created_at?: string;
|
|
1015
|
+
/** Disk size in gigabytes. */
|
|
1016
|
+
disk_size_gb?: number;
|
|
1017
|
+
/** Connection endpoints. Populated once the cluster is ready. */
|
|
1018
|
+
endpoints?: PostgresClusterEndpoints;
|
|
1019
|
+
/** Cluster ID. */
|
|
1020
|
+
id?: string;
|
|
1021
|
+
/** Memory per node in megabytes. */
|
|
1022
|
+
memory_mb?: number;
|
|
1023
|
+
/** Cluster name. */
|
|
1024
|
+
name?: string;
|
|
1025
|
+
organization?: OrganizationRef;
|
|
1026
|
+
/** Postgres major version. */
|
|
1027
|
+
pg_major_version?: PostgresClusterPgMajorVersion;
|
|
1028
|
+
/** Plan slug. */
|
|
1029
|
+
plan?: PostgresClusterPlan;
|
|
1030
|
+
/** Whether PostGIS support is enabled. */
|
|
1031
|
+
postgis_enabled?: boolean;
|
|
1032
|
+
/** Fly region code. */
|
|
1033
|
+
region?: string;
|
|
1034
|
+
/** Number of replicas. */
|
|
1035
|
+
replicas?: number;
|
|
1036
|
+
/** Current lifecycle status. */
|
|
1037
|
+
status?: PostgresClusterStatus;
|
|
1038
|
+
}
|
|
1039
|
+
export declare const PostgresCluster: S.Schema<PostgresCluster>;
|
|
1040
|
+
export interface ShowPostgresClusterResponse {
|
|
1041
|
+
data?: PostgresCluster;
|
|
1042
|
+
}
|
|
1043
|
+
export declare const ShowPostgresClusterResponse: S.Schema<ShowPostgresClusterResponse>;
|
|
1044
|
+
export interface CreatePostgresAttachmentRequest {
|
|
1045
|
+
/** Managed Postgres Cluster ID */
|
|
1046
|
+
postgres_cluster_id: string;
|
|
1047
|
+
/** Name of the Fly app to attach. */
|
|
1048
|
+
app_name: string;
|
|
1049
|
+
}
|
|
1050
|
+
export declare const CreatePostgresAttachmentRequest: S.Schema<CreatePostgresAttachmentRequest>;
|
|
1051
|
+
export interface PostgresAttachment {
|
|
1052
|
+
/** Attached Fly app name. */
|
|
1053
|
+
app_name?: string;
|
|
1054
|
+
/** RFC 3339 timestamp when the attachment was created. */
|
|
1055
|
+
attached_at?: string;
|
|
1056
|
+
/** Cluster ID the app is attached to. */
|
|
1057
|
+
postgres_cluster_id?: string;
|
|
1058
|
+
}
|
|
1059
|
+
export declare const PostgresAttachment: S.Schema<PostgresAttachment>;
|
|
1060
|
+
export interface CreatePostgresAttachmentResponse {
|
|
1061
|
+
data?: PostgresAttachment;
|
|
1062
|
+
}
|
|
1063
|
+
export declare const CreatePostgresAttachmentResponse: S.Schema<CreatePostgresAttachmentResponse>;
|
|
1064
|
+
/** Backup type. */
|
|
1065
|
+
export type CreatePostgresBackupRequestType = "full" | "incr" | "diff";
|
|
1066
|
+
export declare const CreatePostgresBackupRequestType: any;
|
|
1067
|
+
export interface CreatePostgresBackupRequest {
|
|
1068
|
+
/** Managed Postgres Cluster ID */
|
|
1069
|
+
postgres_cluster_id: string;
|
|
1070
|
+
/** Backup type. */
|
|
1071
|
+
type: CreatePostgresBackupRequestType | (string & {});
|
|
1072
|
+
}
|
|
1073
|
+
export declare const CreatePostgresBackupRequest: S.Schema<CreatePostgresBackupRequest>;
|
|
1074
|
+
export interface CreatePostgresBackupResponse {
|
|
1075
|
+
}
|
|
1076
|
+
export declare const CreatePostgresBackupResponse: S.Schema<CreatePostgresBackupResponse>;
|
|
1077
|
+
export interface CreatePostgresDatabaseRequest {
|
|
1078
|
+
/** Managed Postgres Cluster ID */
|
|
1079
|
+
postgres_cluster_id: string;
|
|
1080
|
+
/** Name of the database to create. */
|
|
1081
|
+
name: string;
|
|
1082
|
+
}
|
|
1083
|
+
export declare const CreatePostgresDatabaseRequest: S.Schema<CreatePostgresDatabaseRequest>;
|
|
1084
|
+
export interface PostgresDatabase {
|
|
1085
|
+
/** Database name. */
|
|
1086
|
+
name?: string;
|
|
1087
|
+
}
|
|
1088
|
+
export declare const PostgresDatabase: S.Schema<PostgresDatabase>;
|
|
1089
|
+
export interface PostgresDatabaseResponse {
|
|
1090
|
+
data?: PostgresDatabase;
|
|
1091
|
+
}
|
|
1092
|
+
export declare const PostgresDatabaseResponse: S.Schema<PostgresDatabaseResponse>;
|
|
1093
|
+
/** Role to grant the user. */
|
|
1094
|
+
export type CreatePostgresUserRequestRole = "schema_admin" | "writer" | "reader";
|
|
1095
|
+
export declare const CreatePostgresUserRequestRole: any;
|
|
1096
|
+
export interface CreatePostgresUserRequest {
|
|
1097
|
+
/** Managed Postgres Cluster ID */
|
|
1098
|
+
postgres_cluster_id: string;
|
|
1099
|
+
/** Role to grant the user. */
|
|
1100
|
+
role: CreatePostgresUserRequestRole | (string & {});
|
|
1101
|
+
/** Name for the new user. */
|
|
1102
|
+
username: string;
|
|
1103
|
+
}
|
|
1104
|
+
export declare const CreatePostgresUserRequest: S.Schema<CreatePostgresUserRequest>;
|
|
1105
|
+
/** User role. */
|
|
1106
|
+
export type PostgresUserRole = "schema_admin" | "writer" | "reader";
|
|
1107
|
+
export declare const PostgresUserRole: any;
|
|
1108
|
+
export interface PostgresUser {
|
|
1109
|
+
/** User role. */
|
|
1110
|
+
role?: PostgresUserRole;
|
|
1111
|
+
/** User name. */
|
|
1112
|
+
username?: string;
|
|
1113
|
+
}
|
|
1114
|
+
export declare const PostgresUser: S.Schema<PostgresUser>;
|
|
1115
|
+
export interface CreatePostgresUserResponse {
|
|
1116
|
+
data?: PostgresUser;
|
|
1117
|
+
}
|
|
1118
|
+
export declare const CreatePostgresUserResponse: S.Schema<CreatePostgresUserResponse>;
|
|
914
1119
|
export interface CreateSecretRequest {
|
|
915
1120
|
/** Fly App Name */
|
|
916
1121
|
app_name: string;
|
|
@@ -1088,6 +1293,41 @@ export declare const DeleteMachineMetadataRequest: S.Schema<DeleteMachineMetadat
|
|
|
1088
1293
|
export interface DeleteMachineMetadataResponse {
|
|
1089
1294
|
}
|
|
1090
1295
|
export declare const DeleteMachineMetadataResponse: S.Schema<DeleteMachineMetadataResponse>;
|
|
1296
|
+
export interface DeletePostgresRequest {
|
|
1297
|
+
/** Managed Postgres Cluster ID */
|
|
1298
|
+
postgres_cluster_id: string;
|
|
1299
|
+
}
|
|
1300
|
+
export declare const DeletePostgresRequest: S.Schema<DeletePostgresRequest>;
|
|
1301
|
+
export interface DeletePostgresResponse {
|
|
1302
|
+
}
|
|
1303
|
+
export declare const DeletePostgresResponse: S.Schema<DeletePostgresResponse>;
|
|
1304
|
+
export interface DeletePostgresAttachmentRequest {
|
|
1305
|
+
/** Managed Postgres Cluster ID */
|
|
1306
|
+
postgres_cluster_id: string;
|
|
1307
|
+
/** Fly App Name */
|
|
1308
|
+
app_name: string;
|
|
1309
|
+
}
|
|
1310
|
+
export declare const DeletePostgresAttachmentRequest: S.Schema<DeletePostgresAttachmentRequest>;
|
|
1311
|
+
export interface DeletePostgresAttachmentResponse {
|
|
1312
|
+
}
|
|
1313
|
+
export declare const DeletePostgresAttachmentResponse: S.Schema<DeletePostgresAttachmentResponse>;
|
|
1314
|
+
export interface DeletePostgresDatabaseRequest {
|
|
1315
|
+
/** Managed Postgres Cluster ID */
|
|
1316
|
+
postgres_cluster_id: string;
|
|
1317
|
+
/** Database Name */
|
|
1318
|
+
database_name: string;
|
|
1319
|
+
}
|
|
1320
|
+
export declare const DeletePostgresDatabaseRequest: S.Schema<DeletePostgresDatabaseRequest>;
|
|
1321
|
+
export interface DeletePostgresUserRequest {
|
|
1322
|
+
/** Managed Postgres Cluster ID */
|
|
1323
|
+
postgres_cluster_id: string;
|
|
1324
|
+
/** Postgres User Name */
|
|
1325
|
+
username: string;
|
|
1326
|
+
}
|
|
1327
|
+
export declare const DeletePostgresUserRequest: S.Schema<DeletePostgresUserRequest>;
|
|
1328
|
+
export interface DeletePostgresUserResponse {
|
|
1329
|
+
}
|
|
1330
|
+
export declare const DeletePostgresUserResponse: S.Schema<DeletePostgresUserResponse>;
|
|
1091
1331
|
export interface DeleteSecretRequest {
|
|
1092
1332
|
/** Fly App Name */
|
|
1093
1333
|
app_name: string;
|
|
@@ -1121,6 +1361,36 @@ export interface DeleteVolumeRequest {
|
|
|
1121
1361
|
volume_id: string;
|
|
1122
1362
|
}
|
|
1123
1363
|
export declare const DeleteVolumeRequest: S.Schema<DeleteVolumeRequest>;
|
|
1364
|
+
export interface DisablePostgresExtensionRequest {
|
|
1365
|
+
/** Managed Postgres Cluster ID */
|
|
1366
|
+
postgres_cluster_id: string;
|
|
1367
|
+
/** Database Name */
|
|
1368
|
+
database_name: string;
|
|
1369
|
+
/** Extension Name */
|
|
1370
|
+
extension_name: string;
|
|
1371
|
+
/** Also drop objects that depend on the extension */
|
|
1372
|
+
force?: boolean;
|
|
1373
|
+
}
|
|
1374
|
+
export declare const DisablePostgresExtensionRequest: S.Schema<DisablePostgresExtensionRequest>;
|
|
1375
|
+
export interface DisablePostgresExtensionResponse {
|
|
1376
|
+
}
|
|
1377
|
+
export declare const DisablePostgresExtensionResponse: S.Schema<DisablePostgresExtensionResponse>;
|
|
1378
|
+
export interface EnablePostgresExtensionRequest {
|
|
1379
|
+
/** Managed Postgres Cluster ID */
|
|
1380
|
+
postgres_cluster_id: string;
|
|
1381
|
+
/** Database Name */
|
|
1382
|
+
database_name: string;
|
|
1383
|
+
/** Create the schema first if it does not exist. */
|
|
1384
|
+
create_schema?: boolean;
|
|
1385
|
+
/** Extension to enable. */
|
|
1386
|
+
name: string;
|
|
1387
|
+
/** Schema to install the extension into. Defaults to the database's default schema. */
|
|
1388
|
+
schema?: string;
|
|
1389
|
+
}
|
|
1390
|
+
export declare const EnablePostgresExtensionRequest: S.Schema<EnablePostgresExtensionRequest>;
|
|
1391
|
+
export interface EnablePostgresExtensionResponse {
|
|
1392
|
+
}
|
|
1393
|
+
export declare const EnablePostgresExtensionResponse: S.Schema<EnablePostgresExtensionResponse>;
|
|
1124
1394
|
export interface EncryptSecretKeyRequest {
|
|
1125
1395
|
/** Fly App Name */
|
|
1126
1396
|
app_name: string;
|
|
@@ -1147,6 +1417,8 @@ export interface ExecMachineRequest {
|
|
|
1147
1417
|
cmd?: string;
|
|
1148
1418
|
command?: ExecMachineRequestCommandList;
|
|
1149
1419
|
container?: string;
|
|
1420
|
+
/** Machine runs the command in the machine's own namespace instead of in a container. It is mutually exclusive with Container. */
|
|
1421
|
+
machine?: boolean;
|
|
1150
1422
|
stdin?: string;
|
|
1151
1423
|
timeout?: number;
|
|
1152
1424
|
}
|
|
@@ -1171,6 +1443,13 @@ export interface ExtendVolumeResponse {
|
|
|
1171
1443
|
volume?: Volume;
|
|
1172
1444
|
}
|
|
1173
1445
|
export declare const ExtendVolumeResponse: S.Schema<ExtendVolumeResponse>;
|
|
1446
|
+
export interface ForkPostgresRequest {
|
|
1447
|
+
/** Managed Postgres Cluster ID */
|
|
1448
|
+
postgres_cluster_id: string;
|
|
1449
|
+
/** Name for the forked cluster. Defaults to the source name with a -fork suffix. */
|
|
1450
|
+
name?: string;
|
|
1451
|
+
}
|
|
1452
|
+
export declare const ForkPostgresRequest: S.Schema<ForkPostgresRequest>;
|
|
1174
1453
|
export type GenerateSecretKeyRequestValueList = Array<number>;
|
|
1175
1454
|
export declare const GenerateSecretKeyRequestValueList: S.Schema<GenerateSecretKeyRequestValueList>;
|
|
1176
1455
|
export interface GenerateSecretKeyRequest {
|
|
@@ -1210,6 +1489,7 @@ export interface App {
|
|
|
1210
1489
|
machine_count?: number;
|
|
1211
1490
|
name?: string;
|
|
1212
1491
|
network?: string;
|
|
1492
|
+
network_cidr?: string;
|
|
1213
1493
|
organization?: AppOrganizationInfo;
|
|
1214
1494
|
status?: string;
|
|
1215
1495
|
volume_count?: number;
|
|
@@ -1251,6 +1531,8 @@ export interface GetMachineRequest {
|
|
|
1251
1531
|
app_name: string;
|
|
1252
1532
|
/** Machine ID */
|
|
1253
1533
|
machine_id: string;
|
|
1534
|
+
/** Include machine lease */
|
|
1535
|
+
include_leases?: boolean;
|
|
1254
1536
|
}
|
|
1255
1537
|
export declare const GetMachineRequest: S.Schema<GetMachineRequest>;
|
|
1256
1538
|
export interface GetMachineLeaseRequest {
|
|
@@ -1328,6 +1610,11 @@ export interface MainGetPlacementsResponse {
|
|
|
1328
1610
|
regions?: MainGetPlacementsResponseRegionsList;
|
|
1329
1611
|
}
|
|
1330
1612
|
export declare const MainGetPlacementsResponse: S.Schema<MainGetPlacementsResponse>;
|
|
1613
|
+
export interface GetPostgresRequest {
|
|
1614
|
+
/** Managed Postgres Cluster ID */
|
|
1615
|
+
postgres_cluster_id: string;
|
|
1616
|
+
}
|
|
1617
|
+
export declare const GetPostgresRequest: S.Schema<GetPostgresRequest>;
|
|
1331
1618
|
export interface GetRegionsRequest {
|
|
1332
1619
|
}
|
|
1333
1620
|
export declare const GetRegionsRequest: S.Schema<GetRegionsRequest>;
|
|
@@ -1338,6 +1625,7 @@ export interface MainRegionRow {
|
|
|
1338
1625
|
geo_region?: string;
|
|
1339
1626
|
latitude?: number;
|
|
1340
1627
|
longitude?: number;
|
|
1628
|
+
mpg_available?: boolean;
|
|
1341
1629
|
name?: string;
|
|
1342
1630
|
requires_paid_plan?: boolean;
|
|
1343
1631
|
}
|
|
@@ -1432,6 +1720,16 @@ export interface ListAppIPAssignmentsRequest {
|
|
|
1432
1720
|
app_name: string;
|
|
1433
1721
|
}
|
|
1434
1722
|
export declare const ListAppIPAssignmentsRequest: S.Schema<ListAppIPAssignmentsRequest>;
|
|
1723
|
+
export interface IPAssignment {
|
|
1724
|
+
created_at?: string;
|
|
1725
|
+
egress?: boolean;
|
|
1726
|
+
ip?: string;
|
|
1727
|
+
region?: string;
|
|
1728
|
+
service_name?: string;
|
|
1729
|
+
shared?: boolean;
|
|
1730
|
+
type?: string;
|
|
1731
|
+
}
|
|
1732
|
+
export declare const IPAssignment: S.Schema<IPAssignment>;
|
|
1435
1733
|
export type ListIPAssignmentsResponseIpsList = Array<IPAssignment>;
|
|
1436
1734
|
export declare const ListIPAssignmentsResponseIpsList: S.Schema<ListIPAssignmentsResponseIpsList>;
|
|
1437
1735
|
export interface ListIPAssignmentsResponse {
|
|
@@ -1503,35 +1801,23 @@ export interface ListMachinesRequest {
|
|
|
1503
1801
|
app_name: string;
|
|
1504
1802
|
/** Include deleted machines */
|
|
1505
1803
|
include_deleted?: boolean;
|
|
1804
|
+
/** Include machine leases */
|
|
1805
|
+
include_leases?: boolean;
|
|
1506
1806
|
/** Region filter */
|
|
1507
1807
|
region?: string;
|
|
1508
1808
|
/** comma separated list of states to filter (created, started, stopped, suspended) */
|
|
1509
1809
|
state?: string;
|
|
1510
1810
|
/** Only return summary info about machines (omit config, checks, events, host_status, nonce, etc.) */
|
|
1511
1811
|
summary?: boolean;
|
|
1812
|
+
/** 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
|
+
metadata__key_?: string;
|
|
1512
1814
|
}
|
|
1513
1815
|
export declare const ListMachinesRequest: S.Schema<ListMachinesRequest>;
|
|
1514
1816
|
export type ListMachinesResponseBodyList = Array<Machine>;
|
|
1515
1817
|
export declare const ListMachinesResponseBodyList: S.Schema<ListMachinesResponseBodyList>;
|
|
1516
1818
|
export type ListMachinesResponse = ListMachinesResponseBodyList;
|
|
1517
1819
|
export declare const ListMachinesResponse: S.Schema<ListMachinesResponse>;
|
|
1518
|
-
export interface
|
|
1519
|
-
/** Fly App Name */
|
|
1520
|
-
app_name: string;
|
|
1521
|
-
/** Machine ID */
|
|
1522
|
-
machine_id: string;
|
|
1523
|
-
}
|
|
1524
|
-
export declare const ListMachineVersionsRequest: S.Schema<ListMachineVersionsRequest>;
|
|
1525
|
-
export interface MachineVersion {
|
|
1526
|
-
user_config?: FlyMachineConfig;
|
|
1527
|
-
version?: string;
|
|
1528
|
-
}
|
|
1529
|
-
export declare const MachineVersion: S.Schema<MachineVersion>;
|
|
1530
|
-
export type ListMachineVersionsResponseBodyList = Array<MachineVersion>;
|
|
1531
|
-
export declare const ListMachineVersionsResponseBodyList: S.Schema<ListMachineVersionsResponseBodyList>;
|
|
1532
|
-
export type ListMachineVersionsResponse = ListMachineVersionsResponseBodyList;
|
|
1533
|
-
export declare const ListMachineVersionsResponse: S.Schema<ListMachineVersionsResponse>;
|
|
1534
|
-
export interface ListOrgMachinesRequest {
|
|
1820
|
+
export interface ListMachinesOrgRequest {
|
|
1535
1821
|
/** Fly Organization Slug */
|
|
1536
1822
|
org_slug: string;
|
|
1537
1823
|
/** Include deleted machines */
|
|
@@ -1549,7 +1835,7 @@ export interface ListOrgMachinesRequest {
|
|
|
1549
1835
|
/** The number of machines to fetch (max of 1000). This limit is advisory. Responses may be shorter, or even empty, even when more machines remain. If omitted, the maximum is used */
|
|
1550
1836
|
limit?: number;
|
|
1551
1837
|
}
|
|
1552
|
-
export declare const
|
|
1838
|
+
export declare const ListMachinesOrgRequest: S.Schema<ListMachinesOrgRequest>;
|
|
1553
1839
|
export type OrgMachinesResponseErrorRegionsList = Array<string>;
|
|
1554
1840
|
export declare const OrgMachinesResponseErrorRegionsList: S.Schema<OrgMachinesResponseErrorRegionsList>;
|
|
1555
1841
|
export type MachineOverviewConfigMetadataMap = {
|
|
@@ -1585,64 +1871,147 @@ export interface OrgMachinesResponse {
|
|
|
1585
1871
|
next_cursor?: string;
|
|
1586
1872
|
}
|
|
1587
1873
|
export declare const OrgMachinesResponse: S.Schema<OrgMachinesResponse>;
|
|
1588
|
-
export interface
|
|
1874
|
+
export interface ListMachineVersionsRequest {
|
|
1875
|
+
/** Fly App Name */
|
|
1876
|
+
app_name: string;
|
|
1877
|
+
/** Machine ID */
|
|
1878
|
+
machine_id: string;
|
|
1879
|
+
}
|
|
1880
|
+
export declare const ListMachineVersionsRequest: S.Schema<ListMachineVersionsRequest>;
|
|
1881
|
+
export interface MachineVersion {
|
|
1882
|
+
user_config?: FlyMachineConfig;
|
|
1883
|
+
version?: string;
|
|
1884
|
+
}
|
|
1885
|
+
export declare const MachineVersion: S.Schema<MachineVersion>;
|
|
1886
|
+
export type ListMachineVersionsResponseBodyList = Array<MachineVersion>;
|
|
1887
|
+
export declare const ListMachineVersionsResponseBodyList: S.Schema<ListMachineVersionsResponseBodyList>;
|
|
1888
|
+
export type ListMachineVersionsResponse = ListMachineVersionsResponseBodyList;
|
|
1889
|
+
export declare const ListMachineVersionsResponse: S.Schema<ListMachineVersionsResponse>;
|
|
1890
|
+
export interface ListPostgresRequest {
|
|
1589
1891
|
/** Fly Organization Slug */
|
|
1590
1892
|
org_slug: string;
|
|
1591
|
-
/** Include deleted
|
|
1893
|
+
/** Include deleted clusters */
|
|
1592
1894
|
include_deleted?: boolean;
|
|
1593
|
-
/** Region filter */
|
|
1594
|
-
region?: string;
|
|
1595
|
-
/** Comma separated list of volume states to filter */
|
|
1596
|
-
state?: string;
|
|
1597
|
-
/** Only return summary info about volumes (omit blocks, block size, etc) */
|
|
1598
|
-
summary?: boolean;
|
|
1599
|
-
/** Only return volumes updated after this time. Timestamp must be in the RFC 3339 format */
|
|
1600
|
-
updated_after?: string;
|
|
1601
|
-
/** Pagination cursor from previous response (takes precedence over updated_after) */
|
|
1602
|
-
cursor?: string;
|
|
1603
|
-
/** The number of volumes to fetch (max of 1000). This limit is advisory. Responses may be shorter, even when more volumes remain. If omitted, the maximum is used */
|
|
1604
|
-
limit?: number;
|
|
1605
1895
|
}
|
|
1606
|
-
export declare const
|
|
1607
|
-
|
|
1608
|
-
export
|
|
1609
|
-
export
|
|
1610
|
-
|
|
1611
|
-
export
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
bytes_total?: number;
|
|
1621
|
-
bytes_used?: number;
|
|
1896
|
+
export declare const ListPostgresRequest: S.Schema<ListPostgresRequest>;
|
|
1897
|
+
/** Apps attached to the cluster. */
|
|
1898
|
+
export type PostgresClusterSummaryAttachedAppsList = Array<PostgresAttachedApp>;
|
|
1899
|
+
export declare const PostgresClusterSummaryAttachedAppsList: S.Schema<PostgresClusterSummaryAttachedAppsList>;
|
|
1900
|
+
/** Plan slug. */
|
|
1901
|
+
export type PostgresClusterSummaryPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
|
|
1902
|
+
export declare const PostgresClusterSummaryPlan: any;
|
|
1903
|
+
/** Current lifecycle status. */
|
|
1904
|
+
export type PostgresClusterSummaryStatus = "creating" | "initializing" | "ready" | "deleting" | "deleted" | "failed";
|
|
1905
|
+
export declare const PostgresClusterSummaryStatus: any;
|
|
1906
|
+
export interface PostgresClusterSummary {
|
|
1907
|
+
/** Apps attached to the cluster. */
|
|
1908
|
+
attached_apps?: PostgresClusterSummaryAttachedAppsList;
|
|
1909
|
+
/** RFC 3339 creation timestamp. */
|
|
1622
1910
|
created_at?: string;
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1911
|
+
/** RFC 3339 deletion timestamp; present for deleted clusters. */
|
|
1912
|
+
deleted_at?: string;
|
|
1913
|
+
/** Cluster ID. */
|
|
1626
1914
|
id?: string;
|
|
1915
|
+
/** Cluster name. */
|
|
1627
1916
|
name?: string;
|
|
1917
|
+
/** Plan slug. */
|
|
1918
|
+
plan?: PostgresClusterSummaryPlan;
|
|
1919
|
+
/** Fly region code. */
|
|
1628
1920
|
region?: string;
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
export declare const
|
|
1639
|
-
export interface
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1921
|
+
/** Current lifecycle status. */
|
|
1922
|
+
status?: PostgresClusterSummaryStatus;
|
|
1923
|
+
}
|
|
1924
|
+
export declare const PostgresClusterSummary: S.Schema<PostgresClusterSummary>;
|
|
1925
|
+
export type ListPostgresClustersResponseDataList = Array<PostgresClusterSummary>;
|
|
1926
|
+
export declare const ListPostgresClustersResponseDataList: S.Schema<ListPostgresClustersResponseDataList>;
|
|
1927
|
+
export interface ListPostgresClustersResponse {
|
|
1928
|
+
data?: ListPostgresClustersResponseDataList;
|
|
1929
|
+
}
|
|
1930
|
+
export declare const ListPostgresClustersResponse: S.Schema<ListPostgresClustersResponse>;
|
|
1931
|
+
export interface ListPostgresBackupsRequest {
|
|
1932
|
+
/** Managed Postgres Cluster ID */
|
|
1933
|
+
postgres_cluster_id: string;
|
|
1934
|
+
}
|
|
1935
|
+
export declare const ListPostgresBackupsRequest: S.Schema<ListPostgresBackupsRequest>;
|
|
1936
|
+
/** Backup type. */
|
|
1937
|
+
export type PostgresBackupType = "full" | "incr" | "diff";
|
|
1938
|
+
export declare const PostgresBackupType: any;
|
|
1939
|
+
export interface PostgresBackup {
|
|
1940
|
+
/** RFC 3339 stop timestamp. */
|
|
1941
|
+
finished_at?: string;
|
|
1942
|
+
/** Backup ID. */
|
|
1943
|
+
id?: string;
|
|
1944
|
+
/** Backup size in bytes. */
|
|
1945
|
+
size_bytes?: number;
|
|
1946
|
+
/** RFC 3339 start timestamp. */
|
|
1947
|
+
started_at?: string;
|
|
1948
|
+
/** Backup status. */
|
|
1949
|
+
status?: string;
|
|
1950
|
+
/** Backup type. */
|
|
1951
|
+
type?: PostgresBackupType;
|
|
1952
|
+
}
|
|
1953
|
+
export declare const PostgresBackup: S.Schema<PostgresBackup>;
|
|
1954
|
+
export type ListPostgresBackupsResponseDataList = Array<PostgresBackup>;
|
|
1955
|
+
export declare const ListPostgresBackupsResponseDataList: S.Schema<ListPostgresBackupsResponseDataList>;
|
|
1956
|
+
export interface ListPostgresBackupsResponse {
|
|
1957
|
+
data?: ListPostgresBackupsResponseDataList;
|
|
1958
|
+
}
|
|
1959
|
+
export declare const ListPostgresBackupsResponse: S.Schema<ListPostgresBackupsResponse>;
|
|
1960
|
+
export interface ListPostgresDatabasesRequest {
|
|
1961
|
+
/** Managed Postgres Cluster ID */
|
|
1962
|
+
postgres_cluster_id: string;
|
|
1963
|
+
}
|
|
1964
|
+
export declare const ListPostgresDatabasesRequest: S.Schema<ListPostgresDatabasesRequest>;
|
|
1965
|
+
export type ListPostgresDatabasesResponseDataList = Array<PostgresDatabase>;
|
|
1966
|
+
export declare const ListPostgresDatabasesResponseDataList: S.Schema<ListPostgresDatabasesResponseDataList>;
|
|
1967
|
+
export interface ListPostgresDatabasesResponse {
|
|
1968
|
+
data?: ListPostgresDatabasesResponseDataList;
|
|
1969
|
+
}
|
|
1970
|
+
export declare const ListPostgresDatabasesResponse: S.Schema<ListPostgresDatabasesResponse>;
|
|
1971
|
+
export interface ListPostgresExtensionsRequest {
|
|
1972
|
+
/** Managed Postgres Cluster ID */
|
|
1973
|
+
postgres_cluster_id: string;
|
|
1974
|
+
/** Database Name */
|
|
1975
|
+
database_name: string;
|
|
1976
|
+
}
|
|
1977
|
+
export declare const ListPostgresExtensionsRequest: S.Schema<ListPostgresExtensionsRequest>;
|
|
1978
|
+
export interface PostgresInstalledExtension {
|
|
1979
|
+
/** Schema the extension is installed into. */
|
|
1980
|
+
schema?: string;
|
|
1981
|
+
/** Installed version. */
|
|
1982
|
+
version?: string;
|
|
1644
1983
|
}
|
|
1645
|
-
export declare const
|
|
1984
|
+
export declare const PostgresInstalledExtension: S.Schema<PostgresInstalledExtension>;
|
|
1985
|
+
export interface PostgresExtension {
|
|
1986
|
+
/** Default version installed when enabled. */
|
|
1987
|
+
default_version?: string;
|
|
1988
|
+
/** Human-readable description. */
|
|
1989
|
+
description?: string;
|
|
1990
|
+
/** Installation details, or null when the extension is not installed. */
|
|
1991
|
+
installed?: PostgresInstalledExtension;
|
|
1992
|
+
/** Extension name. */
|
|
1993
|
+
name?: string;
|
|
1994
|
+
/** Whether this is a system extension that cannot be disabled. */
|
|
1995
|
+
system?: boolean;
|
|
1996
|
+
}
|
|
1997
|
+
export declare const PostgresExtension: S.Schema<PostgresExtension>;
|
|
1998
|
+
export type ListPostgresExtensionsResponseDataList = Array<PostgresExtension>;
|
|
1999
|
+
export declare const ListPostgresExtensionsResponseDataList: S.Schema<ListPostgresExtensionsResponseDataList>;
|
|
2000
|
+
export interface ListPostgresExtensionsResponse {
|
|
2001
|
+
data?: ListPostgresExtensionsResponseDataList;
|
|
2002
|
+
}
|
|
2003
|
+
export declare const ListPostgresExtensionsResponse: S.Schema<ListPostgresExtensionsResponse>;
|
|
2004
|
+
export interface ListPostgresUsersRequest {
|
|
2005
|
+
/** Managed Postgres Cluster ID */
|
|
2006
|
+
postgres_cluster_id: string;
|
|
2007
|
+
}
|
|
2008
|
+
export declare const ListPostgresUsersRequest: S.Schema<ListPostgresUsersRequest>;
|
|
2009
|
+
export type ListPostgresUsersResponseDataList = Array<PostgresUser>;
|
|
2010
|
+
export declare const ListPostgresUsersResponseDataList: S.Schema<ListPostgresUsersResponseDataList>;
|
|
2011
|
+
export interface ListPostgresUsersResponse {
|
|
2012
|
+
data?: ListPostgresUsersResponseDataList;
|
|
2013
|
+
}
|
|
2014
|
+
export declare const ListPostgresUsersResponse: S.Schema<ListPostgresUsersResponse>;
|
|
1646
2015
|
export interface ListSecretKeysRequest {
|
|
1647
2016
|
/** Fly App Name */
|
|
1648
2017
|
app_name: string;
|
|
@@ -1705,6 +2074,74 @@ export type ListVolumeSnapshotsResponseBodyList = Array<VolumeSnapshot>;
|
|
|
1705
2074
|
export declare const ListVolumeSnapshotsResponseBodyList: S.Schema<ListVolumeSnapshotsResponseBodyList>;
|
|
1706
2075
|
export type ListVolumeSnapshotsResponse = ListVolumeSnapshotsResponseBodyList;
|
|
1707
2076
|
export declare const ListVolumeSnapshotsResponse: S.Schema<ListVolumeSnapshotsResponse>;
|
|
2077
|
+
export interface ListVolumesOrgRequest {
|
|
2078
|
+
/** Fly Organization Slug */
|
|
2079
|
+
org_slug: string;
|
|
2080
|
+
/** Include deleted volumes */
|
|
2081
|
+
include_deleted?: boolean;
|
|
2082
|
+
/** Region filter */
|
|
2083
|
+
region?: string;
|
|
2084
|
+
/** Comma separated list of volume states to filter */
|
|
2085
|
+
state?: string;
|
|
2086
|
+
/** Only return summary info about volumes (omit blocks, block size, etc) */
|
|
2087
|
+
summary?: boolean;
|
|
2088
|
+
/** Only return volumes updated after this time. Timestamp must be in the RFC 3339 format */
|
|
2089
|
+
updated_after?: string;
|
|
2090
|
+
/** Pagination cursor from previous response (takes precedence over updated_after) */
|
|
2091
|
+
cursor?: string;
|
|
2092
|
+
/** The number of volumes to fetch (max of 1000). This limit is advisory. Responses may be shorter, even when more volumes remain. If omitted, the maximum is used */
|
|
2093
|
+
limit?: number;
|
|
2094
|
+
}
|
|
2095
|
+
export declare const ListVolumesOrgRequest: S.Schema<ListVolumesOrgRequest>;
|
|
2096
|
+
export type OrgVolumeHostStatus = "ok" | "unknown" | "unreachable";
|
|
2097
|
+
export declare const OrgVolumeHostStatus: any;
|
|
2098
|
+
export type OrgVolumeType = "local" | "cache";
|
|
2099
|
+
export declare const OrgVolumeType: any;
|
|
2100
|
+
export interface OrgVolume {
|
|
2101
|
+
app_name?: string;
|
|
2102
|
+
attached_alloc_id?: string;
|
|
2103
|
+
attached_machine_id?: string;
|
|
2104
|
+
auto_backup_enabled?: boolean;
|
|
2105
|
+
block_size?: number;
|
|
2106
|
+
blocks?: number;
|
|
2107
|
+
blocks_avail?: number;
|
|
2108
|
+
blocks_free?: number;
|
|
2109
|
+
bytes_total?: number;
|
|
2110
|
+
bytes_used?: number;
|
|
2111
|
+
created_at?: string;
|
|
2112
|
+
encrypted?: boolean;
|
|
2113
|
+
fstype?: string;
|
|
2114
|
+
host_status?: OrgVolumeHostStatus;
|
|
2115
|
+
id?: string;
|
|
2116
|
+
name?: string;
|
|
2117
|
+
region?: string;
|
|
2118
|
+
size_gb?: number;
|
|
2119
|
+
snapshot_retention?: number;
|
|
2120
|
+
state?: string;
|
|
2121
|
+
type?: OrgVolumeType;
|
|
2122
|
+
updated_at?: string;
|
|
2123
|
+
zone?: string;
|
|
2124
|
+
}
|
|
2125
|
+
export declare const OrgVolume: S.Schema<OrgVolume>;
|
|
2126
|
+
export type OrgVolumesResponseVolumesList = Array<OrgVolume>;
|
|
2127
|
+
export declare const OrgVolumesResponseVolumesList: S.Schema<OrgVolumesResponseVolumesList>;
|
|
2128
|
+
export interface OrgVolumesResponse {
|
|
2129
|
+
last_updated_at?: string;
|
|
2130
|
+
last_volume_id?: string;
|
|
2131
|
+
next_cursor?: string;
|
|
2132
|
+
volumes?: OrgVolumesResponseVolumesList;
|
|
2133
|
+
}
|
|
2134
|
+
export declare const OrgVolumesResponse: S.Schema<OrgVolumesResponse>;
|
|
2135
|
+
export interface MachinesReleaseLeaseRequest {
|
|
2136
|
+
/** Fly App Name */
|
|
2137
|
+
app_name: string;
|
|
2138
|
+
/** Machine ID */
|
|
2139
|
+
machine_id: string;
|
|
2140
|
+
}
|
|
2141
|
+
export declare const MachinesReleaseLeaseRequest: S.Schema<MachinesReleaseLeaseRequest>;
|
|
2142
|
+
export interface MachinesReleaseLeaseResponse {
|
|
2143
|
+
}
|
|
2144
|
+
export declare const MachinesReleaseLeaseResponse: S.Schema<MachinesReleaseLeaseResponse>;
|
|
1708
2145
|
export type PatchMachineMetadataRequestMetadataMap = {
|
|
1709
2146
|
[key: string]: string | undefined;
|
|
1710
2147
|
};
|
|
@@ -1722,6 +2159,24 @@ export declare const PatchMachineMetadataRequest: S.Schema<PatchMachineMetadataR
|
|
|
1722
2159
|
export interface PatchMachineMetadataResponse {
|
|
1723
2160
|
}
|
|
1724
2161
|
export declare const PatchMachineMetadataResponse: S.Schema<PatchMachineMetadataResponse>;
|
|
2162
|
+
export interface PostgresUsersCredentialsRequest {
|
|
2163
|
+
/** Managed Postgres Cluster ID */
|
|
2164
|
+
postgres_cluster_id: string;
|
|
2165
|
+
/** Postgres User Name */
|
|
2166
|
+
username: string;
|
|
2167
|
+
}
|
|
2168
|
+
export declare const PostgresUsersCredentialsRequest: S.Schema<PostgresUsersCredentialsRequest>;
|
|
2169
|
+
export interface PostgresUserCredentials {
|
|
2170
|
+
/** User password. */
|
|
2171
|
+
password?: string;
|
|
2172
|
+
/** User name. */
|
|
2173
|
+
username?: string;
|
|
2174
|
+
}
|
|
2175
|
+
export declare const PostgresUserCredentials: S.Schema<PostgresUserCredentials>;
|
|
2176
|
+
export interface GetPostgresUserCredentialsResponse {
|
|
2177
|
+
data?: PostgresUserCredentials;
|
|
2178
|
+
}
|
|
2179
|
+
export declare const GetPostgresUserCredentialsResponse: S.Schema<GetPostgresUserCredentialsResponse>;
|
|
1725
2180
|
export interface ReclaimMachineMemoryRequest {
|
|
1726
2181
|
/** Fly App Name */
|
|
1727
2182
|
app_name: string;
|
|
@@ -1734,16 +2189,6 @@ export interface MainReclaimMemoryResponse {
|
|
|
1734
2189
|
actual_mb?: number;
|
|
1735
2190
|
}
|
|
1736
2191
|
export declare const MainReclaimMemoryResponse: S.Schema<MainReclaimMemoryResponse>;
|
|
1737
|
-
export interface ReleaseMachineLeaseRequest {
|
|
1738
|
-
/** Fly App Name */
|
|
1739
|
-
app_name: string;
|
|
1740
|
-
/** Machine ID */
|
|
1741
|
-
machine_id: string;
|
|
1742
|
-
}
|
|
1743
|
-
export declare const ReleaseMachineLeaseRequest: S.Schema<ReleaseMachineLeaseRequest>;
|
|
1744
|
-
export interface ReleaseMachineLeaseResponse {
|
|
1745
|
-
}
|
|
1746
|
-
export declare const ReleaseMachineLeaseResponse: S.Schema<ReleaseMachineLeaseResponse>;
|
|
1747
2192
|
export interface RequestKmsTokenRequest {
|
|
1748
2193
|
}
|
|
1749
2194
|
export declare const RequestKmsTokenRequest: S.Schema<RequestKmsTokenRequest>;
|
|
@@ -1774,6 +2219,30 @@ export declare const RestartMachineRequest: S.Schema<RestartMachineRequest>;
|
|
|
1774
2219
|
export interface RestartMachineResponse {
|
|
1775
2220
|
}
|
|
1776
2221
|
export declare const RestartMachineResponse: S.Schema<RestartMachineResponse>;
|
|
2222
|
+
export interface RestorePostgresRequest {
|
|
2223
|
+
/** Managed Postgres Cluster ID */
|
|
2224
|
+
postgres_cluster_id: string;
|
|
2225
|
+
/** Backup label to restore from, as returned by the backups list. Mutually exclusive with pitr_time. */
|
|
2226
|
+
backup_id?: string;
|
|
2227
|
+
/** Name for the restored cluster. Defaults to a generated name derived from the source cluster and backup/point in time when omitted or blank. */
|
|
2228
|
+
name?: string;
|
|
2229
|
+
/** Point in time to restore to, as an RFC3339 timestamp with an explicit offset from UTC (e.g. Z or +02:00). Normalized to UTC and must fall within the cluster's PITR recovery window. Mutually exclusive with backup_id. */
|
|
2230
|
+
pitr_time?: string;
|
|
2231
|
+
}
|
|
2232
|
+
export declare const RestorePostgresRequest: S.Schema<RestorePostgresRequest>;
|
|
2233
|
+
export interface RotatePostgresUserPasswordRequest {
|
|
2234
|
+
/** Managed Postgres Cluster ID */
|
|
2235
|
+
postgres_cluster_id: string;
|
|
2236
|
+
/** Postgres User Name */
|
|
2237
|
+
username: string;
|
|
2238
|
+
/** Terminate the user's existing sessions after rotating. */
|
|
2239
|
+
kill_sessions?: boolean;
|
|
2240
|
+
}
|
|
2241
|
+
export declare const RotatePostgresUserPasswordRequest: S.Schema<RotatePostgresUserPasswordRequest>;
|
|
2242
|
+
export interface RotatePostgresPasswordResponse {
|
|
2243
|
+
data?: PostgresUserCredentials;
|
|
2244
|
+
}
|
|
2245
|
+
export declare const RotatePostgresPasswordResponse: S.Schema<RotatePostgresPasswordResponse>;
|
|
1777
2246
|
export interface SetMachineMemoryLimitRequest {
|
|
1778
2247
|
/** Fly App Name */
|
|
1779
2248
|
app_name: string;
|
|
@@ -1900,6 +2369,21 @@ export declare const UpdateMachineMetadataRequest: S.Schema<UpdateMachineMetadat
|
|
|
1900
2369
|
export interface UpdateMachineMetadataResponse {
|
|
1901
2370
|
}
|
|
1902
2371
|
export declare const UpdateMachineMetadataResponse: S.Schema<UpdateMachineMetadataResponse>;
|
|
2372
|
+
/** New role for the user. */
|
|
2373
|
+
export type UpdatePostgresUserRoleRequestRole = "schema_admin" | "writer" | "reader";
|
|
2374
|
+
export declare const UpdatePostgresUserRoleRequestRole: any;
|
|
2375
|
+
export interface UpdatePostgresUserRoleRequest {
|
|
2376
|
+
/** Managed Postgres Cluster ID */
|
|
2377
|
+
postgres_cluster_id: string;
|
|
2378
|
+
/** Postgres User Name */
|
|
2379
|
+
username: string;
|
|
2380
|
+
/** New role for the user. */
|
|
2381
|
+
role: UpdatePostgresUserRoleRequestRole | (string & {});
|
|
2382
|
+
}
|
|
2383
|
+
export declare const UpdatePostgresUserRoleRequest: S.Schema<UpdatePostgresUserRoleRequest>;
|
|
2384
|
+
export interface UpdatePostgresUserRoleResponse {
|
|
2385
|
+
}
|
|
2386
|
+
export declare const UpdatePostgresUserRoleResponse: S.Schema<UpdatePostgresUserRoleResponse>;
|
|
1903
2387
|
export type UpdateSecretsRequestValuesMap = {
|
|
1904
2388
|
[key: string]: string | undefined;
|
|
1905
2389
|
};
|
|
@@ -2008,13 +2492,28 @@ export type CreateAppDeployTokenError = BadRequest | Forbidden | NotFound | FlyI
|
|
|
2008
2492
|
export declare const createAppDeployToken: API.OperationMethod<CreateAppDeployTokenRequest, CreateAppDeployTokenResponse, CreateAppDeployTokenError, FlyIoOpContext>;
|
|
2009
2493
|
export type CreateAppIPAssignmentError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2010
2494
|
/** Assign new IP address to app */
|
|
2011
|
-
export declare const createAppIPAssignment: API.OperationMethod<CreateAppIPAssignmentRequest,
|
|
2495
|
+
export declare const createAppIPAssignment: API.OperationMethod<CreateAppIPAssignmentRequest, AssignIPResponse, CreateAppIPAssignmentError, FlyIoOpContext>;
|
|
2012
2496
|
export type CreateMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2013
2497
|
/** 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! */
|
|
2014
2498
|
export declare const createMachine: API.OperationMethod<CreateMachineRequest, Machine, CreateMachineError, FlyIoOpContext>;
|
|
2015
2499
|
export type CreateMachineLeaseError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2016
2500
|
/** 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. */
|
|
2017
2501
|
export declare const createMachineLease: API.OperationMethod<CreateMachineLeaseRequest, Lease, CreateMachineLeaseError, FlyIoOpContext>;
|
|
2502
|
+
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, and a name is generated when one is not supplied. */
|
|
2504
|
+
export declare const createPostgres: API.OperationMethod<CreatePostgresRequest, ShowPostgresClusterResponse, CreatePostgresError, FlyIoOpContext>;
|
|
2505
|
+
export type CreatePostgresAttachmentError = NotFound | FlyIoOpError;
|
|
2506
|
+
/** Attach Cluster to App Attach a specific cluster to a Fly app. The attachment is created if it does not already exist. */
|
|
2507
|
+
export declare const createPostgresAttachment: API.OperationMethod<CreatePostgresAttachmentRequest, CreatePostgresAttachmentResponse, CreatePostgresAttachmentError, FlyIoOpContext>;
|
|
2508
|
+
export type CreatePostgresBackupError = NotFound | Conflict | FlyIoOpError;
|
|
2509
|
+
/** Create Backup Create a backup for a specific cluster. The backup runs asynchronously and is rejected if one is already in progress. */
|
|
2510
|
+
export declare const createPostgresBackup: API.OperationMethod<CreatePostgresBackupRequest, CreatePostgresBackupResponse, CreatePostgresBackupError, FlyIoOpContext>;
|
|
2511
|
+
export type CreatePostgresDatabaseError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
|
|
2512
|
+
/** Create Database Create a database within a specific cluster. */
|
|
2513
|
+
export declare const createPostgresDatabase: API.OperationMethod<CreatePostgresDatabaseRequest, PostgresDatabaseResponse, CreatePostgresDatabaseError, FlyIoOpContext>;
|
|
2514
|
+
export type CreatePostgresUserError = BadRequest | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
|
|
2515
|
+
/** Create User Create a Postgres user within a specific cluster. Fetch the generated password from the credentials endpoint. */
|
|
2516
|
+
export declare const createPostgresUser: API.OperationMethod<CreatePostgresUserRequest, CreatePostgresUserResponse, CreatePostgresUserError, FlyIoOpContext>;
|
|
2018
2517
|
export type CreateSecretError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2019
2518
|
/** Create or update Secret */
|
|
2020
2519
|
export declare const createSecret: API.OperationMethod<CreateSecretRequest, SetAppSecretResponse, CreateSecretError, FlyIoOpContext>;
|
|
@@ -2048,6 +2547,18 @@ export declare const deleteMachine: API.OperationMethod<DeleteMachineRequest, De
|
|
|
2048
2547
|
export type DeleteMachineMetadataError = Forbidden | NotFound | FlyIoOpError;
|
|
2049
2548
|
/** Delete Metadata Delete metadata for a specific Machine within an app by providing a metadata key. */
|
|
2050
2549
|
export declare const deleteMachineMetadata: API.OperationMethod<DeleteMachineMetadataRequest, DeleteMachineMetadataResponse, DeleteMachineMetadataError, FlyIoOpContext>;
|
|
2550
|
+
export type DeletePostgresError = NotFound | FlyIoOpError;
|
|
2551
|
+
/** Delete Postgres Cluster Delete a Managed Postgres cluster. The cluster is marked for deletion and removed asynchronously. */
|
|
2552
|
+
export declare const deletePostgres: API.OperationMethod<DeletePostgresRequest, DeletePostgresResponse, DeletePostgresError, FlyIoOpContext>;
|
|
2553
|
+
export type DeletePostgresAttachmentError = NotFound | FlyIoOpError;
|
|
2554
|
+
/** Detach Cluster from App Detach a specific cluster from a Fly app. */
|
|
2555
|
+
export declare const deletePostgresAttachment: API.OperationMethod<DeletePostgresAttachmentRequest, DeletePostgresAttachmentResponse, DeletePostgresAttachmentError, FlyIoOpContext>;
|
|
2556
|
+
export type DeletePostgresDatabaseError = BadRequest | NotFound | FlyIoOpError;
|
|
2557
|
+
/** Drop Database Delete a specific database within a cluster, along with objects that depend on it. */
|
|
2558
|
+
export declare const deletePostgresDatabase: API.OperationMethod<DeletePostgresDatabaseRequest, PostgresDatabaseResponse, DeletePostgresDatabaseError, FlyIoOpContext>;
|
|
2559
|
+
export type DeletePostgresUserError = BadRequest | NotFound | FlyIoOpError;
|
|
2560
|
+
/** Delete User Delete a specific Postgres user within a cluster. */
|
|
2561
|
+
export declare const deletePostgresUser: API.OperationMethod<DeletePostgresUserRequest, DeletePostgresUserResponse, DeletePostgresUserError, FlyIoOpContext>;
|
|
2051
2562
|
export type DeleteSecretError = Forbidden | NotFound | FlyIoOpError;
|
|
2052
2563
|
/** Delete an app secret */
|
|
2053
2564
|
export declare const deleteSecret: API.OperationMethod<DeleteSecretRequest, DeleteAppSecretResponse, DeleteSecretError, FlyIoOpContext>;
|
|
@@ -2057,6 +2568,12 @@ export declare const deleteSecretKey: API.OperationMethod<DeleteSecretKeyRequest
|
|
|
2057
2568
|
export type DeleteVolumeError = Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2058
2569
|
/** Destroy Volume Delete a specific volume within an app by volume ID. */
|
|
2059
2570
|
export declare const deleteVolume: API.OperationMethod<DeleteVolumeRequest, Volume, DeleteVolumeError, FlyIoOpContext>;
|
|
2571
|
+
export type DisablePostgresExtensionError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
|
|
2572
|
+
/** Disable Extension Disable a specific Postgres extension within a database, optionally dropping objects that depend on it. System extensions cannot be disabled. */
|
|
2573
|
+
export declare const disablePostgresExtension: API.OperationMethod<DisablePostgresExtensionRequest, DisablePostgresExtensionResponse, DisablePostgresExtensionError, FlyIoOpContext>;
|
|
2574
|
+
export type EnablePostgresExtensionError = BadRequest | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
|
|
2575
|
+
/** Enable Extension Enable a Postgres extension within a specific database. PostGIS extensions require a PostGIS-enabled cluster. */
|
|
2576
|
+
export declare const enablePostgresExtension: API.OperationMethod<EnablePostgresExtensionRequest, EnablePostgresExtensionResponse, EnablePostgresExtensionError, FlyIoOpContext>;
|
|
2060
2577
|
export type EncryptSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2061
2578
|
/** Encrypt with a secret key */
|
|
2062
2579
|
export declare const encryptSecretKey: API.OperationMethod<EncryptSecretKeyRequest, EncryptSecretkeyResponse, EncryptSecretKeyError, FlyIoOpContext>;
|
|
@@ -2066,6 +2583,9 @@ export declare const execMachine: API.OperationMethod<ExecMachineRequest, Flydv1
|
|
|
2066
2583
|
export type ExtendVolumeError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2067
2584
|
/** Extend Volume Extend a volume's size within an app using the details provided in the request body. */
|
|
2068
2585
|
export declare const extendVolume: API.OperationMethod<ExtendVolumeRequest, ExtendVolumeResponse, ExtendVolumeError, FlyIoOpContext>;
|
|
2586
|
+
export type ForkPostgresError = BadRequest | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
|
|
2587
|
+
/** Fork Cluster to New Cluster Fork a ready Managed Postgres cluster into a new cluster that inherits the source's settings. The source cluster is left unchanged, and the fork is provisioned asynchronously. */
|
|
2588
|
+
export declare const forkPostgres: API.OperationMethod<ForkPostgresRequest, ShowPostgresClusterResponse, ForkPostgresError, FlyIoOpContext>;
|
|
2069
2589
|
export type GenerateSecretKeyError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2070
2590
|
/** Generate a random secret key */
|
|
2071
2591
|
export declare const generateSecretKey: API.OperationMethod<GenerateSecretKeyRequest, SetSecretkeyResponse, GenerateSecretKeyError, FlyIoOpContext>;
|
|
@@ -2075,7 +2595,7 @@ export declare const getApp: API.OperationMethod<GetAppRequest, App, GetAppError
|
|
|
2075
2595
|
export type GetAppCertificateError = Forbidden | NotFound | FlyIoOpError;
|
|
2076
2596
|
/** Get certificate details */
|
|
2077
2597
|
export declare const getAppCertificate: API.OperationMethod<GetAppCertificateRequest, CertificateDetail, GetAppCertificateError, FlyIoOpContext>;
|
|
2078
|
-
export type GetCurrentTokenError = FlyIoOpError;
|
|
2598
|
+
export type GetCurrentTokenError = Forbidden | FlyIoOpError;
|
|
2079
2599
|
/** Get Current Token Information Get information about the current macaroon token(s), including organizations, apps, user identity hashes, and machine restrictions */
|
|
2080
2600
|
export declare const getCurrentToken: API.OperationMethod<GetCurrentTokenRequest, CurrentTokenResponse, GetCurrentTokenError, FlyIoOpContext>;
|
|
2081
2601
|
export type GetMachineError = Forbidden | NotFound | FlyIoOpError;
|
|
@@ -2096,6 +2616,9 @@ export declare const getMachineMetadataKey: API.OperationMethod<GetMachineMetada
|
|
|
2096
2616
|
export type GetPlacementsError = BadRequest | Forbidden | FlyIoOpError;
|
|
2097
2617
|
/** Get Placements Simulates placing the specified number of machines into regions, depending on available capacity and limits. */
|
|
2098
2618
|
export declare const getPlacements: API.OperationMethod<GetPlacementsRequest, MainGetPlacementsResponse, GetPlacementsError, FlyIoOpContext>;
|
|
2619
|
+
export type GetPostgresError = NotFound | FlyIoOpError;
|
|
2620
|
+
/** Get Postgres Cluster Get details of a specific Managed Postgres cluster. */
|
|
2621
|
+
export declare const getPostgres: API.OperationMethod<GetPostgresRequest, ShowPostgresClusterResponse, GetPostgresError, FlyIoOpContext>;
|
|
2099
2622
|
export type GetRegionsError = Forbidden | FlyIoOpError;
|
|
2100
2623
|
/** Get Regions List all regions on the platform with their details. */
|
|
2101
2624
|
export declare const getRegions: API.OperationMethod<GetRegionsRequest, MainRegionResponse, GetRegionsError, FlyIoOpContext>;
|
|
@@ -2126,15 +2649,27 @@ export declare const listMachineProcesses: API.OperationMethod<ListMachineProces
|
|
|
2126
2649
|
export type ListMachinesError = Forbidden | NotFound | FlyIoOpError;
|
|
2127
2650
|
/** List Machines List all Machines associated with a specific app, with optional filters for including deleted Machines and filtering by region. */
|
|
2128
2651
|
export declare const listMachines: API.OperationMethod<ListMachinesRequest, ListMachinesResponse, ListMachinesError, FlyIoOpContext>;
|
|
2652
|
+
export type ListMachinesOrgError = Forbidden | NotFound | FlyIoOpError;
|
|
2653
|
+
/** List All Machines List all Machines associated with a specific organization. Machines are sorted by their `updated_at` timestamps, oldest to newest. This API call represents "a point in time". Recent machine changes, including creations and destructions, may take time to propagate. When polling with `updated_after`, offset your timestamps to catch late-arriving events. */
|
|
2654
|
+
export declare const listMachinesOrg: API.OperationMethod<ListMachinesOrgRequest, OrgMachinesResponse, ListMachinesOrgError, FlyIoOpContext>;
|
|
2129
2655
|
export type ListMachineVersionsError = Forbidden | NotFound | FlyIoOpError;
|
|
2130
2656
|
/** List Versions List all versions of the configuration for a specific Machine within an app. */
|
|
2131
2657
|
export declare const listMachineVersions: API.OperationMethod<ListMachineVersionsRequest, ListMachineVersionsResponse, ListMachineVersionsError, FlyIoOpContext>;
|
|
2132
|
-
export type
|
|
2133
|
-
/** List
|
|
2134
|
-
export declare const
|
|
2135
|
-
export type
|
|
2136
|
-
/** List
|
|
2137
|
-
export declare const
|
|
2658
|
+
export type ListPostgresError = NotFound | UnprocessableEntity | FlyIoOpError;
|
|
2659
|
+
/** List Postgres Clusters List Managed Postgres clusters for an organization. */
|
|
2660
|
+
export declare const listPostgres: API.OperationMethod<ListPostgresRequest, ListPostgresClustersResponse, ListPostgresError, FlyIoOpContext>;
|
|
2661
|
+
export type ListPostgresBackupsError = NotFound | FlyIoOpError;
|
|
2662
|
+
/** List Backups List all backups associated with a specific cluster. */
|
|
2663
|
+
export declare const listPostgresBackups: API.OperationMethod<ListPostgresBackupsRequest, ListPostgresBackupsResponse, ListPostgresBackupsError, FlyIoOpContext>;
|
|
2664
|
+
export type ListPostgresDatabasesError = NotFound | FlyIoOpError;
|
|
2665
|
+
/** List Databases List all databases within a specific cluster. */
|
|
2666
|
+
export declare const listPostgresDatabases: API.OperationMethod<ListPostgresDatabasesRequest, ListPostgresDatabasesResponse, ListPostgresDatabasesError, FlyIoOpContext>;
|
|
2667
|
+
export type ListPostgresExtensionsError = BadRequest | NotFound | FlyIoOpError;
|
|
2668
|
+
/** List Extensions List all extensions available within a specific database, indicating which are installed. */
|
|
2669
|
+
export declare const listPostgresExtensions: API.OperationMethod<ListPostgresExtensionsRequest, ListPostgresExtensionsResponse, ListPostgresExtensionsError, FlyIoOpContext>;
|
|
2670
|
+
export type ListPostgresUsersError = NotFound | FlyIoOpError;
|
|
2671
|
+
/** List Users List all Postgres users within a specific cluster. */
|
|
2672
|
+
export declare const listPostgresUsers: API.OperationMethod<ListPostgresUsersRequest, ListPostgresUsersResponse, ListPostgresUsersError, FlyIoOpContext>;
|
|
2138
2673
|
export type ListSecretKeysError = Forbidden | NotFound | FlyIoOpError;
|
|
2139
2674
|
/** List secret keys belonging to an app */
|
|
2140
2675
|
export declare const listSecretKeys: API.OperationMethod<ListSecretKeysRequest, SecretKeys, ListSecretKeysError, FlyIoOpContext>;
|
|
@@ -2147,15 +2682,21 @@ export declare const listVolumes: API.OperationMethod<ListVolumesRequest, ListVo
|
|
|
2147
2682
|
export type ListVolumeSnapshotsError = Forbidden | NotFound | FlyIoOpError;
|
|
2148
2683
|
/** List Snapshots List all snapshots for a specific volume within an app. */
|
|
2149
2684
|
export declare const listVolumeSnapshots: API.OperationMethod<ListVolumeSnapshotsRequest, ListVolumeSnapshotsResponse, ListVolumeSnapshotsError, FlyIoOpContext>;
|
|
2685
|
+
export type ListVolumesOrgError = FlyIoOpError;
|
|
2686
|
+
/** List All Volumes List all volumes for an organization with optional filters and cursor-based pagination. */
|
|
2687
|
+
export declare const listVolumesOrg: API.OperationMethod<ListVolumesOrgRequest, OrgVolumesResponse, ListVolumesOrgError, FlyIoOpContext>;
|
|
2688
|
+
export type MachinesReleaseLeaseError = Forbidden | NotFound | FlyIoOpError;
|
|
2689
|
+
/** 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
|
+
export declare const machinesReleaseLease: API.OperationMethod<MachinesReleaseLeaseRequest, MachinesReleaseLeaseResponse, MachinesReleaseLeaseError, FlyIoOpContext>;
|
|
2150
2691
|
export type PatchMachineMetadataError = BadRequest | FlyIoOpError;
|
|
2151
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. */
|
|
2152
2693
|
export declare const patchMachineMetadata: API.OperationMethod<PatchMachineMetadataRequest, PatchMachineMetadataResponse, PatchMachineMetadataError, FlyIoOpContext>;
|
|
2694
|
+
export type PostgresUsersCredentialsError = BadRequest | NotFound | FlyIoOpError;
|
|
2695
|
+
/** Get User Credentials Get the connection credentials for a specific Postgres user within a cluster. */
|
|
2696
|
+
export declare const postgresUsersCredentials: API.OperationMethod<PostgresUsersCredentialsRequest, GetPostgresUserCredentialsResponse, PostgresUsersCredentialsError, FlyIoOpContext>;
|
|
2153
2697
|
export type ReclaimMachineMemoryError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2154
2698
|
/** Reclaim Machine Memory Trigger the balloon device to reclaim memory from a machine */
|
|
2155
2699
|
export declare const reclaimMachineMemory: API.OperationMethod<ReclaimMachineMemoryRequest, MainReclaimMemoryResponse, ReclaimMachineMemoryError, FlyIoOpContext>;
|
|
2156
|
-
export type ReleaseMachineLeaseError = Forbidden | NotFound | FlyIoOpError;
|
|
2157
|
-
/** 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. */
|
|
2158
|
-
export declare const releaseMachineLease: API.OperationMethod<ReleaseMachineLeaseRequest, ReleaseMachineLeaseResponse, ReleaseMachineLeaseError, FlyIoOpContext>;
|
|
2159
2700
|
export type RequestKmsTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2160
2701
|
/** Request a Petsem token for accessing KMS This site hosts documentation generated from the Fly.io Machines API OpenAPI specification. Visit our complete [Machines API docs](https://fly.io/docs/machines/api/apps-resource/) for details about using the Apps resource. */
|
|
2161
2702
|
export declare const requestKmsToken: API.OperationMethod<RequestKmsTokenRequest, RequestKmsTokenResponse, RequestKmsTokenError, FlyIoOpContext>;
|
|
@@ -2165,6 +2706,12 @@ export declare const requestOidcToken: API.OperationMethod<RequestOidcTokenReque
|
|
|
2165
2706
|
export type RestartMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2166
2707
|
/** Restart Machine Restart a specific Machine within an app, with an optional timeout parameter. */
|
|
2167
2708
|
export declare const restartMachine: API.OperationMethod<RestartMachineRequest, RestartMachineResponse, RestartMachineError, FlyIoOpContext>;
|
|
2709
|
+
export type RestorePostgresError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
|
|
2710
|
+
/** Restore Backup or Point in Time to New Cluster Restore a backup, or a point in time within the cluster's PITR recovery window, into a new Managed Postgres cluster. The source cluster is left unchanged, and a new cluster is provisioned asynchronously. */
|
|
2711
|
+
export declare const restorePostgres: API.OperationMethod<RestorePostgresRequest, ShowPostgresClusterResponse, RestorePostgresError, FlyIoOpContext>;
|
|
2712
|
+
export type RotatePostgresUserPasswordError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
|
|
2713
|
+
/** Rotate User Password Rotate a specific Postgres user's password within a cluster, optionally terminating the user's existing sessions. */
|
|
2714
|
+
export declare const rotatePostgresUserPassword: API.OperationMethod<RotatePostgresUserPasswordRequest, RotatePostgresPasswordResponse, RotatePostgresUserPasswordError, FlyIoOpContext>;
|
|
2168
2715
|
export type SetMachineMemoryLimitError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2169
2716
|
/** Set Machine Memory Limit Set the memory limit for a machine using the balloon device */
|
|
2170
2717
|
export declare const setMachineMemoryLimit: API.OperationMethod<SetMachineMemoryLimitRequest, MainMemoryResponse, SetMachineMemoryLimitError, FlyIoOpContext>;
|
|
@@ -2195,6 +2742,9 @@ export declare const updateMachine: API.OperationMethod<UpdateMachineRequest, Ma
|
|
|
2195
2742
|
export type UpdateMachineMetadataError = BadRequest | Forbidden | NotFound | FlyIoOpError;
|
|
2196
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. */
|
|
2197
2744
|
export declare const updateMachineMetadata: API.OperationMethod<UpdateMachineMetadataRequest, UpdateMachineMetadataResponse, UpdateMachineMetadataError, FlyIoOpContext>;
|
|
2745
|
+
export type UpdatePostgresUserRoleError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
|
|
2746
|
+
/** Update User Role Update a specific Postgres user's role within a cluster. */
|
|
2747
|
+
export declare const updatePostgresUserRole: API.OperationMethod<UpdatePostgresUserRoleRequest, UpdatePostgresUserRoleResponse, UpdatePostgresUserRoleError, FlyIoOpContext>;
|
|
2198
2748
|
export type UpdateSecretsError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
|
|
2199
2749
|
/** Update app secrets belonging to an app */
|
|
2200
2750
|
export declare const updateSecrets: API.OperationMethod<UpdateSecretsRequest, AppSecretsUpdateResp, UpdateSecretsError, FlyIoOpContext>;
|