@distilled.cloud/prisma-postgres 0.3.0-alpha → 0.5.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/operations/deleteV1ComputeServicesByComputeServiceId.d.ts +15 -0
- package/lib/operations/deleteV1ComputeServicesByComputeServiceId.d.ts.map +1 -0
- package/lib/operations/deleteV1ComputeServicesByComputeServiceId.js +27 -0
- package/lib/operations/deleteV1ComputeServicesByComputeServiceId.js.map +1 -0
- package/lib/operations/deleteV1ComputeServicesVersionsByVersionId.d.ts +15 -0
- package/lib/operations/deleteV1ComputeServicesVersionsByVersionId.d.ts.map +1 -0
- package/lib/operations/deleteV1ComputeServicesVersionsByVersionId.js +27 -0
- package/lib/operations/deleteV1ComputeServicesVersionsByVersionId.js.map +1 -0
- package/lib/operations/deleteV1VersionsByVersionId.d.ts +15 -0
- package/lib/operations/deleteV1VersionsByVersionId.d.ts.map +1 -0
- package/lib/operations/deleteV1VersionsByVersionId.js +23 -0
- package/lib/operations/deleteV1VersionsByVersionId.js.map +1 -0
- package/lib/operations/getV1ComputeServices.d.ts +35 -0
- package/lib/operations/getV1ComputeServices.d.ts.map +1 -0
- package/lib/operations/getV1ComputeServices.js +43 -0
- package/lib/operations/getV1ComputeServices.js.map +1 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceId.d.ts +29 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceId.d.ts.map +1 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceId.js +38 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceId.js.map +1 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceIdVersions.d.ts +29 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceIdVersions.d.ts.map +1 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceIdVersions.js +41 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceIdVersions.js.map +1 -0
- package/lib/operations/getV1ComputeServicesVersionsByVersionId.d.ts +26 -0
- package/lib/operations/getV1ComputeServicesVersionsByVersionId.d.ts.map +1 -0
- package/lib/operations/getV1ComputeServicesVersionsByVersionId.js +38 -0
- package/lib/operations/getV1ComputeServicesVersionsByVersionId.js.map +1 -0
- package/lib/operations/getV1ProjectsByProjectIdComputeServices.d.ts +35 -0
- package/lib/operations/getV1ProjectsByProjectIdComputeServices.d.ts.map +1 -0
- package/lib/operations/getV1ProjectsByProjectIdComputeServices.js +47 -0
- package/lib/operations/getV1ProjectsByProjectIdComputeServices.js.map +1 -0
- package/lib/operations/getV1Versions.d.ts +29 -0
- package/lib/operations/getV1Versions.d.ts.map +1 -0
- package/lib/operations/getV1Versions.js +35 -0
- package/lib/operations/getV1Versions.js.map +1 -0
- package/lib/operations/getV1VersionsByVersionId.d.ts +26 -0
- package/lib/operations/getV1VersionsByVersionId.d.ts.map +1 -0
- package/lib/operations/getV1VersionsByVersionId.js +34 -0
- package/lib/operations/getV1VersionsByVersionId.js.map +1 -0
- package/lib/operations/patchV1ComputeServicesByComputeServiceId.d.ts +30 -0
- package/lib/operations/patchV1ComputeServicesByComputeServiceId.d.ts.map +1 -0
- package/lib/operations/patchV1ComputeServicesByComputeServiceId.js +42 -0
- package/lib/operations/patchV1ComputeServicesByComputeServiceId.js.map +1 -0
- package/lib/operations/postV1ComputeServices.d.ts +31 -0
- package/lib/operations/postV1ComputeServices.d.ts.map +1 -0
- package/lib/operations/postV1ComputeServices.js +46 -0
- package/lib/operations/postV1ComputeServices.js.map +1 -0
- package/lib/operations/postV1ComputeServicesByComputeServiceIdVersions.d.ts +28 -0
- package/lib/operations/postV1ComputeServicesByComputeServiceIdVersions.d.ts.map +1 -0
- package/lib/operations/postV1ComputeServicesByComputeServiceIdVersions.js +40 -0
- package/lib/operations/postV1ComputeServicesByComputeServiceIdVersions.js.map +1 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStart.d.ts +19 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStart.d.ts.map +1 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStart.js +31 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStart.js.map +1 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStop.d.ts +15 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStop.d.ts.map +1 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStop.js +27 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStop.js.map +1 -0
- package/lib/operations/postV1Connections.d.ts +1 -1
- package/lib/operations/postV1Connections.d.ts.map +1 -1
- package/lib/operations/postV1Connections.js +2 -1
- package/lib/operations/postV1Connections.js.map +1 -1
- package/lib/operations/postV1ConnectionsByIdRotate.d.ts +54 -0
- package/lib/operations/postV1ConnectionsByIdRotate.d.ts.map +1 -0
- package/lib/operations/postV1ConnectionsByIdRotate.js +63 -0
- package/lib/operations/postV1ConnectionsByIdRotate.js.map +1 -0
- package/lib/operations/postV1DatabasesByDatabaseIdConnections.d.ts +4 -4
- package/lib/operations/postV1DatabasesByDatabaseIdConnections.d.ts.map +1 -1
- package/lib/operations/postV1DatabasesByDatabaseIdConnections.js +5 -4
- package/lib/operations/postV1DatabasesByDatabaseIdConnections.js.map +1 -1
- package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.d.ts +76 -0
- package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.d.ts.map +1 -0
- package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.js +93 -0
- package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.js.map +1 -0
- package/lib/operations/postV1Projects.d.ts +5 -5
- package/lib/operations/postV1Projects.d.ts.map +1 -1
- package/lib/operations/postV1Projects.js +6 -5
- package/lib/operations/postV1Projects.js.map +1 -1
- package/lib/operations/postV1ProjectsByProjectIdComputeServices.d.ts +31 -0
- package/lib/operations/postV1ProjectsByProjectIdComputeServices.d.ts.map +1 -0
- package/lib/operations/postV1ProjectsByProjectIdComputeServices.js +50 -0
- package/lib/operations/postV1ProjectsByProjectIdComputeServices.js.map +1 -0
- package/lib/operations/postV1ProjectsByProjectIdDatabases.d.ts +5 -5
- package/lib/operations/postV1ProjectsByProjectIdDatabases.d.ts.map +1 -1
- package/lib/operations/postV1ProjectsByProjectIdDatabases.js +6 -5
- package/lib/operations/postV1ProjectsByProjectIdDatabases.js.map +1 -1
- package/lib/operations/postV1Versions.d.ts +28 -0
- package/lib/operations/postV1Versions.d.ts.map +1 -0
- package/lib/operations/postV1Versions.js +34 -0
- package/lib/operations/postV1Versions.js.map +1 -0
- package/lib/operations/postV1VersionsByVersionIdStart.d.ts +19 -0
- package/lib/operations/postV1VersionsByVersionIdStart.d.ts.map +1 -0
- package/lib/operations/postV1VersionsByVersionIdStart.js +28 -0
- package/lib/operations/postV1VersionsByVersionIdStart.js.map +1 -0
- package/lib/operations/postV1VersionsByVersionIdStop.d.ts +15 -0
- package/lib/operations/postV1VersionsByVersionIdStop.d.ts.map +1 -0
- package/lib/operations/postV1VersionsByVersionIdStop.js +24 -0
- package/lib/operations/postV1VersionsByVersionIdStop.js.map +1 -0
- package/package.json +3 -3
- package/src/operations/deleteV1ComputeServicesByComputeServiceId.ts +35 -0
- package/src/operations/deleteV1ComputeServicesVersionsByVersionId.ts +35 -0
- package/src/operations/deleteV1VersionsByVersionId.ts +31 -0
- package/src/operations/getV1ComputeServices.ts +51 -0
- package/src/operations/getV1ComputeServicesByComputeServiceId.ts +46 -0
- package/src/operations/getV1ComputeServicesByComputeServiceIdVersions.ts +51 -0
- package/src/operations/getV1ComputeServicesVersionsByVersionId.ts +46 -0
- package/src/operations/getV1ProjectsByProjectIdComputeServices.ts +57 -0
- package/src/operations/getV1Versions.ts +41 -0
- package/src/operations/getV1VersionsByVersionId.ts +42 -0
- package/src/operations/patchV1ComputeServicesByComputeServiceId.ts +50 -0
- package/src/operations/postV1ComputeServices.ts +55 -0
- package/src/operations/postV1ComputeServicesByComputeServiceIdVersions.ts +50 -0
- package/src/operations/postV1ComputeServicesVersionsByVersionIdStart.ts +39 -0
- package/src/operations/postV1ComputeServicesVersionsByVersionIdStop.ts +35 -0
- package/src/operations/postV1Connections.ts +2 -1
- package/src/operations/postV1ConnectionsByIdRotate.ts +81 -0
- package/src/operations/postV1DatabasesByDatabaseIdConnections.ts +5 -4
- package/src/operations/postV1DatabasesByTargetDatabaseIdRestore.ts +115 -0
- package/src/operations/postV1Projects.ts +6 -5
- package/src/operations/postV1ProjectsByProjectIdComputeServices.ts +60 -0
- package/src/operations/postV1ProjectsByProjectIdDatabases.ts +6 -5
- package/src/operations/postV1Versions.ts +40 -0
- package/src/operations/postV1VersionsByVersionIdStart.ts +34 -0
- package/src/operations/postV1VersionsByVersionIdStop.ts +30 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
import { SensitiveString } from "../sensitive";
|
|
5
|
+
// Input Schema
|
|
6
|
+
export const PostV1ConnectionsByIdRotateInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
id: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "POST", path: "/v1/connections/{id}/rotate" }));
|
|
10
|
+
// Output Schema
|
|
11
|
+
export const PostV1ConnectionsByIdRotateOutput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
data: Schema.Struct({
|
|
14
|
+
id: Schema.String,
|
|
15
|
+
type: Schema.String,
|
|
16
|
+
url: Schema.String,
|
|
17
|
+
name: Schema.String,
|
|
18
|
+
createdAt: Schema.String,
|
|
19
|
+
kind: Schema.Literals(["postgres", "accelerate"]),
|
|
20
|
+
endpoints: Schema.Struct({
|
|
21
|
+
direct: Schema.optional(Schema.Struct({
|
|
22
|
+
host: Schema.String,
|
|
23
|
+
port: Schema.Number,
|
|
24
|
+
connectionString: SensitiveString,
|
|
25
|
+
})),
|
|
26
|
+
pooled: Schema.optional(Schema.Struct({
|
|
27
|
+
host: Schema.String,
|
|
28
|
+
port: Schema.Number,
|
|
29
|
+
connectionString: SensitiveString,
|
|
30
|
+
})),
|
|
31
|
+
accelerate: Schema.optional(Schema.Struct({
|
|
32
|
+
host: Schema.String,
|
|
33
|
+
port: Schema.Number,
|
|
34
|
+
connectionString: SensitiveString,
|
|
35
|
+
})),
|
|
36
|
+
}),
|
|
37
|
+
connectionString: SensitiveString,
|
|
38
|
+
directConnection: Schema.optional(Schema.NullOr(Schema.Struct({
|
|
39
|
+
host: Schema.String,
|
|
40
|
+
pass: Schema.String,
|
|
41
|
+
user: Schema.String,
|
|
42
|
+
}))),
|
|
43
|
+
database: Schema.Struct({
|
|
44
|
+
id: Schema.String,
|
|
45
|
+
url: Schema.String,
|
|
46
|
+
name: Schema.String,
|
|
47
|
+
}),
|
|
48
|
+
host: Schema.NullOr(Schema.String),
|
|
49
|
+
pass: Schema.NullOr(Schema.String),
|
|
50
|
+
user: Schema.NullOr(Schema.String),
|
|
51
|
+
}),
|
|
52
|
+
});
|
|
53
|
+
// The operation
|
|
54
|
+
/**
|
|
55
|
+
* Rotate connection credentials
|
|
56
|
+
*
|
|
57
|
+
* Generates new credentials for the connection with the given ID. Revocation of the previous credentials is best-effort.
|
|
58
|
+
*/
|
|
59
|
+
export const postV1ConnectionsByIdRotate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
60
|
+
inputSchema: PostV1ConnectionsByIdRotateInput,
|
|
61
|
+
outputSchema: PostV1ConnectionsByIdRotateOutput,
|
|
62
|
+
}));
|
|
63
|
+
//# sourceMappingURL=postV1ConnectionsByIdRotate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1ConnectionsByIdRotate.js","sourceRoot":"","sources":["../../src/operations/postV1ConnectionsByIdRotate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,E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AE,eAAe;aAClC,CAAC,CACH;YACD,UAAU,EAAE,MAAM,CAAC,QAAQ,CACzB,MAAM,CAAC,MAAM,CAAC;gBACZ,IAAI,EAAE,MAAM,CAAC,MAAM;gBACnB,IAAI,EAAE,MAAM,CAAC,MAAM;gBACnB,gBAAgB,EAAE,eAAe;aAClC,CAAC,CACH;SACF,CAAC;QACF,gBAAgB,EAAE,eAAe;QACjC,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAC/B,MAAM,CAAC,MAAM,CACX,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM;YACnB,IAAI,EAAE,MAAM,CAAC,MAAM;YACnB,IAAI,EAAE,MAAM,CAAC,MAAM;SACpB,CAAC,CACH,CACF;QACD,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC;YACtB,EAAE,EAAE,MAAM,CAAC,MAAM;YACjB,GAAG,EAAE,MAAM,CAAC,MAAM;YAClB,IAAI,EAAE,MAAM,CAAC,MAAM;SACpB,CAAC;QACF,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;KACnC,CAAC;CACH,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAC7E,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,gCAAgC;IAC7C,YAAY,EAAE,iCAAiC;CAChD,CAAC,CACH,CAAC"}
|
|
@@ -16,20 +16,20 @@ export declare const PostV1DatabasesByDatabaseIdConnectionsOutput: Schema.Struct
|
|
|
16
16
|
readonly direct: Schema.optional<Schema.Struct<{
|
|
17
17
|
readonly host: Schema.String;
|
|
18
18
|
readonly port: Schema.Number;
|
|
19
|
-
readonly connectionString: Schema.
|
|
19
|
+
readonly connectionString: Schema.Schema<string | import("effect/Redacted").Redacted<string>>;
|
|
20
20
|
}>>;
|
|
21
21
|
readonly pooled: Schema.optional<Schema.Struct<{
|
|
22
22
|
readonly host: Schema.String;
|
|
23
23
|
readonly port: Schema.Number;
|
|
24
|
-
readonly connectionString: Schema.
|
|
24
|
+
readonly connectionString: Schema.Schema<string | import("effect/Redacted").Redacted<string>>;
|
|
25
25
|
}>>;
|
|
26
26
|
readonly accelerate: Schema.optional<Schema.Struct<{
|
|
27
27
|
readonly host: Schema.String;
|
|
28
28
|
readonly port: Schema.Number;
|
|
29
|
-
readonly connectionString: Schema.
|
|
29
|
+
readonly connectionString: Schema.Schema<string | import("effect/Redacted").Redacted<string>>;
|
|
30
30
|
}>>;
|
|
31
31
|
}>;
|
|
32
|
-
readonly connectionString: Schema.
|
|
32
|
+
readonly connectionString: Schema.Schema<string | import("effect/Redacted").Redacted<string>>;
|
|
33
33
|
readonly directConnection: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
34
34
|
readonly host: Schema.String;
|
|
35
35
|
readonly pass: Schema.String;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postV1DatabasesByDatabaseIdConnections.d.ts","sourceRoot":"","sources":["../../src/operations/postV1DatabasesByDatabaseIdConnections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"postV1DatabasesByDatabaseIdConnections.d.ts","sourceRoot":"","sources":["../../src/operations/postV1DatabasesByDatabaseIdConnections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,eAAO,MAAM,2CAA2C;;;EAMrD,CAAC;AACJ,MAAM,MAAM,2CAA2C,GACrD,OAAO,2CAA2C,CAAC,IAAI,CAAC;AAG1D,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDrD,CAAC;AACL,MAAM,MAAM,4CAA4C,GACtD,OAAO,4CAA4C,CAAC,IAAI,CAAC;AAG3D;;;;GAIG;AACH,eAAO,MAAM,sCAAsC,KAI9C,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveString } from "../sensitive";
|
|
4
5
|
// Input Schema
|
|
5
6
|
export const PostV1DatabasesByDatabaseIdConnectionsInput =
|
|
6
7
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -21,20 +22,20 @@ export const PostV1DatabasesByDatabaseIdConnectionsOutput =
|
|
|
21
22
|
direct: Schema.optional(Schema.Struct({
|
|
22
23
|
host: Schema.String,
|
|
23
24
|
port: Schema.Number,
|
|
24
|
-
connectionString:
|
|
25
|
+
connectionString: SensitiveString,
|
|
25
26
|
})),
|
|
26
27
|
pooled: Schema.optional(Schema.Struct({
|
|
27
28
|
host: Schema.String,
|
|
28
29
|
port: Schema.Number,
|
|
29
|
-
connectionString:
|
|
30
|
+
connectionString: SensitiveString,
|
|
30
31
|
})),
|
|
31
32
|
accelerate: Schema.optional(Schema.Struct({
|
|
32
33
|
host: Schema.String,
|
|
33
34
|
port: Schema.Number,
|
|
34
|
-
connectionString:
|
|
35
|
+
connectionString: SensitiveString,
|
|
35
36
|
})),
|
|
36
37
|
}),
|
|
37
|
-
connectionString:
|
|
38
|
+
connectionString: SensitiveString,
|
|
38
39
|
directConnection: Schema.optional(Schema.NullOr(Schema.Struct({
|
|
39
40
|
host: Schema.String,
|
|
40
41
|
pass: Schema.String,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postV1DatabasesByDatabaseIdConnections.js","sourceRoot":"","sources":["../../src/operations/postV1DatabasesByDatabaseIdConnections.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;
|
|
1
|
+
{"version":3,"file":"postV1DatabasesByDatabaseIdConnections.js","sourceRoot":"","sources":["../../src/operations/postV1DatabasesByDatabaseIdConnections.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;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAe;AACf,MAAM,CAAC,MAAM,2CAA2C;AACtD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC7C,IAAI,EAAE,MAAM,CAAC,MAAM;CACpB,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,wCAAwC,EAAE,CAAC,CAC3E,CAAC;AAIJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,4CAA4C;AACvD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;QAClB,EAAE,EAAE,MAAM,CAAC,MAAM;QACjB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,GAAG,EAAE,MAAM,CAAC,MAAM;QAClB,IAAI,EAAE,MAAM,CAAC,MAAM;QACnB,SAAS,EAAE,MAAM,CAAC,MAAM;QACxB,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QACjD,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC;YACvB,MAAM,EAAE,MAAM,CAA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CAAsC;AACjD,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,2CAA2C;IACxD,YAAY,EAAE,4CAA4C;CAC3D,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const PostV1DatabasesByTargetDatabaseIdRestoreInput: Schema.Struct<{
|
|
3
|
+
readonly targetDatabaseId: Schema.String;
|
|
4
|
+
readonly source: Schema.Struct<{
|
|
5
|
+
readonly type: Schema.String;
|
|
6
|
+
readonly databaseId: Schema.String;
|
|
7
|
+
readonly backupId: Schema.String;
|
|
8
|
+
}>;
|
|
9
|
+
}>;
|
|
10
|
+
export type PostV1DatabasesByTargetDatabaseIdRestoreInput = typeof PostV1DatabasesByTargetDatabaseIdRestoreInput.Type;
|
|
11
|
+
export declare const PostV1DatabasesByTargetDatabaseIdRestoreOutput: Schema.Struct<{
|
|
12
|
+
readonly data: Schema.Struct<{
|
|
13
|
+
readonly id: Schema.String;
|
|
14
|
+
readonly type: Schema.String;
|
|
15
|
+
readonly url: Schema.String;
|
|
16
|
+
readonly name: Schema.String;
|
|
17
|
+
readonly status: Schema.Literals<readonly ["failure", "provisioning", "ready", "recovering"]>;
|
|
18
|
+
readonly createdAt: Schema.String;
|
|
19
|
+
readonly isDefault: Schema.Boolean;
|
|
20
|
+
readonly defaultConnectionId: Schema.NullOr<Schema.String>;
|
|
21
|
+
readonly connections: Schema.$Array<Schema.Struct<{
|
|
22
|
+
readonly id: Schema.String;
|
|
23
|
+
readonly type: Schema.String;
|
|
24
|
+
readonly url: Schema.String;
|
|
25
|
+
readonly name: Schema.String;
|
|
26
|
+
readonly createdAt: Schema.String;
|
|
27
|
+
readonly kind: Schema.Literals<readonly ["postgres", "accelerate"]>;
|
|
28
|
+
readonly endpoints: Schema.Struct<{
|
|
29
|
+
readonly direct: Schema.optional<Schema.Struct<{
|
|
30
|
+
readonly host: Schema.String;
|
|
31
|
+
readonly port: Schema.Number;
|
|
32
|
+
}>>;
|
|
33
|
+
readonly pooled: Schema.optional<Schema.Struct<{
|
|
34
|
+
readonly host: Schema.String;
|
|
35
|
+
readonly port: Schema.Number;
|
|
36
|
+
}>>;
|
|
37
|
+
readonly accelerate: Schema.optional<Schema.Struct<{
|
|
38
|
+
readonly host: Schema.String;
|
|
39
|
+
readonly port: Schema.Number;
|
|
40
|
+
}>>;
|
|
41
|
+
}>;
|
|
42
|
+
readonly directConnection: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
43
|
+
readonly host: Schema.String;
|
|
44
|
+
readonly pass: Schema.String;
|
|
45
|
+
readonly user: Schema.String;
|
|
46
|
+
}>>>;
|
|
47
|
+
readonly database: Schema.Struct<{
|
|
48
|
+
readonly id: Schema.String;
|
|
49
|
+
readonly url: Schema.String;
|
|
50
|
+
readonly name: Schema.String;
|
|
51
|
+
}>;
|
|
52
|
+
}>>;
|
|
53
|
+
readonly project: Schema.Struct<{
|
|
54
|
+
readonly id: Schema.String;
|
|
55
|
+
readonly url: Schema.String;
|
|
56
|
+
readonly name: Schema.String;
|
|
57
|
+
}>;
|
|
58
|
+
readonly region: Schema.NullOr<Schema.Struct<{
|
|
59
|
+
readonly id: Schema.String;
|
|
60
|
+
readonly name: Schema.String;
|
|
61
|
+
}>>;
|
|
62
|
+
readonly source: Schema.Struct<{
|
|
63
|
+
readonly type: Schema.String;
|
|
64
|
+
readonly databaseId: Schema.String;
|
|
65
|
+
readonly backupId: Schema.String;
|
|
66
|
+
}>;
|
|
67
|
+
}>;
|
|
68
|
+
}>;
|
|
69
|
+
export type PostV1DatabasesByTargetDatabaseIdRestoreOutput = typeof PostV1DatabasesByTargetDatabaseIdRestoreOutput.Type;
|
|
70
|
+
/**
|
|
71
|
+
* Restore database
|
|
72
|
+
*
|
|
73
|
+
* Replaces the data in an existing database from a backup. Connections and credentials are preserved — only the data layer is replaced. Cannot be used on default databases.
|
|
74
|
+
*/
|
|
75
|
+
export declare const postV1DatabasesByTargetDatabaseIdRestore: any;
|
|
76
|
+
//# sourceMappingURL=postV1DatabasesByTargetDatabaseIdRestore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1DatabasesByTargetDatabaseIdRestore.d.ts","sourceRoot":"","sources":["../../src/operations/postV1DatabasesByTargetDatabaseIdRestore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,6CAA6C;;;;;;;EAavD,CAAC;AACJ,MAAM,MAAM,6CAA6C,GACvD,OAAO,6CAA6C,CAAC,IAAI,CAAC;AAG5D,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6EvD,CAAC;AACL,MAAM,MAAM,8CAA8C,GACxD,OAAO,8CAA8C,CAAC,IAAI,CAAC;AAG7D;;;;GAIG;AACH,eAAO,MAAM,wCAAwC,KAIhD,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const PostV1DatabasesByTargetDatabaseIdRestoreInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
targetDatabaseId: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
source: Schema.Struct({
|
|
9
|
+
type: Schema.String,
|
|
10
|
+
databaseId: Schema.String,
|
|
11
|
+
backupId: Schema.String,
|
|
12
|
+
}),
|
|
13
|
+
}).pipe(T.Http({
|
|
14
|
+
method: "POST",
|
|
15
|
+
path: "/v1/databases/{targetDatabaseId}/restore",
|
|
16
|
+
}));
|
|
17
|
+
// Output Schema
|
|
18
|
+
export const PostV1DatabasesByTargetDatabaseIdRestoreOutput =
|
|
19
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
20
|
+
data: Schema.Struct({
|
|
21
|
+
id: Schema.String,
|
|
22
|
+
type: Schema.String,
|
|
23
|
+
url: Schema.String,
|
|
24
|
+
name: Schema.String,
|
|
25
|
+
status: Schema.Literals([
|
|
26
|
+
"failure",
|
|
27
|
+
"provisioning",
|
|
28
|
+
"ready",
|
|
29
|
+
"recovering",
|
|
30
|
+
]),
|
|
31
|
+
createdAt: Schema.String,
|
|
32
|
+
isDefault: Schema.Boolean,
|
|
33
|
+
defaultConnectionId: Schema.NullOr(Schema.String),
|
|
34
|
+
connections: Schema.Array(Schema.Struct({
|
|
35
|
+
id: Schema.String,
|
|
36
|
+
type: Schema.String,
|
|
37
|
+
url: Schema.String,
|
|
38
|
+
name: Schema.String,
|
|
39
|
+
createdAt: Schema.String,
|
|
40
|
+
kind: Schema.Literals(["postgres", "accelerate"]),
|
|
41
|
+
endpoints: Schema.Struct({
|
|
42
|
+
direct: Schema.optional(Schema.Struct({
|
|
43
|
+
host: Schema.String,
|
|
44
|
+
port: Schema.Number,
|
|
45
|
+
})),
|
|
46
|
+
pooled: Schema.optional(Schema.Struct({
|
|
47
|
+
host: Schema.String,
|
|
48
|
+
port: Schema.Number,
|
|
49
|
+
})),
|
|
50
|
+
accelerate: Schema.optional(Schema.Struct({
|
|
51
|
+
host: Schema.String,
|
|
52
|
+
port: Schema.Number,
|
|
53
|
+
})),
|
|
54
|
+
}),
|
|
55
|
+
directConnection: Schema.optional(Schema.NullOr(Schema.Struct({
|
|
56
|
+
host: Schema.String,
|
|
57
|
+
pass: Schema.String,
|
|
58
|
+
user: Schema.String,
|
|
59
|
+
}))),
|
|
60
|
+
database: Schema.Struct({
|
|
61
|
+
id: Schema.String,
|
|
62
|
+
url: Schema.String,
|
|
63
|
+
name: Schema.String,
|
|
64
|
+
}),
|
|
65
|
+
})),
|
|
66
|
+
project: Schema.Struct({
|
|
67
|
+
id: Schema.String,
|
|
68
|
+
url: Schema.String,
|
|
69
|
+
name: Schema.String,
|
|
70
|
+
}),
|
|
71
|
+
region: Schema.NullOr(Schema.Struct({
|
|
72
|
+
id: Schema.String,
|
|
73
|
+
name: Schema.String,
|
|
74
|
+
})),
|
|
75
|
+
source: Schema.Struct({
|
|
76
|
+
type: Schema.String,
|
|
77
|
+
databaseId: Schema.String,
|
|
78
|
+
backupId: Schema.String,
|
|
79
|
+
}),
|
|
80
|
+
}),
|
|
81
|
+
});
|
|
82
|
+
// The operation
|
|
83
|
+
/**
|
|
84
|
+
* Restore database
|
|
85
|
+
*
|
|
86
|
+
* Replaces the data in an existing database from a backup. Connections and credentials are preserved — only the data layer is replaced. Cannot be used on default databases.
|
|
87
|
+
*/
|
|
88
|
+
export const postV1DatabasesByTargetDatabaseIdRestore =
|
|
89
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
90
|
+
inputSchema: PostV1DatabasesByTargetDatabaseIdRestoreInput,
|
|
91
|
+
outputSchema: PostV1DatabasesByTargetDatabaseIdRestoreOutput,
|
|
92
|
+
}));
|
|
93
|
+
//# sourceMappingURL=postV1DatabasesByTargetDatabaseIdRestore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1DatabasesByTargetDatabaseIdRestore.js","sourceRoot":"","sources":["../../src/operations/postV1DatabasesByTargetDatabaseIdRestore.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,6CAA6C;AACxD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IACnD,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;QACpB,IAAI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AAQ,EAAE,MAAM,CAAC,MAAM;SACxB,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,wCAAwC;AACnD,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,6CAA6C;IAC1D,YAAY,EAAE,8CAA8C;CAC7D,CAAC,CAAC,CAAC"}
|
|
@@ -38,17 +38,17 @@ export declare const PostV1ProjectsOutput: Schema.Struct<{
|
|
|
38
38
|
readonly direct: Schema.optional<Schema.Struct<{
|
|
39
39
|
readonly host: Schema.String;
|
|
40
40
|
readonly port: Schema.Number;
|
|
41
|
-
readonly connectionString: Schema.optional<Schema.
|
|
41
|
+
readonly connectionString: Schema.optional<Schema.Schema<string | import("effect/Redacted").Redacted<string>>>;
|
|
42
42
|
}>>;
|
|
43
43
|
readonly pooled: Schema.optional<Schema.Struct<{
|
|
44
44
|
readonly host: Schema.String;
|
|
45
45
|
readonly port: Schema.Number;
|
|
46
|
-
readonly connectionString: Schema.optional<Schema.
|
|
46
|
+
readonly connectionString: Schema.optional<Schema.Schema<string | import("effect/Redacted").Redacted<string>>>;
|
|
47
47
|
}>>;
|
|
48
48
|
readonly accelerate: Schema.optional<Schema.Struct<{
|
|
49
49
|
readonly host: Schema.String;
|
|
50
50
|
readonly port: Schema.Number;
|
|
51
|
-
readonly connectionString: Schema.optional<Schema.
|
|
51
|
+
readonly connectionString: Schema.optional<Schema.Schema<string | import("effect/Redacted").Redacted<string>>>;
|
|
52
52
|
}>>;
|
|
53
53
|
}>;
|
|
54
54
|
readonly directConnection: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
@@ -87,14 +87,14 @@ export declare const PostV1ProjectsOutput: Schema.Struct<{
|
|
|
87
87
|
readonly port: Schema.Number;
|
|
88
88
|
}>>;
|
|
89
89
|
}>;
|
|
90
|
-
readonly connectionString: Schema.
|
|
90
|
+
readonly connectionString: Schema.Schema<string | import("effect/Redacted").Redacted<string>>;
|
|
91
91
|
readonly directConnection: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
92
92
|
readonly host: Schema.String;
|
|
93
93
|
readonly pass: Schema.String;
|
|
94
94
|
readonly user: Schema.String;
|
|
95
95
|
}>>>;
|
|
96
96
|
}>>;
|
|
97
|
-
readonly connectionString: Schema.NullOr<Schema.
|
|
97
|
+
readonly connectionString: Schema.NullOr<Schema.Schema<string | import("effect/Redacted").Redacted<string>>>;
|
|
98
98
|
readonly directConnection: Schema.NullOr<Schema.Struct<{
|
|
99
99
|
readonly host: Schema.String;
|
|
100
100
|
readonly pass: Schema.String;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postV1Projects.d.ts","sourceRoot":"","sources":["../../src/operations/postV1Projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"postV1Projects.d.ts","sourceRoot":"","sources":["../../src/operations/postV1Projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,eAAO,MAAM,mBAAmB;;;;EAayB,CAAC;AAC1D,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6H/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE;;;;GAIG;AACH,eAAO,MAAM,cAAc,KAGxB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveString, SensitiveNullableString } from "../sensitive";
|
|
4
5
|
// Input Schema
|
|
5
6
|
export const PostV1ProjectsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
7
|
createDatabase: Schema.optional(Schema.Boolean),
|
|
@@ -48,17 +49,17 @@ export const PostV1ProjectsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
48
49
|
direct: Schema.optional(Schema.Struct({
|
|
49
50
|
host: Schema.String,
|
|
50
51
|
port: Schema.Number,
|
|
51
|
-
connectionString: Schema.optional(
|
|
52
|
+
connectionString: Schema.optional(SensitiveString),
|
|
52
53
|
})),
|
|
53
54
|
pooled: Schema.optional(Schema.Struct({
|
|
54
55
|
host: Schema.String,
|
|
55
56
|
port: Schema.Number,
|
|
56
|
-
connectionString: Schema.optional(
|
|
57
|
+
connectionString: Schema.optional(SensitiveString),
|
|
57
58
|
})),
|
|
58
59
|
accelerate: Schema.optional(Schema.Struct({
|
|
59
60
|
host: Schema.String,
|
|
60
61
|
port: Schema.Number,
|
|
61
|
-
connectionString: Schema.optional(
|
|
62
|
+
connectionString: Schema.optional(SensitiveString),
|
|
62
63
|
})),
|
|
63
64
|
}),
|
|
64
65
|
directConnection: Schema.optional(Schema.NullOr(Schema.Struct({
|
|
@@ -97,14 +98,14 @@ export const PostV1ProjectsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
97
98
|
port: Schema.Number,
|
|
98
99
|
})),
|
|
99
100
|
}),
|
|
100
|
-
connectionString:
|
|
101
|
+
connectionString: SensitiveString,
|
|
101
102
|
directConnection: Schema.optional(Schema.NullOr(Schema.Struct({
|
|
102
103
|
host: Schema.String,
|
|
103
104
|
pass: Schema.String,
|
|
104
105
|
user: Schema.String,
|
|
105
106
|
}))),
|
|
106
107
|
})),
|
|
107
|
-
connectionString:
|
|
108
|
+
connectionString: SensitiveNullableString,
|
|
108
109
|
directConnection: Schema.NullOr(Schema.Struct({
|
|
109
110
|
host: Schema.String,
|
|
110
111
|
pass: Schema.String,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postV1Projects.js","sourceRoot":"","sources":["../../src/operations/postV1Projects.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;
|
|
1
|
+
{"version":3,"file":"postV1Projects.js","sourceRoot":"","sources":["../../src/operations/postV1Projects.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;AAC/B,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAExE,eAAe;AACf,MAAM,CAAC,MAAM,mBAAmB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3E,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;IAC/C,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC,QAAQ,CACrB,MAAM,CAAC,QAAQ,CAAC;QACd,WAAW;QACX,WAAW;QACX,WAAW;QACX,cAAc;QACd,gBAAgB;QAChB,gBAAgB;KACjB,CAAC,CACH;CACF,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC;AAG1D,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5E,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;QAClB,EAAE,EAAE,MAAM,CAAC,MAA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AAC,MAAM;gBACnB,IAAI,EAAE,MAAM,CAAC,MAAM;aACpB,CAAC,CACH;SACF,CAAC,CACH;KACF,CAAC;CACH,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACxE,WAAW,EAAE,mBAAmB;IAChC,YAAY,EAAE,oBAAoB;CACnC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const PostV1ProjectsByProjectIdComputeServicesInput: Schema.Struct<{
|
|
3
|
+
readonly projectId: Schema.String;
|
|
4
|
+
readonly displayName: Schema.String;
|
|
5
|
+
readonly regionId: Schema.optional<Schema.Literals<readonly ["us-east-1", "us-west-1", "eu-west-3", "eu-central-1", "ap-northeast-1", "ap-southeast-1"]>>;
|
|
6
|
+
}>;
|
|
7
|
+
export type PostV1ProjectsByProjectIdComputeServicesInput = typeof PostV1ProjectsByProjectIdComputeServicesInput.Type;
|
|
8
|
+
export declare const PostV1ProjectsByProjectIdComputeServicesOutput: Schema.Struct<{
|
|
9
|
+
readonly data: Schema.Struct<{
|
|
10
|
+
readonly id: Schema.String;
|
|
11
|
+
readonly type: Schema.String;
|
|
12
|
+
readonly url: Schema.String;
|
|
13
|
+
readonly name: Schema.String;
|
|
14
|
+
readonly region: Schema.Struct<{
|
|
15
|
+
readonly id: Schema.String;
|
|
16
|
+
readonly name: Schema.String;
|
|
17
|
+
}>;
|
|
18
|
+
readonly projectId: Schema.String;
|
|
19
|
+
readonly latestVersionId: Schema.NullOr<Schema.String>;
|
|
20
|
+
readonly createdAt: Schema.String;
|
|
21
|
+
}>;
|
|
22
|
+
}>;
|
|
23
|
+
export type PostV1ProjectsByProjectIdComputeServicesOutput = typeof PostV1ProjectsByProjectIdComputeServicesOutput.Type;
|
|
24
|
+
/**
|
|
25
|
+
* Create compute service
|
|
26
|
+
*
|
|
27
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
28
|
+
* Creates a new compute service under the specified project. The service is placed in the given region (or the default region if omitted).
|
|
29
|
+
*/
|
|
30
|
+
export declare const postV1ProjectsByProjectIdComputeServices: any;
|
|
31
|
+
//# sourceMappingURL=postV1ProjectsByProjectIdComputeServices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1ProjectsByProjectIdComputeServices.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ProjectsByProjectIdComputeServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,6CAA6C;;;;EAmBvD,CAAC;AACJ,MAAM,MAAM,6CAA6C,GACvD,OAAO,6CAA6C,CAAC,IAAI,CAAC;AAG5D,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;EAevD,CAAC;AACL,MAAM,MAAM,8CAA8C,GACxD,OAAO,8CAA8C,CAAC,IAAI,CAAC;AAG7D;;;;;GAKG;AACH,eAAO,MAAM,wCAAwC,KAIhD,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const PostV1ProjectsByProjectIdComputeServicesInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
projectId: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
displayName: Schema.String,
|
|
9
|
+
regionId: Schema.optional(Schema.Literals([
|
|
10
|
+
"us-east-1",
|
|
11
|
+
"us-west-1",
|
|
12
|
+
"eu-west-3",
|
|
13
|
+
"eu-central-1",
|
|
14
|
+
"ap-northeast-1",
|
|
15
|
+
"ap-southeast-1",
|
|
16
|
+
])),
|
|
17
|
+
}).pipe(T.Http({
|
|
18
|
+
method: "POST",
|
|
19
|
+
path: "/v1/projects/{projectId}/compute-services",
|
|
20
|
+
}));
|
|
21
|
+
// Output Schema
|
|
22
|
+
export const PostV1ProjectsByProjectIdComputeServicesOutput =
|
|
23
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
24
|
+
data: Schema.Struct({
|
|
25
|
+
id: Schema.String,
|
|
26
|
+
type: Schema.String,
|
|
27
|
+
url: Schema.String,
|
|
28
|
+
name: Schema.String,
|
|
29
|
+
region: Schema.Struct({
|
|
30
|
+
id: Schema.String,
|
|
31
|
+
name: Schema.String,
|
|
32
|
+
}),
|
|
33
|
+
projectId: Schema.String,
|
|
34
|
+
latestVersionId: Schema.NullOr(Schema.String),
|
|
35
|
+
createdAt: Schema.String,
|
|
36
|
+
}),
|
|
37
|
+
});
|
|
38
|
+
// The operation
|
|
39
|
+
/**
|
|
40
|
+
* Create compute service
|
|
41
|
+
*
|
|
42
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
43
|
+
* Creates a new compute service under the specified project. The service is placed in the given region (or the default region if omitted).
|
|
44
|
+
*/
|
|
45
|
+
export const postV1ProjectsByProjectIdComputeServices =
|
|
46
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
47
|
+
inputSchema: PostV1ProjectsByProjectIdComputeServicesInput,
|
|
48
|
+
outputSchema: PostV1ProjectsByProjectIdComputeServicesOutput,
|
|
49
|
+
}));
|
|
50
|
+
//# sourceMappingURL=postV1ProjectsByProjectIdComputeServices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1ProjectsByProjectIdComputeServices.js","sourceRoot":"","sources":["../../src/operations/postV1ProjectsByProjectIdComputeServices.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAA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,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,6CAA6C;IAC1D,YAAY,EAAE,8CAA8C;CAC7D,CAAC,CAAC,CAAC"}
|
|
@@ -31,17 +31,17 @@ export declare const PostV1ProjectsByProjectIdDatabasesOutput: Schema.Struct<{
|
|
|
31
31
|
readonly direct: Schema.optional<Schema.Struct<{
|
|
32
32
|
readonly host: Schema.String;
|
|
33
33
|
readonly port: Schema.Number;
|
|
34
|
-
readonly connectionString: Schema.optional<Schema.
|
|
34
|
+
readonly connectionString: Schema.optional<Schema.Schema<string | import("effect/Redacted").Redacted<string>>>;
|
|
35
35
|
}>>;
|
|
36
36
|
readonly pooled: Schema.optional<Schema.Struct<{
|
|
37
37
|
readonly host: Schema.String;
|
|
38
38
|
readonly port: Schema.Number;
|
|
39
|
-
readonly connectionString: Schema.optional<Schema.
|
|
39
|
+
readonly connectionString: Schema.optional<Schema.Schema<string | import("effect/Redacted").Redacted<string>>>;
|
|
40
40
|
}>>;
|
|
41
41
|
readonly accelerate: Schema.optional<Schema.Struct<{
|
|
42
42
|
readonly host: Schema.String;
|
|
43
43
|
readonly port: Schema.Number;
|
|
44
|
-
readonly connectionString: Schema.optional<Schema.
|
|
44
|
+
readonly connectionString: Schema.optional<Schema.Schema<string | import("effect/Redacted").Redacted<string>>>;
|
|
45
45
|
}>>;
|
|
46
46
|
}>;
|
|
47
47
|
readonly directConnection: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
@@ -85,14 +85,14 @@ export declare const PostV1ProjectsByProjectIdDatabasesOutput: Schema.Struct<{
|
|
|
85
85
|
readonly port: Schema.Number;
|
|
86
86
|
}>>;
|
|
87
87
|
}>;
|
|
88
|
-
readonly connectionString: Schema.
|
|
88
|
+
readonly connectionString: Schema.Schema<string | import("effect/Redacted").Redacted<string>>;
|
|
89
89
|
readonly directConnection: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
90
90
|
readonly host: Schema.String;
|
|
91
91
|
readonly pass: Schema.String;
|
|
92
92
|
readonly user: Schema.String;
|
|
93
93
|
}>>>;
|
|
94
94
|
}>>;
|
|
95
|
-
readonly connectionString: Schema.NullOr<Schema.
|
|
95
|
+
readonly connectionString: Schema.NullOr<Schema.Schema<string | import("effect/Redacted").Redacted<string>>>;
|
|
96
96
|
readonly directConnection: Schema.NullOr<Schema.Struct<{
|
|
97
97
|
readonly host: Schema.String;
|
|
98
98
|
readonly pass: Schema.String;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postV1ProjectsByProjectIdDatabases.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ProjectsByProjectIdDatabases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"postV1ProjectsByProjectIdDatabases.d.ts","sourceRoot":"","sources":["../../src/operations/postV1ProjectsByProjectIdDatabases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,eAAO,MAAM,uCAAuC;;;;;;;;;EAwBjD,CAAC;AACJ,MAAM,MAAM,uCAAuC,GACjD,OAAO,uCAAuC,CAAC,IAAI,CAAC;AAGtD,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoHjD,CAAC;AACL,MAAM,MAAM,wCAAwC,GAClD,OAAO,wCAAwC,CAAC,IAAI,CAAC;AAGvD;;;;GAIG;AACH,eAAO,MAAM,kCAAkC,KAI1C,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Schema from "effect/Schema";
|
|
2
2
|
import { API } from "../client";
|
|
3
3
|
import * as T from "../traits";
|
|
4
|
+
import { SensitiveString, SensitiveNullableString } from "../sensitive";
|
|
4
5
|
// Input Schema
|
|
5
6
|
export const PostV1ProjectsByProjectIdDatabasesInput =
|
|
6
7
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -44,17 +45,17 @@ export const PostV1ProjectsByProjectIdDatabasesOutput =
|
|
|
44
45
|
direct: Schema.optional(Schema.Struct({
|
|
45
46
|
host: Schema.String,
|
|
46
47
|
port: Schema.Number,
|
|
47
|
-
connectionString: Schema.optional(
|
|
48
|
+
connectionString: Schema.optional(SensitiveString),
|
|
48
49
|
})),
|
|
49
50
|
pooled: Schema.optional(Schema.Struct({
|
|
50
51
|
host: Schema.String,
|
|
51
52
|
port: Schema.Number,
|
|
52
|
-
connectionString: Schema.optional(
|
|
53
|
+
connectionString: Schema.optional(SensitiveString),
|
|
53
54
|
})),
|
|
54
55
|
accelerate: Schema.optional(Schema.Struct({
|
|
55
56
|
host: Schema.String,
|
|
56
57
|
port: Schema.Number,
|
|
57
|
-
connectionString: Schema.optional(
|
|
58
|
+
connectionString: Schema.optional(SensitiveString),
|
|
58
59
|
})),
|
|
59
60
|
}),
|
|
60
61
|
directConnection: Schema.optional(Schema.NullOr(Schema.Struct({
|
|
@@ -98,14 +99,14 @@ export const PostV1ProjectsByProjectIdDatabasesOutput =
|
|
|
98
99
|
port: Schema.Number,
|
|
99
100
|
})),
|
|
100
101
|
}),
|
|
101
|
-
connectionString:
|
|
102
|
+
connectionString: SensitiveString,
|
|
102
103
|
directConnection: Schema.optional(Schema.NullOr(Schema.Struct({
|
|
103
104
|
host: Schema.String,
|
|
104
105
|
pass: Schema.String,
|
|
105
106
|
user: Schema.String,
|
|
106
107
|
}))),
|
|
107
108
|
})),
|
|
108
|
-
connectionString:
|
|
109
|
+
connectionString: SensitiveNullableString,
|
|
109
110
|
directConnection: Schema.NullOr(Schema.Struct({
|
|
110
111
|
host: Schema.String,
|
|
111
112
|
pass: Schema.String,
|