@distilled.cloud/fly-io 0.19.2 → 0.20.0
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/lib/credentials.d.ts +1 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +2 -2
- package/lib/credentials.js.map +1 -1
- package/lib/operations/AppCertificatesList.d.ts +1 -1
- package/lib/operations/App_CertificatesList.d.ts +1 -1
- package/lib/operations/AppsList.d.ts +1 -1
- package/lib/operations/MachinesCreateLease.d.ts +1 -1
- package/lib/operations/MachinesDelete.d.ts +1 -1
- package/lib/operations/MachinesDeleteMetadata.d.ts +1 -1
- package/lib/operations/MachinesExec.d.ts +1 -1
- package/lib/operations/MachinesGetMetadataKey.d.ts +1 -1
- package/lib/operations/MachinesListEvents.d.ts +1 -1
- package/lib/operations/MachinesListProcesses.d.ts +1 -1
- package/lib/operations/MachinesOrgList.d.ts +3 -3
- package/lib/operations/MachinesReclaimMemory.d.ts +1 -1
- package/lib/operations/MachinesRestart.d.ts +1 -1
- package/lib/operations/MachinesSetMemoryLimit.d.ts +1 -1
- package/lib/operations/MachinesUpdate.d.ts +1 -1
- package/lib/operations/MachinesUpsertMetadata.d.ts +1 -1
- package/lib/operations/MachinesWait.d.ts +4 -4
- package/lib/operations/SecretGet.d.ts +1 -1
- package/lib/operations/SecretkeyDecrypt.d.ts +2 -2
- package/lib/operations/SecretkeyEncrypt.d.ts +2 -2
- package/lib/operations/SecretkeyGet.d.ts +1 -1
- package/lib/operations/SecretkeySign.d.ts +1 -1
- package/lib/operations/SecretkeyVerify.d.ts +1 -1
- package/lib/operations/VolumesExtend.d.ts +1 -1
- package/lib/operations/VolumesOrgList.d.ts +3 -3
- package/lib/operations/VolumesUpdate.d.ts +1 -1
- package/package.json +3 -3
- package/src/credentials.ts +2 -2
package/lib/credentials.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
1
2
|
import * as Context from "effect/Context";
|
|
2
3
|
import * as Layer from "effect/Layer";
|
|
3
4
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
5
5
|
export declare const DEFAULT_API_BASE_URL = "https://api.machines.dev/v1";
|
|
6
6
|
export interface Config {
|
|
7
7
|
readonly apiKey: Redacted.Redacted<string>;
|
package/lib/credentials.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAE1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,eAAO,MAAM,oBAAoB,gCAAgC,CAAC;AAElE,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;;AAED,qBAAa,WAAY,SAAQ,gBAEhC;CAAG;AAMJ,eAAO,MAAM,kBAAkB,8CAc9B,CAAC"}
|
package/lib/credentials.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
1
2
|
import * as EffectConfig from "effect/Config";
|
|
2
3
|
import * as Context from "effect/Context";
|
|
3
4
|
import * as Effect from "effect/Effect";
|
|
4
5
|
import * as Layer from "effect/Layer";
|
|
5
6
|
import * as Redacted from "effect/Redacted";
|
|
6
|
-
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
7
7
|
export const DEFAULT_API_BASE_URL = "https://api.machines.dev/v1";
|
|
8
8
|
export class Credentials extends Context.Service()("Fly-ioCredentials") {
|
|
9
9
|
}
|
|
10
10
|
const envConfig = EffectConfig.all({
|
|
11
11
|
apiKey: EffectConfig.string("FLY_IO_API_KEY"),
|
|
12
12
|
});
|
|
13
|
-
export const CredentialsFromEnv = Layer.effect(Credentials, envConfig.
|
|
13
|
+
export const CredentialsFromEnv = Layer.effect(Credentials, envConfig.pipe(Effect.mapError(() => new ConfigError({
|
|
14
14
|
message: "FLY_IO_API_KEY environment variable is required",
|
|
15
15
|
})), Effect.map(({ apiKey }) => ({
|
|
16
16
|
apiKey: Redacted.make(apiKey),
|
package/lib/credentials.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,MAAM,oBAAoB,GAAG,6BAA6B,CAAC;AAOlE,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAAuB,CACrE,mBAAmB,CACpB;CAAG;AAEJ,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC;IACjC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,gBAAgB,CAAC;CAC9C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAC5C,WAAW,EACX,SAAS,CAAC,IAAI,CACZ,MAAM,CAAC,QAAQ,CACb,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;IACd,OAAO,EAAE,iDAAiD;CAC3D,CAAC,CACL,EACD,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1B,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,oBAAoB;CACjC,CAAC,CAAC,CACJ,CACF,CAAC"}
|
|
@@ -37,8 +37,8 @@ export type AppCertificatesListOutput = typeof AppCertificatesListOutput.Type;
|
|
|
37
37
|
*/
|
|
38
38
|
export declare const AppCertificatesList: import("@distilled.cloud/core/client").OperationMethod<{
|
|
39
39
|
readonly app_name: string;
|
|
40
|
-
readonly cursor?: string | undefined;
|
|
41
40
|
readonly filter?: string | undefined;
|
|
41
|
+
readonly cursor?: string | undefined;
|
|
42
42
|
readonly limit?: number | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
readonly certificates?: readonly {
|
|
@@ -33,8 +33,8 @@ export type App_CertificatesListOutput = typeof App_CertificatesListOutput.Type;
|
|
|
33
33
|
* @param limit - Number of results per page (default 25, max 500)
|
|
34
34
|
*/
|
|
35
35
|
export declare const App_CertificatesList: import("@distilled.cloud/core/client").OperationMethod<{
|
|
36
|
-
readonly cursor?: string | undefined;
|
|
37
36
|
readonly filter?: string | undefined;
|
|
37
|
+
readonly cursor?: string | undefined;
|
|
38
38
|
readonly limit?: number | undefined;
|
|
39
39
|
}, {
|
|
40
40
|
readonly certificates?: readonly {
|
|
@@ -32,8 +32,8 @@ export type AppsListOutput = typeof AppsListOutput.Type;
|
|
|
32
32
|
* @param app_role - Filter apps by role
|
|
33
33
|
*/
|
|
34
34
|
export declare const AppsList: import("@distilled.cloud/core/client").OperationMethod<{
|
|
35
|
-
readonly app_role?: string | undefined;
|
|
36
35
|
readonly org_slug: string;
|
|
36
|
+
readonly app_role?: string | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
readonly apps?: readonly {
|
|
39
39
|
readonly id?: string | undefined;
|
|
@@ -26,8 +26,8 @@ export type MachinesCreateLeaseOutput = typeof MachinesCreateLeaseOutput.Type;
|
|
|
26
26
|
*/
|
|
27
27
|
export declare const MachinesCreateLease: import("@distilled.cloud/core/client").OperationMethod<{
|
|
28
28
|
readonly app_name: string;
|
|
29
|
-
readonly description?: string | undefined;
|
|
30
29
|
readonly machine_id: string;
|
|
30
|
+
readonly description?: string | undefined;
|
|
31
31
|
readonly ttl?: number | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
readonly description?: string | undefined;
|
|
@@ -19,7 +19,7 @@ export type MachinesDeleteOutput = typeof MachinesDeleteOutput.Type;
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const MachinesDelete: import("@distilled.cloud/core/client").OperationMethod<{
|
|
21
21
|
readonly app_name: string;
|
|
22
|
-
readonly force?: boolean | undefined;
|
|
23
22
|
readonly machine_id: string;
|
|
23
|
+
readonly force?: boolean | undefined;
|
|
24
24
|
}, void, Forbidden | NotFound, import("../credentials.ts").Credentials>;
|
|
25
25
|
//# sourceMappingURL=MachinesDelete.d.ts.map
|
|
@@ -19,7 +19,7 @@ export type MachinesDeleteMetadataOutput = typeof MachinesDeleteMetadataOutput.T
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const MachinesDeleteMetadata: import("@distilled.cloud/core/client").OperationMethod<{
|
|
21
21
|
readonly app_name: string;
|
|
22
|
-
readonly key: string;
|
|
23
22
|
readonly machine_id: string;
|
|
23
|
+
readonly key: string;
|
|
24
24
|
}, void, Forbidden | NotFound, import("../credentials.ts").Credentials>;
|
|
25
25
|
//# sourceMappingURL=MachinesDeleteMetadata.d.ts.map
|
|
@@ -27,10 +27,10 @@ export type MachinesExecOutput = typeof MachinesExecOutput.Type;
|
|
|
27
27
|
*/
|
|
28
28
|
export declare const MachinesExec: import("@distilled.cloud/core/client").OperationMethod<{
|
|
29
29
|
readonly app_name: string;
|
|
30
|
+
readonly machine_id: string;
|
|
30
31
|
readonly cmd?: string | undefined;
|
|
31
32
|
readonly command?: readonly string[] | undefined;
|
|
32
33
|
readonly container?: string | undefined;
|
|
33
|
-
readonly machine_id: string;
|
|
34
34
|
readonly stdin?: string | undefined;
|
|
35
35
|
readonly timeout?: number | undefined;
|
|
36
36
|
}, {
|
|
@@ -21,8 +21,8 @@ export type MachinesGetMetadataKeyOutput = typeof MachinesGetMetadataKeyOutput.T
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const MachinesGetMetadataKey: import("@distilled.cloud/core/client").OperationMethod<{
|
|
23
23
|
readonly app_name: string;
|
|
24
|
-
readonly key: string;
|
|
25
24
|
readonly machine_id: string;
|
|
25
|
+
readonly key: string;
|
|
26
26
|
}, {
|
|
27
27
|
readonly value?: string | undefined;
|
|
28
28
|
}, NotFound, import("../credentials.ts").Credentials>;
|
|
@@ -26,8 +26,8 @@ export type MachinesListEventsOutput = typeof MachinesListEventsOutput.Type;
|
|
|
26
26
|
*/
|
|
27
27
|
export declare const MachinesListEvents: import("@distilled.cloud/core/client").OperationMethod<{
|
|
28
28
|
readonly app_name: string;
|
|
29
|
-
readonly limit?: number | undefined;
|
|
30
29
|
readonly machine_id: string;
|
|
30
|
+
readonly limit?: number | undefined;
|
|
31
31
|
}, readonly {
|
|
32
32
|
readonly id?: string | undefined;
|
|
33
33
|
readonly request?: unknown;
|
|
@@ -34,8 +34,8 @@ export type MachinesListProcessesOutput = typeof MachinesListProcessesOutput.Typ
|
|
|
34
34
|
export declare const MachinesListProcesses: import("@distilled.cloud/core/client").OperationMethod<{
|
|
35
35
|
readonly app_name: string;
|
|
36
36
|
readonly machine_id: string;
|
|
37
|
-
readonly order?: string | undefined;
|
|
38
37
|
readonly sort_by?: string | undefined;
|
|
38
|
+
readonly order?: string | undefined;
|
|
39
39
|
}, readonly {
|
|
40
40
|
readonly command?: string | undefined;
|
|
41
41
|
readonly cpu?: number | undefined;
|
|
@@ -60,14 +60,14 @@ export type MachinesOrgListOutput = typeof MachinesOrgListOutput.Type;
|
|
|
60
60
|
* @param limit - The number of machines to fetch (max of 2000). This limit is advisory. Responses may be shorter, even when more machines remain. If omitted, the maximum is used
|
|
61
61
|
*/
|
|
62
62
|
export declare const MachinesOrgList: import("@distilled.cloud/core/client").OperationMethod<{
|
|
63
|
-
readonly cursor?: string | undefined;
|
|
64
|
-
readonly include_deleted?: boolean | undefined;
|
|
65
|
-
readonly limit?: number | undefined;
|
|
66
63
|
readonly org_slug: string;
|
|
64
|
+
readonly include_deleted?: boolean | undefined;
|
|
67
65
|
readonly region?: string | undefined;
|
|
68
66
|
readonly state?: string | undefined;
|
|
69
67
|
readonly summary?: boolean | undefined;
|
|
70
68
|
readonly updated_after?: string | undefined;
|
|
69
|
+
readonly cursor?: string | undefined;
|
|
70
|
+
readonly limit?: number | undefined;
|
|
71
71
|
}, {
|
|
72
72
|
readonly last_machine_id?: string | undefined;
|
|
73
73
|
readonly last_updated_at?: string | undefined;
|
|
@@ -19,9 +19,9 @@ export type MachinesReclaimMemoryOutput = typeof MachinesReclaimMemoryOutput.Typ
|
|
|
19
19
|
* @param machine_id - Machine ID
|
|
20
20
|
*/
|
|
21
21
|
export declare const MachinesReclaimMemory: import("@distilled.cloud/core/client").OperationMethod<{
|
|
22
|
-
readonly amount_mb?: number | undefined;
|
|
23
22
|
readonly app_name: string;
|
|
24
23
|
readonly machine_id: string;
|
|
24
|
+
readonly amount_mb?: number | undefined;
|
|
25
25
|
}, {
|
|
26
26
|
readonly actual_mb?: number | undefined;
|
|
27
27
|
}, BadRequest | Forbidden | NotFound, import("../credentials.ts").Credentials>;
|
|
@@ -22,7 +22,7 @@ export type MachinesRestartOutput = typeof MachinesRestartOutput.Type;
|
|
|
22
22
|
export declare const MachinesRestart: import("@distilled.cloud/core/client").OperationMethod<{
|
|
23
23
|
readonly app_name: string;
|
|
24
24
|
readonly machine_id: string;
|
|
25
|
-
readonly signal?: "SIGHUP" | "SIGINT" | "SIGKILL" | "SIGQUIT" | "SIGTERM" | "SIGUSR1" | "SIGUSR2" | undefined;
|
|
26
25
|
readonly timeout?: string | undefined;
|
|
26
|
+
readonly signal?: "SIGHUP" | "SIGINT" | "SIGKILL" | "SIGQUIT" | "SIGTERM" | "SIGUSR1" | "SIGUSR2" | undefined;
|
|
27
27
|
}, void, BadRequest | Forbidden | NotFound, import("../credentials.ts").Credentials>;
|
|
28
28
|
//# sourceMappingURL=MachinesRestart.d.ts.map
|
|
@@ -21,8 +21,8 @@ export type MachinesSetMemoryLimitOutput = typeof MachinesSetMemoryLimitOutput.T
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const MachinesSetMemoryLimit: import("@distilled.cloud/core/client").OperationMethod<{
|
|
23
23
|
readonly app_name: string;
|
|
24
|
-
readonly limit_mb?: number | undefined;
|
|
25
24
|
readonly machine_id: string;
|
|
25
|
+
readonly limit_mb?: number | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
readonly available_mb?: number | undefined;
|
|
28
28
|
readonly limit_mb?: number | undefined;
|
|
@@ -802,6 +802,7 @@ export type MachinesUpdateOutput = typeof MachinesUpdateOutput.Type;
|
|
|
802
802
|
*/
|
|
803
803
|
export declare const MachinesUpdate: import("@distilled.cloud/core/client").OperationMethod<{
|
|
804
804
|
readonly app_name: string;
|
|
805
|
+
readonly machine_id: string;
|
|
805
806
|
readonly config?: {
|
|
806
807
|
readonly auto_destroy?: boolean | undefined;
|
|
807
808
|
readonly cache_drive?: {
|
|
@@ -1065,7 +1066,6 @@ export declare const MachinesUpdate: import("@distilled.cloud/core/client").Oper
|
|
|
1065
1066
|
readonly current_version?: string | undefined;
|
|
1066
1067
|
readonly lease_ttl?: number | undefined;
|
|
1067
1068
|
readonly lsvd?: boolean | undefined;
|
|
1068
|
-
readonly machine_id: string;
|
|
1069
1069
|
readonly min_secrets_version?: number | undefined;
|
|
1070
1070
|
readonly name?: string | undefined;
|
|
1071
1071
|
readonly region?: string | undefined;
|
|
@@ -21,8 +21,8 @@ export type MachinesUpsertMetadataOutput = typeof MachinesUpsertMetadataOutput.T
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const MachinesUpsertMetadata: import("@distilled.cloud/core/client").OperationMethod<{
|
|
23
23
|
readonly app_name: string;
|
|
24
|
-
readonly key: string;
|
|
25
24
|
readonly machine_id: string;
|
|
25
|
+
readonly key: string;
|
|
26
26
|
readonly updated_at?: string | undefined;
|
|
27
27
|
readonly value?: string | undefined;
|
|
28
28
|
}, void, BadRequest | Forbidden | NotFound, import("../credentials.ts").Credentials>;
|
|
@@ -33,12 +33,12 @@ export type MachinesWaitOutput = typeof MachinesWaitOutput.Type;
|
|
|
33
33
|
*/
|
|
34
34
|
export declare const MachinesWait: import("@distilled.cloud/core/client").OperationMethod<{
|
|
35
35
|
readonly app_name: string;
|
|
36
|
-
readonly from_event_id?: string | undefined;
|
|
37
|
-
readonly instance_id?: string | undefined;
|
|
38
36
|
readonly machine_id: string;
|
|
39
|
-
readonly state?: "destroyed" | "failed" | "settled" | "started" | "stopped" | "suspended" | undefined;
|
|
40
|
-
readonly timeout?: number | undefined;
|
|
41
37
|
readonly version?: string | undefined;
|
|
38
|
+
readonly instance_id?: string | undefined;
|
|
39
|
+
readonly from_event_id?: string | undefined;
|
|
40
|
+
readonly timeout?: number | undefined;
|
|
41
|
+
readonly state?: "destroyed" | "failed" | "settled" | "started" | "stopped" | "suspended" | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
readonly event_id?: string | undefined;
|
|
44
44
|
readonly ok?: boolean | undefined;
|
|
@@ -25,8 +25,8 @@ export type SecretGetOutput = typeof SecretGetOutput.Type;
|
|
|
25
25
|
*/
|
|
26
26
|
export declare const SecretGet: import("@distilled.cloud/core/client").OperationMethod<{
|
|
27
27
|
readonly app_name: string;
|
|
28
|
-
readonly min_version?: string | undefined;
|
|
29
28
|
readonly secret_name: string;
|
|
29
|
+
readonly min_version?: string | undefined;
|
|
30
30
|
readonly show_secrets?: boolean | undefined;
|
|
31
31
|
}, {
|
|
32
32
|
readonly created_at?: string | undefined;
|
|
@@ -21,10 +21,10 @@ export type SecretkeyDecryptOutput = typeof SecretkeyDecryptOutput.Type;
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const SecretkeyDecrypt: import("@distilled.cloud/core/client").OperationMethod<{
|
|
23
23
|
readonly app_name: string;
|
|
24
|
+
readonly secret_name: string;
|
|
25
|
+
readonly min_version?: string | undefined;
|
|
24
26
|
readonly associated_data?: readonly number[] | undefined;
|
|
25
27
|
readonly ciphertext?: readonly number[] | undefined;
|
|
26
|
-
readonly min_version?: string | undefined;
|
|
27
|
-
readonly secret_name: string;
|
|
28
28
|
}, {
|
|
29
29
|
readonly plaintext?: readonly number[] | undefined;
|
|
30
30
|
}, BadRequest | Forbidden | NotFound, import("../credentials.ts").Credentials>;
|
|
@@ -21,10 +21,10 @@ export type SecretkeyEncryptOutput = typeof SecretkeyEncryptOutput.Type;
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const SecretkeyEncrypt: import("@distilled.cloud/core/client").OperationMethod<{
|
|
23
23
|
readonly app_name: string;
|
|
24
|
-
readonly
|
|
24
|
+
readonly secret_name: string;
|
|
25
25
|
readonly min_version?: string | undefined;
|
|
26
|
+
readonly associated_data?: readonly number[] | undefined;
|
|
26
27
|
readonly plaintext?: readonly number[] | undefined;
|
|
27
|
-
readonly secret_name: string;
|
|
28
28
|
}, {
|
|
29
29
|
readonly ciphertext?: readonly number[] | undefined;
|
|
30
30
|
}, BadRequest | Forbidden | NotFound, import("../credentials.ts").Credentials>;
|
|
@@ -23,8 +23,8 @@ export type SecretkeyGetOutput = typeof SecretkeyGetOutput.Type;
|
|
|
23
23
|
*/
|
|
24
24
|
export declare const SecretkeyGet: import("@distilled.cloud/core/client").OperationMethod<{
|
|
25
25
|
readonly app_name: string;
|
|
26
|
-
readonly min_version?: string | undefined;
|
|
27
26
|
readonly secret_name: string;
|
|
27
|
+
readonly min_version?: string | undefined;
|
|
28
28
|
}, {
|
|
29
29
|
readonly created_at?: string | undefined;
|
|
30
30
|
readonly name?: string | undefined;
|
|
@@ -20,9 +20,9 @@ export type SecretkeySignOutput = typeof SecretkeySignOutput.Type;
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const SecretkeySign: import("@distilled.cloud/core/client").OperationMethod<{
|
|
22
22
|
readonly app_name: string;
|
|
23
|
+
readonly secret_name: string;
|
|
23
24
|
readonly min_version?: string | undefined;
|
|
24
25
|
readonly plaintext?: readonly number[] | undefined;
|
|
25
|
-
readonly secret_name: string;
|
|
26
26
|
}, {
|
|
27
27
|
readonly signature?: readonly number[] | undefined;
|
|
28
28
|
}, BadRequest | Forbidden | NotFound, import("../credentials.ts").Credentials>;
|
|
@@ -19,9 +19,9 @@ export type SecretkeyVerifyOutput = typeof SecretkeyVerifyOutput.Type;
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const SecretkeyVerify: import("@distilled.cloud/core/client").OperationMethod<{
|
|
21
21
|
readonly app_name: string;
|
|
22
|
+
readonly secret_name: string;
|
|
22
23
|
readonly min_version?: string | undefined;
|
|
23
24
|
readonly plaintext?: readonly number[] | undefined;
|
|
24
|
-
readonly secret_name: string;
|
|
25
25
|
readonly signature?: readonly number[] | undefined;
|
|
26
26
|
}, void, BadRequest | Forbidden | NotFound, import("../credentials.ts").Credentials>;
|
|
27
27
|
//# sourceMappingURL=SecretkeyVerify.d.ts.map
|
|
@@ -43,8 +43,8 @@ export type VolumesExtendOutput = typeof VolumesExtendOutput.Type;
|
|
|
43
43
|
*/
|
|
44
44
|
export declare const VolumesExtend: import("@distilled.cloud/core/client").OperationMethod<{
|
|
45
45
|
readonly app_name: string;
|
|
46
|
-
readonly size_gb?: number | undefined;
|
|
47
46
|
readonly volume_id: string;
|
|
47
|
+
readonly size_gb?: number | undefined;
|
|
48
48
|
}, {
|
|
49
49
|
readonly needs_restart?: boolean | undefined;
|
|
50
50
|
readonly volume?: {
|
|
@@ -56,14 +56,14 @@ export type VolumesOrgListOutput = typeof VolumesOrgListOutput.Type;
|
|
|
56
56
|
* @param limit - The number of volumes to fetch (max of 1000). This limit is advisory. Responses may be shorter, even when more volumes remain. If omitted, the maximum is used
|
|
57
57
|
*/
|
|
58
58
|
export declare const VolumesOrgList: import("@distilled.cloud/core/client").OperationMethod<{
|
|
59
|
-
readonly cursor?: string | undefined;
|
|
60
|
-
readonly include_deleted?: boolean | undefined;
|
|
61
|
-
readonly limit?: number | undefined;
|
|
62
59
|
readonly org_slug: string;
|
|
60
|
+
readonly include_deleted?: boolean | undefined;
|
|
63
61
|
readonly region?: string | undefined;
|
|
64
62
|
readonly state?: string | undefined;
|
|
65
63
|
readonly summary?: boolean | undefined;
|
|
66
64
|
readonly updated_after?: string | undefined;
|
|
65
|
+
readonly cursor?: string | undefined;
|
|
66
|
+
readonly limit?: number | undefined;
|
|
67
67
|
}, {
|
|
68
68
|
readonly last_updated_at?: string | undefined;
|
|
69
69
|
readonly last_volume_id?: string | undefined;
|
|
@@ -41,9 +41,9 @@ export type VolumesUpdateOutput = typeof VolumesUpdateOutput.Type;
|
|
|
41
41
|
*/
|
|
42
42
|
export declare const VolumesUpdate: import("@distilled.cloud/core/client").OperationMethod<{
|
|
43
43
|
readonly app_name: string;
|
|
44
|
+
readonly volume_id: string;
|
|
44
45
|
readonly auto_backup_enabled?: boolean | undefined;
|
|
45
46
|
readonly snapshot_retention?: number | undefined;
|
|
46
|
-
readonly volume_id: string;
|
|
47
47
|
}, {
|
|
48
48
|
readonly attached_alloc_id?: string | undefined;
|
|
49
49
|
readonly attached_machine_id?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/fly-io",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"specs:update": "git -C specs/distilled-spec-fly-io fetch && git -C specs/distilled-spec-fly-io checkout main && git -C specs/distilled-spec-fly-io pull"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@distilled.cloud/core": "0.
|
|
77
|
+
"@distilled.cloud/core": "0.20.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/bun": "^1.3.0",
|
|
@@ -83,6 +83,6 @@
|
|
|
83
83
|
"vitest": "^3.2.3"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"effect": ">=4.0.0-beta.
|
|
86
|
+
"effect": ">=4.0.0-beta.66 || >=4.0.0"
|
|
87
87
|
}
|
|
88
88
|
}
|
package/src/credentials.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
1
2
|
import * as EffectConfig from "effect/Config";
|
|
2
3
|
import * as Context from "effect/Context";
|
|
3
4
|
import * as Effect from "effect/Effect";
|
|
4
5
|
import * as Layer from "effect/Layer";
|
|
5
6
|
import * as Redacted from "effect/Redacted";
|
|
6
|
-
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
7
7
|
|
|
8
8
|
export const DEFAULT_API_BASE_URL = "https://api.machines.dev/v1";
|
|
9
9
|
|
|
@@ -22,7 +22,7 @@ const envConfig = EffectConfig.all({
|
|
|
22
22
|
|
|
23
23
|
export const CredentialsFromEnv = Layer.effect(
|
|
24
24
|
Credentials,
|
|
25
|
-
envConfig.
|
|
25
|
+
envConfig.pipe(
|
|
26
26
|
Effect.mapError(
|
|
27
27
|
() =>
|
|
28
28
|
new ConfigError({
|