@distilled.cloud/prisma-postgres 0.0.0 → 0.2.5-alpha2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -6
- package/lib/category.d.ts +5 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +5 -0
- package/lib/category.js.map +1 -0
- package/lib/client.d.ts +17 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +55 -0
- package/lib/client.js.map +1 -0
- package/lib/credentials.d.ts +14 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +17 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +32 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +24 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +16 -0
- package/lib/index.js.map +1 -0
- package/lib/operations/deleteV1ConnectionsById.d.ts +14 -0
- package/lib/operations/deleteV1ConnectionsById.d.ts.map +1 -0
- package/lib/operations/deleteV1ConnectionsById.js +22 -0
- package/lib/operations/deleteV1ConnectionsById.js.map +1 -0
- package/lib/operations/deleteV1DatabasesByDatabaseId.d.ts +14 -0
- package/lib/operations/deleteV1DatabasesByDatabaseId.d.ts.map +1 -0
- package/lib/operations/deleteV1DatabasesByDatabaseId.js +23 -0
- package/lib/operations/deleteV1DatabasesByDatabaseId.js.map +1 -0
- package/lib/operations/deleteV1IntegrationsById.d.ts +14 -0
- package/lib/operations/deleteV1IntegrationsById.d.ts.map +1 -0
- package/lib/operations/deleteV1IntegrationsById.js +22 -0
- package/lib/operations/deleteV1IntegrationsById.js.map +1 -0
- package/lib/operations/deleteV1ProjectsById.d.ts +14 -0
- package/lib/operations/deleteV1ProjectsById.d.ts.map +1 -0
- package/lib/operations/deleteV1ProjectsById.js +22 -0
- package/lib/operations/deleteV1ProjectsById.js.map +1 -0
- package/lib/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.d.ts +15 -0
- package/lib/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.d.ts.map +1 -0
- package/lib/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.js +27 -0
- package/lib/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.js.map +1 -0
- package/lib/operations/getV1Connections.d.ts +53 -0
- package/lib/operations/getV1Connections.d.ts.map +1 -0
- package/lib/operations/getV1Connections.js +59 -0
- package/lib/operations/getV1Connections.js.map +1 -0
- package/lib/operations/getV1ConnectionsById.d.ts +47 -0
- package/lib/operations/getV1ConnectionsById.d.ts.map +1 -0
- package/lib/operations/getV1ConnectionsById.js +55 -0
- package/lib/operations/getV1ConnectionsById.js.map +1 -0
- package/lib/operations/getV1Databases.d.ts +72 -0
- package/lib/operations/getV1Databases.d.ts.map +1 -0
- package/lib/operations/getV1Databases.js +83 -0
- package/lib/operations/getV1Databases.js.map +1 -0
- package/lib/operations/getV1DatabasesByDatabaseId.d.ts +66 -0
- package/lib/operations/getV1DatabasesByDatabaseId.d.ts.map +1 -0
- package/lib/operations/getV1DatabasesByDatabaseId.js +79 -0
- package/lib/operations/getV1DatabasesByDatabaseId.js.map +1 -0
- package/lib/operations/getV1DatabasesByDatabaseIdBackups.d.ts +31 -0
- package/lib/operations/getV1DatabasesByDatabaseIdBackups.d.ts.map +1 -0
- package/lib/operations/getV1DatabasesByDatabaseIdBackups.js +40 -0
- package/lib/operations/getV1DatabasesByDatabaseIdBackups.js.map +1 -0
- package/lib/operations/getV1DatabasesByDatabaseIdConnections.d.ts +53 -0
- package/lib/operations/getV1DatabasesByDatabaseIdConnections.d.ts.map +1 -0
- package/lib/operations/getV1DatabasesByDatabaseIdConnections.js +62 -0
- package/lib/operations/getV1DatabasesByDatabaseIdConnections.js.map +1 -0
- package/lib/operations/getV1DatabasesByDatabaseIdUsage.d.ts +32 -0
- package/lib/operations/getV1DatabasesByDatabaseIdUsage.d.ts.map +1 -0
- package/lib/operations/getV1DatabasesByDatabaseIdUsage.js +41 -0
- package/lib/operations/getV1DatabasesByDatabaseIdUsage.js.map +1 -0
- package/lib/operations/getV1Integrations.d.ts +37 -0
- package/lib/operations/getV1Integrations.d.ts.map +1 -0
- package/lib/operations/getV1Integrations.js +44 -0
- package/lib/operations/getV1Integrations.js.map +1 -0
- package/lib/operations/getV1IntegrationsById.d.ts +31 -0
- package/lib/operations/getV1IntegrationsById.d.ts.map +1 -0
- package/lib/operations/getV1IntegrationsById.js +39 -0
- package/lib/operations/getV1IntegrationsById.js.map +1 -0
- package/lib/operations/getV1Projects.d.ts +33 -0
- package/lib/operations/getV1Projects.d.ts.map +1 -0
- package/lib/operations/getV1Projects.js +39 -0
- package/lib/operations/getV1Projects.js.map +1 -0
- package/lib/operations/getV1ProjectsById.d.ts +28 -0
- package/lib/operations/getV1ProjectsById.d.ts.map +1 -0
- package/lib/operations/getV1ProjectsById.js +35 -0
- package/lib/operations/getV1ProjectsById.js.map +1 -0
- package/lib/operations/getV1ProjectsByProjectIdDatabases.d.ts +72 -0
- package/lib/operations/getV1ProjectsByProjectIdDatabases.d.ts.map +1 -0
- package/lib/operations/getV1ProjectsByProjectIdDatabases.js +86 -0
- package/lib/operations/getV1ProjectsByProjectIdDatabases.js.map +1 -0
- package/lib/operations/getV1Regions.d.ts +22 -0
- package/lib/operations/getV1Regions.d.ts.map +1 -0
- package/lib/operations/getV1Regions.js +28 -0
- package/lib/operations/getV1Regions.js.map +1 -0
- package/lib/operations/getV1RegionsAccelerate.d.ts +18 -0
- package/lib/operations/getV1RegionsAccelerate.d.ts.map +1 -0
- package/lib/operations/getV1RegionsAccelerate.js +26 -0
- package/lib/operations/getV1RegionsAccelerate.js.map +1 -0
- package/lib/operations/getV1RegionsPostgres.d.ts +19 -0
- package/lib/operations/getV1RegionsPostgres.d.ts.map +1 -0
- package/lib/operations/getV1RegionsPostgres.js +27 -0
- package/lib/operations/getV1RegionsPostgres.js.map +1 -0
- package/lib/operations/getV1Workspaces.d.ts +27 -0
- package/lib/operations/getV1Workspaces.d.ts.map +1 -0
- package/lib/operations/getV1Workspaces.js +33 -0
- package/lib/operations/getV1Workspaces.js.map +1 -0
- package/lib/operations/getV1WorkspacesById.d.ts +22 -0
- package/lib/operations/getV1WorkspacesById.d.ts.map +1 -0
- package/lib/operations/getV1WorkspacesById.js +30 -0
- package/lib/operations/getV1WorkspacesById.js.map +1 -0
- package/lib/operations/getV1WorkspacesByWorkspaceIdIntegrations.d.ts +37 -0
- package/lib/operations/getV1WorkspacesByWorkspaceIdIntegrations.d.ts.map +1 -0
- package/lib/operations/getV1WorkspacesByWorkspaceIdIntegrations.js +49 -0
- package/lib/operations/getV1WorkspacesByWorkspaceIdIntegrations.js.map +1 -0
- package/lib/operations/index.d.ts +32 -0
- package/lib/operations/index.d.ts.map +1 -0
- package/lib/operations/index.js +32 -0
- package/lib/operations/index.js.map +1 -0
- package/lib/operations/patchV1DatabasesByDatabaseId.d.ts +67 -0
- package/lib/operations/patchV1DatabasesByDatabaseId.d.ts.map +1 -0
- package/lib/operations/patchV1DatabasesByDatabaseId.js +81 -0
- package/lib/operations/patchV1DatabasesByDatabaseId.js.map +1 -0
- package/lib/operations/patchV1ProjectsById.d.ts +30 -0
- package/lib/operations/patchV1ProjectsById.d.ts.map +1 -0
- package/lib/operations/patchV1ProjectsById.js +38 -0
- package/lib/operations/patchV1ProjectsById.js.map +1 -0
- package/lib/operations/postV1Connections.d.ts +52 -0
- package/lib/operations/postV1Connections.d.ts.map +1 -0
- package/lib/operations/postV1Connections.js +59 -0
- package/lib/operations/postV1Connections.js.map +1 -0
- package/lib/operations/postV1Databases.d.ts +69 -0
- package/lib/operations/postV1Databases.d.ts.map +1 -0
- package/lib/operations/postV1Databases.js +83 -0
- package/lib/operations/postV1Databases.js.map +1 -0
- package/lib/operations/postV1DatabasesByDatabaseIdConnections.d.ts +55 -0
- package/lib/operations/postV1DatabasesByDatabaseIdConnections.d.ts.map +1 -0
- package/lib/operations/postV1DatabasesByDatabaseIdConnections.js +64 -0
- package/lib/operations/postV1DatabasesByDatabaseIdConnections.js.map +1 -0
- package/lib/operations/postV1Projects.d.ts +113 -0
- package/lib/operations/postV1Projects.d.ts.map +1 -0
- package/lib/operations/postV1Projects.js +126 -0
- package/lib/operations/postV1Projects.js.map +1 -0
- package/lib/operations/postV1ProjectsByIdTransfer.d.ts +15 -0
- package/lib/operations/postV1ProjectsByIdTransfer.d.ts.map +1 -0
- package/lib/operations/postV1ProjectsByIdTransfer.js +23 -0
- package/lib/operations/postV1ProjectsByIdTransfer.js.map +1 -0
- package/lib/operations/postV1ProjectsByProjectIdDatabases.d.ts +110 -0
- package/lib/operations/postV1ProjectsByProjectIdDatabases.d.ts.map +1 -0
- package/lib/operations/postV1ProjectsByProjectIdDatabases.js +127 -0
- package/lib/operations/postV1ProjectsByProjectIdDatabases.js.map +1 -0
- package/lib/retry.d.ts +22 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +21 -0
- package/lib/retry.js.map +1 -0
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/traits.d.ts +5 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +5 -0
- package/lib/traits.js.map +1 -0
- package/package.json +80 -9
- package/src/category.ts +4 -0
- package/src/client.ts +68 -0
- package/src/credentials.ts +30 -0
- package/src/errors.ts +48 -0
- package/src/index.ts +15 -0
- package/src/operations/deleteV1ConnectionsById.ts +30 -0
- package/src/operations/deleteV1DatabasesByDatabaseId.ts +29 -0
- package/src/operations/deleteV1IntegrationsById.ts +30 -0
- package/src/operations/deleteV1ProjectsById.ts +28 -0
- package/src/operations/deleteV1WorkspacesByWorkspaceIdIntegrationsByClientId.ts +35 -0
- package/src/operations/getV1Connections.ts +77 -0
- package/src/operations/getV1ConnectionsById.ts +71 -0
- package/src/operations/getV1Databases.ts +103 -0
- package/src/operations/getV1DatabasesByDatabaseId.ts +101 -0
- package/src/operations/getV1DatabasesByDatabaseIdBackups.ts +50 -0
- package/src/operations/getV1DatabasesByDatabaseIdConnections.ts +82 -0
- package/src/operations/getV1DatabasesByDatabaseIdUsage.ts +47 -0
- package/src/operations/getV1Integrations.ts +52 -0
- package/src/operations/getV1IntegrationsById.ts +46 -0
- package/src/operations/getV1Projects.ts +45 -0
- package/src/operations/getV1ProjectsById.ts +41 -0
- package/src/operations/getV1ProjectsByProjectIdDatabases.ts +110 -0
- package/src/operations/getV1Regions.ts +34 -0
- package/src/operations/getV1RegionsAccelerate.ts +38 -0
- package/src/operations/getV1RegionsPostgres.ts +37 -0
- package/src/operations/getV1Workspaces.ts +39 -0
- package/src/operations/getV1WorkspacesById.ts +34 -0
- package/src/operations/getV1WorkspacesByWorkspaceIdIntegrations.ts +59 -0
- package/src/operations/index.ts +31 -0
- package/src/operations/patchV1DatabasesByDatabaseId.ts +101 -0
- package/src/operations/patchV1ProjectsById.ts +42 -0
- package/src/operations/postV1Connections.ts +75 -0
- package/src/operations/postV1Databases.ts +103 -0
- package/src/operations/postV1DatabasesByDatabaseIdConnections.ts +82 -0
- package/src/operations/postV1Projects.ts +160 -0
- package/src/operations/postV1ProjectsByIdTransfer.ts +31 -0
- package/src/operations/postV1ProjectsByProjectIdDatabases.ts +165 -0
- package/src/retry.ts +37 -0
- package/src/sensitive.ts +4 -0
- package/src/traits.ts +4 -0
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const PatchV1ProjectsByIdInput: Schema.Struct<{
|
|
3
|
+
readonly id: Schema.String;
|
|
4
|
+
readonly name: Schema.optional<Schema.String>;
|
|
5
|
+
readonly settings: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
6
|
+
}>;
|
|
7
|
+
export type PatchV1ProjectsByIdInput = typeof PatchV1ProjectsByIdInput.Type;
|
|
8
|
+
export declare const PatchV1ProjectsByIdOutput: 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 createdAt: Schema.String;
|
|
15
|
+
readonly defaultRegion: Schema.NullOr<Schema.String>;
|
|
16
|
+
readonly workspace: Schema.Struct<{
|
|
17
|
+
readonly id: Schema.String;
|
|
18
|
+
readonly url: Schema.String;
|
|
19
|
+
readonly name: Schema.String;
|
|
20
|
+
}>;
|
|
21
|
+
}>;
|
|
22
|
+
}>;
|
|
23
|
+
export type PatchV1ProjectsByIdOutput = typeof PatchV1ProjectsByIdOutput.Type;
|
|
24
|
+
/**
|
|
25
|
+
* Update project
|
|
26
|
+
*
|
|
27
|
+
* Updates the project with the given ID.
|
|
28
|
+
*/
|
|
29
|
+
export declare const patchV1ProjectsById: any;
|
|
30
|
+
//# sourceMappingURL=patchV1ProjectsById.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchV1ProjectsById.d.ts","sourceRoot":"","sources":["../../src/operations/patchV1ProjectsById.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,wBAAwB;;;;EAK4B,CAAC;AAClE,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,IAAI,CAAC;AAG5E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;EAelC,CAAC;AACL,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,KAG7B,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const PatchV1ProjectsByIdInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
id: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
name: Schema.optional(Schema.String),
|
|
9
|
+
settings: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
10
|
+
}).pipe(T.Http({ method: "PATCH", path: "/v1/projects/{id}" }));
|
|
11
|
+
// Output Schema
|
|
12
|
+
export const PatchV1ProjectsByIdOutput =
|
|
13
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14
|
+
data: Schema.Struct({
|
|
15
|
+
id: Schema.String,
|
|
16
|
+
type: Schema.String,
|
|
17
|
+
url: Schema.String,
|
|
18
|
+
name: Schema.String,
|
|
19
|
+
createdAt: Schema.String,
|
|
20
|
+
defaultRegion: Schema.NullOr(Schema.String),
|
|
21
|
+
workspace: Schema.Struct({
|
|
22
|
+
id: Schema.String,
|
|
23
|
+
url: Schema.String,
|
|
24
|
+
name: Schema.String,
|
|
25
|
+
}),
|
|
26
|
+
}),
|
|
27
|
+
});
|
|
28
|
+
// The operation
|
|
29
|
+
/**
|
|
30
|
+
* Update project
|
|
31
|
+
*
|
|
32
|
+
* Updates the project with the given ID.
|
|
33
|
+
*/
|
|
34
|
+
export const patchV1ProjectsById = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
35
|
+
inputSchema: PatchV1ProjectsByIdInput,
|
|
36
|
+
outputSchema: PatchV1ProjectsByIdOutput,
|
|
37
|
+
}));
|
|
38
|
+
//# sourceMappingURL=patchV1ProjectsById.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patchV1ProjectsById.js","sourceRoot":"","sources":["../../src/operations/patchV1ProjectsById.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC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AAC,GAAG,EAAE,CAAC,CAAC;IAC7E,WAAW,EAAE,wBAAwB;IACrC,YAAY,EAAE,yBAAyB;CACxC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const PostV1ConnectionsInput: Schema.Struct<{
|
|
3
|
+
readonly databaseId: Schema.String;
|
|
4
|
+
readonly name: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type PostV1ConnectionsInput = typeof PostV1ConnectionsInput.Type;
|
|
7
|
+
export declare const PostV1ConnectionsOutput: Schema.Struct<{
|
|
8
|
+
readonly data: Schema.Struct<{
|
|
9
|
+
readonly id: Schema.String;
|
|
10
|
+
readonly type: Schema.String;
|
|
11
|
+
readonly url: Schema.String;
|
|
12
|
+
readonly name: Schema.String;
|
|
13
|
+
readonly createdAt: Schema.String;
|
|
14
|
+
readonly kind: Schema.Literals<readonly ["postgres", "accelerate"]>;
|
|
15
|
+
readonly endpoints: Schema.Struct<{
|
|
16
|
+
readonly direct: Schema.optional<Schema.Struct<{
|
|
17
|
+
readonly host: Schema.String;
|
|
18
|
+
readonly port: Schema.Number;
|
|
19
|
+
}>>;
|
|
20
|
+
readonly pooled: Schema.optional<Schema.Struct<{
|
|
21
|
+
readonly host: Schema.String;
|
|
22
|
+
readonly port: Schema.Number;
|
|
23
|
+
}>>;
|
|
24
|
+
readonly accelerate: Schema.optional<Schema.Struct<{
|
|
25
|
+
readonly host: Schema.String;
|
|
26
|
+
readonly port: Schema.Number;
|
|
27
|
+
}>>;
|
|
28
|
+
}>;
|
|
29
|
+
readonly connectionString: Schema.String;
|
|
30
|
+
readonly directConnection: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
31
|
+
readonly host: Schema.String;
|
|
32
|
+
readonly pass: Schema.String;
|
|
33
|
+
readonly user: Schema.String;
|
|
34
|
+
}>>>;
|
|
35
|
+
readonly database: Schema.Struct<{
|
|
36
|
+
readonly id: Schema.String;
|
|
37
|
+
readonly url: Schema.String;
|
|
38
|
+
readonly name: Schema.String;
|
|
39
|
+
}>;
|
|
40
|
+
readonly host: Schema.NullOr<Schema.String>;
|
|
41
|
+
readonly pass: Schema.NullOr<Schema.String>;
|
|
42
|
+
readonly user: Schema.NullOr<Schema.String>;
|
|
43
|
+
}>;
|
|
44
|
+
}>;
|
|
45
|
+
export type PostV1ConnectionsOutput = typeof PostV1ConnectionsOutput.Type;
|
|
46
|
+
/**
|
|
47
|
+
* Create connection
|
|
48
|
+
*
|
|
49
|
+
* Creates a new connection for the specified database.
|
|
50
|
+
*/
|
|
51
|
+
export declare const postV1Connections: any;
|
|
52
|
+
//# sourceMappingURL=postV1Connections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1Connections.d.ts","sourceRoot":"","sources":["../../src/operations/postV1Connections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,sBAAsB;;;EAKwB,CAAC;AAC5D,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC,IAAI,CAAC;AAGxE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDhC,CAAC;AACL,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,KAG3B,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const PostV1ConnectionsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
databaseId: Schema.String,
|
|
7
|
+
name: Schema.String,
|
|
8
|
+
}).pipe(T.Http({ method: "POST", path: "/v1/connections" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const PostV1ConnectionsOutput =
|
|
11
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
12
|
+
data: Schema.Struct({
|
|
13
|
+
id: Schema.String,
|
|
14
|
+
type: Schema.String,
|
|
15
|
+
url: Schema.String,
|
|
16
|
+
name: Schema.String,
|
|
17
|
+
createdAt: Schema.String,
|
|
18
|
+
kind: Schema.Literals(["postgres", "accelerate"]),
|
|
19
|
+
endpoints: Schema.Struct({
|
|
20
|
+
direct: Schema.optional(Schema.Struct({
|
|
21
|
+
host: Schema.String,
|
|
22
|
+
port: Schema.Number,
|
|
23
|
+
})),
|
|
24
|
+
pooled: Schema.optional(Schema.Struct({
|
|
25
|
+
host: Schema.String,
|
|
26
|
+
port: Schema.Number,
|
|
27
|
+
})),
|
|
28
|
+
accelerate: Schema.optional(Schema.Struct({
|
|
29
|
+
host: Schema.String,
|
|
30
|
+
port: Schema.Number,
|
|
31
|
+
})),
|
|
32
|
+
}),
|
|
33
|
+
connectionString: Schema.String,
|
|
34
|
+
directConnection: Schema.optional(Schema.NullOr(Schema.Struct({
|
|
35
|
+
host: Schema.String,
|
|
36
|
+
pass: Schema.String,
|
|
37
|
+
user: Schema.String,
|
|
38
|
+
}))),
|
|
39
|
+
database: Schema.Struct({
|
|
40
|
+
id: Schema.String,
|
|
41
|
+
url: Schema.String,
|
|
42
|
+
name: Schema.String,
|
|
43
|
+
}),
|
|
44
|
+
host: Schema.NullOr(Schema.String),
|
|
45
|
+
pass: Schema.NullOr(Schema.String),
|
|
46
|
+
user: Schema.NullOr(Schema.String),
|
|
47
|
+
}),
|
|
48
|
+
});
|
|
49
|
+
// The operation
|
|
50
|
+
/**
|
|
51
|
+
* Create connection
|
|
52
|
+
*
|
|
53
|
+
* Creates a new connection for the specified database.
|
|
54
|
+
*/
|
|
55
|
+
export const postV1Connections = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
56
|
+
inputSchema: PostV1ConnectionsInput,
|
|
57
|
+
outputSchema: PostV1ConnectionsOutput,
|
|
58
|
+
}));
|
|
59
|
+
//# sourceMappingURL=postV1Connections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1Connections.js","sourceRoot":"","sources":["../../src/operations/postV1Connections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAC7E;IACE,UAAU,EAAE,MAAM,CAAC,MAAM;IACzB,IAAI,EAAE,MAAM,CAAC,MAAM;CACpB,CACF,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC;AAG5D,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB;AAClC,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,CAAC,QAAQ,CACrB,MAAM,CAAC,MAAM,CAAC;gBACZ,IAAI,EAAE,MAAM,CAAC,MAAM;gBACnB,IAAI,EAAE,MAAM,CAAC,MAAM;aACpB,CAAC,CACH;YACD,MAAM,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from "effect/Schema";
|
|
2
|
+
export declare const PostV1DatabasesInput: Schema.Struct<{
|
|
3
|
+
readonly projectId: Schema.String;
|
|
4
|
+
readonly region: Schema.optional<Schema.Literals<readonly ["us-east-1", "us-west-1", "eu-west-3", "eu-central-1", "ap-northeast-1", "ap-southeast-1", "inherit"]>>;
|
|
5
|
+
readonly name: Schema.optional<Schema.String>;
|
|
6
|
+
readonly isDefault: Schema.optional<Schema.Boolean>;
|
|
7
|
+
}>;
|
|
8
|
+
export type PostV1DatabasesInput = typeof PostV1DatabasesInput.Type;
|
|
9
|
+
export declare const PostV1DatabasesOutput: Schema.Struct<{
|
|
10
|
+
readonly data: Schema.Struct<{
|
|
11
|
+
readonly id: Schema.String;
|
|
12
|
+
readonly type: Schema.String;
|
|
13
|
+
readonly url: Schema.String;
|
|
14
|
+
readonly name: Schema.String;
|
|
15
|
+
readonly status: Schema.Literals<readonly ["failure", "provisioning", "ready", "recovering"]>;
|
|
16
|
+
readonly createdAt: Schema.String;
|
|
17
|
+
readonly isDefault: Schema.Boolean;
|
|
18
|
+
readonly defaultConnectionId: Schema.NullOr<Schema.String>;
|
|
19
|
+
readonly connections: Schema.$Array<Schema.Struct<{
|
|
20
|
+
readonly id: Schema.String;
|
|
21
|
+
readonly type: Schema.String;
|
|
22
|
+
readonly url: Schema.String;
|
|
23
|
+
readonly name: Schema.String;
|
|
24
|
+
readonly createdAt: Schema.String;
|
|
25
|
+
readonly kind: Schema.Literals<readonly ["postgres", "accelerate"]>;
|
|
26
|
+
readonly endpoints: Schema.Struct<{
|
|
27
|
+
readonly direct: Schema.optional<Schema.Struct<{
|
|
28
|
+
readonly host: Schema.String;
|
|
29
|
+
readonly port: Schema.Number;
|
|
30
|
+
}>>;
|
|
31
|
+
readonly pooled: Schema.optional<Schema.Struct<{
|
|
32
|
+
readonly host: Schema.String;
|
|
33
|
+
readonly port: Schema.Number;
|
|
34
|
+
}>>;
|
|
35
|
+
readonly accelerate: Schema.optional<Schema.Struct<{
|
|
36
|
+
readonly host: Schema.String;
|
|
37
|
+
readonly port: Schema.Number;
|
|
38
|
+
}>>;
|
|
39
|
+
}>;
|
|
40
|
+
readonly directConnection: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
41
|
+
readonly host: Schema.String;
|
|
42
|
+
readonly pass: Schema.String;
|
|
43
|
+
readonly user: Schema.String;
|
|
44
|
+
}>>>;
|
|
45
|
+
readonly database: Schema.Struct<{
|
|
46
|
+
readonly id: Schema.String;
|
|
47
|
+
readonly url: Schema.String;
|
|
48
|
+
readonly name: Schema.String;
|
|
49
|
+
}>;
|
|
50
|
+
}>>;
|
|
51
|
+
readonly project: Schema.Struct<{
|
|
52
|
+
readonly id: Schema.String;
|
|
53
|
+
readonly url: Schema.String;
|
|
54
|
+
readonly name: Schema.String;
|
|
55
|
+
}>;
|
|
56
|
+
readonly region: Schema.NullOr<Schema.Struct<{
|
|
57
|
+
readonly id: Schema.String;
|
|
58
|
+
readonly name: Schema.String;
|
|
59
|
+
}>>;
|
|
60
|
+
}>;
|
|
61
|
+
}>;
|
|
62
|
+
export type PostV1DatabasesOutput = typeof PostV1DatabasesOutput.Type;
|
|
63
|
+
/**
|
|
64
|
+
* Create database
|
|
65
|
+
*
|
|
66
|
+
* Creates a new database in the specified project.
|
|
67
|
+
*/
|
|
68
|
+
export declare const postV1Databases: any;
|
|
69
|
+
//# sourceMappingURL=postV1Databases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1Databases.d.ts","sourceRoot":"","sources":["../../src/operations/postV1Databases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,oBAAoB;;;;;EAeyB,CAAC;AAC3D,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkEhC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAGtE;;;;GAIG;AACH,eAAO,MAAM,eAAe,KAGzB,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const PostV1DatabasesInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
projectId: Schema.String,
|
|
7
|
+
region: Schema.optional(Schema.Literals([
|
|
8
|
+
"us-east-1",
|
|
9
|
+
"us-west-1",
|
|
10
|
+
"eu-west-3",
|
|
11
|
+
"eu-central-1",
|
|
12
|
+
"ap-northeast-1",
|
|
13
|
+
"ap-southeast-1",
|
|
14
|
+
"inherit",
|
|
15
|
+
])),
|
|
16
|
+
name: Schema.optional(Schema.String),
|
|
17
|
+
isDefault: Schema.optional(Schema.Boolean),
|
|
18
|
+
}).pipe(T.Http({ method: "POST", path: "/v1/databases" }));
|
|
19
|
+
// Output Schema
|
|
20
|
+
export const PostV1DatabasesOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
|
+
data: Schema.Struct({
|
|
22
|
+
id: Schema.String,
|
|
23
|
+
type: Schema.String,
|
|
24
|
+
url: Schema.String,
|
|
25
|
+
name: Schema.String,
|
|
26
|
+
status: Schema.Literals(["failure", "provisioning", "ready", "recovering"]),
|
|
27
|
+
createdAt: Schema.String,
|
|
28
|
+
isDefault: Schema.Boolean,
|
|
29
|
+
defaultConnectionId: Schema.NullOr(Schema.String),
|
|
30
|
+
connections: Schema.Array(Schema.Struct({
|
|
31
|
+
id: Schema.String,
|
|
32
|
+
type: Schema.String,
|
|
33
|
+
url: Schema.String,
|
|
34
|
+
name: Schema.String,
|
|
35
|
+
createdAt: Schema.String,
|
|
36
|
+
kind: Schema.Literals(["postgres", "accelerate"]),
|
|
37
|
+
endpoints: Schema.Struct({
|
|
38
|
+
direct: Schema.optional(Schema.Struct({
|
|
39
|
+
host: Schema.String,
|
|
40
|
+
port: Schema.Number,
|
|
41
|
+
})),
|
|
42
|
+
pooled: Schema.optional(Schema.Struct({
|
|
43
|
+
host: Schema.String,
|
|
44
|
+
port: Schema.Number,
|
|
45
|
+
})),
|
|
46
|
+
accelerate: Schema.optional(Schema.Struct({
|
|
47
|
+
host: Schema.String,
|
|
48
|
+
port: Schema.Number,
|
|
49
|
+
})),
|
|
50
|
+
}),
|
|
51
|
+
directConnection: Schema.optional(Schema.NullOr(Schema.Struct({
|
|
52
|
+
host: Schema.String,
|
|
53
|
+
pass: Schema.String,
|
|
54
|
+
user: Schema.String,
|
|
55
|
+
}))),
|
|
56
|
+
database: Schema.Struct({
|
|
57
|
+
id: Schema.String,
|
|
58
|
+
url: Schema.String,
|
|
59
|
+
name: Schema.String,
|
|
60
|
+
}),
|
|
61
|
+
})),
|
|
62
|
+
project: Schema.Struct({
|
|
63
|
+
id: Schema.String,
|
|
64
|
+
url: Schema.String,
|
|
65
|
+
name: Schema.String,
|
|
66
|
+
}),
|
|
67
|
+
region: Schema.NullOr(Schema.Struct({
|
|
68
|
+
id: Schema.String,
|
|
69
|
+
name: Schema.String,
|
|
70
|
+
})),
|
|
71
|
+
}),
|
|
72
|
+
});
|
|
73
|
+
// The operation
|
|
74
|
+
/**
|
|
75
|
+
* Create database
|
|
76
|
+
*
|
|
77
|
+
* Creates a new database in the specified project.
|
|
78
|
+
*/
|
|
79
|
+
export const postV1Databases = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
80
|
+
inputSchema: PostV1DatabasesInput,
|
|
81
|
+
outputSchema: PostV1DatabasesOutput,
|
|
82
|
+
}));
|
|
83
|
+
//# sourceMappingURL=postV1Databases.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1Databases.js","sourceRoot":"","sources":["../../src/operations/postV1Databases.ts"],"names":[],"mappings":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AC,MAAM;aACpB,CAAC;SACH,CAAC,CACH;QACD,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC;YACrB,EAAE,EAAE,MAAM,CAAC,MAAM;YACjB,GAAG,EAAE,MAAM,CAAC,MAAM;YAClB,IAAI,EAAE,MAAM,CAAC,MAAM;SACpB,CAAC;QACF,MAAM,EAAE,MAAM,CAAC,MAAM,CACnB,MAAM,CAAC,MAAM,CAAC;YACZ,EAAE,EAAE,MAAM,CAAC,MAAM;YACjB,IAAI,EAAE,MAAM,CAAC,MAAM;SACpB,CAAC,CACH;KACF,CAAC;CACH,CAAC,CAAC;AAGH,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IACzE,WAAW,EAAE,oBAAoB;IACjC,YAAY,EAAE,qBAAqB;CACpC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const PostV1DatabasesByDatabaseIdConnectionsInput: Schema.Struct<{
|
|
3
|
+
readonly databaseId: Schema.String;
|
|
4
|
+
readonly name: Schema.String;
|
|
5
|
+
}>;
|
|
6
|
+
export type PostV1DatabasesByDatabaseIdConnectionsInput = typeof PostV1DatabasesByDatabaseIdConnectionsInput.Type;
|
|
7
|
+
export declare const PostV1DatabasesByDatabaseIdConnectionsOutput: Schema.Struct<{
|
|
8
|
+
readonly data: Schema.Struct<{
|
|
9
|
+
readonly id: Schema.String;
|
|
10
|
+
readonly type: Schema.String;
|
|
11
|
+
readonly url: Schema.String;
|
|
12
|
+
readonly name: Schema.String;
|
|
13
|
+
readonly createdAt: Schema.String;
|
|
14
|
+
readonly kind: Schema.Literals<readonly ["postgres", "accelerate"]>;
|
|
15
|
+
readonly endpoints: Schema.Struct<{
|
|
16
|
+
readonly direct: Schema.optional<Schema.Struct<{
|
|
17
|
+
readonly host: Schema.String;
|
|
18
|
+
readonly port: Schema.Number;
|
|
19
|
+
readonly connectionString: Schema.String;
|
|
20
|
+
}>>;
|
|
21
|
+
readonly pooled: Schema.optional<Schema.Struct<{
|
|
22
|
+
readonly host: Schema.String;
|
|
23
|
+
readonly port: Schema.Number;
|
|
24
|
+
readonly connectionString: Schema.String;
|
|
25
|
+
}>>;
|
|
26
|
+
readonly accelerate: Schema.optional<Schema.Struct<{
|
|
27
|
+
readonly host: Schema.String;
|
|
28
|
+
readonly port: Schema.Number;
|
|
29
|
+
readonly connectionString: Schema.String;
|
|
30
|
+
}>>;
|
|
31
|
+
}>;
|
|
32
|
+
readonly connectionString: Schema.String;
|
|
33
|
+
readonly directConnection: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
34
|
+
readonly host: Schema.String;
|
|
35
|
+
readonly pass: Schema.String;
|
|
36
|
+
readonly user: Schema.String;
|
|
37
|
+
}>>>;
|
|
38
|
+
readonly database: Schema.Struct<{
|
|
39
|
+
readonly id: Schema.String;
|
|
40
|
+
readonly url: Schema.String;
|
|
41
|
+
readonly name: Schema.String;
|
|
42
|
+
}>;
|
|
43
|
+
readonly host: Schema.NullOr<Schema.String>;
|
|
44
|
+
readonly pass: Schema.NullOr<Schema.String>;
|
|
45
|
+
readonly user: Schema.NullOr<Schema.String>;
|
|
46
|
+
}>;
|
|
47
|
+
}>;
|
|
48
|
+
export type PostV1DatabasesByDatabaseIdConnectionsOutput = typeof PostV1DatabasesByDatabaseIdConnectionsOutput.Type;
|
|
49
|
+
/**
|
|
50
|
+
* Create database connection string
|
|
51
|
+
*
|
|
52
|
+
* Creates a new connection string for the given database.
|
|
53
|
+
*/
|
|
54
|
+
export declare const postV1DatabasesByDatabaseIdConnections: any;
|
|
55
|
+
//# sourceMappingURL=postV1DatabasesByDatabaseIdConnections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1DatabasesByDatabaseIdConnections.d.ts","sourceRoot":"","sources":["../../src/operations/postV1DatabasesByDatabaseIdConnections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,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"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const PostV1DatabasesByDatabaseIdConnectionsInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
databaseId: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
name: Schema.String,
|
|
9
|
+
}).pipe(T.Http({ method: "POST", path: "/v1/databases/{databaseId}/connections" }));
|
|
10
|
+
// Output Schema
|
|
11
|
+
export const PostV1DatabasesByDatabaseIdConnectionsOutput =
|
|
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: Schema.String,
|
|
25
|
+
})),
|
|
26
|
+
pooled: Schema.optional(Schema.Struct({
|
|
27
|
+
host: Schema.String,
|
|
28
|
+
port: Schema.Number,
|
|
29
|
+
connectionString: Schema.String,
|
|
30
|
+
})),
|
|
31
|
+
accelerate: Schema.optional(Schema.Struct({
|
|
32
|
+
host: Schema.String,
|
|
33
|
+
port: Schema.Number,
|
|
34
|
+
connectionString: Schema.String,
|
|
35
|
+
})),
|
|
36
|
+
}),
|
|
37
|
+
connectionString: Schema.String,
|
|
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
|
+
* Create database connection string
|
|
56
|
+
*
|
|
57
|
+
* Creates a new connection string for the given database.
|
|
58
|
+
*/
|
|
59
|
+
export const postV1DatabasesByDatabaseIdConnections =
|
|
60
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
61
|
+
inputSchema: PostV1DatabasesByDatabaseIdConnectionsInput,
|
|
62
|
+
outputSchema: PostV1DatabasesByDatabaseIdConnectionsOutput,
|
|
63
|
+
}));
|
|
64
|
+
//# sourceMappingURL=postV1DatabasesByDatabaseIdConnections.js.map
|
|
@@ -0,0 +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,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abase: Schema.optional<Schema.Boolean>;
|
|
4
|
+
readonly name: Schema.optional<Schema.String>;
|
|
5
|
+
readonly region: 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 PostV1ProjectsInput = typeof PostV1ProjectsInput.Type;
|
|
8
|
+
export declare const PostV1ProjectsOutput: 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 createdAt: Schema.String;
|
|
15
|
+
readonly defaultRegion: Schema.NullOr<Schema.String>;
|
|
16
|
+
readonly workspace: Schema.Struct<{
|
|
17
|
+
readonly id: Schema.String;
|
|
18
|
+
readonly url: Schema.String;
|
|
19
|
+
readonly name: Schema.String;
|
|
20
|
+
}>;
|
|
21
|
+
readonly database: Schema.NullOr<Schema.Struct<{
|
|
22
|
+
readonly id: Schema.String;
|
|
23
|
+
readonly type: Schema.String;
|
|
24
|
+
readonly url: Schema.String;
|
|
25
|
+
readonly name: Schema.String;
|
|
26
|
+
readonly status: Schema.Literals<readonly ["provisioning", "ready"]>;
|
|
27
|
+
readonly createdAt: Schema.String;
|
|
28
|
+
readonly isDefault: Schema.Boolean;
|
|
29
|
+
readonly defaultConnectionId: Schema.NullOr<Schema.String>;
|
|
30
|
+
readonly connections: Schema.$Array<Schema.Struct<{
|
|
31
|
+
readonly id: Schema.String;
|
|
32
|
+
readonly type: Schema.String;
|
|
33
|
+
readonly url: Schema.String;
|
|
34
|
+
readonly name: Schema.String;
|
|
35
|
+
readonly createdAt: Schema.String;
|
|
36
|
+
readonly kind: Schema.Literals<readonly ["postgres", "accelerate"]>;
|
|
37
|
+
readonly endpoints: Schema.Struct<{
|
|
38
|
+
readonly direct: Schema.optional<Schema.Struct<{
|
|
39
|
+
readonly host: Schema.String;
|
|
40
|
+
readonly port: Schema.Number;
|
|
41
|
+
readonly connectionString: Schema.optional<Schema.String>;
|
|
42
|
+
}>>;
|
|
43
|
+
readonly pooled: Schema.optional<Schema.Struct<{
|
|
44
|
+
readonly host: Schema.String;
|
|
45
|
+
readonly port: Schema.Number;
|
|
46
|
+
readonly connectionString: Schema.optional<Schema.String>;
|
|
47
|
+
}>>;
|
|
48
|
+
readonly accelerate: Schema.optional<Schema.Struct<{
|
|
49
|
+
readonly host: Schema.String;
|
|
50
|
+
readonly port: Schema.Number;
|
|
51
|
+
readonly connectionString: Schema.optional<Schema.String>;
|
|
52
|
+
}>>;
|
|
53
|
+
}>;
|
|
54
|
+
readonly directConnection: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
55
|
+
readonly host: Schema.String;
|
|
56
|
+
readonly pass: Schema.String;
|
|
57
|
+
readonly user: Schema.String;
|
|
58
|
+
}>>>;
|
|
59
|
+
readonly database: Schema.Struct<{
|
|
60
|
+
readonly id: Schema.String;
|
|
61
|
+
readonly url: Schema.String;
|
|
62
|
+
readonly name: Schema.String;
|
|
63
|
+
}>;
|
|
64
|
+
}>>;
|
|
65
|
+
readonly region: Schema.Struct<{
|
|
66
|
+
readonly id: Schema.String;
|
|
67
|
+
readonly name: Schema.String;
|
|
68
|
+
}>;
|
|
69
|
+
readonly apiKeys: Schema.$Array<Schema.Struct<{
|
|
70
|
+
readonly id: Schema.String;
|
|
71
|
+
readonly type: Schema.String;
|
|
72
|
+
readonly url: Schema.String;
|
|
73
|
+
readonly name: Schema.String;
|
|
74
|
+
readonly createdAt: Schema.String;
|
|
75
|
+
readonly kind: Schema.Literals<readonly ["postgres", "accelerate"]>;
|
|
76
|
+
readonly endpoints: Schema.Struct<{
|
|
77
|
+
readonly direct: Schema.optional<Schema.Struct<{
|
|
78
|
+
readonly host: Schema.String;
|
|
79
|
+
readonly port: Schema.Number;
|
|
80
|
+
}>>;
|
|
81
|
+
readonly pooled: Schema.optional<Schema.Struct<{
|
|
82
|
+
readonly host: Schema.String;
|
|
83
|
+
readonly port: Schema.Number;
|
|
84
|
+
}>>;
|
|
85
|
+
readonly accelerate: Schema.optional<Schema.Struct<{
|
|
86
|
+
readonly host: Schema.String;
|
|
87
|
+
readonly port: Schema.Number;
|
|
88
|
+
}>>;
|
|
89
|
+
}>;
|
|
90
|
+
readonly connectionString: Schema.String;
|
|
91
|
+
readonly directConnection: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
92
|
+
readonly host: Schema.String;
|
|
93
|
+
readonly pass: Schema.String;
|
|
94
|
+
readonly user: Schema.String;
|
|
95
|
+
}>>>;
|
|
96
|
+
}>>;
|
|
97
|
+
readonly connectionString: Schema.NullOr<Schema.String>;
|
|
98
|
+
readonly directConnection: Schema.NullOr<Schema.Struct<{
|
|
99
|
+
readonly host: Schema.String;
|
|
100
|
+
readonly pass: Schema.String;
|
|
101
|
+
readonly user: Schema.String;
|
|
102
|
+
}>>;
|
|
103
|
+
}>>;
|
|
104
|
+
}>;
|
|
105
|
+
}>;
|
|
106
|
+
export type PostV1ProjectsOutput = typeof PostV1ProjectsOutput.Type;
|
|
107
|
+
/**
|
|
108
|
+
* Create project with a postgres database
|
|
109
|
+
*
|
|
110
|
+
* Creates a new project with a postgres database.
|
|
111
|
+
*/
|
|
112
|
+
export declare const postV1Projects: any;
|
|
113
|
+
//# sourceMappingURL=postV1Projects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1Projects.d.ts","sourceRoot":"","sources":["../../src/operations/postV1Projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,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"}
|