@distilled.cloud/prisma-postgres 0.4.0 → 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,42 @@
|
|
|
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 GetV1VersionsByVersionIdInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
versionId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "GET", path: "/v1/versions/{versionId}" }));
|
|
10
|
+
export type GetV1VersionsByVersionIdInput =
|
|
11
|
+
typeof GetV1VersionsByVersionIdInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const GetV1VersionsByVersionIdOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
|
+
data: Schema.Struct({
|
|
17
|
+
id: Schema.String,
|
|
18
|
+
type: Schema.String,
|
|
19
|
+
url: Schema.String,
|
|
20
|
+
foundryVersionId: Schema.String,
|
|
21
|
+
status: Schema.String,
|
|
22
|
+
previewDomain: Schema.NullOr(Schema.String),
|
|
23
|
+
envVars: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
24
|
+
createdAt: Schema.String,
|
|
25
|
+
}),
|
|
26
|
+
});
|
|
27
|
+
export type GetV1VersionsByVersionIdOutput =
|
|
28
|
+
typeof GetV1VersionsByVersionIdOutput.Type;
|
|
29
|
+
|
|
30
|
+
// The operation
|
|
31
|
+
/**
|
|
32
|
+
* Get compute version
|
|
33
|
+
*
|
|
34
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
35
|
+
* Returns a compute version by ID, including its current status derived from the underlying VM state.
|
|
36
|
+
*/
|
|
37
|
+
export const getV1VersionsByVersionId = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
38
|
+
() => ({
|
|
39
|
+
inputSchema: GetV1VersionsByVersionIdInput,
|
|
40
|
+
outputSchema: GetV1VersionsByVersionIdOutput,
|
|
41
|
+
}),
|
|
42
|
+
);
|
|
@@ -0,0 +1,50 @@
|
|
|
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 PatchV1ComputeServicesByComputeServiceIdInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
computeServiceId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
displayName: Schema.String,
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({
|
|
12
|
+
method: "PATCH",
|
|
13
|
+
path: "/v1/compute-services/{computeServiceId}",
|
|
14
|
+
}),
|
|
15
|
+
);
|
|
16
|
+
export type PatchV1ComputeServicesByComputeServiceIdInput =
|
|
17
|
+
typeof PatchV1ComputeServicesByComputeServiceIdInput.Type;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const PatchV1ComputeServicesByComputeServiceIdOutput =
|
|
21
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
|
+
data: Schema.Struct({
|
|
23
|
+
id: Schema.String,
|
|
24
|
+
type: Schema.String,
|
|
25
|
+
url: Schema.String,
|
|
26
|
+
name: Schema.String,
|
|
27
|
+
region: Schema.Struct({
|
|
28
|
+
id: Schema.String,
|
|
29
|
+
name: Schema.String,
|
|
30
|
+
}),
|
|
31
|
+
projectId: Schema.String,
|
|
32
|
+
latestVersionId: Schema.NullOr(Schema.String),
|
|
33
|
+
createdAt: Schema.String,
|
|
34
|
+
}),
|
|
35
|
+
});
|
|
36
|
+
export type PatchV1ComputeServicesByComputeServiceIdOutput =
|
|
37
|
+
typeof PatchV1ComputeServicesByComputeServiceIdOutput.Type;
|
|
38
|
+
|
|
39
|
+
// The operation
|
|
40
|
+
/**
|
|
41
|
+
* Update compute service
|
|
42
|
+
*
|
|
43
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
44
|
+
* Updates the display name of a compute service.
|
|
45
|
+
*/
|
|
46
|
+
export const patchV1ComputeServicesByComputeServiceId =
|
|
47
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
48
|
+
inputSchema: PatchV1ComputeServicesByComputeServiceIdInput,
|
|
49
|
+
outputSchema: PatchV1ComputeServicesByComputeServiceIdOutput,
|
|
50
|
+
}));
|
|
@@ -0,0 +1,55 @@
|
|
|
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 PostV1ComputeServicesInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
displayName: Schema.String,
|
|
9
|
+
regionId: Schema.optional(
|
|
10
|
+
Schema.Literals([
|
|
11
|
+
"us-east-1",
|
|
12
|
+
"us-west-1",
|
|
13
|
+
"eu-west-3",
|
|
14
|
+
"eu-central-1",
|
|
15
|
+
"ap-northeast-1",
|
|
16
|
+
"ap-southeast-1",
|
|
17
|
+
]),
|
|
18
|
+
),
|
|
19
|
+
projectId: Schema.String,
|
|
20
|
+
}).pipe(T.Http({ method: "POST", path: "/v1/compute-services" }));
|
|
21
|
+
export type PostV1ComputeServicesInput = typeof PostV1ComputeServicesInput.Type;
|
|
22
|
+
|
|
23
|
+
// Output Schema
|
|
24
|
+
export const PostV1ComputeServicesOutput =
|
|
25
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
26
|
+
data: Schema.Struct({
|
|
27
|
+
id: Schema.String,
|
|
28
|
+
type: Schema.String,
|
|
29
|
+
url: Schema.String,
|
|
30
|
+
name: Schema.String,
|
|
31
|
+
region: Schema.Struct({
|
|
32
|
+
id: Schema.String,
|
|
33
|
+
name: Schema.String,
|
|
34
|
+
}),
|
|
35
|
+
projectId: Schema.String,
|
|
36
|
+
latestVersionId: Schema.NullOr(Schema.String),
|
|
37
|
+
createdAt: Schema.String,
|
|
38
|
+
}),
|
|
39
|
+
});
|
|
40
|
+
export type PostV1ComputeServicesOutput =
|
|
41
|
+
typeof PostV1ComputeServicesOutput.Type;
|
|
42
|
+
|
|
43
|
+
// The operation
|
|
44
|
+
/**
|
|
45
|
+
* Create compute service
|
|
46
|
+
*
|
|
47
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
48
|
+
* Creates a new compute service under the specified project. The `projectId` is required in the request body. The service is placed in the given region (or the default region if omitted).
|
|
49
|
+
*/
|
|
50
|
+
export const postV1ComputeServices = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
51
|
+
() => ({
|
|
52
|
+
inputSchema: PostV1ComputeServicesInput,
|
|
53
|
+
outputSchema: PostV1ComputeServicesOutput,
|
|
54
|
+
}),
|
|
55
|
+
);
|
|
@@ -0,0 +1,50 @@
|
|
|
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 PostV1ComputeServicesByComputeServiceIdVersionsInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
computeServiceId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
envVars: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
10
|
+
portMapping: Schema.optional(
|
|
11
|
+
Schema.Struct({
|
|
12
|
+
http: Schema.optional(Schema.Unknown),
|
|
13
|
+
}),
|
|
14
|
+
),
|
|
15
|
+
skipCodeUpload: Schema.optional(Schema.Boolean),
|
|
16
|
+
}).pipe(
|
|
17
|
+
T.Http({
|
|
18
|
+
method: "POST",
|
|
19
|
+
path: "/v1/compute-services/{computeServiceId}/versions",
|
|
20
|
+
}),
|
|
21
|
+
);
|
|
22
|
+
export type PostV1ComputeServicesByComputeServiceIdVersionsInput =
|
|
23
|
+
typeof PostV1ComputeServicesByComputeServiceIdVersionsInput.Type;
|
|
24
|
+
|
|
25
|
+
// Output Schema
|
|
26
|
+
export const PostV1ComputeServicesByComputeServiceIdVersionsOutput =
|
|
27
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
28
|
+
data: Schema.Struct({
|
|
29
|
+
id: Schema.String,
|
|
30
|
+
type: Schema.String,
|
|
31
|
+
url: Schema.String,
|
|
32
|
+
foundryVersionId: Schema.String,
|
|
33
|
+
uploadUrl: Schema.NullOr(Schema.String),
|
|
34
|
+
}),
|
|
35
|
+
});
|
|
36
|
+
export type PostV1ComputeServicesByComputeServiceIdVersionsOutput =
|
|
37
|
+
typeof PostV1ComputeServicesByComputeServiceIdVersionsOutput.Type;
|
|
38
|
+
|
|
39
|
+
// The operation
|
|
40
|
+
/**
|
|
41
|
+
* Create compute version
|
|
42
|
+
*
|
|
43
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
44
|
+
* Creates a new compute version under the specified compute service. Returns a pre-signed upload URL for the artifact unless `skipCodeUpload` is set (which forks the latest version's artifact). Environment variables are merged with the previous version's variables when one exists.
|
|
45
|
+
*/
|
|
46
|
+
export const postV1ComputeServicesByComputeServiceIdVersions =
|
|
47
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
48
|
+
inputSchema: PostV1ComputeServicesByComputeServiceIdVersionsInput,
|
|
49
|
+
outputSchema: PostV1ComputeServicesByComputeServiceIdVersionsOutput,
|
|
50
|
+
}));
|
|
@@ -0,0 +1,39 @@
|
|
|
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 PostV1ComputeServicesVersionsByVersionIdStartInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
versionId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({
|
|
11
|
+
method: "POST",
|
|
12
|
+
path: "/v1/compute-services/versions/{versionId}/start",
|
|
13
|
+
}),
|
|
14
|
+
);
|
|
15
|
+
export type PostV1ComputeServicesVersionsByVersionIdStartInput =
|
|
16
|
+
typeof PostV1ComputeServicesVersionsByVersionIdStartInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const PostV1ComputeServicesVersionsByVersionIdStartOutput =
|
|
20
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
|
+
data: Schema.Struct({
|
|
22
|
+
previewDomain: Schema.String,
|
|
23
|
+
}),
|
|
24
|
+
});
|
|
25
|
+
export type PostV1ComputeServicesVersionsByVersionIdStartOutput =
|
|
26
|
+
typeof PostV1ComputeServicesVersionsByVersionIdStartOutput.Type;
|
|
27
|
+
|
|
28
|
+
// The operation
|
|
29
|
+
/**
|
|
30
|
+
* Start compute version
|
|
31
|
+
*
|
|
32
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
33
|
+
* Requests VM creation and startup for the compute version. The artifact must be uploaded before calling this endpoint. Returns a preview domain that becomes reachable once the VM is running. Poll the status endpoint until `running` is reached.
|
|
34
|
+
*/
|
|
35
|
+
export const postV1ComputeServicesVersionsByVersionIdStart =
|
|
36
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
37
|
+
inputSchema: PostV1ComputeServicesVersionsByVersionIdStartInput,
|
|
38
|
+
outputSchema: PostV1ComputeServicesVersionsByVersionIdStartOutput,
|
|
39
|
+
}));
|
|
@@ -0,0 +1,35 @@
|
|
|
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 PostV1ComputeServicesVersionsByVersionIdStopInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
versionId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({
|
|
11
|
+
method: "POST",
|
|
12
|
+
path: "/v1/compute-services/versions/{versionId}/stop",
|
|
13
|
+
}),
|
|
14
|
+
);
|
|
15
|
+
export type PostV1ComputeServicesVersionsByVersionIdStopInput =
|
|
16
|
+
typeof PostV1ComputeServicesVersionsByVersionIdStopInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const PostV1ComputeServicesVersionsByVersionIdStopOutput =
|
|
20
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
21
|
+
export type PostV1ComputeServicesVersionsByVersionIdStopOutput =
|
|
22
|
+
typeof PostV1ComputeServicesVersionsByVersionIdStopOutput.Type;
|
|
23
|
+
|
|
24
|
+
// The operation
|
|
25
|
+
/**
|
|
26
|
+
* Stop compute version
|
|
27
|
+
*
|
|
28
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
29
|
+
* Requests VM shutdown for the compute version. The version record and metadata are retained. Poll the status endpoint until `stopped` is reached.
|
|
30
|
+
*/
|
|
31
|
+
export const postV1ComputeServicesVersionsByVersionIdStop =
|
|
32
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
33
|
+
inputSchema: PostV1ComputeServicesVersionsByVersionIdStopInput,
|
|
34
|
+
outputSchema: PostV1ComputeServicesVersionsByVersionIdStopOutput,
|
|
35
|
+
}));
|
|
@@ -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
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const PostV1ConnectionsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
@@ -41,7 +42,7 @@ export const PostV1ConnectionsOutput =
|
|
|
41
42
|
}),
|
|
42
43
|
),
|
|
43
44
|
}),
|
|
44
|
-
connectionString:
|
|
45
|
+
connectionString: SensitiveString,
|
|
45
46
|
directConnection: Schema.optional(
|
|
46
47
|
Schema.NullOr(
|
|
47
48
|
Schema.Struct({
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
import { SensitiveString } from "../sensitive";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export const PostV1ConnectionsByIdRotateInput =
|
|
8
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
|
+
id: Schema.String.pipe(T.PathParam()),
|
|
10
|
+
}).pipe(T.Http({ method: "POST", path: "/v1/connections/{id}/rotate" }));
|
|
11
|
+
export type PostV1ConnectionsByIdRotateInput =
|
|
12
|
+
typeof PostV1ConnectionsByIdRotateInput.Type;
|
|
13
|
+
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const PostV1ConnectionsByIdRotateOutput =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
data: Schema.Struct({
|
|
18
|
+
id: Schema.String,
|
|
19
|
+
type: Schema.String,
|
|
20
|
+
url: Schema.String,
|
|
21
|
+
name: Schema.String,
|
|
22
|
+
createdAt: Schema.String,
|
|
23
|
+
kind: Schema.Literals(["postgres", "accelerate"]),
|
|
24
|
+
endpoints: Schema.Struct({
|
|
25
|
+
direct: Schema.optional(
|
|
26
|
+
Schema.Struct({
|
|
27
|
+
host: Schema.String,
|
|
28
|
+
port: Schema.Number,
|
|
29
|
+
connectionString: SensitiveString,
|
|
30
|
+
}),
|
|
31
|
+
),
|
|
32
|
+
pooled: Schema.optional(
|
|
33
|
+
Schema.Struct({
|
|
34
|
+
host: Schema.String,
|
|
35
|
+
port: Schema.Number,
|
|
36
|
+
connectionString: SensitiveString,
|
|
37
|
+
}),
|
|
38
|
+
),
|
|
39
|
+
accelerate: Schema.optional(
|
|
40
|
+
Schema.Struct({
|
|
41
|
+
host: Schema.String,
|
|
42
|
+
port: Schema.Number,
|
|
43
|
+
connectionString: SensitiveString,
|
|
44
|
+
}),
|
|
45
|
+
),
|
|
46
|
+
}),
|
|
47
|
+
connectionString: SensitiveString,
|
|
48
|
+
directConnection: Schema.optional(
|
|
49
|
+
Schema.NullOr(
|
|
50
|
+
Schema.Struct({
|
|
51
|
+
host: Schema.String,
|
|
52
|
+
pass: Schema.String,
|
|
53
|
+
user: Schema.String,
|
|
54
|
+
}),
|
|
55
|
+
),
|
|
56
|
+
),
|
|
57
|
+
database: Schema.Struct({
|
|
58
|
+
id: Schema.String,
|
|
59
|
+
url: Schema.String,
|
|
60
|
+
name: Schema.String,
|
|
61
|
+
}),
|
|
62
|
+
host: Schema.NullOr(Schema.String),
|
|
63
|
+
pass: Schema.NullOr(Schema.String),
|
|
64
|
+
user: Schema.NullOr(Schema.String),
|
|
65
|
+
}),
|
|
66
|
+
});
|
|
67
|
+
export type PostV1ConnectionsByIdRotateOutput =
|
|
68
|
+
typeof PostV1ConnectionsByIdRotateOutput.Type;
|
|
69
|
+
|
|
70
|
+
// The operation
|
|
71
|
+
/**
|
|
72
|
+
* Rotate connection credentials
|
|
73
|
+
*
|
|
74
|
+
* Generates new credentials for the connection with the given ID. Revocation of the previous credentials is best-effort.
|
|
75
|
+
*/
|
|
76
|
+
export const postV1ConnectionsByIdRotate = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
77
|
+
() => ({
|
|
78
|
+
inputSchema: PostV1ConnectionsByIdRotateInput,
|
|
79
|
+
outputSchema: PostV1ConnectionsByIdRotateOutput,
|
|
80
|
+
}),
|
|
81
|
+
);
|
|
@@ -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
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const PostV1DatabasesByDatabaseIdConnectionsInput =
|
|
@@ -28,25 +29,25 @@ export const PostV1DatabasesByDatabaseIdConnectionsOutput =
|
|
|
28
29
|
Schema.Struct({
|
|
29
30
|
host: Schema.String,
|
|
30
31
|
port: Schema.Number,
|
|
31
|
-
connectionString:
|
|
32
|
+
connectionString: SensitiveString,
|
|
32
33
|
}),
|
|
33
34
|
),
|
|
34
35
|
pooled: Schema.optional(
|
|
35
36
|
Schema.Struct({
|
|
36
37
|
host: Schema.String,
|
|
37
38
|
port: Schema.Number,
|
|
38
|
-
connectionString:
|
|
39
|
+
connectionString: SensitiveString,
|
|
39
40
|
}),
|
|
40
41
|
),
|
|
41
42
|
accelerate: Schema.optional(
|
|
42
43
|
Schema.Struct({
|
|
43
44
|
host: Schema.String,
|
|
44
45
|
port: Schema.Number,
|
|
45
|
-
connectionString:
|
|
46
|
+
connectionString: SensitiveString,
|
|
46
47
|
}),
|
|
47
48
|
),
|
|
48
49
|
}),
|
|
49
|
-
connectionString:
|
|
50
|
+
connectionString: SensitiveString,
|
|
50
51
|
directConnection: Schema.optional(
|
|
51
52
|
Schema.NullOr(
|
|
52
53
|
Schema.Struct({
|
|
@@ -0,0 +1,115 @@
|
|
|
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 PostV1DatabasesByTargetDatabaseIdRestoreInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
targetDatabaseId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
source: Schema.Struct({
|
|
10
|
+
type: Schema.String,
|
|
11
|
+
databaseId: Schema.String,
|
|
12
|
+
backupId: Schema.String,
|
|
13
|
+
}),
|
|
14
|
+
}).pipe(
|
|
15
|
+
T.Http({
|
|
16
|
+
method: "POST",
|
|
17
|
+
path: "/v1/databases/{targetDatabaseId}/restore",
|
|
18
|
+
}),
|
|
19
|
+
);
|
|
20
|
+
export type PostV1DatabasesByTargetDatabaseIdRestoreInput =
|
|
21
|
+
typeof PostV1DatabasesByTargetDatabaseIdRestoreInput.Type;
|
|
22
|
+
|
|
23
|
+
// Output Schema
|
|
24
|
+
export const PostV1DatabasesByTargetDatabaseIdRestoreOutput =
|
|
25
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
26
|
+
data: Schema.Struct({
|
|
27
|
+
id: Schema.String,
|
|
28
|
+
type: Schema.String,
|
|
29
|
+
url: Schema.String,
|
|
30
|
+
name: Schema.String,
|
|
31
|
+
status: Schema.Literals([
|
|
32
|
+
"failure",
|
|
33
|
+
"provisioning",
|
|
34
|
+
"ready",
|
|
35
|
+
"recovering",
|
|
36
|
+
]),
|
|
37
|
+
createdAt: Schema.String,
|
|
38
|
+
isDefault: Schema.Boolean,
|
|
39
|
+
defaultConnectionId: Schema.NullOr(Schema.String),
|
|
40
|
+
connections: Schema.Array(
|
|
41
|
+
Schema.Struct({
|
|
42
|
+
id: Schema.String,
|
|
43
|
+
type: Schema.String,
|
|
44
|
+
url: Schema.String,
|
|
45
|
+
name: Schema.String,
|
|
46
|
+
createdAt: Schema.String,
|
|
47
|
+
kind: Schema.Literals(["postgres", "accelerate"]),
|
|
48
|
+
endpoints: Schema.Struct({
|
|
49
|
+
direct: Schema.optional(
|
|
50
|
+
Schema.Struct({
|
|
51
|
+
host: Schema.String,
|
|
52
|
+
port: Schema.Number,
|
|
53
|
+
}),
|
|
54
|
+
),
|
|
55
|
+
pooled: Schema.optional(
|
|
56
|
+
Schema.Struct({
|
|
57
|
+
host: Schema.String,
|
|
58
|
+
port: Schema.Number,
|
|
59
|
+
}),
|
|
60
|
+
),
|
|
61
|
+
accelerate: Schema.optional(
|
|
62
|
+
Schema.Struct({
|
|
63
|
+
host: Schema.String,
|
|
64
|
+
port: Schema.Number,
|
|
65
|
+
}),
|
|
66
|
+
),
|
|
67
|
+
}),
|
|
68
|
+
directConnection: Schema.optional(
|
|
69
|
+
Schema.NullOr(
|
|
70
|
+
Schema.Struct({
|
|
71
|
+
host: Schema.String,
|
|
72
|
+
pass: Schema.String,
|
|
73
|
+
user: Schema.String,
|
|
74
|
+
}),
|
|
75
|
+
),
|
|
76
|
+
),
|
|
77
|
+
database: Schema.Struct({
|
|
78
|
+
id: Schema.String,
|
|
79
|
+
url: Schema.String,
|
|
80
|
+
name: Schema.String,
|
|
81
|
+
}),
|
|
82
|
+
}),
|
|
83
|
+
),
|
|
84
|
+
project: Schema.Struct({
|
|
85
|
+
id: Schema.String,
|
|
86
|
+
url: Schema.String,
|
|
87
|
+
name: Schema.String,
|
|
88
|
+
}),
|
|
89
|
+
region: Schema.NullOr(
|
|
90
|
+
Schema.Struct({
|
|
91
|
+
id: Schema.String,
|
|
92
|
+
name: Schema.String,
|
|
93
|
+
}),
|
|
94
|
+
),
|
|
95
|
+
source: Schema.Struct({
|
|
96
|
+
type: Schema.String,
|
|
97
|
+
databaseId: Schema.String,
|
|
98
|
+
backupId: Schema.String,
|
|
99
|
+
}),
|
|
100
|
+
}),
|
|
101
|
+
});
|
|
102
|
+
export type PostV1DatabasesByTargetDatabaseIdRestoreOutput =
|
|
103
|
+
typeof PostV1DatabasesByTargetDatabaseIdRestoreOutput.Type;
|
|
104
|
+
|
|
105
|
+
// The operation
|
|
106
|
+
/**
|
|
107
|
+
* Restore database
|
|
108
|
+
*
|
|
109
|
+
* 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.
|
|
110
|
+
*/
|
|
111
|
+
export const postV1DatabasesByTargetDatabaseIdRestore =
|
|
112
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
113
|
+
inputSchema: PostV1DatabasesByTargetDatabaseIdRestoreInput,
|
|
114
|
+
outputSchema: PostV1DatabasesByTargetDatabaseIdRestoreOutput,
|
|
115
|
+
}));
|
|
@@ -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
|
|
|
5
6
|
// Input Schema
|
|
6
7
|
export const PostV1ProjectsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -56,21 +57,21 @@ export const PostV1ProjectsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
56
57
|
Schema.Struct({
|
|
57
58
|
host: Schema.String,
|
|
58
59
|
port: Schema.Number,
|
|
59
|
-
connectionString: Schema.optional(
|
|
60
|
+
connectionString: Schema.optional(SensitiveString),
|
|
60
61
|
}),
|
|
61
62
|
),
|
|
62
63
|
pooled: Schema.optional(
|
|
63
64
|
Schema.Struct({
|
|
64
65
|
host: Schema.String,
|
|
65
66
|
port: Schema.Number,
|
|
66
|
-
connectionString: Schema.optional(
|
|
67
|
+
connectionString: Schema.optional(SensitiveString),
|
|
67
68
|
}),
|
|
68
69
|
),
|
|
69
70
|
accelerate: Schema.optional(
|
|
70
71
|
Schema.Struct({
|
|
71
72
|
host: Schema.String,
|
|
72
73
|
port: Schema.Number,
|
|
73
|
-
connectionString: Schema.optional(
|
|
74
|
+
connectionString: Schema.optional(SensitiveString),
|
|
74
75
|
}),
|
|
75
76
|
),
|
|
76
77
|
}),
|
|
@@ -122,7 +123,7 @@ export const PostV1ProjectsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
122
123
|
}),
|
|
123
124
|
),
|
|
124
125
|
}),
|
|
125
|
-
connectionString:
|
|
126
|
+
connectionString: SensitiveString,
|
|
126
127
|
directConnection: Schema.optional(
|
|
127
128
|
Schema.NullOr(
|
|
128
129
|
Schema.Struct({
|
|
@@ -134,7 +135,7 @@ export const PostV1ProjectsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
134
135
|
),
|
|
135
136
|
}),
|
|
136
137
|
),
|
|
137
|
-
connectionString:
|
|
138
|
+
connectionString: SensitiveNullableString,
|
|
138
139
|
directConnection: Schema.NullOr(
|
|
139
140
|
Schema.Struct({
|
|
140
141
|
host: Schema.String,
|
|
@@ -0,0 +1,60 @@
|
|
|
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 PostV1ProjectsByProjectIdComputeServicesInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
projectId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
displayName: Schema.String,
|
|
10
|
+
regionId: Schema.optional(
|
|
11
|
+
Schema.Literals([
|
|
12
|
+
"us-east-1",
|
|
13
|
+
"us-west-1",
|
|
14
|
+
"eu-west-3",
|
|
15
|
+
"eu-central-1",
|
|
16
|
+
"ap-northeast-1",
|
|
17
|
+
"ap-southeast-1",
|
|
18
|
+
]),
|
|
19
|
+
),
|
|
20
|
+
}).pipe(
|
|
21
|
+
T.Http({
|
|
22
|
+
method: "POST",
|
|
23
|
+
path: "/v1/projects/{projectId}/compute-services",
|
|
24
|
+
}),
|
|
25
|
+
);
|
|
26
|
+
export type PostV1ProjectsByProjectIdComputeServicesInput =
|
|
27
|
+
typeof PostV1ProjectsByProjectIdComputeServicesInput.Type;
|
|
28
|
+
|
|
29
|
+
// Output Schema
|
|
30
|
+
export const PostV1ProjectsByProjectIdComputeServicesOutput =
|
|
31
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
32
|
+
data: Schema.Struct({
|
|
33
|
+
id: Schema.String,
|
|
34
|
+
type: Schema.String,
|
|
35
|
+
url: Schema.String,
|
|
36
|
+
name: Schema.String,
|
|
37
|
+
region: Schema.Struct({
|
|
38
|
+
id: Schema.String,
|
|
39
|
+
name: Schema.String,
|
|
40
|
+
}),
|
|
41
|
+
projectId: Schema.String,
|
|
42
|
+
latestVersionId: Schema.NullOr(Schema.String),
|
|
43
|
+
createdAt: Schema.String,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
export type PostV1ProjectsByProjectIdComputeServicesOutput =
|
|
47
|
+
typeof PostV1ProjectsByProjectIdComputeServicesOutput.Type;
|
|
48
|
+
|
|
49
|
+
// The operation
|
|
50
|
+
/**
|
|
51
|
+
* Create compute service
|
|
52
|
+
*
|
|
53
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
54
|
+
* Creates a new compute service under the specified project. The service is placed in the given region (or the default region if omitted).
|
|
55
|
+
*/
|
|
56
|
+
export const postV1ProjectsByProjectIdComputeServices =
|
|
57
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
58
|
+
inputSchema: PostV1ProjectsByProjectIdComputeServicesInput,
|
|
59
|
+
outputSchema: PostV1ProjectsByProjectIdComputeServicesOutput,
|
|
60
|
+
}));
|