@distilled.cloud/prisma-postgres 0.19.1 → 0.20.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/credentials.d.ts +1 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +2 -2
- package/lib/credentials.js.map +1 -1
- package/lib/operations/getV1ComputeServices.d.ts +6 -6
- package/lib/operations/getV1ComputeServicesByComputeServiceId.d.ts +5 -5
- package/lib/operations/getV1ComputeServicesByComputeServiceIdVersions.d.ts +3 -3
- package/lib/operations/getV1ComputeServicesVersionsByVersionId.d.ts +7 -7
- package/lib/operations/getV1ComputeServicesVersionsByVersionIdLogs.d.ts +3 -3
- package/lib/operations/getV1Connections.d.ts +20 -20
- package/lib/operations/getV1ConnectionsById.d.ts +18 -18
- package/lib/operations/getV1Databases.d.ts +28 -28
- package/lib/operations/getV1DatabasesByDatabaseId.d.ts +27 -27
- package/lib/operations/getV1DatabasesByDatabaseIdBackups.d.ts +1 -1
- package/lib/operations/getV1DatabasesByDatabaseIdConnections.d.ts +20 -20
- package/lib/operations/getV1DatabasesByDatabaseIdUsage.d.ts +8 -8
- package/lib/operations/getV1Integrations.d.ts +8 -8
- package/lib/operations/getV1IntegrationsById.d.ts +7 -7
- package/lib/operations/getV1Projects.d.ts +5 -5
- package/lib/operations/getV1ProjectsById.d.ts +4 -4
- package/lib/operations/getV1ProjectsByProjectIdComputeServices.d.ts +7 -7
- package/lib/operations/getV1ProjectsByProjectIdDatabases.d.ts +29 -29
- package/lib/operations/getV1Regions.d.ts +1 -1
- package/lib/operations/getV1RegionsAccelerate.d.ts +1 -1
- package/lib/operations/getV1RegionsPostgres.d.ts +1 -1
- package/lib/operations/getV1Versions.d.ts +4 -4
- package/lib/operations/getV1VersionsByVersionId.d.ts +7 -7
- package/lib/operations/getV1Workspaces.d.ts +3 -3
- package/lib/operations/getV1WorkspacesById.d.ts +2 -2
- package/lib/operations/getV1WorkspacesByWorkspaceIdIntegrations.d.ts +9 -9
- package/lib/operations/patchV1ComputeServicesByComputeServiceId.d.ts +5 -5
- package/lib/operations/patchV1DatabasesByDatabaseId.d.ts +27 -27
- package/lib/operations/patchV1ProjectsById.d.ts +4 -4
- package/lib/operations/postV1ComputeServices.d.ts +6 -6
- package/lib/operations/postV1ComputeServicesByComputeServiceIdVersions.d.ts +2 -2
- package/lib/operations/postV1Connections.d.ts +22 -22
- package/lib/operations/postV1ConnectionsByIdRotate.d.ts +22 -22
- package/lib/operations/postV1Databases.d.ts +32 -32
- package/lib/operations/postV1DatabasesByDatabaseIdConnections.d.ts +22 -22
- package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.d.ts +32 -32
- package/lib/operations/postV1Projects.d.ts +58 -58
- package/lib/operations/postV1ProjectsByProjectIdComputeServices.d.ts +6 -6
- package/lib/operations/postV1ProjectsByProjectIdDatabases.d.ts +58 -58
- package/lib/operations/postV1Versions.d.ts +3 -3
- package/package.json +3 -3
- package/src/credentials.ts +2 -2
package/lib/credentials.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
1
2
|
import * as Context from "effect/Context";
|
|
2
3
|
import * as Layer from "effect/Layer";
|
|
3
4
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
5
5
|
export declare const DEFAULT_API_BASE_URL = "https://api.prisma.io";
|
|
6
6
|
export interface Config {
|
|
7
7
|
readonly apiToken: Redacted.Redacted<string>;
|
package/lib/credentials.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAE1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAE5D,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;;AAED,qBAAa,WAAY,SAAQ,gBAEhC;CAAG;AAMJ,eAAO,MAAM,kBAAkB,8CAc9B,CAAC"}
|
package/lib/credentials.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
1
2
|
import * as EffectConfig from "effect/Config";
|
|
2
3
|
import * as Context from "effect/Context";
|
|
3
4
|
import * as Effect from "effect/Effect";
|
|
4
5
|
import * as Layer from "effect/Layer";
|
|
5
6
|
import * as Redacted from "effect/Redacted";
|
|
6
|
-
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
7
7
|
export const DEFAULT_API_BASE_URL = "https://api.prisma.io";
|
|
8
8
|
export class Credentials extends Context.Service()("PrismaPostgresCredentials") {
|
|
9
9
|
}
|
|
10
10
|
const envConfig = EffectConfig.all({
|
|
11
11
|
apiToken: EffectConfig.string("PRISMA_POSTGRES_API_TOKEN"),
|
|
12
12
|
});
|
|
13
|
-
export const CredentialsFromEnv = Layer.effect(Credentials, envConfig.
|
|
13
|
+
export const CredentialsFromEnv = Layer.effect(Credentials, envConfig.pipe(Effect.mapError(() => new ConfigError({
|
|
14
14
|
message: "PRISMA_POSTGRES_API_TOKEN environment variable is required",
|
|
15
15
|
})), Effect.map(({ apiToken }) => ({
|
|
16
16
|
apiToken: Redacted.make(apiToken),
|
package/lib/credentials.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,MAAM,oBAAoB,GAAG,uBAAuB,CAAC;AAO5D,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAAuB,CACrE,2BAA2B,CAC5B;CAAG;AAEJ,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC;IACjC,QAAQ,EAAE,YAAY,CAAC,MAAM,CAAC,2BAA2B,CAAC;CAC3D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAC5C,WAAW,EACX,SAAS,CAAC,IAAI,CACZ,MAAM,CAAC,QAAQ,CACb,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;IACd,OAAO,EAAE,4DAA4D;CACtE,CAAC,CACL,EACD,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5B,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;IACjC,UAAU,EAAE,oBAAoB;CACjC,CAAC,CAAC,CACJ,CACF,CAAC"}
|
|
@@ -39,22 +39,22 @@ export declare const getV1ComputeServices: import("@distilled.cloud/core/client"
|
|
|
39
39
|
readonly projectId?: string | undefined;
|
|
40
40
|
}, {
|
|
41
41
|
readonly data: readonly {
|
|
42
|
-
readonly createdAt: string;
|
|
43
42
|
readonly id: string;
|
|
44
|
-
readonly
|
|
43
|
+
readonly type: string;
|
|
44
|
+
readonly url: string;
|
|
45
45
|
readonly name: string;
|
|
46
|
-
readonly projectId: string;
|
|
47
46
|
readonly region: {
|
|
48
47
|
readonly id: string;
|
|
49
48
|
readonly name: string;
|
|
50
49
|
};
|
|
50
|
+
readonly projectId: string;
|
|
51
|
+
readonly latestVersionId: string | null;
|
|
51
52
|
readonly serviceEndpointDomain: string;
|
|
52
|
-
readonly
|
|
53
|
-
readonly url: string;
|
|
53
|
+
readonly createdAt: string;
|
|
54
54
|
}[];
|
|
55
55
|
readonly pagination: {
|
|
56
|
-
readonly hasMore: boolean;
|
|
57
56
|
readonly nextCursor: string | null;
|
|
57
|
+
readonly hasMore: boolean;
|
|
58
58
|
};
|
|
59
59
|
}, Forbidden | UnprocessableEntity, any>;
|
|
60
60
|
//# sourceMappingURL=getV1ComputeServices.d.ts.map
|
|
@@ -31,18 +31,18 @@ export declare const getV1ComputeServicesByComputeServiceId: import("@distilled.
|
|
|
31
31
|
readonly computeServiceId: string;
|
|
32
32
|
}, {
|
|
33
33
|
readonly data: {
|
|
34
|
-
readonly createdAt: string;
|
|
35
34
|
readonly id: string;
|
|
36
|
-
readonly
|
|
35
|
+
readonly type: string;
|
|
36
|
+
readonly url: string;
|
|
37
37
|
readonly name: string;
|
|
38
|
-
readonly projectId: string;
|
|
39
38
|
readonly region: {
|
|
40
39
|
readonly id: string;
|
|
41
40
|
readonly name: string;
|
|
42
41
|
};
|
|
42
|
+
readonly projectId: string;
|
|
43
|
+
readonly latestVersionId: string | null;
|
|
43
44
|
readonly serviceEndpointDomain: string;
|
|
44
|
-
readonly
|
|
45
|
-
readonly url: string;
|
|
45
|
+
readonly createdAt: string;
|
|
46
46
|
};
|
|
47
47
|
}, Forbidden | NotFound, any>;
|
|
48
48
|
//# sourceMappingURL=getV1ComputeServicesByComputeServiceId.d.ts.map
|
|
@@ -32,15 +32,15 @@ export declare const getV1ComputeServicesByComputeServiceIdVersions: import("@di
|
|
|
32
32
|
readonly limit?: number | undefined;
|
|
33
33
|
}, {
|
|
34
34
|
readonly data: readonly {
|
|
35
|
-
readonly createdAt: string;
|
|
36
|
-
readonly foundryVersionId: string;
|
|
37
35
|
readonly id: string;
|
|
38
36
|
readonly type: string;
|
|
39
37
|
readonly url: string;
|
|
38
|
+
readonly foundryVersionId: string;
|
|
39
|
+
readonly createdAt: string;
|
|
40
40
|
}[];
|
|
41
41
|
readonly pagination: {
|
|
42
|
-
readonly hasMore: boolean;
|
|
43
42
|
readonly nextCursor: string | null;
|
|
43
|
+
readonly hasMore: boolean;
|
|
44
44
|
};
|
|
45
45
|
}, Forbidden | NotFound, any>;
|
|
46
46
|
//# sourceMappingURL=getV1ComputeServicesByComputeServiceIdVersions.d.ts.map
|
|
@@ -30,19 +30,19 @@ export declare const getV1ComputeServicesVersionsByVersionId: import("@distilled
|
|
|
30
30
|
readonly versionId: string;
|
|
31
31
|
}, {
|
|
32
32
|
readonly data: {
|
|
33
|
-
readonly
|
|
33
|
+
readonly id: string;
|
|
34
|
+
readonly type: string;
|
|
35
|
+
readonly url: string;
|
|
36
|
+
readonly foundryVersionId: string;
|
|
37
|
+
readonly status: string;
|
|
38
|
+
readonly previewDomain: string | null;
|
|
34
39
|
readonly envVars?: {
|
|
35
40
|
readonly [x: string]: string;
|
|
36
41
|
} | undefined;
|
|
37
|
-
readonly foundryVersionId: string;
|
|
38
|
-
readonly id: string;
|
|
39
42
|
readonly portMapping?: {
|
|
40
43
|
readonly http?: number | undefined;
|
|
41
44
|
} | undefined;
|
|
42
|
-
readonly
|
|
43
|
-
readonly status: string;
|
|
44
|
-
readonly type: string;
|
|
45
|
-
readonly url: string;
|
|
45
|
+
readonly createdAt: string;
|
|
46
46
|
};
|
|
47
47
|
}, Forbidden | NotFound, any>;
|
|
48
48
|
//# sourceMappingURL=getV1ComputeServicesVersionsByVersionId.d.ts.map
|
|
@@ -16,9 +16,9 @@ export type GetV1ComputeServicesVersionsByVersionIdLogsOutput = typeof GetV1Comp
|
|
|
16
16
|
* Upgrades to a WebSocket connection that streams log output for the specified compute version. Each message is a JSON object with `type: "log"` (log text + byte metadata) or `type: "terminal"` (end-of-segment signal with reconnect cursor). The stream ends after 10 minutes; reconnect with the `cursor` query parameter to continue.
|
|
17
17
|
*/
|
|
18
18
|
export declare const getV1ComputeServicesVersionsByVersionIdLogs: import("@distilled.cloud/core/client").OperationMethod<{
|
|
19
|
-
readonly cursor?: string | undefined;
|
|
20
|
-
readonly from_start?: "false" | "true" | undefined;
|
|
21
|
-
readonly tail?: number | undefined;
|
|
22
19
|
readonly versionId: string;
|
|
20
|
+
readonly tail?: number | undefined;
|
|
21
|
+
readonly from_start?: "false" | "true" | undefined;
|
|
22
|
+
readonly cursor?: string | undefined;
|
|
23
23
|
}, void, Forbidden | NotFound, any>;
|
|
24
24
|
//# sourceMappingURL=getV1ComputeServicesVersionsByVersionIdLogs.d.ts.map
|
|
@@ -51,44 +51,44 @@ export type GetV1ConnectionsOutput = typeof GetV1ConnectionsOutput.Type;
|
|
|
51
51
|
*/
|
|
52
52
|
export declare const getV1Connections: import("@distilled.cloud/core/client").OperationMethod<{
|
|
53
53
|
readonly cursor?: string | undefined;
|
|
54
|
-
readonly databaseId?: string | undefined;
|
|
55
54
|
readonly limit?: number | undefined;
|
|
55
|
+
readonly databaseId?: string | undefined;
|
|
56
56
|
}, {
|
|
57
57
|
readonly data: readonly {
|
|
58
|
+
readonly id: string;
|
|
59
|
+
readonly type: string;
|
|
60
|
+
readonly url: string;
|
|
61
|
+
readonly name: string;
|
|
58
62
|
readonly createdAt: string;
|
|
59
|
-
readonly
|
|
60
|
-
readonly id: string;
|
|
61
|
-
readonly name: string;
|
|
62
|
-
readonly url: string;
|
|
63
|
-
};
|
|
64
|
-
readonly directConnection?: {
|
|
65
|
-
readonly host: string;
|
|
66
|
-
readonly pass: string;
|
|
67
|
-
readonly user: string;
|
|
68
|
-
} | null | undefined;
|
|
63
|
+
readonly kind: "accelerate" | "postgres";
|
|
69
64
|
readonly endpoints: {
|
|
70
|
-
readonly
|
|
65
|
+
readonly direct?: {
|
|
71
66
|
readonly host: string;
|
|
72
67
|
readonly port: number;
|
|
73
68
|
} | undefined;
|
|
74
|
-
readonly
|
|
69
|
+
readonly pooled?: {
|
|
75
70
|
readonly host: string;
|
|
76
71
|
readonly port: number;
|
|
77
72
|
} | undefined;
|
|
78
|
-
readonly
|
|
73
|
+
readonly accelerate?: {
|
|
79
74
|
readonly host: string;
|
|
80
75
|
readonly port: number;
|
|
81
76
|
} | undefined;
|
|
82
77
|
};
|
|
83
|
-
readonly
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
78
|
+
readonly directConnection?: {
|
|
79
|
+
readonly host: string;
|
|
80
|
+
readonly pass: string;
|
|
81
|
+
readonly user: string;
|
|
82
|
+
} | null | undefined;
|
|
83
|
+
readonly database: {
|
|
84
|
+
readonly id: string;
|
|
85
|
+
readonly url: string;
|
|
86
|
+
readonly name: string;
|
|
87
|
+
};
|
|
88
88
|
}[];
|
|
89
89
|
readonly pagination: {
|
|
90
|
-
readonly hasMore: boolean;
|
|
91
90
|
readonly nextCursor: string | null;
|
|
91
|
+
readonly hasMore: boolean;
|
|
92
92
|
};
|
|
93
93
|
}, never, any>;
|
|
94
94
|
//# sourceMappingURL=getV1Connections.d.ts.map
|
|
@@ -48,36 +48,36 @@ export declare const getV1ConnectionsById: import("@distilled.cloud/core/client"
|
|
|
48
48
|
readonly id: string;
|
|
49
49
|
}, {
|
|
50
50
|
readonly data: {
|
|
51
|
+
readonly id: string;
|
|
52
|
+
readonly type: string;
|
|
53
|
+
readonly url: string;
|
|
54
|
+
readonly name: string;
|
|
51
55
|
readonly createdAt: string;
|
|
52
|
-
readonly
|
|
53
|
-
readonly id: string;
|
|
54
|
-
readonly name: string;
|
|
55
|
-
readonly url: string;
|
|
56
|
-
};
|
|
57
|
-
readonly directConnection?: {
|
|
58
|
-
readonly host: string;
|
|
59
|
-
readonly pass: string;
|
|
60
|
-
readonly user: string;
|
|
61
|
-
} | null | undefined;
|
|
56
|
+
readonly kind: "accelerate" | "postgres";
|
|
62
57
|
readonly endpoints: {
|
|
63
|
-
readonly
|
|
58
|
+
readonly direct?: {
|
|
64
59
|
readonly host: string;
|
|
65
60
|
readonly port: number;
|
|
66
61
|
} | undefined;
|
|
67
|
-
readonly
|
|
62
|
+
readonly pooled?: {
|
|
68
63
|
readonly host: string;
|
|
69
64
|
readonly port: number;
|
|
70
65
|
} | undefined;
|
|
71
|
-
readonly
|
|
66
|
+
readonly accelerate?: {
|
|
72
67
|
readonly host: string;
|
|
73
68
|
readonly port: number;
|
|
74
69
|
} | undefined;
|
|
75
70
|
};
|
|
76
|
-
readonly
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
readonly directConnection?: {
|
|
72
|
+
readonly host: string;
|
|
73
|
+
readonly pass: string;
|
|
74
|
+
readonly user: string;
|
|
75
|
+
} | null | undefined;
|
|
76
|
+
readonly database: {
|
|
77
|
+
readonly id: string;
|
|
78
|
+
readonly url: string;
|
|
79
|
+
readonly name: string;
|
|
80
|
+
};
|
|
81
81
|
};
|
|
82
82
|
}, NotFound | UnprocessableEntity, any>;
|
|
83
83
|
//# sourceMappingURL=getV1ConnectionsById.d.ts.map
|
|
@@ -76,60 +76,60 @@ export declare const getV1Databases: import("@distilled.cloud/core/client").Oper
|
|
|
76
76
|
readonly projectId?: string | undefined;
|
|
77
77
|
}, {
|
|
78
78
|
readonly data: readonly {
|
|
79
|
+
readonly id: string;
|
|
80
|
+
readonly type: string;
|
|
81
|
+
readonly url: string;
|
|
82
|
+
readonly name: string;
|
|
83
|
+
readonly status: "failure" | "provisioning" | "ready" | "recovering";
|
|
84
|
+
readonly createdAt: string;
|
|
85
|
+
readonly isDefault: boolean;
|
|
86
|
+
readonly defaultConnectionId: string | null;
|
|
79
87
|
readonly connections: readonly {
|
|
88
|
+
readonly id: string;
|
|
89
|
+
readonly type: string;
|
|
90
|
+
readonly url: string;
|
|
91
|
+
readonly name: string;
|
|
80
92
|
readonly createdAt: string;
|
|
81
|
-
readonly
|
|
82
|
-
readonly id: string;
|
|
83
|
-
readonly name: string;
|
|
84
|
-
readonly url: string;
|
|
85
|
-
};
|
|
86
|
-
readonly directConnection?: {
|
|
87
|
-
readonly host: string;
|
|
88
|
-
readonly pass: string;
|
|
89
|
-
readonly user: string;
|
|
90
|
-
} | null | undefined;
|
|
93
|
+
readonly kind: "accelerate" | "postgres";
|
|
91
94
|
readonly endpoints: {
|
|
92
|
-
readonly
|
|
95
|
+
readonly direct?: {
|
|
93
96
|
readonly host: string;
|
|
94
97
|
readonly port: number;
|
|
95
98
|
} | undefined;
|
|
96
|
-
readonly
|
|
99
|
+
readonly pooled?: {
|
|
97
100
|
readonly host: string;
|
|
98
101
|
readonly port: number;
|
|
99
102
|
} | undefined;
|
|
100
|
-
readonly
|
|
103
|
+
readonly accelerate?: {
|
|
101
104
|
readonly host: string;
|
|
102
105
|
readonly port: number;
|
|
103
106
|
} | undefined;
|
|
104
107
|
};
|
|
105
|
-
readonly
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
readonly directConnection?: {
|
|
109
|
+
readonly host: string;
|
|
110
|
+
readonly pass: string;
|
|
111
|
+
readonly user: string;
|
|
112
|
+
} | null | undefined;
|
|
113
|
+
readonly database: {
|
|
114
|
+
readonly id: string;
|
|
115
|
+
readonly url: string;
|
|
116
|
+
readonly name: string;
|
|
117
|
+
};
|
|
110
118
|
}[];
|
|
111
|
-
readonly createdAt: string;
|
|
112
|
-
readonly defaultConnectionId: string | null;
|
|
113
|
-
readonly id: string;
|
|
114
|
-
readonly isDefault: boolean;
|
|
115
|
-
readonly name: string;
|
|
116
119
|
readonly project: {
|
|
117
120
|
readonly id: string;
|
|
118
|
-
readonly name: string;
|
|
119
121
|
readonly url: string;
|
|
122
|
+
readonly name: string;
|
|
120
123
|
};
|
|
121
124
|
readonly region: {
|
|
122
125
|
readonly id: string;
|
|
123
126
|
readonly name: string;
|
|
124
127
|
} | null;
|
|
125
128
|
readonly source: unknown;
|
|
126
|
-
readonly status: "failure" | "provisioning" | "ready" | "recovering";
|
|
127
|
-
readonly type: string;
|
|
128
|
-
readonly url: string;
|
|
129
129
|
}[];
|
|
130
130
|
readonly pagination: {
|
|
131
|
-
readonly hasMore: boolean;
|
|
132
131
|
readonly nextCursor: string | null;
|
|
132
|
+
readonly hasMore: boolean;
|
|
133
133
|
};
|
|
134
134
|
}, Forbidden, any>;
|
|
135
135
|
//# sourceMappingURL=getV1Databases.d.ts.map
|
|
@@ -68,56 +68,56 @@ export declare const getV1DatabasesByDatabaseId: import("@distilled.cloud/core/c
|
|
|
68
68
|
readonly databaseId: string;
|
|
69
69
|
}, {
|
|
70
70
|
readonly data: {
|
|
71
|
+
readonly id: string;
|
|
72
|
+
readonly type: string;
|
|
73
|
+
readonly url: string;
|
|
74
|
+
readonly name: string;
|
|
75
|
+
readonly status: "failure" | "provisioning" | "ready" | "recovering";
|
|
76
|
+
readonly createdAt: string;
|
|
77
|
+
readonly isDefault: boolean;
|
|
78
|
+
readonly defaultConnectionId: string | null;
|
|
71
79
|
readonly connections: readonly {
|
|
80
|
+
readonly id: string;
|
|
81
|
+
readonly type: string;
|
|
82
|
+
readonly url: string;
|
|
83
|
+
readonly name: string;
|
|
72
84
|
readonly createdAt: string;
|
|
73
|
-
readonly
|
|
74
|
-
readonly id: string;
|
|
75
|
-
readonly name: string;
|
|
76
|
-
readonly url: string;
|
|
77
|
-
};
|
|
78
|
-
readonly directConnection?: {
|
|
79
|
-
readonly host: string;
|
|
80
|
-
readonly pass: string;
|
|
81
|
-
readonly user: string;
|
|
82
|
-
} | null | undefined;
|
|
85
|
+
readonly kind: "accelerate" | "postgres";
|
|
83
86
|
readonly endpoints: {
|
|
84
|
-
readonly
|
|
87
|
+
readonly direct?: {
|
|
85
88
|
readonly host: string;
|
|
86
89
|
readonly port: number;
|
|
87
90
|
} | undefined;
|
|
88
|
-
readonly
|
|
91
|
+
readonly pooled?: {
|
|
89
92
|
readonly host: string;
|
|
90
93
|
readonly port: number;
|
|
91
94
|
} | undefined;
|
|
92
|
-
readonly
|
|
95
|
+
readonly accelerate?: {
|
|
93
96
|
readonly host: string;
|
|
94
97
|
readonly port: number;
|
|
95
98
|
} | undefined;
|
|
96
99
|
};
|
|
97
|
-
readonly
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
readonly directConnection?: {
|
|
101
|
+
readonly host: string;
|
|
102
|
+
readonly pass: string;
|
|
103
|
+
readonly user: string;
|
|
104
|
+
} | null | undefined;
|
|
105
|
+
readonly database: {
|
|
106
|
+
readonly id: string;
|
|
107
|
+
readonly url: string;
|
|
108
|
+
readonly name: string;
|
|
109
|
+
};
|
|
102
110
|
}[];
|
|
103
|
-
readonly createdAt: string;
|
|
104
|
-
readonly defaultConnectionId: string | null;
|
|
105
|
-
readonly id: string;
|
|
106
|
-
readonly isDefault: boolean;
|
|
107
|
-
readonly name: string;
|
|
108
111
|
readonly project: {
|
|
109
112
|
readonly id: string;
|
|
110
|
-
readonly name: string;
|
|
111
113
|
readonly url: string;
|
|
114
|
+
readonly name: string;
|
|
112
115
|
};
|
|
113
116
|
readonly region: {
|
|
114
117
|
readonly id: string;
|
|
115
118
|
readonly name: string;
|
|
116
119
|
} | null;
|
|
117
120
|
readonly source: unknown;
|
|
118
|
-
readonly status: "failure" | "provisioning" | "ready" | "recovering";
|
|
119
|
-
readonly type: string;
|
|
120
|
-
readonly url: string;
|
|
121
121
|
};
|
|
122
122
|
}, Forbidden | NotFound | UnprocessableEntity, any>;
|
|
123
123
|
//# sourceMappingURL=getV1DatabasesByDatabaseId.d.ts.map
|
|
@@ -33,9 +33,9 @@ export declare const getV1DatabasesByDatabaseIdBackups: import("@distilled.cloud
|
|
|
33
33
|
readonly limit?: number | undefined;
|
|
34
34
|
}, {
|
|
35
35
|
readonly data: readonly {
|
|
36
|
+
readonly id: string;
|
|
36
37
|
readonly backupType: "full" | "incremental";
|
|
37
38
|
readonly createdAt: string;
|
|
38
|
-
readonly id: string;
|
|
39
39
|
readonly size?: number | undefined;
|
|
40
40
|
readonly status: "completed" | "failed" | "running" | "unknown";
|
|
41
41
|
readonly type?: string | undefined;
|
|
@@ -51,45 +51,45 @@ export type GetV1DatabasesByDatabaseIdConnectionsOutput = typeof GetV1DatabasesB
|
|
|
51
51
|
* Returns all connections for the given database.
|
|
52
52
|
*/
|
|
53
53
|
export declare const getV1DatabasesByDatabaseIdConnections: import("@distilled.cloud/core/client").OperationMethod<{
|
|
54
|
-
readonly cursor?: string | undefined;
|
|
55
54
|
readonly databaseId: string;
|
|
55
|
+
readonly cursor?: string | undefined;
|
|
56
56
|
readonly limit?: number | undefined;
|
|
57
57
|
}, {
|
|
58
58
|
readonly data: readonly {
|
|
59
|
+
readonly id: string;
|
|
60
|
+
readonly type: string;
|
|
61
|
+
readonly url: string;
|
|
62
|
+
readonly name: string;
|
|
59
63
|
readonly createdAt: string;
|
|
60
|
-
readonly
|
|
61
|
-
readonly id: string;
|
|
62
|
-
readonly name: string;
|
|
63
|
-
readonly url: string;
|
|
64
|
-
};
|
|
65
|
-
readonly directConnection?: {
|
|
66
|
-
readonly host: string;
|
|
67
|
-
readonly pass: string;
|
|
68
|
-
readonly user: string;
|
|
69
|
-
} | null | undefined;
|
|
64
|
+
readonly kind: "accelerate" | "postgres";
|
|
70
65
|
readonly endpoints: {
|
|
71
|
-
readonly
|
|
66
|
+
readonly direct?: {
|
|
72
67
|
readonly host: string;
|
|
73
68
|
readonly port: number;
|
|
74
69
|
} | undefined;
|
|
75
|
-
readonly
|
|
70
|
+
readonly pooled?: {
|
|
76
71
|
readonly host: string;
|
|
77
72
|
readonly port: number;
|
|
78
73
|
} | undefined;
|
|
79
|
-
readonly
|
|
74
|
+
readonly accelerate?: {
|
|
80
75
|
readonly host: string;
|
|
81
76
|
readonly port: number;
|
|
82
77
|
} | undefined;
|
|
83
78
|
};
|
|
84
|
-
readonly
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
79
|
+
readonly directConnection?: {
|
|
80
|
+
readonly host: string;
|
|
81
|
+
readonly pass: string;
|
|
82
|
+
readonly user: string;
|
|
83
|
+
} | null | undefined;
|
|
84
|
+
readonly database: {
|
|
85
|
+
readonly id: string;
|
|
86
|
+
readonly url: string;
|
|
87
|
+
readonly name: string;
|
|
88
|
+
};
|
|
89
89
|
}[];
|
|
90
90
|
readonly pagination: {
|
|
91
|
-
readonly hasMore: boolean;
|
|
92
91
|
readonly nextCursor: string | null;
|
|
92
|
+
readonly hasMore: boolean;
|
|
93
93
|
};
|
|
94
94
|
}, UnprocessableEntity, any>;
|
|
95
95
|
//# sourceMappingURL=getV1DatabasesByDatabaseIdConnections.d.ts.map
|
|
@@ -31,23 +31,23 @@ export type GetV1DatabasesByDatabaseIdUsageOutput = typeof GetV1DatabasesByDatab
|
|
|
31
31
|
*/
|
|
32
32
|
export declare const getV1DatabasesByDatabaseIdUsage: import("@distilled.cloud/core/client").OperationMethod<{
|
|
33
33
|
readonly databaseId: string;
|
|
34
|
-
readonly endDate?: string | undefined;
|
|
35
34
|
readonly startDate?: string | undefined;
|
|
35
|
+
readonly endDate?: string | undefined;
|
|
36
36
|
}, {
|
|
37
|
-
readonly
|
|
37
|
+
readonly period: {
|
|
38
|
+
readonly start: string;
|
|
39
|
+
readonly end: string;
|
|
40
|
+
};
|
|
38
41
|
readonly metrics: {
|
|
39
42
|
readonly operations: {
|
|
40
|
-
readonly unit: string;
|
|
41
43
|
readonly used: number;
|
|
44
|
+
readonly unit: string;
|
|
42
45
|
};
|
|
43
46
|
readonly storage: {
|
|
44
|
-
readonly unit: string;
|
|
45
47
|
readonly used: number;
|
|
48
|
+
readonly unit: string;
|
|
46
49
|
};
|
|
47
50
|
};
|
|
48
|
-
readonly
|
|
49
|
-
readonly end: string;
|
|
50
|
-
readonly start: string;
|
|
51
|
-
};
|
|
51
|
+
readonly generatedAt: string;
|
|
52
52
|
}, BadRequest | NotFound | UnprocessableEntity, any>;
|
|
53
53
|
//# sourceMappingURL=getV1DatabasesByDatabaseIdUsage.d.ts.map
|
|
@@ -39,24 +39,24 @@ export declare const getV1Integrations: import("@distilled.cloud/core/client").O
|
|
|
39
39
|
readonly workspaceId: string;
|
|
40
40
|
}, {
|
|
41
41
|
readonly data: readonly {
|
|
42
|
+
readonly id: string;
|
|
43
|
+
readonly url: string;
|
|
44
|
+
readonly createdAt: string;
|
|
45
|
+
readonly scopes: readonly string[];
|
|
42
46
|
readonly client: {
|
|
43
|
-
readonly createdAt: string;
|
|
44
47
|
readonly id: string;
|
|
45
48
|
readonly name: string;
|
|
49
|
+
readonly createdAt: string;
|
|
46
50
|
};
|
|
47
|
-
readonly createdAt: string;
|
|
48
51
|
readonly createdByUser: {
|
|
49
|
-
readonly displayName: string | null;
|
|
50
|
-
readonly email: string;
|
|
51
52
|
readonly id: string;
|
|
53
|
+
readonly email: string;
|
|
54
|
+
readonly displayName: string | null;
|
|
52
55
|
};
|
|
53
|
-
readonly id: string;
|
|
54
|
-
readonly scopes: readonly string[];
|
|
55
|
-
readonly url: string;
|
|
56
56
|
}[];
|
|
57
57
|
readonly pagination: {
|
|
58
|
-
readonly hasMore: boolean;
|
|
59
58
|
readonly nextCursor: string | null;
|
|
59
|
+
readonly hasMore: boolean;
|
|
60
60
|
};
|
|
61
61
|
}, never, any>;
|
|
62
62
|
//# sourceMappingURL=getV1Integrations.d.ts.map
|
|
@@ -32,20 +32,20 @@ export declare const getV1IntegrationsById: import("@distilled.cloud/core/client
|
|
|
32
32
|
readonly id: string;
|
|
33
33
|
}, {
|
|
34
34
|
readonly data: {
|
|
35
|
+
readonly id: string;
|
|
36
|
+
readonly url: string;
|
|
37
|
+
readonly createdAt: string;
|
|
38
|
+
readonly scopes: readonly string[];
|
|
35
39
|
readonly client: {
|
|
36
|
-
readonly createdAt: string;
|
|
37
40
|
readonly id: string;
|
|
38
41
|
readonly name: string;
|
|
42
|
+
readonly createdAt: string;
|
|
39
43
|
};
|
|
40
|
-
readonly createdAt: string;
|
|
41
44
|
readonly createdByUser: {
|
|
42
|
-
readonly displayName: string | null;
|
|
43
|
-
readonly email: string;
|
|
44
45
|
readonly id: string;
|
|
46
|
+
readonly email: string;
|
|
47
|
+
readonly displayName: string | null;
|
|
45
48
|
};
|
|
46
|
-
readonly id: string;
|
|
47
|
-
readonly scopes: readonly string[];
|
|
48
|
-
readonly url: string;
|
|
49
49
|
};
|
|
50
50
|
}, NotFound | UnprocessableEntity, any>;
|
|
51
51
|
//# sourceMappingURL=getV1IntegrationsById.d.ts.map
|
|
@@ -34,21 +34,21 @@ export declare const getV1Projects: import("@distilled.cloud/core/client").Opera
|
|
|
34
34
|
readonly limit?: number | undefined;
|
|
35
35
|
}, {
|
|
36
36
|
readonly data: readonly {
|
|
37
|
-
readonly createdAt: string;
|
|
38
|
-
readonly defaultRegion: string | null;
|
|
39
37
|
readonly id: string;
|
|
40
|
-
readonly name: string;
|
|
41
38
|
readonly type: string;
|
|
42
39
|
readonly url: string;
|
|
40
|
+
readonly name: string;
|
|
41
|
+
readonly createdAt: string;
|
|
42
|
+
readonly defaultRegion: string | null;
|
|
43
43
|
readonly workspace: {
|
|
44
44
|
readonly id: string;
|
|
45
|
-
readonly name: string;
|
|
46
45
|
readonly url: string;
|
|
46
|
+
readonly name: string;
|
|
47
47
|
};
|
|
48
48
|
}[];
|
|
49
49
|
readonly pagination: {
|
|
50
|
-
readonly hasMore: boolean;
|
|
51
50
|
readonly nextCursor: string | null;
|
|
51
|
+
readonly hasMore: boolean;
|
|
52
52
|
};
|
|
53
53
|
}, never, any>;
|
|
54
54
|
//# sourceMappingURL=getV1Projects.d.ts.map
|