@distilled.cloud/fly-io 1.0.0-rc.1 → 1.0.0-rc.11
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 +24 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +46 -8
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +32 -0
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +35 -2
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +27 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +27 -2
- package/lib/index.js.map +1 -1
- package/lib/pagination.d.ts +5 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +5 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +49 -7
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +529 -29
- package/lib/protocol.js.map +1 -1
- package/lib/services/addons.d.ts +466 -0
- package/lib/services/addons.d.ts.map +1 -0
- package/lib/services/addons.js +613 -0
- package/lib/services/addons.js.map +1 -0
- package/lib/services/index.d.ts +3 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -1
- package/lib/services/machines.d.ts +1689 -1162
- package/lib/services/machines.d.ts.map +1 -1
- package/lib/services/machines.js +1932 -1306
- package/lib/services/machines.js.map +1 -1
- package/lib/services/mpg.d.ts +376 -0
- package/lib/services/mpg.d.ts.map +1 -0
- package/lib/services/mpg.js +570 -0
- package/lib/services/mpg.js.map +1 -0
- package/lib/services/sprites.d.ts +321 -0
- package/lib/services/sprites.d.ts.map +1 -0
- package/lib/services/sprites.js +407 -0
- package/lib/services/sprites.js.map +1 -0
- package/lib/traits.d.ts +18 -8
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +13 -3
- package/lib/traits.js.map +1 -1
- package/package.json +39 -13
- package/src/credentials.ts +60 -8
- package/src/errors.ts +41 -2
- package/src/index.ts +32 -1
- package/src/pagination.ts +12 -0
- package/src/protocol.ts +747 -34
- package/src/services/addons.ts +1313 -0
- package/src/services/index.ts +3 -0
- package/src/services/machines.ts +4756 -3280
- package/src/services/mpg.ts +1188 -0
- package/src/services/sprites.ts +917 -0
- package/src/traits.ts +37 -3
package/lib/services/machines.js
CHANGED
|
@@ -3,19 +3,98 @@ import * as S from "@distilled.cloud/core/schema";
|
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
4
|
import * as T from "../traits.js";
|
|
5
5
|
import { FlyIoProtocol, } from "../protocol.js";
|
|
6
|
-
import { BadRequest, Forbidden, NotFound, UnprocessableEntity, } from "../errors.js";
|
|
6
|
+
import { BadRequest, Conflict, Forbidden, GatewayTimeout, NotFound, UnprocessableEntity, } from "../errors.js";
|
|
7
7
|
import * as Retry from "../retry.js";
|
|
8
|
-
export const
|
|
8
|
+
export const AuthenticateTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
|
+
header: S.optional(S.String),
|
|
10
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/tokens/authenticate", code: 200 }))).annotate({
|
|
11
|
+
identifier: "AuthenticateTokenRequest",
|
|
12
|
+
});
|
|
13
|
+
export const MacaroonCaveatSetCaveatsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
14
|
+
export const MacaroonCaveatSet = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
15
|
+
caveats: S.optional(MacaroonCaveatSetCaveatsList),
|
|
16
|
+
})).annotate({
|
|
17
|
+
identifier: "MacaroonCaveatSet",
|
|
18
|
+
});
|
|
19
|
+
export const MacaroonNonceKidList = /*@__PURE__*/ S.Array(S.Number);
|
|
20
|
+
export const MacaroonNonceRndList = /*@__PURE__*/ S.Array(S.Number);
|
|
21
|
+
export const MacaroonNonce = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
22
|
+
kid: S.optional(MacaroonNonceKidList),
|
|
23
|
+
proof: S.optional(S.Boolean),
|
|
24
|
+
rnd: S.optional(MacaroonNonceRndList),
|
|
25
|
+
})).annotate({ identifier: "MacaroonNonce" });
|
|
26
|
+
export const RootVerifiedTokenPermissionTokenList = /*@__PURE__*/ S.Array(S.Number);
|
|
27
|
+
export const RootVerifiedToken = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
28
|
+
caveats: S.optional(MacaroonCaveatSet),
|
|
29
|
+
header: S.optional(S.String),
|
|
30
|
+
nonce: S.optional(MacaroonNonce),
|
|
31
|
+
permission_token: S.optional(RootVerifiedTokenPermissionTokenList),
|
|
32
|
+
})).annotate({
|
|
33
|
+
identifier: "RootVerifiedToken",
|
|
34
|
+
});
|
|
35
|
+
export const AuthenticateTokenResponseBodyList = /*@__PURE__*/ S.Array(RootVerifiedToken);
|
|
36
|
+
export const AuthenticateTokenResponse = /*@__PURE__*/ S.suspend(() => AuthenticateTokenResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
37
|
+
identifier: "AuthenticateTokenResponse",
|
|
38
|
+
});
|
|
39
|
+
export const RessetAction = S.Number;
|
|
40
|
+
export const MainTokenAccessCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
41
|
+
export const MainTokenAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
42
|
+
action: S.optional(RessetAction),
|
|
43
|
+
app_feature: S.optional(S.String),
|
|
44
|
+
app_name: S.optional(S.String),
|
|
45
|
+
command: S.optional(MainTokenAccessCommandList),
|
|
46
|
+
machine_feature: S.optional(S.String),
|
|
47
|
+
machine_id: S.optional(S.String),
|
|
48
|
+
mutation: S.optional(S.String),
|
|
49
|
+
org_feature: S.optional(S.String),
|
|
50
|
+
org_slug: S.optional(S.String),
|
|
51
|
+
source_machine: S.optional(S.String),
|
|
52
|
+
storage_object: S.optional(S.String),
|
|
53
|
+
volume_id: S.optional(S.String),
|
|
54
|
+
})).annotate({
|
|
55
|
+
identifier: "MainTokenAccess",
|
|
56
|
+
});
|
|
57
|
+
export const AuthorizeTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
58
|
+
access: S.optional(MainTokenAccess),
|
|
59
|
+
header: S.optional(S.String),
|
|
60
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/tokens/authorize", code: 200 }))).annotate({
|
|
61
|
+
identifier: "AuthorizeTokenRequest",
|
|
62
|
+
});
|
|
63
|
+
export const FlyioAccessCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
64
|
+
export const FlyioAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
65
|
+
action: S.optional(RessetAction),
|
|
66
|
+
app_feature: S.optional(S.String),
|
|
67
|
+
appid: S.optional(S.Number),
|
|
68
|
+
cluster: S.optional(S.String),
|
|
69
|
+
command: S.optional(FlyioAccessCommandList),
|
|
70
|
+
feature: S.optional(S.String),
|
|
71
|
+
machine: S.optional(S.String),
|
|
72
|
+
machine_feature: S.optional(S.String),
|
|
73
|
+
mutation: S.optional(S.String),
|
|
74
|
+
orgid: S.optional(S.Number),
|
|
75
|
+
sourceApp: S.optional(S.String),
|
|
76
|
+
sourceMachine: S.optional(S.String),
|
|
77
|
+
sourceOrganization: S.optional(S.String),
|
|
78
|
+
storage_object: S.optional(S.String),
|
|
79
|
+
volume: S.optional(S.String),
|
|
80
|
+
})).annotate({ identifier: "FlyioAccess" });
|
|
81
|
+
export const AuthorizeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
82
|
+
access: S.optional(FlyioAccess),
|
|
83
|
+
verified_token: S.optional(RootVerifiedToken),
|
|
84
|
+
})).annotate({
|
|
85
|
+
identifier: "AuthorizeResponse",
|
|
86
|
+
});
|
|
87
|
+
export const CheckAppCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
88
|
app_name: S.String.pipe(T.Label()),
|
|
10
|
-
hostname: S.
|
|
89
|
+
hostname: S.String.pipe(T.Label()),
|
|
11
90
|
}).pipe(T.Http({
|
|
12
91
|
method: "POST",
|
|
13
|
-
uri: "/apps/{app_name}/certificates/
|
|
92
|
+
uri: "/v1/apps/{app_name}/certificates/{hostname}/check",
|
|
14
93
|
code: 200,
|
|
15
94
|
}))).annotate({
|
|
16
|
-
identifier: "
|
|
95
|
+
identifier: "CheckAppCertificateRequest",
|
|
17
96
|
});
|
|
18
|
-
export const IssuedCertificateType =
|
|
97
|
+
export const IssuedCertificateType = S.String;
|
|
19
98
|
export const IssuedCertificate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
20
99
|
certificate_authority: S.optional(S.String),
|
|
21
100
|
expires_at: S.optional(S.String),
|
|
@@ -24,8 +103,8 @@ export const IssuedCertificate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
24
103
|
identifier: "IssuedCertificate",
|
|
25
104
|
});
|
|
26
105
|
export const CertificateEntryIssuedList = /*@__PURE__*/ S.Array(IssuedCertificate);
|
|
27
|
-
export const CertificateEntrySource =
|
|
28
|
-
export const CertificateEntryStatus =
|
|
106
|
+
export const CertificateEntrySource = S.String;
|
|
107
|
+
export const CertificateEntryStatus = S.String;
|
|
29
108
|
export const CertificateEntry = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
30
109
|
created_at: S.optional(S.String),
|
|
31
110
|
expires_at: S.optional(S.String),
|
|
@@ -36,7 +115,20 @@ export const CertificateEntry = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
36
115
|
})).annotate({
|
|
37
116
|
identifier: "CertificateEntry",
|
|
38
117
|
});
|
|
39
|
-
export const
|
|
118
|
+
export const CertificateCheckResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateEntry);
|
|
119
|
+
export const DNSRecordsAList = /*@__PURE__*/ S.Array(S.String);
|
|
120
|
+
export const DNSRecordsAaaaList = /*@__PURE__*/ S.Array(S.String);
|
|
121
|
+
export const DNSRecordsCnameList = /*@__PURE__*/ S.Array(S.String);
|
|
122
|
+
export const DNSRecordsResolvedAddressesList = /*@__PURE__*/ S.Array(S.String);
|
|
123
|
+
export const DNSRecords = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
124
|
+
a: S.optional(DNSRecordsAList),
|
|
125
|
+
aaaa: S.optional(DNSRecordsAaaaList),
|
|
126
|
+
acme_challenge_cname: S.optional(S.String),
|
|
127
|
+
cname: S.optional(DNSRecordsCnameList),
|
|
128
|
+
ownership_txt: S.optional(S.String),
|
|
129
|
+
resolved_addresses: S.optional(DNSRecordsResolvedAddressesList),
|
|
130
|
+
soa: S.optional(S.String),
|
|
131
|
+
})).annotate({ identifier: "DNSRecords" });
|
|
40
132
|
export const DNSRequirementsAList = /*@__PURE__*/ S.Array(S.String);
|
|
41
133
|
export const DNSRequirementsAaaaList = /*@__PURE__*/ S.Array(S.String);
|
|
42
134
|
export const AcmeChallenge = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -75,55 +167,6 @@ export const CertificateValidationError = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
75
167
|
})).annotate({
|
|
76
168
|
identifier: "CertificateValidationError",
|
|
77
169
|
});
|
|
78
|
-
export const CertificateDetailValidationErrorsList = /*@__PURE__*/ S.Array(CertificateValidationError);
|
|
79
|
-
export const CertificateDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
80
|
-
acme_requested: S.optional(S.Boolean),
|
|
81
|
-
certificates: S.optional(CertificateDetailCertificatesList),
|
|
82
|
-
configured: S.optional(S.Boolean),
|
|
83
|
-
dns_provider: S.optional(S.String),
|
|
84
|
-
dns_requirements: S.optional(DNSRequirements),
|
|
85
|
-
hostname: S.optional(S.String),
|
|
86
|
-
rate_limited_until: S.optional(S.String),
|
|
87
|
-
status: S.optional(S.String),
|
|
88
|
-
validation: S.optional(CertificateValidation),
|
|
89
|
-
validation_errors: S.optional(CertificateDetailValidationErrorsList),
|
|
90
|
-
})).annotate({
|
|
91
|
-
identifier: "CertificateDetail",
|
|
92
|
-
});
|
|
93
|
-
export const AppCertificatesAcmeDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
94
|
-
app_name: S.String.pipe(T.Label()),
|
|
95
|
-
hostname: S.String.pipe(T.Label()),
|
|
96
|
-
}).pipe(T.Http({
|
|
97
|
-
method: "DELETE",
|
|
98
|
-
uri: "/apps/{app_name}/certificates/{hostname}/acme",
|
|
99
|
-
code: 200,
|
|
100
|
-
}))).annotate({
|
|
101
|
-
identifier: "AppCertificatesAcmeDeleteRequest",
|
|
102
|
-
});
|
|
103
|
-
export const AppCertificatesCheckRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
104
|
-
app_name: S.String.pipe(T.Label()),
|
|
105
|
-
hostname: S.String.pipe(T.Label()),
|
|
106
|
-
}).pipe(T.Http({
|
|
107
|
-
method: "POST",
|
|
108
|
-
uri: "/apps/{app_name}/certificates/{hostname}/check",
|
|
109
|
-
code: 200,
|
|
110
|
-
}))).annotate({
|
|
111
|
-
identifier: "AppCertificatesCheckRequest",
|
|
112
|
-
});
|
|
113
|
-
export const CertificateCheckResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateEntry);
|
|
114
|
-
export const DNSRecordsAList = /*@__PURE__*/ S.Array(S.String);
|
|
115
|
-
export const DNSRecordsAaaaList = /*@__PURE__*/ S.Array(S.String);
|
|
116
|
-
export const DNSRecordsCnameList = /*@__PURE__*/ S.Array(S.String);
|
|
117
|
-
export const DNSRecordsResolvedAddressesList = /*@__PURE__*/ S.Array(S.String);
|
|
118
|
-
export const DNSRecords = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
119
|
-
a: S.optional(DNSRecordsAList),
|
|
120
|
-
aaaa: S.optional(DNSRecordsAaaaList),
|
|
121
|
-
acme_challenge_cname: S.optional(S.String),
|
|
122
|
-
cname: S.optional(DNSRecordsCnameList),
|
|
123
|
-
ownership_txt: S.optional(S.String),
|
|
124
|
-
resolved_addresses: S.optional(DNSRecordsResolvedAddressesList),
|
|
125
|
-
soa: S.optional(S.String),
|
|
126
|
-
})).annotate({ identifier: "DNSRecords" });
|
|
127
170
|
export const CertificateCheckResponseValidationErrorsList =
|
|
128
171
|
/*@__PURE__*/ S.Array(CertificateValidationError);
|
|
129
172
|
export const CertificateCheckResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -141,35 +184,45 @@ export const CertificateCheckResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
141
184
|
})).annotate({
|
|
142
185
|
identifier: "CertificateCheckResponse",
|
|
143
186
|
});
|
|
144
|
-
export const
|
|
187
|
+
export const CordonMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
145
188
|
app_name: S.String.pipe(T.Label()),
|
|
146
|
-
|
|
147
|
-
hostname: S.optional(S.String),
|
|
148
|
-
private_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
189
|
+
machine_id: S.String.pipe(T.Label()),
|
|
149
190
|
}).pipe(T.Http({
|
|
150
191
|
method: "POST",
|
|
151
|
-
uri: "/apps/{app_name}/
|
|
192
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/cordon",
|
|
152
193
|
code: 200,
|
|
153
194
|
}))).annotate({
|
|
154
|
-
identifier: "
|
|
195
|
+
identifier: "CordonMachineRequest",
|
|
196
|
+
});
|
|
197
|
+
export const CordonMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
198
|
+
identifier: "CordonMachineResponse",
|
|
199
|
+
});
|
|
200
|
+
export const CreateAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
201
|
+
enable_subdomains: S.optional(S.Boolean),
|
|
202
|
+
name: S.optional(S.String),
|
|
203
|
+
network: S.optional(S.String),
|
|
204
|
+
org_slug: S.optional(S.String),
|
|
205
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/apps", code: 200 }))).annotate({
|
|
206
|
+
identifier: "CreateAppRequest",
|
|
207
|
+
});
|
|
208
|
+
export const CreateAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
209
|
+
identifier: "CreateAppResponse",
|
|
155
210
|
});
|
|
156
|
-
export const
|
|
211
|
+
export const CreateAppAcmeCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
157
212
|
app_name: S.String.pipe(T.Label()),
|
|
158
|
-
hostname: S.
|
|
213
|
+
hostname: S.optional(S.String),
|
|
159
214
|
}).pipe(T.Http({
|
|
160
|
-
method: "
|
|
161
|
-
uri: "/apps/{app_name}/certificates/
|
|
215
|
+
method: "POST",
|
|
216
|
+
uri: "/v1/apps/{app_name}/certificates/acme",
|
|
162
217
|
code: 200,
|
|
163
218
|
}))).annotate({
|
|
164
|
-
identifier: "
|
|
219
|
+
identifier: "CreateAppAcmeCertificateRequest",
|
|
165
220
|
});
|
|
166
|
-
export const
|
|
167
|
-
/*@__PURE__*/ S.Array(
|
|
168
|
-
export const
|
|
169
|
-
/*@__PURE__*/ S.Array(CertificateValidationError);
|
|
170
|
-
export const DestroyCustomCertificateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
221
|
+
export const CertificateDetailCertificatesList = /*@__PURE__*/ S.Array(CertificateEntry);
|
|
222
|
+
export const CertificateDetailValidationErrorsList = /*@__PURE__*/ S.Array(CertificateValidationError);
|
|
223
|
+
export const CertificateDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
171
224
|
acme_requested: S.optional(S.Boolean),
|
|
172
|
-
certificates: S.optional(
|
|
225
|
+
certificates: S.optional(CertificateDetailCertificatesList),
|
|
173
226
|
configured: S.optional(S.Boolean),
|
|
174
227
|
dns_provider: S.optional(S.String),
|
|
175
228
|
dns_requirements: S.optional(DNSRequirements),
|
|
@@ -177,240 +230,81 @@ export const DestroyCustomCertificateResponse = /*@__PURE__*/ S.suspend(() => S.
|
|
|
177
230
|
rate_limited_until: S.optional(S.String),
|
|
178
231
|
status: S.optional(S.String),
|
|
179
232
|
validation: S.optional(CertificateValidation),
|
|
180
|
-
validation_errors: S.optional(
|
|
181
|
-
warning: S.optional(S.String),
|
|
233
|
+
validation_errors: S.optional(CertificateDetailValidationErrorsList),
|
|
182
234
|
})).annotate({
|
|
183
|
-
identifier: "
|
|
235
|
+
identifier: "CertificateDetail",
|
|
184
236
|
});
|
|
185
|
-
export const
|
|
237
|
+
export const CreateAppCustomCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
186
238
|
app_name: S.String.pipe(T.Label()),
|
|
187
|
-
|
|
239
|
+
fullchain: S.optional(S.String),
|
|
240
|
+
hostname: S.optional(S.String),
|
|
241
|
+
private_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
188
242
|
}).pipe(T.Http({
|
|
189
|
-
method: "
|
|
190
|
-
uri: "/apps/{app_name}/certificates/
|
|
243
|
+
method: "POST",
|
|
244
|
+
uri: "/v1/apps/{app_name}/certificates/custom",
|
|
191
245
|
code: 200,
|
|
192
246
|
}))).annotate({
|
|
193
|
-
identifier: "
|
|
194
|
-
});
|
|
195
|
-
export const AppCertificatesDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
196
|
-
identifier: "AppCertificatesDeleteResponse",
|
|
197
|
-
});
|
|
198
|
-
export const AppCertificatesListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
199
|
-
app_name: S.String.pipe(T.Label()),
|
|
200
|
-
filter: S.optional(S.String.pipe(T.Query())),
|
|
201
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
202
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
203
|
-
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/certificates", code: 200 }))).annotate({
|
|
204
|
-
identifier: "AppCertificatesListRequest",
|
|
205
|
-
});
|
|
206
|
-
export const CertificateSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
207
|
-
acme_alpn_configured: S.optional(S.Boolean),
|
|
208
|
-
acme_dns_configured: S.optional(S.Boolean),
|
|
209
|
-
acme_http_configured: S.optional(S.Boolean),
|
|
210
|
-
acme_requested: S.optional(S.Boolean),
|
|
211
|
-
configured: S.optional(S.Boolean),
|
|
212
|
-
created_at: S.optional(S.String),
|
|
213
|
-
dns_provider: S.optional(S.String),
|
|
214
|
-
has_custom_certificate: S.optional(S.Boolean),
|
|
215
|
-
has_fly_certificate: S.optional(S.Boolean),
|
|
216
|
-
hostname: S.optional(S.String),
|
|
217
|
-
ownership_txt_configured: S.optional(S.Boolean),
|
|
218
|
-
status: S.optional(S.String),
|
|
219
|
-
updated_at: S.optional(S.String),
|
|
220
|
-
})).annotate({
|
|
221
|
-
identifier: "CertificateSummary",
|
|
222
|
-
});
|
|
223
|
-
export const ListCertificatesResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateSummary);
|
|
224
|
-
export const ListCertificatesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
225
|
-
certificates: S.optional(ListCertificatesResponseCertificatesList),
|
|
226
|
-
next_cursor: S.optional(S.String),
|
|
227
|
-
total_count: S.optional(S.Number),
|
|
228
|
-
})).annotate({
|
|
229
|
-
identifier: "ListCertificatesResponse",
|
|
247
|
+
identifier: "CreateAppCustomCertificateRequest",
|
|
230
248
|
});
|
|
231
|
-
export const
|
|
249
|
+
export const CreateAppDeployTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
232
250
|
app_name: S.String.pipe(T.Label()),
|
|
233
|
-
|
|
251
|
+
expiry: S.optional(S.String),
|
|
234
252
|
}).pipe(T.Http({
|
|
235
|
-
method: "
|
|
236
|
-
uri: "/apps/{app_name}/
|
|
253
|
+
method: "POST",
|
|
254
|
+
uri: "/v1/apps/{app_name}/deploy_token",
|
|
237
255
|
code: 200,
|
|
238
256
|
}))).annotate({
|
|
239
|
-
identifier: "
|
|
240
|
-
});
|
|
241
|
-
export const AppCreateDeployTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
242
|
-
app_name: S.String.pipe(T.Label()),
|
|
243
|
-
expiry: S.optional(S.String),
|
|
244
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps/{app_name}/deploy_token", code: 200 }))).annotate({
|
|
245
|
-
identifier: "AppCreateDeployTokenRequest",
|
|
257
|
+
identifier: "CreateAppDeployTokenRequest",
|
|
246
258
|
});
|
|
247
|
-
export const
|
|
259
|
+
export const CreateAppDeployTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
248
260
|
token: S.optional(S.String),
|
|
249
261
|
})).annotate({
|
|
250
|
-
identifier: "
|
|
262
|
+
identifier: "CreateAppDeployTokenResponse",
|
|
251
263
|
});
|
|
252
|
-
export const
|
|
264
|
+
export const IPAssignmentType = S.String;
|
|
265
|
+
export const CreateAppIPAssignmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
253
266
|
app_name: S.String.pipe(T.Label()),
|
|
254
267
|
network: S.optional(S.String),
|
|
255
268
|
org_slug: S.optional(S.String),
|
|
256
269
|
region: S.optional(S.String),
|
|
257
270
|
service_name: S.optional(S.String),
|
|
258
|
-
type: S.optional(
|
|
271
|
+
type: S.optional(IPAssignmentType),
|
|
259
272
|
}).pipe(T.Http({
|
|
260
273
|
method: "POST",
|
|
261
|
-
uri: "/apps/{app_name}/ip_assignments",
|
|
274
|
+
uri: "/v1/apps/{app_name}/ip_assignments",
|
|
262
275
|
code: 200,
|
|
263
276
|
}))).annotate({
|
|
264
|
-
identifier: "
|
|
277
|
+
identifier: "CreateAppIPAssignmentRequest",
|
|
265
278
|
});
|
|
266
|
-
export const
|
|
279
|
+
export const IPPair = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
280
|
+
v4: S.optional(S.String),
|
|
281
|
+
v6: S.optional(S.String),
|
|
282
|
+
})).annotate({ identifier: "IPPair" });
|
|
283
|
+
export const AssignIPResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
267
284
|
created_at: S.optional(S.String),
|
|
285
|
+
egress: S.optional(S.Boolean),
|
|
268
286
|
ip: S.optional(S.String),
|
|
287
|
+
ip_pair: S.optional(IPPair),
|
|
269
288
|
region: S.optional(S.String),
|
|
270
289
|
service_name: S.optional(S.String),
|
|
271
290
|
shared: S.optional(S.Boolean),
|
|
272
|
-
})).annotate({ identifier: "IPAssignment" });
|
|
273
|
-
export const AppIPAssignmentsDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
274
|
-
app_name: S.String.pipe(T.Label()),
|
|
275
|
-
ip: S.String.pipe(T.Label()),
|
|
276
|
-
}).pipe(T.Http({
|
|
277
|
-
method: "DELETE",
|
|
278
|
-
uri: "/apps/{app_name}/ip_assignments/{ip}",
|
|
279
|
-
code: 200,
|
|
280
|
-
}))).annotate({
|
|
281
|
-
identifier: "AppIPAssignmentsDeleteRequest",
|
|
282
|
-
});
|
|
283
|
-
export const AppIPAssignmentsDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
284
|
-
identifier: "AppIPAssignmentsDeleteResponse",
|
|
285
|
-
});
|
|
286
|
-
export const AppIPAssignmentsListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
287
|
-
app_name: S.String.pipe(T.Label()),
|
|
288
|
-
}).pipe(T.Http({
|
|
289
|
-
method: "GET",
|
|
290
|
-
uri: "/apps/{app_name}/ip_assignments",
|
|
291
|
-
code: 200,
|
|
292
|
-
}))).annotate({
|
|
293
|
-
identifier: "AppIPAssignmentsListRequest",
|
|
294
|
-
});
|
|
295
|
-
export const ListIPAssignmentsResponseIpsList = /*@__PURE__*/ S.Array(IPAssignment);
|
|
296
|
-
export const ListIPAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
297
|
-
ips: S.optional(ListIPAssignmentsResponseIpsList),
|
|
298
291
|
})).annotate({
|
|
299
|
-
identifier: "
|
|
300
|
-
});
|
|
301
|
-
export const AppsCreateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
302
|
-
enable_subdomains: S.optional(S.Boolean),
|
|
303
|
-
name: S.optional(S.String),
|
|
304
|
-
network: S.optional(S.String),
|
|
305
|
-
org_slug: S.optional(S.String),
|
|
306
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps", code: 200 }))).annotate({
|
|
307
|
-
identifier: "AppsCreateRequest",
|
|
308
|
-
});
|
|
309
|
-
export const AppsCreateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
310
|
-
identifier: "AppsCreateResponse",
|
|
292
|
+
identifier: "AssignIPResponse",
|
|
311
293
|
});
|
|
312
|
-
export const
|
|
313
|
-
|
|
314
|
-
})
|
|
315
|
-
identifier: "
|
|
316
|
-
});
|
|
317
|
-
export const AppsDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
318
|
-
identifier: "AppsDeleteResponse",
|
|
319
|
-
});
|
|
320
|
-
export const AppsListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
321
|
-
org_slug: S.String.pipe(T.Query()),
|
|
322
|
-
app_role: S.optional(S.String.pipe(T.Query())),
|
|
323
|
-
}).pipe(T.Http({ method: "GET", uri: "/apps", code: 200 }))).annotate({
|
|
324
|
-
identifier: "AppsListRequest",
|
|
294
|
+
export const FlyMachineCacheDrive = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
295
|
+
size_mb: S.optional(S.Number),
|
|
296
|
+
})).annotate({
|
|
297
|
+
identifier: "FlyMachineCacheDrive",
|
|
325
298
|
});
|
|
326
|
-
export const
|
|
327
|
-
|
|
299
|
+
export const FlyMachineHTTPHeaderValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
300
|
+
export const FlyMachineHTTPHeader = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
328
301
|
name: S.optional(S.String),
|
|
329
|
-
|
|
302
|
+
values: S.optional(FlyMachineHTTPHeaderValuesList),
|
|
330
303
|
})).annotate({
|
|
331
|
-
identifier: "
|
|
332
|
-
});
|
|
333
|
-
export const App = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
334
|
-
id: S.optional(S.String),
|
|
335
|
-
internal_numeric_id: S.optional(S.Number),
|
|
336
|
-
machine_count: S.optional(S.Number),
|
|
337
|
-
name: S.optional(S.String),
|
|
338
|
-
network: S.optional(S.String),
|
|
339
|
-
organization: S.optional(AppOrganizationInfo),
|
|
340
|
-
status: S.optional(S.String),
|
|
341
|
-
volume_count: S.optional(S.Number),
|
|
342
|
-
})).annotate({ identifier: "App" });
|
|
343
|
-
export const ListAppsResponseAppsList = /*@__PURE__*/ S.Array(App);
|
|
344
|
-
export const ListAppsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
345
|
-
apps: S.optional(ListAppsResponseAppsList),
|
|
346
|
-
total_apps: S.optional(S.Number),
|
|
347
|
-
})).annotate({
|
|
348
|
-
identifier: "ListAppsResponse",
|
|
349
|
-
});
|
|
350
|
-
export const AppsShowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
351
|
-
app_name: S.String.pipe(T.Label()),
|
|
352
|
-
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}", code: 200 }))).annotate({
|
|
353
|
-
identifier: "AppsShowRequest",
|
|
354
|
-
});
|
|
355
|
-
export const CreateVolumeSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
356
|
-
app_name: S.String.pipe(T.Label()),
|
|
357
|
-
volume_id: S.String.pipe(T.Label()),
|
|
358
|
-
}).pipe(T.Http({
|
|
359
|
-
method: "POST",
|
|
360
|
-
uri: "/apps/{app_name}/volumes/{volume_id}/snapshots",
|
|
361
|
-
code: 200,
|
|
362
|
-
}))).annotate({
|
|
363
|
-
identifier: "CreateVolumeSnapshotRequest",
|
|
364
|
-
});
|
|
365
|
-
export const CreateVolumeSnapshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
366
|
-
identifier: "CreateVolumeSnapshotResponse",
|
|
367
|
-
});
|
|
368
|
-
export const CurrentTokenShowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/tokens/current", code: 200 }))).annotate({
|
|
369
|
-
identifier: "CurrentTokenShowRequest",
|
|
370
|
-
});
|
|
371
|
-
export const MainTokenInfoAppsList = /*@__PURE__*/ S.Array(S.String);
|
|
372
|
-
export const MainTokenInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
373
|
-
apps: S.optional(MainTokenInfoAppsList),
|
|
374
|
-
org_slug: S.optional(S.String),
|
|
375
|
-
organization: S.optional(S.String),
|
|
376
|
-
restricted_to_machine: S.optional(S.String),
|
|
377
|
-
source_machine_id: S.optional(S.String),
|
|
378
|
-
token_id: S.optional(S.String),
|
|
379
|
-
user: S.optional(S.String),
|
|
380
|
-
})).annotate({ identifier: "MainTokenInfo" });
|
|
381
|
-
export const CurrentTokenResponseTokensList = /*@__PURE__*/ S.Array(MainTokenInfo);
|
|
382
|
-
export const CurrentTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
383
|
-
tokens: S.optional(CurrentTokenResponseTokensList),
|
|
384
|
-
})).annotate({
|
|
385
|
-
identifier: "CurrentTokenResponse",
|
|
386
|
-
});
|
|
387
|
-
export const MachinesCordonRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
388
|
-
app_name: S.String.pipe(T.Label()),
|
|
389
|
-
machine_id: S.String.pipe(T.Label()),
|
|
390
|
-
}).pipe(T.Http({
|
|
391
|
-
method: "POST",
|
|
392
|
-
uri: "/apps/{app_name}/machines/{machine_id}/cordon",
|
|
393
|
-
code: 200,
|
|
394
|
-
}))).annotate({
|
|
395
|
-
identifier: "MachinesCordonRequest",
|
|
396
|
-
});
|
|
397
|
-
export const MachinesCordonResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
398
|
-
identifier: "MachinesCordonResponse",
|
|
399
|
-
});
|
|
400
|
-
export const FlyMachineCacheDrive = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
401
|
-
size_mb: S.optional(S.Number),
|
|
402
|
-
})).annotate({
|
|
403
|
-
identifier: "FlyMachineCacheDrive",
|
|
404
|
-
});
|
|
405
|
-
export const FlyMachineHTTPHeaderValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
406
|
-
export const FlyMachineHTTPHeader = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
407
|
-
name: S.optional(S.String),
|
|
408
|
-
values: S.optional(FlyMachineHTTPHeaderValuesList),
|
|
409
|
-
})).annotate({
|
|
410
|
-
identifier: "FlyMachineHTTPHeader",
|
|
304
|
+
identifier: "FlyMachineHTTPHeader",
|
|
411
305
|
});
|
|
412
306
|
export const FlyMachineCheckHeadersList = /*@__PURE__*/ S.Array(FlyMachineHTTPHeader);
|
|
413
|
-
export const FlyMachineCheckKind =
|
|
307
|
+
export const FlyMachineCheckKind = S.String;
|
|
414
308
|
export const FlyMachineCheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
415
309
|
grace_period: S.optional(S.String),
|
|
416
310
|
headers: S.optional(FlyMachineCheckHeadersList),
|
|
@@ -429,7 +323,7 @@ export const FlyMachineCheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
429
323
|
});
|
|
430
324
|
export const FlyMachineConfigChecksMap = /*@__PURE__*/ S.Record(S.String, FlyMachineCheck);
|
|
431
325
|
export const FlyContainerConfigCmdList = /*@__PURE__*/ S.Array(S.String);
|
|
432
|
-
export const FlyContainerDependencyCondition =
|
|
326
|
+
export const FlyContainerDependencyCondition = S.String;
|
|
433
327
|
export const FlyContainerDependency = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
434
328
|
condition: S.optional(FlyContainerDependencyCondition),
|
|
435
329
|
name: S.optional(S.String),
|
|
@@ -439,7 +333,7 @@ export const FlyContainerDependency = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
439
333
|
export const FlyContainerConfigDependsOnList = /*@__PURE__*/ S.Array(FlyContainerDependency);
|
|
440
334
|
export const FlyContainerConfigEntrypointList = /*@__PURE__*/ S.Array(S.String);
|
|
441
335
|
export const FlyContainerConfigEnvMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
442
|
-
export const FlyEnvFromFieldRef =
|
|
336
|
+
export const FlyEnvFromFieldRef = S.String;
|
|
443
337
|
export const FlyEnvFrom = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
444
338
|
env_var: S.optional(S.String),
|
|
445
339
|
field_ref: S.optional(FlyEnvFromFieldRef),
|
|
@@ -461,7 +355,7 @@ export const FlyExecHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
461
355
|
identifier: "FlyExecHealthcheck",
|
|
462
356
|
});
|
|
463
357
|
export const FlyHTTPHealthcheckHeadersList = /*@__PURE__*/ S.Array(FlyMachineHTTPHeader);
|
|
464
|
-
export const FlyContainerHealthcheckScheme =
|
|
358
|
+
export const FlyContainerHealthcheckScheme = S.String;
|
|
465
359
|
export const FlyHTTPHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
466
360
|
headers: S.optional(FlyHTTPHealthcheckHeadersList),
|
|
467
361
|
method: S.optional(S.String),
|
|
@@ -473,13 +367,13 @@ export const FlyHTTPHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
473
367
|
})).annotate({
|
|
474
368
|
identifier: "FlyHTTPHealthcheck",
|
|
475
369
|
});
|
|
476
|
-
export const FlyContainerHealthcheckKind =
|
|
370
|
+
export const FlyContainerHealthcheckKind = S.String;
|
|
477
371
|
export const FlyTCPHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
478
372
|
port: S.optional(S.Number),
|
|
479
373
|
})).annotate({
|
|
480
374
|
identifier: "FlyTCPHealthcheck",
|
|
481
375
|
});
|
|
482
|
-
export const FlyUnhealthyPolicy =
|
|
376
|
+
export const FlyUnhealthyPolicy = S.String;
|
|
483
377
|
export const FlyContainerHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
484
378
|
exec: S.optional(FlyExecHealthcheck),
|
|
485
379
|
failure_threshold: S.optional(S.Number),
|
|
@@ -496,7 +390,7 @@ export const FlyContainerHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
496
390
|
identifier: "FlyContainerHealthcheck",
|
|
497
391
|
});
|
|
498
392
|
export const FlyContainerConfigHealthchecksList = /*@__PURE__*/ S.Array(FlyContainerHealthcheck);
|
|
499
|
-
export const FlyMachineRestartPolicy =
|
|
393
|
+
export const FlyMachineRestartPolicy = S.String;
|
|
500
394
|
export const FlyMachineRestart = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
501
395
|
gpu_bid_price: S.optional(S.Number),
|
|
502
396
|
max_retries: S.optional(S.Number),
|
|
@@ -511,7 +405,7 @@ export const FlyMachineSecret = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
511
405
|
identifier: "FlyMachineSecret",
|
|
512
406
|
});
|
|
513
407
|
export const FlyContainerConfigSecretsList = /*@__PURE__*/ S.Array(FlyMachineSecret);
|
|
514
|
-
export const FlyStopConfigSignal =
|
|
408
|
+
export const FlyStopConfigSignal = S.String;
|
|
515
409
|
export const FlyStopConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
516
410
|
signal: S.optional(FlyStopConfigSignal),
|
|
517
411
|
timeout: S.optional(S.String),
|
|
@@ -561,7 +455,7 @@ export const FlyDNSConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
561
455
|
export const FlyMachineConfigEnvMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
562
456
|
export const FlyMachineConfigFilesList = /*@__PURE__*/ S.Array(FlyFile);
|
|
563
457
|
export const FlyMachineGuestKernelArgsList = /*@__PURE__*/ S.Array(S.String);
|
|
564
|
-
export const FlyMachineGuestPersistRootfs =
|
|
458
|
+
export const FlyMachineGuestPersistRootfs = S.String;
|
|
565
459
|
export const FlyMachineGuest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
566
460
|
cpu_kind: S.optional(S.String),
|
|
567
461
|
cpus: S.optional(S.Number),
|
|
@@ -627,14 +521,14 @@ export const FlyMachineProcess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
627
521
|
identifier: "FlyMachineProcess",
|
|
628
522
|
});
|
|
629
523
|
export const FlyMachineConfigProcessesList = /*@__PURE__*/ S.Array(FlyMachineProcess);
|
|
630
|
-
export const FlyMachineRootfsPersist =
|
|
524
|
+
export const FlyMachineRootfsPersist = S.String;
|
|
631
525
|
export const FlyMachineRootfs = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
632
526
|
persist: S.optional(FlyMachineRootfsPersist),
|
|
633
527
|
size_gb: S.optional(S.Number),
|
|
634
528
|
})).annotate({
|
|
635
529
|
identifier: "FlyMachineRootfs",
|
|
636
530
|
});
|
|
637
|
-
export const FlyMachineServiceAutostop =
|
|
531
|
+
export const FlyMachineServiceAutostop = S.String;
|
|
638
532
|
export const FlyMachineServiceCheckHeadersList = /*@__PURE__*/ S.Array(FlyMachineHTTPHeader);
|
|
639
533
|
export const FlyMachineServiceCheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
640
534
|
grace_period: S.optional(S.String),
|
|
@@ -660,7 +554,7 @@ export const FlyMachineServiceConcurrency = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
660
554
|
identifier: "FlyMachineServiceConcurrency",
|
|
661
555
|
});
|
|
662
556
|
export const FlyMachinePortHandlersList = /*@__PURE__*/ S.Array(S.String);
|
|
663
|
-
export const FlyReplayCacheType =
|
|
557
|
+
export const FlyReplayCacheType = S.String;
|
|
664
558
|
export const FlyReplayCache = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
665
559
|
allow_bypass: S.optional(S.Boolean),
|
|
666
560
|
name: S.optional(S.String),
|
|
@@ -761,7 +655,7 @@ export const FlyMachineConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
761
655
|
})).annotate({
|
|
762
656
|
identifier: "FlyMachineConfig",
|
|
763
657
|
});
|
|
764
|
-
export const
|
|
658
|
+
export const CreateMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
765
659
|
app_name: S.String.pipe(T.Label()),
|
|
766
660
|
config: S.optional(FlyMachineConfig),
|
|
767
661
|
lease_ttl: S.optional(S.Number),
|
|
@@ -771,8 +665,8 @@ export const MachinesCreateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
771
665
|
skip_launch: S.optional(S.Boolean),
|
|
772
666
|
skip_secrets: S.optional(S.Boolean),
|
|
773
667
|
skip_service_registration: S.optional(S.Boolean),
|
|
774
|
-
}).pipe(T.Http({ method: "POST", uri: "/apps/{app_name}/machines", code: 200 }))).annotate({
|
|
775
|
-
identifier: "
|
|
668
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines", code: 200 }))).annotate({
|
|
669
|
+
identifier: "CreateMachineRequest",
|
|
776
670
|
});
|
|
777
671
|
export const CheckStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
778
672
|
name: S.optional(S.String),
|
|
@@ -790,7 +684,7 @@ export const MachineEvent = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
790
684
|
type: S.optional(S.String),
|
|
791
685
|
})).annotate({ identifier: "MachineEvent" });
|
|
792
686
|
export const MachineEventsList = /*@__PURE__*/ S.Array(MachineEvent);
|
|
793
|
-
export const MachineHostStatus =
|
|
687
|
+
export const MachineHostStatus = S.String;
|
|
794
688
|
export const ImageRefLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
795
689
|
export const ImageRef = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
796
690
|
digest: S.optional(S.String),
|
|
@@ -799,9 +693,15 @@ export const ImageRef = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
799
693
|
repository: S.optional(S.String),
|
|
800
694
|
tag: S.optional(S.String),
|
|
801
695
|
})).annotate({ identifier: "ImageRef" });
|
|
696
|
+
export const StrippedLease = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
697
|
+
description: S.optional(S.String),
|
|
698
|
+
expires_at: S.optional(S.Number),
|
|
699
|
+
owner: S.optional(S.String),
|
|
700
|
+
})).annotate({ identifier: "StrippedLease" });
|
|
802
701
|
export const Machine = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
803
702
|
checks: S.optional(MachineChecksList),
|
|
804
703
|
config: S.optional(FlyMachineConfig),
|
|
704
|
+
cordoned: S.optional(S.Boolean),
|
|
805
705
|
created_at: S.optional(S.String),
|
|
806
706
|
events: S.optional(MachineEventsList),
|
|
807
707
|
host_status: S.optional(MachineHostStatus),
|
|
@@ -809,6 +709,7 @@ export const Machine = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
809
709
|
image_ref: S.optional(ImageRef),
|
|
810
710
|
incomplete_config: S.optional(FlyMachineConfig),
|
|
811
711
|
instance_id: S.optional(S.String),
|
|
712
|
+
lease: S.optional(StrippedLease),
|
|
812
713
|
name: S.optional(S.String),
|
|
813
714
|
nonce: S.optional(S.String),
|
|
814
715
|
private_ip: S.optional(S.String),
|
|
@@ -816,17 +717,17 @@ export const Machine = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
816
717
|
state: S.optional(S.String),
|
|
817
718
|
updated_at: S.optional(S.String),
|
|
818
719
|
})).annotate({ identifier: "Machine" });
|
|
819
|
-
export const
|
|
720
|
+
export const CreateMachineLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
820
721
|
app_name: S.String.pipe(T.Label()),
|
|
821
722
|
machine_id: S.String.pipe(T.Label()),
|
|
822
723
|
description: S.optional(S.String),
|
|
823
724
|
ttl: S.optional(S.Number),
|
|
824
725
|
}).pipe(T.Http({
|
|
825
726
|
method: "POST",
|
|
826
|
-
uri: "/apps/{app_name}/machines/{machine_id}/lease",
|
|
727
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/lease",
|
|
827
728
|
code: 200,
|
|
828
729
|
}))).annotate({
|
|
829
|
-
identifier: "
|
|
730
|
+
identifier: "CreateMachineLeaseRequest",
|
|
830
731
|
});
|
|
831
732
|
export const Lease = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
832
733
|
description: S.optional(S.String),
|
|
@@ -835,465 +736,688 @@ export const Lease = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
835
736
|
owner: S.optional(S.String),
|
|
836
737
|
version: S.optional(S.String),
|
|
837
738
|
})).annotate({ identifier: "Lease" });
|
|
838
|
-
export const
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
739
|
+
export const CreatePostgresRequestPgMajorVersion = S.String;
|
|
740
|
+
export const CreatePostgresRequestPlan = S.String;
|
|
741
|
+
export const CreatePostgresRequestPoolMode = S.String;
|
|
742
|
+
export const CreatePostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
743
|
+
disk_size_gb: S.optional(S.Number),
|
|
744
|
+
name: S.optional(S.String),
|
|
745
|
+
org_slug: S.String,
|
|
746
|
+
pg_major_version: S.optional(CreatePostgresRequestPgMajorVersion),
|
|
747
|
+
plan: CreatePostgresRequestPlan,
|
|
748
|
+
pool_mode: S.optional(CreatePostgresRequestPoolMode),
|
|
749
|
+
postgis_enabled: S.optional(S.Boolean),
|
|
750
|
+
region: S.String,
|
|
751
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/postgres", code: 200 }))).annotate({
|
|
752
|
+
identifier: "CreatePostgresRequest",
|
|
753
|
+
});
|
|
754
|
+
export const PostgresAttachedApp = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
755
|
+
name: S.optional(S.String),
|
|
756
|
+
})).annotate({
|
|
757
|
+
identifier: "PostgresAttachedApp",
|
|
758
|
+
});
|
|
759
|
+
export const PostgresClusterAttachedAppsList = /*@__PURE__*/ S.Array(PostgresAttachedApp);
|
|
760
|
+
export const PostgresClusterCpuKind = S.String;
|
|
761
|
+
export const PostgresEndpoint = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
762
|
+
host: S.optional(S.String),
|
|
763
|
+
port: S.optional(S.Number),
|
|
764
|
+
})).annotate({
|
|
765
|
+
identifier: "PostgresEndpoint",
|
|
766
|
+
});
|
|
767
|
+
export const PostgresNodeEndpoints = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
768
|
+
direct: S.optional(PostgresEndpoint),
|
|
769
|
+
pooler: S.optional(PostgresEndpoint),
|
|
770
|
+
})).annotate({
|
|
771
|
+
identifier: "PostgresNodeEndpoints",
|
|
772
|
+
});
|
|
773
|
+
export const PostgresClusterEndpoints = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
774
|
+
primary: S.optional(PostgresNodeEndpoints),
|
|
775
|
+
})).annotate({
|
|
776
|
+
identifier: "PostgresClusterEndpoints",
|
|
777
|
+
});
|
|
778
|
+
export const OrganizationRef = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
779
|
+
name: S.optional(S.String),
|
|
780
|
+
slug: S.optional(S.String),
|
|
781
|
+
})).annotate({
|
|
782
|
+
identifier: "OrganizationRef",
|
|
783
|
+
});
|
|
784
|
+
export const PostgresClusterPgMajorVersion = S.String;
|
|
785
|
+
export const PostgresClusterPlan = S.String;
|
|
786
|
+
export const PostgresClusterStatus = S.String;
|
|
787
|
+
export const PostgresCluster = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
788
|
+
attached_apps: S.optional(PostgresClusterAttachedAppsList),
|
|
789
|
+
cpu_kind: S.optional(PostgresClusterCpuKind),
|
|
790
|
+
cpus: S.optional(S.Number),
|
|
791
|
+
created_at: S.optional(S.String),
|
|
792
|
+
disk_size_gb: S.optional(S.Number),
|
|
793
|
+
endpoints: S.optional(PostgresClusterEndpoints),
|
|
794
|
+
id: S.optional(S.String),
|
|
795
|
+
memory_mb: S.optional(S.Number),
|
|
796
|
+
name: S.optional(S.String),
|
|
797
|
+
organization: S.optional(OrganizationRef),
|
|
798
|
+
pg_major_version: S.optional(PostgresClusterPgMajorVersion),
|
|
799
|
+
plan: S.optional(PostgresClusterPlan),
|
|
800
|
+
postgis_enabled: S.optional(S.Boolean),
|
|
801
|
+
region: S.optional(S.String),
|
|
802
|
+
replicas: S.optional(S.Number),
|
|
803
|
+
status: S.optional(PostgresClusterStatus),
|
|
804
|
+
})).annotate({
|
|
805
|
+
identifier: "PostgresCluster",
|
|
806
|
+
});
|
|
807
|
+
export const ShowPostgresClusterResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
808
|
+
data: S.optional(PostgresCluster),
|
|
809
|
+
})).annotate({
|
|
810
|
+
identifier: "ShowPostgresClusterResponse",
|
|
811
|
+
});
|
|
812
|
+
export const CreatePostgresAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
813
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
814
|
+
app_name: S.String,
|
|
842
815
|
}).pipe(T.Http({
|
|
843
|
-
method: "
|
|
844
|
-
uri: "/
|
|
816
|
+
method: "POST",
|
|
817
|
+
uri: "/v1/postgres/{postgres_cluster_id}/attachments",
|
|
845
818
|
code: 200,
|
|
846
819
|
}))).annotate({
|
|
847
|
-
identifier: "
|
|
820
|
+
identifier: "CreatePostgresAttachmentRequest",
|
|
821
|
+
});
|
|
822
|
+
export const PostgresAttachment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
823
|
+
app_name: S.optional(S.String),
|
|
824
|
+
attached_at: S.optional(S.String),
|
|
825
|
+
postgres_cluster_id: S.optional(S.String),
|
|
826
|
+
})).annotate({
|
|
827
|
+
identifier: "PostgresAttachment",
|
|
848
828
|
});
|
|
849
|
-
export const
|
|
850
|
-
|
|
829
|
+
export const CreatePostgresAttachmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
830
|
+
data: S.optional(PostgresAttachment),
|
|
831
|
+
})).annotate({
|
|
832
|
+
identifier: "CreatePostgresAttachmentResponse",
|
|
851
833
|
});
|
|
852
|
-
export const
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
834
|
+
export const CreatePostgresBackupRequestType = S.String;
|
|
835
|
+
export const CreatePostgresBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
836
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
837
|
+
type: CreatePostgresBackupRequestType,
|
|
856
838
|
}).pipe(T.Http({
|
|
857
|
-
method: "
|
|
858
|
-
uri: "/
|
|
839
|
+
method: "POST",
|
|
840
|
+
uri: "/v1/postgres/{postgres_cluster_id}/backups",
|
|
859
841
|
code: 200,
|
|
860
842
|
}))).annotate({
|
|
861
|
-
identifier: "
|
|
843
|
+
identifier: "CreatePostgresBackupRequest",
|
|
862
844
|
});
|
|
863
|
-
export const
|
|
864
|
-
identifier: "
|
|
845
|
+
export const CreatePostgresBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
846
|
+
identifier: "CreatePostgresBackupResponse",
|
|
865
847
|
});
|
|
866
|
-
export const
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
machine_id: S.String.pipe(T.Label()),
|
|
870
|
-
cmd: S.optional(S.String),
|
|
871
|
-
command: S.optional(MachinesExecRequestCommandList),
|
|
872
|
-
container: S.optional(S.String),
|
|
873
|
-
stdin: S.optional(S.String),
|
|
874
|
-
timeout: S.optional(S.Number),
|
|
848
|
+
export const CreatePostgresDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
849
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
850
|
+
name: S.String,
|
|
875
851
|
}).pipe(T.Http({
|
|
876
852
|
method: "POST",
|
|
877
|
-
uri: "/
|
|
853
|
+
uri: "/v1/postgres/{postgres_cluster_id}/databases",
|
|
878
854
|
code: 200,
|
|
879
855
|
}))).annotate({
|
|
880
|
-
identifier: "
|
|
856
|
+
identifier: "CreatePostgresDatabaseRequest",
|
|
881
857
|
});
|
|
882
|
-
export const
|
|
883
|
-
|
|
884
|
-
exit_signal: S.optional(S.Number),
|
|
885
|
-
stderr: S.optional(S.String),
|
|
886
|
-
stdout: S.optional(S.String),
|
|
858
|
+
export const PostgresDatabase = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
859
|
+
name: S.optional(S.String),
|
|
887
860
|
})).annotate({
|
|
888
|
-
identifier: "
|
|
861
|
+
identifier: "PostgresDatabase",
|
|
889
862
|
});
|
|
890
|
-
export const
|
|
891
|
-
|
|
892
|
-
|
|
863
|
+
export const PostgresDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
864
|
+
data: S.optional(PostgresDatabase),
|
|
865
|
+
})).annotate({
|
|
866
|
+
identifier: "PostgresDatabaseResponse",
|
|
867
|
+
});
|
|
868
|
+
export const CreatePostgresUserRequestRole = S.String;
|
|
869
|
+
export const CreatePostgresUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
870
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
871
|
+
role: CreatePostgresUserRequestRole,
|
|
872
|
+
username: S.String,
|
|
893
873
|
}).pipe(T.Http({
|
|
894
|
-
method: "
|
|
895
|
-
uri: "/
|
|
874
|
+
method: "POST",
|
|
875
|
+
uri: "/v1/postgres/{postgres_cluster_id}/users",
|
|
896
876
|
code: 200,
|
|
897
877
|
}))).annotate({
|
|
898
|
-
identifier: "
|
|
899
|
-
});
|
|
900
|
-
export const
|
|
901
|
-
|
|
902
|
-
|
|
878
|
+
identifier: "CreatePostgresUserRequest",
|
|
879
|
+
});
|
|
880
|
+
export const PostgresUserRole = S.String;
|
|
881
|
+
export const PostgresUser = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
882
|
+
role: S.optional(PostgresUserRole),
|
|
883
|
+
username: S.optional(S.String),
|
|
884
|
+
})).annotate({ identifier: "PostgresUser" });
|
|
885
|
+
export const CreatePostgresUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
886
|
+
data: S.optional(PostgresUser),
|
|
903
887
|
})).annotate({
|
|
904
|
-
identifier: "
|
|
888
|
+
identifier: "CreatePostgresUserResponse",
|
|
905
889
|
});
|
|
906
|
-
export const
|
|
890
|
+
export const CreateSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
907
891
|
app_name: S.String.pipe(T.Label()),
|
|
908
|
-
|
|
909
|
-
|
|
892
|
+
secret_name: S.String.pipe(T.Label()),
|
|
893
|
+
value: S.optional(S.String),
|
|
910
894
|
}).pipe(T.Http({
|
|
911
|
-
method: "
|
|
912
|
-
uri: "/apps/{app_name}/
|
|
895
|
+
method: "POST",
|
|
896
|
+
uri: "/v1/apps/{app_name}/secrets/{secret_name}",
|
|
913
897
|
code: 200,
|
|
914
898
|
}))).annotate({
|
|
915
|
-
identifier: "
|
|
899
|
+
identifier: "CreateSecretRequest",
|
|
916
900
|
});
|
|
917
|
-
export const
|
|
901
|
+
export const SetAppSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
902
|
+
Version: S.optional(S.Number),
|
|
903
|
+
created_at: S.optional(S.String),
|
|
904
|
+
digest: S.optional(S.String),
|
|
905
|
+
name: S.optional(S.String),
|
|
906
|
+
updated_at: S.optional(S.String),
|
|
918
907
|
value: S.optional(S.String),
|
|
908
|
+
version: S.optional(S.Number),
|
|
919
909
|
})).annotate({
|
|
920
|
-
identifier: "
|
|
910
|
+
identifier: "SetAppSecretResponse",
|
|
921
911
|
});
|
|
922
|
-
export const
|
|
912
|
+
export const CreateVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
923
913
|
app_name: S.String.pipe(T.Label()),
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
914
|
+
auto_backup_enabled: S.optional(S.Boolean),
|
|
915
|
+
compute: S.optional(FlyMachineGuest),
|
|
916
|
+
compute_image: S.optional(S.String),
|
|
917
|
+
encrypted: S.optional(S.Boolean),
|
|
918
|
+
fstype: S.optional(S.String),
|
|
919
|
+
name: S.optional(S.String),
|
|
920
|
+
region: S.optional(S.String),
|
|
921
|
+
require_unique_zone: S.optional(S.Boolean),
|
|
922
|
+
size_gb: S.optional(S.Number),
|
|
923
|
+
snapshot_id: S.optional(S.String),
|
|
924
|
+
snapshot_retention: S.optional(S.Number),
|
|
925
|
+
source_volume_id: S.optional(S.String),
|
|
926
|
+
unique_zone_app_wide: S.optional(S.Boolean),
|
|
927
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/volumes", code: 200 }))).annotate({
|
|
928
|
+
identifier: "CreateVolumeRequest",
|
|
934
929
|
});
|
|
935
|
-
export const
|
|
930
|
+
export const VolumeHostStatus = S.String;
|
|
931
|
+
export const VolumeType = S.String;
|
|
932
|
+
export const Volume = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
933
|
+
attached_alloc_id: S.optional(S.String),
|
|
934
|
+
attached_machine_id: S.optional(S.String),
|
|
935
|
+
auto_backup_enabled: S.optional(S.Boolean),
|
|
936
|
+
block_size: S.optional(S.Number),
|
|
937
|
+
blocks: S.optional(S.Number),
|
|
938
|
+
blocks_avail: S.optional(S.Number),
|
|
939
|
+
blocks_free: S.optional(S.Number),
|
|
940
|
+
bytes_total: S.optional(S.Number),
|
|
941
|
+
bytes_used: S.optional(S.Number),
|
|
942
|
+
created_at: S.optional(S.String),
|
|
943
|
+
encrypted: S.optional(S.Boolean),
|
|
944
|
+
fstype: S.optional(S.String),
|
|
945
|
+
host_status: S.optional(VolumeHostStatus),
|
|
946
|
+
id: S.optional(S.String),
|
|
947
|
+
name: S.optional(S.String),
|
|
948
|
+
region: S.optional(S.String),
|
|
949
|
+
size_gb: S.optional(S.Number),
|
|
950
|
+
snapshot_retention: S.optional(S.Number),
|
|
951
|
+
state: S.optional(S.String),
|
|
952
|
+
type: S.optional(VolumeType),
|
|
953
|
+
zone: S.optional(S.String),
|
|
954
|
+
})).annotate({ identifier: "Volume" });
|
|
955
|
+
export const CreateVolumeSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
936
956
|
app_name: S.String.pipe(T.Label()),
|
|
937
|
-
|
|
938
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
957
|
+
volume_id: S.String.pipe(T.Label()),
|
|
939
958
|
}).pipe(T.Http({
|
|
940
|
-
method: "
|
|
941
|
-
uri: "/apps/{app_name}/
|
|
959
|
+
method: "POST",
|
|
960
|
+
uri: "/v1/apps/{app_name}/volumes/{volume_id}/snapshots",
|
|
942
961
|
code: 200,
|
|
943
962
|
}))).annotate({
|
|
944
|
-
identifier: "
|
|
963
|
+
identifier: "CreateVolumeSnapshotRequest",
|
|
945
964
|
});
|
|
946
|
-
export const
|
|
947
|
-
|
|
948
|
-
identifier: "MachinesListEventsResponse",
|
|
965
|
+
export const CreateVolumeSnapshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
966
|
+
identifier: "CreateVolumeSnapshotResponse",
|
|
949
967
|
});
|
|
950
|
-
export const
|
|
968
|
+
export const DecryptSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
951
969
|
app_name: S.String.pipe(T.Label()),
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
970
|
+
secret_name: S.String.pipe(T.Label()),
|
|
971
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
972
|
+
associated_data: S.optional(S.String),
|
|
973
|
+
ciphertext: S.optional(S.String),
|
|
955
974
|
}).pipe(T.Http({
|
|
956
|
-
method: "
|
|
957
|
-
uri: "/apps/{app_name}/
|
|
975
|
+
method: "POST",
|
|
976
|
+
uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/decrypt",
|
|
958
977
|
code: 200,
|
|
959
978
|
}))).annotate({
|
|
960
|
-
identifier: "
|
|
979
|
+
identifier: "DecryptSecretKeyRequest",
|
|
961
980
|
});
|
|
962
|
-
export const
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
export const ProcessStatListenSocketsList = /*@__PURE__*/ S.Array(ListenSocket);
|
|
967
|
-
export const ProcessStat = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
968
|
-
command: S.optional(S.String),
|
|
969
|
-
cpu: S.optional(S.Number),
|
|
970
|
-
directory: S.optional(S.String),
|
|
971
|
-
listen_sockets: S.optional(ProcessStatListenSocketsList),
|
|
972
|
-
pid: S.optional(S.Number),
|
|
973
|
-
rss: S.optional(S.Number),
|
|
974
|
-
rtime: S.optional(S.Number),
|
|
975
|
-
stime: S.optional(S.Number),
|
|
976
|
-
})).annotate({ identifier: "ProcessStat" });
|
|
977
|
-
export const MachinesListProcessesResponseBodyList = /*@__PURE__*/ S.Array(ProcessStat);
|
|
978
|
-
export const MachinesListProcessesResponse = /*@__PURE__*/ S.suspend(() => MachinesListProcessesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
979
|
-
identifier: "MachinesListProcessesResponse",
|
|
981
|
+
export const DecryptSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
982
|
+
plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
983
|
+
})).annotate({
|
|
984
|
+
identifier: "DecryptSecretkeyResponse",
|
|
980
985
|
});
|
|
981
|
-
export const
|
|
986
|
+
export const DeleteAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
982
987
|
app_name: S.String.pipe(T.Label()),
|
|
983
|
-
|
|
988
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}", code: 200 }))).annotate({
|
|
989
|
+
identifier: "DeleteAppRequest",
|
|
990
|
+
});
|
|
991
|
+
export const DeleteAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
992
|
+
identifier: "DeleteAppResponse",
|
|
993
|
+
});
|
|
994
|
+
export const DeleteAppAcmeCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
995
|
+
app_name: S.String.pipe(T.Label()),
|
|
996
|
+
hostname: S.String.pipe(T.Label()),
|
|
984
997
|
}).pipe(T.Http({
|
|
985
|
-
method: "
|
|
986
|
-
uri: "/apps/{app_name}/
|
|
998
|
+
method: "DELETE",
|
|
999
|
+
uri: "/v1/apps/{app_name}/certificates/{hostname}/acme",
|
|
987
1000
|
code: 200,
|
|
988
1001
|
}))).annotate({
|
|
989
|
-
identifier: "
|
|
990
|
-
});
|
|
991
|
-
export const MachineVersion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
992
|
-
user_config: S.optional(FlyMachineConfig),
|
|
993
|
-
version: S.optional(S.String),
|
|
994
|
-
})).annotate({ identifier: "MachineVersion" });
|
|
995
|
-
export const MachinesListVersionsResponseBodyList = /*@__PURE__*/ S.Array(MachineVersion);
|
|
996
|
-
export const MachinesListVersionsResponse = /*@__PURE__*/ S.suspend(() => MachinesListVersionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
997
|
-
identifier: "MachinesListVersionsResponse",
|
|
1002
|
+
identifier: "DeleteAppAcmeCertificateRequest",
|
|
998
1003
|
});
|
|
999
|
-
export const
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org_slug}/machines", code: 200 }))).annotate({
|
|
1009
|
-
identifier: "MachinesOrgListRequest",
|
|
1004
|
+
export const DeleteAppCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1005
|
+
app_name: S.String.pipe(T.Label()),
|
|
1006
|
+
hostname: S.String.pipe(T.Label()),
|
|
1007
|
+
}).pipe(T.Http({
|
|
1008
|
+
method: "DELETE",
|
|
1009
|
+
uri: "/v1/apps/{app_name}/certificates/{hostname}",
|
|
1010
|
+
code: 200,
|
|
1011
|
+
}))).annotate({
|
|
1012
|
+
identifier: "DeleteAppCertificateRequest",
|
|
1010
1013
|
});
|
|
1011
|
-
export const
|
|
1012
|
-
|
|
1013
|
-
export const MachineOverviewConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1014
|
-
guest: S.optional(FlyMachineGuest),
|
|
1015
|
-
image: S.optional(S.String),
|
|
1016
|
-
metadata: S.optional(MachineOverviewConfigMetadataMap),
|
|
1017
|
-
})).annotate({
|
|
1018
|
-
identifier: "MachineOverviewConfig",
|
|
1014
|
+
export const DeleteAppCertificateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1015
|
+
identifier: "DeleteAppCertificateResponse",
|
|
1019
1016
|
});
|
|
1020
|
-
export const
|
|
1021
|
-
app_name: S.optional(S.String),
|
|
1022
|
-
config: S.optional(MachineOverviewConfig),
|
|
1023
|
-
created_at: S.optional(S.String),
|
|
1024
|
-
id: S.optional(S.String),
|
|
1025
|
-
name: S.optional(S.String),
|
|
1026
|
-
private_ip: S.optional(S.String),
|
|
1027
|
-
region: S.optional(S.String),
|
|
1028
|
-
state: S.optional(S.String),
|
|
1029
|
-
updated_at: S.optional(S.String),
|
|
1030
|
-
version: S.optional(S.String),
|
|
1031
|
-
})).annotate({ identifier: "OrgMachine" });
|
|
1032
|
-
export const OrgMachinesResponseMachinesList = /*@__PURE__*/ S.Array(OrgMachine);
|
|
1033
|
-
export const OrgMachinesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1034
|
-
error_regions: S.optional(OrgMachinesResponseErrorRegionsList),
|
|
1035
|
-
last_machine_id: S.optional(S.String),
|
|
1036
|
-
last_updated_at: S.optional(S.String),
|
|
1037
|
-
machines: S.optional(OrgMachinesResponseMachinesList),
|
|
1038
|
-
next_cursor: S.optional(S.String),
|
|
1039
|
-
})).annotate({
|
|
1040
|
-
identifier: "OrgMachinesResponse",
|
|
1041
|
-
});
|
|
1042
|
-
export const MachinesReclaimMemoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1017
|
+
export const DeleteAppCustomCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1043
1018
|
app_name: S.String.pipe(T.Label()),
|
|
1044
|
-
|
|
1045
|
-
amount_mb: S.optional(S.Number),
|
|
1019
|
+
hostname: S.String.pipe(T.Label()),
|
|
1046
1020
|
}).pipe(T.Http({
|
|
1047
|
-
method: "
|
|
1048
|
-
uri: "/apps/{app_name}/
|
|
1021
|
+
method: "DELETE",
|
|
1022
|
+
uri: "/v1/apps/{app_name}/certificates/{hostname}/custom",
|
|
1049
1023
|
code: 200,
|
|
1050
1024
|
}))).annotate({
|
|
1051
|
-
identifier: "
|
|
1025
|
+
identifier: "DeleteAppCustomCertificateRequest",
|
|
1052
1026
|
});
|
|
1053
|
-
export const
|
|
1054
|
-
|
|
1027
|
+
export const DestroyCustomCertificateResponseCertificatesList =
|
|
1028
|
+
/*@__PURE__*/ S.Array(CertificateEntry);
|
|
1029
|
+
export const DestroyCustomCertificateResponseValidationErrorsList =
|
|
1030
|
+
/*@__PURE__*/ S.Array(CertificateValidationError);
|
|
1031
|
+
export const DestroyCustomCertificateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1032
|
+
acme_requested: S.optional(S.Boolean),
|
|
1033
|
+
certificates: S.optional(DestroyCustomCertificateResponseCertificatesList),
|
|
1034
|
+
configured: S.optional(S.Boolean),
|
|
1035
|
+
dns_provider: S.optional(S.String),
|
|
1036
|
+
dns_requirements: S.optional(DNSRequirements),
|
|
1037
|
+
hostname: S.optional(S.String),
|
|
1038
|
+
rate_limited_until: S.optional(S.String),
|
|
1039
|
+
status: S.optional(S.String),
|
|
1040
|
+
validation: S.optional(CertificateValidation),
|
|
1041
|
+
validation_errors: S.optional(DestroyCustomCertificateResponseValidationErrorsList),
|
|
1042
|
+
warning: S.optional(S.String),
|
|
1055
1043
|
})).annotate({
|
|
1056
|
-
identifier: "
|
|
1044
|
+
identifier: "DestroyCustomCertificateResponse",
|
|
1057
1045
|
});
|
|
1058
|
-
export const
|
|
1046
|
+
export const DeleteAppIPAssignmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1059
1047
|
app_name: S.String.pipe(T.Label()),
|
|
1060
|
-
|
|
1048
|
+
ip: S.String.pipe(T.Label()),
|
|
1061
1049
|
}).pipe(T.Http({
|
|
1062
1050
|
method: "DELETE",
|
|
1063
|
-
uri: "/apps/{app_name}/
|
|
1051
|
+
uri: "/v1/apps/{app_name}/ip_assignments/{ip}",
|
|
1064
1052
|
code: 200,
|
|
1065
1053
|
}))).annotate({
|
|
1066
|
-
identifier: "
|
|
1054
|
+
identifier: "DeleteAppIPAssignmentRequest",
|
|
1067
1055
|
});
|
|
1068
|
-
export const
|
|
1069
|
-
identifier: "
|
|
1056
|
+
export const DeleteAppIPAssignmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1057
|
+
identifier: "DeleteAppIPAssignmentResponse",
|
|
1070
1058
|
});
|
|
1071
|
-
export const
|
|
1072
|
-
export const MachinesRestartRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1059
|
+
export const DeleteMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1073
1060
|
app_name: S.String.pipe(T.Label()),
|
|
1074
1061
|
machine_id: S.String.pipe(T.Label()),
|
|
1075
|
-
|
|
1076
|
-
signal: S.optional(MachinesRestartRequestSignal.pipe(T.Query())),
|
|
1062
|
+
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
1077
1063
|
}).pipe(T.Http({
|
|
1078
|
-
method: "
|
|
1079
|
-
uri: "/apps/{app_name}/machines/{machine_id}
|
|
1064
|
+
method: "DELETE",
|
|
1065
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}",
|
|
1080
1066
|
code: 200,
|
|
1081
1067
|
}))).annotate({
|
|
1082
|
-
identifier: "
|
|
1068
|
+
identifier: "DeleteMachineRequest",
|
|
1083
1069
|
});
|
|
1084
|
-
export const
|
|
1085
|
-
identifier: "
|
|
1070
|
+
export const DeleteMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1071
|
+
identifier: "DeleteMachineResponse",
|
|
1086
1072
|
});
|
|
1087
|
-
export const
|
|
1073
|
+
export const DeleteMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1088
1074
|
app_name: S.String.pipe(T.Label()),
|
|
1089
1075
|
machine_id: S.String.pipe(T.Label()),
|
|
1090
|
-
|
|
1076
|
+
key: S.String.pipe(T.Label()),
|
|
1091
1077
|
}).pipe(T.Http({
|
|
1092
|
-
method: "
|
|
1093
|
-
uri: "/apps/{app_name}/machines/{machine_id}/
|
|
1078
|
+
method: "DELETE",
|
|
1079
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
1080
|
+
code: 200,
|
|
1081
|
+
}))).annotate({
|
|
1082
|
+
identifier: "DeleteMachineMetadataRequest",
|
|
1083
|
+
});
|
|
1084
|
+
export const DeleteMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1085
|
+
identifier: "DeleteMachineMetadataResponse",
|
|
1086
|
+
});
|
|
1087
|
+
export const DeletePostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1088
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1089
|
+
}).pipe(T.Http({
|
|
1090
|
+
method: "DELETE",
|
|
1091
|
+
uri: "/v1/postgres/{postgres_cluster_id}",
|
|
1094
1092
|
code: 200,
|
|
1095
1093
|
}))).annotate({
|
|
1096
|
-
identifier: "
|
|
1094
|
+
identifier: "DeletePostgresRequest",
|
|
1095
|
+
});
|
|
1096
|
+
export const DeletePostgresResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1097
|
+
identifier: "DeletePostgresResponse",
|
|
1097
1098
|
});
|
|
1098
|
-
export const
|
|
1099
|
+
export const DeletePostgresAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1100
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1099
1101
|
app_name: S.String.pipe(T.Label()),
|
|
1100
|
-
machine_id: S.String.pipe(T.Label()),
|
|
1101
1102
|
}).pipe(T.Http({
|
|
1102
|
-
method: "
|
|
1103
|
-
uri: "/
|
|
1103
|
+
method: "DELETE",
|
|
1104
|
+
uri: "/v1/postgres/{postgres_cluster_id}/attachments/{app_name}",
|
|
1105
|
+
code: 200,
|
|
1106
|
+
}))).annotate({
|
|
1107
|
+
identifier: "DeletePostgresAttachmentRequest",
|
|
1108
|
+
});
|
|
1109
|
+
export const DeletePostgresAttachmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1110
|
+
identifier: "DeletePostgresAttachmentResponse",
|
|
1111
|
+
});
|
|
1112
|
+
export const DeletePostgresDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1113
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1114
|
+
database_name: S.String.pipe(T.Label()),
|
|
1115
|
+
}).pipe(T.Http({
|
|
1116
|
+
method: "DELETE",
|
|
1117
|
+
uri: "/v1/postgres/{postgres_cluster_id}/databases/{database_name}",
|
|
1118
|
+
code: 200,
|
|
1119
|
+
}))).annotate({
|
|
1120
|
+
identifier: "DeletePostgresDatabaseRequest",
|
|
1121
|
+
});
|
|
1122
|
+
export const DeletePostgresUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1123
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1124
|
+
username: S.String.pipe(T.Label()),
|
|
1125
|
+
}).pipe(T.Http({
|
|
1126
|
+
method: "DELETE",
|
|
1127
|
+
uri: "/v1/postgres/{postgres_cluster_id}/users/{username}",
|
|
1104
1128
|
code: 200,
|
|
1105
1129
|
}))).annotate({
|
|
1106
|
-
identifier: "
|
|
1130
|
+
identifier: "DeletePostgresUserRequest",
|
|
1107
1131
|
});
|
|
1108
|
-
export const
|
|
1132
|
+
export const DeletePostgresUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1133
|
+
identifier: "DeletePostgresUserResponse",
|
|
1134
|
+
});
|
|
1135
|
+
export const DeleteSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1109
1136
|
app_name: S.String.pipe(T.Label()),
|
|
1110
|
-
|
|
1137
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1111
1138
|
}).pipe(T.Http({
|
|
1112
|
-
method: "
|
|
1113
|
-
uri: "/apps/{app_name}/
|
|
1139
|
+
method: "DELETE",
|
|
1140
|
+
uri: "/v1/apps/{app_name}/secrets/{secret_name}",
|
|
1114
1141
|
code: 200,
|
|
1115
1142
|
}))).annotate({
|
|
1116
|
-
identifier: "
|
|
1143
|
+
identifier: "DeleteSecretRequest",
|
|
1144
|
+
});
|
|
1145
|
+
export const DeleteAppSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1146
|
+
Version: S.optional(S.Number),
|
|
1147
|
+
version: S.optional(S.Number),
|
|
1148
|
+
})).annotate({
|
|
1149
|
+
identifier: "DeleteAppSecretResponse",
|
|
1117
1150
|
});
|
|
1118
|
-
export const
|
|
1151
|
+
export const DeleteSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1119
1152
|
app_name: S.String.pipe(T.Label()),
|
|
1120
|
-
|
|
1153
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1121
1154
|
}).pipe(T.Http({
|
|
1122
|
-
method: "
|
|
1123
|
-
uri: "/apps/{app_name}/
|
|
1155
|
+
method: "DELETE",
|
|
1156
|
+
uri: "/v1/apps/{app_name}/secretkeys/{secret_name}",
|
|
1124
1157
|
code: 200,
|
|
1125
1158
|
}))).annotate({
|
|
1126
|
-
identifier: "
|
|
1159
|
+
identifier: "DeleteSecretKeyRequest",
|
|
1127
1160
|
});
|
|
1128
|
-
export const
|
|
1129
|
-
|
|
1130
|
-
|
|
1161
|
+
export const DeleteSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1162
|
+
Version: S.optional(S.Number),
|
|
1163
|
+
version: S.optional(S.Number),
|
|
1164
|
+
})).annotate({
|
|
1165
|
+
identifier: "DeleteSecretkeyResponse",
|
|
1131
1166
|
});
|
|
1132
|
-
export const
|
|
1133
|
-
export const MachinesSignalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1167
|
+
export const DeleteVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1134
1168
|
app_name: S.String.pipe(T.Label()),
|
|
1135
|
-
|
|
1136
|
-
|
|
1169
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1170
|
+
}).pipe(T.Http({
|
|
1171
|
+
method: "DELETE",
|
|
1172
|
+
uri: "/v1/apps/{app_name}/volumes/{volume_id}",
|
|
1173
|
+
code: 200,
|
|
1174
|
+
}))).annotate({
|
|
1175
|
+
identifier: "DeleteVolumeRequest",
|
|
1176
|
+
});
|
|
1177
|
+
export const DisablePostgresExtensionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1178
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1179
|
+
database_name: S.String.pipe(T.Label()),
|
|
1180
|
+
extension_name: S.String.pipe(T.Label()),
|
|
1181
|
+
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
1182
|
+
}).pipe(T.Http({
|
|
1183
|
+
method: "DELETE",
|
|
1184
|
+
uri: "/v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions/{extension_name}",
|
|
1185
|
+
code: 200,
|
|
1186
|
+
}))).annotate({
|
|
1187
|
+
identifier: "DisablePostgresExtensionRequest",
|
|
1188
|
+
});
|
|
1189
|
+
export const DisablePostgresExtensionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1190
|
+
identifier: "DisablePostgresExtensionResponse",
|
|
1191
|
+
});
|
|
1192
|
+
export const EnablePostgresExtensionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1193
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1194
|
+
database_name: S.String.pipe(T.Label()),
|
|
1195
|
+
create_schema: S.optional(S.Boolean),
|
|
1196
|
+
name: S.String,
|
|
1197
|
+
schema: S.optional(S.String),
|
|
1137
1198
|
}).pipe(T.Http({
|
|
1138
1199
|
method: "POST",
|
|
1139
|
-
uri: "/
|
|
1200
|
+
uri: "/v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions",
|
|
1140
1201
|
code: 200,
|
|
1141
1202
|
}))).annotate({
|
|
1142
|
-
identifier: "
|
|
1203
|
+
identifier: "EnablePostgresExtensionRequest",
|
|
1143
1204
|
});
|
|
1144
|
-
export const
|
|
1145
|
-
identifier: "
|
|
1205
|
+
export const EnablePostgresExtensionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1206
|
+
identifier: "EnablePostgresExtensionResponse",
|
|
1146
1207
|
});
|
|
1147
|
-
export const
|
|
1208
|
+
export const EncryptSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1148
1209
|
app_name: S.String.pipe(T.Label()),
|
|
1149
|
-
|
|
1210
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1211
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1212
|
+
associated_data: S.optional(S.String),
|
|
1213
|
+
plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1150
1214
|
}).pipe(T.Http({
|
|
1151
1215
|
method: "POST",
|
|
1152
|
-
uri: "/apps/{app_name}/
|
|
1216
|
+
uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/encrypt",
|
|
1153
1217
|
code: 200,
|
|
1154
1218
|
}))).annotate({
|
|
1155
|
-
identifier: "
|
|
1219
|
+
identifier: "EncryptSecretKeyRequest",
|
|
1156
1220
|
});
|
|
1157
|
-
export const
|
|
1158
|
-
|
|
1221
|
+
export const EncryptSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1222
|
+
ciphertext: S.optional(S.String),
|
|
1223
|
+
})).annotate({
|
|
1224
|
+
identifier: "EncryptSecretkeyResponse",
|
|
1159
1225
|
});
|
|
1160
|
-
export const
|
|
1161
|
-
export const
|
|
1226
|
+
export const ExecMachineRequestCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
1227
|
+
export const ExecMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1162
1228
|
app_name: S.String.pipe(T.Label()),
|
|
1163
1229
|
machine_id: S.String.pipe(T.Label()),
|
|
1164
|
-
|
|
1165
|
-
|
|
1230
|
+
cmd: S.optional(S.String),
|
|
1231
|
+
command: S.optional(ExecMachineRequestCommandList),
|
|
1232
|
+
container: S.optional(S.String),
|
|
1233
|
+
machine: S.optional(S.Boolean),
|
|
1234
|
+
stdin: S.optional(S.String),
|
|
1235
|
+
timeout: S.optional(S.Number),
|
|
1166
1236
|
}).pipe(T.Http({
|
|
1167
1237
|
method: "POST",
|
|
1168
|
-
uri: "/apps/{app_name}/machines/{machine_id}/
|
|
1238
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/exec",
|
|
1169
1239
|
code: 200,
|
|
1170
1240
|
}))).annotate({
|
|
1171
|
-
identifier: "
|
|
1241
|
+
identifier: "ExecMachineRequest",
|
|
1172
1242
|
});
|
|
1173
|
-
export const
|
|
1174
|
-
|
|
1243
|
+
export const Flydv1ExecResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1244
|
+
exit_code: S.optional(S.Number),
|
|
1245
|
+
exit_signal: S.optional(S.Number),
|
|
1246
|
+
stderr: S.optional(S.String),
|
|
1247
|
+
stdout: S.optional(S.String),
|
|
1248
|
+
})).annotate({
|
|
1249
|
+
identifier: "Flydv1ExecResponse",
|
|
1175
1250
|
});
|
|
1176
|
-
export const
|
|
1251
|
+
export const ExtendVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1177
1252
|
app_name: S.String.pipe(T.Label()),
|
|
1178
|
-
|
|
1253
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1254
|
+
size_gb: S.optional(S.Number),
|
|
1179
1255
|
}).pipe(T.Http({
|
|
1180
|
-
method: "
|
|
1181
|
-
uri: "/apps/{app_name}/
|
|
1256
|
+
method: "PUT",
|
|
1257
|
+
uri: "/v1/apps/{app_name}/volumes/{volume_id}/extend",
|
|
1182
1258
|
code: 200,
|
|
1183
1259
|
}))).annotate({
|
|
1184
|
-
identifier: "
|
|
1260
|
+
identifier: "ExtendVolumeRequest",
|
|
1261
|
+
});
|
|
1262
|
+
export const ExtendVolumeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1263
|
+
needs_restart: S.optional(S.Boolean),
|
|
1264
|
+
volume: S.optional(Volume),
|
|
1265
|
+
})).annotate({
|
|
1266
|
+
identifier: "ExtendVolumeResponse",
|
|
1185
1267
|
});
|
|
1186
|
-
export const
|
|
1187
|
-
|
|
1268
|
+
export const ForkPostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1269
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1270
|
+
name: S.optional(S.String),
|
|
1271
|
+
}).pipe(T.Http({
|
|
1272
|
+
method: "POST",
|
|
1273
|
+
uri: "/v1/postgres/{postgres_cluster_id}/fork",
|
|
1274
|
+
code: 200,
|
|
1275
|
+
}))).annotate({
|
|
1276
|
+
identifier: "ForkPostgresRequest",
|
|
1188
1277
|
});
|
|
1189
|
-
export const
|
|
1278
|
+
export const GenerateSecretKeyRequestValueList = /*@__PURE__*/ S.Array(S.Number);
|
|
1279
|
+
export const GenerateSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1190
1280
|
app_name: S.String.pipe(T.Label()),
|
|
1191
|
-
|
|
1281
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1282
|
+
type: S.optional(S.String),
|
|
1283
|
+
value: S.optional(GenerateSecretKeyRequestValueList),
|
|
1192
1284
|
}).pipe(T.Http({
|
|
1193
1285
|
method: "POST",
|
|
1194
|
-
uri: "/apps/{app_name}/
|
|
1286
|
+
uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/generate",
|
|
1195
1287
|
code: 200,
|
|
1196
1288
|
}))).annotate({
|
|
1197
|
-
identifier: "
|
|
1289
|
+
identifier: "GenerateSecretKeyRequest",
|
|
1198
1290
|
});
|
|
1199
|
-
export const
|
|
1200
|
-
|
|
1291
|
+
export const SetSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1292
|
+
Version: S.optional(S.Number),
|
|
1293
|
+
created_at: S.optional(S.String),
|
|
1294
|
+
name: S.optional(S.String),
|
|
1295
|
+
public_key: S.optional(S.String),
|
|
1296
|
+
type: S.optional(S.String),
|
|
1297
|
+
updated_at: S.optional(S.String),
|
|
1298
|
+
version: S.optional(S.Number),
|
|
1299
|
+
})).annotate({
|
|
1300
|
+
identifier: "SetSecretkeyResponse",
|
|
1201
1301
|
});
|
|
1202
|
-
export const
|
|
1302
|
+
export const GetAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1203
1303
|
app_name: S.String.pipe(T.Label()),
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
lease_ttl: S.optional(S.Number),
|
|
1208
|
-
min_secrets_version: S.optional(S.Number),
|
|
1304
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}", code: 200 }))).annotate({ identifier: "GetAppRequest" });
|
|
1305
|
+
export const AppOrganizationInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1306
|
+
internal_numeric_id: S.optional(S.Number),
|
|
1209
1307
|
name: S.optional(S.String),
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1308
|
+
slug: S.optional(S.String),
|
|
1309
|
+
})).annotate({
|
|
1310
|
+
identifier: "AppOrganizationInfo",
|
|
1311
|
+
});
|
|
1312
|
+
export const App = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1313
|
+
id: S.optional(S.String),
|
|
1314
|
+
internal_numeric_id: S.optional(S.Number),
|
|
1315
|
+
machine_count: S.optional(S.Number),
|
|
1316
|
+
name: S.optional(S.String),
|
|
1317
|
+
network: S.optional(S.String),
|
|
1318
|
+
network_cidr: S.optional(S.String),
|
|
1319
|
+
organization: S.optional(AppOrganizationInfo),
|
|
1320
|
+
status: S.optional(S.String),
|
|
1321
|
+
volume_count: S.optional(S.Number),
|
|
1322
|
+
})).annotate({ identifier: "App" });
|
|
1323
|
+
export const GetAppCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1324
|
+
app_name: S.String.pipe(T.Label()),
|
|
1325
|
+
hostname: S.String.pipe(T.Label()),
|
|
1214
1326
|
}).pipe(T.Http({
|
|
1215
|
-
method: "
|
|
1216
|
-
uri: "/apps/{app_name}/
|
|
1327
|
+
method: "GET",
|
|
1328
|
+
uri: "/v1/apps/{app_name}/certificates/{hostname}",
|
|
1217
1329
|
code: 200,
|
|
1218
1330
|
}))).annotate({
|
|
1219
|
-
identifier: "
|
|
1331
|
+
identifier: "GetAppCertificateRequest",
|
|
1332
|
+
});
|
|
1333
|
+
export const GetCurrentTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v1/tokens/current", code: 200 }))).annotate({
|
|
1334
|
+
identifier: "GetCurrentTokenRequest",
|
|
1335
|
+
});
|
|
1336
|
+
export const MainTokenInfoAppsList = /*@__PURE__*/ S.Array(S.String);
|
|
1337
|
+
export const MainTokenInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1338
|
+
apps: S.optional(MainTokenInfoAppsList),
|
|
1339
|
+
org_slug: S.optional(S.String),
|
|
1340
|
+
organization: S.optional(S.String),
|
|
1341
|
+
restricted_to_machine: S.optional(S.String),
|
|
1342
|
+
source_machine_id: S.optional(S.String),
|
|
1343
|
+
token_id: S.optional(S.String),
|
|
1344
|
+
user: S.optional(S.String),
|
|
1345
|
+
})).annotate({ identifier: "MainTokenInfo" });
|
|
1346
|
+
export const CurrentTokenResponseTokensList = /*@__PURE__*/ S.Array(MainTokenInfo);
|
|
1347
|
+
export const CurrentTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1348
|
+
tokens: S.optional(CurrentTokenResponseTokensList),
|
|
1349
|
+
})).annotate({
|
|
1350
|
+
identifier: "CurrentTokenResponse",
|
|
1220
1351
|
});
|
|
1221
|
-
export const
|
|
1222
|
-
export const MachinesUpdateMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1352
|
+
export const GetMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1223
1353
|
app_name: S.String.pipe(T.Label()),
|
|
1224
1354
|
machine_id: S.String.pipe(T.Label()),
|
|
1225
|
-
|
|
1226
|
-
metadata: S.optional(MachinesUpdateMetadataRequestMetadataMap),
|
|
1227
|
-
updated_at: S.optional(S.String),
|
|
1355
|
+
include_leases: S.optional(S.Boolean.pipe(T.Query())),
|
|
1228
1356
|
}).pipe(T.Http({
|
|
1229
|
-
method: "
|
|
1230
|
-
uri: "/apps/{app_name}/machines/{machine_id}
|
|
1357
|
+
method: "GET",
|
|
1358
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}",
|
|
1231
1359
|
code: 200,
|
|
1232
1360
|
}))).annotate({
|
|
1233
|
-
identifier: "
|
|
1361
|
+
identifier: "GetMachineRequest",
|
|
1234
1362
|
});
|
|
1235
|
-
export const
|
|
1236
|
-
|
|
1363
|
+
export const GetMachineLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1364
|
+
app_name: S.String.pipe(T.Label()),
|
|
1365
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1366
|
+
}).pipe(T.Http({
|
|
1367
|
+
method: "GET",
|
|
1368
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/lease",
|
|
1369
|
+
code: 200,
|
|
1370
|
+
}))).annotate({
|
|
1371
|
+
identifier: "GetMachineLeaseRequest",
|
|
1237
1372
|
});
|
|
1238
|
-
export const
|
|
1239
|
-
export const MachinesUpdateMetadataRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1373
|
+
export const GetMachineMemoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1240
1374
|
app_name: S.String.pipe(T.Label()),
|
|
1241
1375
|
machine_id: S.String.pipe(T.Label()),
|
|
1242
|
-
machine_version: S.optional(S.String),
|
|
1243
|
-
metadata: S.optional(MachinesUpdateMetadataRequestMetadataMap2),
|
|
1244
|
-
updated_at: S.optional(S.String),
|
|
1245
1376
|
}).pipe(T.Http({
|
|
1246
|
-
method: "
|
|
1247
|
-
uri: "/apps/{app_name}/machines/{machine_id}/
|
|
1377
|
+
method: "GET",
|
|
1378
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/memory",
|
|
1248
1379
|
code: 200,
|
|
1249
1380
|
}))).annotate({
|
|
1250
|
-
identifier: "
|
|
1381
|
+
identifier: "GetMachineMemoryRequest",
|
|
1251
1382
|
});
|
|
1252
|
-
export const
|
|
1253
|
-
|
|
1383
|
+
export const MainMemoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1384
|
+
available_mb: S.optional(S.Number),
|
|
1385
|
+
limit_mb: S.optional(S.Number),
|
|
1386
|
+
})).annotate({
|
|
1387
|
+
identifier: "MainMemoryResponse",
|
|
1254
1388
|
});
|
|
1255
|
-
export const
|
|
1389
|
+
export const GetMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1256
1390
|
app_name: S.String.pipe(T.Label()),
|
|
1257
1391
|
machine_id: S.String.pipe(T.Label()),
|
|
1258
|
-
key: S.String.pipe(T.Label()),
|
|
1259
|
-
updated_at: S.optional(S.String),
|
|
1260
|
-
value: S.optional(S.String),
|
|
1261
1392
|
}).pipe(T.Http({
|
|
1262
|
-
method: "
|
|
1263
|
-
uri: "/apps/{app_name}/machines/{machine_id}/metadata
|
|
1393
|
+
method: "GET",
|
|
1394
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata",
|
|
1264
1395
|
code: 200,
|
|
1265
1396
|
}))).annotate({
|
|
1266
|
-
identifier: "
|
|
1397
|
+
identifier: "GetMachineMetadataRequest",
|
|
1267
1398
|
});
|
|
1268
|
-
export const
|
|
1269
|
-
|
|
1399
|
+
export const GetMachineMetadataResponseBodyMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1400
|
+
export const GetMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => GetMachineMetadataResponseBodyMap.pipe(T.RawResponseRoot())).annotate({
|
|
1401
|
+
identifier: "GetMachineMetadataResponse",
|
|
1270
1402
|
});
|
|
1271
|
-
export const
|
|
1272
|
-
export const MachinesWaitRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1403
|
+
export const GetMachineMetadataKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1273
1404
|
app_name: S.String.pipe(T.Label()),
|
|
1274
1405
|
machine_id: S.String.pipe(T.Label()),
|
|
1275
|
-
|
|
1276
|
-
instance_id: S.optional(S.String.pipe(T.Query())),
|
|
1277
|
-
from_event_id: S.optional(S.String.pipe(T.Query())),
|
|
1278
|
-
timeout: S.optional(S.Number.pipe(T.Query())),
|
|
1279
|
-
state: S.optional(MachinesWaitRequestState.pipe(T.Query())),
|
|
1406
|
+
key: S.String.pipe(T.Label()),
|
|
1280
1407
|
}).pipe(T.Http({
|
|
1281
1408
|
method: "GET",
|
|
1282
|
-
uri: "/apps/{app_name}/machines/{machine_id}/
|
|
1409
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
1283
1410
|
code: 200,
|
|
1284
1411
|
}))).annotate({
|
|
1285
|
-
identifier: "
|
|
1412
|
+
identifier: "GetMachineMetadataKeyRequest",
|
|
1286
1413
|
});
|
|
1287
|
-
export const
|
|
1288
|
-
|
|
1289
|
-
ok: S.optional(S.Boolean),
|
|
1290
|
-
state: S.optional(S.String),
|
|
1291
|
-
version: S.optional(S.String),
|
|
1414
|
+
export const MetadataValueResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1415
|
+
value: S.optional(S.String),
|
|
1292
1416
|
})).annotate({
|
|
1293
|
-
identifier: "
|
|
1417
|
+
identifier: "MetadataValueResponse",
|
|
1294
1418
|
});
|
|
1295
1419
|
export const PlacementWeights = /*@__PURE__*/ S.Record(S.String, S.Number);
|
|
1296
|
-
export const
|
|
1420
|
+
export const GetPlacementsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1297
1421
|
compute: S.optional(FlyMachineGuest),
|
|
1298
1422
|
count: S.optional(S.Number),
|
|
1299
1423
|
org_slug: S.String,
|
|
@@ -1301,8 +1425,8 @@ export const PlatformPlacementsPostRequest = /*@__PURE__*/ S.suspend(() => S.Str
|
|
|
1301
1425
|
volume_name: S.optional(S.String),
|
|
1302
1426
|
volume_size_bytes: S.optional(S.Number),
|
|
1303
1427
|
weights: S.optional(PlacementWeights),
|
|
1304
|
-
}).pipe(T.Http({ method: "POST", uri: "/platform/placements", code: 200 }))).annotate({
|
|
1305
|
-
identifier: "
|
|
1428
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/platform/placements", code: 200 }))).annotate({
|
|
1429
|
+
identifier: "GetPlacementsRequest",
|
|
1306
1430
|
});
|
|
1307
1431
|
export const PlacementRegionPlacement = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1308
1432
|
concurrency: S.optional(S.Number),
|
|
@@ -1317,8 +1441,17 @@ export const MainGetPlacementsResponse = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
1317
1441
|
})).annotate({
|
|
1318
1442
|
identifier: "MainGetPlacementsResponse",
|
|
1319
1443
|
});
|
|
1320
|
-
export const
|
|
1321
|
-
|
|
1444
|
+
export const GetPostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1445
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1446
|
+
}).pipe(T.Http({
|
|
1447
|
+
method: "GET",
|
|
1448
|
+
uri: "/v1/postgres/{postgres_cluster_id}",
|
|
1449
|
+
code: 200,
|
|
1450
|
+
}))).annotate({
|
|
1451
|
+
identifier: "GetPostgresRequest",
|
|
1452
|
+
});
|
|
1453
|
+
export const GetRegionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v1/platform/regions", code: 200 }))).annotate({
|
|
1454
|
+
identifier: "GetRegionsRequest",
|
|
1322
1455
|
});
|
|
1323
1456
|
export const MainRegionRow = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1324
1457
|
code: S.optional(S.String),
|
|
@@ -1327,6 +1460,7 @@ export const MainRegionRow = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1327
1460
|
geo_region: S.optional(S.String),
|
|
1328
1461
|
latitude: S.optional(S.Number),
|
|
1329
1462
|
longitude: S.optional(S.Number),
|
|
1463
|
+
mpg_available: S.optional(S.Boolean),
|
|
1330
1464
|
name: S.optional(S.String),
|
|
1331
1465
|
requires_paid_plan: S.optional(S.Boolean),
|
|
1332
1466
|
})).annotate({ identifier: "MainRegionRow" });
|
|
@@ -1337,359 +1471,432 @@ export const MainRegionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1337
1471
|
})).annotate({
|
|
1338
1472
|
identifier: "MainRegionResponse",
|
|
1339
1473
|
});
|
|
1340
|
-
export const
|
|
1474
|
+
export const GetSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1341
1475
|
app_name: S.String.pipe(T.Label()),
|
|
1342
1476
|
secret_name: S.String.pipe(T.Label()),
|
|
1343
|
-
|
|
1477
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1478
|
+
show_secrets: S.optional(S.Boolean.pipe(T.Query())),
|
|
1344
1479
|
}).pipe(T.Http({
|
|
1345
|
-
method: "
|
|
1346
|
-
uri: "/apps/{app_name}/secrets/{secret_name}",
|
|
1480
|
+
method: "GET",
|
|
1481
|
+
uri: "/v1/apps/{app_name}/secrets/{secret_name}",
|
|
1347
1482
|
code: 200,
|
|
1348
1483
|
}))).annotate({
|
|
1349
|
-
identifier: "
|
|
1484
|
+
identifier: "GetSecretRequest",
|
|
1350
1485
|
});
|
|
1351
|
-
export const
|
|
1352
|
-
Version: S.optional(S.Number),
|
|
1486
|
+
export const AppSecret = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1353
1487
|
created_at: S.optional(S.String),
|
|
1354
1488
|
digest: S.optional(S.String),
|
|
1355
1489
|
name: S.optional(S.String),
|
|
1356
1490
|
updated_at: S.optional(S.String),
|
|
1357
1491
|
value: S.optional(S.String),
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
identifier: "SetAppSecretResponse",
|
|
1361
|
-
});
|
|
1362
|
-
export const SecretDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1492
|
+
})).annotate({ identifier: "AppSecret" });
|
|
1493
|
+
export const GetSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1363
1494
|
app_name: S.String.pipe(T.Label()),
|
|
1364
1495
|
secret_name: S.String.pipe(T.Label()),
|
|
1496
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1365
1497
|
}).pipe(T.Http({
|
|
1366
|
-
method: "
|
|
1367
|
-
uri: "/apps/{app_name}/
|
|
1498
|
+
method: "GET",
|
|
1499
|
+
uri: "/v1/apps/{app_name}/secretkeys/{secret_name}",
|
|
1368
1500
|
code: 200,
|
|
1369
1501
|
}))).annotate({
|
|
1370
|
-
identifier: "
|
|
1371
|
-
});
|
|
1372
|
-
export const DeleteAppSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1373
|
-
Version: S.optional(S.Number),
|
|
1374
|
-
version: S.optional(S.Number),
|
|
1375
|
-
})).annotate({
|
|
1376
|
-
identifier: "DeleteAppSecretResponse",
|
|
1502
|
+
identifier: "GetSecretKeyRequest",
|
|
1377
1503
|
});
|
|
1378
|
-
export const
|
|
1504
|
+
export const SecretKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1505
|
+
created_at: S.optional(S.String),
|
|
1506
|
+
name: S.optional(S.String),
|
|
1507
|
+
public_key: S.optional(S.String),
|
|
1508
|
+
type: S.optional(S.String),
|
|
1509
|
+
updated_at: S.optional(S.String),
|
|
1510
|
+
})).annotate({ identifier: "SecretKey" });
|
|
1511
|
+
export const GetVolumeByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1379
1512
|
app_name: S.String.pipe(T.Label()),
|
|
1380
|
-
|
|
1381
|
-
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1382
|
-
show_secrets: S.optional(S.Boolean.pipe(T.Query())),
|
|
1513
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1383
1514
|
}).pipe(T.Http({
|
|
1384
1515
|
method: "GET",
|
|
1385
|
-
uri: "/apps/{app_name}/
|
|
1516
|
+
uri: "/v1/apps/{app_name}/volumes/{volume_id}",
|
|
1386
1517
|
code: 200,
|
|
1387
1518
|
}))).annotate({
|
|
1388
|
-
identifier: "
|
|
1519
|
+
identifier: "GetVolumeByIdRequest",
|
|
1389
1520
|
});
|
|
1390
|
-
export const
|
|
1391
|
-
created_at: S.optional(S.String),
|
|
1392
|
-
digest: S.optional(S.String),
|
|
1393
|
-
name: S.optional(S.String),
|
|
1394
|
-
updated_at: S.optional(S.String),
|
|
1395
|
-
value: S.optional(S.String),
|
|
1396
|
-
})).annotate({ identifier: "AppSecret" });
|
|
1397
|
-
export const SecretkeyDecryptRequestAssociatedDataList = /*@__PURE__*/ S.Array(S.Number);
|
|
1398
|
-
export const SecretkeyDecryptRequestCiphertextList = /*@__PURE__*/ S.Array(S.Number);
|
|
1399
|
-
export const SecretkeyDecryptRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1521
|
+
export const ListAppCertificatesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1400
1522
|
app_name: S.String.pipe(T.Label()),
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
ciphertext: S.optional(SecretkeyDecryptRequestCiphertextList),
|
|
1523
|
+
filter: S.optional(S.String.pipe(T.Query())),
|
|
1524
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1525
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1405
1526
|
}).pipe(T.Http({
|
|
1406
|
-
method: "
|
|
1407
|
-
uri: "/apps/{app_name}/
|
|
1527
|
+
method: "GET",
|
|
1528
|
+
uri: "/v1/apps/{app_name}/certificates",
|
|
1408
1529
|
code: 200,
|
|
1409
1530
|
}))).annotate({
|
|
1410
|
-
identifier: "
|
|
1531
|
+
identifier: "ListAppCertificatesRequest",
|
|
1411
1532
|
});
|
|
1412
|
-
export const
|
|
1413
|
-
|
|
1414
|
-
|
|
1533
|
+
export const CertificateSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1534
|
+
acme_alpn_configured: S.optional(S.Boolean),
|
|
1535
|
+
acme_dns_configured: S.optional(S.Boolean),
|
|
1536
|
+
acme_http_configured: S.optional(S.Boolean),
|
|
1537
|
+
acme_requested: S.optional(S.Boolean),
|
|
1538
|
+
configured: S.optional(S.Boolean),
|
|
1539
|
+
created_at: S.optional(S.String),
|
|
1540
|
+
dns_provider: S.optional(S.String),
|
|
1541
|
+
has_custom_certificate: S.optional(S.Boolean),
|
|
1542
|
+
has_fly_certificate: S.optional(S.Boolean),
|
|
1543
|
+
hostname: S.optional(S.String),
|
|
1544
|
+
ownership_txt_configured: S.optional(S.Boolean),
|
|
1545
|
+
status: S.optional(S.String),
|
|
1546
|
+
updated_at: S.optional(S.String),
|
|
1415
1547
|
})).annotate({
|
|
1416
|
-
identifier: "
|
|
1548
|
+
identifier: "CertificateSummary",
|
|
1549
|
+
});
|
|
1550
|
+
export const ListCertificatesResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateSummary);
|
|
1551
|
+
export const ListCertificatesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1552
|
+
certificates: S.optional(ListCertificatesResponseCertificatesList),
|
|
1553
|
+
next_cursor: S.optional(S.String),
|
|
1554
|
+
total_count: S.optional(S.Number),
|
|
1555
|
+
})).annotate({
|
|
1556
|
+
identifier: "ListCertificatesResponse",
|
|
1417
1557
|
});
|
|
1418
|
-
export const
|
|
1558
|
+
export const ListAppIPAssignmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1419
1559
|
app_name: S.String.pipe(T.Label()),
|
|
1420
|
-
secret_name: S.String.pipe(T.Label()),
|
|
1421
1560
|
}).pipe(T.Http({
|
|
1422
|
-
method: "
|
|
1423
|
-
uri: "/apps/{app_name}/
|
|
1561
|
+
method: "GET",
|
|
1562
|
+
uri: "/v1/apps/{app_name}/ip_assignments",
|
|
1424
1563
|
code: 200,
|
|
1425
1564
|
}))).annotate({
|
|
1426
|
-
identifier: "
|
|
1565
|
+
identifier: "ListAppIPAssignmentsRequest",
|
|
1427
1566
|
});
|
|
1428
|
-
export const
|
|
1429
|
-
|
|
1430
|
-
|
|
1567
|
+
export const IPAssignment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1568
|
+
created_at: S.optional(S.String),
|
|
1569
|
+
egress: S.optional(S.Boolean),
|
|
1570
|
+
ip: S.optional(S.String),
|
|
1571
|
+
region: S.optional(S.String),
|
|
1572
|
+
service_name: S.optional(S.String),
|
|
1573
|
+
shared: S.optional(S.Boolean),
|
|
1574
|
+
type: S.optional(S.String),
|
|
1575
|
+
})).annotate({ identifier: "IPAssignment" });
|
|
1576
|
+
export const ListIPAssignmentsResponseIpsList = /*@__PURE__*/ S.Array(IPAssignment);
|
|
1577
|
+
export const ListIPAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1578
|
+
ips: S.optional(ListIPAssignmentsResponseIpsList),
|
|
1431
1579
|
})).annotate({
|
|
1432
|
-
identifier: "
|
|
1580
|
+
identifier: "ListIPAssignmentsResponse",
|
|
1581
|
+
});
|
|
1582
|
+
export const ListAppsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1583
|
+
org_slug: S.String.pipe(T.Query()),
|
|
1584
|
+
app_role: S.optional(S.String.pipe(T.Query())),
|
|
1585
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/apps", code: 200 }))).annotate({
|
|
1586
|
+
identifier: "ListAppsRequest",
|
|
1587
|
+
});
|
|
1588
|
+
export const ListAppsResponseAppsList = /*@__PURE__*/ S.Array(App);
|
|
1589
|
+
export const ListAppsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1590
|
+
apps: S.optional(ListAppsResponseAppsList),
|
|
1591
|
+
total_apps: S.optional(S.Number),
|
|
1592
|
+
})).annotate({
|
|
1593
|
+
identifier: "ListAppsResponse",
|
|
1433
1594
|
});
|
|
1434
|
-
export const
|
|
1435
|
-
export const SecretkeyEncryptRequestPlaintextList = /*@__PURE__*/ S.Array(S.Number);
|
|
1436
|
-
export const SecretkeyEncryptRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1595
|
+
export const ListMachineEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1437
1596
|
app_name: S.String.pipe(T.Label()),
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
associated_data: S.optional(SecretkeyEncryptRequestAssociatedDataList),
|
|
1441
|
-
plaintext: S.optional(SecretkeyEncryptRequestPlaintextList),
|
|
1597
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1598
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1442
1599
|
}).pipe(T.Http({
|
|
1443
|
-
method: "
|
|
1444
|
-
uri: "/apps/{app_name}/
|
|
1600
|
+
method: "GET",
|
|
1601
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/events",
|
|
1445
1602
|
code: 200,
|
|
1446
1603
|
}))).annotate({
|
|
1447
|
-
identifier: "
|
|
1604
|
+
identifier: "ListMachineEventsRequest",
|
|
1448
1605
|
});
|
|
1449
|
-
export const
|
|
1450
|
-
export const
|
|
1451
|
-
|
|
1452
|
-
})).annotate({
|
|
1453
|
-
identifier: "EncryptSecretkeyResponse",
|
|
1606
|
+
export const ListMachineEventsResponseBodyList = /*@__PURE__*/ S.Array(MachineEvent);
|
|
1607
|
+
export const ListMachineEventsResponse = /*@__PURE__*/ S.suspend(() => ListMachineEventsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1608
|
+
identifier: "ListMachineEventsResponse",
|
|
1454
1609
|
});
|
|
1455
|
-
export const
|
|
1456
|
-
export const SecretkeyGenerateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1610
|
+
export const ListMachineProcessesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1457
1611
|
app_name: S.String.pipe(T.Label()),
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1612
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1613
|
+
sort_by: S.optional(S.String.pipe(T.Query())),
|
|
1614
|
+
order: S.optional(S.String.pipe(T.Query())),
|
|
1461
1615
|
}).pipe(T.Http({
|
|
1462
|
-
method: "
|
|
1463
|
-
uri: "/apps/{app_name}/
|
|
1616
|
+
method: "GET",
|
|
1617
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/ps",
|
|
1464
1618
|
code: 200,
|
|
1465
1619
|
}))).annotate({
|
|
1466
|
-
identifier: "
|
|
1620
|
+
identifier: "ListMachineProcessesRequest",
|
|
1467
1621
|
});
|
|
1468
|
-
export const
|
|
1469
|
-
|
|
1470
|
-
|
|
1622
|
+
export const ListenSocket = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1623
|
+
address: S.optional(S.String),
|
|
1624
|
+
proto: S.optional(S.String),
|
|
1625
|
+
})).annotate({ identifier: "ListenSocket" });
|
|
1626
|
+
export const ProcessStatListenSocketsList = /*@__PURE__*/ S.Array(ListenSocket);
|
|
1627
|
+
export const ProcessStat = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1628
|
+
command: S.optional(S.String),
|
|
1629
|
+
cpu: S.optional(S.Number),
|
|
1630
|
+
directory: S.optional(S.String),
|
|
1631
|
+
listen_sockets: S.optional(ProcessStatListenSocketsList),
|
|
1632
|
+
pid: S.optional(S.Number),
|
|
1633
|
+
rss: S.optional(S.Number),
|
|
1634
|
+
rtime: S.optional(S.Number),
|
|
1635
|
+
stime: S.optional(S.Number),
|
|
1636
|
+
})).annotate({ identifier: "ProcessStat" });
|
|
1637
|
+
export const ListMachineProcessesResponseBodyList = /*@__PURE__*/ S.Array(ProcessStat);
|
|
1638
|
+
export const ListMachineProcessesResponse = /*@__PURE__*/ S.suspend(() => ListMachineProcessesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1639
|
+
identifier: "ListMachineProcessesResponse",
|
|
1640
|
+
});
|
|
1641
|
+
export const ListMachinesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1642
|
+
app_name: S.String.pipe(T.Label()),
|
|
1643
|
+
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1644
|
+
include_leases: S.optional(S.Boolean.pipe(T.Query())),
|
|
1645
|
+
region: S.optional(S.String.pipe(T.Query())),
|
|
1646
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
1647
|
+
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1648
|
+
metadata__key_: S.optional(S.String.pipe(T.Query("metadata.{key}"))),
|
|
1649
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines", code: 200 }))).annotate({
|
|
1650
|
+
identifier: "ListMachinesRequest",
|
|
1651
|
+
});
|
|
1652
|
+
export const ListMachinesResponseBodyList = /*@__PURE__*/ S.Array(Machine);
|
|
1653
|
+
export const ListMachinesResponse = /*@__PURE__*/ S.suspend(() => ListMachinesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1654
|
+
identifier: "ListMachinesResponse",
|
|
1655
|
+
});
|
|
1656
|
+
export const ListMachinesOrgRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1657
|
+
org_slug: S.String.pipe(T.Label()),
|
|
1658
|
+
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1659
|
+
region: S.optional(S.String.pipe(T.Query())),
|
|
1660
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
1661
|
+
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1662
|
+
updated_after: S.optional(S.String.pipe(T.Query())),
|
|
1663
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1664
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1665
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/orgs/{org_slug}/machines", code: 200 }))).annotate({
|
|
1666
|
+
identifier: "ListMachinesOrgRequest",
|
|
1667
|
+
});
|
|
1668
|
+
export const OrgMachinesResponseErrorRegionsList = /*@__PURE__*/ S.Array(S.String);
|
|
1669
|
+
export const MachineOverviewConfigMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1670
|
+
export const MachineOverviewConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1671
|
+
guest: S.optional(FlyMachineGuest),
|
|
1672
|
+
image: S.optional(S.String),
|
|
1673
|
+
metadata: S.optional(MachineOverviewConfigMetadataMap),
|
|
1674
|
+
})).annotate({
|
|
1675
|
+
identifier: "MachineOverviewConfig",
|
|
1676
|
+
});
|
|
1677
|
+
export const OrgMachine = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1678
|
+
app_name: S.optional(S.String),
|
|
1679
|
+
config: S.optional(MachineOverviewConfig),
|
|
1471
1680
|
created_at: S.optional(S.String),
|
|
1681
|
+
id: S.optional(S.String),
|
|
1472
1682
|
name: S.optional(S.String),
|
|
1473
|
-
|
|
1474
|
-
|
|
1683
|
+
private_ip: S.optional(S.String),
|
|
1684
|
+
region: S.optional(S.String),
|
|
1685
|
+
state: S.optional(S.String),
|
|
1475
1686
|
updated_at: S.optional(S.String),
|
|
1476
|
-
version: S.optional(S.
|
|
1687
|
+
version: S.optional(S.String),
|
|
1688
|
+
})).annotate({ identifier: "OrgMachine" });
|
|
1689
|
+
export const OrgMachinesResponseMachinesList = /*@__PURE__*/ S.Array(OrgMachine);
|
|
1690
|
+
export const OrgMachinesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1691
|
+
error_regions: S.optional(OrgMachinesResponseErrorRegionsList),
|
|
1692
|
+
last_machine_id: S.optional(S.String),
|
|
1693
|
+
last_updated_at: S.optional(S.String),
|
|
1694
|
+
machines: S.optional(OrgMachinesResponseMachinesList),
|
|
1695
|
+
next_cursor: S.optional(S.String),
|
|
1477
1696
|
})).annotate({
|
|
1478
|
-
identifier: "
|
|
1697
|
+
identifier: "OrgMachinesResponse",
|
|
1479
1698
|
});
|
|
1480
|
-
export const
|
|
1699
|
+
export const ListMachineVersionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1481
1700
|
app_name: S.String.pipe(T.Label()),
|
|
1482
|
-
|
|
1483
|
-
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1701
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1484
1702
|
}).pipe(T.Http({
|
|
1485
1703
|
method: "GET",
|
|
1486
|
-
uri: "/apps/{app_name}/
|
|
1704
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/versions",
|
|
1487
1705
|
code: 200,
|
|
1488
1706
|
}))).annotate({
|
|
1489
|
-
identifier: "
|
|
1707
|
+
identifier: "ListMachineVersionsRequest",
|
|
1490
1708
|
});
|
|
1491
|
-
export const
|
|
1492
|
-
|
|
1709
|
+
export const MachineVersion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1710
|
+
user_config: S.optional(FlyMachineConfig),
|
|
1711
|
+
version: S.optional(S.String),
|
|
1712
|
+
})).annotate({ identifier: "MachineVersion" });
|
|
1713
|
+
export const ListMachineVersionsResponseBodyList = /*@__PURE__*/ S.Array(MachineVersion);
|
|
1714
|
+
export const ListMachineVersionsResponse = /*@__PURE__*/ S.suspend(() => ListMachineVersionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1715
|
+
identifier: "ListMachineVersionsResponse",
|
|
1716
|
+
});
|
|
1717
|
+
export const ListPostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1718
|
+
org_slug: S.String.pipe(T.Query()),
|
|
1719
|
+
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1720
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/postgres", code: 200 }))).annotate({
|
|
1721
|
+
identifier: "ListPostgresRequest",
|
|
1722
|
+
});
|
|
1723
|
+
export const PostgresClusterSummaryAttachedAppsList = /*@__PURE__*/ S.Array(PostgresAttachedApp);
|
|
1724
|
+
export const PostgresClusterSummaryPlan = S.String;
|
|
1725
|
+
export const PostgresClusterSummaryStatus = S.String;
|
|
1726
|
+
export const PostgresClusterSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1727
|
+
attached_apps: S.optional(PostgresClusterSummaryAttachedAppsList),
|
|
1493
1728
|
created_at: S.optional(S.String),
|
|
1729
|
+
deleted_at: S.optional(S.String),
|
|
1730
|
+
id: S.optional(S.String),
|
|
1494
1731
|
name: S.optional(S.String),
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
})).annotate({
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1732
|
+
plan: S.optional(PostgresClusterSummaryPlan),
|
|
1733
|
+
region: S.optional(S.String),
|
|
1734
|
+
status: S.optional(PostgresClusterSummaryStatus),
|
|
1735
|
+
})).annotate({
|
|
1736
|
+
identifier: "PostgresClusterSummary",
|
|
1737
|
+
});
|
|
1738
|
+
export const ListPostgresClustersResponseDataList = /*@__PURE__*/ S.Array(PostgresClusterSummary);
|
|
1739
|
+
export const ListPostgresClustersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1740
|
+
data: S.optional(ListPostgresClustersResponseDataList),
|
|
1741
|
+
})).annotate({
|
|
1742
|
+
identifier: "ListPostgresClustersResponse",
|
|
1743
|
+
});
|
|
1744
|
+
export const ListPostgresBackupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1745
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1505
1746
|
}).pipe(T.Http({
|
|
1506
|
-
method: "
|
|
1507
|
-
uri: "/
|
|
1747
|
+
method: "GET",
|
|
1748
|
+
uri: "/v1/postgres/{postgres_cluster_id}/backups",
|
|
1508
1749
|
code: 200,
|
|
1509
1750
|
}))).annotate({
|
|
1510
|
-
identifier: "
|
|
1751
|
+
identifier: "ListPostgresBackupsRequest",
|
|
1511
1752
|
});
|
|
1512
|
-
export const
|
|
1513
|
-
export const
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1753
|
+
export const PostgresBackupType = S.String;
|
|
1754
|
+
export const PostgresBackup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1755
|
+
finished_at: S.optional(S.String),
|
|
1756
|
+
id: S.optional(S.String),
|
|
1757
|
+
size_bytes: S.optional(S.Number),
|
|
1758
|
+
started_at: S.optional(S.String),
|
|
1759
|
+
status: S.optional(S.String),
|
|
1760
|
+
type: S.optional(PostgresBackupType),
|
|
1761
|
+
})).annotate({ identifier: "PostgresBackup" });
|
|
1762
|
+
export const ListPostgresBackupsResponseDataList = /*@__PURE__*/ S.Array(PostgresBackup);
|
|
1763
|
+
export const ListPostgresBackupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1764
|
+
data: S.optional(ListPostgresBackupsResponseDataList),
|
|
1765
|
+
})).annotate({
|
|
1766
|
+
identifier: "ListPostgresBackupsResponse",
|
|
1767
|
+
});
|
|
1768
|
+
export const ListPostgresDatabasesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1769
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1518
1770
|
}).pipe(T.Http({
|
|
1519
|
-
method: "
|
|
1520
|
-
uri: "/
|
|
1771
|
+
method: "GET",
|
|
1772
|
+
uri: "/v1/postgres/{postgres_cluster_id}/databases",
|
|
1521
1773
|
code: 200,
|
|
1522
1774
|
}))).annotate({
|
|
1523
|
-
identifier: "
|
|
1775
|
+
identifier: "ListPostgresDatabasesRequest",
|
|
1524
1776
|
});
|
|
1525
|
-
export const
|
|
1526
|
-
export const
|
|
1527
|
-
|
|
1777
|
+
export const ListPostgresDatabasesResponseDataList = /*@__PURE__*/ S.Array(PostgresDatabase);
|
|
1778
|
+
export const ListPostgresDatabasesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1779
|
+
data: S.optional(ListPostgresDatabasesResponseDataList),
|
|
1528
1780
|
})).annotate({
|
|
1529
|
-
identifier: "
|
|
1781
|
+
identifier: "ListPostgresDatabasesResponse",
|
|
1782
|
+
});
|
|
1783
|
+
export const ListPostgresExtensionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1784
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1785
|
+
database_name: S.String.pipe(T.Label()),
|
|
1786
|
+
}).pipe(T.Http({
|
|
1787
|
+
method: "GET",
|
|
1788
|
+
uri: "/v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions",
|
|
1789
|
+
code: 200,
|
|
1790
|
+
}))).annotate({
|
|
1791
|
+
identifier: "ListPostgresExtensionsRequest",
|
|
1792
|
+
});
|
|
1793
|
+
export const PostgresInstalledExtension = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1794
|
+
schema: S.optional(S.String),
|
|
1795
|
+
version: S.optional(S.String),
|
|
1796
|
+
})).annotate({
|
|
1797
|
+
identifier: "PostgresInstalledExtension",
|
|
1798
|
+
});
|
|
1799
|
+
export const PostgresExtension = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1800
|
+
default_version: S.optional(S.String),
|
|
1801
|
+
description: S.optional(S.String),
|
|
1802
|
+
installed: S.optional(PostgresInstalledExtension),
|
|
1803
|
+
name: S.optional(S.String),
|
|
1804
|
+
system: S.optional(S.Boolean),
|
|
1805
|
+
})).annotate({
|
|
1806
|
+
identifier: "PostgresExtension",
|
|
1807
|
+
});
|
|
1808
|
+
export const ListPostgresExtensionsResponseDataList = /*@__PURE__*/ S.Array(PostgresExtension);
|
|
1809
|
+
export const ListPostgresExtensionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1810
|
+
data: S.optional(ListPostgresExtensionsResponseDataList),
|
|
1811
|
+
})).annotate({
|
|
1812
|
+
identifier: "ListPostgresExtensionsResponse",
|
|
1813
|
+
});
|
|
1814
|
+
export const ListPostgresUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1815
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1816
|
+
}).pipe(T.Http({
|
|
1817
|
+
method: "GET",
|
|
1818
|
+
uri: "/v1/postgres/{postgres_cluster_id}/users",
|
|
1819
|
+
code: 200,
|
|
1820
|
+
}))).annotate({
|
|
1821
|
+
identifier: "ListPostgresUsersRequest",
|
|
1822
|
+
});
|
|
1823
|
+
export const ListPostgresUsersResponseDataList = /*@__PURE__*/ S.Array(PostgresUser);
|
|
1824
|
+
export const ListPostgresUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1825
|
+
data: S.optional(ListPostgresUsersResponseDataList),
|
|
1826
|
+
})).annotate({
|
|
1827
|
+
identifier: "ListPostgresUsersResponse",
|
|
1530
1828
|
});
|
|
1531
|
-
export const
|
|
1829
|
+
export const ListSecretKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1532
1830
|
app_name: S.String.pipe(T.Label()),
|
|
1533
1831
|
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1534
1832
|
types: S.optional(S.String.pipe(T.Query())),
|
|
1535
|
-
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/secretkeys", code: 200 }))).annotate({
|
|
1536
|
-
identifier: "
|
|
1833
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secretkeys", code: 200 }))).annotate({
|
|
1834
|
+
identifier: "ListSecretKeysRequest",
|
|
1537
1835
|
});
|
|
1538
1836
|
export const SecretKeysSecretKeysList = /*@__PURE__*/ S.Array(SecretKey);
|
|
1539
1837
|
export const SecretKeys = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1540
1838
|
secret_keys: S.optional(SecretKeysSecretKeysList),
|
|
1541
1839
|
})).annotate({ identifier: "SecretKeys" });
|
|
1542
|
-
export const
|
|
1543
|
-
export const SecretkeyVerifyRequestSignatureList = /*@__PURE__*/ S.Array(S.Number);
|
|
1544
|
-
export const SecretkeyVerifyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1545
|
-
app_name: S.String.pipe(T.Label()),
|
|
1546
|
-
secret_name: S.String.pipe(T.Label()),
|
|
1547
|
-
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1548
|
-
plaintext: S.optional(SecretkeyVerifyRequestPlaintextList),
|
|
1549
|
-
signature: S.optional(SecretkeyVerifyRequestSignatureList),
|
|
1550
|
-
}).pipe(T.Http({
|
|
1551
|
-
method: "POST",
|
|
1552
|
-
uri: "/apps/{app_name}/secretkeys/{secret_name}/verify",
|
|
1553
|
-
code: 200,
|
|
1554
|
-
}))).annotate({
|
|
1555
|
-
identifier: "SecretkeyVerifyRequest",
|
|
1556
|
-
});
|
|
1557
|
-
export const SecretkeyVerifyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1558
|
-
identifier: "SecretkeyVerifyResponse",
|
|
1559
|
-
});
|
|
1560
|
-
export const SecretsListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1840
|
+
export const ListSecretsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1561
1841
|
app_name: S.String.pipe(T.Label()),
|
|
1562
1842
|
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1563
1843
|
show_secrets: S.optional(S.Boolean.pipe(T.Query())),
|
|
1564
|
-
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/secrets", code: 200 }))).annotate({
|
|
1565
|
-
identifier: "
|
|
1844
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secrets", code: 200 }))).annotate({
|
|
1845
|
+
identifier: "ListSecretsRequest",
|
|
1566
1846
|
});
|
|
1567
1847
|
export const AppSecretsSecretsList = /*@__PURE__*/ S.Array(AppSecret);
|
|
1568
1848
|
export const AppSecrets = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1569
1849
|
secrets: S.optional(AppSecretsSecretsList),
|
|
1570
1850
|
})).annotate({ identifier: "AppSecrets" });
|
|
1571
|
-
export const
|
|
1572
|
-
export const SecretsUpdateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1851
|
+
export const ListVolumesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1573
1852
|
app_name: S.String.pipe(T.Label()),
|
|
1574
|
-
|
|
1575
|
-
}).pipe(T.Http({ method: "
|
|
1576
|
-
identifier: "
|
|
1853
|
+
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1854
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/volumes", code: 200 }))).annotate({
|
|
1855
|
+
identifier: "ListVolumesRequest",
|
|
1577
1856
|
});
|
|
1578
|
-
export const
|
|
1579
|
-
export const
|
|
1580
|
-
|
|
1581
|
-
secrets: S.optional(AppSecretsUpdateRespSecretsList),
|
|
1582
|
-
version: S.optional(S.Number),
|
|
1583
|
-
})).annotate({
|
|
1584
|
-
identifier: "AppSecretsUpdateResp",
|
|
1857
|
+
export const ListVolumesResponseBodyList = /*@__PURE__*/ S.Array(Volume);
|
|
1858
|
+
export const ListVolumesResponse = /*@__PURE__*/ S.suspend(() => ListVolumesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1859
|
+
identifier: "ListVolumesResponse",
|
|
1585
1860
|
});
|
|
1586
|
-
export const
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1861
|
+
export const ListVolumeSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1862
|
+
app_name: S.String.pipe(T.Label()),
|
|
1863
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1864
|
+
}).pipe(T.Http({
|
|
1865
|
+
method: "GET",
|
|
1866
|
+
uri: "/v1/apps/{app_name}/volumes/{volume_id}/snapshots",
|
|
1867
|
+
code: 200,
|
|
1868
|
+
}))).annotate({
|
|
1869
|
+
identifier: "ListVolumeSnapshotsRequest",
|
|
1590
1870
|
});
|
|
1591
|
-
export const
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
})).annotate({ identifier: "MacaroonNonce" });
|
|
1604
|
-
export const RootVerifiedTokenPermissionTokenList = /*@__PURE__*/ S.Array(S.Number);
|
|
1605
|
-
export const RootVerifiedToken = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1606
|
-
caveats: S.optional(MacaroonCaveatSet),
|
|
1607
|
-
header: S.optional(S.String),
|
|
1608
|
-
nonce: S.optional(MacaroonNonce),
|
|
1609
|
-
permission_token: S.optional(RootVerifiedTokenPermissionTokenList),
|
|
1610
|
-
})).annotate({
|
|
1611
|
-
identifier: "RootVerifiedToken",
|
|
1871
|
+
export const VolumeSnapshot = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1872
|
+
created_at: S.optional(S.String),
|
|
1873
|
+
digest: S.optional(S.String),
|
|
1874
|
+
id: S.optional(S.String),
|
|
1875
|
+
retention_days: S.optional(S.Number),
|
|
1876
|
+
size: S.optional(S.Number),
|
|
1877
|
+
status: S.optional(S.String),
|
|
1878
|
+
volume_size: S.optional(S.Number),
|
|
1879
|
+
})).annotate({ identifier: "VolumeSnapshot" });
|
|
1880
|
+
export const ListVolumeSnapshotsResponseBodyList = /*@__PURE__*/ S.Array(VolumeSnapshot);
|
|
1881
|
+
export const ListVolumeSnapshotsResponse = /*@__PURE__*/ S.suspend(() => ListVolumeSnapshotsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1882
|
+
identifier: "ListVolumeSnapshotsResponse",
|
|
1612
1883
|
});
|
|
1613
|
-
export const
|
|
1614
|
-
|
|
1615
|
-
|
|
1884
|
+
export const ListVolumesOrgRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1885
|
+
org_slug: S.String.pipe(T.Label()),
|
|
1886
|
+
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1887
|
+
region: S.optional(S.String.pipe(T.Query())),
|
|
1888
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
1889
|
+
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1890
|
+
updated_after: S.optional(S.String.pipe(T.Query())),
|
|
1891
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1892
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1893
|
+
}).pipe(T.Http({ method: "GET", uri: "/v1/orgs/{org_slug}/volumes", code: 200 }))).annotate({
|
|
1894
|
+
identifier: "ListVolumesOrgRequest",
|
|
1616
1895
|
});
|
|
1617
|
-
export const
|
|
1618
|
-
export const
|
|
1619
|
-
export const
|
|
1620
|
-
action: S.optional(RessetAction),
|
|
1621
|
-
app_feature: S.optional(S.String),
|
|
1896
|
+
export const OrgVolumeHostStatus = S.String;
|
|
1897
|
+
export const OrgVolumeType = S.String;
|
|
1898
|
+
export const OrgVolume = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1622
1899
|
app_name: S.optional(S.String),
|
|
1623
|
-
command: S.optional(MainTokenAccessCommandList),
|
|
1624
|
-
machine_feature: S.optional(S.String),
|
|
1625
|
-
machine_id: S.optional(S.String),
|
|
1626
|
-
mutation: S.optional(S.String),
|
|
1627
|
-
org_feature: S.optional(S.String),
|
|
1628
|
-
org_slug: S.optional(S.String),
|
|
1629
|
-
source_machine: S.optional(S.String),
|
|
1630
|
-
storage_object: S.optional(S.String),
|
|
1631
|
-
volume_id: S.optional(S.String),
|
|
1632
|
-
})).annotate({
|
|
1633
|
-
identifier: "MainTokenAccess",
|
|
1634
|
-
});
|
|
1635
|
-
export const TokensAuthorizeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1636
|
-
access: S.optional(MainTokenAccess),
|
|
1637
|
-
header: S.optional(S.String),
|
|
1638
|
-
}).pipe(T.Http({ method: "POST", uri: "/tokens/authorize", code: 200 }))).annotate({
|
|
1639
|
-
identifier: "TokensAuthorizeRequest",
|
|
1640
|
-
});
|
|
1641
|
-
export const FlyioAccessCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
1642
|
-
export const FlyioAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1643
|
-
action: S.optional(RessetAction),
|
|
1644
|
-
app_feature: S.optional(S.String),
|
|
1645
|
-
appid: S.optional(S.Number),
|
|
1646
|
-
cluster: S.optional(S.String),
|
|
1647
|
-
command: S.optional(FlyioAccessCommandList),
|
|
1648
|
-
feature: S.optional(S.String),
|
|
1649
|
-
machine: S.optional(S.String),
|
|
1650
|
-
machine_feature: S.optional(S.String),
|
|
1651
|
-
mutation: S.optional(S.String),
|
|
1652
|
-
orgid: S.optional(S.Number),
|
|
1653
|
-
sourceApp: S.optional(S.String),
|
|
1654
|
-
sourceMachine: S.optional(S.String),
|
|
1655
|
-
sourceOrganization: S.optional(S.String),
|
|
1656
|
-
storage_object: S.optional(S.String),
|
|
1657
|
-
volume: S.optional(S.String),
|
|
1658
|
-
})).annotate({ identifier: "FlyioAccess" });
|
|
1659
|
-
export const AuthorizeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1660
|
-
access: S.optional(FlyioAccess),
|
|
1661
|
-
verified_token: S.optional(RootVerifiedToken),
|
|
1662
|
-
})).annotate({
|
|
1663
|
-
identifier: "AuthorizeResponse",
|
|
1664
|
-
});
|
|
1665
|
-
export const TokensRequestKmsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/tokens/kms", code: 200 }))).annotate({
|
|
1666
|
-
identifier: "TokensRequestKmsRequest",
|
|
1667
|
-
});
|
|
1668
|
-
export const TokensRequestKmsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1669
|
-
identifier: "TokensRequestKmsResponse",
|
|
1670
|
-
});
|
|
1671
|
-
export const TokensRequestOIDCRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1672
|
-
aud: S.optional(S.String),
|
|
1673
|
-
aws_principal_tags: S.optional(S.Boolean),
|
|
1674
|
-
}).pipe(T.Http({ method: "POST", uri: "/tokens/oidc", code: 200 }))).annotate({
|
|
1675
|
-
identifier: "TokensRequestOIDCRequest",
|
|
1676
|
-
});
|
|
1677
|
-
export const TokensRequestOIDCResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1678
|
-
identifier: "TokensRequestOIDCResponse",
|
|
1679
|
-
});
|
|
1680
|
-
export const VolumeDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1681
|
-
app_name: S.String.pipe(T.Label()),
|
|
1682
|
-
volume_id: S.String.pipe(T.Label()),
|
|
1683
|
-
}).pipe(T.Http({
|
|
1684
|
-
method: "DELETE",
|
|
1685
|
-
uri: "/apps/{app_name}/volumes/{volume_id}",
|
|
1686
|
-
code: 200,
|
|
1687
|
-
}))).annotate({
|
|
1688
|
-
identifier: "VolumeDeleteRequest",
|
|
1689
|
-
});
|
|
1690
|
-
export const VolumeHostStatus = /*@__PURE__*/ S.String;
|
|
1691
|
-
export const VolumeType = /*@__PURE__*/ S.String;
|
|
1692
|
-
export const Volume = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1693
1900
|
attached_alloc_id: S.optional(S.String),
|
|
1694
1901
|
attached_machine_id: S.optional(S.String),
|
|
1695
1902
|
auto_backup_enabled: S.optional(S.Boolean),
|
|
@@ -1702,759 +1909,1178 @@ export const Volume = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1702
1909
|
created_at: S.optional(S.String),
|
|
1703
1910
|
encrypted: S.optional(S.Boolean),
|
|
1704
1911
|
fstype: S.optional(S.String),
|
|
1705
|
-
host_status: S.optional(
|
|
1912
|
+
host_status: S.optional(OrgVolumeHostStatus),
|
|
1706
1913
|
id: S.optional(S.String),
|
|
1707
1914
|
name: S.optional(S.String),
|
|
1708
1915
|
region: S.optional(S.String),
|
|
1709
1916
|
size_gb: S.optional(S.Number),
|
|
1710
1917
|
snapshot_retention: S.optional(S.Number),
|
|
1711
1918
|
state: S.optional(S.String),
|
|
1712
|
-
type: S.optional(
|
|
1919
|
+
type: S.optional(OrgVolumeType),
|
|
1920
|
+
updated_at: S.optional(S.String),
|
|
1713
1921
|
zone: S.optional(S.String),
|
|
1714
|
-
})).annotate({ identifier: "
|
|
1715
|
-
export const
|
|
1922
|
+
})).annotate({ identifier: "OrgVolume" });
|
|
1923
|
+
export const OrgVolumesResponseVolumesList = /*@__PURE__*/ S.Array(OrgVolume);
|
|
1924
|
+
export const OrgVolumesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1925
|
+
last_updated_at: S.optional(S.String),
|
|
1926
|
+
last_volume_id: S.optional(S.String),
|
|
1927
|
+
next_cursor: S.optional(S.String),
|
|
1928
|
+
volumes: S.optional(OrgVolumesResponseVolumesList),
|
|
1929
|
+
})).annotate({
|
|
1930
|
+
identifier: "OrgVolumesResponse",
|
|
1931
|
+
});
|
|
1932
|
+
export const MachinesReleaseLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1716
1933
|
app_name: S.String.pipe(T.Label()),
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1934
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1935
|
+
}).pipe(T.Http({
|
|
1936
|
+
method: "DELETE",
|
|
1937
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/lease",
|
|
1938
|
+
code: 200,
|
|
1939
|
+
}))).annotate({
|
|
1940
|
+
identifier: "MachinesReleaseLeaseRequest",
|
|
1941
|
+
});
|
|
1942
|
+
export const MachinesReleaseLeaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1943
|
+
identifier: "MachinesReleaseLeaseResponse",
|
|
1944
|
+
});
|
|
1945
|
+
export const PatchMachineMetadataRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1946
|
+
export const PatchMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1947
|
+
app_name: S.String.pipe(T.Label()),
|
|
1948
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1949
|
+
machine_version: S.optional(S.String),
|
|
1950
|
+
metadata: S.optional(PatchMachineMetadataRequestMetadataMap),
|
|
1951
|
+
updated_at: S.optional(S.String),
|
|
1952
|
+
}).pipe(T.Http({
|
|
1953
|
+
method: "PATCH",
|
|
1954
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata",
|
|
1955
|
+
code: 200,
|
|
1956
|
+
}))).annotate({
|
|
1957
|
+
identifier: "PatchMachineMetadataRequest",
|
|
1958
|
+
});
|
|
1959
|
+
export const PatchMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1960
|
+
identifier: "PatchMachineMetadataResponse",
|
|
1961
|
+
});
|
|
1962
|
+
export const PostgresUsersCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1963
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
1964
|
+
username: S.String.pipe(T.Label()),
|
|
1965
|
+
}).pipe(T.Http({
|
|
1966
|
+
method: "GET",
|
|
1967
|
+
uri: "/v1/postgres/{postgres_cluster_id}/users/{username}/credentials",
|
|
1968
|
+
code: 200,
|
|
1969
|
+
}))).annotate({
|
|
1970
|
+
identifier: "PostgresUsersCredentialsRequest",
|
|
1971
|
+
});
|
|
1972
|
+
export const PostgresUserCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1973
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1974
|
+
username: S.optional(S.String),
|
|
1975
|
+
})).annotate({
|
|
1976
|
+
identifier: "PostgresUserCredentials",
|
|
1977
|
+
});
|
|
1978
|
+
export const GetPostgresUserCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1979
|
+
data: S.optional(PostgresUserCredentials),
|
|
1980
|
+
})).annotate({
|
|
1981
|
+
identifier: "GetPostgresUserCredentialsResponse",
|
|
1982
|
+
});
|
|
1983
|
+
export const ReclaimMachineMemoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1984
|
+
app_name: S.String.pipe(T.Label()),
|
|
1985
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1986
|
+
amount_mb: S.optional(S.Number),
|
|
1987
|
+
}).pipe(T.Http({
|
|
1988
|
+
method: "POST",
|
|
1989
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/memory/reclaim",
|
|
1990
|
+
code: 200,
|
|
1991
|
+
}))).annotate({
|
|
1992
|
+
identifier: "ReclaimMachineMemoryRequest",
|
|
1993
|
+
});
|
|
1994
|
+
export const MainReclaimMemoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1995
|
+
actual_mb: S.optional(S.Number),
|
|
1996
|
+
})).annotate({
|
|
1997
|
+
identifier: "MainReclaimMemoryResponse",
|
|
1998
|
+
});
|
|
1999
|
+
export const RequestKmsTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/v1/tokens/kms", code: 200 }))).annotate({
|
|
2000
|
+
identifier: "RequestKmsTokenRequest",
|
|
2001
|
+
});
|
|
2002
|
+
export const RequestKmsTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2003
|
+
identifier: "RequestKmsTokenResponse",
|
|
2004
|
+
});
|
|
2005
|
+
export const RequestOidcTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2006
|
+
aud: S.optional(S.String),
|
|
2007
|
+
aws_principal_tags: S.optional(S.Boolean),
|
|
2008
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/tokens/oidc", code: 200 }))).annotate({
|
|
2009
|
+
identifier: "RequestOidcTokenRequest",
|
|
2010
|
+
});
|
|
2011
|
+
export const RequestOidcTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2012
|
+
identifier: "RequestOidcTokenResponse",
|
|
2013
|
+
});
|
|
2014
|
+
export const RestartMachineRequestSignal = S.String;
|
|
2015
|
+
export const RestartMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2016
|
+
app_name: S.String.pipe(T.Label()),
|
|
2017
|
+
machine_id: S.String.pipe(T.Label()),
|
|
2018
|
+
timeout: S.optional(S.String.pipe(T.Query())),
|
|
2019
|
+
signal: S.optional(RestartMachineRequestSignal.pipe(T.Query())),
|
|
2020
|
+
}).pipe(T.Http({
|
|
2021
|
+
method: "POST",
|
|
2022
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/restart",
|
|
2023
|
+
code: 200,
|
|
2024
|
+
}))).annotate({
|
|
2025
|
+
identifier: "RestartMachineRequest",
|
|
2026
|
+
});
|
|
2027
|
+
export const RestartMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2028
|
+
identifier: "RestartMachineResponse",
|
|
2029
|
+
});
|
|
2030
|
+
export const RestorePostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2031
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
2032
|
+
backup_id: S.optional(S.String),
|
|
2033
|
+
name: S.optional(S.String),
|
|
2034
|
+
pitr_time: S.optional(S.String),
|
|
2035
|
+
}).pipe(T.Http({
|
|
2036
|
+
method: "POST",
|
|
2037
|
+
uri: "/v1/postgres/{postgres_cluster_id}/restore",
|
|
2038
|
+
code: 200,
|
|
2039
|
+
}))).annotate({
|
|
2040
|
+
identifier: "RestorePostgresRequest",
|
|
2041
|
+
});
|
|
2042
|
+
export const RotatePostgresUserPasswordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2043
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
2044
|
+
username: S.String.pipe(T.Label()),
|
|
2045
|
+
kill_sessions: S.optional(S.Boolean),
|
|
2046
|
+
}).pipe(T.Http({
|
|
2047
|
+
method: "POST",
|
|
2048
|
+
uri: "/v1/postgres/{postgres_cluster_id}/users/{username}/rotate_password",
|
|
2049
|
+
code: 200,
|
|
2050
|
+
}))).annotate({
|
|
2051
|
+
identifier: "RotatePostgresUserPasswordRequest",
|
|
2052
|
+
});
|
|
2053
|
+
export const RotatePostgresPasswordResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2054
|
+
data: S.optional(PostgresUserCredentials),
|
|
2055
|
+
})).annotate({
|
|
2056
|
+
identifier: "RotatePostgresPasswordResponse",
|
|
2057
|
+
});
|
|
2058
|
+
export const SetMachineMemoryLimitRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2059
|
+
app_name: S.String.pipe(T.Label()),
|
|
2060
|
+
machine_id: S.String.pipe(T.Label()),
|
|
2061
|
+
limit_mb: S.optional(S.Number),
|
|
2062
|
+
}).pipe(T.Http({
|
|
2063
|
+
method: "PUT",
|
|
2064
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/memory",
|
|
2065
|
+
code: 200,
|
|
2066
|
+
}))).annotate({
|
|
2067
|
+
identifier: "SetMachineMemoryLimitRequest",
|
|
2068
|
+
});
|
|
2069
|
+
export const SetSecretKeyRequestValueList = /*@__PURE__*/ S.Array(S.Number);
|
|
2070
|
+
export const SetSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2071
|
+
app_name: S.String.pipe(T.Label()),
|
|
2072
|
+
secret_name: S.String.pipe(T.Label()),
|
|
2073
|
+
type: S.optional(S.String),
|
|
2074
|
+
value: S.optional(SetSecretKeyRequestValueList),
|
|
2075
|
+
}).pipe(T.Http({
|
|
2076
|
+
method: "POST",
|
|
2077
|
+
uri: "/v1/apps/{app_name}/secretkeys/{secret_name}",
|
|
2078
|
+
code: 200,
|
|
2079
|
+
}))).annotate({
|
|
2080
|
+
identifier: "SetSecretKeyRequest",
|
|
2081
|
+
});
|
|
2082
|
+
export const SignalMachineRequestSignal = S.String;
|
|
2083
|
+
export const SignalMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2084
|
+
app_name: S.String.pipe(T.Label()),
|
|
2085
|
+
machine_id: S.String.pipe(T.Label()),
|
|
2086
|
+
signal: S.optional(SignalMachineRequestSignal),
|
|
2087
|
+
}).pipe(T.Http({
|
|
2088
|
+
method: "POST",
|
|
2089
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/signal",
|
|
2090
|
+
code: 200,
|
|
2091
|
+
}))).annotate({
|
|
2092
|
+
identifier: "SignalMachineRequest",
|
|
2093
|
+
});
|
|
2094
|
+
export const SignalMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2095
|
+
identifier: "SignalMachineResponse",
|
|
2096
|
+
});
|
|
2097
|
+
export const SignSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2098
|
+
app_name: S.String.pipe(T.Label()),
|
|
2099
|
+
secret_name: S.String.pipe(T.Label()),
|
|
2100
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
2101
|
+
plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
2102
|
+
}).pipe(T.Http({
|
|
2103
|
+
method: "POST",
|
|
2104
|
+
uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/sign",
|
|
2105
|
+
code: 200,
|
|
2106
|
+
}))).annotate({
|
|
2107
|
+
identifier: "SignSecretKeyRequest",
|
|
2108
|
+
});
|
|
2109
|
+
export const SignSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2110
|
+
signature: S.optional(S.String),
|
|
2111
|
+
})).annotate({
|
|
2112
|
+
identifier: "SignSecretkeyResponse",
|
|
2113
|
+
});
|
|
2114
|
+
export const StartMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2115
|
+
app_name: S.String.pipe(T.Label()),
|
|
2116
|
+
machine_id: S.String.pipe(T.Label()),
|
|
2117
|
+
}).pipe(T.Http({
|
|
2118
|
+
method: "POST",
|
|
2119
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/start",
|
|
2120
|
+
code: 200,
|
|
2121
|
+
}))).annotate({
|
|
2122
|
+
identifier: "StartMachineRequest",
|
|
2123
|
+
});
|
|
2124
|
+
export const StartMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2125
|
+
identifier: "StartMachineResponse",
|
|
2126
|
+
});
|
|
2127
|
+
export const StopMachineRequestSignal = S.String;
|
|
2128
|
+
export const StopMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2129
|
+
app_name: S.String.pipe(T.Label()),
|
|
2130
|
+
machine_id: S.String.pipe(T.Label()),
|
|
2131
|
+
signal: S.optional(StopMachineRequestSignal),
|
|
2132
|
+
timeout: S.optional(S.String),
|
|
2133
|
+
}).pipe(T.Http({
|
|
2134
|
+
method: "POST",
|
|
2135
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/stop",
|
|
2136
|
+
code: 200,
|
|
2137
|
+
}))).annotate({
|
|
2138
|
+
identifier: "StopMachineRequest",
|
|
2139
|
+
});
|
|
2140
|
+
export const StopMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2141
|
+
identifier: "StopMachineResponse",
|
|
2142
|
+
});
|
|
2143
|
+
export const SuspendMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2144
|
+
app_name: S.String.pipe(T.Label()),
|
|
2145
|
+
machine_id: S.String.pipe(T.Label()),
|
|
2146
|
+
}).pipe(T.Http({
|
|
2147
|
+
method: "POST",
|
|
2148
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/suspend",
|
|
2149
|
+
code: 200,
|
|
2150
|
+
}))).annotate({
|
|
2151
|
+
identifier: "SuspendMachineRequest",
|
|
2152
|
+
});
|
|
2153
|
+
export const SuspendMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2154
|
+
identifier: "SuspendMachineResponse",
|
|
2155
|
+
});
|
|
2156
|
+
export const UncordonMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2157
|
+
app_name: S.String.pipe(T.Label()),
|
|
2158
|
+
machine_id: S.String.pipe(T.Label()),
|
|
2159
|
+
}).pipe(T.Http({
|
|
2160
|
+
method: "POST",
|
|
2161
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/uncordon",
|
|
2162
|
+
code: 200,
|
|
2163
|
+
}))).annotate({
|
|
2164
|
+
identifier: "UncordonMachineRequest",
|
|
2165
|
+
});
|
|
2166
|
+
export const UncordonMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2167
|
+
identifier: "UncordonMachineResponse",
|
|
2168
|
+
});
|
|
2169
|
+
export const UpdateMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2170
|
+
app_name: S.String.pipe(T.Label()),
|
|
2171
|
+
machine_id: S.String.pipe(T.Label()),
|
|
2172
|
+
config: S.optional(FlyMachineConfig),
|
|
2173
|
+
current_version: S.optional(S.String),
|
|
2174
|
+
lease_ttl: S.optional(S.Number),
|
|
2175
|
+
min_secrets_version: S.optional(S.Number),
|
|
1722
2176
|
name: S.optional(S.String),
|
|
1723
2177
|
region: S.optional(S.String),
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
2178
|
+
skip_launch: S.optional(S.Boolean),
|
|
2179
|
+
skip_secrets: S.optional(S.Boolean),
|
|
2180
|
+
skip_service_registration: S.optional(S.Boolean),
|
|
2181
|
+
}).pipe(T.Http({
|
|
2182
|
+
method: "POST",
|
|
2183
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}",
|
|
2184
|
+
code: 200,
|
|
2185
|
+
}))).annotate({
|
|
2186
|
+
identifier: "UpdateMachineRequest",
|
|
1732
2187
|
});
|
|
1733
|
-
export const
|
|
2188
|
+
export const UpdateMachineMetadataRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
2189
|
+
export const UpdateMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1734
2190
|
app_name: S.String.pipe(T.Label()),
|
|
1735
|
-
|
|
1736
|
-
|
|
2191
|
+
machine_id: S.String.pipe(T.Label()),
|
|
2192
|
+
machine_version: S.optional(S.String),
|
|
2193
|
+
metadata: S.optional(UpdateMachineMetadataRequestMetadataMap),
|
|
2194
|
+
updated_at: S.optional(S.String),
|
|
1737
2195
|
}).pipe(T.Http({
|
|
1738
2196
|
method: "PUT",
|
|
1739
|
-
uri: "/apps/{app_name}/
|
|
2197
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata",
|
|
1740
2198
|
code: 200,
|
|
1741
2199
|
}))).annotate({
|
|
1742
|
-
identifier: "
|
|
2200
|
+
identifier: "UpdateMachineMetadataRequest",
|
|
1743
2201
|
});
|
|
1744
|
-
export const
|
|
1745
|
-
|
|
1746
|
-
volume: S.optional(Volume),
|
|
1747
|
-
})).annotate({
|
|
1748
|
-
identifier: "ExtendVolumeResponse",
|
|
2202
|
+
export const UpdateMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2203
|
+
identifier: "UpdateMachineMetadataResponse",
|
|
1749
2204
|
});
|
|
1750
|
-
export const
|
|
1751
|
-
|
|
1752
|
-
|
|
2205
|
+
export const UpdatePostgresUserRoleRequestRole = S.String;
|
|
2206
|
+
export const UpdatePostgresUserRoleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2207
|
+
postgres_cluster_id: S.String.pipe(T.Label()),
|
|
2208
|
+
username: S.String.pipe(T.Label()),
|
|
2209
|
+
role: UpdatePostgresUserRoleRequestRole,
|
|
1753
2210
|
}).pipe(T.Http({
|
|
1754
|
-
method: "
|
|
1755
|
-
uri: "/
|
|
2211
|
+
method: "PATCH",
|
|
2212
|
+
uri: "/v1/postgres/{postgres_cluster_id}/users/{username}",
|
|
1756
2213
|
code: 200,
|
|
1757
2214
|
}))).annotate({
|
|
1758
|
-
identifier: "
|
|
2215
|
+
identifier: "UpdatePostgresUserRoleRequest",
|
|
2216
|
+
});
|
|
2217
|
+
export const UpdatePostgresUserRoleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2218
|
+
identifier: "UpdatePostgresUserRoleResponse",
|
|
1759
2219
|
});
|
|
1760
|
-
export const
|
|
2220
|
+
export const UpdateSecretsRequestValuesMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
2221
|
+
export const UpdateSecretsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1761
2222
|
app_name: S.String.pipe(T.Label()),
|
|
1762
|
-
|
|
1763
|
-
}).pipe(T.Http({ method: "
|
|
1764
|
-
identifier: "
|
|
2223
|
+
values: S.optional(UpdateSecretsRequestValuesMap),
|
|
2224
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/secrets", code: 200 }))).annotate({
|
|
2225
|
+
identifier: "UpdateSecretsRequest",
|
|
1765
2226
|
});
|
|
1766
|
-
export const
|
|
1767
|
-
export const
|
|
1768
|
-
|
|
2227
|
+
export const AppSecretsUpdateRespSecretsList = /*@__PURE__*/ S.Array(AppSecret);
|
|
2228
|
+
export const AppSecretsUpdateResp = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2229
|
+
Version: S.optional(S.Number),
|
|
2230
|
+
secrets: S.optional(AppSecretsUpdateRespSecretsList),
|
|
2231
|
+
version: S.optional(S.Number),
|
|
2232
|
+
})).annotate({
|
|
2233
|
+
identifier: "AppSecretsUpdateResp",
|
|
1769
2234
|
});
|
|
1770
|
-
export const
|
|
2235
|
+
export const UpdateVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1771
2236
|
app_name: S.String.pipe(T.Label()),
|
|
1772
2237
|
volume_id: S.String.pipe(T.Label()),
|
|
2238
|
+
auto_backup_enabled: S.optional(S.Boolean),
|
|
2239
|
+
snapshot_retention: S.optional(S.Number),
|
|
1773
2240
|
}).pipe(T.Http({
|
|
1774
|
-
method: "
|
|
1775
|
-
uri: "/apps/{app_name}/volumes/{volume_id}
|
|
2241
|
+
method: "PUT",
|
|
2242
|
+
uri: "/v1/apps/{app_name}/volumes/{volume_id}",
|
|
1776
2243
|
code: 200,
|
|
1777
2244
|
}))).annotate({
|
|
1778
|
-
identifier: "
|
|
2245
|
+
identifier: "UpdateVolumeRequest",
|
|
1779
2246
|
});
|
|
1780
|
-
export const
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
identifier: "
|
|
2247
|
+
export const UpsertMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2248
|
+
app_name: S.String.pipe(T.Label()),
|
|
2249
|
+
machine_id: S.String.pipe(T.Label()),
|
|
2250
|
+
key: S.String.pipe(T.Label()),
|
|
2251
|
+
updated_at: S.optional(S.String),
|
|
2252
|
+
value: S.optional(S.String),
|
|
2253
|
+
}).pipe(T.Http({
|
|
2254
|
+
method: "POST",
|
|
2255
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
2256
|
+
code: 200,
|
|
2257
|
+
}))).annotate({
|
|
2258
|
+
identifier: "UpsertMachineMetadataRequest",
|
|
1792
2259
|
});
|
|
1793
|
-
export const
|
|
1794
|
-
|
|
1795
|
-
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1796
|
-
region: S.optional(S.String.pipe(T.Query())),
|
|
1797
|
-
state: S.optional(S.String.pipe(T.Query())),
|
|
1798
|
-
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1799
|
-
updated_after: S.optional(S.String.pipe(T.Query())),
|
|
1800
|
-
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1801
|
-
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1802
|
-
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org_slug}/volumes", code: 200 }))).annotate({
|
|
1803
|
-
identifier: "VolumesOrgListRequest",
|
|
2260
|
+
export const UpsertMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2261
|
+
identifier: "UpsertMachineMetadataResponse",
|
|
1804
2262
|
});
|
|
1805
|
-
export const
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
bytes_used: S.optional(S.Number),
|
|
1818
|
-
created_at: S.optional(S.String),
|
|
1819
|
-
encrypted: S.optional(S.Boolean),
|
|
1820
|
-
fstype: S.optional(S.String),
|
|
1821
|
-
host_status: S.optional(OrgVolumeHostStatus),
|
|
1822
|
-
id: S.optional(S.String),
|
|
1823
|
-
name: S.optional(S.String),
|
|
1824
|
-
region: S.optional(S.String),
|
|
1825
|
-
size_gb: S.optional(S.Number),
|
|
1826
|
-
snapshot_retention: S.optional(S.Number),
|
|
1827
|
-
state: S.optional(S.String),
|
|
1828
|
-
type: S.optional(OrgVolumeType),
|
|
1829
|
-
updated_at: S.optional(S.String),
|
|
1830
|
-
zone: S.optional(S.String),
|
|
1831
|
-
})).annotate({ identifier: "OrgVolume" });
|
|
1832
|
-
export const OrgVolumesResponseVolumesList = /*@__PURE__*/ S.Array(OrgVolume);
|
|
1833
|
-
export const OrgVolumesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1834
|
-
last_updated_at: S.optional(S.String),
|
|
1835
|
-
last_volume_id: S.optional(S.String),
|
|
1836
|
-
next_cursor: S.optional(S.String),
|
|
1837
|
-
volumes: S.optional(OrgVolumesResponseVolumesList),
|
|
1838
|
-
})).annotate({
|
|
1839
|
-
identifier: "OrgVolumesResponse",
|
|
2263
|
+
export const VerifySecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2264
|
+
app_name: S.String.pipe(T.Label()),
|
|
2265
|
+
secret_name: S.String.pipe(T.Label()),
|
|
2266
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
2267
|
+
plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
2268
|
+
signature: S.optional(S.String),
|
|
2269
|
+
}).pipe(T.Http({
|
|
2270
|
+
method: "POST",
|
|
2271
|
+
uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/verify",
|
|
2272
|
+
code: 200,
|
|
2273
|
+
}))).annotate({
|
|
2274
|
+
identifier: "VerifySecretKeyRequest",
|
|
1840
2275
|
});
|
|
1841
|
-
export const
|
|
2276
|
+
export const VerifySecretKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
2277
|
+
identifier: "VerifySecretKeyResponse",
|
|
2278
|
+
});
|
|
2279
|
+
export const WaitMachineRequestState = S.String;
|
|
2280
|
+
export const WaitMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1842
2281
|
app_name: S.String.pipe(T.Label()),
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
2282
|
+
machine_id: S.String.pipe(T.Label()),
|
|
2283
|
+
version: S.optional(S.String.pipe(T.Query())),
|
|
2284
|
+
instance_id: S.optional(S.String.pipe(T.Query())),
|
|
2285
|
+
from_event_id: S.optional(S.String.pipe(T.Query())),
|
|
2286
|
+
timeout: S.optional(S.Number.pipe(T.Query())),
|
|
2287
|
+
state: S.optional(WaitMachineRequestState.pipe(T.Query())),
|
|
1846
2288
|
}).pipe(T.Http({
|
|
1847
|
-
method: "
|
|
1848
|
-
uri: "/apps/{app_name}/
|
|
2289
|
+
method: "GET",
|
|
2290
|
+
uri: "/v1/apps/{app_name}/machines/{machine_id}/wait",
|
|
1849
2291
|
code: 200,
|
|
1850
2292
|
}))).annotate({
|
|
1851
|
-
identifier: "
|
|
2293
|
+
identifier: "WaitMachineRequest",
|
|
1852
2294
|
});
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
2295
|
+
export const WaitMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
2296
|
+
event_id: S.optional(S.String),
|
|
2297
|
+
ok: S.optional(S.Boolean),
|
|
2298
|
+
state: S.optional(S.String),
|
|
2299
|
+
version: S.optional(S.String),
|
|
2300
|
+
})).annotate({
|
|
2301
|
+
identifier: "WaitMachineResponse",
|
|
2302
|
+
});
|
|
2303
|
+
/** Authenticate token header Verify a token header without checking resource access. */
|
|
2304
|
+
export const authenticateToken = /*@__PURE__*/ API.make(() => ({
|
|
2305
|
+
input: AuthenticateTokenRequest,
|
|
2306
|
+
output: AuthenticateTokenResponse,
|
|
2307
|
+
errors: [BadRequest],
|
|
1858
2308
|
protocol: FlyIoProtocol,
|
|
1859
2309
|
retry: Retry.Retry,
|
|
1860
2310
|
}));
|
|
1861
|
-
/**
|
|
1862
|
-
export const
|
|
1863
|
-
input:
|
|
1864
|
-
output:
|
|
1865
|
-
errors: [
|
|
2311
|
+
/** Authorize token for resource access Verify a token header and validate it against a requested access scope. */
|
|
2312
|
+
export const authorizeToken = /*@__PURE__*/ API.make(() => ({
|
|
2313
|
+
input: AuthorizeTokenRequest,
|
|
2314
|
+
output: AuthorizeResponse,
|
|
2315
|
+
errors: [BadRequest],
|
|
1866
2316
|
protocol: FlyIoProtocol,
|
|
1867
2317
|
retry: Retry.Retry,
|
|
1868
2318
|
}));
|
|
1869
2319
|
/** Check DNS and re-validate certificate */
|
|
1870
|
-
export const
|
|
1871
|
-
input:
|
|
2320
|
+
export const checkAppCertificate = /*@__PURE__*/ API.make(() => ({
|
|
2321
|
+
input: CheckAppCertificateRequest,
|
|
1872
2322
|
output: CertificateCheckResponse,
|
|
1873
2323
|
errors: [BadRequest, Forbidden, NotFound],
|
|
1874
2324
|
protocol: FlyIoProtocol,
|
|
1875
2325
|
retry: Retry.Retry,
|
|
1876
2326
|
}));
|
|
2327
|
+
/** 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. */
|
|
2328
|
+
export const cordonMachine = /*@__PURE__*/ API.make(() => ({
|
|
2329
|
+
input: CordonMachineRequest,
|
|
2330
|
+
output: CordonMachineResponse,
|
|
2331
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2332
|
+
protocol: FlyIoProtocol,
|
|
2333
|
+
retry: Retry.Retry,
|
|
2334
|
+
}));
|
|
2335
|
+
/** Create App Create an app with the specified details in the request body. */
|
|
2336
|
+
export const createApp = /*@__PURE__*/ API.make(() => ({
|
|
2337
|
+
input: CreateAppRequest,
|
|
2338
|
+
output: CreateAppResponse,
|
|
2339
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
2340
|
+
protocol: FlyIoProtocol,
|
|
2341
|
+
retry: Retry.Retry,
|
|
2342
|
+
}));
|
|
2343
|
+
/** Request ACME certificate */
|
|
2344
|
+
export const createAppAcmeCertificate = /*@__PURE__*/ API.make(() => ({
|
|
2345
|
+
input: CreateAppAcmeCertificateRequest,
|
|
2346
|
+
output: CertificateDetail,
|
|
2347
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
2348
|
+
protocol: FlyIoProtocol,
|
|
2349
|
+
retry: Retry.Retry,
|
|
2350
|
+
}));
|
|
1877
2351
|
/** Upload custom certificate */
|
|
1878
|
-
export const
|
|
1879
|
-
input:
|
|
2352
|
+
export const createAppCustomCertificate = /*@__PURE__*/ API.make(() => ({
|
|
2353
|
+
input: CreateAppCustomCertificateRequest,
|
|
1880
2354
|
output: CertificateDetail,
|
|
1881
|
-
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
|
|
2355
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
|
|
1882
2356
|
protocol: FlyIoProtocol,
|
|
1883
2357
|
retry: Retry.Retry,
|
|
1884
2358
|
}));
|
|
1885
|
-
/**
|
|
1886
|
-
export const
|
|
1887
|
-
input:
|
|
1888
|
-
output:
|
|
2359
|
+
/** Create App deploy token */
|
|
2360
|
+
export const createAppDeployToken = /*@__PURE__*/ API.make(() => ({
|
|
2361
|
+
input: CreateAppDeployTokenRequest,
|
|
2362
|
+
output: CreateAppDeployTokenResponse,
|
|
2363
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2364
|
+
protocol: FlyIoProtocol,
|
|
2365
|
+
retry: Retry.Retry,
|
|
2366
|
+
}));
|
|
2367
|
+
/** Assign new IP address to app */
|
|
2368
|
+
export const createAppIPAssignment = /*@__PURE__*/ API.make(() => ({
|
|
2369
|
+
input: CreateAppIPAssignmentRequest,
|
|
2370
|
+
output: AssignIPResponse,
|
|
2371
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2372
|
+
protocol: FlyIoProtocol,
|
|
2373
|
+
retry: Retry.Retry,
|
|
2374
|
+
}));
|
|
2375
|
+
/** 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! */
|
|
2376
|
+
export const createMachine = /*@__PURE__*/ API.make(() => ({
|
|
2377
|
+
input: CreateMachineRequest,
|
|
2378
|
+
output: Machine,
|
|
2379
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2380
|
+
protocol: FlyIoProtocol,
|
|
2381
|
+
retry: Retry.Retry,
|
|
2382
|
+
}));
|
|
2383
|
+
/** 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. */
|
|
2384
|
+
export const createMachineLease = /*@__PURE__*/ API.make(() => ({
|
|
2385
|
+
input: CreateMachineLeaseRequest,
|
|
2386
|
+
output: Lease,
|
|
2387
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2388
|
+
protocol: FlyIoProtocol,
|
|
2389
|
+
retry: Retry.Retry,
|
|
2390
|
+
}));
|
|
2391
|
+
/** 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. */
|
|
2392
|
+
export const createPostgres = /*@__PURE__*/ API.make(() => ({
|
|
2393
|
+
input: CreatePostgresRequest,
|
|
2394
|
+
output: ShowPostgresClusterResponse,
|
|
2395
|
+
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
2396
|
+
protocol: FlyIoProtocol,
|
|
2397
|
+
retry: Retry.Retry,
|
|
2398
|
+
}));
|
|
2399
|
+
/** Attach Cluster to App Attach a specific cluster to a Fly app. The attachment is created if it does not already exist. */
|
|
2400
|
+
export const createPostgresAttachment = /*@__PURE__*/ API.make(() => ({
|
|
2401
|
+
input: CreatePostgresAttachmentRequest,
|
|
2402
|
+
output: CreatePostgresAttachmentResponse,
|
|
2403
|
+
errors: [NotFound],
|
|
2404
|
+
protocol: FlyIoProtocol,
|
|
2405
|
+
retry: Retry.Retry,
|
|
2406
|
+
}));
|
|
2407
|
+
/** Create Backup Create a backup for a specific cluster. The backup runs asynchronously and is rejected if one is already in progress. */
|
|
2408
|
+
export const createPostgresBackup = /*@__PURE__*/ API.make(() => ({
|
|
2409
|
+
input: CreatePostgresBackupRequest,
|
|
2410
|
+
output: CreatePostgresBackupResponse,
|
|
2411
|
+
errors: [NotFound, Conflict],
|
|
2412
|
+
protocol: FlyIoProtocol,
|
|
2413
|
+
retry: Retry.Retry,
|
|
2414
|
+
}));
|
|
2415
|
+
/** Create Database Create a database within a specific cluster. */
|
|
2416
|
+
export const createPostgresDatabase = /*@__PURE__*/ API.make(() => ({
|
|
2417
|
+
input: CreatePostgresDatabaseRequest,
|
|
2418
|
+
output: PostgresDatabaseResponse,
|
|
2419
|
+
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
2420
|
+
protocol: FlyIoProtocol,
|
|
2421
|
+
retry: Retry.Retry,
|
|
2422
|
+
}));
|
|
2423
|
+
/** Create User Create a Postgres user within a specific cluster. Fetch the generated password from the credentials endpoint. */
|
|
2424
|
+
export const createPostgresUser = /*@__PURE__*/ API.make(() => ({
|
|
2425
|
+
input: CreatePostgresUserRequest,
|
|
2426
|
+
output: CreatePostgresUserResponse,
|
|
2427
|
+
errors: [BadRequest, NotFound, Conflict, UnprocessableEntity],
|
|
2428
|
+
protocol: FlyIoProtocol,
|
|
2429
|
+
retry: Retry.Retry,
|
|
2430
|
+
}));
|
|
2431
|
+
/** Create or update Secret */
|
|
2432
|
+
export const createSecret = /*@__PURE__*/ API.make(() => ({
|
|
2433
|
+
input: CreateSecretRequest,
|
|
2434
|
+
output: SetAppSecretResponse,
|
|
2435
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2436
|
+
protocol: FlyIoProtocol,
|
|
2437
|
+
retry: Retry.Retry,
|
|
2438
|
+
}));
|
|
2439
|
+
/** Create Volume Create a volume for a specific app using the details provided in the request body. */
|
|
2440
|
+
export const createVolume = /*@__PURE__*/ API.make(() => ({
|
|
2441
|
+
input: CreateVolumeRequest,
|
|
2442
|
+
output: Volume,
|
|
2443
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2444
|
+
protocol: FlyIoProtocol,
|
|
2445
|
+
retry: Retry.Retry,
|
|
2446
|
+
}));
|
|
2447
|
+
/** Create Snapshot Create a snapshot for a specific volume within an app. */
|
|
2448
|
+
export const createVolumeSnapshot = /*@__PURE__*/ API.make(() => ({
|
|
2449
|
+
input: CreateVolumeSnapshotRequest,
|
|
2450
|
+
output: CreateVolumeSnapshotResponse,
|
|
2451
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2452
|
+
protocol: FlyIoProtocol,
|
|
2453
|
+
retry: Retry.Retry,
|
|
2454
|
+
}));
|
|
2455
|
+
/** Decrypt with a secret key */
|
|
2456
|
+
export const decryptSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2457
|
+
input: DecryptSecretKeyRequest,
|
|
2458
|
+
output: DecryptSecretkeyResponse,
|
|
2459
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2460
|
+
protocol: FlyIoProtocol,
|
|
2461
|
+
retry: Retry.Retry,
|
|
2462
|
+
}));
|
|
2463
|
+
/** Destroy App Delete an app by its name. */
|
|
2464
|
+
export const deleteApp = /*@__PURE__*/ API.make(() => ({
|
|
2465
|
+
input: DeleteAppRequest,
|
|
2466
|
+
output: DeleteAppResponse,
|
|
2467
|
+
errors: [Forbidden, NotFound],
|
|
2468
|
+
protocol: FlyIoProtocol,
|
|
2469
|
+
retry: Retry.Retry,
|
|
2470
|
+
}));
|
|
2471
|
+
/** Remove ACME certificates */
|
|
2472
|
+
export const deleteAppAcmeCertificate = /*@__PURE__*/ API.make(() => ({
|
|
2473
|
+
input: DeleteAppAcmeCertificateRequest,
|
|
2474
|
+
output: CertificateDetail,
|
|
1889
2475
|
errors: [Forbidden, NotFound],
|
|
1890
2476
|
protocol: FlyIoProtocol,
|
|
1891
2477
|
retry: Retry.Retry,
|
|
1892
2478
|
}));
|
|
1893
2479
|
/** Remove certificate */
|
|
1894
|
-
export const
|
|
1895
|
-
input:
|
|
1896
|
-
output:
|
|
2480
|
+
export const deleteAppCertificate = /*@__PURE__*/ API.make(() => ({
|
|
2481
|
+
input: DeleteAppCertificateRequest,
|
|
2482
|
+
output: DeleteAppCertificateResponse,
|
|
1897
2483
|
errors: [Forbidden, NotFound],
|
|
1898
2484
|
protocol: FlyIoProtocol,
|
|
1899
2485
|
retry: Retry.Retry,
|
|
1900
2486
|
}));
|
|
1901
|
-
/**
|
|
1902
|
-
export const
|
|
1903
|
-
input:
|
|
1904
|
-
output:
|
|
2487
|
+
/** Remove custom certificate */
|
|
2488
|
+
export const deleteAppCustomCertificate = /*@__PURE__*/ API.make(() => ({
|
|
2489
|
+
input: DeleteAppCustomCertificateRequest,
|
|
2490
|
+
output: DestroyCustomCertificateResponse,
|
|
1905
2491
|
errors: [Forbidden, NotFound],
|
|
1906
2492
|
protocol: FlyIoProtocol,
|
|
1907
2493
|
retry: Retry.Retry,
|
|
1908
2494
|
}));
|
|
1909
|
-
/**
|
|
1910
|
-
export const
|
|
1911
|
-
input:
|
|
1912
|
-
output:
|
|
2495
|
+
/** Remove IP assignment from app */
|
|
2496
|
+
export const deleteAppIPAssignment = /*@__PURE__*/ API.make(() => ({
|
|
2497
|
+
input: DeleteAppIPAssignmentRequest,
|
|
2498
|
+
output: DeleteAppIPAssignmentResponse,
|
|
1913
2499
|
errors: [Forbidden, NotFound],
|
|
1914
2500
|
protocol: FlyIoProtocol,
|
|
1915
2501
|
retry: Retry.Retry,
|
|
1916
2502
|
}));
|
|
1917
|
-
/**
|
|
1918
|
-
export const
|
|
1919
|
-
input:
|
|
1920
|
-
output:
|
|
1921
|
-
errors: [
|
|
2503
|
+
/** Destroy Machine Delete a specific Machine within an app by Machine ID, with an optional force parameter to force kill the Machine if it's running. */
|
|
2504
|
+
export const deleteMachine = /*@__PURE__*/ API.make(() => ({
|
|
2505
|
+
input: DeleteMachineRequest,
|
|
2506
|
+
output: DeleteMachineResponse,
|
|
2507
|
+
errors: [Forbidden, NotFound, Conflict],
|
|
1922
2508
|
protocol: FlyIoProtocol,
|
|
1923
2509
|
retry: Retry.Retry,
|
|
1924
2510
|
}));
|
|
1925
|
-
/**
|
|
1926
|
-
export const
|
|
1927
|
-
input:
|
|
1928
|
-
output:
|
|
1929
|
-
errors: [
|
|
2511
|
+
/** Delete Metadata Delete metadata for a specific Machine within an app by providing a metadata key. */
|
|
2512
|
+
export const deleteMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2513
|
+
input: DeleteMachineMetadataRequest,
|
|
2514
|
+
output: DeleteMachineMetadataResponse,
|
|
2515
|
+
errors: [Forbidden, NotFound],
|
|
1930
2516
|
protocol: FlyIoProtocol,
|
|
1931
2517
|
retry: Retry.Retry,
|
|
1932
2518
|
}));
|
|
1933
|
-
/**
|
|
1934
|
-
export const
|
|
1935
|
-
input:
|
|
1936
|
-
output:
|
|
2519
|
+
/** Delete Postgres Cluster Delete a Managed Postgres cluster. The cluster is marked for deletion and removed asynchronously. */
|
|
2520
|
+
export const deletePostgres = /*@__PURE__*/ API.make(() => ({
|
|
2521
|
+
input: DeletePostgresRequest,
|
|
2522
|
+
output: DeletePostgresResponse,
|
|
2523
|
+
errors: [NotFound],
|
|
2524
|
+
protocol: FlyIoProtocol,
|
|
2525
|
+
retry: Retry.Retry,
|
|
2526
|
+
}));
|
|
2527
|
+
/** Detach Cluster from App Detach a specific cluster from a Fly app. */
|
|
2528
|
+
export const deletePostgresAttachment = /*@__PURE__*/ API.make(() => ({
|
|
2529
|
+
input: DeletePostgresAttachmentRequest,
|
|
2530
|
+
output: DeletePostgresAttachmentResponse,
|
|
2531
|
+
errors: [NotFound],
|
|
2532
|
+
protocol: FlyIoProtocol,
|
|
2533
|
+
retry: Retry.Retry,
|
|
2534
|
+
}));
|
|
2535
|
+
/** Drop Database Delete a specific database within a cluster, along with objects that depend on it. */
|
|
2536
|
+
export const deletePostgresDatabase = /*@__PURE__*/ API.make(() => ({
|
|
2537
|
+
input: DeletePostgresDatabaseRequest,
|
|
2538
|
+
output: PostgresDatabaseResponse,
|
|
2539
|
+
errors: [BadRequest, NotFound],
|
|
2540
|
+
protocol: FlyIoProtocol,
|
|
2541
|
+
retry: Retry.Retry,
|
|
2542
|
+
}));
|
|
2543
|
+
/** Delete User Delete a specific Postgres user within a cluster. */
|
|
2544
|
+
export const deletePostgresUser = /*@__PURE__*/ API.make(() => ({
|
|
2545
|
+
input: DeletePostgresUserRequest,
|
|
2546
|
+
output: DeletePostgresUserResponse,
|
|
2547
|
+
errors: [BadRequest, NotFound],
|
|
2548
|
+
protocol: FlyIoProtocol,
|
|
2549
|
+
retry: Retry.Retry,
|
|
2550
|
+
}));
|
|
2551
|
+
/** Delete an app secret */
|
|
2552
|
+
export const deleteSecret = /*@__PURE__*/ API.make(() => ({
|
|
2553
|
+
input: DeleteSecretRequest,
|
|
2554
|
+
output: DeleteAppSecretResponse,
|
|
1937
2555
|
errors: [Forbidden, NotFound],
|
|
1938
2556
|
protocol: FlyIoProtocol,
|
|
1939
2557
|
retry: Retry.Retry,
|
|
1940
2558
|
}));
|
|
1941
|
-
/**
|
|
1942
|
-
export const
|
|
1943
|
-
input:
|
|
1944
|
-
output:
|
|
2559
|
+
/** Delete an app's secret key */
|
|
2560
|
+
export const deleteSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2561
|
+
input: DeleteSecretKeyRequest,
|
|
2562
|
+
output: DeleteSecretkeyResponse,
|
|
1945
2563
|
errors: [Forbidden, NotFound],
|
|
1946
2564
|
protocol: FlyIoProtocol,
|
|
1947
2565
|
retry: Retry.Retry,
|
|
1948
2566
|
}));
|
|
1949
|
-
/**
|
|
1950
|
-
export const
|
|
1951
|
-
input:
|
|
1952
|
-
output:
|
|
2567
|
+
/** Destroy Volume Delete a specific volume within an app by volume ID. */
|
|
2568
|
+
export const deleteVolume = /*@__PURE__*/ API.make(() => ({
|
|
2569
|
+
input: DeleteVolumeRequest,
|
|
2570
|
+
output: Volume,
|
|
2571
|
+
errors: [Forbidden, NotFound, Conflict],
|
|
2572
|
+
protocol: FlyIoProtocol,
|
|
2573
|
+
retry: Retry.Retry,
|
|
2574
|
+
}));
|
|
2575
|
+
/** Disable Extension Disable a specific Postgres extension within a database, optionally dropping objects that depend on it. System extensions cannot be disabled. */
|
|
2576
|
+
export const disablePostgresExtension = /*@__PURE__*/ API.make(() => ({
|
|
2577
|
+
input: DisablePostgresExtensionRequest,
|
|
2578
|
+
output: DisablePostgresExtensionResponse,
|
|
2579
|
+
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
2580
|
+
protocol: FlyIoProtocol,
|
|
2581
|
+
retry: Retry.Retry,
|
|
2582
|
+
}));
|
|
2583
|
+
/** Enable Extension Enable a Postgres extension within a specific database. PostGIS extensions require a PostGIS-enabled cluster. */
|
|
2584
|
+
export const enablePostgresExtension = /*@__PURE__*/ API.make(() => ({
|
|
2585
|
+
input: EnablePostgresExtensionRequest,
|
|
2586
|
+
output: EnablePostgresExtensionResponse,
|
|
2587
|
+
errors: [BadRequest, NotFound, Conflict, UnprocessableEntity],
|
|
2588
|
+
protocol: FlyIoProtocol,
|
|
2589
|
+
retry: Retry.Retry,
|
|
2590
|
+
}));
|
|
2591
|
+
/** Encrypt with a secret key */
|
|
2592
|
+
export const encryptSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2593
|
+
input: EncryptSecretKeyRequest,
|
|
2594
|
+
output: EncryptSecretkeyResponse,
|
|
2595
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2596
|
+
protocol: FlyIoProtocol,
|
|
2597
|
+
retry: Retry.Retry,
|
|
2598
|
+
}));
|
|
2599
|
+
/** Execute Command Execute a command on a specific Machine and return the raw command output bytes. */
|
|
2600
|
+
export const execMachine = /*@__PURE__*/ API.make(() => ({
|
|
2601
|
+
input: ExecMachineRequest,
|
|
2602
|
+
output: Flydv1ExecResponse,
|
|
2603
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2604
|
+
protocol: FlyIoProtocol,
|
|
2605
|
+
retry: Retry.Retry,
|
|
2606
|
+
}));
|
|
2607
|
+
/** Extend Volume Extend a volume's size within an app using the details provided in the request body. */
|
|
2608
|
+
export const extendVolume = /*@__PURE__*/ API.make(() => ({
|
|
2609
|
+
input: ExtendVolumeRequest,
|
|
2610
|
+
output: ExtendVolumeResponse,
|
|
1953
2611
|
errors: [BadRequest, Forbidden, NotFound],
|
|
1954
2612
|
protocol: FlyIoProtocol,
|
|
1955
2613
|
retry: Retry.Retry,
|
|
1956
2614
|
}));
|
|
1957
|
-
/**
|
|
1958
|
-
export const
|
|
1959
|
-
input:
|
|
1960
|
-
output:
|
|
1961
|
-
errors: [
|
|
2615
|
+
/** 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. */
|
|
2616
|
+
export const forkPostgres = /*@__PURE__*/ API.make(() => ({
|
|
2617
|
+
input: ForkPostgresRequest,
|
|
2618
|
+
output: ShowPostgresClusterResponse,
|
|
2619
|
+
errors: [BadRequest, NotFound, Conflict, UnprocessableEntity],
|
|
1962
2620
|
protocol: FlyIoProtocol,
|
|
1963
2621
|
retry: Retry.Retry,
|
|
1964
2622
|
}));
|
|
1965
|
-
/**
|
|
1966
|
-
export const
|
|
1967
|
-
input:
|
|
1968
|
-
output:
|
|
1969
|
-
errors: [Forbidden],
|
|
2623
|
+
/** Generate a random secret key */
|
|
2624
|
+
export const generateSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2625
|
+
input: GenerateSecretKeyRequest,
|
|
2626
|
+
output: SetSecretkeyResponse,
|
|
2627
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
1970
2628
|
protocol: FlyIoProtocol,
|
|
1971
2629
|
retry: Retry.Retry,
|
|
1972
2630
|
}));
|
|
1973
2631
|
/** Get App Retrieve details about a specific app by its name. */
|
|
1974
|
-
export const
|
|
1975
|
-
input:
|
|
2632
|
+
export const getApp = /*@__PURE__*/ API.make(() => ({
|
|
2633
|
+
input: GetAppRequest,
|
|
1976
2634
|
output: App,
|
|
1977
2635
|
errors: [Forbidden, NotFound],
|
|
1978
2636
|
protocol: FlyIoProtocol,
|
|
1979
2637
|
retry: Retry.Retry,
|
|
1980
2638
|
}));
|
|
1981
|
-
/**
|
|
1982
|
-
export const
|
|
1983
|
-
input:
|
|
1984
|
-
output:
|
|
1985
|
-
errors: [
|
|
2639
|
+
/** Get certificate details */
|
|
2640
|
+
export const getAppCertificate = /*@__PURE__*/ API.make(() => ({
|
|
2641
|
+
input: GetAppCertificateRequest,
|
|
2642
|
+
output: CertificateDetail,
|
|
2643
|
+
errors: [Forbidden, NotFound],
|
|
1986
2644
|
protocol: FlyIoProtocol,
|
|
1987
2645
|
retry: Retry.Retry,
|
|
1988
2646
|
}));
|
|
1989
2647
|
/** Get Current Token Information Get information about the current macaroon token(s), including organizations, apps, user identity hashes, and machine restrictions */
|
|
1990
|
-
export const
|
|
1991
|
-
input:
|
|
2648
|
+
export const getCurrentToken = /*@__PURE__*/ API.make(() => ({
|
|
2649
|
+
input: GetCurrentTokenRequest,
|
|
1992
2650
|
output: CurrentTokenResponse,
|
|
1993
|
-
errors: [],
|
|
1994
|
-
protocol: FlyIoProtocol,
|
|
1995
|
-
retry: Retry.Retry,
|
|
1996
|
-
}));
|
|
1997
|
-
/** 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. */
|
|
1998
|
-
export const machinesCordon = /*@__PURE__*/ API.make(() => ({
|
|
1999
|
-
input: MachinesCordonRequest,
|
|
2000
|
-
output: MachinesCordonResponse,
|
|
2001
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
2651
|
+
errors: [Forbidden],
|
|
2002
2652
|
protocol: FlyIoProtocol,
|
|
2003
2653
|
retry: Retry.Retry,
|
|
2004
2654
|
}));
|
|
2005
|
-
/**
|
|
2006
|
-
export const
|
|
2007
|
-
input:
|
|
2655
|
+
/** Get Machine Get details of a specific Machine within an app by the Machine ID. */
|
|
2656
|
+
export const getMachine = /*@__PURE__*/ API.make(() => ({
|
|
2657
|
+
input: GetMachineRequest,
|
|
2008
2658
|
output: Machine,
|
|
2009
|
-
errors: [
|
|
2659
|
+
errors: [Forbidden, NotFound],
|
|
2010
2660
|
protocol: FlyIoProtocol,
|
|
2011
2661
|
retry: Retry.Retry,
|
|
2012
2662
|
}));
|
|
2013
|
-
/**
|
|
2014
|
-
export const
|
|
2015
|
-
input:
|
|
2663
|
+
/** 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. */
|
|
2664
|
+
export const getMachineLease = /*@__PURE__*/ API.make(() => ({
|
|
2665
|
+
input: GetMachineLeaseRequest,
|
|
2016
2666
|
output: Lease,
|
|
2017
|
-
errors: [
|
|
2667
|
+
errors: [Forbidden, NotFound],
|
|
2018
2668
|
protocol: FlyIoProtocol,
|
|
2019
2669
|
retry: Retry.Retry,
|
|
2020
2670
|
}));
|
|
2021
|
-
/**
|
|
2022
|
-
export const
|
|
2023
|
-
input:
|
|
2024
|
-
output:
|
|
2671
|
+
/** Get Machine Memory Get current memory limit and available capacity for a machine */
|
|
2672
|
+
export const getMachineMemory = /*@__PURE__*/ API.make(() => ({
|
|
2673
|
+
input: GetMachineMemoryRequest,
|
|
2674
|
+
output: MainMemoryResponse,
|
|
2025
2675
|
errors: [Forbidden, NotFound],
|
|
2026
2676
|
protocol: FlyIoProtocol,
|
|
2027
2677
|
retry: Retry.Retry,
|
|
2028
2678
|
}));
|
|
2029
|
-
/**
|
|
2030
|
-
export const
|
|
2031
|
-
input:
|
|
2032
|
-
output:
|
|
2679
|
+
/** Get Metadata Retrieve metadata for a specific Machine within an app. */
|
|
2680
|
+
export const getMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2681
|
+
input: GetMachineMetadataRequest,
|
|
2682
|
+
output: GetMachineMetadataResponse,
|
|
2033
2683
|
errors: [Forbidden, NotFound],
|
|
2034
2684
|
protocol: FlyIoProtocol,
|
|
2035
2685
|
retry: Retry.Retry,
|
|
2036
2686
|
}));
|
|
2037
|
-
/**
|
|
2038
|
-
export const
|
|
2039
|
-
input:
|
|
2040
|
-
output:
|
|
2041
|
-
errors: [
|
|
2687
|
+
/** Get Metadata Value Get the value of a specific metadata key */
|
|
2688
|
+
export const getMachineMetadataKey = /*@__PURE__*/ API.make(() => ({
|
|
2689
|
+
input: GetMachineMetadataKeyRequest,
|
|
2690
|
+
output: MetadataValueResponse,
|
|
2691
|
+
errors: [NotFound],
|
|
2042
2692
|
protocol: FlyIoProtocol,
|
|
2043
2693
|
retry: Retry.Retry,
|
|
2044
2694
|
}));
|
|
2045
|
-
/** Get
|
|
2046
|
-
export const
|
|
2047
|
-
input:
|
|
2048
|
-
output:
|
|
2049
|
-
errors: [
|
|
2695
|
+
/** Get Placements Simulates placing the specified number of machines into regions, depending on available capacity and limits. */
|
|
2696
|
+
export const getPlacements = /*@__PURE__*/ API.make(() => ({
|
|
2697
|
+
input: GetPlacementsRequest,
|
|
2698
|
+
output: MainGetPlacementsResponse,
|
|
2699
|
+
errors: [BadRequest, Forbidden],
|
|
2050
2700
|
protocol: FlyIoProtocol,
|
|
2051
2701
|
retry: Retry.Retry,
|
|
2052
2702
|
}));
|
|
2053
|
-
/** Get
|
|
2054
|
-
export const
|
|
2055
|
-
input:
|
|
2056
|
-
output:
|
|
2703
|
+
/** Get Postgres Cluster Get details of a specific Managed Postgres cluster. */
|
|
2704
|
+
export const getPostgres = /*@__PURE__*/ API.make(() => ({
|
|
2705
|
+
input: GetPostgresRequest,
|
|
2706
|
+
output: ShowPostgresClusterResponse,
|
|
2057
2707
|
errors: [NotFound],
|
|
2058
2708
|
protocol: FlyIoProtocol,
|
|
2059
2709
|
retry: Retry.Retry,
|
|
2060
2710
|
}));
|
|
2061
|
-
/**
|
|
2062
|
-
export const
|
|
2063
|
-
input:
|
|
2064
|
-
output:
|
|
2711
|
+
/** Get Regions List all regions on the platform with their details. */
|
|
2712
|
+
export const getRegions = /*@__PURE__*/ API.make(() => ({
|
|
2713
|
+
input: GetRegionsRequest,
|
|
2714
|
+
output: MainRegionResponse,
|
|
2715
|
+
errors: [Forbidden],
|
|
2716
|
+
protocol: FlyIoProtocol,
|
|
2717
|
+
retry: Retry.Retry,
|
|
2718
|
+
}));
|
|
2719
|
+
/** Get an app secret */
|
|
2720
|
+
export const getSecret = /*@__PURE__*/ API.make(() => ({
|
|
2721
|
+
input: GetSecretRequest,
|
|
2722
|
+
output: AppSecret,
|
|
2065
2723
|
errors: [Forbidden, NotFound],
|
|
2066
2724
|
protocol: FlyIoProtocol,
|
|
2067
2725
|
retry: Retry.Retry,
|
|
2068
2726
|
}));
|
|
2069
|
-
/**
|
|
2070
|
-
export const
|
|
2071
|
-
input:
|
|
2072
|
-
output:
|
|
2727
|
+
/** Get an app's secret key */
|
|
2728
|
+
export const getSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2729
|
+
input: GetSecretKeyRequest,
|
|
2730
|
+
output: SecretKey,
|
|
2073
2731
|
errors: [Forbidden, NotFound],
|
|
2074
2732
|
protocol: FlyIoProtocol,
|
|
2075
2733
|
retry: Retry.Retry,
|
|
2076
2734
|
}));
|
|
2077
|
-
/**
|
|
2078
|
-
export const
|
|
2079
|
-
input:
|
|
2080
|
-
output:
|
|
2081
|
-
errors: [
|
|
2735
|
+
/** Get Volume Retrieve details about a specific volume by its ID within an app. */
|
|
2736
|
+
export const getVolumeById = /*@__PURE__*/ API.make(() => ({
|
|
2737
|
+
input: GetVolumeByIdRequest,
|
|
2738
|
+
output: Volume,
|
|
2739
|
+
errors: [Forbidden, NotFound],
|
|
2082
2740
|
protocol: FlyIoProtocol,
|
|
2083
2741
|
retry: Retry.Retry,
|
|
2084
2742
|
}));
|
|
2085
|
-
/** List
|
|
2086
|
-
export const
|
|
2087
|
-
input:
|
|
2088
|
-
output:
|
|
2743
|
+
/** List certificates for app */
|
|
2744
|
+
export const listAppCertificates = /*@__PURE__*/ API.make(() => ({
|
|
2745
|
+
input: ListAppCertificatesRequest,
|
|
2746
|
+
output: ListCertificatesResponse,
|
|
2089
2747
|
errors: [Forbidden, NotFound],
|
|
2090
2748
|
protocol: FlyIoProtocol,
|
|
2091
2749
|
retry: Retry.Retry,
|
|
2092
2750
|
}));
|
|
2093
|
-
/** List
|
|
2094
|
-
export const
|
|
2095
|
-
input:
|
|
2096
|
-
output:
|
|
2751
|
+
/** List IP assignments for app */
|
|
2752
|
+
export const listAppIPAssignments = /*@__PURE__*/ API.make(() => ({
|
|
2753
|
+
input: ListAppIPAssignmentsRequest,
|
|
2754
|
+
output: ListIPAssignmentsResponse,
|
|
2097
2755
|
errors: [Forbidden, NotFound],
|
|
2098
2756
|
protocol: FlyIoProtocol,
|
|
2099
2757
|
retry: Retry.Retry,
|
|
2100
2758
|
}));
|
|
2101
|
-
/**
|
|
2102
|
-
export const
|
|
2103
|
-
input:
|
|
2104
|
-
output:
|
|
2105
|
-
errors: [
|
|
2759
|
+
/** List Apps List all apps with the ability to filter by organization slug. */
|
|
2760
|
+
export const listApps = /*@__PURE__*/ API.make(() => ({
|
|
2761
|
+
input: ListAppsRequest,
|
|
2762
|
+
output: ListAppsResponse,
|
|
2763
|
+
errors: [Forbidden],
|
|
2106
2764
|
protocol: FlyIoProtocol,
|
|
2107
2765
|
retry: Retry.Retry,
|
|
2108
2766
|
}));
|
|
2109
|
-
/**
|
|
2110
|
-
export const
|
|
2111
|
-
input:
|
|
2112
|
-
output:
|
|
2767
|
+
/** List Events List all events associated with a specific Machine within an app. */
|
|
2768
|
+
export const listMachineEvents = /*@__PURE__*/ API.make(() => ({
|
|
2769
|
+
input: ListMachineEventsRequest,
|
|
2770
|
+
output: ListMachineEventsResponse,
|
|
2113
2771
|
errors: [Forbidden, NotFound],
|
|
2114
2772
|
protocol: FlyIoProtocol,
|
|
2115
2773
|
retry: Retry.Retry,
|
|
2116
2774
|
}));
|
|
2117
|
-
/**
|
|
2118
|
-
export const
|
|
2119
|
-
input:
|
|
2120
|
-
output:
|
|
2775
|
+
/** List Processes List all processes running on a specific Machine within an app, with optional sorting parameters. */
|
|
2776
|
+
export const listMachineProcesses = /*@__PURE__*/ API.make(() => ({
|
|
2777
|
+
input: ListMachineProcessesRequest,
|
|
2778
|
+
output: ListMachineProcessesResponse,
|
|
2121
2779
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2122
2780
|
protocol: FlyIoProtocol,
|
|
2123
2781
|
retry: Retry.Retry,
|
|
2124
2782
|
}));
|
|
2125
|
-
/**
|
|
2126
|
-
export const
|
|
2127
|
-
input:
|
|
2128
|
-
output:
|
|
2129
|
-
errors: [
|
|
2783
|
+
/** List Machines List all Machines associated with a specific app, with optional filters for including deleted Machines and filtering by region. */
|
|
2784
|
+
export const listMachines = /*@__PURE__*/ API.make(() => ({
|
|
2785
|
+
input: ListMachinesRequest,
|
|
2786
|
+
output: ListMachinesResponse,
|
|
2787
|
+
errors: [Forbidden, NotFound],
|
|
2130
2788
|
protocol: FlyIoProtocol,
|
|
2131
2789
|
retry: Retry.Retry,
|
|
2132
2790
|
}));
|
|
2133
|
-
/**
|
|
2134
|
-
export const
|
|
2135
|
-
input:
|
|
2136
|
-
output:
|
|
2791
|
+
/** 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. */
|
|
2792
|
+
export const listMachinesOrg = /*@__PURE__*/ API.make(() => ({
|
|
2793
|
+
input: ListMachinesOrgRequest,
|
|
2794
|
+
output: OrgMachinesResponse,
|
|
2137
2795
|
errors: [Forbidden, NotFound],
|
|
2138
2796
|
protocol: FlyIoProtocol,
|
|
2139
2797
|
retry: Retry.Retry,
|
|
2140
2798
|
}));
|
|
2141
|
-
/**
|
|
2142
|
-
export const
|
|
2143
|
-
input:
|
|
2144
|
-
output:
|
|
2799
|
+
/** List Versions List all versions of the configuration for a specific Machine within an app. */
|
|
2800
|
+
export const listMachineVersions = /*@__PURE__*/ API.make(() => ({
|
|
2801
|
+
input: ListMachineVersionsRequest,
|
|
2802
|
+
output: ListMachineVersionsResponse,
|
|
2145
2803
|
errors: [Forbidden, NotFound],
|
|
2146
2804
|
protocol: FlyIoProtocol,
|
|
2147
2805
|
retry: Retry.Retry,
|
|
2148
2806
|
}));
|
|
2149
|
-
/**
|
|
2150
|
-
export const
|
|
2151
|
-
input:
|
|
2152
|
-
output:
|
|
2153
|
-
errors: [
|
|
2807
|
+
/** List Postgres Clusters List Managed Postgres clusters for an organization. */
|
|
2808
|
+
export const listPostgres = /*@__PURE__*/ API.make(() => ({
|
|
2809
|
+
input: ListPostgresRequest,
|
|
2810
|
+
output: ListPostgresClustersResponse,
|
|
2811
|
+
errors: [NotFound, UnprocessableEntity],
|
|
2154
2812
|
protocol: FlyIoProtocol,
|
|
2155
2813
|
retry: Retry.Retry,
|
|
2156
2814
|
}));
|
|
2157
|
-
/**
|
|
2158
|
-
export const
|
|
2159
|
-
input:
|
|
2160
|
-
output:
|
|
2161
|
-
errors: [
|
|
2815
|
+
/** List Backups List all backups associated with a specific cluster. */
|
|
2816
|
+
export const listPostgresBackups = /*@__PURE__*/ API.make(() => ({
|
|
2817
|
+
input: ListPostgresBackupsRequest,
|
|
2818
|
+
output: ListPostgresBackupsResponse,
|
|
2819
|
+
errors: [NotFound],
|
|
2162
2820
|
protocol: FlyIoProtocol,
|
|
2163
2821
|
retry: Retry.Retry,
|
|
2164
2822
|
}));
|
|
2165
|
-
/**
|
|
2166
|
-
export const
|
|
2167
|
-
input:
|
|
2168
|
-
output:
|
|
2169
|
-
errors: [
|
|
2823
|
+
/** List Databases List all databases within a specific cluster. */
|
|
2824
|
+
export const listPostgresDatabases = /*@__PURE__*/ API.make(() => ({
|
|
2825
|
+
input: ListPostgresDatabasesRequest,
|
|
2826
|
+
output: ListPostgresDatabasesResponse,
|
|
2827
|
+
errors: [NotFound],
|
|
2170
2828
|
protocol: FlyIoProtocol,
|
|
2171
2829
|
retry: Retry.Retry,
|
|
2172
2830
|
}));
|
|
2173
|
-
/**
|
|
2174
|
-
export const
|
|
2175
|
-
input:
|
|
2176
|
-
output:
|
|
2177
|
-
errors: [BadRequest,
|
|
2831
|
+
/** List Extensions List all extensions available within a specific database, indicating which are installed. */
|
|
2832
|
+
export const listPostgresExtensions = /*@__PURE__*/ API.make(() => ({
|
|
2833
|
+
input: ListPostgresExtensionsRequest,
|
|
2834
|
+
output: ListPostgresExtensionsResponse,
|
|
2835
|
+
errors: [BadRequest, NotFound],
|
|
2178
2836
|
protocol: FlyIoProtocol,
|
|
2179
2837
|
retry: Retry.Retry,
|
|
2180
2838
|
}));
|
|
2181
|
-
/**
|
|
2182
|
-
export const
|
|
2183
|
-
input:
|
|
2184
|
-
output:
|
|
2185
|
-
errors: [
|
|
2839
|
+
/** List Users List all Postgres users within a specific cluster. */
|
|
2840
|
+
export const listPostgresUsers = /*@__PURE__*/ API.make(() => ({
|
|
2841
|
+
input: ListPostgresUsersRequest,
|
|
2842
|
+
output: ListPostgresUsersResponse,
|
|
2843
|
+
errors: [NotFound],
|
|
2186
2844
|
protocol: FlyIoProtocol,
|
|
2187
2845
|
retry: Retry.Retry,
|
|
2188
2846
|
}));
|
|
2189
|
-
/**
|
|
2190
|
-
export const
|
|
2191
|
-
input:
|
|
2192
|
-
output:
|
|
2193
|
-
errors: [
|
|
2847
|
+
/** List secret keys belonging to an app */
|
|
2848
|
+
export const listSecretKeys = /*@__PURE__*/ API.make(() => ({
|
|
2849
|
+
input: ListSecretKeysRequest,
|
|
2850
|
+
output: SecretKeys,
|
|
2851
|
+
errors: [Forbidden, NotFound],
|
|
2194
2852
|
protocol: FlyIoProtocol,
|
|
2195
2853
|
retry: Retry.Retry,
|
|
2196
2854
|
}));
|
|
2197
|
-
/**
|
|
2198
|
-
export const
|
|
2199
|
-
input:
|
|
2200
|
-
output:
|
|
2201
|
-
errors: [
|
|
2855
|
+
/** List app secrets belonging to an app */
|
|
2856
|
+
export const listSecrets = /*@__PURE__*/ API.make(() => ({
|
|
2857
|
+
input: ListSecretsRequest,
|
|
2858
|
+
output: AppSecrets,
|
|
2859
|
+
errors: [Forbidden, NotFound],
|
|
2202
2860
|
protocol: FlyIoProtocol,
|
|
2203
2861
|
retry: Retry.Retry,
|
|
2204
2862
|
}));
|
|
2205
|
-
/**
|
|
2206
|
-
export const
|
|
2207
|
-
input:
|
|
2208
|
-
output:
|
|
2209
|
-
errors: [
|
|
2863
|
+
/** List Volumes List all volumes associated with a specific app. */
|
|
2864
|
+
export const listVolumes = /*@__PURE__*/ API.make(() => ({
|
|
2865
|
+
input: ListVolumesRequest,
|
|
2866
|
+
output: ListVolumesResponse,
|
|
2867
|
+
errors: [Forbidden, NotFound],
|
|
2210
2868
|
protocol: FlyIoProtocol,
|
|
2211
2869
|
retry: Retry.Retry,
|
|
2212
2870
|
}));
|
|
2213
|
-
/**
|
|
2214
|
-
export const
|
|
2215
|
-
input:
|
|
2216
|
-
output:
|
|
2217
|
-
errors: [
|
|
2871
|
+
/** List Snapshots List all snapshots for a specific volume within an app. */
|
|
2872
|
+
export const listVolumeSnapshots = /*@__PURE__*/ API.make(() => ({
|
|
2873
|
+
input: ListVolumeSnapshotsRequest,
|
|
2874
|
+
output: ListVolumeSnapshotsResponse,
|
|
2875
|
+
errors: [Forbidden, NotFound],
|
|
2218
2876
|
protocol: FlyIoProtocol,
|
|
2219
2877
|
retry: Retry.Retry,
|
|
2220
2878
|
}));
|
|
2221
|
-
/**
|
|
2222
|
-
export const
|
|
2223
|
-
input:
|
|
2224
|
-
output:
|
|
2225
|
-
errors: [
|
|
2879
|
+
/** List All Volumes List all volumes for an organization with optional filters and cursor-based pagination. */
|
|
2880
|
+
export const listVolumesOrg = /*@__PURE__*/ API.make(() => ({
|
|
2881
|
+
input: ListVolumesOrgRequest,
|
|
2882
|
+
output: OrgVolumesResponse,
|
|
2883
|
+
errors: [],
|
|
2226
2884
|
protocol: FlyIoProtocol,
|
|
2227
2885
|
retry: Retry.Retry,
|
|
2228
2886
|
}));
|
|
2229
|
-
/**
|
|
2230
|
-
export const
|
|
2231
|
-
input:
|
|
2232
|
-
output:
|
|
2233
|
-
errors: [
|
|
2887
|
+
/** 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. */
|
|
2888
|
+
export const machinesReleaseLease = /*@__PURE__*/ API.make(() => ({
|
|
2889
|
+
input: MachinesReleaseLeaseRequest,
|
|
2890
|
+
output: MachinesReleaseLeaseResponse,
|
|
2891
|
+
errors: [Forbidden, NotFound],
|
|
2234
2892
|
protocol: FlyIoProtocol,
|
|
2235
2893
|
retry: Retry.Retry,
|
|
2236
2894
|
}));
|
|
2237
|
-
/**
|
|
2238
|
-
export const
|
|
2239
|
-
input:
|
|
2240
|
-
output:
|
|
2241
|
-
errors: [BadRequest
|
|
2895
|
+
/** 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. */
|
|
2896
|
+
export const patchMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2897
|
+
input: PatchMachineMetadataRequest,
|
|
2898
|
+
output: PatchMachineMetadataResponse,
|
|
2899
|
+
errors: [BadRequest],
|
|
2242
2900
|
protocol: FlyIoProtocol,
|
|
2243
2901
|
retry: Retry.Retry,
|
|
2244
2902
|
}));
|
|
2245
|
-
/** Get
|
|
2246
|
-
export const
|
|
2247
|
-
input:
|
|
2248
|
-
output:
|
|
2249
|
-
errors: [
|
|
2903
|
+
/** Get User Credentials Get the connection credentials for a specific Postgres user within a cluster. */
|
|
2904
|
+
export const postgresUsersCredentials = /*@__PURE__*/ API.make(() => ({
|
|
2905
|
+
input: PostgresUsersCredentialsRequest,
|
|
2906
|
+
output: GetPostgresUserCredentialsResponse,
|
|
2907
|
+
errors: [BadRequest, NotFound],
|
|
2250
2908
|
protocol: FlyIoProtocol,
|
|
2251
2909
|
retry: Retry.Retry,
|
|
2252
2910
|
}));
|
|
2253
|
-
/**
|
|
2254
|
-
export const
|
|
2255
|
-
input:
|
|
2256
|
-
output:
|
|
2911
|
+
/** Reclaim Machine Memory Trigger the balloon device to reclaim memory from a machine */
|
|
2912
|
+
export const reclaimMachineMemory = /*@__PURE__*/ API.make(() => ({
|
|
2913
|
+
input: ReclaimMachineMemoryRequest,
|
|
2914
|
+
output: MainReclaimMemoryResponse,
|
|
2257
2915
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2258
2916
|
protocol: FlyIoProtocol,
|
|
2259
2917
|
retry: Retry.Retry,
|
|
2260
2918
|
}));
|
|
2261
|
-
/**
|
|
2262
|
-
export const
|
|
2263
|
-
input:
|
|
2264
|
-
output:
|
|
2265
|
-
errors: [Forbidden, NotFound],
|
|
2919
|
+
/** 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. */
|
|
2920
|
+
export const requestKmsToken = /*@__PURE__*/ API.make(() => ({
|
|
2921
|
+
input: RequestKmsTokenRequest,
|
|
2922
|
+
output: RequestKmsTokenResponse,
|
|
2923
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2266
2924
|
protocol: FlyIoProtocol,
|
|
2267
2925
|
retry: Retry.Retry,
|
|
2268
2926
|
}));
|
|
2269
|
-
/**
|
|
2270
|
-
export const
|
|
2271
|
-
input:
|
|
2272
|
-
output:
|
|
2273
|
-
errors: [Forbidden, NotFound],
|
|
2927
|
+
/** 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. */
|
|
2928
|
+
export const requestOidcToken = /*@__PURE__*/ API.make(() => ({
|
|
2929
|
+
input: RequestOidcTokenRequest,
|
|
2930
|
+
output: RequestOidcTokenResponse,
|
|
2931
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2274
2932
|
protocol: FlyIoProtocol,
|
|
2275
2933
|
retry: Retry.Retry,
|
|
2276
2934
|
}));
|
|
2277
|
-
/**
|
|
2278
|
-
export const
|
|
2279
|
-
input:
|
|
2280
|
-
output:
|
|
2935
|
+
/** Restart Machine Restart a specific Machine within an app, with an optional timeout parameter. */
|
|
2936
|
+
export const restartMachine = /*@__PURE__*/ API.make(() => ({
|
|
2937
|
+
input: RestartMachineRequest,
|
|
2938
|
+
output: RestartMachineResponse,
|
|
2281
2939
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2282
2940
|
protocol: FlyIoProtocol,
|
|
2283
2941
|
retry: Retry.Retry,
|
|
2284
2942
|
}));
|
|
2285
|
-
/**
|
|
2286
|
-
export const
|
|
2287
|
-
input:
|
|
2288
|
-
output:
|
|
2289
|
-
errors: [
|
|
2943
|
+
/** 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. */
|
|
2944
|
+
export const restorePostgres = /*@__PURE__*/ API.make(() => ({
|
|
2945
|
+
input: RestorePostgresRequest,
|
|
2946
|
+
output: ShowPostgresClusterResponse,
|
|
2947
|
+
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
2290
2948
|
protocol: FlyIoProtocol,
|
|
2291
2949
|
retry: Retry.Retry,
|
|
2292
2950
|
}));
|
|
2293
|
-
/**
|
|
2294
|
-
export const
|
|
2295
|
-
input:
|
|
2296
|
-
output:
|
|
2297
|
-
errors: [BadRequest,
|
|
2951
|
+
/** Rotate User Password Rotate a specific Postgres user's password within a cluster, optionally terminating the user's existing sessions. */
|
|
2952
|
+
export const rotatePostgresUserPassword = /*@__PURE__*/ API.make(() => ({
|
|
2953
|
+
input: RotatePostgresUserPasswordRequest,
|
|
2954
|
+
output: RotatePostgresPasswordResponse,
|
|
2955
|
+
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
2298
2956
|
protocol: FlyIoProtocol,
|
|
2299
2957
|
retry: Retry.Retry,
|
|
2300
2958
|
}));
|
|
2301
|
-
/**
|
|
2302
|
-
export const
|
|
2303
|
-
input:
|
|
2304
|
-
output:
|
|
2959
|
+
/** Set Machine Memory Limit Set the memory limit for a machine using the balloon device */
|
|
2960
|
+
export const setMachineMemoryLimit = /*@__PURE__*/ API.make(() => ({
|
|
2961
|
+
input: SetMachineMemoryLimitRequest,
|
|
2962
|
+
output: MainMemoryResponse,
|
|
2305
2963
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2306
2964
|
protocol: FlyIoProtocol,
|
|
2307
2965
|
retry: Retry.Retry,
|
|
2308
2966
|
}));
|
|
2309
|
-
/**
|
|
2310
|
-
export const
|
|
2311
|
-
input:
|
|
2312
|
-
output:
|
|
2313
|
-
errors: [Forbidden, NotFound],
|
|
2967
|
+
/** Create or update a secret key */
|
|
2968
|
+
export const setSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2969
|
+
input: SetSecretKeyRequest,
|
|
2970
|
+
output: SetSecretkeyResponse,
|
|
2971
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2314
2972
|
protocol: FlyIoProtocol,
|
|
2315
2973
|
retry: Retry.Retry,
|
|
2316
2974
|
}));
|
|
2317
|
-
/**
|
|
2318
|
-
export const
|
|
2319
|
-
input:
|
|
2320
|
-
output:
|
|
2975
|
+
/** Signal Machine Send a signal to a specific Machine within an app using the details provided in the request body. */
|
|
2976
|
+
export const signalMachine = /*@__PURE__*/ API.make(() => ({
|
|
2977
|
+
input: SignalMachineRequest,
|
|
2978
|
+
output: SignalMachineResponse,
|
|
2321
2979
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2322
2980
|
protocol: FlyIoProtocol,
|
|
2323
2981
|
retry: Retry.Retry,
|
|
2324
2982
|
}));
|
|
2325
2983
|
/** Sign with a secret key */
|
|
2326
|
-
export const
|
|
2327
|
-
input:
|
|
2984
|
+
export const signSecretKey = /*@__PURE__*/ API.make(() => ({
|
|
2985
|
+
input: SignSecretKeyRequest,
|
|
2328
2986
|
output: SignSecretkeyResponse,
|
|
2329
2987
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2330
2988
|
protocol: FlyIoProtocol,
|
|
2331
2989
|
retry: Retry.Retry,
|
|
2332
2990
|
}));
|
|
2333
|
-
/**
|
|
2334
|
-
export const
|
|
2335
|
-
input:
|
|
2336
|
-
output:
|
|
2337
|
-
errors: [Forbidden, NotFound],
|
|
2991
|
+
/** Start Machine Start a specific Machine within an app. */
|
|
2992
|
+
export const startMachine = /*@__PURE__*/ API.make(() => ({
|
|
2993
|
+
input: StartMachineRequest,
|
|
2994
|
+
output: StartMachineResponse,
|
|
2995
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2338
2996
|
protocol: FlyIoProtocol,
|
|
2339
2997
|
retry: Retry.Retry,
|
|
2340
2998
|
}));
|
|
2341
|
-
/**
|
|
2342
|
-
export const
|
|
2343
|
-
input:
|
|
2344
|
-
output:
|
|
2999
|
+
/** Stop Machine Stop a specific Machine within an app, with an optional request body to specify signal and timeout. */
|
|
3000
|
+
export const stopMachine = /*@__PURE__*/ API.make(() => ({
|
|
3001
|
+
input: StopMachineRequest,
|
|
3002
|
+
output: StopMachineResponse,
|
|
2345
3003
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2346
3004
|
protocol: FlyIoProtocol,
|
|
2347
3005
|
retry: Retry.Retry,
|
|
2348
3006
|
}));
|
|
2349
|
-
/**
|
|
2350
|
-
export const
|
|
2351
|
-
input:
|
|
2352
|
-
output:
|
|
2353
|
-
errors: [Forbidden, NotFound],
|
|
2354
|
-
protocol: FlyIoProtocol,
|
|
2355
|
-
retry: Retry.Retry,
|
|
2356
|
-
}));
|
|
2357
|
-
/** Update app secrets belonging to an app */
|
|
2358
|
-
export const secretsUpdate = /*@__PURE__*/ API.make(() => ({
|
|
2359
|
-
input: SecretsUpdateRequest,
|
|
2360
|
-
output: AppSecretsUpdateResp,
|
|
3007
|
+
/** 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. */
|
|
3008
|
+
export const suspendMachine = /*@__PURE__*/ API.make(() => ({
|
|
3009
|
+
input: SuspendMachineRequest,
|
|
3010
|
+
output: SuspendMachineResponse,
|
|
2361
3011
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2362
3012
|
protocol: FlyIoProtocol,
|
|
2363
3013
|
retry: Retry.Retry,
|
|
2364
3014
|
}));
|
|
2365
|
-
/**
|
|
2366
|
-
export const
|
|
2367
|
-
input:
|
|
2368
|
-
output:
|
|
2369
|
-
errors: [BadRequest],
|
|
3015
|
+
/** 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. */
|
|
3016
|
+
export const uncordonMachine = /*@__PURE__*/ API.make(() => ({
|
|
3017
|
+
input: UncordonMachineRequest,
|
|
3018
|
+
output: UncordonMachineResponse,
|
|
3019
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2370
3020
|
protocol: FlyIoProtocol,
|
|
2371
3021
|
retry: Retry.Retry,
|
|
2372
3022
|
}));
|
|
2373
|
-
/**
|
|
2374
|
-
export const
|
|
2375
|
-
input:
|
|
2376
|
-
output:
|
|
2377
|
-
errors: [BadRequest],
|
|
3023
|
+
/** Update Machine Update a Machine's configuration using the details provided in the request body. */
|
|
3024
|
+
export const updateMachine = /*@__PURE__*/ API.make(() => ({
|
|
3025
|
+
input: UpdateMachineRequest,
|
|
3026
|
+
output: Machine,
|
|
3027
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2378
3028
|
protocol: FlyIoProtocol,
|
|
2379
3029
|
retry: Retry.Retry,
|
|
2380
3030
|
}));
|
|
2381
|
-
/**
|
|
2382
|
-
export const
|
|
2383
|
-
input:
|
|
2384
|
-
output:
|
|
3031
|
+
/** 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. */
|
|
3032
|
+
export const updateMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
3033
|
+
input: UpdateMachineMetadataRequest,
|
|
3034
|
+
output: UpdateMachineMetadataResponse,
|
|
2385
3035
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2386
3036
|
protocol: FlyIoProtocol,
|
|
2387
3037
|
retry: Retry.Retry,
|
|
2388
3038
|
}));
|
|
2389
|
-
/**
|
|
2390
|
-
export const
|
|
2391
|
-
input:
|
|
2392
|
-
output:
|
|
2393
|
-
errors: [BadRequest,
|
|
3039
|
+
/** Update User Role Update a specific Postgres user's role within a cluster. */
|
|
3040
|
+
export const updatePostgresUserRole = /*@__PURE__*/ API.make(() => ({
|
|
3041
|
+
input: UpdatePostgresUserRoleRequest,
|
|
3042
|
+
output: UpdatePostgresUserRoleResponse,
|
|
3043
|
+
errors: [BadRequest, NotFound, UnprocessableEntity],
|
|
2394
3044
|
protocol: FlyIoProtocol,
|
|
2395
3045
|
retry: Retry.Retry,
|
|
2396
3046
|
}));
|
|
2397
|
-
/**
|
|
2398
|
-
export const
|
|
2399
|
-
input:
|
|
2400
|
-
output:
|
|
2401
|
-
errors: [Forbidden, NotFound],
|
|
3047
|
+
/** Update app secrets belonging to an app */
|
|
3048
|
+
export const updateSecrets = /*@__PURE__*/ API.make(() => ({
|
|
3049
|
+
input: UpdateSecretsRequest,
|
|
3050
|
+
output: AppSecretsUpdateResp,
|
|
3051
|
+
errors: [BadRequest, Forbidden, NotFound, Conflict],
|
|
2402
3052
|
protocol: FlyIoProtocol,
|
|
2403
3053
|
retry: Retry.Retry,
|
|
2404
3054
|
}));
|
|
2405
|
-
/**
|
|
2406
|
-
export const
|
|
2407
|
-
input:
|
|
3055
|
+
/** Update Volume Update a volume's configuration using the details provided in the request body. */
|
|
3056
|
+
export const updateVolume = /*@__PURE__*/ API.make(() => ({
|
|
3057
|
+
input: UpdateVolumeRequest,
|
|
2408
3058
|
output: Volume,
|
|
2409
3059
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2410
3060
|
protocol: FlyIoProtocol,
|
|
2411
3061
|
retry: Retry.Retry,
|
|
2412
3062
|
}));
|
|
2413
|
-
/**
|
|
2414
|
-
export const
|
|
2415
|
-
input:
|
|
2416
|
-
output:
|
|
3063
|
+
/** Upsert Metadata Key Update metadata for a specific machine within an app by providing a metadata key. */
|
|
3064
|
+
export const upsertMachineMetadata = /*@__PURE__*/ API.make(() => ({
|
|
3065
|
+
input: UpsertMachineMetadataRequest,
|
|
3066
|
+
output: UpsertMachineMetadataResponse,
|
|
2417
3067
|
errors: [BadRequest, Forbidden, NotFound],
|
|
2418
3068
|
protocol: FlyIoProtocol,
|
|
2419
3069
|
retry: Retry.Retry,
|
|
2420
3070
|
}));
|
|
2421
|
-
/**
|
|
2422
|
-
export const
|
|
2423
|
-
input:
|
|
2424
|
-
output:
|
|
2425
|
-
errors: [Forbidden, NotFound],
|
|
2426
|
-
protocol: FlyIoProtocol,
|
|
2427
|
-
retry: Retry.Retry,
|
|
2428
|
-
}));
|
|
2429
|
-
/** List Volumes List all volumes associated with a specific app. */
|
|
2430
|
-
export const volumesList = /*@__PURE__*/ API.make(() => ({
|
|
2431
|
-
input: VolumesListRequest,
|
|
2432
|
-
output: VolumesListResponse,
|
|
2433
|
-
errors: [Forbidden, NotFound],
|
|
2434
|
-
protocol: FlyIoProtocol,
|
|
2435
|
-
retry: Retry.Retry,
|
|
2436
|
-
}));
|
|
2437
|
-
/** List Snapshots List all snapshots for a specific volume within an app. */
|
|
2438
|
-
export const volumesListSnapshots = /*@__PURE__*/ API.make(() => ({
|
|
2439
|
-
input: VolumesListSnapshotsRequest,
|
|
2440
|
-
output: VolumesListSnapshotsResponse,
|
|
2441
|
-
errors: [Forbidden, NotFound],
|
|
2442
|
-
protocol: FlyIoProtocol,
|
|
2443
|
-
retry: Retry.Retry,
|
|
2444
|
-
}));
|
|
2445
|
-
/** List All Volumes List all volumes for an organization with optional filters and cursor-based pagination. */
|
|
2446
|
-
export const volumesOrgList = /*@__PURE__*/ API.make(() => ({
|
|
2447
|
-
input: VolumesOrgListRequest,
|
|
2448
|
-
output: OrgVolumesResponse,
|
|
2449
|
-
errors: [],
|
|
3071
|
+
/** Verify with a secret key */
|
|
3072
|
+
export const verifySecretKey = /*@__PURE__*/ API.make(() => ({
|
|
3073
|
+
input: VerifySecretKeyRequest,
|
|
3074
|
+
output: VerifySecretKeyResponse,
|
|
3075
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2450
3076
|
protocol: FlyIoProtocol,
|
|
2451
3077
|
retry: Retry.Retry,
|
|
2452
3078
|
}));
|
|
2453
|
-
/**
|
|
2454
|
-
export const
|
|
2455
|
-
input:
|
|
2456
|
-
output:
|
|
2457
|
-
errors: [BadRequest, Forbidden, NotFound],
|
|
3079
|
+
/** 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. */
|
|
3080
|
+
export const waitMachine = /*@__PURE__*/ API.make(() => ({
|
|
3081
|
+
input: WaitMachineRequest,
|
|
3082
|
+
output: WaitMachineResponse,
|
|
3083
|
+
errors: [BadRequest, Forbidden, NotFound, GatewayTimeout],
|
|
2458
3084
|
protocol: FlyIoProtocol,
|
|
2459
3085
|
retry: Retry.Retry,
|
|
2460
3086
|
}));
|