@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,87 @@
|
|
|
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 GetPortsRequest {}
|
|
16
|
+
export const GetPortsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
17
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/port", code: 200 })),
|
|
18
|
+
).annotate({
|
|
19
|
+
identifier: "GetPortsRequest",
|
|
20
|
+
}) as any as S.Schema<GetPortsRequest>;
|
|
21
|
+
|
|
22
|
+
export type PortListPortsList = Array<number>;
|
|
23
|
+
export const PortListPortsList = /*@__PURE__*/ S.Array(
|
|
24
|
+
S.Number,
|
|
25
|
+
) as any as S.Schema<PortListPortsList>;
|
|
26
|
+
|
|
27
|
+
export interface PortList {
|
|
28
|
+
ports?: PortListPortsList;
|
|
29
|
+
}
|
|
30
|
+
export const PortList = /*@__PURE__*/ S.suspend(() =>
|
|
31
|
+
S.Struct({
|
|
32
|
+
ports: S.optional(PortListPortsList),
|
|
33
|
+
}),
|
|
34
|
+
).annotate({ identifier: "PortList" }) as any as S.Schema<PortList>;
|
|
35
|
+
|
|
36
|
+
export interface IsPortInUseRequest {
|
|
37
|
+
/** Port number (3000-9999) */
|
|
38
|
+
port: number;
|
|
39
|
+
}
|
|
40
|
+
export const IsPortInUseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
41
|
+
S.Struct({
|
|
42
|
+
port: S.Number.pipe(T.Label()),
|
|
43
|
+
}).pipe(T.Http({ method: "GET", uri: "/port/{port}/in-use", code: 200 })),
|
|
44
|
+
).annotate({
|
|
45
|
+
identifier: "IsPortInUseRequest",
|
|
46
|
+
}) as any as S.Schema<IsPortInUseRequest>;
|
|
47
|
+
|
|
48
|
+
export interface IsPortInUseResponse {
|
|
49
|
+
isInUse?: boolean;
|
|
50
|
+
}
|
|
51
|
+
export const IsPortInUseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
52
|
+
S.Struct({
|
|
53
|
+
isInUse: S.optional(S.Boolean),
|
|
54
|
+
}),
|
|
55
|
+
).annotate({
|
|
56
|
+
identifier: "IsPortInUseResponse",
|
|
57
|
+
}) as any as S.Schema<IsPortInUseResponse>;
|
|
58
|
+
|
|
59
|
+
export type GetPortsError = DaytonaOpError;
|
|
60
|
+
/** Get active ports Get a list of all currently active ports */
|
|
61
|
+
export const getPorts: API.OperationMethod<
|
|
62
|
+
GetPortsRequest,
|
|
63
|
+
PortList,
|
|
64
|
+
GetPortsError,
|
|
65
|
+
DaytonaOpContext
|
|
66
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
67
|
+
input: GetPortsRequest,
|
|
68
|
+
output: PortList,
|
|
69
|
+
errors: [UnknownDaytonaError],
|
|
70
|
+
protocol: DaytonaProtocol,
|
|
71
|
+
retry: Retry.Retry,
|
|
72
|
+
}));
|
|
73
|
+
|
|
74
|
+
export type IsPortInUseError = DaytonaOpError;
|
|
75
|
+
/** Check if port is in use Check if a specific port is currently in use */
|
|
76
|
+
export const isPortInUse: API.OperationMethod<
|
|
77
|
+
IsPortInUseRequest,
|
|
78
|
+
IsPortInUseResponse,
|
|
79
|
+
IsPortInUseError,
|
|
80
|
+
DaytonaOpContext
|
|
81
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
82
|
+
input: IsPortInUseRequest,
|
|
83
|
+
output: IsPortInUseResponse,
|
|
84
|
+
errors: [UnknownDaytonaError],
|
|
85
|
+
protocol: DaytonaProtocol,
|
|
86
|
+
retry: Retry.Retry,
|
|
87
|
+
}));
|
|
@@ -0,0 +1,256 @@
|
|
|
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 GetSandboxIdFromSignedPreviewUrlTokenRequest {
|
|
16
|
+
/** Signed preview URL token */
|
|
17
|
+
signedPreviewToken: string;
|
|
18
|
+
/** Port number to get sandbox ID from signed preview URL token */
|
|
19
|
+
port: number;
|
|
20
|
+
}
|
|
21
|
+
export const GetSandboxIdFromSignedPreviewUrlTokenRequest =
|
|
22
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
23
|
+
S.Struct({
|
|
24
|
+
signedPreviewToken: S.String.pipe(T.Label()),
|
|
25
|
+
port: S.Number.pipe(T.Label()),
|
|
26
|
+
}).pipe(
|
|
27
|
+
T.Http({
|
|
28
|
+
method: "GET",
|
|
29
|
+
uri: "/preview/{signedPreviewToken}/{port}/sandbox-id",
|
|
30
|
+
code: 200,
|
|
31
|
+
}),
|
|
32
|
+
),
|
|
33
|
+
).annotate({
|
|
34
|
+
identifier: "GetSandboxIdFromSignedPreviewUrlTokenRequest",
|
|
35
|
+
}) as any as S.Schema<GetSandboxIdFromSignedPreviewUrlTokenRequest>;
|
|
36
|
+
|
|
37
|
+
export type GetSandboxIdFromSignedPreviewUrlTokenResponse = string;
|
|
38
|
+
export const GetSandboxIdFromSignedPreviewUrlTokenResponse =
|
|
39
|
+
/*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
|
|
40
|
+
identifier: "GetSandboxIdFromSignedPreviewUrlTokenResponse",
|
|
41
|
+
}) as any as S.Schema<GetSandboxIdFromSignedPreviewUrlTokenResponse>;
|
|
42
|
+
|
|
43
|
+
export interface GetSigningKeyRequest {
|
|
44
|
+
/** ID of the sandbox */
|
|
45
|
+
sandboxId: string;
|
|
46
|
+
}
|
|
47
|
+
export const GetSigningKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
48
|
+
S.Struct({
|
|
49
|
+
sandboxId: S.String.pipe(T.Label()),
|
|
50
|
+
}).pipe(
|
|
51
|
+
T.Http({
|
|
52
|
+
method: "GET",
|
|
53
|
+
uri: "/preview/{sandboxId}/signing-key",
|
|
54
|
+
code: 200,
|
|
55
|
+
}),
|
|
56
|
+
),
|
|
57
|
+
).annotate({
|
|
58
|
+
identifier: "GetSigningKeyRequest",
|
|
59
|
+
}) as any as S.Schema<GetSigningKeyRequest>;
|
|
60
|
+
|
|
61
|
+
export type GetSigningKeyResponse = string;
|
|
62
|
+
export const GetSigningKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
63
|
+
S.String.pipe(T.RawResponseRoot()),
|
|
64
|
+
).annotate({
|
|
65
|
+
identifier: "GetSigningKeyResponse",
|
|
66
|
+
}) as any as S.Schema<GetSigningKeyResponse>;
|
|
67
|
+
|
|
68
|
+
export interface HasSandboxAccessRequest {
|
|
69
|
+
sandboxId: string;
|
|
70
|
+
}
|
|
71
|
+
export const HasSandboxAccessRequest = /*@__PURE__*/ S.suspend(() =>
|
|
72
|
+
S.Struct({
|
|
73
|
+
sandboxId: S.String.pipe(T.Label()),
|
|
74
|
+
}).pipe(
|
|
75
|
+
T.Http({ method: "GET", uri: "/preview/{sandboxId}/access", code: 200 }),
|
|
76
|
+
),
|
|
77
|
+
).annotate({
|
|
78
|
+
identifier: "HasSandboxAccessRequest",
|
|
79
|
+
}) as any as S.Schema<HasSandboxAccessRequest>;
|
|
80
|
+
|
|
81
|
+
export type HasSandboxAccessResponse = boolean;
|
|
82
|
+
export const HasSandboxAccessResponse = /*@__PURE__*/ S.suspend(() =>
|
|
83
|
+
S.Boolean.pipe(T.RawResponseRoot()),
|
|
84
|
+
).annotate({
|
|
85
|
+
identifier: "HasSandboxAccessResponse",
|
|
86
|
+
}) as any as S.Schema<HasSandboxAccessResponse>;
|
|
87
|
+
|
|
88
|
+
export interface IsPreviewWarningEnabledRequest {
|
|
89
|
+
/** ID of the sandbox, or a signed preview URL token (requires the port query param) */
|
|
90
|
+
sandboxId: string;
|
|
91
|
+
/** Port the signed preview URL token was issued for. Required when sandboxId is a signed token. */
|
|
92
|
+
port?: number;
|
|
93
|
+
}
|
|
94
|
+
export const IsPreviewWarningEnabledRequest = /*@__PURE__*/ S.suspend(() =>
|
|
95
|
+
S.Struct({
|
|
96
|
+
sandboxId: S.String.pipe(T.Label()),
|
|
97
|
+
port: S.optional(S.Number.pipe(T.Query())),
|
|
98
|
+
}).pipe(
|
|
99
|
+
T.Http({
|
|
100
|
+
method: "GET",
|
|
101
|
+
uri: "/preview/{sandboxId}/preview-warning",
|
|
102
|
+
code: 200,
|
|
103
|
+
}),
|
|
104
|
+
),
|
|
105
|
+
).annotate({
|
|
106
|
+
identifier: "IsPreviewWarningEnabledRequest",
|
|
107
|
+
}) as any as S.Schema<IsPreviewWarningEnabledRequest>;
|
|
108
|
+
|
|
109
|
+
export interface PreviewWarning {
|
|
110
|
+
/** Whether the preview warning page is enabled for the sandbox */
|
|
111
|
+
enabled: boolean;
|
|
112
|
+
}
|
|
113
|
+
export const PreviewWarning = /*@__PURE__*/ S.suspend(() =>
|
|
114
|
+
S.Struct({
|
|
115
|
+
enabled: S.Boolean,
|
|
116
|
+
}),
|
|
117
|
+
).annotate({ identifier: "PreviewWarning" }) as any as S.Schema<PreviewWarning>;
|
|
118
|
+
|
|
119
|
+
export interface IsSandboxPublicRequest {
|
|
120
|
+
/** ID of the sandbox */
|
|
121
|
+
sandboxId: string;
|
|
122
|
+
}
|
|
123
|
+
export const IsSandboxPublicRequest = /*@__PURE__*/ S.suspend(() =>
|
|
124
|
+
S.Struct({
|
|
125
|
+
sandboxId: S.String.pipe(T.Label()),
|
|
126
|
+
}).pipe(
|
|
127
|
+
T.Http({ method: "GET", uri: "/preview/{sandboxId}/public", code: 200 }),
|
|
128
|
+
),
|
|
129
|
+
).annotate({
|
|
130
|
+
identifier: "IsSandboxPublicRequest",
|
|
131
|
+
}) as any as S.Schema<IsSandboxPublicRequest>;
|
|
132
|
+
|
|
133
|
+
export type IsSandboxPublicResponse = boolean;
|
|
134
|
+
export const IsSandboxPublicResponse = /*@__PURE__*/ S.suspend(() =>
|
|
135
|
+
S.Boolean.pipe(T.RawResponseRoot()),
|
|
136
|
+
).annotate({
|
|
137
|
+
identifier: "IsSandboxPublicResponse",
|
|
138
|
+
}) as any as S.Schema<IsSandboxPublicResponse>;
|
|
139
|
+
|
|
140
|
+
export interface IsValidAuthTokenRequest {
|
|
141
|
+
/** ID of the sandbox */
|
|
142
|
+
sandboxId: string;
|
|
143
|
+
/** Auth token of the sandbox */
|
|
144
|
+
authToken: string;
|
|
145
|
+
}
|
|
146
|
+
export const IsValidAuthTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
147
|
+
S.Struct({
|
|
148
|
+
sandboxId: S.String.pipe(T.Label()),
|
|
149
|
+
authToken: S.String.pipe(T.Label()),
|
|
150
|
+
}).pipe(
|
|
151
|
+
T.Http({
|
|
152
|
+
method: "GET",
|
|
153
|
+
uri: "/preview/{sandboxId}/validate/{authToken}",
|
|
154
|
+
code: 200,
|
|
155
|
+
}),
|
|
156
|
+
),
|
|
157
|
+
).annotate({
|
|
158
|
+
identifier: "IsValidAuthTokenRequest",
|
|
159
|
+
}) as any as S.Schema<IsValidAuthTokenRequest>;
|
|
160
|
+
|
|
161
|
+
export type IsValidAuthTokenResponse = boolean;
|
|
162
|
+
export const IsValidAuthTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
163
|
+
S.Boolean.pipe(T.RawResponseRoot()),
|
|
164
|
+
).annotate({
|
|
165
|
+
identifier: "IsValidAuthTokenResponse",
|
|
166
|
+
}) as any as S.Schema<IsValidAuthTokenResponse>;
|
|
167
|
+
|
|
168
|
+
export type GetSandboxIdFromSignedPreviewUrlTokenError = DaytonaOpError;
|
|
169
|
+
/** Get sandbox ID from signed preview URL token */
|
|
170
|
+
export const getSandboxIdFromSignedPreviewUrlToken: API.OperationMethod<
|
|
171
|
+
GetSandboxIdFromSignedPreviewUrlTokenRequest,
|
|
172
|
+
GetSandboxIdFromSignedPreviewUrlTokenResponse,
|
|
173
|
+
GetSandboxIdFromSignedPreviewUrlTokenError,
|
|
174
|
+
DaytonaOpContext
|
|
175
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
176
|
+
input: GetSandboxIdFromSignedPreviewUrlTokenRequest,
|
|
177
|
+
output: GetSandboxIdFromSignedPreviewUrlTokenResponse,
|
|
178
|
+
errors: [UnknownDaytonaError],
|
|
179
|
+
protocol: DaytonaProtocol,
|
|
180
|
+
retry: Retry.Retry,
|
|
181
|
+
}));
|
|
182
|
+
|
|
183
|
+
export type GetSigningKeyError = DaytonaOpError;
|
|
184
|
+
/** Get the signing key for a sandbox */
|
|
185
|
+
export const getSigningKey: API.OperationMethod<
|
|
186
|
+
GetSigningKeyRequest,
|
|
187
|
+
GetSigningKeyResponse,
|
|
188
|
+
GetSigningKeyError,
|
|
189
|
+
DaytonaOpContext
|
|
190
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
191
|
+
input: GetSigningKeyRequest,
|
|
192
|
+
output: GetSigningKeyResponse,
|
|
193
|
+
errors: [UnknownDaytonaError],
|
|
194
|
+
protocol: DaytonaProtocol,
|
|
195
|
+
retry: Retry.Retry,
|
|
196
|
+
}));
|
|
197
|
+
|
|
198
|
+
export type HasSandboxAccessError = DaytonaOpError;
|
|
199
|
+
/** Check if user has access to the sandbox */
|
|
200
|
+
export const hasSandboxAccess: API.OperationMethod<
|
|
201
|
+
HasSandboxAccessRequest,
|
|
202
|
+
HasSandboxAccessResponse,
|
|
203
|
+
HasSandboxAccessError,
|
|
204
|
+
DaytonaOpContext
|
|
205
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
206
|
+
input: HasSandboxAccessRequest,
|
|
207
|
+
output: HasSandboxAccessResponse,
|
|
208
|
+
errors: [UnknownDaytonaError],
|
|
209
|
+
protocol: DaytonaProtocol,
|
|
210
|
+
retry: Retry.Retry,
|
|
211
|
+
}));
|
|
212
|
+
|
|
213
|
+
export type IsPreviewWarningEnabledError = DaytonaOpError;
|
|
214
|
+
/** Check if the preview warning page is enabled for the sandbox */
|
|
215
|
+
export const isPreviewWarningEnabled: API.OperationMethod<
|
|
216
|
+
IsPreviewWarningEnabledRequest,
|
|
217
|
+
PreviewWarning,
|
|
218
|
+
IsPreviewWarningEnabledError,
|
|
219
|
+
DaytonaOpContext
|
|
220
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
221
|
+
input: IsPreviewWarningEnabledRequest,
|
|
222
|
+
output: PreviewWarning,
|
|
223
|
+
errors: [UnknownDaytonaError],
|
|
224
|
+
protocol: DaytonaProtocol,
|
|
225
|
+
retry: Retry.Retry,
|
|
226
|
+
}));
|
|
227
|
+
|
|
228
|
+
export type IsSandboxPublicError = DaytonaOpError;
|
|
229
|
+
/** Check if sandbox is public */
|
|
230
|
+
export const isSandboxPublic: API.OperationMethod<
|
|
231
|
+
IsSandboxPublicRequest,
|
|
232
|
+
IsSandboxPublicResponse,
|
|
233
|
+
IsSandboxPublicError,
|
|
234
|
+
DaytonaOpContext
|
|
235
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
236
|
+
input: IsSandboxPublicRequest,
|
|
237
|
+
output: IsSandboxPublicResponse,
|
|
238
|
+
errors: [UnknownDaytonaError],
|
|
239
|
+
protocol: DaytonaProtocol,
|
|
240
|
+
retry: Retry.Retry,
|
|
241
|
+
}));
|
|
242
|
+
|
|
243
|
+
export type IsValidAuthTokenError = DaytonaOpError;
|
|
244
|
+
/** Check if sandbox auth token is valid */
|
|
245
|
+
export const isValidAuthToken: API.OperationMethod<
|
|
246
|
+
IsValidAuthTokenRequest,
|
|
247
|
+
IsValidAuthTokenResponse,
|
|
248
|
+
IsValidAuthTokenError,
|
|
249
|
+
DaytonaOpContext
|
|
250
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
251
|
+
input: IsValidAuthTokenRequest,
|
|
252
|
+
output: IsValidAuthTokenResponse,
|
|
253
|
+
errors: [UnknownDaytonaError],
|
|
254
|
+
protocol: DaytonaProtocol,
|
|
255
|
+
retry: Retry.Retry,
|
|
256
|
+
}));
|