@distilled.cloud/fly-io 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/lib/operations/AppCertificatesAcmeCreate.d.ts +57 -0
- package/lib/operations/AppCertificatesAcmeCreate.d.ts.map +1 -0
- package/lib/operations/AppCertificatesAcmeCreate.js +69 -0
- package/lib/operations/AppCertificatesAcmeCreate.js.map +1 -0
- package/lib/operations/AppCertificatesAcmeDelete.d.ts +55 -0
- package/lib/operations/AppCertificatesAcmeDelete.d.ts.map +1 -0
- package/lib/operations/AppCertificatesAcmeDelete.js +70 -0
- package/lib/operations/AppCertificatesAcmeDelete.js.map +1 -0
- package/lib/operations/AppCertificatesCheck.d.ts +64 -0
- package/lib/operations/AppCertificatesCheck.d.ts.map +1 -0
- package/lib/operations/AppCertificatesCheck.js +79 -0
- package/lib/operations/AppCertificatesCheck.js.map +1 -0
- package/lib/operations/AppCertificatesCustomCreate.d.ts +59 -0
- package/lib/operations/AppCertificatesCustomCreate.d.ts.map +1 -0
- package/lib/operations/AppCertificatesCustomCreate.js +72 -0
- package/lib/operations/AppCertificatesCustomCreate.js.map +1 -0
- package/lib/operations/AppCertificatesCustomDelete.d.ts +56 -0
- package/lib/operations/AppCertificatesCustomDelete.d.ts.map +1 -0
- package/lib/operations/AppCertificatesCustomDelete.js +71 -0
- package/lib/operations/AppCertificatesCustomDelete.js.map +1 -0
- package/lib/operations/AppCertificatesDelete.d.ts +10 -0
- package/lib/operations/AppCertificatesDelete.d.ts.map +1 -0
- package/lib/operations/AppCertificatesDelete.js +21 -0
- package/lib/operations/AppCertificatesDelete.js.map +1 -0
- package/lib/operations/AppCertificatesList.d.ts +36 -0
- package/lib/operations/AppCertificatesList.d.ts.map +1 -0
- package/lib/operations/AppCertificatesList.js +44 -0
- package/lib/operations/AppCertificatesList.js.map +1 -0
- package/lib/operations/AppCertificatesShow.d.ts +55 -0
- package/lib/operations/AppCertificatesShow.d.ts.map +1 -0
- package/lib/operations/AppCertificatesShow.js +67 -0
- package/lib/operations/AppCertificatesShow.js.map +1 -0
- package/lib/operations/AppIPAssignmentsCreate.d.ts +22 -0
- package/lib/operations/AppIPAssignmentsCreate.d.ts.map +1 -0
- package/lib/operations/AppIPAssignmentsCreate.js +30 -0
- package/lib/operations/AppIPAssignmentsCreate.js.map +1 -0
- package/lib/operations/AppIPAssignmentsDelete.d.ts +10 -0
- package/lib/operations/AppIPAssignmentsDelete.d.ts.map +1 -0
- package/lib/operations/AppIPAssignmentsDelete.js +18 -0
- package/lib/operations/AppIPAssignmentsDelete.js.map +1 -0
- package/lib/operations/AppIPAssignmentsList.d.ts +18 -0
- package/lib/operations/AppIPAssignmentsList.d.ts.map +1 -0
- package/lib/operations/AppIPAssignmentsList.js +26 -0
- package/lib/operations/AppIPAssignmentsList.js.map +1 -0
- package/lib/operations/MachinesGetMetadataKey.d.ts +22 -0
- package/lib/operations/MachinesGetMetadataKey.d.ts.map +1 -0
- package/lib/operations/MachinesGetMetadataKey.js +33 -0
- package/lib/operations/MachinesGetMetadataKey.js.map +1 -0
- package/lib/operations/MachinesUpsertMetadata.d.ts +22 -0
- package/lib/operations/MachinesUpsertMetadata.d.ts.map +1 -0
- package/lib/operations/MachinesUpsertMetadata.js +33 -0
- package/lib/operations/MachinesUpsertMetadata.js.map +1 -0
- package/lib/operations/TokensRequestKms.d.ts +12 -0
- package/lib/operations/TokensRequestKms.d.ts.map +1 -0
- package/lib/operations/TokensRequestKms.js +18 -0
- package/lib/operations/TokensRequestKms.js.map +1 -0
- package/lib/operations/TokensRequestOIDC.d.ts +15 -0
- package/lib/operations/TokensRequestOIDC.d.ts.map +1 -0
- package/lib/operations/TokensRequestOIDC.js +22 -0
- package/lib/operations/TokensRequestOIDC.js.map +1 -0
- package/lib/operations/index.d.ts +13 -13
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +13 -13
- package/lib/operations/index.js.map +1 -1
- package/package.json +4 -4
- package/src/operations/AppCertificatesAcmeCreate.ts +101 -0
- package/src/operations/AppCertificatesAcmeDelete.ts +102 -0
- package/src/operations/AppCertificatesCheck.ts +111 -0
- package/src/operations/AppCertificatesCustomCreate.ts +104 -0
- package/src/operations/AppCertificatesCustomDelete.ts +103 -0
- package/src/operations/AppCertificatesDelete.ts +30 -0
- package/src/operations/AppCertificatesList.ts +52 -0
- package/src/operations/AppCertificatesShow.ts +95 -0
- package/src/operations/AppIPAssignmentsCreate.ts +38 -0
- package/src/operations/AppIPAssignmentsDelete.ts +28 -0
- package/src/operations/AppIPAssignmentsList.ts +38 -0
- package/src/operations/MachinesGetMetadataKey.ts +43 -0
- package/src/operations/MachinesUpsertMetadata.ts +43 -0
- package/src/operations/TokensRequestKms.ts +24 -0
- package/src/operations/TokensRequestOIDC.ts +28 -0
- package/src/operations/index.ts +13 -13
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MachinesGetMetadataKey.js","sourceRoot":"","sources":["../../src/operations/MachinesGetMetadataKey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC7C,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CACvC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,uDAAuD;CAC9D,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B;AACvC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACtC,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACxE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,2BAA2B;IACxC,YAAY,EAAE,4BAA4B;CAC3C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const MachinesUpsertMetadataInput: Schema.Struct<{
|
|
3
|
+
readonly app_name: Schema.String;
|
|
4
|
+
readonly machine_id: Schema.String;
|
|
5
|
+
readonly key: Schema.String;
|
|
6
|
+
readonly updated_at: Schema.optional<Schema.String>;
|
|
7
|
+
readonly value: Schema.optional<Schema.String>;
|
|
8
|
+
}>;
|
|
9
|
+
export type MachinesUpsertMetadataInput = typeof MachinesUpsertMetadataInput.Type;
|
|
10
|
+
export declare const MachinesUpsertMetadataOutput: Schema.Void;
|
|
11
|
+
export type MachinesUpsertMetadataOutput = typeof MachinesUpsertMetadataOutput.Type;
|
|
12
|
+
/**
|
|
13
|
+
* Upsert Metadata Key
|
|
14
|
+
*
|
|
15
|
+
* Update metadata for a specific machine within an app by providing a metadata key.
|
|
16
|
+
*
|
|
17
|
+
* @param app_name - Fly App Name
|
|
18
|
+
* @param machine_id - Machine ID
|
|
19
|
+
* @param key - Metadata Key
|
|
20
|
+
*/
|
|
21
|
+
export declare const MachinesUpsertMetadata: any;
|
|
22
|
+
//# sourceMappingURL=MachinesUpsertMetadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MachinesUpsertMetadata.d.ts","sourceRoot":"","sources":["../../src/operations/MachinesUpsertMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,2BAA2B;;;;;;EAYrC,CAAC;AACJ,MAAM,MAAM,2BAA2B,GACrC,OAAO,2BAA2B,CAAC,IAAI,CAAC;AAG1C,eAAO,MAAM,4BAA4B,aACA,CAAC;AAC1C,MAAM,MAAM,4BAA4B,GACtC,OAAO,4BAA4B,CAAC,IAAI,CAAC;AAG3C;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,KAKlC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const MachinesUpsertMetadataInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
app_name: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
machine_id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
key: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
updated_at: Schema.optional(Schema.String),
|
|
11
|
+
value: Schema.optional(Schema.String),
|
|
12
|
+
}).pipe(T.Http({
|
|
13
|
+
method: "POST",
|
|
14
|
+
path: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
15
|
+
}));
|
|
16
|
+
// Output Schema
|
|
17
|
+
export const MachinesUpsertMetadataOutput =
|
|
18
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
19
|
+
// The operation
|
|
20
|
+
/**
|
|
21
|
+
* Upsert Metadata Key
|
|
22
|
+
*
|
|
23
|
+
* Update metadata for a specific machine within an app by providing a metadata key.
|
|
24
|
+
*
|
|
25
|
+
* @param app_name - Fly App Name
|
|
26
|
+
* @param machine_id - Machine ID
|
|
27
|
+
* @param key - Metadata Key
|
|
28
|
+
*/
|
|
29
|
+
export const MachinesUpsertMetadata = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
30
|
+
inputSchema: MachinesUpsertMetadataInput,
|
|
31
|
+
outputSchema: MachinesUpsertMetadataOutput,
|
|
32
|
+
}));
|
|
33
|
+
//# sourceMappingURL=MachinesUpsertMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MachinesUpsertMetadata.js","sourceRoot":"","sources":["../../src/operations/MachinesUpsertMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,2BAA2B;AACtC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC3C,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC7C,GAAG,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACtC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC;IACL,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,uDAAuD;CAC9D,CAAC,CACH,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B;AACvC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC;AAI1C,gBAAgB;AAChB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACxE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,2BAA2B;IACxC,YAAY,EAAE,4BAA4B;CAC3C,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const TokensRequestKmsInput: Schema.Struct<{}>;
|
|
3
|
+
export type TokensRequestKmsInput = typeof TokensRequestKmsInput.Type;
|
|
4
|
+
export declare const TokensRequestKmsOutput: Schema.String;
|
|
5
|
+
export type TokensRequestKmsOutput = typeof TokensRequestKmsOutput.Type;
|
|
6
|
+
/**
|
|
7
|
+
* Request a Petsem token for accessing KMS
|
|
8
|
+
*
|
|
9
|
+
* 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.
|
|
10
|
+
*/
|
|
11
|
+
export declare const TokensRequestKms: any;
|
|
12
|
+
//# sourceMappingURL=TokensRequestKms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokensRequestKms.d.ts","sourceRoot":"","sources":["../../src/operations/TokensRequestKms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,qBAAqB,mBAEqB,CAAC;AACxD,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE,eAAO,MAAM,sBAAsB,eAA4C,CAAC;AAChF,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,KAG1B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const TokensRequestKmsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({ method: "POST", path: "/tokens/kms" }));
|
|
6
|
+
// Output Schema
|
|
7
|
+
export const TokensRequestKmsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
8
|
+
// The operation
|
|
9
|
+
/**
|
|
10
|
+
* Request a Petsem token for accessing KMS
|
|
11
|
+
*
|
|
12
|
+
* 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.
|
|
13
|
+
*/
|
|
14
|
+
export const TokensRequestKms = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
15
|
+
inputSchema: TokensRequestKmsInput,
|
|
16
|
+
outputSchema: TokensRequestKmsOutput,
|
|
17
|
+
}));
|
|
18
|
+
//# sourceMappingURL=TokensRequestKms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokensRequestKms.js","sourceRoot":"","sources":["../../src/operations/TokensRequestKms.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,qBAAqB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC5E,EAAE,CACH,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC;AAGxD,gBAAgB;AAChB,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;AAGhF,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1E,WAAW,EAAE,qBAAqB;IAClC,YAAY,EAAE,sBAAsB;CACrC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const TokensRequestOIDCInput: Schema.Struct<{
|
|
3
|
+
readonly aud: Schema.optional<Schema.String>;
|
|
4
|
+
readonly aws_principal_tags: Schema.optional<Schema.Boolean>;
|
|
5
|
+
}>;
|
|
6
|
+
export type TokensRequestOIDCInput = typeof TokensRequestOIDCInput.Type;
|
|
7
|
+
export declare const TokensRequestOIDCOutput: Schema.String;
|
|
8
|
+
export type TokensRequestOIDCOutput = typeof TokensRequestOIDCOutput.Type;
|
|
9
|
+
/**
|
|
10
|
+
* Request an OIDC token
|
|
11
|
+
*
|
|
12
|
+
* 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.
|
|
13
|
+
*/
|
|
14
|
+
export declare const TokensRequestOIDC: any;
|
|
15
|
+
//# sourceMappingURL=TokensRequestOIDC.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokensRequestOIDC.d.ts","sourceRoot":"","sources":["../../src/operations/TokensRequestOIDC.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,sBAAsB;;;EAKqB,CAAC;AACzD,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE,eAAO,MAAM,uBAAuB,eACO,CAAC;AAC5C,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,KAG3B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const TokensRequestOIDCInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
aud: Schema.optional(Schema.String),
|
|
7
|
+
aws_principal_tags: Schema.optional(Schema.Boolean),
|
|
8
|
+
}).pipe(T.Http({ method: "POST", path: "/tokens/oidc" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const TokensRequestOIDCOutput =
|
|
11
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
12
|
+
// The operation
|
|
13
|
+
/**
|
|
14
|
+
* Request an OIDC token
|
|
15
|
+
*
|
|
16
|
+
* 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.
|
|
17
|
+
*/
|
|
18
|
+
export const TokensRequestOIDC = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
19
|
+
inputSchema: TokensRequestOIDCInput,
|
|
20
|
+
outputSchema: TokensRequestOIDCOutput,
|
|
21
|
+
}));
|
|
22
|
+
//# sourceMappingURL=TokensRequestOIDC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokensRequestOIDC.js","sourceRoot":"","sources":["../../src/operations/TokensRequestOIDC.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,GAAG,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACnC,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;CACpD,CACF,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;AAGzD,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB;AAClC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;AAG5C,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC3E,WAAW,EAAE,sBAAsB;IACnC,YAAY,EAAE,uBAAuB;CACtC,CAAC,CAAC,CAAC"}
|
|
@@ -2,18 +2,18 @@ export * from "./AppsList";
|
|
|
2
2
|
export * from "./AppsCreate";
|
|
3
3
|
export * from "./AppsShow";
|
|
4
4
|
export * from "./AppsDelete";
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
5
|
+
export * from "./AppCertificatesList";
|
|
6
|
+
export * from "./AppCertificatesAcmeCreate";
|
|
7
|
+
export * from "./AppCertificatesCustomCreate";
|
|
8
|
+
export * from "./AppCertificatesShow";
|
|
9
|
+
export * from "./AppCertificatesDelete";
|
|
10
|
+
export * from "./AppCertificatesAcmeDelete";
|
|
11
|
+
export * from "./AppCertificatesCheck";
|
|
12
|
+
export * from "./AppCertificatesCustomDelete";
|
|
13
13
|
export * from "./AppCreateDeployToken";
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
14
|
+
export * from "./AppIPAssignmentsList";
|
|
15
|
+
export * from "./AppIPAssignmentsCreate";
|
|
16
|
+
export * from "./AppIPAssignmentsDelete";
|
|
17
17
|
export * from "./MachinesList";
|
|
18
18
|
export * from "./MachinesCreate";
|
|
19
19
|
export * from "./MachinesShow";
|
|
@@ -66,7 +66,7 @@ export * from "./createVolumeSnapshot";
|
|
|
66
66
|
export * from "./MachinesOrgList";
|
|
67
67
|
export * from "./PlatformPlacementsPost";
|
|
68
68
|
export * from "./PlatformRegionsGet";
|
|
69
|
-
export * from "./
|
|
70
|
-
export * from "./
|
|
69
|
+
export * from "./TokensRequestKms";
|
|
70
|
+
export * from "./TokensRequestOIDC";
|
|
71
71
|
export * from "./CurrentTokenShow";
|
|
72
72
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
|
package/lib/operations/index.js
CHANGED
|
@@ -2,18 +2,18 @@ export * from "./AppsList";
|
|
|
2
2
|
export * from "./AppsCreate";
|
|
3
3
|
export * from "./AppsShow";
|
|
4
4
|
export * from "./AppsDelete";
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
7
|
-
export * from "./
|
|
8
|
-
export * from "./
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
11
|
-
export * from "./
|
|
12
|
-
export * from "./
|
|
5
|
+
export * from "./AppCertificatesList";
|
|
6
|
+
export * from "./AppCertificatesAcmeCreate";
|
|
7
|
+
export * from "./AppCertificatesCustomCreate";
|
|
8
|
+
export * from "./AppCertificatesShow";
|
|
9
|
+
export * from "./AppCertificatesDelete";
|
|
10
|
+
export * from "./AppCertificatesAcmeDelete";
|
|
11
|
+
export * from "./AppCertificatesCheck";
|
|
12
|
+
export * from "./AppCertificatesCustomDelete";
|
|
13
13
|
export * from "./AppCreateDeployToken";
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
14
|
+
export * from "./AppIPAssignmentsList";
|
|
15
|
+
export * from "./AppIPAssignmentsCreate";
|
|
16
|
+
export * from "./AppIPAssignmentsDelete";
|
|
17
17
|
export * from "./MachinesList";
|
|
18
18
|
export * from "./MachinesCreate";
|
|
19
19
|
export * from "./MachinesShow";
|
|
@@ -66,7 +66,7 @@ export * from "./createVolumeSnapshot";
|
|
|
66
66
|
export * from "./MachinesOrgList";
|
|
67
67
|
export * from "./PlatformPlacementsPost";
|
|
68
68
|
export * from "./PlatformRegionsGet";
|
|
69
|
-
export * from "./
|
|
70
|
-
export * from "./
|
|
69
|
+
export * from "./TokensRequestKms";
|
|
70
|
+
export * from "./TokensRequestOIDC";
|
|
71
71
|
export * from "./CurrentTokenShow";
|
|
72
72
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/fly-io",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
"check": "tsgo && oxlint src && oxfmt --check src",
|
|
69
69
|
"test": "bunx vitest run test",
|
|
70
70
|
"publish:npm": "bun run build && bun publish --access public",
|
|
71
|
-
"generate": "bun run scripts/generate.ts && oxfmt --write src &&
|
|
72
|
-
"specs:fetch": "git submodule update --force --init --recursive specs/distilled-spec-fly-io && git -C specs/distilled-spec-fly-io checkout -- .",
|
|
71
|
+
"generate": "bun run scripts/generate.ts && oxlint --fix src && oxfmt --write src && oxfmt --write src",
|
|
72
|
+
"specs:fetch": "git submodule update --force --init --recursive --depth=1 specs/distilled-spec-fly-io && git -C specs/distilled-spec-fly-io checkout -- .",
|
|
73
73
|
"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"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@distilled.cloud/core": "0.
|
|
76
|
+
"@distilled.cloud/core": "0.5.1",
|
|
77
77
|
"effect": "4.0.0-beta.30"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AppCertificatesAcmeCreateInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
hostname: Schema.optional(Schema.String),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({ method: "POST", path: "/apps/{app_name}/certificates/acme" }),
|
|
11
|
+
);
|
|
12
|
+
export type AppCertificatesAcmeCreateInput =
|
|
13
|
+
typeof AppCertificatesAcmeCreateInput.Type;
|
|
14
|
+
|
|
15
|
+
// Output Schema
|
|
16
|
+
export const AppCertificatesAcmeCreateOutput =
|
|
17
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
18
|
+
acme_requested: Schema.optional(Schema.Boolean),
|
|
19
|
+
certificates: Schema.optional(
|
|
20
|
+
Schema.Array(
|
|
21
|
+
Schema.Struct({
|
|
22
|
+
created_at: Schema.optional(Schema.String),
|
|
23
|
+
expires_at: Schema.optional(Schema.String),
|
|
24
|
+
issued: Schema.optional(
|
|
25
|
+
Schema.Array(
|
|
26
|
+
Schema.Struct({
|
|
27
|
+
certificate_authority: Schema.optional(Schema.String),
|
|
28
|
+
expires_at: Schema.optional(Schema.String),
|
|
29
|
+
type: Schema.optional(Schema.Literals(["rsa", "ecdsa"])),
|
|
30
|
+
}),
|
|
31
|
+
),
|
|
32
|
+
),
|
|
33
|
+
issuer: Schema.optional(Schema.String),
|
|
34
|
+
source: Schema.optional(Schema.Literals(["custom", "fly"])),
|
|
35
|
+
status: Schema.optional(
|
|
36
|
+
Schema.Literals([
|
|
37
|
+
"active",
|
|
38
|
+
"pending_ownership",
|
|
39
|
+
"pending_validation",
|
|
40
|
+
]),
|
|
41
|
+
),
|
|
42
|
+
}),
|
|
43
|
+
),
|
|
44
|
+
),
|
|
45
|
+
configured: Schema.optional(Schema.Boolean),
|
|
46
|
+
dns_provider: Schema.optional(Schema.String),
|
|
47
|
+
dns_requirements: Schema.optional(
|
|
48
|
+
Schema.Struct({
|
|
49
|
+
a: Schema.optional(Schema.Array(Schema.String)),
|
|
50
|
+
aaaa: Schema.optional(Schema.Array(Schema.String)),
|
|
51
|
+
acme_challenge: Schema.optional(
|
|
52
|
+
Schema.Struct({
|
|
53
|
+
name: Schema.optional(Schema.String),
|
|
54
|
+
target: Schema.optional(Schema.String),
|
|
55
|
+
}),
|
|
56
|
+
),
|
|
57
|
+
cname: Schema.optional(Schema.String),
|
|
58
|
+
ownership: Schema.optional(
|
|
59
|
+
Schema.Struct({
|
|
60
|
+
app_value: Schema.optional(Schema.String),
|
|
61
|
+
name: Schema.optional(Schema.String),
|
|
62
|
+
org_value: Schema.optional(Schema.String),
|
|
63
|
+
}),
|
|
64
|
+
),
|
|
65
|
+
}),
|
|
66
|
+
),
|
|
67
|
+
hostname: Schema.optional(Schema.String),
|
|
68
|
+
rate_limited_until: Schema.optional(Schema.String),
|
|
69
|
+
status: Schema.optional(Schema.String),
|
|
70
|
+
validation: Schema.optional(
|
|
71
|
+
Schema.Struct({
|
|
72
|
+
alpn_configured: Schema.optional(Schema.Boolean),
|
|
73
|
+
dns_configured: Schema.optional(Schema.Boolean),
|
|
74
|
+
http_configured: Schema.optional(Schema.Boolean),
|
|
75
|
+
ownership_txt_configured: Schema.optional(Schema.Boolean),
|
|
76
|
+
}),
|
|
77
|
+
),
|
|
78
|
+
validation_errors: Schema.optional(
|
|
79
|
+
Schema.Array(
|
|
80
|
+
Schema.Struct({
|
|
81
|
+
code: Schema.optional(Schema.String),
|
|
82
|
+
message: Schema.optional(Schema.String),
|
|
83
|
+
remediation: Schema.optional(Schema.String),
|
|
84
|
+
timestamp: Schema.optional(Schema.String),
|
|
85
|
+
}),
|
|
86
|
+
),
|
|
87
|
+
),
|
|
88
|
+
});
|
|
89
|
+
export type AppCertificatesAcmeCreateOutput =
|
|
90
|
+
typeof AppCertificatesAcmeCreateOutput.Type;
|
|
91
|
+
|
|
92
|
+
// The operation
|
|
93
|
+
/**
|
|
94
|
+
* Request ACME certificate
|
|
95
|
+
*/
|
|
96
|
+
export const AppCertificatesAcmeCreate = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
97
|
+
() => ({
|
|
98
|
+
inputSchema: AppCertificatesAcmeCreateInput,
|
|
99
|
+
outputSchema: AppCertificatesAcmeCreateOutput,
|
|
100
|
+
}),
|
|
101
|
+
);
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AppCertificatesAcmeDeleteInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
+
T.Http({
|
|
9
|
+
method: "DELETE",
|
|
10
|
+
path: "/apps/{app_name}/certificates/{hostname}/acme",
|
|
11
|
+
}),
|
|
12
|
+
);
|
|
13
|
+
export type AppCertificatesAcmeDeleteInput =
|
|
14
|
+
typeof AppCertificatesAcmeDeleteInput.Type;
|
|
15
|
+
|
|
16
|
+
// Output Schema
|
|
17
|
+
export const AppCertificatesAcmeDeleteOutput =
|
|
18
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
19
|
+
acme_requested: Schema.optional(Schema.Boolean),
|
|
20
|
+
certificates: Schema.optional(
|
|
21
|
+
Schema.Array(
|
|
22
|
+
Schema.Struct({
|
|
23
|
+
created_at: Schema.optional(Schema.String),
|
|
24
|
+
expires_at: Schema.optional(Schema.String),
|
|
25
|
+
issued: Schema.optional(
|
|
26
|
+
Schema.Array(
|
|
27
|
+
Schema.Struct({
|
|
28
|
+
certificate_authority: Schema.optional(Schema.String),
|
|
29
|
+
expires_at: Schema.optional(Schema.String),
|
|
30
|
+
type: Schema.optional(Schema.Literals(["rsa", "ecdsa"])),
|
|
31
|
+
}),
|
|
32
|
+
),
|
|
33
|
+
),
|
|
34
|
+
issuer: Schema.optional(Schema.String),
|
|
35
|
+
source: Schema.optional(Schema.Literals(["custom", "fly"])),
|
|
36
|
+
status: Schema.optional(
|
|
37
|
+
Schema.Literals([
|
|
38
|
+
"active",
|
|
39
|
+
"pending_ownership",
|
|
40
|
+
"pending_validation",
|
|
41
|
+
]),
|
|
42
|
+
),
|
|
43
|
+
}),
|
|
44
|
+
),
|
|
45
|
+
),
|
|
46
|
+
configured: Schema.optional(Schema.Boolean),
|
|
47
|
+
dns_provider: Schema.optional(Schema.String),
|
|
48
|
+
dns_requirements: Schema.optional(
|
|
49
|
+
Schema.Struct({
|
|
50
|
+
a: Schema.optional(Schema.Array(Schema.String)),
|
|
51
|
+
aaaa: Schema.optional(Schema.Array(Schema.String)),
|
|
52
|
+
acme_challenge: Schema.optional(
|
|
53
|
+
Schema.Struct({
|
|
54
|
+
name: Schema.optional(Schema.String),
|
|
55
|
+
target: Schema.optional(Schema.String),
|
|
56
|
+
}),
|
|
57
|
+
),
|
|
58
|
+
cname: Schema.optional(Schema.String),
|
|
59
|
+
ownership: Schema.optional(
|
|
60
|
+
Schema.Struct({
|
|
61
|
+
app_value: Schema.optional(Schema.String),
|
|
62
|
+
name: Schema.optional(Schema.String),
|
|
63
|
+
org_value: Schema.optional(Schema.String),
|
|
64
|
+
}),
|
|
65
|
+
),
|
|
66
|
+
}),
|
|
67
|
+
),
|
|
68
|
+
hostname: Schema.optional(Schema.String),
|
|
69
|
+
rate_limited_until: Schema.optional(Schema.String),
|
|
70
|
+
status: Schema.optional(Schema.String),
|
|
71
|
+
validation: Schema.optional(
|
|
72
|
+
Schema.Struct({
|
|
73
|
+
alpn_configured: Schema.optional(Schema.Boolean),
|
|
74
|
+
dns_configured: Schema.optional(Schema.Boolean),
|
|
75
|
+
http_configured: Schema.optional(Schema.Boolean),
|
|
76
|
+
ownership_txt_configured: Schema.optional(Schema.Boolean),
|
|
77
|
+
}),
|
|
78
|
+
),
|
|
79
|
+
validation_errors: Schema.optional(
|
|
80
|
+
Schema.Array(
|
|
81
|
+
Schema.Struct({
|
|
82
|
+
code: Schema.optional(Schema.String),
|
|
83
|
+
message: Schema.optional(Schema.String),
|
|
84
|
+
remediation: Schema.optional(Schema.String),
|
|
85
|
+
timestamp: Schema.optional(Schema.String),
|
|
86
|
+
}),
|
|
87
|
+
),
|
|
88
|
+
),
|
|
89
|
+
});
|
|
90
|
+
export type AppCertificatesAcmeDeleteOutput =
|
|
91
|
+
typeof AppCertificatesAcmeDeleteOutput.Type;
|
|
92
|
+
|
|
93
|
+
// The operation
|
|
94
|
+
/**
|
|
95
|
+
* Remove ACME certificates
|
|
96
|
+
*/
|
|
97
|
+
export const AppCertificatesAcmeDelete = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
98
|
+
() => ({
|
|
99
|
+
inputSchema: AppCertificatesAcmeDeleteInput,
|
|
100
|
+
outputSchema: AppCertificatesAcmeDeleteOutput,
|
|
101
|
+
}),
|
|
102
|
+
);
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const AppCertificatesCheckInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
|
|
8
|
+
T.Http({
|
|
9
|
+
method: "POST",
|
|
10
|
+
path: "/apps/{app_name}/certificates/{hostname}/check",
|
|
11
|
+
}),
|
|
12
|
+
);
|
|
13
|
+
export type AppCertificatesCheckInput = typeof AppCertificatesCheckInput.Type;
|
|
14
|
+
|
|
15
|
+
// Output Schema
|
|
16
|
+
export const AppCertificatesCheckOutput =
|
|
17
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
18
|
+
acme_requested: Schema.optional(Schema.Boolean),
|
|
19
|
+
certificates: Schema.optional(
|
|
20
|
+
Schema.Array(
|
|
21
|
+
Schema.Struct({
|
|
22
|
+
created_at: Schema.optional(Schema.String),
|
|
23
|
+
expires_at: Schema.optional(Schema.String),
|
|
24
|
+
issued: Schema.optional(
|
|
25
|
+
Schema.Array(
|
|
26
|
+
Schema.Struct({
|
|
27
|
+
certificate_authority: Schema.optional(Schema.String),
|
|
28
|
+
expires_at: Schema.optional(Schema.String),
|
|
29
|
+
type: Schema.optional(Schema.Literals(["rsa", "ecdsa"])),
|
|
30
|
+
}),
|
|
31
|
+
),
|
|
32
|
+
),
|
|
33
|
+
issuer: Schema.optional(Schema.String),
|
|
34
|
+
source: Schema.optional(Schema.Literals(["custom", "fly"])),
|
|
35
|
+
status: Schema.optional(
|
|
36
|
+
Schema.Literals([
|
|
37
|
+
"active",
|
|
38
|
+
"pending_ownership",
|
|
39
|
+
"pending_validation",
|
|
40
|
+
]),
|
|
41
|
+
),
|
|
42
|
+
}),
|
|
43
|
+
),
|
|
44
|
+
),
|
|
45
|
+
configured: Schema.optional(Schema.Boolean),
|
|
46
|
+
dns_provider: Schema.optional(Schema.String),
|
|
47
|
+
dns_records: Schema.optional(
|
|
48
|
+
Schema.Struct({
|
|
49
|
+
a: Schema.optional(Schema.Array(Schema.String)),
|
|
50
|
+
aaaa: Schema.optional(Schema.Array(Schema.String)),
|
|
51
|
+
acme_challenge_cname: Schema.optional(Schema.String),
|
|
52
|
+
cname: Schema.optional(Schema.Array(Schema.String)),
|
|
53
|
+
ownership_txt: Schema.optional(Schema.String),
|
|
54
|
+
resolved_addresses: Schema.optional(Schema.Array(Schema.String)),
|
|
55
|
+
soa: Schema.optional(Schema.String),
|
|
56
|
+
}),
|
|
57
|
+
),
|
|
58
|
+
dns_requirements: Schema.optional(
|
|
59
|
+
Schema.Struct({
|
|
60
|
+
a: Schema.optional(Schema.Array(Schema.String)),
|
|
61
|
+
aaaa: Schema.optional(Schema.Array(Schema.String)),
|
|
62
|
+
acme_challenge: Schema.optional(
|
|
63
|
+
Schema.Struct({
|
|
64
|
+
name: Schema.optional(Schema.String),
|
|
65
|
+
target: Schema.optional(Schema.String),
|
|
66
|
+
}),
|
|
67
|
+
),
|
|
68
|
+
cname: Schema.optional(Schema.String),
|
|
69
|
+
ownership: Schema.optional(
|
|
70
|
+
Schema.Struct({
|
|
71
|
+
app_value: Schema.optional(Schema.String),
|
|
72
|
+
name: Schema.optional(Schema.String),
|
|
73
|
+
org_value: Schema.optional(Schema.String),
|
|
74
|
+
}),
|
|
75
|
+
),
|
|
76
|
+
}),
|
|
77
|
+
),
|
|
78
|
+
hostname: Schema.optional(Schema.String),
|
|
79
|
+
rate_limited_until: Schema.optional(Schema.String),
|
|
80
|
+
status: Schema.optional(Schema.String),
|
|
81
|
+
validation: Schema.optional(
|
|
82
|
+
Schema.Struct({
|
|
83
|
+
alpn_configured: Schema.optional(Schema.Boolean),
|
|
84
|
+
dns_configured: Schema.optional(Schema.Boolean),
|
|
85
|
+
http_configured: Schema.optional(Schema.Boolean),
|
|
86
|
+
ownership_txt_configured: Schema.optional(Schema.Boolean),
|
|
87
|
+
}),
|
|
88
|
+
),
|
|
89
|
+
validation_errors: Schema.optional(
|
|
90
|
+
Schema.Array(
|
|
91
|
+
Schema.Struct({
|
|
92
|
+
code: Schema.optional(Schema.String),
|
|
93
|
+
message: Schema.optional(Schema.String),
|
|
94
|
+
remediation: Schema.optional(Schema.String),
|
|
95
|
+
timestamp: Schema.optional(Schema.String),
|
|
96
|
+
}),
|
|
97
|
+
),
|
|
98
|
+
),
|
|
99
|
+
});
|
|
100
|
+
export type AppCertificatesCheckOutput = typeof AppCertificatesCheckOutput.Type;
|
|
101
|
+
|
|
102
|
+
// The operation
|
|
103
|
+
/**
|
|
104
|
+
* Check DNS and re-validate certificate
|
|
105
|
+
*/
|
|
106
|
+
export const AppCertificatesCheck = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
107
|
+
() => ({
|
|
108
|
+
inputSchema: AppCertificatesCheckInput,
|
|
109
|
+
outputSchema: AppCertificatesCheckOutput,
|
|
110
|
+
}),
|
|
111
|
+
);
|