@distilled.cloud/daytona 0.0.0-placeholder → 1.0.0-rc.13
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/LICENSE +201 -0
- package/README.md +34 -0
- package/lib/credentials.d.ts +46 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +67 -0
- package/lib/credentials.js.map +1 -0
- package/lib/endpoints.d.ts +15 -0
- package/lib/endpoints.d.ts.map +1 -0
- package/lib/endpoints.js +28 -0
- package/lib/endpoints.js.map +1 -0
- package/lib/errors.d.ts +53 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +30 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +10 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +75 -0
- package/lib/protocol.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +31 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/retry.d.ts +50 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +43 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/api_keys.d.ts +120 -0
- package/lib/services/api_keys.d.ts.map +1 -0
- package/lib/services/api_keys.js +126 -0
- package/lib/services/api_keys.js.map +1 -0
- package/lib/services/audit.d.ts +159 -0
- package/lib/services/audit.d.ts.map +1 -0
- package/lib/services/audit.js +126 -0
- package/lib/services/audit.js.map +1 -0
- package/lib/services/computer_use.d.ts +484 -0
- package/lib/services/computer_use.d.ts.map +1 -0
- package/lib/services/computer_use.js +672 -0
- package/lib/services/computer_use.js.map +1 -0
- package/lib/services/config.d.ts +138 -0
- package/lib/services/config.d.ts.map +1 -0
- package/lib/services/config.js +88 -0
- package/lib/services/config.js.map +1 -0
- package/lib/services/docker_registry.d.ts +126 -0
- package/lib/services/docker_registry.d.ts.map +1 -0
- package/lib/services/docker_registry.js +135 -0
- package/lib/services/docker_registry.js.map +1 -0
- package/lib/services/file_system.d.ts +203 -0
- package/lib/services/file_system.d.ts.map +1 -0
- package/lib/services/file_system.js +255 -0
- package/lib/services/file_system.js.map +1 -0
- package/lib/services/git.d.ts +338 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +417 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/health.d.ts +41 -0
- package/lib/services/health.d.ts.map +1 -0
- package/lib/services/health.js +49 -0
- package/lib/services/health.js.map +1 -0
- package/lib/services/index.d.ts +31 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +32 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/info.d.ts +37 -0
- package/lib/services/info.d.ts.map +1 -0
- package/lib/services/info.js +55 -0
- package/lib/services/info.js.map +1 -0
- package/lib/services/interpreter.d.ts +56 -0
- package/lib/services/interpreter.d.ts.map +1 -0
- package/lib/services/interpreter.js +83 -0
- package/lib/services/interpreter.js.map +1 -0
- package/lib/services/jobs.d.ts +104 -0
- package/lib/services/jobs.d.ts.map +1 -0
- package/lib/services/jobs.js +94 -0
- package/lib/services/jobs.js.map +1 -0
- package/lib/services/lsp.d.ts +137 -0
- package/lib/services/lsp.d.ts.map +1 -0
- package/lib/services/lsp.js +160 -0
- package/lib/services/lsp.js.map +1 -0
- package/lib/services/object_storage.d.ts +31 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +33 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/organizations.d.ts +963 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +1143 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/port.d.ts +29 -0
- package/lib/services/port.d.ts.map +1 -0
- package/lib/services/port.js +41 -0
- package/lib/services/port.js.map +1 -0
- package/lib/services/preview.d.ts +73 -0
- package/lib/services/preview.d.ts.map +1 -0
- package/lib/services/preview.js +125 -0
- package/lib/services/preview.js.map +1 -0
- package/lib/services/process.d.ts +329 -0
- package/lib/services/process.d.ts.map +1 -0
- package/lib/services/process.js +421 -0
- package/lib/services/process.js.map +1 -0
- package/lib/services/regions.d.ts +41 -0
- package/lib/services/regions.d.ts.map +1 -0
- package/lib/services/regions.js +36 -0
- package/lib/services/regions.js.map +1 -0
- package/lib/services/runners.d.ts +358 -0
- package/lib/services/runners.d.ts.map +1 -0
- package/lib/services/runners.js +316 -0
- package/lib/services/runners.js.map +1 -0
- package/lib/services/sandbox.d.ts +1276 -0
- package/lib/services/sandbox.d.ts.map +1 -0
- package/lib/services/sandbox.js +1218 -0
- package/lib/services/sandbox.js.map +1 -0
- package/lib/services/secret.d.ts +120 -0
- package/lib/services/secret.d.ts.map +1 -0
- package/lib/services/secret.js +113 -0
- package/lib/services/secret.js.map +1 -0
- package/lib/services/server.d.ts +44 -0
- package/lib/services/server.d.ts.map +1 -0
- package/lib/services/server.js +46 -0
- package/lib/services/server.js.map +1 -0
- package/lib/services/snapshots.d.ts +208 -0
- package/lib/services/snapshots.d.ts.map +1 -0
- package/lib/services/snapshots.js +189 -0
- package/lib/services/snapshots.js.map +1 -0
- package/lib/services/system.d.ts +24 -0
- package/lib/services/system.d.ts.map +1 -0
- package/lib/services/system.js +31 -0
- package/lib/services/system.js.map +1 -0
- package/lib/services/telemetry.d.ts +141 -0
- package/lib/services/telemetry.d.ts.map +1 -0
- package/lib/services/telemetry.js +165 -0
- package/lib/services/telemetry.js.map +1 -0
- package/lib/services/usage.d.ts +111 -0
- package/lib/services/usage.d.ts.map +1 -0
- package/lib/services/usage.js +146 -0
- package/lib/services/usage.js.map +1 -0
- package/lib/services/users.d.ts +125 -0
- package/lib/services/users.d.ts.map +1 -0
- package/lib/services/users.js +172 -0
- package/lib/services/users.js.map +1 -0
- package/lib/services/volumes.d.ts +83 -0
- package/lib/services/volumes.d.ts.map +1 -0
- package/lib/services/volumes.js +96 -0
- package/lib/services/volumes.js.map +1 -0
- package/lib/services/warm_pools.d.ts +79 -0
- package/lib/services/warm_pools.d.ts.map +1 -0
- package/lib/services/warm_pools.js +90 -0
- package/lib/services/warm_pools.js.map +1 -0
- package/lib/services/webhooks.d.ts +67 -0
- package/lib/services/webhooks.d.ts.map +1 -0
- package/lib/services/webhooks.js +103 -0
- package/lib/services/webhooks.js.map +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +78 -7
- package/src/credentials.ts +135 -0
- package/src/endpoints.ts +28 -0
- package/src/errors.ts +85 -0
- package/src/index.ts +33 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +108 -0
- package/src/response-validation.test.ts +45 -0
- package/src/retry.ts +74 -0
- package/src/services/api_keys.ts +378 -0
- package/src/services/audit.ts +416 -0
- package/src/services/computer_use.ts +1496 -0
- package/src/services/config.ts +256 -0
- package/src/services/docker_registry.ts +325 -0
- package/src/services/file_system.ts +575 -0
- package/src/services/git.ts +928 -0
- package/src/services/health.ts +116 -0
- package/src/services/index.ts +31 -0
- package/src/services/info.ts +116 -0
- package/src/services/interpreter.ts +182 -0
- package/src/services/jobs.ts +249 -0
- package/src/services/lsp.ts +367 -0
- package/src/services/object_storage.ts +75 -0
- package/src/services/organizations.ts +2712 -0
- package/src/services/port.ts +87 -0
- package/src/services/preview.ts +256 -0
- package/src/services/process.ts +948 -0
- package/src/services/regions.ts +90 -0
- package/src/services/runners.ts +811 -0
- package/src/services/sandbox.ts +3158 -0
- package/src/services/secret.ts +289 -0
- package/src/services/server.ts +111 -0
- package/src/services/snapshots.ts +508 -0
- package/src/services/system.ts +64 -0
- package/src/services/telemetry.ts +385 -0
- package/src/services/usage.ts +316 -0
- package/src/services/users.ts +380 -0
- package/src/services/volumes.ts +233 -0
- package/src/services/warm_pools.ts +209 -0
- package/src/services/webhooks.ts +214 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-daytona/specs/{openapi,toolbox-openapi,analytics-openapi}.json). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.ts";
|
|
5
|
+
import {
|
|
6
|
+
DaytonaProtocol,
|
|
7
|
+
type DaytonaOpError,
|
|
8
|
+
type DaytonaOpContext,
|
|
9
|
+
} from "../protocol.ts";
|
|
10
|
+
import { UnknownDaytonaError } from "../errors.ts";
|
|
11
|
+
import * as Retry from "../retry.ts";
|
|
12
|
+
|
|
13
|
+
export type { DaytonaOpError, DaytonaOpContext };
|
|
14
|
+
|
|
15
|
+
export interface CheckHealthControllerRequest {}
|
|
16
|
+
export const CheckHealthControllerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
17
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/health/ready", code: 200 })),
|
|
18
|
+
).annotate({
|
|
19
|
+
identifier: "CheckHealthControllerRequest",
|
|
20
|
+
}) as any as S.Schema<CheckHealthControllerRequest>;
|
|
21
|
+
|
|
22
|
+
export interface HealthControllerCheck200ResponseInfoValue {
|
|
23
|
+
status: string;
|
|
24
|
+
}
|
|
25
|
+
export const HealthControllerCheck200ResponseInfoValue =
|
|
26
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
27
|
+
S.Struct({
|
|
28
|
+
status: S.String,
|
|
29
|
+
}),
|
|
30
|
+
).annotate({
|
|
31
|
+
identifier: "HealthControllerCheck200ResponseInfoValue",
|
|
32
|
+
}) as any as S.Schema<HealthControllerCheck200ResponseInfoValue>;
|
|
33
|
+
|
|
34
|
+
export type HealthControllerCheck200ResponseInfoMap = {
|
|
35
|
+
[key: string]: HealthControllerCheck200ResponseInfoValue | undefined;
|
|
36
|
+
};
|
|
37
|
+
export const HealthControllerCheck200ResponseInfoMap = /*@__PURE__*/ S.Record(
|
|
38
|
+
S.String,
|
|
39
|
+
HealthControllerCheck200ResponseInfoValue,
|
|
40
|
+
) as any as S.Schema<HealthControllerCheck200ResponseInfoMap>;
|
|
41
|
+
|
|
42
|
+
export type HealthControllerCheck200ResponseErrorMap = {
|
|
43
|
+
[key: string]: HealthControllerCheck200ResponseInfoValue | undefined;
|
|
44
|
+
};
|
|
45
|
+
export const HealthControllerCheck200ResponseErrorMap = /*@__PURE__*/ S.Record(
|
|
46
|
+
S.String,
|
|
47
|
+
HealthControllerCheck200ResponseInfoValue,
|
|
48
|
+
) as any as S.Schema<HealthControllerCheck200ResponseErrorMap>;
|
|
49
|
+
|
|
50
|
+
export type HealthControllerCheck200ResponseDetailsMap = {
|
|
51
|
+
[key: string]: HealthControllerCheck200ResponseInfoValue | undefined;
|
|
52
|
+
};
|
|
53
|
+
export const HealthControllerCheck200ResponseDetailsMap =
|
|
54
|
+
/*@__PURE__*/ S.Record(
|
|
55
|
+
S.String,
|
|
56
|
+
HealthControllerCheck200ResponseInfoValue,
|
|
57
|
+
) as any as S.Schema<HealthControllerCheck200ResponseDetailsMap>;
|
|
58
|
+
|
|
59
|
+
export interface HealthControllerCheck200Response {
|
|
60
|
+
status?: string;
|
|
61
|
+
info?: HealthControllerCheck200ResponseInfoMap | null;
|
|
62
|
+
error?: HealthControllerCheck200ResponseErrorMap | null;
|
|
63
|
+
details?: HealthControllerCheck200ResponseDetailsMap;
|
|
64
|
+
}
|
|
65
|
+
export const HealthControllerCheck200Response = /*@__PURE__*/ S.suspend(() =>
|
|
66
|
+
S.Struct({
|
|
67
|
+
status: S.optional(S.String),
|
|
68
|
+
info: S.optional(S.NullOr(HealthControllerCheck200ResponseInfoMap)),
|
|
69
|
+
error: S.optional(S.NullOr(HealthControllerCheck200ResponseErrorMap)),
|
|
70
|
+
details: S.optional(HealthControllerCheck200ResponseDetailsMap),
|
|
71
|
+
}),
|
|
72
|
+
).annotate({
|
|
73
|
+
identifier: "HealthControllerCheck200Response",
|
|
74
|
+
}) as any as S.Schema<HealthControllerCheck200Response>;
|
|
75
|
+
|
|
76
|
+
export interface HealthControllerLiveRequest {}
|
|
77
|
+
export const HealthControllerLiveRequest = /*@__PURE__*/ S.suspend(() =>
|
|
78
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/health", code: 200 })),
|
|
79
|
+
).annotate({
|
|
80
|
+
identifier: "HealthControllerLiveRequest",
|
|
81
|
+
}) as any as S.Schema<HealthControllerLiveRequest>;
|
|
82
|
+
|
|
83
|
+
export interface HealthControllerLiveResponse {}
|
|
84
|
+
export const HealthControllerLiveResponse = /*@__PURE__*/ S.suspend(() =>
|
|
85
|
+
S.Struct({}),
|
|
86
|
+
).annotate({
|
|
87
|
+
identifier: "HealthControllerLiveResponse",
|
|
88
|
+
}) as any as S.Schema<HealthControllerLiveResponse>;
|
|
89
|
+
|
|
90
|
+
export type CheckHealthControllerError = DaytonaOpError;
|
|
91
|
+
export const checkHealthController: API.OperationMethod<
|
|
92
|
+
CheckHealthControllerRequest,
|
|
93
|
+
HealthControllerCheck200Response,
|
|
94
|
+
CheckHealthControllerError,
|
|
95
|
+
DaytonaOpContext
|
|
96
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
97
|
+
input: CheckHealthControllerRequest,
|
|
98
|
+
output: HealthControllerCheck200Response,
|
|
99
|
+
errors: [UnknownDaytonaError],
|
|
100
|
+
protocol: DaytonaProtocol,
|
|
101
|
+
retry: Retry.Retry,
|
|
102
|
+
}));
|
|
103
|
+
|
|
104
|
+
export type HealthControllerLiveError = DaytonaOpError;
|
|
105
|
+
export const healthControllerLive: API.OperationMethod<
|
|
106
|
+
HealthControllerLiveRequest,
|
|
107
|
+
HealthControllerLiveResponse,
|
|
108
|
+
HealthControllerLiveError,
|
|
109
|
+
DaytonaOpContext
|
|
110
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
111
|
+
input: HealthControllerLiveRequest,
|
|
112
|
+
output: HealthControllerLiveResponse,
|
|
113
|
+
errors: [UnknownDaytonaError],
|
|
114
|
+
protocol: DaytonaProtocol,
|
|
115
|
+
retry: Retry.Retry,
|
|
116
|
+
}));
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts. Do not edit.
|
|
2
|
+
export * as apiKeys from "./api_keys.ts";
|
|
3
|
+
export * as audit from "./audit.ts";
|
|
4
|
+
export * as computerUse from "./computer_use.ts";
|
|
5
|
+
export * as config from "./config.ts";
|
|
6
|
+
export * as dockerRegistry from "./docker_registry.ts";
|
|
7
|
+
export * as fileSystem from "./file_system.ts";
|
|
8
|
+
export * as git from "./git.ts";
|
|
9
|
+
export * as health from "./health.ts";
|
|
10
|
+
export * as info from "./info.ts";
|
|
11
|
+
export * as interpreter from "./interpreter.ts";
|
|
12
|
+
export * as jobs from "./jobs.ts";
|
|
13
|
+
export * as lsp from "./lsp.ts";
|
|
14
|
+
export * as objectStorage from "./object_storage.ts";
|
|
15
|
+
export * as organizations from "./organizations.ts";
|
|
16
|
+
export * as port from "./port.ts";
|
|
17
|
+
export * as preview from "./preview.ts";
|
|
18
|
+
export * as process from "./process.ts";
|
|
19
|
+
export * as regions from "./regions.ts";
|
|
20
|
+
export * as runners from "./runners.ts";
|
|
21
|
+
export * as sandbox from "./sandbox.ts";
|
|
22
|
+
export * as secret from "./secret.ts";
|
|
23
|
+
export * as server from "./server.ts";
|
|
24
|
+
export * as snapshots from "./snapshots.ts";
|
|
25
|
+
export * as system from "./system.ts";
|
|
26
|
+
export * as telemetry from "./telemetry.ts";
|
|
27
|
+
export * as usage from "./usage.ts";
|
|
28
|
+
export * as users from "./users.ts";
|
|
29
|
+
export * as volumes from "./volumes.ts";
|
|
30
|
+
export * as warmPools from "./warm_pools.ts";
|
|
31
|
+
export * as webhooks from "./webhooks.ts";
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-daytona/specs/{openapi,toolbox-openapi,analytics-openapi}.json). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.ts";
|
|
5
|
+
import {
|
|
6
|
+
DaytonaProtocol,
|
|
7
|
+
type DaytonaOpError,
|
|
8
|
+
type DaytonaOpContext,
|
|
9
|
+
} from "../protocol.ts";
|
|
10
|
+
import { UnknownDaytonaError } from "../errors.ts";
|
|
11
|
+
import * as Retry from "../retry.ts";
|
|
12
|
+
|
|
13
|
+
export type { DaytonaOpError, DaytonaOpContext };
|
|
14
|
+
|
|
15
|
+
export interface GetUserHomeDirRequest {}
|
|
16
|
+
export const GetUserHomeDirRequest = /*@__PURE__*/ S.suspend(() =>
|
|
17
|
+
S.Struct({}).pipe(
|
|
18
|
+
T.Http({ method: "GET", uri: "/user-home-dir", code: 200 }),
|
|
19
|
+
),
|
|
20
|
+
).annotate({
|
|
21
|
+
identifier: "GetUserHomeDirRequest",
|
|
22
|
+
}) as any as S.Schema<GetUserHomeDirRequest>;
|
|
23
|
+
|
|
24
|
+
export interface UserHomeDirResponse {
|
|
25
|
+
dir: string;
|
|
26
|
+
}
|
|
27
|
+
export const UserHomeDirResponse = /*@__PURE__*/ S.suspend(() =>
|
|
28
|
+
S.Struct({
|
|
29
|
+
dir: S.String,
|
|
30
|
+
}),
|
|
31
|
+
).annotate({
|
|
32
|
+
identifier: "UserHomeDirResponse",
|
|
33
|
+
}) as any as S.Schema<UserHomeDirResponse>;
|
|
34
|
+
|
|
35
|
+
export interface GetVersionRequest {}
|
|
36
|
+
export const GetVersionRequest = /*@__PURE__*/ S.suspend(() =>
|
|
37
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/version", code: 200 })),
|
|
38
|
+
).annotate({
|
|
39
|
+
identifier: "GetVersionRequest",
|
|
40
|
+
}) as any as S.Schema<GetVersionRequest>;
|
|
41
|
+
|
|
42
|
+
export type GetVersionResponseBodyMap = { [key: string]: string | undefined };
|
|
43
|
+
export const GetVersionResponseBodyMap = /*@__PURE__*/ S.Record(
|
|
44
|
+
S.String,
|
|
45
|
+
S.String,
|
|
46
|
+
) as any as S.Schema<GetVersionResponseBodyMap>;
|
|
47
|
+
|
|
48
|
+
export type GetVersionResponse = GetVersionResponseBodyMap;
|
|
49
|
+
export const GetVersionResponse = /*@__PURE__*/ S.suspend(() =>
|
|
50
|
+
GetVersionResponseBodyMap.pipe(T.RawResponseRoot()),
|
|
51
|
+
).annotate({
|
|
52
|
+
identifier: "GetVersionResponse",
|
|
53
|
+
}) as any as S.Schema<GetVersionResponse>;
|
|
54
|
+
|
|
55
|
+
export interface GetWorkDirRequest {}
|
|
56
|
+
export const GetWorkDirRequest = /*@__PURE__*/ S.suspend(() =>
|
|
57
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/work-dir", code: 200 })),
|
|
58
|
+
).annotate({
|
|
59
|
+
identifier: "GetWorkDirRequest",
|
|
60
|
+
}) as any as S.Schema<GetWorkDirRequest>;
|
|
61
|
+
|
|
62
|
+
export interface WorkDirResponse {
|
|
63
|
+
dir: string;
|
|
64
|
+
}
|
|
65
|
+
export const WorkDirResponse = /*@__PURE__*/ S.suspend(() =>
|
|
66
|
+
S.Struct({
|
|
67
|
+
dir: S.String,
|
|
68
|
+
}),
|
|
69
|
+
).annotate({
|
|
70
|
+
identifier: "WorkDirResponse",
|
|
71
|
+
}) as any as S.Schema<WorkDirResponse>;
|
|
72
|
+
|
|
73
|
+
export type GetUserHomeDirError = DaytonaOpError;
|
|
74
|
+
/** Get user home directory Get the current user home directory path. */
|
|
75
|
+
export const getUserHomeDir: API.OperationMethod<
|
|
76
|
+
GetUserHomeDirRequest,
|
|
77
|
+
UserHomeDirResponse,
|
|
78
|
+
GetUserHomeDirError,
|
|
79
|
+
DaytonaOpContext
|
|
80
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
81
|
+
input: GetUserHomeDirRequest,
|
|
82
|
+
output: UserHomeDirResponse,
|
|
83
|
+
errors: [UnknownDaytonaError],
|
|
84
|
+
protocol: DaytonaProtocol,
|
|
85
|
+
retry: Retry.Retry,
|
|
86
|
+
}));
|
|
87
|
+
|
|
88
|
+
export type GetVersionError = DaytonaOpError;
|
|
89
|
+
/** Get version Get the current daemon version */
|
|
90
|
+
export const getVersion: API.OperationMethod<
|
|
91
|
+
GetVersionRequest,
|
|
92
|
+
GetVersionResponse,
|
|
93
|
+
GetVersionError,
|
|
94
|
+
DaytonaOpContext
|
|
95
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
96
|
+
input: GetVersionRequest,
|
|
97
|
+
output: GetVersionResponse,
|
|
98
|
+
errors: [UnknownDaytonaError],
|
|
99
|
+
protocol: DaytonaProtocol,
|
|
100
|
+
retry: Retry.Retry,
|
|
101
|
+
}));
|
|
102
|
+
|
|
103
|
+
export type GetWorkDirError = DaytonaOpError;
|
|
104
|
+
/** Get working directory Get the current working directory path. This is default directory used for running commands. */
|
|
105
|
+
export const getWorkDir: API.OperationMethod<
|
|
106
|
+
GetWorkDirRequest,
|
|
107
|
+
WorkDirResponse,
|
|
108
|
+
GetWorkDirError,
|
|
109
|
+
DaytonaOpContext
|
|
110
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
111
|
+
input: GetWorkDirRequest,
|
|
112
|
+
output: WorkDirResponse,
|
|
113
|
+
errors: [UnknownDaytonaError],
|
|
114
|
+
protocol: DaytonaProtocol,
|
|
115
|
+
retry: Retry.Retry,
|
|
116
|
+
}));
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-daytona/specs/{openapi,toolbox-openapi,analytics-openapi}.json). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.ts";
|
|
5
|
+
import {
|
|
6
|
+
DaytonaProtocol,
|
|
7
|
+
type DaytonaOpError,
|
|
8
|
+
type DaytonaOpContext,
|
|
9
|
+
} from "../protocol.ts";
|
|
10
|
+
import { UnknownDaytonaError } from "../errors.ts";
|
|
11
|
+
import * as Retry from "../retry.ts";
|
|
12
|
+
|
|
13
|
+
export type { DaytonaOpError, DaytonaOpContext };
|
|
14
|
+
|
|
15
|
+
export interface CreateInterpreterContextRequest {
|
|
16
|
+
cwd?: string;
|
|
17
|
+
language?: string;
|
|
18
|
+
}
|
|
19
|
+
export const CreateInterpreterContextRequest = /*@__PURE__*/ S.suspend(() =>
|
|
20
|
+
S.Struct({
|
|
21
|
+
cwd: S.optional(S.String),
|
|
22
|
+
language: S.optional(S.String),
|
|
23
|
+
}).pipe(
|
|
24
|
+
T.Http({ method: "POST", uri: "/process/interpreter/context", code: 200 }),
|
|
25
|
+
),
|
|
26
|
+
).annotate({
|
|
27
|
+
identifier: "CreateInterpreterContextRequest",
|
|
28
|
+
}) as any as S.Schema<CreateInterpreterContextRequest>;
|
|
29
|
+
|
|
30
|
+
export interface InterpreterContext {
|
|
31
|
+
active: boolean;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
cwd: string;
|
|
34
|
+
id: string;
|
|
35
|
+
language: string;
|
|
36
|
+
}
|
|
37
|
+
export const InterpreterContext = /*@__PURE__*/ S.suspend(() =>
|
|
38
|
+
S.Struct({
|
|
39
|
+
active: S.Boolean,
|
|
40
|
+
createdAt: S.String,
|
|
41
|
+
cwd: S.String,
|
|
42
|
+
id: S.String,
|
|
43
|
+
language: S.String,
|
|
44
|
+
}),
|
|
45
|
+
).annotate({
|
|
46
|
+
identifier: "InterpreterContext",
|
|
47
|
+
}) as any as S.Schema<InterpreterContext>;
|
|
48
|
+
|
|
49
|
+
export interface DeleteInterpreterContextRequest {
|
|
50
|
+
/** Context ID */
|
|
51
|
+
id: string;
|
|
52
|
+
}
|
|
53
|
+
export const DeleteInterpreterContextRequest = /*@__PURE__*/ S.suspend(() =>
|
|
54
|
+
S.Struct({
|
|
55
|
+
id: S.String.pipe(T.Label()),
|
|
56
|
+
}).pipe(
|
|
57
|
+
T.Http({
|
|
58
|
+
method: "DELETE",
|
|
59
|
+
uri: "/process/interpreter/context/{id}",
|
|
60
|
+
code: 200,
|
|
61
|
+
}),
|
|
62
|
+
),
|
|
63
|
+
).annotate({
|
|
64
|
+
identifier: "DeleteInterpreterContextRequest",
|
|
65
|
+
}) as any as S.Schema<DeleteInterpreterContextRequest>;
|
|
66
|
+
|
|
67
|
+
export type DeleteInterpreterContextResponseBodyMap = {
|
|
68
|
+
[key: string]: string | undefined;
|
|
69
|
+
};
|
|
70
|
+
export const DeleteInterpreterContextResponseBodyMap = /*@__PURE__*/ S.Record(
|
|
71
|
+
S.String,
|
|
72
|
+
S.String,
|
|
73
|
+
) as any as S.Schema<DeleteInterpreterContextResponseBodyMap>;
|
|
74
|
+
|
|
75
|
+
export type DeleteInterpreterContextResponse =
|
|
76
|
+
DeleteInterpreterContextResponseBodyMap;
|
|
77
|
+
export const DeleteInterpreterContextResponse = /*@__PURE__*/ S.suspend(() =>
|
|
78
|
+
DeleteInterpreterContextResponseBodyMap.pipe(T.RawResponseRoot()),
|
|
79
|
+
).annotate({
|
|
80
|
+
identifier: "DeleteInterpreterContextResponse",
|
|
81
|
+
}) as any as S.Schema<DeleteInterpreterContextResponse>;
|
|
82
|
+
|
|
83
|
+
export interface ExecuteInterpreterCodeRequest {}
|
|
84
|
+
export const ExecuteInterpreterCodeRequest = /*@__PURE__*/ S.suspend(() =>
|
|
85
|
+
S.Struct({}).pipe(
|
|
86
|
+
T.Http({ method: "GET", uri: "/process/interpreter/execute", code: 200 }),
|
|
87
|
+
),
|
|
88
|
+
).annotate({
|
|
89
|
+
identifier: "ExecuteInterpreterCodeRequest",
|
|
90
|
+
}) as any as S.Schema<ExecuteInterpreterCodeRequest>;
|
|
91
|
+
|
|
92
|
+
export interface ExecuteInterpreterCodeResponse {}
|
|
93
|
+
export const ExecuteInterpreterCodeResponse = /*@__PURE__*/ S.suspend(() =>
|
|
94
|
+
S.Struct({}),
|
|
95
|
+
).annotate({
|
|
96
|
+
identifier: "ExecuteInterpreterCodeResponse",
|
|
97
|
+
}) as any as S.Schema<ExecuteInterpreterCodeResponse>;
|
|
98
|
+
|
|
99
|
+
export interface ListInterpreterContextsRequest {}
|
|
100
|
+
export const ListInterpreterContextsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
101
|
+
S.Struct({}).pipe(
|
|
102
|
+
T.Http({ method: "GET", uri: "/process/interpreter/context", code: 200 }),
|
|
103
|
+
),
|
|
104
|
+
).annotate({
|
|
105
|
+
identifier: "ListInterpreterContextsRequest",
|
|
106
|
+
}) as any as S.Schema<ListInterpreterContextsRequest>;
|
|
107
|
+
|
|
108
|
+
export type ListContextsResponseContextsList = Array<InterpreterContext>;
|
|
109
|
+
export const ListContextsResponseContextsList = /*@__PURE__*/ S.Array(
|
|
110
|
+
InterpreterContext,
|
|
111
|
+
) as any as S.Schema<ListContextsResponseContextsList>;
|
|
112
|
+
|
|
113
|
+
export interface ListContextsResponse {
|
|
114
|
+
contexts: ListContextsResponseContextsList;
|
|
115
|
+
}
|
|
116
|
+
export const ListContextsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
117
|
+
S.Struct({
|
|
118
|
+
contexts: ListContextsResponseContextsList,
|
|
119
|
+
}),
|
|
120
|
+
).annotate({
|
|
121
|
+
identifier: "ListContextsResponse",
|
|
122
|
+
}) as any as S.Schema<ListContextsResponse>;
|
|
123
|
+
|
|
124
|
+
export type CreateInterpreterContextError = DaytonaOpError;
|
|
125
|
+
/** Create a new interpreter context Creates a new isolated interpreter context with optional working directory and language */
|
|
126
|
+
export const createInterpreterContext: API.OperationMethod<
|
|
127
|
+
CreateInterpreterContextRequest,
|
|
128
|
+
InterpreterContext,
|
|
129
|
+
CreateInterpreterContextError,
|
|
130
|
+
DaytonaOpContext
|
|
131
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
132
|
+
input: CreateInterpreterContextRequest,
|
|
133
|
+
output: InterpreterContext,
|
|
134
|
+
errors: [UnknownDaytonaError],
|
|
135
|
+
protocol: DaytonaProtocol,
|
|
136
|
+
retry: Retry.Retry,
|
|
137
|
+
}));
|
|
138
|
+
|
|
139
|
+
export type DeleteInterpreterContextError = DaytonaOpError;
|
|
140
|
+
/** Delete an interpreter context Deletes an interpreter context and shuts down its worker process */
|
|
141
|
+
export const deleteInterpreterContext: API.OperationMethod<
|
|
142
|
+
DeleteInterpreterContextRequest,
|
|
143
|
+
DeleteInterpreterContextResponse,
|
|
144
|
+
DeleteInterpreterContextError,
|
|
145
|
+
DaytonaOpContext
|
|
146
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
147
|
+
input: DeleteInterpreterContextRequest,
|
|
148
|
+
output: DeleteInterpreterContextResponse,
|
|
149
|
+
errors: [UnknownDaytonaError],
|
|
150
|
+
protocol: DaytonaProtocol,
|
|
151
|
+
retry: Retry.Retry,
|
|
152
|
+
}));
|
|
153
|
+
|
|
154
|
+
export type ExecuteInterpreterCodeError = DaytonaOpError;
|
|
155
|
+
/** Execute code in an interpreter context Executes code in a specified context (or default context if not specified) via WebSocket streaming */
|
|
156
|
+
export const executeInterpreterCode: API.OperationMethod<
|
|
157
|
+
ExecuteInterpreterCodeRequest,
|
|
158
|
+
ExecuteInterpreterCodeResponse,
|
|
159
|
+
ExecuteInterpreterCodeError,
|
|
160
|
+
DaytonaOpContext
|
|
161
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
162
|
+
input: ExecuteInterpreterCodeRequest,
|
|
163
|
+
output: ExecuteInterpreterCodeResponse,
|
|
164
|
+
errors: [UnknownDaytonaError],
|
|
165
|
+
protocol: DaytonaProtocol,
|
|
166
|
+
retry: Retry.Retry,
|
|
167
|
+
}));
|
|
168
|
+
|
|
169
|
+
export type ListInterpreterContextsError = DaytonaOpError;
|
|
170
|
+
/** List all user-created interpreter contexts Returns information about all user-created interpreter contexts (excludes default context) */
|
|
171
|
+
export const listInterpreterContexts: API.OperationMethod<
|
|
172
|
+
ListInterpreterContextsRequest,
|
|
173
|
+
ListContextsResponse,
|
|
174
|
+
ListInterpreterContextsError,
|
|
175
|
+
DaytonaOpContext
|
|
176
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
177
|
+
input: ListInterpreterContextsRequest,
|
|
178
|
+
output: ListContextsResponse,
|
|
179
|
+
errors: [UnknownDaytonaError],
|
|
180
|
+
protocol: DaytonaProtocol,
|
|
181
|
+
retry: Retry.Retry,
|
|
182
|
+
}));
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-daytona/specs/{openapi,toolbox-openapi,analytics-openapi}.json). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.ts";
|
|
5
|
+
import {
|
|
6
|
+
DaytonaProtocol,
|
|
7
|
+
type DaytonaOpError,
|
|
8
|
+
type DaytonaOpContext,
|
|
9
|
+
} from "../protocol.ts";
|
|
10
|
+
import { UnknownDaytonaError } from "../errors.ts";
|
|
11
|
+
import * as Retry from "../retry.ts";
|
|
12
|
+
|
|
13
|
+
export type { DaytonaOpError, DaytonaOpContext };
|
|
14
|
+
|
|
15
|
+
export interface GetJobRequest {
|
|
16
|
+
/** ID of the job */
|
|
17
|
+
jobId: string;
|
|
18
|
+
}
|
|
19
|
+
export const GetJobRequest = /*@__PURE__*/ S.suspend(() =>
|
|
20
|
+
S.Struct({
|
|
21
|
+
jobId: S.String.pipe(T.Label()),
|
|
22
|
+
}).pipe(T.Http({ method: "GET", uri: "/jobs/{jobId}", code: 200 })),
|
|
23
|
+
).annotate({ identifier: "GetJobRequest" }) as any as S.Schema<GetJobRequest>;
|
|
24
|
+
|
|
25
|
+
/** The type of the job */
|
|
26
|
+
export type JobType =
|
|
27
|
+
| "CREATE_SANDBOX"
|
|
28
|
+
| "START_SANDBOX"
|
|
29
|
+
| "STOP_SANDBOX"
|
|
30
|
+
| "DESTROY_SANDBOX"
|
|
31
|
+
| "RESIZE_SANDBOX"
|
|
32
|
+
| "CREATE_BACKUP"
|
|
33
|
+
| "BUILD_SNAPSHOT"
|
|
34
|
+
| "PULL_SNAPSHOT"
|
|
35
|
+
| "RECOVER_SANDBOX"
|
|
36
|
+
| "INSPECT_SNAPSHOT_IN_REGISTRY"
|
|
37
|
+
| "REMOVE_SNAPSHOT"
|
|
38
|
+
| "UPDATE_SANDBOX_NETWORK_SETTINGS"
|
|
39
|
+
| "UPDATE_SANDBOX_SECRETS"
|
|
40
|
+
| "SNAPSHOT_SANDBOX"
|
|
41
|
+
| "FORK_SANDBOX"
|
|
42
|
+
| "PAUSE_SANDBOX";
|
|
43
|
+
export const JobType = S.String;
|
|
44
|
+
|
|
45
|
+
export type JobStatus = "PENDING" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
|
|
46
|
+
export const JobStatus = S.String;
|
|
47
|
+
|
|
48
|
+
/** The type of resource this job operates on */
|
|
49
|
+
export type JobResourceType = "SANDBOX" | "SNAPSHOT" | "BACKUP";
|
|
50
|
+
export const JobResourceType = S.String;
|
|
51
|
+
|
|
52
|
+
/** OpenTelemetry trace context for distributed tracing (W3C Trace Context format) */
|
|
53
|
+
export type JobTraceContextMap = { [key: string]: unknown | undefined };
|
|
54
|
+
export const JobTraceContextMap = /*@__PURE__*/ S.Record(
|
|
55
|
+
S.String,
|
|
56
|
+
S.Unknown,
|
|
57
|
+
) as any as S.Schema<JobTraceContextMap>;
|
|
58
|
+
|
|
59
|
+
export interface Job {
|
|
60
|
+
/** The ID of the job */
|
|
61
|
+
id: string;
|
|
62
|
+
/** The type of the job */
|
|
63
|
+
type: JobType;
|
|
64
|
+
/** The status of the job */
|
|
65
|
+
status: JobStatus;
|
|
66
|
+
/** The type of resource this job operates on */
|
|
67
|
+
resourceType: JobResourceType;
|
|
68
|
+
/** The ID of the resource this job operates on (sandboxId, snapshotRef, etc.) */
|
|
69
|
+
resourceId: string;
|
|
70
|
+
/** Job-specific JSON-encoded payload data (operational metadata) */
|
|
71
|
+
payload?: string;
|
|
72
|
+
/** OpenTelemetry trace context for distributed tracing (W3C Trace Context format) */
|
|
73
|
+
traceContext?: JobTraceContextMap;
|
|
74
|
+
/** Error message if the job failed */
|
|
75
|
+
errorMessage?: string;
|
|
76
|
+
/** The creation timestamp of the job */
|
|
77
|
+
createdAt: string;
|
|
78
|
+
/** The last update timestamp of the job */
|
|
79
|
+
updatedAt?: string;
|
|
80
|
+
}
|
|
81
|
+
export const Job = /*@__PURE__*/ S.suspend(() =>
|
|
82
|
+
S.Struct({
|
|
83
|
+
id: S.String,
|
|
84
|
+
type: JobType,
|
|
85
|
+
status: JobStatus,
|
|
86
|
+
resourceType: JobResourceType,
|
|
87
|
+
resourceId: S.String,
|
|
88
|
+
payload: S.optional(S.String),
|
|
89
|
+
traceContext: S.optional(JobTraceContextMap),
|
|
90
|
+
errorMessage: S.optional(S.String),
|
|
91
|
+
createdAt: S.String,
|
|
92
|
+
updatedAt: S.optional(S.String),
|
|
93
|
+
}),
|
|
94
|
+
).annotate({ identifier: "Job" }) as any as S.Schema<Job>;
|
|
95
|
+
|
|
96
|
+
export interface ListJobsRequest {
|
|
97
|
+
/** Page number of the results */
|
|
98
|
+
page?: number;
|
|
99
|
+
/** Maximum number of jobs to return (default: 100, max: 500) */
|
|
100
|
+
limit?: number;
|
|
101
|
+
/** Filter jobs by status */
|
|
102
|
+
status?: JobStatus | (string & {});
|
|
103
|
+
/** Number of jobs to skip for pagination (default: 0) */
|
|
104
|
+
offset?: number;
|
|
105
|
+
}
|
|
106
|
+
export const ListJobsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
107
|
+
S.Struct({
|
|
108
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
109
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
110
|
+
status: S.optional(JobStatus.pipe(T.Query())),
|
|
111
|
+
offset: S.optional(S.Number.pipe(T.Query())),
|
|
112
|
+
}).pipe(T.Http({ method: "GET", uri: "/jobs", code: 200 })),
|
|
113
|
+
).annotate({
|
|
114
|
+
identifier: "ListJobsRequest",
|
|
115
|
+
}) as any as S.Schema<ListJobsRequest>;
|
|
116
|
+
|
|
117
|
+
export type PaginatedJobsItemsList = Array<Job>;
|
|
118
|
+
export const PaginatedJobsItemsList = /*@__PURE__*/ S.Array(
|
|
119
|
+
Job,
|
|
120
|
+
) as any as S.Schema<PaginatedJobsItemsList>;
|
|
121
|
+
|
|
122
|
+
export interface PaginatedJobs {
|
|
123
|
+
items: PaginatedJobsItemsList;
|
|
124
|
+
total: number;
|
|
125
|
+
page: number;
|
|
126
|
+
totalPages: number;
|
|
127
|
+
}
|
|
128
|
+
export const PaginatedJobs = /*@__PURE__*/ S.suspend(() =>
|
|
129
|
+
S.Struct({
|
|
130
|
+
items: PaginatedJobsItemsList,
|
|
131
|
+
total: S.Number,
|
|
132
|
+
page: S.Number,
|
|
133
|
+
totalPages: S.Number,
|
|
134
|
+
}),
|
|
135
|
+
).annotate({ identifier: "PaginatedJobs" }) as any as S.Schema<PaginatedJobs>;
|
|
136
|
+
|
|
137
|
+
export interface PollJobsRequest {
|
|
138
|
+
/** Timeout in seconds for long polling (default: 30, max: 60) */
|
|
139
|
+
timeout?: number;
|
|
140
|
+
/** Maximum number of jobs to return (default: 10, max: 100) */
|
|
141
|
+
limit?: number;
|
|
142
|
+
}
|
|
143
|
+
export const PollJobsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
144
|
+
S.Struct({
|
|
145
|
+
timeout: S.optional(S.Number.pipe(T.Query())),
|
|
146
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
147
|
+
}).pipe(T.Http({ method: "GET", uri: "/jobs/poll", code: 200 })),
|
|
148
|
+
).annotate({
|
|
149
|
+
identifier: "PollJobsRequest",
|
|
150
|
+
}) as any as S.Schema<PollJobsRequest>;
|
|
151
|
+
|
|
152
|
+
/** List of jobs */
|
|
153
|
+
export type PollJobsResponseJobsList = Array<Job>;
|
|
154
|
+
export const PollJobsResponseJobsList = /*@__PURE__*/ S.Array(
|
|
155
|
+
Job,
|
|
156
|
+
) as any as S.Schema<PollJobsResponseJobsList>;
|
|
157
|
+
|
|
158
|
+
export interface PollJobsResponse {
|
|
159
|
+
/** List of jobs */
|
|
160
|
+
jobs: PollJobsResponseJobsList;
|
|
161
|
+
}
|
|
162
|
+
export const PollJobsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
163
|
+
S.Struct({
|
|
164
|
+
jobs: PollJobsResponseJobsList,
|
|
165
|
+
}),
|
|
166
|
+
).annotate({
|
|
167
|
+
identifier: "PollJobsResponse",
|
|
168
|
+
}) as any as S.Schema<PollJobsResponse>;
|
|
169
|
+
|
|
170
|
+
export interface UpdateJobStatusRequest {
|
|
171
|
+
/** ID of the job */
|
|
172
|
+
jobId: string;
|
|
173
|
+
/** The new status of the job */
|
|
174
|
+
status: JobStatus | (string & {});
|
|
175
|
+
/** Error message if the job failed */
|
|
176
|
+
errorMessage?: string;
|
|
177
|
+
/** Result metadata for the job */
|
|
178
|
+
resultMetadata?: string;
|
|
179
|
+
}
|
|
180
|
+
export const UpdateJobStatusRequest = /*@__PURE__*/ S.suspend(() =>
|
|
181
|
+
S.Struct({
|
|
182
|
+
jobId: S.String.pipe(T.Label()),
|
|
183
|
+
status: JobStatus,
|
|
184
|
+
errorMessage: S.optional(S.String),
|
|
185
|
+
resultMetadata: S.optional(S.String),
|
|
186
|
+
}).pipe(T.Http({ method: "POST", uri: "/jobs/{jobId}/status", code: 200 })),
|
|
187
|
+
).annotate({
|
|
188
|
+
identifier: "UpdateJobStatusRequest",
|
|
189
|
+
}) as any as S.Schema<UpdateJobStatusRequest>;
|
|
190
|
+
|
|
191
|
+
export type GetJobError = DaytonaOpError;
|
|
192
|
+
/** Get job details */
|
|
193
|
+
export const getJob: API.OperationMethod<
|
|
194
|
+
GetJobRequest,
|
|
195
|
+
Job,
|
|
196
|
+
GetJobError,
|
|
197
|
+
DaytonaOpContext
|
|
198
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
199
|
+
input: GetJobRequest,
|
|
200
|
+
output: Job,
|
|
201
|
+
errors: [UnknownDaytonaError],
|
|
202
|
+
protocol: DaytonaProtocol,
|
|
203
|
+
retry: Retry.Retry,
|
|
204
|
+
}));
|
|
205
|
+
|
|
206
|
+
export type ListJobsError = DaytonaOpError;
|
|
207
|
+
/** List jobs for the runner Returns a paginated list of jobs for the runner, optionally filtered by status. */
|
|
208
|
+
export const listJobs: API.OperationMethod<
|
|
209
|
+
ListJobsRequest,
|
|
210
|
+
PaginatedJobs,
|
|
211
|
+
ListJobsError,
|
|
212
|
+
DaytonaOpContext
|
|
213
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
214
|
+
input: ListJobsRequest,
|
|
215
|
+
output: PaginatedJobs,
|
|
216
|
+
errors: [UnknownDaytonaError],
|
|
217
|
+
protocol: DaytonaProtocol,
|
|
218
|
+
retry: Retry.Retry,
|
|
219
|
+
}));
|
|
220
|
+
|
|
221
|
+
export type PollJobsError = DaytonaOpError;
|
|
222
|
+
/** Long poll for jobs Long poll endpoint for runners to fetch pending jobs. Returns immediately if jobs are available, otherwise waits up to timeout seconds. */
|
|
223
|
+
export const pollJobs: API.OperationMethod<
|
|
224
|
+
PollJobsRequest,
|
|
225
|
+
PollJobsResponse,
|
|
226
|
+
PollJobsError,
|
|
227
|
+
DaytonaOpContext
|
|
228
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
229
|
+
input: PollJobsRequest,
|
|
230
|
+
output: PollJobsResponse,
|
|
231
|
+
errors: [UnknownDaytonaError],
|
|
232
|
+
protocol: DaytonaProtocol,
|
|
233
|
+
retry: Retry.Retry,
|
|
234
|
+
}));
|
|
235
|
+
|
|
236
|
+
export type UpdateJobStatusError = DaytonaOpError;
|
|
237
|
+
/** Update job status */
|
|
238
|
+
export const updateJobStatus: API.OperationMethod<
|
|
239
|
+
UpdateJobStatusRequest,
|
|
240
|
+
Job,
|
|
241
|
+
UpdateJobStatusError,
|
|
242
|
+
DaytonaOpContext
|
|
243
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
244
|
+
input: UpdateJobStatusRequest,
|
|
245
|
+
output: Job,
|
|
246
|
+
errors: [UnknownDaytonaError],
|
|
247
|
+
protocol: DaytonaProtocol,
|
|
248
|
+
retry: Retry.Retry,
|
|
249
|
+
}));
|