@distilled.cloud/prisma-postgres 0.9.0 → 0.10.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/lib/operations/getV1ComputeServices.d.ts +1 -0
- package/lib/operations/getV1ComputeServices.d.ts.map +1 -1
- package/lib/operations/getV1ComputeServices.js +1 -0
- package/lib/operations/getV1ComputeServices.js.map +1 -1
- package/lib/operations/getV1ComputeServicesByComputeServiceId.d.ts +1 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceId.d.ts.map +1 -1
- package/lib/operations/getV1ComputeServicesByComputeServiceId.js +1 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceId.js.map +1 -1
- package/lib/operations/getV1ComputeServicesVersionsByVersionId.d.ts +3 -0
- package/lib/operations/getV1ComputeServicesVersionsByVersionId.d.ts.map +1 -1
- package/lib/operations/getV1ComputeServicesVersionsByVersionId.js +3 -0
- package/lib/operations/getV1ComputeServicesVersionsByVersionId.js.map +1 -1
- package/lib/operations/getV1ComputeServicesVersionsByVersionIdLogs.d.ts +18 -0
- package/lib/operations/getV1ComputeServicesVersionsByVersionIdLogs.d.ts.map +1 -0
- package/lib/operations/getV1ComputeServicesVersionsByVersionIdLogs.js +30 -0
- package/lib/operations/getV1ComputeServicesVersionsByVersionIdLogs.js.map +1 -0
- package/lib/operations/getV1Databases.d.ts +1 -0
- package/lib/operations/getV1Databases.d.ts.map +1 -1
- package/lib/operations/getV1Databases.js +1 -0
- package/lib/operations/getV1Databases.js.map +1 -1
- package/lib/operations/getV1DatabasesByDatabaseId.d.ts +1 -0
- package/lib/operations/getV1DatabasesByDatabaseId.d.ts.map +1 -1
- package/lib/operations/getV1DatabasesByDatabaseId.js +1 -0
- package/lib/operations/getV1DatabasesByDatabaseId.js.map +1 -1
- package/lib/operations/getV1ProjectsByProjectIdComputeServices.d.ts +1 -0
- package/lib/operations/getV1ProjectsByProjectIdComputeServices.d.ts.map +1 -1
- package/lib/operations/getV1ProjectsByProjectIdComputeServices.js +1 -0
- package/lib/operations/getV1ProjectsByProjectIdComputeServices.js.map +1 -1
- package/lib/operations/getV1ProjectsByProjectIdDatabases.d.ts +1 -0
- package/lib/operations/getV1ProjectsByProjectIdDatabases.d.ts.map +1 -1
- package/lib/operations/getV1ProjectsByProjectIdDatabases.js +1 -0
- package/lib/operations/getV1ProjectsByProjectIdDatabases.js.map +1 -1
- package/lib/operations/getV1VersionsByVersionId.d.ts +3 -0
- package/lib/operations/getV1VersionsByVersionId.d.ts.map +1 -1
- package/lib/operations/getV1VersionsByVersionId.js +3 -0
- package/lib/operations/getV1VersionsByVersionId.js.map +1 -1
- package/lib/operations/index.d.ts +23 -0
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +23 -0
- package/lib/operations/index.js.map +1 -1
- package/lib/operations/patchV1ComputeServicesByComputeServiceId.d.ts +1 -0
- package/lib/operations/patchV1ComputeServicesByComputeServiceId.d.ts.map +1 -1
- package/lib/operations/patchV1ComputeServicesByComputeServiceId.js +1 -0
- package/lib/operations/patchV1ComputeServicesByComputeServiceId.js.map +1 -1
- package/lib/operations/patchV1DatabasesByDatabaseId.d.ts +1 -0
- package/lib/operations/patchV1DatabasesByDatabaseId.d.ts.map +1 -1
- package/lib/operations/patchV1DatabasesByDatabaseId.js +1 -0
- package/lib/operations/patchV1DatabasesByDatabaseId.js.map +1 -1
- package/lib/operations/postV1ComputeServices.d.ts +1 -0
- package/lib/operations/postV1ComputeServices.d.ts.map +1 -1
- package/lib/operations/postV1ComputeServices.js +1 -0
- package/lib/operations/postV1ComputeServices.js.map +1 -1
- package/lib/operations/postV1ComputeServicesByComputeServiceIdPromote.d.ts +20 -0
- package/lib/operations/postV1ComputeServicesByComputeServiceIdPromote.d.ts.map +1 -0
- package/lib/operations/postV1ComputeServicesByComputeServiceIdPromote.js +32 -0
- package/lib/operations/postV1ComputeServicesByComputeServiceIdPromote.js.map +1 -0
- package/lib/operations/postV1Connections.d.ts +3 -0
- package/lib/operations/postV1Connections.d.ts.map +1 -1
- package/lib/operations/postV1Connections.js +3 -0
- package/lib/operations/postV1Connections.js.map +1 -1
- package/lib/operations/postV1Databases.d.ts +5 -0
- package/lib/operations/postV1Databases.d.ts.map +1 -1
- package/lib/operations/postV1Databases.js +6 -0
- package/lib/operations/postV1Databases.js.map +1 -1
- package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.d.ts +3 -2
- package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.d.ts.map +1 -1
- package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.js +3 -2
- package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.js.map +1 -1
- package/lib/operations/postV1Projects.d.ts +1 -0
- package/lib/operations/postV1Projects.d.ts.map +1 -1
- package/lib/operations/postV1Projects.js +1 -0
- package/lib/operations/postV1Projects.js.map +1 -1
- package/lib/operations/postV1ProjectsByProjectIdComputeServices.d.ts +1 -0
- package/lib/operations/postV1ProjectsByProjectIdComputeServices.d.ts.map +1 -1
- package/lib/operations/postV1ProjectsByProjectIdComputeServices.js +1 -0
- package/lib/operations/postV1ProjectsByProjectIdComputeServices.js.map +1 -1
- package/lib/operations/postV1ProjectsByProjectIdDatabases.d.ts +2 -0
- package/lib/operations/postV1ProjectsByProjectIdDatabases.d.ts.map +1 -1
- package/lib/operations/postV1ProjectsByProjectIdDatabases.js +2 -0
- package/lib/operations/postV1ProjectsByProjectIdDatabases.js.map +1 -1
- package/package.json +4 -4
- package/src/operations/getV1ComputeServices.ts +1 -0
- package/src/operations/getV1ComputeServicesByComputeServiceId.ts +1 -0
- package/src/operations/getV1ComputeServicesVersionsByVersionId.ts +5 -0
- package/src/operations/getV1ComputeServicesVersionsByVersionIdLogs.ts +38 -0
- package/src/operations/getV1Databases.ts +1 -0
- package/src/operations/getV1DatabasesByDatabaseId.ts +1 -0
- package/src/operations/getV1ProjectsByProjectIdComputeServices.ts +1 -0
- package/src/operations/getV1ProjectsByProjectIdDatabases.ts +1 -0
- package/src/operations/getV1VersionsByVersionId.ts +5 -0
- package/src/operations/index.ts +23 -0
- package/src/operations/patchV1ComputeServicesByComputeServiceId.ts +1 -0
- package/src/operations/patchV1DatabasesByDatabaseId.ts +1 -0
- package/src/operations/postV1ComputeServices.ts +1 -0
- package/src/operations/postV1ComputeServicesByComputeServiceIdPromote.ts +40 -0
- package/src/operations/postV1Connections.ts +3 -0
- package/src/operations/postV1Databases.ts +6 -0
- package/src/operations/postV1DatabasesByTargetDatabaseIdRestore.ts +3 -2
- package/src/operations/postV1Projects.ts +1 -0
- package/src/operations/postV1ProjectsByProjectIdComputeServices.ts +1 -0
- package/src/operations/postV1ProjectsByProjectIdDatabases.ts +2 -0
package/src/operations/index.ts
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
export * from "./getV1ComputeServicesVersionsByVersionIdLogs";
|
|
2
|
+
export * from "./getV1ComputeServices";
|
|
3
|
+
export * from "./postV1ComputeServices";
|
|
4
|
+
export * from "./getV1ComputeServicesVersionsByVersionId";
|
|
5
|
+
export * from "./deleteV1ComputeServicesVersionsByVersionId";
|
|
6
|
+
export * from "./postV1ComputeServicesVersionsByVersionIdStart";
|
|
7
|
+
export * from "./postV1ComputeServicesVersionsByVersionIdStop";
|
|
8
|
+
export * from "./getV1ComputeServicesByComputeServiceId";
|
|
9
|
+
export * from "./patchV1ComputeServicesByComputeServiceId";
|
|
10
|
+
export * from "./deleteV1ComputeServicesByComputeServiceId";
|
|
11
|
+
export * from "./postV1ComputeServicesByComputeServiceIdPromote";
|
|
12
|
+
export * from "./getV1ComputeServicesByComputeServiceIdVersions";
|
|
13
|
+
export * from "./postV1ComputeServicesByComputeServiceIdVersions";
|
|
1
14
|
export * from "./getV1Connections";
|
|
2
15
|
export * from "./postV1Connections";
|
|
3
16
|
export * from "./getV1ConnectionsById";
|
|
4
17
|
export * from "./deleteV1ConnectionsById";
|
|
18
|
+
export * from "./postV1ConnectionsByIdRotate";
|
|
5
19
|
export * from "./getV1Databases";
|
|
6
20
|
export * from "./postV1Databases";
|
|
7
21
|
export * from "./getV1DatabasesByDatabaseId";
|
|
@@ -10,6 +24,7 @@ export * from "./deleteV1DatabasesByDatabaseId";
|
|
|
10
24
|
export * from "./getV1DatabasesByDatabaseIdConnections";
|
|
11
25
|
export * from "./postV1DatabasesByDatabaseIdConnections";
|
|
12
26
|
export * from "./getV1DatabasesByDatabaseIdBackups";
|
|
27
|
+
export * from "./postV1DatabasesByTargetDatabaseIdRestore";
|
|
13
28
|
export * from "./getV1DatabasesByDatabaseIdUsage";
|
|
14
29
|
export * from "./getV1Projects";
|
|
15
30
|
export * from "./postV1Projects";
|
|
@@ -17,6 +32,8 @@ export * from "./getV1ProjectsById";
|
|
|
17
32
|
export * from "./patchV1ProjectsById";
|
|
18
33
|
export * from "./deleteV1ProjectsById";
|
|
19
34
|
export * from "./postV1ProjectsByIdTransfer";
|
|
35
|
+
export * from "./getV1ProjectsByProjectIdComputeServices";
|
|
36
|
+
export * from "./postV1ProjectsByProjectIdComputeServices";
|
|
20
37
|
export * from "./getV1ProjectsByProjectIdDatabases";
|
|
21
38
|
export * from "./postV1ProjectsByProjectIdDatabases";
|
|
22
39
|
export * from "./getV1Integrations";
|
|
@@ -27,5 +44,11 @@ export * from "./deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId";
|
|
|
27
44
|
export * from "./getV1Regions";
|
|
28
45
|
export * from "./getV1RegionsPostgres";
|
|
29
46
|
export * from "./getV1RegionsAccelerate";
|
|
47
|
+
export * from "./getV1Versions";
|
|
48
|
+
export * from "./postV1Versions";
|
|
49
|
+
export * from "./getV1VersionsByVersionId";
|
|
50
|
+
export * from "./deleteV1VersionsByVersionId";
|
|
51
|
+
export * from "./postV1VersionsByVersionIdStart";
|
|
52
|
+
export * from "./postV1VersionsByVersionIdStop";
|
|
30
53
|
export * from "./getV1Workspaces";
|
|
31
54
|
export * from "./getV1WorkspacesById";
|
|
@@ -0,0 +1,40 @@
|
|
|
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 PostV1ComputeServicesByComputeServiceIdPromoteInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
computeServiceId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
versionId: Schema.String,
|
|
10
|
+
}).pipe(
|
|
11
|
+
T.Http({
|
|
12
|
+
method: "POST",
|
|
13
|
+
path: "/v1/compute-services/{computeServiceId}/promote",
|
|
14
|
+
}),
|
|
15
|
+
);
|
|
16
|
+
export type PostV1ComputeServicesByComputeServiceIdPromoteInput =
|
|
17
|
+
typeof PostV1ComputeServicesByComputeServiceIdPromoteInput.Type;
|
|
18
|
+
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const PostV1ComputeServicesByComputeServiceIdPromoteOutput =
|
|
21
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
22
|
+
data: Schema.Struct({
|
|
23
|
+
serviceEndpointDomain: Schema.String,
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
26
|
+
export type PostV1ComputeServicesByComputeServiceIdPromoteOutput =
|
|
27
|
+
typeof PostV1ComputeServicesByComputeServiceIdPromoteOutput.Type;
|
|
28
|
+
|
|
29
|
+
// The operation
|
|
30
|
+
/**
|
|
31
|
+
* Promote compute version
|
|
32
|
+
*
|
|
33
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
34
|
+
* Promotes a compute version to be the active version behind the service's stable endpoint. The version must be running. Returns the service endpoint domain.
|
|
35
|
+
*/
|
|
36
|
+
export const postV1ComputeServicesByComputeServiceIdPromote =
|
|
37
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
38
|
+
inputSchema: PostV1ComputeServicesByComputeServiceIdPromoteInput,
|
|
39
|
+
outputSchema: PostV1ComputeServicesByComputeServiceIdPromoteOutput,
|
|
40
|
+
}));
|
|
@@ -27,18 +27,21 @@ export const PostV1ConnectionsOutput =
|
|
|
27
27
|
Schema.Struct({
|
|
28
28
|
host: Schema.String,
|
|
29
29
|
port: Schema.Number,
|
|
30
|
+
connectionString: SensitiveString,
|
|
30
31
|
}),
|
|
31
32
|
),
|
|
32
33
|
pooled: Schema.optional(
|
|
33
34
|
Schema.Struct({
|
|
34
35
|
host: Schema.String,
|
|
35
36
|
port: Schema.Number,
|
|
37
|
+
connectionString: SensitiveString,
|
|
36
38
|
}),
|
|
37
39
|
),
|
|
38
40
|
accelerate: Schema.optional(
|
|
39
41
|
Schema.Struct({
|
|
40
42
|
host: Schema.String,
|
|
41
43
|
port: Schema.Number,
|
|
44
|
+
connectionString: SensitiveString,
|
|
42
45
|
}),
|
|
43
46
|
),
|
|
44
47
|
}),
|
|
@@ -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 PostV1DatabasesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -18,6 +19,7 @@ export const PostV1DatabasesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
18
19
|
),
|
|
19
20
|
name: Schema.optional(Schema.String),
|
|
20
21
|
isDefault: Schema.optional(Schema.Boolean),
|
|
22
|
+
source: Schema.optional(Schema.Unknown),
|
|
21
23
|
}).pipe(T.Http({ method: "POST", path: "/v1/databases" }));
|
|
22
24
|
export type PostV1DatabasesInput = typeof PostV1DatabasesInput.Type;
|
|
23
25
|
|
|
@@ -45,18 +47,21 @@ export const PostV1DatabasesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
45
47
|
Schema.Struct({
|
|
46
48
|
host: Schema.String,
|
|
47
49
|
port: Schema.Number,
|
|
50
|
+
connectionString: Schema.optional(SensitiveString),
|
|
48
51
|
}),
|
|
49
52
|
),
|
|
50
53
|
pooled: Schema.optional(
|
|
51
54
|
Schema.Struct({
|
|
52
55
|
host: Schema.String,
|
|
53
56
|
port: Schema.Number,
|
|
57
|
+
connectionString: Schema.optional(SensitiveString),
|
|
54
58
|
}),
|
|
55
59
|
),
|
|
56
60
|
accelerate: Schema.optional(
|
|
57
61
|
Schema.Struct({
|
|
58
62
|
host: Schema.String,
|
|
59
63
|
port: Schema.Number,
|
|
64
|
+
connectionString: Schema.optional(SensitiveString),
|
|
60
65
|
}),
|
|
61
66
|
),
|
|
62
67
|
}),
|
|
@@ -87,6 +92,7 @@ export const PostV1DatabasesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
87
92
|
name: Schema.String,
|
|
88
93
|
}),
|
|
89
94
|
),
|
|
95
|
+
source: Schema.Unknown,
|
|
90
96
|
}),
|
|
91
97
|
});
|
|
92
98
|
export type PostV1DatabasesOutput = typeof PostV1DatabasesOutput.Type;
|
|
@@ -104,9 +104,10 @@ export type PostV1DatabasesByTargetDatabaseIdRestoreOutput =
|
|
|
104
104
|
|
|
105
105
|
// The operation
|
|
106
106
|
/**
|
|
107
|
-
* Restore database
|
|
107
|
+
* Restore database (destructive)
|
|
108
108
|
*
|
|
109
|
-
*
|
|
109
|
+
* ⚠️ **Destructive operation** — this immediately and irreversibly overwrites all data in the target database with the contents of the specified backup. Any data written since the backup was taken will be lost. Ensure you have a recent backup of the target database before proceeding.
|
|
110
|
+
* Replaces the data in an existing database from a backup. Connections and credentials are preserved — only the data layer is replaced.
|
|
110
111
|
*/
|
|
111
112
|
export const postV1DatabasesByTargetDatabaseIdRestore =
|
|
112
113
|
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
@@ -26,6 +26,7 @@ export const PostV1ProjectsByProjectIdDatabasesInput =
|
|
|
26
26
|
backupId: Schema.optional(Schema.String),
|
|
27
27
|
}),
|
|
28
28
|
),
|
|
29
|
+
source: Schema.optional(Schema.Unknown),
|
|
29
30
|
}).pipe(
|
|
30
31
|
T.Http({ method: "POST", path: "/v1/projects/{projectId}/databases" }),
|
|
31
32
|
);
|
|
@@ -100,6 +101,7 @@ export const PostV1ProjectsByProjectIdDatabasesOutput =
|
|
|
100
101
|
id: Schema.String,
|
|
101
102
|
name: Schema.String,
|
|
102
103
|
}),
|
|
104
|
+
source: Schema.Unknown,
|
|
103
105
|
apiKeys: Schema.Array(
|
|
104
106
|
Schema.Struct({
|
|
105
107
|
id: Schema.String,
|