@distilled.cloud/prisma-postgres 0.3.0-alpha → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/operations/deleteV1ComputeServicesByComputeServiceId.d.ts +15 -0
- package/lib/operations/deleteV1ComputeServicesByComputeServiceId.d.ts.map +1 -0
- package/lib/operations/deleteV1ComputeServicesByComputeServiceId.js +27 -0
- package/lib/operations/deleteV1ComputeServicesByComputeServiceId.js.map +1 -0
- package/lib/operations/deleteV1ComputeServicesVersionsByVersionId.d.ts +15 -0
- package/lib/operations/deleteV1ComputeServicesVersionsByVersionId.d.ts.map +1 -0
- package/lib/operations/deleteV1ComputeServicesVersionsByVersionId.js +27 -0
- package/lib/operations/deleteV1ComputeServicesVersionsByVersionId.js.map +1 -0
- package/lib/operations/deleteV1VersionsByVersionId.d.ts +15 -0
- package/lib/operations/deleteV1VersionsByVersionId.d.ts.map +1 -0
- package/lib/operations/deleteV1VersionsByVersionId.js +23 -0
- package/lib/operations/deleteV1VersionsByVersionId.js.map +1 -0
- package/lib/operations/getV1ComputeServices.d.ts +35 -0
- package/lib/operations/getV1ComputeServices.d.ts.map +1 -0
- package/lib/operations/getV1ComputeServices.js +43 -0
- package/lib/operations/getV1ComputeServices.js.map +1 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceId.d.ts +29 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceId.d.ts.map +1 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceId.js +38 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceId.js.map +1 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceIdVersions.d.ts +29 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceIdVersions.d.ts.map +1 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceIdVersions.js +41 -0
- package/lib/operations/getV1ComputeServicesByComputeServiceIdVersions.js.map +1 -0
- package/lib/operations/getV1ComputeServicesVersionsByVersionId.d.ts +26 -0
- package/lib/operations/getV1ComputeServicesVersionsByVersionId.d.ts.map +1 -0
- package/lib/operations/getV1ComputeServicesVersionsByVersionId.js +38 -0
- package/lib/operations/getV1ComputeServicesVersionsByVersionId.js.map +1 -0
- package/lib/operations/getV1ProjectsByProjectIdComputeServices.d.ts +35 -0
- package/lib/operations/getV1ProjectsByProjectIdComputeServices.d.ts.map +1 -0
- package/lib/operations/getV1ProjectsByProjectIdComputeServices.js +47 -0
- package/lib/operations/getV1ProjectsByProjectIdComputeServices.js.map +1 -0
- package/lib/operations/getV1Versions.d.ts +29 -0
- package/lib/operations/getV1Versions.d.ts.map +1 -0
- package/lib/operations/getV1Versions.js +35 -0
- package/lib/operations/getV1Versions.js.map +1 -0
- package/lib/operations/getV1VersionsByVersionId.d.ts +26 -0
- package/lib/operations/getV1VersionsByVersionId.d.ts.map +1 -0
- package/lib/operations/getV1VersionsByVersionId.js +34 -0
- package/lib/operations/getV1VersionsByVersionId.js.map +1 -0
- package/lib/operations/patchV1ComputeServicesByComputeServiceId.d.ts +30 -0
- package/lib/operations/patchV1ComputeServicesByComputeServiceId.d.ts.map +1 -0
- package/lib/operations/patchV1ComputeServicesByComputeServiceId.js +42 -0
- package/lib/operations/patchV1ComputeServicesByComputeServiceId.js.map +1 -0
- package/lib/operations/postV1ComputeServices.d.ts +31 -0
- package/lib/operations/postV1ComputeServices.d.ts.map +1 -0
- package/lib/operations/postV1ComputeServices.js +46 -0
- package/lib/operations/postV1ComputeServices.js.map +1 -0
- package/lib/operations/postV1ComputeServicesByComputeServiceIdVersions.d.ts +28 -0
- package/lib/operations/postV1ComputeServicesByComputeServiceIdVersions.d.ts.map +1 -0
- package/lib/operations/postV1ComputeServicesByComputeServiceIdVersions.js +40 -0
- package/lib/operations/postV1ComputeServicesByComputeServiceIdVersions.js.map +1 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStart.d.ts +19 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStart.d.ts.map +1 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStart.js +31 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStart.js.map +1 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStop.d.ts +15 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStop.d.ts.map +1 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStop.js +27 -0
- package/lib/operations/postV1ComputeServicesVersionsByVersionIdStop.js.map +1 -0
- package/lib/operations/postV1Connections.d.ts +1 -1
- package/lib/operations/postV1Connections.d.ts.map +1 -1
- package/lib/operations/postV1Connections.js +2 -1
- package/lib/operations/postV1Connections.js.map +1 -1
- package/lib/operations/postV1ConnectionsByIdRotate.d.ts +54 -0
- package/lib/operations/postV1ConnectionsByIdRotate.d.ts.map +1 -0
- package/lib/operations/postV1ConnectionsByIdRotate.js +63 -0
- package/lib/operations/postV1ConnectionsByIdRotate.js.map +1 -0
- package/lib/operations/postV1DatabasesByDatabaseIdConnections.d.ts +4 -4
- package/lib/operations/postV1DatabasesByDatabaseIdConnections.d.ts.map +1 -1
- package/lib/operations/postV1DatabasesByDatabaseIdConnections.js +5 -4
- package/lib/operations/postV1DatabasesByDatabaseIdConnections.js.map +1 -1
- package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.d.ts +76 -0
- package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.d.ts.map +1 -0
- package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.js +93 -0
- package/lib/operations/postV1DatabasesByTargetDatabaseIdRestore.js.map +1 -0
- package/lib/operations/postV1Projects.d.ts +5 -5
- package/lib/operations/postV1Projects.d.ts.map +1 -1
- package/lib/operations/postV1Projects.js +6 -5
- package/lib/operations/postV1Projects.js.map +1 -1
- package/lib/operations/postV1ProjectsByProjectIdComputeServices.d.ts +31 -0
- package/lib/operations/postV1ProjectsByProjectIdComputeServices.d.ts.map +1 -0
- package/lib/operations/postV1ProjectsByProjectIdComputeServices.js +50 -0
- package/lib/operations/postV1ProjectsByProjectIdComputeServices.js.map +1 -0
- package/lib/operations/postV1ProjectsByProjectIdDatabases.d.ts +5 -5
- package/lib/operations/postV1ProjectsByProjectIdDatabases.d.ts.map +1 -1
- package/lib/operations/postV1ProjectsByProjectIdDatabases.js +6 -5
- package/lib/operations/postV1ProjectsByProjectIdDatabases.js.map +1 -1
- package/lib/operations/postV1Versions.d.ts +28 -0
- package/lib/operations/postV1Versions.d.ts.map +1 -0
- package/lib/operations/postV1Versions.js +34 -0
- package/lib/operations/postV1Versions.js.map +1 -0
- package/lib/operations/postV1VersionsByVersionIdStart.d.ts +19 -0
- package/lib/operations/postV1VersionsByVersionIdStart.d.ts.map +1 -0
- package/lib/operations/postV1VersionsByVersionIdStart.js +28 -0
- package/lib/operations/postV1VersionsByVersionIdStart.js.map +1 -0
- package/lib/operations/postV1VersionsByVersionIdStop.d.ts +15 -0
- package/lib/operations/postV1VersionsByVersionIdStop.d.ts.map +1 -0
- package/lib/operations/postV1VersionsByVersionIdStop.js +24 -0
- package/lib/operations/postV1VersionsByVersionIdStop.js.map +1 -0
- package/package.json +3 -3
- package/src/operations/deleteV1ComputeServicesByComputeServiceId.ts +35 -0
- package/src/operations/deleteV1ComputeServicesVersionsByVersionId.ts +35 -0
- package/src/operations/deleteV1VersionsByVersionId.ts +31 -0
- package/src/operations/getV1ComputeServices.ts +51 -0
- package/src/operations/getV1ComputeServicesByComputeServiceId.ts +46 -0
- package/src/operations/getV1ComputeServicesByComputeServiceIdVersions.ts +51 -0
- package/src/operations/getV1ComputeServicesVersionsByVersionId.ts +46 -0
- package/src/operations/getV1ProjectsByProjectIdComputeServices.ts +57 -0
- package/src/operations/getV1Versions.ts +41 -0
- package/src/operations/getV1VersionsByVersionId.ts +42 -0
- package/src/operations/patchV1ComputeServicesByComputeServiceId.ts +50 -0
- package/src/operations/postV1ComputeServices.ts +55 -0
- package/src/operations/postV1ComputeServicesByComputeServiceIdVersions.ts +50 -0
- package/src/operations/postV1ComputeServicesVersionsByVersionIdStart.ts +39 -0
- package/src/operations/postV1ComputeServicesVersionsByVersionIdStop.ts +35 -0
- package/src/operations/postV1Connections.ts +2 -1
- package/src/operations/postV1ConnectionsByIdRotate.ts +81 -0
- package/src/operations/postV1DatabasesByDatabaseIdConnections.ts +5 -4
- package/src/operations/postV1DatabasesByTargetDatabaseIdRestore.ts +115 -0
- package/src/operations/postV1Projects.ts +6 -5
- package/src/operations/postV1ProjectsByProjectIdComputeServices.ts +60 -0
- package/src/operations/postV1ProjectsByProjectIdDatabases.ts +6 -5
- package/src/operations/postV1Versions.ts +40 -0
- package/src/operations/postV1VersionsByVersionIdStart.ts +34 -0
- package/src/operations/postV1VersionsByVersionIdStop.ts +30 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postV1ProjectsByProjectIdDatabases.js","sourceRoot":"","sources":["../../src/operations/postV1ProjectsByProjectIdDatabases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"postV1ProjectsByProjectIdDatabases.js","sourceRoot":"","sources":["../../src/operations/postV1ProjectsByProjectIdDatabases.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAExE,eAAe;AACf,MAAM,CAAC,MAAM,uCAAuC;AAClD,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC5C,MAAM,EAAE,MAAM,CAA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BAAgB,EAAE,eAAe;YACjC,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAC/B,MAAM,CAAC,MAAM,CACX,MAAM,CAAC,MAAM,CAAC;gBACZ,IAAI,EAAE,MAAM,CAAC,MAAM;gBACnB,IAAI,EAAE,MAAM,CAAC,MAAM;gBACnB,IAAI,EAAE,MAAM,CAAC,MAAM;aACpB,CAAC,CACH,CACF;SACF,CAAC,CACH;QACD,gBAAgB,EAAE,uBAAuB;QACzC,gBAAgB,EAAE,MAAM,CAAC,MAAM,CAC7B,MAAM,CAAC,MAAM,CAAC;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM;YACnB,IAAI,EAAE,MAAM,CAAC,MAAM;YACnB,IAAI,EAAE,MAAM,CAAC,MAAM;SACpB,CAAC,CACH;KACF,CAAC;CACH,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,kCAAkC;AAC7C,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,uCAAuC;IACpD,YAAY,EAAE,wCAAwC;CACvD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const PostV1VersionsInput: Schema.Struct<{
|
|
3
|
+
readonly envVars: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
4
|
+
readonly portMapping: Schema.optional<Schema.Struct<{
|
|
5
|
+
readonly http: Schema.optional<Schema.Unknown>;
|
|
6
|
+
}>>;
|
|
7
|
+
readonly skipCodeUpload: Schema.optional<Schema.Boolean>;
|
|
8
|
+
readonly computeServiceId: Schema.String;
|
|
9
|
+
}>;
|
|
10
|
+
export type PostV1VersionsInput = typeof PostV1VersionsInput.Type;
|
|
11
|
+
export declare const PostV1VersionsOutput: Schema.Struct<{
|
|
12
|
+
readonly data: Schema.Struct<{
|
|
13
|
+
readonly id: Schema.String;
|
|
14
|
+
readonly type: Schema.String;
|
|
15
|
+
readonly url: Schema.String;
|
|
16
|
+
readonly foundryVersionId: Schema.String;
|
|
17
|
+
readonly uploadUrl: Schema.NullOr<Schema.String>;
|
|
18
|
+
}>;
|
|
19
|
+
}>;
|
|
20
|
+
export type PostV1VersionsOutput = typeof PostV1VersionsOutput.Type;
|
|
21
|
+
/**
|
|
22
|
+
* Create compute version
|
|
23
|
+
*
|
|
24
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
25
|
+
* Creates a new compute version under the specified compute service. The `computeServiceId` is required in the request body. Returns a pre-signed upload URL for the artifact unless `skipCodeUpload` is set. Environment variables are merged with the previous version's variables when one exists.
|
|
26
|
+
*/
|
|
27
|
+
export declare const postV1Versions: any;
|
|
28
|
+
//# sourceMappingURL=postV1Versions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1Versions.d.ts","sourceRoot":"","sources":["../../src/operations/postV1Versions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mBAAmB;;;;;;;EASyB,CAAC;AAC1D,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;;;;;;;EAQ/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,IAAI,CAAC;AAGpE;;;;;GAKG;AACH,eAAO,MAAM,cAAc,KAGxB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const PostV1VersionsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
6
|
+
envVars: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
7
|
+
portMapping: Schema.optional(Schema.Struct({
|
|
8
|
+
http: Schema.optional(Schema.Unknown),
|
|
9
|
+
})),
|
|
10
|
+
skipCodeUpload: Schema.optional(Schema.Boolean),
|
|
11
|
+
computeServiceId: Schema.String,
|
|
12
|
+
}).pipe(T.Http({ method: "POST", path: "/v1/versions" }));
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const PostV1VersionsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
data: Schema.Struct({
|
|
16
|
+
id: Schema.String,
|
|
17
|
+
type: Schema.String,
|
|
18
|
+
url: Schema.String,
|
|
19
|
+
foundryVersionId: Schema.String,
|
|
20
|
+
uploadUrl: Schema.NullOr(Schema.String),
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
// The operation
|
|
24
|
+
/**
|
|
25
|
+
* Create compute version
|
|
26
|
+
*
|
|
27
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
28
|
+
* Creates a new compute version under the specified compute service. The `computeServiceId` is required in the request body. Returns a pre-signed upload URL for the artifact unless `skipCodeUpload` is set. Environment variables are merged with the previous version's variables when one exists.
|
|
29
|
+
*/
|
|
30
|
+
export const postV1Versions = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
31
|
+
inputSchema: PostV1VersionsInput,
|
|
32
|
+
outputSchema: PostV1VersionsOutput,
|
|
33
|
+
}));
|
|
34
|
+
//# sourceMappingURL=postV1Versions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1Versions.js","sourceRoot":"","sources":["../../src/operations/postV1Versions.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,mBAAmB,GAAG,aAAa,CAAC,aAA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VersionIdStartInput: Schema.Struct<{
|
|
3
|
+
readonly versionId: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type PostV1VersionsByVersionIdStartInput = typeof PostV1VersionsByVersionIdStartInput.Type;
|
|
6
|
+
export declare const PostV1VersionsByVersionIdStartOutput: Schema.Struct<{
|
|
7
|
+
readonly data: Schema.Struct<{
|
|
8
|
+
readonly previewDomain: Schema.String;
|
|
9
|
+
}>;
|
|
10
|
+
}>;
|
|
11
|
+
export type PostV1VersionsByVersionIdStartOutput = typeof PostV1VersionsByVersionIdStartOutput.Type;
|
|
12
|
+
/**
|
|
13
|
+
* Start compute version
|
|
14
|
+
*
|
|
15
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
16
|
+
* 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.
|
|
17
|
+
*/
|
|
18
|
+
export declare const postV1VersionsByVersionIdStart: any;
|
|
19
|
+
//# sourceMappingURL=postV1VersionsByVersionIdStart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1VersionsByVersionIdStart.d.ts","sourceRoot":"","sources":["../../src/operations/postV1VersionsByVersionIdStart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,mCAAmC;;EAG6B,CAAC;AAC9E,MAAM,MAAM,mCAAmC,GAC7C,OAAO,mCAAmC,CAAC,IAAI,CAAC;AAGlD,eAAO,MAAM,oCAAoC;;;;EAK7C,CAAC;AACL,MAAM,MAAM,oCAAoC,GAC9C,OAAO,oCAAoC,CAAC,IAAI,CAAC;AAGnD;;;;;GAKG;AACH,eAAO,MAAM,8BAA8B,KAItC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const PostV1VersionsByVersionIdStartInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
versionId: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "POST", path: "/v1/versions/{versionId}/start" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const PostV1VersionsByVersionIdStartOutput =
|
|
11
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
12
|
+
data: Schema.Struct({
|
|
13
|
+
previewDomain: Schema.String,
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
16
|
+
// The operation
|
|
17
|
+
/**
|
|
18
|
+
* Start compute version
|
|
19
|
+
*
|
|
20
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
21
|
+
* 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.
|
|
22
|
+
*/
|
|
23
|
+
export const postV1VersionsByVersionIdStart =
|
|
24
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
25
|
+
inputSchema: PostV1VersionsByVersionIdStartInput,
|
|
26
|
+
outputSchema: PostV1VersionsByVersionIdStartOutput,
|
|
27
|
+
}));
|
|
28
|
+
//# sourceMappingURL=postV1VersionsByVersionIdStart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1VersionsByVersionIdStart.js","sourceRoot":"","sources":["../../src/operations/postV1VersionsByVersionIdStart.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,mCAAmC;AAC9C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC7C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAAC,CAAC,CAAC;AAI9E,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC;AAC/C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;QAClB,aAAa,EAAE,MAAM,CAAC,MAAM;KAC7B,CAAC;CACH,CAAC,CAAC;AAIL,gBAAgB;AAChB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,8BAA8B;AACzC,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,mCAAmC;IAChD,YAAY,EAAE,oCAAoC;CACnD,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const PostV1VersionsByVersionIdStopInput: Schema.Struct<{
|
|
3
|
+
readonly versionId: Schema.String;
|
|
4
|
+
}>;
|
|
5
|
+
export type PostV1VersionsByVersionIdStopInput = typeof PostV1VersionsByVersionIdStopInput.Type;
|
|
6
|
+
export declare const PostV1VersionsByVersionIdStopOutput: Schema.Void;
|
|
7
|
+
export type PostV1VersionsByVersionIdStopOutput = typeof PostV1VersionsByVersionIdStopOutput.Type;
|
|
8
|
+
/**
|
|
9
|
+
* Stop compute version
|
|
10
|
+
*
|
|
11
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
12
|
+
* Requests VM shutdown for the compute version. The version record and metadata are retained. Poll the status endpoint until `stopped` is reached.
|
|
13
|
+
*/
|
|
14
|
+
export declare const postV1VersionsByVersionIdStop: any;
|
|
15
|
+
//# sourceMappingURL=postV1VersionsByVersionIdStop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1VersionsByVersionIdStop.d.ts","sourceRoot":"","sources":["../../src/operations/postV1VersionsByVersionIdStop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,kCAAkC;;EAG6B,CAAC;AAC7E,MAAM,MAAM,kCAAkC,GAC5C,OAAO,kCAAkC,CAAC,IAAI,CAAC;AAGjD,eAAO,MAAM,mCAAmC,aACP,CAAC;AAC1C,MAAM,MAAM,mCAAmC,GAC7C,OAAO,mCAAmC,CAAC,IAAI,CAAC;AAGlD;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,KAIrC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const PostV1VersionsByVersionIdStopInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
versionId: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
}).pipe(T.Http({ method: "POST", path: "/v1/versions/{versionId}/stop" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const PostV1VersionsByVersionIdStopOutput =
|
|
11
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
12
|
+
// The operation
|
|
13
|
+
/**
|
|
14
|
+
* Stop compute version
|
|
15
|
+
*
|
|
16
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
17
|
+
* Requests VM shutdown for the compute version. The version record and metadata are retained. Poll the status endpoint until `stopped` is reached.
|
|
18
|
+
*/
|
|
19
|
+
export const postV1VersionsByVersionIdStop =
|
|
20
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
21
|
+
inputSchema: PostV1VersionsByVersionIdStopInput,
|
|
22
|
+
outputSchema: PostV1VersionsByVersionIdStopOutput,
|
|
23
|
+
}));
|
|
24
|
+
//# sourceMappingURL=postV1VersionsByVersionIdStop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postV1VersionsByVersionIdStop.js","sourceRoot":"","sources":["../../src/operations/postV1VersionsByVersionIdStop.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,kCAAkC;AAC7C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;CAC7C,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,+BAA+B,EAAE,CAAC,CAAC,CAAC;AAI7E,gBAAgB;AAChB,MAAM,CAAC,MAAM,mCAAmC;AAC9C,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC;AAI1C,gBAAgB;AAChB;;;;;GAKG;AACH,MAAM,CAAC,MAAM,6BAA6B;AACxC,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,kCAAkC;IAC/C,YAAY,EAAE,mCAAmC;CAClD,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/prisma-postgres",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -68,12 +68,12 @@
|
|
|
68
68
|
"check": "tsgo && oxlint src && oxfmt --check src",
|
|
69
69
|
"test": "bunx vitest run test",
|
|
70
70
|
"publish:npm": "bun run build && bun publish --access public",
|
|
71
|
-
"generate": "bun run scripts/generate.ts && oxfmt --write src &&
|
|
71
|
+
"generate": "bun run scripts/generate.ts && oxlint --fix src && oxfmt --write src && oxfmt --write src",
|
|
72
72
|
"specs:fetch": "git submodule update --force --init --recursive specs/distilled-spec-prisma-postgres && git -C specs/distilled-spec-prisma-postgres checkout -- .",
|
|
73
73
|
"specs:update": "git -C specs/distilled-spec-prisma-postgres fetch && git -C specs/distilled-spec-prisma-postgres checkout main && git -C specs/distilled-spec-prisma-postgres pull"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@distilled.cloud/core": "0.
|
|
76
|
+
"@distilled.cloud/core": "0.5.0",
|
|
77
77
|
"effect": "4.0.0-beta.30"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
@@ -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 DeleteV1ComputeServicesByComputeServiceIdInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
computeServiceId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({
|
|
11
|
+
method: "DELETE",
|
|
12
|
+
path: "/v1/compute-services/{computeServiceId}",
|
|
13
|
+
}),
|
|
14
|
+
);
|
|
15
|
+
export type DeleteV1ComputeServicesByComputeServiceIdInput =
|
|
16
|
+
typeof DeleteV1ComputeServicesByComputeServiceIdInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const DeleteV1ComputeServicesByComputeServiceIdOutput =
|
|
20
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
21
|
+
export type DeleteV1ComputeServicesByComputeServiceIdOutput =
|
|
22
|
+
typeof DeleteV1ComputeServicesByComputeServiceIdOutput.Type;
|
|
23
|
+
|
|
24
|
+
// The operation
|
|
25
|
+
/**
|
|
26
|
+
* Delete compute service
|
|
27
|
+
*
|
|
28
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
29
|
+
* Deletes a compute service. All compute versions under the service must already be stopped or deleted.
|
|
30
|
+
*/
|
|
31
|
+
export const deleteV1ComputeServicesByComputeServiceId =
|
|
32
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
33
|
+
inputSchema: DeleteV1ComputeServicesByComputeServiceIdInput,
|
|
34
|
+
outputSchema: DeleteV1ComputeServicesByComputeServiceIdOutput,
|
|
35
|
+
}));
|
|
@@ -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 DeleteV1ComputeServicesVersionsByVersionIdInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
versionId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({
|
|
11
|
+
method: "DELETE",
|
|
12
|
+
path: "/v1/compute-services/versions/{versionId}",
|
|
13
|
+
}),
|
|
14
|
+
);
|
|
15
|
+
export type DeleteV1ComputeServicesVersionsByVersionIdInput =
|
|
16
|
+
typeof DeleteV1ComputeServicesVersionsByVersionIdInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const DeleteV1ComputeServicesVersionsByVersionIdOutput =
|
|
20
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
21
|
+
export type DeleteV1ComputeServicesVersionsByVersionIdOutput =
|
|
22
|
+
typeof DeleteV1ComputeServicesVersionsByVersionIdOutput.Type;
|
|
23
|
+
|
|
24
|
+
// The operation
|
|
25
|
+
/**
|
|
26
|
+
* Delete compute version
|
|
27
|
+
*
|
|
28
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
29
|
+
* Permanently deletes the compute version, its metadata, and any associated VM. The version must be stopped or in the `new` state before it can be deleted.
|
|
30
|
+
*/
|
|
31
|
+
export const deleteV1ComputeServicesVersionsByVersionId =
|
|
32
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
33
|
+
inputSchema: DeleteV1ComputeServicesVersionsByVersionIdInput,
|
|
34
|
+
outputSchema: DeleteV1ComputeServicesVersionsByVersionIdOutput,
|
|
35
|
+
}));
|
|
@@ -0,0 +1,31 @@
|
|
|
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 DeleteV1VersionsByVersionIdInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
versionId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(T.Http({ method: "DELETE", path: "/v1/versions/{versionId}" }));
|
|
10
|
+
export type DeleteV1VersionsByVersionIdInput =
|
|
11
|
+
typeof DeleteV1VersionsByVersionIdInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const DeleteV1VersionsByVersionIdOutput =
|
|
15
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
|
|
16
|
+
export type DeleteV1VersionsByVersionIdOutput =
|
|
17
|
+
typeof DeleteV1VersionsByVersionIdOutput.Type;
|
|
18
|
+
|
|
19
|
+
// The operation
|
|
20
|
+
/**
|
|
21
|
+
* Delete compute version
|
|
22
|
+
*
|
|
23
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
24
|
+
* Permanently deletes the compute version, its metadata, and any associated VM. The version must be stopped or in the `new` state before it can be deleted.
|
|
25
|
+
*/
|
|
26
|
+
export const deleteV1VersionsByVersionId = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
27
|
+
() => ({
|
|
28
|
+
inputSchema: DeleteV1VersionsByVersionIdInput,
|
|
29
|
+
outputSchema: DeleteV1VersionsByVersionIdOutput,
|
|
30
|
+
}),
|
|
31
|
+
);
|
|
@@ -0,0 +1,51 @@
|
|
|
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 GetV1ComputeServicesInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
cursor: Schema.optional(Schema.String),
|
|
9
|
+
limit: Schema.optional(Schema.Number),
|
|
10
|
+
projectId: Schema.optional(Schema.String),
|
|
11
|
+
}).pipe(T.Http({ method: "GET", path: "/v1/compute-services" }));
|
|
12
|
+
export type GetV1ComputeServicesInput = typeof GetV1ComputeServicesInput.Type;
|
|
13
|
+
|
|
14
|
+
// Output Schema
|
|
15
|
+
export const GetV1ComputeServicesOutput =
|
|
16
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
|
+
data: Schema.Array(
|
|
18
|
+
Schema.Struct({
|
|
19
|
+
id: Schema.String,
|
|
20
|
+
type: Schema.String,
|
|
21
|
+
url: Schema.String,
|
|
22
|
+
name: Schema.String,
|
|
23
|
+
region: Schema.Struct({
|
|
24
|
+
id: Schema.String,
|
|
25
|
+
name: Schema.String,
|
|
26
|
+
}),
|
|
27
|
+
projectId: Schema.String,
|
|
28
|
+
latestVersionId: Schema.NullOr(Schema.String),
|
|
29
|
+
createdAt: Schema.String,
|
|
30
|
+
}),
|
|
31
|
+
),
|
|
32
|
+
pagination: Schema.Struct({
|
|
33
|
+
nextCursor: Schema.NullOr(Schema.String),
|
|
34
|
+
hasMore: Schema.Boolean,
|
|
35
|
+
}),
|
|
36
|
+
});
|
|
37
|
+
export type GetV1ComputeServicesOutput = typeof GetV1ComputeServicesOutput.Type;
|
|
38
|
+
|
|
39
|
+
// The operation
|
|
40
|
+
/**
|
|
41
|
+
* List compute services
|
|
42
|
+
*
|
|
43
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
44
|
+
* Returns all compute services the token has access to, ordered by creation time (oldest first). Optionally filter by project ID. Supports cursor-based pagination.
|
|
45
|
+
*/
|
|
46
|
+
export const getV1ComputeServices = /*@__PURE__*/ /*#__PURE__*/ API.make(
|
|
47
|
+
() => ({
|
|
48
|
+
inputSchema: GetV1ComputeServicesInput,
|
|
49
|
+
outputSchema: GetV1ComputeServicesOutput,
|
|
50
|
+
}),
|
|
51
|
+
);
|
|
@@ -0,0 +1,46 @@
|
|
|
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 GetV1ComputeServicesByComputeServiceIdInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
computeServiceId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({ method: "GET", path: "/v1/compute-services/{computeServiceId}" }),
|
|
11
|
+
);
|
|
12
|
+
export type GetV1ComputeServicesByComputeServiceIdInput =
|
|
13
|
+
typeof GetV1ComputeServicesByComputeServiceIdInput.Type;
|
|
14
|
+
|
|
15
|
+
// Output Schema
|
|
16
|
+
export const GetV1ComputeServicesByComputeServiceIdOutput =
|
|
17
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
18
|
+
data: Schema.Struct({
|
|
19
|
+
id: Schema.String,
|
|
20
|
+
type: Schema.String,
|
|
21
|
+
url: Schema.String,
|
|
22
|
+
name: Schema.String,
|
|
23
|
+
region: Schema.Struct({
|
|
24
|
+
id: Schema.String,
|
|
25
|
+
name: Schema.String,
|
|
26
|
+
}),
|
|
27
|
+
projectId: Schema.String,
|
|
28
|
+
latestVersionId: Schema.NullOr(Schema.String),
|
|
29
|
+
createdAt: Schema.String,
|
|
30
|
+
}),
|
|
31
|
+
});
|
|
32
|
+
export type GetV1ComputeServicesByComputeServiceIdOutput =
|
|
33
|
+
typeof GetV1ComputeServicesByComputeServiceIdOutput.Type;
|
|
34
|
+
|
|
35
|
+
// The operation
|
|
36
|
+
/**
|
|
37
|
+
* Get compute service
|
|
38
|
+
*
|
|
39
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
40
|
+
* Returns a compute service by ID, including its region and latest version reference.
|
|
41
|
+
*/
|
|
42
|
+
export const getV1ComputeServicesByComputeServiceId =
|
|
43
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
44
|
+
inputSchema: GetV1ComputeServicesByComputeServiceIdInput,
|
|
45
|
+
outputSchema: GetV1ComputeServicesByComputeServiceIdOutput,
|
|
46
|
+
}));
|
|
@@ -0,0 +1,51 @@
|
|
|
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 GetV1ComputeServicesByComputeServiceIdVersionsInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
computeServiceId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
cursor: Schema.optional(Schema.String),
|
|
10
|
+
limit: Schema.optional(Schema.Number),
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({
|
|
13
|
+
method: "GET",
|
|
14
|
+
path: "/v1/compute-services/{computeServiceId}/versions",
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
export type GetV1ComputeServicesByComputeServiceIdVersionsInput =
|
|
18
|
+
typeof GetV1ComputeServicesByComputeServiceIdVersionsInput.Type;
|
|
19
|
+
|
|
20
|
+
// Output Schema
|
|
21
|
+
export const GetV1ComputeServicesByComputeServiceIdVersionsOutput =
|
|
22
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
23
|
+
data: Schema.Array(
|
|
24
|
+
Schema.Struct({
|
|
25
|
+
id: Schema.String,
|
|
26
|
+
type: Schema.String,
|
|
27
|
+
url: Schema.String,
|
|
28
|
+
foundryVersionId: Schema.String,
|
|
29
|
+
createdAt: Schema.String,
|
|
30
|
+
}),
|
|
31
|
+
),
|
|
32
|
+
pagination: Schema.Struct({
|
|
33
|
+
nextCursor: Schema.NullOr(Schema.String),
|
|
34
|
+
hasMore: Schema.Boolean,
|
|
35
|
+
}),
|
|
36
|
+
});
|
|
37
|
+
export type GetV1ComputeServicesByComputeServiceIdVersionsOutput =
|
|
38
|
+
typeof GetV1ComputeServicesByComputeServiceIdVersionsOutput.Type;
|
|
39
|
+
|
|
40
|
+
// The operation
|
|
41
|
+
/**
|
|
42
|
+
* List compute versions
|
|
43
|
+
*
|
|
44
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
45
|
+
* Returns all compute versions belonging to a compute service, ordered by creation time (newest first). Supports cursor-based pagination.
|
|
46
|
+
*/
|
|
47
|
+
export const getV1ComputeServicesByComputeServiceIdVersions =
|
|
48
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
49
|
+
inputSchema: GetV1ComputeServicesByComputeServiceIdVersionsInput,
|
|
50
|
+
outputSchema: GetV1ComputeServicesByComputeServiceIdVersionsOutput,
|
|
51
|
+
}));
|
|
@@ -0,0 +1,46 @@
|
|
|
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 GetV1ComputeServicesVersionsByVersionIdInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
versionId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
}).pipe(
|
|
10
|
+
T.Http({
|
|
11
|
+
method: "GET",
|
|
12
|
+
path: "/v1/compute-services/versions/{versionId}",
|
|
13
|
+
}),
|
|
14
|
+
);
|
|
15
|
+
export type GetV1ComputeServicesVersionsByVersionIdInput =
|
|
16
|
+
typeof GetV1ComputeServicesVersionsByVersionIdInput.Type;
|
|
17
|
+
|
|
18
|
+
// Output Schema
|
|
19
|
+
export const GetV1ComputeServicesVersionsByVersionIdOutput =
|
|
20
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
|
+
data: Schema.Struct({
|
|
22
|
+
id: Schema.String,
|
|
23
|
+
type: Schema.String,
|
|
24
|
+
url: Schema.String,
|
|
25
|
+
foundryVersionId: Schema.String,
|
|
26
|
+
status: Schema.String,
|
|
27
|
+
previewDomain: Schema.NullOr(Schema.String),
|
|
28
|
+
envVars: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
29
|
+
createdAt: Schema.String,
|
|
30
|
+
}),
|
|
31
|
+
});
|
|
32
|
+
export type GetV1ComputeServicesVersionsByVersionIdOutput =
|
|
33
|
+
typeof GetV1ComputeServicesVersionsByVersionIdOutput.Type;
|
|
34
|
+
|
|
35
|
+
// The operation
|
|
36
|
+
/**
|
|
37
|
+
* Get compute version
|
|
38
|
+
*
|
|
39
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
40
|
+
* Returns a compute version by ID, including its current status derived from the underlying VM state.
|
|
41
|
+
*/
|
|
42
|
+
export const getV1ComputeServicesVersionsByVersionId =
|
|
43
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
44
|
+
inputSchema: GetV1ComputeServicesVersionsByVersionIdInput,
|
|
45
|
+
outputSchema: GetV1ComputeServicesVersionsByVersionIdOutput,
|
|
46
|
+
}));
|
|
@@ -0,0 +1,57 @@
|
|
|
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 GetV1ProjectsByProjectIdComputeServicesInput =
|
|
7
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
|
+
projectId: Schema.String.pipe(T.PathParam()),
|
|
9
|
+
cursor: Schema.optional(Schema.String),
|
|
10
|
+
limit: Schema.optional(Schema.Number),
|
|
11
|
+
}).pipe(
|
|
12
|
+
T.Http({
|
|
13
|
+
method: "GET",
|
|
14
|
+
path: "/v1/projects/{projectId}/compute-services",
|
|
15
|
+
}),
|
|
16
|
+
);
|
|
17
|
+
export type GetV1ProjectsByProjectIdComputeServicesInput =
|
|
18
|
+
typeof GetV1ProjectsByProjectIdComputeServicesInput.Type;
|
|
19
|
+
|
|
20
|
+
// Output Schema
|
|
21
|
+
export const GetV1ProjectsByProjectIdComputeServicesOutput =
|
|
22
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
23
|
+
data: Schema.Array(
|
|
24
|
+
Schema.Struct({
|
|
25
|
+
id: Schema.String,
|
|
26
|
+
type: Schema.String,
|
|
27
|
+
url: Schema.String,
|
|
28
|
+
name: Schema.String,
|
|
29
|
+
region: Schema.Struct({
|
|
30
|
+
id: Schema.String,
|
|
31
|
+
name: Schema.String,
|
|
32
|
+
}),
|
|
33
|
+
projectId: Schema.String,
|
|
34
|
+
latestVersionId: Schema.NullOr(Schema.String),
|
|
35
|
+
createdAt: Schema.String,
|
|
36
|
+
}),
|
|
37
|
+
),
|
|
38
|
+
pagination: Schema.Struct({
|
|
39
|
+
nextCursor: Schema.NullOr(Schema.String),
|
|
40
|
+
hasMore: Schema.Boolean,
|
|
41
|
+
}),
|
|
42
|
+
});
|
|
43
|
+
export type GetV1ProjectsByProjectIdComputeServicesOutput =
|
|
44
|
+
typeof GetV1ProjectsByProjectIdComputeServicesOutput.Type;
|
|
45
|
+
|
|
46
|
+
// The operation
|
|
47
|
+
/**
|
|
48
|
+
* List compute services for a project
|
|
49
|
+
*
|
|
50
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
51
|
+
* Returns all compute services belonging to a project, ordered by creation time (oldest first). Supports cursor-based pagination.
|
|
52
|
+
*/
|
|
53
|
+
export const getV1ProjectsByProjectIdComputeServices =
|
|
54
|
+
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
55
|
+
inputSchema: GetV1ProjectsByProjectIdComputeServicesInput,
|
|
56
|
+
outputSchema: GetV1ProjectsByProjectIdComputeServicesOutput,
|
|
57
|
+
}));
|
|
@@ -0,0 +1,41 @@
|
|
|
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 GetV1VersionsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
cursor: Schema.optional(Schema.String),
|
|
8
|
+
limit: Schema.optional(Schema.Number),
|
|
9
|
+
computeServiceId: Schema.optional(Schema.String),
|
|
10
|
+
}).pipe(T.Http({ method: "GET", path: "/v1/versions" }));
|
|
11
|
+
export type GetV1VersionsInput = typeof GetV1VersionsInput.Type;
|
|
12
|
+
|
|
13
|
+
// Output Schema
|
|
14
|
+
export const GetV1VersionsOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
|
+
data: Schema.Array(
|
|
16
|
+
Schema.Struct({
|
|
17
|
+
id: Schema.String,
|
|
18
|
+
type: Schema.String,
|
|
19
|
+
url: Schema.String,
|
|
20
|
+
foundryVersionId: Schema.String,
|
|
21
|
+
createdAt: Schema.String,
|
|
22
|
+
}),
|
|
23
|
+
),
|
|
24
|
+
pagination: Schema.Struct({
|
|
25
|
+
nextCursor: Schema.NullOr(Schema.String),
|
|
26
|
+
hasMore: Schema.Boolean,
|
|
27
|
+
}),
|
|
28
|
+
});
|
|
29
|
+
export type GetV1VersionsOutput = typeof GetV1VersionsOutput.Type;
|
|
30
|
+
|
|
31
|
+
// The operation
|
|
32
|
+
/**
|
|
33
|
+
* List compute versions
|
|
34
|
+
*
|
|
35
|
+
* ⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️
|
|
36
|
+
* Returns all compute versions the token has access to, ordered by creation time (newest first). Optionally filter by compute service ID. Supports cursor-based pagination.
|
|
37
|
+
*/
|
|
38
|
+
export const getV1Versions = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
39
|
+
inputSchema: GetV1VersionsInput,
|
|
40
|
+
outputSchema: GetV1VersionsOutput,
|
|
41
|
+
}));
|