@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,1276 @@
|
|
|
1
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
2
|
+
import * as API from "@distilled.cloud/core/api";
|
|
3
|
+
import { type DaytonaOpError, type DaytonaOpContext } from "../protocol.ts";
|
|
4
|
+
export type { DaytonaOpError, DaytonaOpContext };
|
|
5
|
+
export interface ArchiveSandboxRequest {
|
|
6
|
+
sandboxIdOrName: string;
|
|
7
|
+
/** Use with JWT to specify the organization ID */
|
|
8
|
+
xDaytonaOrganizationID?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const ArchiveSandboxRequest: S.Schema<ArchiveSandboxRequest>;
|
|
11
|
+
/** Environment variables for the sandbox */
|
|
12
|
+
export type SandboxEnvMap = {
|
|
13
|
+
[key: string]: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
export declare const SandboxEnvMap: S.Schema<SandboxEnvMap>;
|
|
16
|
+
/** Labels for the sandbox */
|
|
17
|
+
export type SandboxLabelsMap = {
|
|
18
|
+
[key: string]: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
export declare const SandboxLabelsMap: S.Schema<SandboxLabelsMap>;
|
|
21
|
+
export type GpuType = "H100" | "H200" | "RTX-PRO-6000" | "RTX-4090" | "RTX-5090" | "MI355X";
|
|
22
|
+
export declare const GpuType: any;
|
|
23
|
+
export type SandboxState = "creating" | "restoring" | "destroyed" | "destroying" | "started" | "stopped" | "starting" | "stopping" | "error" | "build_failed" | "pending_build" | "building_snapshot" | "unknown" | "pulling_snapshot" | "archived" | "archiving" | "resizing" | "snapshotting" | "forking" | "pausing" | "paused" | "resuming";
|
|
24
|
+
export declare const SandboxState: any;
|
|
25
|
+
/** The desired state of the sandbox */
|
|
26
|
+
export type SandboxDesiredState = "destroyed" | "started" | "stopped" | "resized" | "archived" | "paused";
|
|
27
|
+
export declare const SandboxDesiredState: any;
|
|
28
|
+
/** The state of the backup */
|
|
29
|
+
export type SandboxBackupState = "None" | "Pending" | "InProgress" | "Completed" | "Error";
|
|
30
|
+
export declare const SandboxBackupState: any;
|
|
31
|
+
export interface SandboxVolume {
|
|
32
|
+
/** The ID or name of the volume. Resolved to the volume ID on sandbox create. */
|
|
33
|
+
volumeId: string;
|
|
34
|
+
/** The mount path for the volume */
|
|
35
|
+
mountPath: string;
|
|
36
|
+
/** Optional subpath within the volume to mount. When specified, only this S3 prefix will be accessible. When omitted, the entire volume is mounted. */
|
|
37
|
+
subpath?: string;
|
|
38
|
+
}
|
|
39
|
+
export declare const SandboxVolume: S.Schema<SandboxVolume>;
|
|
40
|
+
/** Array of volumes attached to the sandbox */
|
|
41
|
+
export type SandboxVolumesList = Array<SandboxVolume>;
|
|
42
|
+
export declare const SandboxVolumesList: S.Schema<SandboxVolumesList>;
|
|
43
|
+
/** The context hashes used for the build */
|
|
44
|
+
export type BuildInfoContextHashesList = Array<string>;
|
|
45
|
+
export declare const BuildInfoContextHashesList: S.Schema<BuildInfoContextHashesList>;
|
|
46
|
+
export interface BuildInfo {
|
|
47
|
+
/** The Dockerfile content used for the build */
|
|
48
|
+
dockerfileContent?: string;
|
|
49
|
+
/** The context hashes used for the build */
|
|
50
|
+
contextHashes?: BuildInfoContextHashesList;
|
|
51
|
+
/** The creation timestamp */
|
|
52
|
+
createdAt: string;
|
|
53
|
+
/** The last update timestamp */
|
|
54
|
+
updatedAt: string;
|
|
55
|
+
/** The snapshot reference */
|
|
56
|
+
snapshotRef: string;
|
|
57
|
+
}
|
|
58
|
+
export declare const BuildInfo: S.Schema<BuildInfo>;
|
|
59
|
+
/** The class of the sandbox */
|
|
60
|
+
export type SandboxSandboxClass = "linux-vm" | "container" | "android" | "windows";
|
|
61
|
+
export declare const SandboxSandboxClass: any;
|
|
62
|
+
export interface Sandbox2 {
|
|
63
|
+
/** The ID of the sandbox */
|
|
64
|
+
id: string;
|
|
65
|
+
/** The organization ID of the sandbox */
|
|
66
|
+
organizationId: string;
|
|
67
|
+
/** The name of the sandbox */
|
|
68
|
+
name: string;
|
|
69
|
+
/** The snapshot used for the sandbox */
|
|
70
|
+
snapshot?: string;
|
|
71
|
+
/** The user associated with the project */
|
|
72
|
+
user: string;
|
|
73
|
+
/** Environment variables for the sandbox */
|
|
74
|
+
env: SandboxEnvMap;
|
|
75
|
+
/** Labels for the sandbox */
|
|
76
|
+
labels: SandboxLabelsMap;
|
|
77
|
+
/** Whether the sandbox http preview is public */
|
|
78
|
+
public: boolean;
|
|
79
|
+
/** Whether to block all network access for the sandbox */
|
|
80
|
+
networkBlockAll: boolean;
|
|
81
|
+
/** Comma-separated list of allowed CIDR network addresses for the sandbox */
|
|
82
|
+
networkAllowList?: string;
|
|
83
|
+
/** Comma-separated list of allowed domains for the sandbox */
|
|
84
|
+
domainAllowList?: string;
|
|
85
|
+
/** Outbound proxy URL the sandbox HTTP(S) traffic is routed through. Applied via the HTTP(S)_PROXY environment variables (convenience routing); network-layer enforcement applies only when the sandbox also has a domainAllowList. Only returned on single-sandbox reads — never on list responses. */
|
|
86
|
+
outboundProxyUrl?: string;
|
|
87
|
+
/** OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector and is not available in the Daytona analytics API or dashboard. Only returned on single-sandbox reads — never on list responses. */
|
|
88
|
+
otelEndpointOverride?: string;
|
|
89
|
+
/** The target environment for the sandbox */
|
|
90
|
+
target: string;
|
|
91
|
+
/** The CPU quota for the sandbox */
|
|
92
|
+
cpu: number;
|
|
93
|
+
/** The GPU quota for the sandbox */
|
|
94
|
+
gpu: number;
|
|
95
|
+
/** Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. */
|
|
96
|
+
spot?: boolean;
|
|
97
|
+
/** When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. */
|
|
98
|
+
spotEvictedAt?: string;
|
|
99
|
+
/** The GPU type assigned to the sandbox */
|
|
100
|
+
gpuType?: GpuType;
|
|
101
|
+
/** The memory quota for the sandbox */
|
|
102
|
+
memory: number;
|
|
103
|
+
/** The disk quota for the sandbox */
|
|
104
|
+
disk: number;
|
|
105
|
+
/** The state of the sandbox */
|
|
106
|
+
state?: SandboxState;
|
|
107
|
+
/** The desired state of the sandbox */
|
|
108
|
+
desiredState?: SandboxDesiredState;
|
|
109
|
+
/** The error reason of the sandbox */
|
|
110
|
+
errorReason?: string;
|
|
111
|
+
/** Whether the sandbox error is recoverable. */
|
|
112
|
+
recoverable?: boolean;
|
|
113
|
+
/** Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. */
|
|
114
|
+
warmPoolId?: string;
|
|
115
|
+
/** The state of the backup */
|
|
116
|
+
backupState?: SandboxBackupState;
|
|
117
|
+
/** The creation timestamp of the last backup */
|
|
118
|
+
backupCreatedAt?: string;
|
|
119
|
+
/** Auto-stop interval in minutes (0 means disabled) */
|
|
120
|
+
autoStopInterval?: number;
|
|
121
|
+
/** Auto-pause interval in minutes (0 means disabled) */
|
|
122
|
+
autoPauseInterval?: number;
|
|
123
|
+
/** Auto-archive interval in minutes */
|
|
124
|
+
autoArchiveInterval?: number;
|
|
125
|
+
/** Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) */
|
|
126
|
+
autoDeleteInterval?: number;
|
|
127
|
+
/** When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) */
|
|
128
|
+
autoDestroyAt?: string;
|
|
129
|
+
/** Array of volumes attached to the sandbox */
|
|
130
|
+
volumes?: SandboxVolumesList;
|
|
131
|
+
/** Build information for the sandbox */
|
|
132
|
+
buildInfo?: BuildInfo;
|
|
133
|
+
/** The creation timestamp of the sandbox */
|
|
134
|
+
createdAt?: string;
|
|
135
|
+
/** The last update timestamp of the sandbox */
|
|
136
|
+
updatedAt?: string;
|
|
137
|
+
/** The last activity timestamp of the sandbox */
|
|
138
|
+
lastActivityAt?: string;
|
|
139
|
+
/** The class of the sandbox */
|
|
140
|
+
sandboxClass?: SandboxSandboxClass;
|
|
141
|
+
/** The version of the daemon running in the sandbox */
|
|
142
|
+
daemonVersion?: string;
|
|
143
|
+
/** The runner ID of the sandbox */
|
|
144
|
+
runnerId?: string;
|
|
145
|
+
/** ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. */
|
|
146
|
+
linkedSandboxId?: string;
|
|
147
|
+
/** The toolbox proxy URL for the sandbox */
|
|
148
|
+
toolboxProxyUrl: string;
|
|
149
|
+
}
|
|
150
|
+
export declare const Sandbox2: S.Schema<Sandbox2>;
|
|
151
|
+
/** Environment variables for the sandbox */
|
|
152
|
+
export type CreateSandboxRequestEnvMap = {
|
|
153
|
+
[key: string]: string | undefined;
|
|
154
|
+
};
|
|
155
|
+
export declare const CreateSandboxRequestEnvMap: S.Schema<CreateSandboxRequestEnvMap>;
|
|
156
|
+
/** Labels for the sandbox */
|
|
157
|
+
export type CreateSandboxRequestLabelsMap = {
|
|
158
|
+
[key: string]: string | undefined;
|
|
159
|
+
};
|
|
160
|
+
export declare const CreateSandboxRequestLabelsMap: S.Schema<CreateSandboxRequestLabelsMap>;
|
|
161
|
+
/** Preferred GPU type for the sandbox. Accepts a single value or an ordered preference list — the scheduler tries each in order and pins the sandbox to the first that has capacity. */
|
|
162
|
+
export type CreateSandboxRequestGpuTypeList = Array<GpuType | (string & {})>;
|
|
163
|
+
export declare const CreateSandboxRequestGpuTypeList: S.Schema<CreateSandboxRequestGpuTypeList>;
|
|
164
|
+
/** Array of volumes to attach to the sandbox */
|
|
165
|
+
export type CreateSandboxRequestVolumesList = Array<SandboxVolume>;
|
|
166
|
+
export declare const CreateSandboxRequestVolumesList: S.Schema<CreateSandboxRequestVolumesList>;
|
|
167
|
+
/** The context hashes used for the build */
|
|
168
|
+
export type CreateBuildInfoContextHashesList = Array<string>;
|
|
169
|
+
export declare const CreateBuildInfoContextHashesList: S.Schema<CreateBuildInfoContextHashesList>;
|
|
170
|
+
export interface CreateBuildInfo {
|
|
171
|
+
/** The Dockerfile content used for the build */
|
|
172
|
+
dockerfileContent: string;
|
|
173
|
+
/** The context hashes used for the build */
|
|
174
|
+
contextHashes?: CreateBuildInfoContextHashesList;
|
|
175
|
+
}
|
|
176
|
+
export declare const CreateBuildInfo: S.Schema<CreateBuildInfo>;
|
|
177
|
+
export type CreateSandboxRequestSecretsItemMap = {
|
|
178
|
+
[key: string]: string | undefined;
|
|
179
|
+
};
|
|
180
|
+
export declare const CreateSandboxRequestSecretsItemMap: S.Schema<CreateSandboxRequestSecretsItemMap>;
|
|
181
|
+
/** Secrets to mount in this sandbox. Each entry maps an env var name to a vault secret name. */
|
|
182
|
+
export type CreateSandboxRequestSecretsList = Array<CreateSandboxRequestSecretsItemMap>;
|
|
183
|
+
export declare const CreateSandboxRequestSecretsList: S.Schema<CreateSandboxRequestSecretsList>;
|
|
184
|
+
export interface CreateSandboxRequest {
|
|
185
|
+
/** Use with JWT to specify the organization ID */
|
|
186
|
+
xDaytonaOrganizationID?: string;
|
|
187
|
+
/** The name of the sandbox. If not provided, the sandbox ID will be used as the name */
|
|
188
|
+
name?: string;
|
|
189
|
+
/** The ID or name of the snapshot used for the sandbox */
|
|
190
|
+
snapshot?: string;
|
|
191
|
+
/** The user associated with the project */
|
|
192
|
+
user?: string;
|
|
193
|
+
/** Environment variables for the sandbox */
|
|
194
|
+
env?: CreateSandboxRequestEnvMap;
|
|
195
|
+
/** Labels for the sandbox */
|
|
196
|
+
labels?: CreateSandboxRequestLabelsMap;
|
|
197
|
+
/** Whether the sandbox http preview is publicly accessible */
|
|
198
|
+
public?: boolean;
|
|
199
|
+
/** Whether to block all network access for the sandbox */
|
|
200
|
+
networkBlockAll?: boolean;
|
|
201
|
+
/** Comma-separated list of allowed CIDR network addresses for the sandbox */
|
|
202
|
+
networkAllowList?: string;
|
|
203
|
+
/** Comma-separated list of allowed domains for the sandbox */
|
|
204
|
+
domainAllowList?: string;
|
|
205
|
+
/** Outbound proxy URL to route the sandbox HTTP(S) traffic through (http or https; credentials may be included in the URL). On its own this is convenience routing, not a security boundary: it is applied by injecting the standard HTTP(S)_PROXY environment variables at creation, so a process that clears those variables egresses directly. Combine with domainAllowList to have web-port (80/443) egress transparently redirected through the proxy chain at the network layer, which cannot be bypassed from inside the sandbox. */
|
|
206
|
+
outboundProxyUrl?: string;
|
|
207
|
+
/** OTel collector endpoint override for this sandbox. When set, sandbox OTel data is sent to this endpoint instead of the default collector (the Daytona-hosted collector or the region-configured endpoint) and will not be available in the Daytona analytics API or dashboard. */
|
|
208
|
+
otelEndpointOverride?: string;
|
|
209
|
+
/** The target (region) where the sandbox will be created */
|
|
210
|
+
target?: string;
|
|
211
|
+
/** CPU cores allocated to the sandbox */
|
|
212
|
+
cpu?: number;
|
|
213
|
+
/** GPU units allocated to the sandbox */
|
|
214
|
+
gpu?: number;
|
|
215
|
+
/** Preferred GPU type for the sandbox. Accepts a single value or an ordered preference list — the scheduler tries each in order and pins the sandbox to the first that has capacity. */
|
|
216
|
+
gpuType?: CreateSandboxRequestGpuTypeList;
|
|
217
|
+
/** GPU-only. When true, the sandbox may be instantly terminated without notice to free GPU capacity for an on-demand (non-spot) GPU sandbox. Ignored / rejected when the sandbox requests no GPUs. */
|
|
218
|
+
spot?: boolean;
|
|
219
|
+
/** Memory allocated to the sandbox in GB */
|
|
220
|
+
memory?: number;
|
|
221
|
+
/** Disk space allocated to the sandbox in GB */
|
|
222
|
+
disk?: number;
|
|
223
|
+
/** Auto-stop interval in minutes (0 means disabled) */
|
|
224
|
+
autoStopInterval?: number;
|
|
225
|
+
/** Auto-pause interval in minutes (0 means disabled). Only supported for sandbox classes that support pausing. Not allowed for ephemeral sandboxes. At most one of autoStopInterval and autoPauseInterval may be non-zero. For non-ephemeral sandbox classes that support pausing, defaults to 60 minutes (with auto-stop disabled) when neither interval is provided. */
|
|
226
|
+
autoPauseInterval?: number;
|
|
227
|
+
/** Auto-archive interval in minutes (0 means the maximum interval will be used) */
|
|
228
|
+
autoArchiveInterval?: number;
|
|
229
|
+
/** Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) */
|
|
230
|
+
autoDeleteInterval?: number;
|
|
231
|
+
/** Maximum time to live in minutes, counted as wall-clock time since creation regardless of sandbox state (0 means disabled). When it elapses the sandbox is destroyed, even if it is stopped, paused, or archived. Subject to the maximum sandbox lifespan configured for the organization region and sandbox class, in which case it also defaults to that maximum and cannot be disabled. */
|
|
232
|
+
ttlMinutes?: number;
|
|
233
|
+
/** Array of volumes to attach to the sandbox */
|
|
234
|
+
volumes?: CreateSandboxRequestVolumesList;
|
|
235
|
+
/** Build information for the sandbox */
|
|
236
|
+
buildInfo?: CreateBuildInfo;
|
|
237
|
+
/** ID or name of an existing sandbox to link the new sandbox to. The new sandbox will be scheduled on the same runner as the linked sandbox so a local network can be established between them. Linked sandboxes must be ephemeral (autoDeleteInterval=0) and cannot themselves be linked to another sandbox. GPU sandboxes cannot participate in links in either direction: a GPU sandbox cannot specify linkedSandbox, and cannot be the link target of another sandbox. */
|
|
238
|
+
linkedSandbox?: string;
|
|
239
|
+
/** Secrets to mount in this sandbox. Each entry maps an env var name to a vault secret name. */
|
|
240
|
+
secrets?: CreateSandboxRequestSecretsList;
|
|
241
|
+
}
|
|
242
|
+
export declare const CreateSandboxRequest: S.Schema<CreateSandboxRequest>;
|
|
243
|
+
export interface CreateSandboxSnapshotRequest {
|
|
244
|
+
sandboxIdOrName: string;
|
|
245
|
+
/** Use with JWT to specify the organization ID */
|
|
246
|
+
xDaytonaOrganizationID?: string;
|
|
247
|
+
/** Name for the new snapshot */
|
|
248
|
+
name: string;
|
|
249
|
+
/** Include the VM's memory in the snapshot. VM sandboxes only. When true the sandbox must be STARTED; when false (default) VM sandboxes must be STOPPED. Container sandboxes do not support memory snapshots. */
|
|
250
|
+
includeMemory?: boolean;
|
|
251
|
+
}
|
|
252
|
+
export declare const CreateSandboxSnapshotRequest: S.Schema<CreateSandboxSnapshotRequest>;
|
|
253
|
+
export interface CreateSshAccessRequest {
|
|
254
|
+
/** ID or name of the sandbox */
|
|
255
|
+
sandboxIdOrName: string;
|
|
256
|
+
/** Expiration time in minutes (default: 60) */
|
|
257
|
+
expiresInMinutes?: number;
|
|
258
|
+
/** Use with JWT to specify the organization ID */
|
|
259
|
+
xDaytonaOrganizationID?: string;
|
|
260
|
+
}
|
|
261
|
+
export declare const CreateSshAccessRequest: S.Schema<CreateSshAccessRequest>;
|
|
262
|
+
export interface SshAccessDto {
|
|
263
|
+
/** Unique identifier for the SSH access */
|
|
264
|
+
id: string;
|
|
265
|
+
/** ID of the sandbox this SSH access is for */
|
|
266
|
+
sandboxId: string;
|
|
267
|
+
/** SSH access token */
|
|
268
|
+
token: string;
|
|
269
|
+
/** When the SSH access expires */
|
|
270
|
+
expiresAt: string;
|
|
271
|
+
/** When the SSH access was created */
|
|
272
|
+
createdAt: string;
|
|
273
|
+
/** When the SSH access was last updated */
|
|
274
|
+
updatedAt: string;
|
|
275
|
+
/** SSH command to connect to the sandbox */
|
|
276
|
+
sshCommand: string;
|
|
277
|
+
}
|
|
278
|
+
export declare const SshAccessDto: S.Schema<SshAccessDto>;
|
|
279
|
+
export interface DeleteSandboxRequest {
|
|
280
|
+
/** ID or name of the sandbox */
|
|
281
|
+
sandboxIdOrName: string;
|
|
282
|
+
/** Use with JWT to specify the organization ID */
|
|
283
|
+
xDaytonaOrganizationID?: string;
|
|
284
|
+
}
|
|
285
|
+
export declare const DeleteSandboxRequest: S.Schema<DeleteSandboxRequest>;
|
|
286
|
+
export interface ExpireSignedPortPreviewUrlRequest {
|
|
287
|
+
/** ID or name of the sandbox */
|
|
288
|
+
sandboxIdOrName: string;
|
|
289
|
+
/** Port number to expire signed preview URL for */
|
|
290
|
+
port: number;
|
|
291
|
+
/** Token to expire signed preview URL for */
|
|
292
|
+
token: string;
|
|
293
|
+
/** Use with JWT to specify the organization ID */
|
|
294
|
+
xDaytonaOrganizationID?: string;
|
|
295
|
+
}
|
|
296
|
+
export declare const ExpireSignedPortPreviewUrlRequest: S.Schema<ExpireSignedPortPreviewUrlRequest>;
|
|
297
|
+
export interface ExpireSignedPortPreviewUrlResponse {
|
|
298
|
+
}
|
|
299
|
+
export declare const ExpireSignedPortPreviewUrlResponse: S.Schema<ExpireSignedPortPreviewUrlResponse>;
|
|
300
|
+
export interface ForkSandboxRequest {
|
|
301
|
+
sandboxIdOrName: string;
|
|
302
|
+
/** Use with JWT to specify the organization ID */
|
|
303
|
+
xDaytonaOrganizationID?: string;
|
|
304
|
+
/** The name for the forked sandbox. If not provided, a unique name will be generated. */
|
|
305
|
+
name?: string;
|
|
306
|
+
}
|
|
307
|
+
export declare const ForkSandboxRequest: S.Schema<ForkSandboxRequest>;
|
|
308
|
+
export interface GetBuildLogsUrlRequest {
|
|
309
|
+
/** ID or name of the sandbox */
|
|
310
|
+
sandboxIdOrName: string;
|
|
311
|
+
/** Use with JWT to specify the organization ID */
|
|
312
|
+
xDaytonaOrganizationID?: string;
|
|
313
|
+
}
|
|
314
|
+
export declare const GetBuildLogsUrlRequest: S.Schema<GetBuildLogsUrlRequest>;
|
|
315
|
+
export interface Url {
|
|
316
|
+
/** URL response */
|
|
317
|
+
url: string;
|
|
318
|
+
}
|
|
319
|
+
export declare const Url: S.Schema<Url>;
|
|
320
|
+
export interface GetOrganizationBySandboxIdRequest {
|
|
321
|
+
/** ID of the sandbox */
|
|
322
|
+
sandboxId: string;
|
|
323
|
+
/** Use with JWT to specify the organization ID */
|
|
324
|
+
xDaytonaOrganizationID?: string;
|
|
325
|
+
}
|
|
326
|
+
export declare const GetOrganizationBySandboxIdRequest: S.Schema<GetOrganizationBySandboxIdRequest>;
|
|
327
|
+
/** Headers */
|
|
328
|
+
export type OtelConfigHeadersMap = {
|
|
329
|
+
[key: string]: string | undefined;
|
|
330
|
+
};
|
|
331
|
+
export declare const OtelConfigHeadersMap: S.Schema<OtelConfigHeadersMap>;
|
|
332
|
+
export interface OtelConfig {
|
|
333
|
+
/** Endpoint */
|
|
334
|
+
endpoint: string;
|
|
335
|
+
/** Headers */
|
|
336
|
+
headers?: OtelConfigHeadersMap | null;
|
|
337
|
+
/** Organization ID the config belongs to */
|
|
338
|
+
organizationId?: string;
|
|
339
|
+
}
|
|
340
|
+
export declare const OtelConfig: S.Schema<OtelConfig>;
|
|
341
|
+
export interface Organization {
|
|
342
|
+
/** Organization ID */
|
|
343
|
+
id: string;
|
|
344
|
+
/** Organization name */
|
|
345
|
+
name: string;
|
|
346
|
+
/** User ID of the organization creator */
|
|
347
|
+
createdBy: string;
|
|
348
|
+
/** Personal organization flag */
|
|
349
|
+
personal: boolean;
|
|
350
|
+
/** Creation timestamp */
|
|
351
|
+
createdAt: string;
|
|
352
|
+
/** Last update timestamp */
|
|
353
|
+
updatedAt: string;
|
|
354
|
+
/** Suspended flag */
|
|
355
|
+
suspended: boolean;
|
|
356
|
+
/** Suspended at */
|
|
357
|
+
suspendedAt: string;
|
|
358
|
+
/** Suspended reason */
|
|
359
|
+
suspensionReason: string;
|
|
360
|
+
/** Suspended until */
|
|
361
|
+
suspendedUntil: string;
|
|
362
|
+
/** Suspension cleanup grace period hours */
|
|
363
|
+
suspensionCleanupGracePeriodHours: number;
|
|
364
|
+
/** Max CPU per sandbox */
|
|
365
|
+
maxCpuPerSandbox: number;
|
|
366
|
+
/** Max memory per sandbox */
|
|
367
|
+
maxMemoryPerSandbox: number;
|
|
368
|
+
/** Max disk per sandbox */
|
|
369
|
+
maxDiskPerSandbox: number;
|
|
370
|
+
/** Maximum number of secrets */
|
|
371
|
+
secretQuota: number;
|
|
372
|
+
/** Maximum number of secrets that can be mounted to a single sandbox */
|
|
373
|
+
maxSecretsPerSandbox: number;
|
|
374
|
+
/** Time in minutes before an unused snapshot is deactivated */
|
|
375
|
+
snapshotDeactivationTimeoutMinutes: number;
|
|
376
|
+
/** Sandbox default network block all */
|
|
377
|
+
sandboxLimitedNetworkEgress: boolean;
|
|
378
|
+
/** Whether the proxy shows the preview URL warning page for this organization */
|
|
379
|
+
previewWarningEnabled: boolean;
|
|
380
|
+
/** Whether this organization may configure SSO identity providers */
|
|
381
|
+
ssoEnabled: boolean;
|
|
382
|
+
/** Whether this organization may use SCIM directory sync */
|
|
383
|
+
scimEnabled: boolean;
|
|
384
|
+
/** Default region ID */
|
|
385
|
+
defaultRegionId?: string;
|
|
386
|
+
/** ID of the WorkOS organization mirrored from this organization (absent for personal organizations, which are never mirrored) */
|
|
387
|
+
workosOrgId?: string;
|
|
388
|
+
/** Authenticated rate limit per minute */
|
|
389
|
+
authenticatedRateLimit: number | null;
|
|
390
|
+
/** Sandbox create rate limit per minute */
|
|
391
|
+
sandboxCreateRateLimit: number | null;
|
|
392
|
+
/** Sandbox lifecycle rate limit per minute */
|
|
393
|
+
sandboxLifecycleRateLimit: number | null;
|
|
394
|
+
/** Experimental configuration */
|
|
395
|
+
experimentalConfig: unknown;
|
|
396
|
+
/** OpenTelemetry collection configuration */
|
|
397
|
+
otelConfig: OtelConfig | null;
|
|
398
|
+
/** Authenticated rate limit TTL in seconds */
|
|
399
|
+
authenticatedRateLimitTtlSeconds: number | null;
|
|
400
|
+
/** Sandbox create rate limit TTL in seconds */
|
|
401
|
+
sandboxCreateRateLimitTtlSeconds: number | null;
|
|
402
|
+
/** Sandbox lifecycle rate limit TTL in seconds */
|
|
403
|
+
sandboxLifecycleRateLimitTtlSeconds: number | null;
|
|
404
|
+
}
|
|
405
|
+
export declare const Organization: S.Schema<Organization>;
|
|
406
|
+
export interface GetPortPreviewUrlRequest {
|
|
407
|
+
/** ID or name of the sandbox */
|
|
408
|
+
sandboxIdOrName: string;
|
|
409
|
+
/** Port number to get preview URL for */
|
|
410
|
+
port: number;
|
|
411
|
+
/** Use with JWT to specify the organization ID */
|
|
412
|
+
xDaytonaOrganizationID?: string;
|
|
413
|
+
}
|
|
414
|
+
export declare const GetPortPreviewUrlRequest: S.Schema<GetPortPreviewUrlRequest>;
|
|
415
|
+
export interface PortPreviewUrl {
|
|
416
|
+
/** ID of the sandbox */
|
|
417
|
+
sandboxId: string;
|
|
418
|
+
/** Preview url */
|
|
419
|
+
url: string;
|
|
420
|
+
/** Access token */
|
|
421
|
+
token: string;
|
|
422
|
+
}
|
|
423
|
+
export declare const PortPreviewUrl: S.Schema<PortPreviewUrl>;
|
|
424
|
+
export interface GetRegionQuotaBySandboxIdRequest {
|
|
425
|
+
/** ID of the sandbox */
|
|
426
|
+
sandboxId: string;
|
|
427
|
+
/** Use with JWT to specify the organization ID */
|
|
428
|
+
xDaytonaOrganizationID?: string;
|
|
429
|
+
}
|
|
430
|
+
export declare const GetRegionQuotaBySandboxIdRequest: S.Schema<GetRegionQuotaBySandboxIdRequest>;
|
|
431
|
+
export type SandboxClass = "linux-vm" | "container" | "android" | "windows";
|
|
432
|
+
export declare const SandboxClass: any;
|
|
433
|
+
export type RegionQuotaAllowedGpuTypesList = Array<GpuType>;
|
|
434
|
+
export declare const RegionQuotaAllowedGpuTypesList: S.Schema<RegionQuotaAllowedGpuTypesList>;
|
|
435
|
+
export interface RegionQuota {
|
|
436
|
+
organizationId: string;
|
|
437
|
+
regionId: string;
|
|
438
|
+
sandboxClass: SandboxClass;
|
|
439
|
+
totalCpuQuota: number;
|
|
440
|
+
totalMemoryQuota: number;
|
|
441
|
+
totalDiskQuota: number;
|
|
442
|
+
totalGpuQuota: number;
|
|
443
|
+
allowedGpuTypes?: RegionQuotaAllowedGpuTypesList;
|
|
444
|
+
maxCpuPerSandbox: number | null;
|
|
445
|
+
maxMemoryPerSandbox: number | null;
|
|
446
|
+
maxDiskPerSandbox: number | null;
|
|
447
|
+
maxDiskPerNonEphemeralSandbox: number | null;
|
|
448
|
+
/** CPU maximum per requested GPU unit for GPU sandboxes. */
|
|
449
|
+
maxCpuPerGpu: number | null;
|
|
450
|
+
/** Memory maximum per requested GPU unit for GPU sandboxes. */
|
|
451
|
+
maxMemoryPerGpu: number | null;
|
|
452
|
+
/** Disk maximum per requested GPU unit for GPU sandboxes. */
|
|
453
|
+
maxDiskPerGpu: number | null;
|
|
454
|
+
/** Maximum sandbox lifespan in minutes, measured from sandbox creation to its auto-destroy deadline. If null or 0, lifespan is unrestricted. When set, sandboxes created without a TTL default to this lifespan and TTL cannot be disabled. */
|
|
455
|
+
maxSandboxLifespan: number | null;
|
|
456
|
+
}
|
|
457
|
+
export declare const RegionQuota: S.Schema<RegionQuota>;
|
|
458
|
+
export interface GetSandboxRequest {
|
|
459
|
+
/** ID or name of the sandbox */
|
|
460
|
+
sandboxIdOrName: string;
|
|
461
|
+
/** Include verbose output */
|
|
462
|
+
verbose?: boolean;
|
|
463
|
+
/** Use with JWT to specify the organization ID */
|
|
464
|
+
xDaytonaOrganizationID?: string;
|
|
465
|
+
}
|
|
466
|
+
export declare const GetSandboxRequest: S.Schema<GetSandboxRequest>;
|
|
467
|
+
export interface GetSandboxAncestorsRequest {
|
|
468
|
+
sandboxIdOrName: string;
|
|
469
|
+
/** Use with JWT to specify the organization ID */
|
|
470
|
+
xDaytonaOrganizationID?: string;
|
|
471
|
+
}
|
|
472
|
+
export declare const GetSandboxAncestorsRequest: S.Schema<GetSandboxAncestorsRequest>;
|
|
473
|
+
export type GetSandboxAncestorsResponseBodyList = Array<Sandbox2>;
|
|
474
|
+
export declare const GetSandboxAncestorsResponseBodyList: S.Schema<GetSandboxAncestorsResponseBodyList>;
|
|
475
|
+
export type GetSandboxAncestorsResponse = GetSandboxAncestorsResponseBodyList;
|
|
476
|
+
export declare const GetSandboxAncestorsResponse: S.Schema<GetSandboxAncestorsResponse>;
|
|
477
|
+
export interface GetSandboxesForRunnerRequest {
|
|
478
|
+
/** Comma-separated list of sandbox states to filter by */
|
|
479
|
+
states?: string;
|
|
480
|
+
/** Skip sandboxes where state differs from desired state */
|
|
481
|
+
skipReconcilingSandboxes?: boolean;
|
|
482
|
+
/** Use with JWT to specify the organization ID */
|
|
483
|
+
xDaytonaOrganizationID?: string;
|
|
484
|
+
}
|
|
485
|
+
export declare const GetSandboxesForRunnerRequest: S.Schema<GetSandboxesForRunnerRequest>;
|
|
486
|
+
export type GetSandboxesForRunnerResponseBodyList = Array<Sandbox2>;
|
|
487
|
+
export declare const GetSandboxesForRunnerResponseBodyList: S.Schema<GetSandboxesForRunnerResponseBodyList>;
|
|
488
|
+
export type GetSandboxesForRunnerResponse = GetSandboxesForRunnerResponseBodyList;
|
|
489
|
+
export declare const GetSandboxesForRunnerResponse: S.Schema<GetSandboxesForRunnerResponse>;
|
|
490
|
+
export interface GetSandboxForksRequest {
|
|
491
|
+
sandboxIdOrName: string;
|
|
492
|
+
includeDestroyed?: boolean;
|
|
493
|
+
/** Use with JWT to specify the organization ID */
|
|
494
|
+
xDaytonaOrganizationID?: string;
|
|
495
|
+
}
|
|
496
|
+
export declare const GetSandboxForksRequest: S.Schema<GetSandboxForksRequest>;
|
|
497
|
+
export type GetSandboxForksResponseBodyList = Array<Sandbox2>;
|
|
498
|
+
export declare const GetSandboxForksResponseBodyList: S.Schema<GetSandboxForksResponseBodyList>;
|
|
499
|
+
export type GetSandboxForksResponse = GetSandboxForksResponseBodyList;
|
|
500
|
+
export declare const GetSandboxForksResponse: S.Schema<GetSandboxForksResponse>;
|
|
501
|
+
export type GetSandboxLogsRequestSeveritiesList = Array<string>;
|
|
502
|
+
export declare const GetSandboxLogsRequestSeveritiesList: S.Schema<GetSandboxLogsRequestSeveritiesList>;
|
|
503
|
+
export interface GetSandboxLogsRequest {
|
|
504
|
+
/** ID of the sandbox */
|
|
505
|
+
sandboxId: string;
|
|
506
|
+
/** Start of time range (ISO 8601) */
|
|
507
|
+
from: string;
|
|
508
|
+
/** End of time range (ISO 8601) */
|
|
509
|
+
to: string;
|
|
510
|
+
/** Page number (1-indexed) */
|
|
511
|
+
page?: number;
|
|
512
|
+
/** Number of items per page */
|
|
513
|
+
limit?: number;
|
|
514
|
+
/** Filter by severity levels (DEBUG, INFO, WARN, ERROR) */
|
|
515
|
+
severities?: GetSandboxLogsRequestSeveritiesList;
|
|
516
|
+
/** Search in log body */
|
|
517
|
+
search?: string;
|
|
518
|
+
/** Use with JWT to specify the organization ID */
|
|
519
|
+
xDaytonaOrganizationID?: string;
|
|
520
|
+
}
|
|
521
|
+
export declare const GetSandboxLogsRequest: S.Schema<GetSandboxLogsRequest>;
|
|
522
|
+
/** Resource attributes from OTEL */
|
|
523
|
+
export type LogEntryResourceAttributesMap = {
|
|
524
|
+
[key: string]: string | undefined;
|
|
525
|
+
};
|
|
526
|
+
export declare const LogEntryResourceAttributesMap: S.Schema<LogEntryResourceAttributesMap>;
|
|
527
|
+
/** Log-specific attributes */
|
|
528
|
+
export type LogEntryLogAttributesMap = {
|
|
529
|
+
[key: string]: string | undefined;
|
|
530
|
+
};
|
|
531
|
+
export declare const LogEntryLogAttributesMap: S.Schema<LogEntryLogAttributesMap>;
|
|
532
|
+
export interface LogEntry {
|
|
533
|
+
/** Timestamp of the log entry */
|
|
534
|
+
timestamp: string;
|
|
535
|
+
/** Log message body */
|
|
536
|
+
body: string;
|
|
537
|
+
/** Severity level text (e.g., INFO, WARN, ERROR) */
|
|
538
|
+
severityText: string;
|
|
539
|
+
/** Severity level number */
|
|
540
|
+
severityNumber?: number;
|
|
541
|
+
/** Service name that generated the log */
|
|
542
|
+
serviceName: string;
|
|
543
|
+
/** Resource attributes from OTEL */
|
|
544
|
+
resourceAttributes: LogEntryResourceAttributesMap;
|
|
545
|
+
/** Log-specific attributes */
|
|
546
|
+
logAttributes: LogEntryLogAttributesMap;
|
|
547
|
+
/** Associated trace ID if available */
|
|
548
|
+
traceId?: string;
|
|
549
|
+
/** Associated span ID if available */
|
|
550
|
+
spanId?: string;
|
|
551
|
+
}
|
|
552
|
+
export declare const LogEntry: S.Schema<LogEntry>;
|
|
553
|
+
/** List of log entries */
|
|
554
|
+
export type PaginatedLogsItemsList = Array<LogEntry>;
|
|
555
|
+
export declare const PaginatedLogsItemsList: S.Schema<PaginatedLogsItemsList>;
|
|
556
|
+
export interface PaginatedLogs {
|
|
557
|
+
/** List of log entries */
|
|
558
|
+
items: PaginatedLogsItemsList;
|
|
559
|
+
/** Total number of log entries matching the query */
|
|
560
|
+
total: number;
|
|
561
|
+
/** Current page number */
|
|
562
|
+
page: number;
|
|
563
|
+
/** Total number of pages */
|
|
564
|
+
totalPages: number;
|
|
565
|
+
}
|
|
566
|
+
export declare const PaginatedLogs: S.Schema<PaginatedLogs>;
|
|
567
|
+
export type GetSandboxMetricsRequestMetricNamesList = Array<string>;
|
|
568
|
+
export declare const GetSandboxMetricsRequestMetricNamesList: S.Schema<GetSandboxMetricsRequestMetricNamesList>;
|
|
569
|
+
export interface GetSandboxMetricsRequest {
|
|
570
|
+
/** ID of the sandbox */
|
|
571
|
+
sandboxId: string;
|
|
572
|
+
/** Start of time range (ISO 8601) */
|
|
573
|
+
from: string;
|
|
574
|
+
/** End of time range (ISO 8601) */
|
|
575
|
+
to: string;
|
|
576
|
+
/** Filter by metric names */
|
|
577
|
+
metricNames?: GetSandboxMetricsRequestMetricNamesList;
|
|
578
|
+
/** Use with JWT to specify the organization ID */
|
|
579
|
+
xDaytonaOrganizationID?: string;
|
|
580
|
+
}
|
|
581
|
+
export declare const GetSandboxMetricsRequest: S.Schema<GetSandboxMetricsRequest>;
|
|
582
|
+
export interface MetricDataPoint {
|
|
583
|
+
/** Timestamp of the data point */
|
|
584
|
+
timestamp: string;
|
|
585
|
+
/** Value at this timestamp */
|
|
586
|
+
value: number;
|
|
587
|
+
}
|
|
588
|
+
export declare const MetricDataPoint: S.Schema<MetricDataPoint>;
|
|
589
|
+
/** Data points for this metric */
|
|
590
|
+
export type MetricSeriesDataPointsList = Array<MetricDataPoint>;
|
|
591
|
+
export declare const MetricSeriesDataPointsList: S.Schema<MetricSeriesDataPointsList>;
|
|
592
|
+
export interface MetricSeries {
|
|
593
|
+
/** Name of the metric */
|
|
594
|
+
metricName: string;
|
|
595
|
+
/** Data points for this metric */
|
|
596
|
+
dataPoints: MetricSeriesDataPointsList;
|
|
597
|
+
}
|
|
598
|
+
export declare const MetricSeries: S.Schema<MetricSeries>;
|
|
599
|
+
/** List of metric series */
|
|
600
|
+
export type MetricsResponseSeriesList = Array<MetricSeries>;
|
|
601
|
+
export declare const MetricsResponseSeriesList: S.Schema<MetricsResponseSeriesList>;
|
|
602
|
+
export interface MetricsResponse {
|
|
603
|
+
/** List of metric series */
|
|
604
|
+
series: MetricsResponseSeriesList;
|
|
605
|
+
}
|
|
606
|
+
export declare const MetricsResponse: S.Schema<MetricsResponse>;
|
|
607
|
+
export interface GetSandboxParentRequest {
|
|
608
|
+
sandboxIdOrName: string;
|
|
609
|
+
/** Use with JWT to specify the organization ID */
|
|
610
|
+
xDaytonaOrganizationID?: string;
|
|
611
|
+
}
|
|
612
|
+
export declare const GetSandboxParentRequest: S.Schema<GetSandboxParentRequest>;
|
|
613
|
+
export interface GetSandboxSigningKeyRequest {
|
|
614
|
+
/** ID of the sandbox */
|
|
615
|
+
sandboxId: string;
|
|
616
|
+
/** Use with JWT to specify the organization ID */
|
|
617
|
+
xDaytonaOrganizationID?: string;
|
|
618
|
+
}
|
|
619
|
+
export declare const GetSandboxSigningKeyRequest: S.Schema<GetSandboxSigningKeyRequest>;
|
|
620
|
+
export type GetSandboxSigningKeyResponse = string;
|
|
621
|
+
export declare const GetSandboxSigningKeyResponse: S.Schema<GetSandboxSigningKeyResponse>;
|
|
622
|
+
export interface GetSandboxTracesRequest {
|
|
623
|
+
/** ID of the sandbox */
|
|
624
|
+
sandboxId: string;
|
|
625
|
+
/** Start of time range (ISO 8601) */
|
|
626
|
+
from: string;
|
|
627
|
+
/** End of time range (ISO 8601) */
|
|
628
|
+
to: string;
|
|
629
|
+
/** Page number (1-indexed) */
|
|
630
|
+
page?: number;
|
|
631
|
+
/** Number of items per page */
|
|
632
|
+
limit?: number;
|
|
633
|
+
/** Use with JWT to specify the organization ID */
|
|
634
|
+
xDaytonaOrganizationID?: string;
|
|
635
|
+
}
|
|
636
|
+
export declare const GetSandboxTracesRequest: S.Schema<GetSandboxTracesRequest>;
|
|
637
|
+
export interface TraceSummary {
|
|
638
|
+
/** Unique trace identifier */
|
|
639
|
+
traceId: string;
|
|
640
|
+
/** Name of the root span */
|
|
641
|
+
rootSpanName: string;
|
|
642
|
+
/** Trace start time */
|
|
643
|
+
startTime: string;
|
|
644
|
+
/** Trace end time */
|
|
645
|
+
endTime: string;
|
|
646
|
+
/** Total duration in milliseconds */
|
|
647
|
+
durationMs: number;
|
|
648
|
+
/** Number of spans in this trace */
|
|
649
|
+
spanCount: number;
|
|
650
|
+
/** Status code of the trace */
|
|
651
|
+
statusCode?: string;
|
|
652
|
+
}
|
|
653
|
+
export declare const TraceSummary: S.Schema<TraceSummary>;
|
|
654
|
+
/** List of trace summaries */
|
|
655
|
+
export type PaginatedTracesItemsList = Array<TraceSummary>;
|
|
656
|
+
export declare const PaginatedTracesItemsList: S.Schema<PaginatedTracesItemsList>;
|
|
657
|
+
export interface PaginatedTraces {
|
|
658
|
+
/** List of trace summaries */
|
|
659
|
+
items: PaginatedTracesItemsList;
|
|
660
|
+
/** Total number of traces matching the query */
|
|
661
|
+
total: number;
|
|
662
|
+
/** Current page number */
|
|
663
|
+
page: number;
|
|
664
|
+
/** Total number of pages */
|
|
665
|
+
totalPages: number;
|
|
666
|
+
}
|
|
667
|
+
export declare const PaginatedTraces: S.Schema<PaginatedTraces>;
|
|
668
|
+
export interface GetSandboxTraceSpansRequest {
|
|
669
|
+
/** ID of the sandbox */
|
|
670
|
+
sandboxId: string;
|
|
671
|
+
/** ID of the trace */
|
|
672
|
+
traceId: string;
|
|
673
|
+
/** Use with JWT to specify the organization ID */
|
|
674
|
+
xDaytonaOrganizationID?: string;
|
|
675
|
+
}
|
|
676
|
+
export declare const GetSandboxTraceSpansRequest: S.Schema<GetSandboxTraceSpansRequest>;
|
|
677
|
+
/** Span attributes */
|
|
678
|
+
export type TraceSpanSpanAttributesMap = {
|
|
679
|
+
[key: string]: string | undefined;
|
|
680
|
+
};
|
|
681
|
+
export declare const TraceSpanSpanAttributesMap: S.Schema<TraceSpanSpanAttributesMap>;
|
|
682
|
+
export interface TraceSpan {
|
|
683
|
+
/** Trace identifier */
|
|
684
|
+
traceId: string;
|
|
685
|
+
/** Span identifier */
|
|
686
|
+
spanId: string;
|
|
687
|
+
/** Parent span identifier */
|
|
688
|
+
parentSpanId?: string;
|
|
689
|
+
/** Span name */
|
|
690
|
+
spanName: string;
|
|
691
|
+
/** Span start timestamp */
|
|
692
|
+
timestamp: string;
|
|
693
|
+
/** Span duration in nanoseconds */
|
|
694
|
+
durationNs: number;
|
|
695
|
+
/** Span attributes */
|
|
696
|
+
spanAttributes: TraceSpanSpanAttributesMap;
|
|
697
|
+
/** Status code of the span */
|
|
698
|
+
statusCode?: string;
|
|
699
|
+
/** Status message */
|
|
700
|
+
statusMessage?: string;
|
|
701
|
+
}
|
|
702
|
+
export declare const TraceSpan: S.Schema<TraceSpan>;
|
|
703
|
+
export type GetSandboxTraceSpansResponseBodyList = Array<TraceSpan>;
|
|
704
|
+
export declare const GetSandboxTraceSpansResponseBodyList: S.Schema<GetSandboxTraceSpansResponseBodyList>;
|
|
705
|
+
export type GetSandboxTraceSpansResponse = GetSandboxTraceSpansResponseBodyList;
|
|
706
|
+
export declare const GetSandboxTraceSpansResponse: S.Schema<GetSandboxTraceSpansResponse>;
|
|
707
|
+
export interface GetSignedPortPreviewUrlRequest {
|
|
708
|
+
/** ID or name of the sandbox */
|
|
709
|
+
sandboxIdOrName: string;
|
|
710
|
+
/** Port number to get signed preview URL for */
|
|
711
|
+
port: number;
|
|
712
|
+
/** Expiration time in seconds (default: 60 seconds) */
|
|
713
|
+
expiresInSeconds?: number;
|
|
714
|
+
/** Use with JWT to specify the organization ID */
|
|
715
|
+
xDaytonaOrganizationID?: string;
|
|
716
|
+
}
|
|
717
|
+
export declare const GetSignedPortPreviewUrlRequest: S.Schema<GetSignedPortPreviewUrlRequest>;
|
|
718
|
+
export interface SignedPortPreviewUrl {
|
|
719
|
+
/** ID of the sandbox */
|
|
720
|
+
sandboxId: string;
|
|
721
|
+
/** Port number of the signed preview URL */
|
|
722
|
+
port: number;
|
|
723
|
+
/** Token of the signed preview URL */
|
|
724
|
+
token: string;
|
|
725
|
+
/** Signed preview url */
|
|
726
|
+
url: string;
|
|
727
|
+
}
|
|
728
|
+
export declare const SignedPortPreviewUrl: S.Schema<SignedPortPreviewUrl>;
|
|
729
|
+
export interface GetToolboxProxyUrlRequest {
|
|
730
|
+
/** ID of the sandbox */
|
|
731
|
+
sandboxId: string;
|
|
732
|
+
/** Use with JWT to specify the organization ID */
|
|
733
|
+
xDaytonaOrganizationID?: string;
|
|
734
|
+
}
|
|
735
|
+
export declare const GetToolboxProxyUrlRequest: S.Schema<GetToolboxProxyUrlRequest>;
|
|
736
|
+
export interface ToolboxProxyUrl {
|
|
737
|
+
/** The toolbox proxy URL for the sandbox */
|
|
738
|
+
url: string;
|
|
739
|
+
}
|
|
740
|
+
export declare const ToolboxProxyUrl: S.Schema<ToolboxProxyUrl>;
|
|
741
|
+
export type ListSandboxesRequestStatesList = Array<SandboxState | (string & {})>;
|
|
742
|
+
export declare const ListSandboxesRequestStatesList: S.Schema<ListSandboxesRequestStatesList>;
|
|
743
|
+
export type ListSandboxesRequestSnapshotsList = Array<string>;
|
|
744
|
+
export declare const ListSandboxesRequestSnapshotsList: S.Schema<ListSandboxesRequestSnapshotsList>;
|
|
745
|
+
export type ListSandboxesRequestRegionIdsList = Array<string>;
|
|
746
|
+
export declare const ListSandboxesRequestRegionIdsList: S.Schema<ListSandboxesRequestRegionIdsList>;
|
|
747
|
+
export type ListSandboxesRequestSandboxClassesList = Array<SandboxClass | (string & {})>;
|
|
748
|
+
export declare const ListSandboxesRequestSandboxClassesList: S.Schema<ListSandboxesRequestSandboxClassesList>;
|
|
749
|
+
export type SandboxListSortField = "name" | "cpu" | "memoryGib" | "diskGib" | "lastActivityAt" | "createdAt";
|
|
750
|
+
export declare const SandboxListSortField: any;
|
|
751
|
+
export type SandboxListSortDirection = "asc" | "desc";
|
|
752
|
+
export declare const SandboxListSortDirection: any;
|
|
753
|
+
export interface ListSandboxesRequest {
|
|
754
|
+
/** Pagination cursor from a previous response */
|
|
755
|
+
cursor?: string;
|
|
756
|
+
/** Number of results per page */
|
|
757
|
+
limit?: number;
|
|
758
|
+
/** Filter by ID prefix (case-insensitive) */
|
|
759
|
+
id?: string;
|
|
760
|
+
/** Filter by name prefix (case-insensitive) */
|
|
761
|
+
name?: string;
|
|
762
|
+
/** JSON encoded labels to filter by */
|
|
763
|
+
labels?: string;
|
|
764
|
+
/** Include results with errored state and deleted desired state */
|
|
765
|
+
includeErroredDeleted?: boolean;
|
|
766
|
+
/** Include unclaimed warm pool sandboxes (excluded by default) */
|
|
767
|
+
includeWarm?: boolean;
|
|
768
|
+
/** List of states to filter by. */
|
|
769
|
+
states?: ListSandboxesRequestStatesList;
|
|
770
|
+
/** List of snapshot names to filter by */
|
|
771
|
+
snapshots?: ListSandboxesRequestSnapshotsList;
|
|
772
|
+
/** List of regions IDs to filter by */
|
|
773
|
+
regionIds?: ListSandboxesRequestRegionIdsList;
|
|
774
|
+
/** List of sandbox classes to filter by */
|
|
775
|
+
sandboxClasses?: ListSandboxesRequestSandboxClassesList;
|
|
776
|
+
/** Minimum CPU */
|
|
777
|
+
minCpu?: number;
|
|
778
|
+
/** Maximum CPU */
|
|
779
|
+
maxCpu?: number;
|
|
780
|
+
/** Minimum memory in GiB */
|
|
781
|
+
minMemoryGiB?: number;
|
|
782
|
+
/** Maximum memory in GiB */
|
|
783
|
+
maxMemoryGiB?: number;
|
|
784
|
+
/** Minimum disk space in GiB */
|
|
785
|
+
minDiskGiB?: number;
|
|
786
|
+
/** Maximum disk space in GiB */
|
|
787
|
+
maxDiskGiB?: number;
|
|
788
|
+
/** Minimum GPU */
|
|
789
|
+
minGpu?: number;
|
|
790
|
+
/** Maximum GPU */
|
|
791
|
+
maxGpu?: number;
|
|
792
|
+
/** Filter by public status */
|
|
793
|
+
isPublic?: boolean;
|
|
794
|
+
/** Filter by recoverable status */
|
|
795
|
+
isRecoverable?: boolean;
|
|
796
|
+
/** Include items created after this timestamp */
|
|
797
|
+
createdAtAfter?: string;
|
|
798
|
+
/** Include items created before this timestamp */
|
|
799
|
+
createdAtBefore?: string;
|
|
800
|
+
/** Include items with last event after this timestamp */
|
|
801
|
+
lastEventAfter?: string;
|
|
802
|
+
/** Include items with last event before this timestamp */
|
|
803
|
+
lastEventBefore?: string;
|
|
804
|
+
/** Include items scheduled for auto destroy after this timestamp */
|
|
805
|
+
autoDestroyAtAfter?: string;
|
|
806
|
+
/** Include items scheduled for auto destroy before this timestamp */
|
|
807
|
+
autoDestroyAtBefore?: string;
|
|
808
|
+
/** Field to sort by */
|
|
809
|
+
sort?: SandboxListSortField | (string & {});
|
|
810
|
+
/** Direction to sort by */
|
|
811
|
+
order?: SandboxListSortDirection | (string & {});
|
|
812
|
+
/** Use with JWT to specify the organization ID */
|
|
813
|
+
xDaytonaOrganizationID?: string;
|
|
814
|
+
}
|
|
815
|
+
export declare const ListSandboxesRequest: S.Schema<ListSandboxesRequest>;
|
|
816
|
+
/** Labels for the sandbox */
|
|
817
|
+
export type SandboxListItemLabelsMap = {
|
|
818
|
+
[key: string]: string | undefined;
|
|
819
|
+
};
|
|
820
|
+
export declare const SandboxListItemLabelsMap: S.Schema<SandboxListItemLabelsMap>;
|
|
821
|
+
/** The state of the backup */
|
|
822
|
+
export type SandboxListItemBackupState = "None" | "Pending" | "InProgress" | "Completed" | "Error";
|
|
823
|
+
export declare const SandboxListItemBackupState: any;
|
|
824
|
+
export interface SandboxListItem {
|
|
825
|
+
/** The ID of the sandbox */
|
|
826
|
+
id: string;
|
|
827
|
+
/** The organization ID of the sandbox */
|
|
828
|
+
organizationId: string;
|
|
829
|
+
/** The name of the sandbox */
|
|
830
|
+
name: string;
|
|
831
|
+
/** The target environment for the sandbox */
|
|
832
|
+
target: string;
|
|
833
|
+
/** The runner ID of the sandbox */
|
|
834
|
+
runnerId?: string;
|
|
835
|
+
/** The class of the sandbox */
|
|
836
|
+
sandboxClass?: SandboxClass;
|
|
837
|
+
/** The state of the sandbox */
|
|
838
|
+
state?: SandboxState;
|
|
839
|
+
/** The desired state of the sandbox */
|
|
840
|
+
desiredState?: SandboxDesiredState;
|
|
841
|
+
/** The snapshot used for the sandbox */
|
|
842
|
+
snapshot?: string;
|
|
843
|
+
/** The user associated with the project */
|
|
844
|
+
user: string;
|
|
845
|
+
/** The error reason of the sandbox */
|
|
846
|
+
errorReason?: string;
|
|
847
|
+
/** Whether the sandbox error is recoverable. */
|
|
848
|
+
recoverable?: boolean;
|
|
849
|
+
/** Whether the sandbox http preview is public */
|
|
850
|
+
public: boolean;
|
|
851
|
+
/** Whether to block all network access for the sandbox */
|
|
852
|
+
networkBlockAll: boolean;
|
|
853
|
+
/** Comma-separated list of allowed CIDR network addresses for the sandbox */
|
|
854
|
+
networkAllowList?: string;
|
|
855
|
+
/** Comma-separated list of allowed domains for the sandbox */
|
|
856
|
+
domainAllowList?: string;
|
|
857
|
+
/** The CPU quota for the sandbox */
|
|
858
|
+
cpu: number;
|
|
859
|
+
/** The GPU quota for the sandbox */
|
|
860
|
+
gpu: number;
|
|
861
|
+
/** Whether this is a spot GPU sandbox. Spot sandboxes may be instantly terminated to free capacity for on-demand GPU sandboxes. Absent on APIs that predate this field; treat as false. */
|
|
862
|
+
spot?: boolean;
|
|
863
|
+
/** When this sandbox was evicted by spot preemption. Set as soon as the sandbox is marked for eviction, so it is already present while the sandbox is still winding down. */
|
|
864
|
+
spotEvictedAt?: string;
|
|
865
|
+
/** The GPU type assigned to the sandbox */
|
|
866
|
+
gpuType?: GpuType;
|
|
867
|
+
/** The memory quota for the sandbox */
|
|
868
|
+
memory: number;
|
|
869
|
+
/** The disk quota for the sandbox */
|
|
870
|
+
disk: number;
|
|
871
|
+
/** Labels for the sandbox */
|
|
872
|
+
labels: SandboxListItemLabelsMap;
|
|
873
|
+
/** The state of the backup */
|
|
874
|
+
backupState?: SandboxListItemBackupState;
|
|
875
|
+
/** Auto-stop interval in minutes (0 means disabled) */
|
|
876
|
+
autoStopInterval?: number;
|
|
877
|
+
/** Auto-pause interval in minutes (0 means disabled) */
|
|
878
|
+
autoPauseInterval?: number;
|
|
879
|
+
/** Auto-archive interval in minutes */
|
|
880
|
+
autoArchiveInterval?: number;
|
|
881
|
+
/** Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) */
|
|
882
|
+
autoDeleteInterval?: number;
|
|
883
|
+
/** When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) */
|
|
884
|
+
autoDestroyAt?: string;
|
|
885
|
+
/** The creation timestamp of the sandbox */
|
|
886
|
+
createdAt?: string;
|
|
887
|
+
/** The last update timestamp of the sandbox */
|
|
888
|
+
updatedAt?: string;
|
|
889
|
+
/** The last activity timestamp of the sandbox */
|
|
890
|
+
lastActivityAt?: string;
|
|
891
|
+
/** The version of the daemon running in the sandbox */
|
|
892
|
+
daemonVersion?: string;
|
|
893
|
+
/** Id of the warm pool this sandbox waits in; set only while it is an unclaimed member */
|
|
894
|
+
warmPoolId?: string;
|
|
895
|
+
/** The toolbox proxy URL for the sandbox */
|
|
896
|
+
toolboxProxyUrl: string;
|
|
897
|
+
}
|
|
898
|
+
export declare const SandboxListItem: S.Schema<SandboxListItem>;
|
|
899
|
+
/** List of results for the current page */
|
|
900
|
+
export type ListSandboxesResponseItemsList = Array<SandboxListItem>;
|
|
901
|
+
export declare const ListSandboxesResponseItemsList: S.Schema<ListSandboxesResponseItemsList>;
|
|
902
|
+
export interface ListSandboxesResponse {
|
|
903
|
+
/** List of results for the current page */
|
|
904
|
+
items: ListSandboxesResponseItemsList;
|
|
905
|
+
/** Cursor for the next page of results */
|
|
906
|
+
nextCursor: string | null;
|
|
907
|
+
}
|
|
908
|
+
export declare const ListSandboxesResponse: S.Schema<ListSandboxesResponse>;
|
|
909
|
+
export interface PauseSandboxRequest {
|
|
910
|
+
/** ID or name of the sandbox */
|
|
911
|
+
sandboxIdOrName: string;
|
|
912
|
+
/** Use with JWT to specify the organization ID */
|
|
913
|
+
xDaytonaOrganizationID?: string;
|
|
914
|
+
}
|
|
915
|
+
export declare const PauseSandboxRequest: S.Schema<PauseSandboxRequest>;
|
|
916
|
+
export interface RecoverSandboxRequest {
|
|
917
|
+
/** ID or name of the sandbox */
|
|
918
|
+
sandboxIdOrName: string;
|
|
919
|
+
/** If true, the sandbox is left in STOPPED after recovery instead of being started. */
|
|
920
|
+
skipStart?: boolean;
|
|
921
|
+
/** Use with JWT to specify the organization ID */
|
|
922
|
+
xDaytonaOrganizationID?: string;
|
|
923
|
+
}
|
|
924
|
+
export declare const RecoverSandboxRequest: S.Schema<RecoverSandboxRequest>;
|
|
925
|
+
/** Key-value pairs of labels */
|
|
926
|
+
export type ReplaceLabelsRequestLabelsMap = {
|
|
927
|
+
[key: string]: string | undefined;
|
|
928
|
+
};
|
|
929
|
+
export declare const ReplaceLabelsRequestLabelsMap: S.Schema<ReplaceLabelsRequestLabelsMap>;
|
|
930
|
+
export interface ReplaceLabelsRequest {
|
|
931
|
+
/** ID or name of the sandbox */
|
|
932
|
+
sandboxIdOrName: string;
|
|
933
|
+
/** Use with JWT to specify the organization ID */
|
|
934
|
+
xDaytonaOrganizationID?: string;
|
|
935
|
+
/** Key-value pairs of labels */
|
|
936
|
+
labels: ReplaceLabelsRequestLabelsMap;
|
|
937
|
+
}
|
|
938
|
+
export declare const ReplaceLabelsRequest: S.Schema<ReplaceLabelsRequest>;
|
|
939
|
+
/** Key-value pairs of labels */
|
|
940
|
+
export type SandboxLabelsLabelsMap = {
|
|
941
|
+
[key: string]: string | undefined;
|
|
942
|
+
};
|
|
943
|
+
export declare const SandboxLabelsLabelsMap: S.Schema<SandboxLabelsLabelsMap>;
|
|
944
|
+
export interface SandboxLabels {
|
|
945
|
+
/** Key-value pairs of labels */
|
|
946
|
+
labels: SandboxLabelsLabelsMap;
|
|
947
|
+
}
|
|
948
|
+
export declare const SandboxLabels: S.Schema<SandboxLabels>;
|
|
949
|
+
export interface ResizeSandboxRequest {
|
|
950
|
+
/** ID or name of the sandbox */
|
|
951
|
+
sandboxIdOrName: string;
|
|
952
|
+
/** Use with JWT to specify the organization ID */
|
|
953
|
+
xDaytonaOrganizationID?: string;
|
|
954
|
+
/** CPU cores to allocate to the sandbox (minimum: 1) */
|
|
955
|
+
cpu?: number;
|
|
956
|
+
/** Memory in GB to allocate to the sandbox (minimum: 1) */
|
|
957
|
+
memory?: number;
|
|
958
|
+
/** Disk space in GB to allocate to the sandbox (can only be increased) */
|
|
959
|
+
disk?: number;
|
|
960
|
+
}
|
|
961
|
+
export declare const ResizeSandboxRequest: S.Schema<ResizeSandboxRequest>;
|
|
962
|
+
export interface ResolveSandboxSecretsRequest {
|
|
963
|
+
/** Sandbox ID */
|
|
964
|
+
sandboxId: string;
|
|
965
|
+
/** Use with JWT to specify the organization ID */
|
|
966
|
+
xDaytonaOrganizationID?: string;
|
|
967
|
+
}
|
|
968
|
+
export declare const ResolveSandboxSecretsRequest: S.Schema<ResolveSandboxSecretsRequest>;
|
|
969
|
+
export type ResolveSandboxSecrets200ResponseInnerHostsList = Array<string>;
|
|
970
|
+
export declare const ResolveSandboxSecrets200ResponseInnerHostsList: S.Schema<ResolveSandboxSecrets200ResponseInnerHostsList>;
|
|
971
|
+
export interface ResolveSandboxSecrets200ResponseInner {
|
|
972
|
+
env?: string;
|
|
973
|
+
placeholder?: string;
|
|
974
|
+
value?: string;
|
|
975
|
+
hosts?: ResolveSandboxSecrets200ResponseInnerHostsList;
|
|
976
|
+
}
|
|
977
|
+
export declare const ResolveSandboxSecrets200ResponseInner: S.Schema<ResolveSandboxSecrets200ResponseInner>;
|
|
978
|
+
export type ResolveSandboxSecretsResponseBodyList = Array<ResolveSandboxSecrets200ResponseInner>;
|
|
979
|
+
export declare const ResolveSandboxSecretsResponseBodyList: S.Schema<ResolveSandboxSecretsResponseBodyList>;
|
|
980
|
+
export type ResolveSandboxSecretsResponse = ResolveSandboxSecretsResponseBodyList;
|
|
981
|
+
export declare const ResolveSandboxSecretsResponse: S.Schema<ResolveSandboxSecretsResponse>;
|
|
982
|
+
export interface RevokeSshAccessRequest {
|
|
983
|
+
/** ID or name of the sandbox */
|
|
984
|
+
sandboxIdOrName: string;
|
|
985
|
+
/** SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked. */
|
|
986
|
+
token?: string;
|
|
987
|
+
/** Use with JWT to specify the organization ID */
|
|
988
|
+
xDaytonaOrganizationID?: string;
|
|
989
|
+
}
|
|
990
|
+
export declare const RevokeSshAccessRequest: S.Schema<RevokeSshAccessRequest>;
|
|
991
|
+
export interface RotateSigningKeyRequest {
|
|
992
|
+
/** ID of the sandbox */
|
|
993
|
+
sandboxId: string;
|
|
994
|
+
/** Use with JWT to specify the organization ID */
|
|
995
|
+
xDaytonaOrganizationID?: string;
|
|
996
|
+
}
|
|
997
|
+
export declare const RotateSigningKeyRequest: S.Schema<RotateSigningKeyRequest>;
|
|
998
|
+
export type RotateSigningKeyResponse = string;
|
|
999
|
+
export declare const RotateSigningKeyResponse: S.Schema<RotateSigningKeyResponse>;
|
|
1000
|
+
export interface SetAutoArchiveIntervalRequest {
|
|
1001
|
+
/** ID or name of the sandbox */
|
|
1002
|
+
sandboxIdOrName: string;
|
|
1003
|
+
/** Auto-archive interval in minutes (0 means the maximum interval will be used) */
|
|
1004
|
+
interval: number;
|
|
1005
|
+
/** Use with JWT to specify the organization ID */
|
|
1006
|
+
xDaytonaOrganizationID?: string;
|
|
1007
|
+
}
|
|
1008
|
+
export declare const SetAutoArchiveIntervalRequest: S.Schema<SetAutoArchiveIntervalRequest>;
|
|
1009
|
+
export interface SetAutoDeleteIntervalRequest {
|
|
1010
|
+
/** ID or name of the sandbox */
|
|
1011
|
+
sandboxIdOrName: string;
|
|
1012
|
+
/** Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) */
|
|
1013
|
+
interval: number;
|
|
1014
|
+
/** Use with JWT to specify the organization ID */
|
|
1015
|
+
xDaytonaOrganizationID?: string;
|
|
1016
|
+
}
|
|
1017
|
+
export declare const SetAutoDeleteIntervalRequest: S.Schema<SetAutoDeleteIntervalRequest>;
|
|
1018
|
+
export interface SetAutoPauseIntervalRequest {
|
|
1019
|
+
/** ID or name of the sandbox */
|
|
1020
|
+
sandboxIdOrName: string;
|
|
1021
|
+
/** Auto-pause interval in minutes (0 to disable) */
|
|
1022
|
+
interval: number;
|
|
1023
|
+
/** Use with JWT to specify the organization ID */
|
|
1024
|
+
xDaytonaOrganizationID?: string;
|
|
1025
|
+
}
|
|
1026
|
+
export declare const SetAutoPauseIntervalRequest: S.Schema<SetAutoPauseIntervalRequest>;
|
|
1027
|
+
export interface SetAutostopIntervalRequest {
|
|
1028
|
+
/** ID or name of the sandbox */
|
|
1029
|
+
sandboxIdOrName: string;
|
|
1030
|
+
/** Auto-stop interval in minutes (0 to disable) */
|
|
1031
|
+
interval: number;
|
|
1032
|
+
/** Use with JWT to specify the organization ID */
|
|
1033
|
+
xDaytonaOrganizationID?: string;
|
|
1034
|
+
}
|
|
1035
|
+
export declare const SetAutostopIntervalRequest: S.Schema<SetAutostopIntervalRequest>;
|
|
1036
|
+
export interface SetTtlRequest {
|
|
1037
|
+
/** ID or name of the sandbox */
|
|
1038
|
+
sandboxIdOrName: string;
|
|
1039
|
+
/** Maximum time to live in minutes, re-anchored from the current time (0 to disable). When it elapses the sandbox is destroyed, even if it is stopped, paused, or archived */
|
|
1040
|
+
ttlMinutes: number;
|
|
1041
|
+
/** Use with JWT to specify the organization ID */
|
|
1042
|
+
xDaytonaOrganizationID?: string;
|
|
1043
|
+
}
|
|
1044
|
+
export declare const SetTtlRequest: S.Schema<SetTtlRequest>;
|
|
1045
|
+
export interface StartSandboxRequest {
|
|
1046
|
+
/** ID or name of the sandbox */
|
|
1047
|
+
sandboxIdOrName: string;
|
|
1048
|
+
/** Use with JWT to specify the organization ID */
|
|
1049
|
+
xDaytonaOrganizationID?: string;
|
|
1050
|
+
}
|
|
1051
|
+
export declare const StartSandboxRequest: S.Schema<StartSandboxRequest>;
|
|
1052
|
+
export interface StopSandboxRequest {
|
|
1053
|
+
/** ID or name of the sandbox */
|
|
1054
|
+
sandboxIdOrName: string;
|
|
1055
|
+
/** Force stop the sandbox using SIGKILL instead of SIGTERM */
|
|
1056
|
+
force?: boolean;
|
|
1057
|
+
/** Use with JWT to specify the organization ID */
|
|
1058
|
+
xDaytonaOrganizationID?: string;
|
|
1059
|
+
}
|
|
1060
|
+
export declare const StopSandboxRequest: S.Schema<StopSandboxRequest>;
|
|
1061
|
+
export interface UpdateLastActivityRequest {
|
|
1062
|
+
/** ID of the sandbox */
|
|
1063
|
+
sandboxId: string;
|
|
1064
|
+
/** Use with JWT to specify the organization ID */
|
|
1065
|
+
xDaytonaOrganizationID?: string;
|
|
1066
|
+
/** Optional type of interaction that reset the activity timer. */
|
|
1067
|
+
activityType?: string;
|
|
1068
|
+
}
|
|
1069
|
+
export declare const UpdateLastActivityRequest: S.Schema<UpdateLastActivityRequest>;
|
|
1070
|
+
export interface UpdateLastActivityResponse {
|
|
1071
|
+
}
|
|
1072
|
+
export declare const UpdateLastActivityResponse: S.Schema<UpdateLastActivityResponse>;
|
|
1073
|
+
export interface UpdateNetworkSettingsRequest {
|
|
1074
|
+
/** ID or name of the sandbox */
|
|
1075
|
+
sandboxIdOrName: string;
|
|
1076
|
+
/** Use with JWT to specify the organization ID */
|
|
1077
|
+
xDaytonaOrganizationID?: string;
|
|
1078
|
+
/** Whether to block all network access for the sandbox */
|
|
1079
|
+
networkBlockAll?: boolean;
|
|
1080
|
+
/** Comma-separated list of allowed CIDR network addresses for the sandbox */
|
|
1081
|
+
networkAllowList?: string;
|
|
1082
|
+
/** Comma-separated list of allowed domains for the sandbox */
|
|
1083
|
+
domainAllowList?: string;
|
|
1084
|
+
}
|
|
1085
|
+
export declare const UpdateNetworkSettingsRequest: S.Schema<UpdateNetworkSettingsRequest>;
|
|
1086
|
+
export interface UpdatePublicStatusRequest {
|
|
1087
|
+
/** ID or name of the sandbox */
|
|
1088
|
+
sandboxIdOrName: string;
|
|
1089
|
+
/** Public status to set */
|
|
1090
|
+
isPublic: boolean;
|
|
1091
|
+
/** Use with JWT to specify the organization ID */
|
|
1092
|
+
xDaytonaOrganizationID?: string;
|
|
1093
|
+
}
|
|
1094
|
+
export declare const UpdatePublicStatusRequest: S.Schema<UpdatePublicStatusRequest>;
|
|
1095
|
+
export type UpdateSandboxSecretsRequestSecretsItemMap = {
|
|
1096
|
+
[key: string]: string | undefined;
|
|
1097
|
+
};
|
|
1098
|
+
export declare const UpdateSandboxSecretsRequestSecretsItemMap: S.Schema<UpdateSandboxSecretsRequestSecretsItemMap>;
|
|
1099
|
+
/** Secrets to mount in this sandbox, replacing the previously mounted set. Each entry maps an env var name to a vault secret name. Pass an empty array to detach all secrets. */
|
|
1100
|
+
export type UpdateSandboxSecretsRequestSecretsList = Array<UpdateSandboxSecretsRequestSecretsItemMap>;
|
|
1101
|
+
export declare const UpdateSandboxSecretsRequestSecretsList: S.Schema<UpdateSandboxSecretsRequestSecretsList>;
|
|
1102
|
+
export interface UpdateSandboxSecretsRequest {
|
|
1103
|
+
/** ID or name of the sandbox */
|
|
1104
|
+
sandboxIdOrName: string;
|
|
1105
|
+
/** Use with JWT to specify the organization ID */
|
|
1106
|
+
xDaytonaOrganizationID?: string;
|
|
1107
|
+
/** Secrets to mount in this sandbox, replacing the previously mounted set. Each entry maps an env var name to a vault secret name. Pass an empty array to detach all secrets. */
|
|
1108
|
+
secrets: UpdateSandboxSecretsRequestSecretsList;
|
|
1109
|
+
}
|
|
1110
|
+
export declare const UpdateSandboxSecretsRequest: S.Schema<UpdateSandboxSecretsRequest>;
|
|
1111
|
+
/** The new state for the sandbox */
|
|
1112
|
+
export type UpdateSandboxStateRequestState = "creating" | "restoring" | "destroyed" | "destroying" | "started" | "stopped" | "starting" | "stopping" | "error" | "build_failed" | "pending_build" | "building_snapshot" | "unknown" | "pulling_snapshot" | "archived" | "archiving" | "resizing" | "snapshotting" | "forking" | "pausing" | "paused" | "resuming";
|
|
1113
|
+
export declare const UpdateSandboxStateRequestState: any;
|
|
1114
|
+
export interface UpdateSandboxStateRequest {
|
|
1115
|
+
/** ID of the sandbox */
|
|
1116
|
+
sandboxId: string;
|
|
1117
|
+
/** Use with JWT to specify the organization ID */
|
|
1118
|
+
xDaytonaOrganizationID?: string;
|
|
1119
|
+
/** The new state for the sandbox */
|
|
1120
|
+
state: UpdateSandboxStateRequestState | (string & {});
|
|
1121
|
+
/** Optional error message when reporting an error state */
|
|
1122
|
+
errorReason?: string;
|
|
1123
|
+
/** Whether the sandbox is recoverable */
|
|
1124
|
+
recoverable?: boolean;
|
|
1125
|
+
}
|
|
1126
|
+
export declare const UpdateSandboxStateRequest: S.Schema<UpdateSandboxStateRequest>;
|
|
1127
|
+
export interface UpdateSandboxStateResponse {
|
|
1128
|
+
}
|
|
1129
|
+
export declare const UpdateSandboxStateResponse: S.Schema<UpdateSandboxStateResponse>;
|
|
1130
|
+
export interface ValidateSshAccessRequest {
|
|
1131
|
+
/** SSH access token to validate */
|
|
1132
|
+
token: string;
|
|
1133
|
+
/** Use with JWT to specify the organization ID */
|
|
1134
|
+
xDaytonaOrganizationID?: string;
|
|
1135
|
+
}
|
|
1136
|
+
export declare const ValidateSshAccessRequest: S.Schema<ValidateSshAccessRequest>;
|
|
1137
|
+
export interface SshAccessValidationDto {
|
|
1138
|
+
/** Whether the SSH access token is valid */
|
|
1139
|
+
valid: boolean;
|
|
1140
|
+
/** ID of the sandbox this SSH access is for */
|
|
1141
|
+
sandboxId: string;
|
|
1142
|
+
}
|
|
1143
|
+
export declare const SshAccessValidationDto: S.Schema<SshAccessValidationDto>;
|
|
1144
|
+
export type ArchiveSandboxError = DaytonaOpError;
|
|
1145
|
+
/** Archive sandbox */
|
|
1146
|
+
export declare const archiveSandbox: API.OperationMethod<ArchiveSandboxRequest, Sandbox2, ArchiveSandboxError, DaytonaOpContext>;
|
|
1147
|
+
export type CreateSandboxError = DaytonaOpError;
|
|
1148
|
+
/** Create a new sandbox */
|
|
1149
|
+
export declare const createSandbox: API.OperationMethod<CreateSandboxRequest, Sandbox2, CreateSandboxError, DaytonaOpContext>;
|
|
1150
|
+
export type CreateSandboxSnapshotError = DaytonaOpError;
|
|
1151
|
+
/** Create a snapshot from a sandbox */
|
|
1152
|
+
export declare const createSandboxSnapshot: API.OperationMethod<CreateSandboxSnapshotRequest, Sandbox2, CreateSandboxSnapshotError, DaytonaOpContext>;
|
|
1153
|
+
export type CreateSshAccessError = DaytonaOpError;
|
|
1154
|
+
/** Create SSH access for sandbox */
|
|
1155
|
+
export declare const createSshAccess: API.OperationMethod<CreateSshAccessRequest, SshAccessDto, CreateSshAccessError, DaytonaOpContext>;
|
|
1156
|
+
export type DeleteSandboxError = DaytonaOpError;
|
|
1157
|
+
/** Delete sandbox */
|
|
1158
|
+
export declare const deleteSandbox: API.OperationMethod<DeleteSandboxRequest, Sandbox2, DeleteSandboxError, DaytonaOpContext>;
|
|
1159
|
+
export type ExpireSignedPortPreviewUrlError = DaytonaOpError;
|
|
1160
|
+
/** Expire signed preview URL for a sandbox port */
|
|
1161
|
+
export declare const expireSignedPortPreviewUrl: API.OperationMethod<ExpireSignedPortPreviewUrlRequest, ExpireSignedPortPreviewUrlResponse, ExpireSignedPortPreviewUrlError, DaytonaOpContext>;
|
|
1162
|
+
export type ForkSandboxError = DaytonaOpError;
|
|
1163
|
+
/** Fork a sandbox */
|
|
1164
|
+
export declare const forkSandbox: API.OperationMethod<ForkSandboxRequest, Sandbox2, ForkSandboxError, DaytonaOpContext>;
|
|
1165
|
+
export type GetBuildLogsUrlError = DaytonaOpError;
|
|
1166
|
+
/** Get build logs URL */
|
|
1167
|
+
export declare const getBuildLogsUrl: API.OperationMethod<GetBuildLogsUrlRequest, Url, GetBuildLogsUrlError, DaytonaOpContext>;
|
|
1168
|
+
export type GetOrganizationBySandboxIdError = DaytonaOpError;
|
|
1169
|
+
/** Get organization by sandbox ID */
|
|
1170
|
+
export declare const getOrganizationBySandboxId: API.OperationMethod<GetOrganizationBySandboxIdRequest, Organization, GetOrganizationBySandboxIdError, DaytonaOpContext>;
|
|
1171
|
+
export type GetPortPreviewUrlError = DaytonaOpError;
|
|
1172
|
+
/** Get preview URL for a sandbox port */
|
|
1173
|
+
export declare const getPortPreviewUrl: API.OperationMethod<GetPortPreviewUrlRequest, PortPreviewUrl, GetPortPreviewUrlError, DaytonaOpContext>;
|
|
1174
|
+
export type GetRegionQuotaBySandboxIdError = DaytonaOpError;
|
|
1175
|
+
/** Get region quota by sandbox ID */
|
|
1176
|
+
export declare const getRegionQuotaBySandboxId: API.OperationMethod<GetRegionQuotaBySandboxIdRequest, RegionQuota, GetRegionQuotaBySandboxIdError, DaytonaOpContext>;
|
|
1177
|
+
export type GetSandboxError = DaytonaOpError;
|
|
1178
|
+
/** Get sandbox details Sandboxes destroyed by spot preemption remain retrievable for 24 hours so `spotEvictedAt` can be read. */
|
|
1179
|
+
export declare const getSandbox: API.OperationMethod<GetSandboxRequest, Sandbox2, GetSandboxError, DaytonaOpContext>;
|
|
1180
|
+
export type GetSandboxAncestorsError = DaytonaOpError;
|
|
1181
|
+
/** Get sandbox fork ancestor chain */
|
|
1182
|
+
export declare const getSandboxAncestors: API.OperationMethod<GetSandboxAncestorsRequest, GetSandboxAncestorsResponse, GetSandboxAncestorsError, DaytonaOpContext>;
|
|
1183
|
+
export type GetSandboxesForRunnerError = DaytonaOpError;
|
|
1184
|
+
/** Get sandboxes for the authenticated runner */
|
|
1185
|
+
export declare const getSandboxesForRunner: API.OperationMethod<GetSandboxesForRunnerRequest, GetSandboxesForRunnerResponse, GetSandboxesForRunnerError, DaytonaOpContext>;
|
|
1186
|
+
export type GetSandboxForksError = DaytonaOpError;
|
|
1187
|
+
/** Get sandbox fork children */
|
|
1188
|
+
export declare const getSandboxForks: API.OperationMethod<GetSandboxForksRequest, GetSandboxForksResponse, GetSandboxForksError, DaytonaOpContext>;
|
|
1189
|
+
export type GetSandboxLogsError = DaytonaOpError;
|
|
1190
|
+
/** Get sandbox logs Retrieve OTEL logs for a sandbox within a time range */
|
|
1191
|
+
export declare const getSandboxLogs: API.OperationMethod<GetSandboxLogsRequest, PaginatedLogs, GetSandboxLogsError, DaytonaOpContext>;
|
|
1192
|
+
export type GetSandboxMetricsError = DaytonaOpError;
|
|
1193
|
+
/** Get sandbox metrics Retrieve OTEL metrics for a sandbox within a time range */
|
|
1194
|
+
export declare const getSandboxMetrics: API.OperationMethod<GetSandboxMetricsRequest, MetricsResponse, GetSandboxMetricsError, DaytonaOpContext>;
|
|
1195
|
+
export type GetSandboxParentError = DaytonaOpError;
|
|
1196
|
+
/** Get sandbox fork parent */
|
|
1197
|
+
export declare const getSandboxParent: API.OperationMethod<GetSandboxParentRequest, Sandbox2, GetSandboxParentError, DaytonaOpContext>;
|
|
1198
|
+
export type GetSandboxSigningKeyError = DaytonaOpError;
|
|
1199
|
+
/** Get the signing key for a sandbox */
|
|
1200
|
+
export declare const getSandboxSigningKey: API.OperationMethod<GetSandboxSigningKeyRequest, GetSandboxSigningKeyResponse, GetSandboxSigningKeyError, DaytonaOpContext>;
|
|
1201
|
+
export type GetSandboxTracesError = DaytonaOpError;
|
|
1202
|
+
/** Get sandbox traces Retrieve OTEL traces for a sandbox within a time range */
|
|
1203
|
+
export declare const getSandboxTraces: API.OperationMethod<GetSandboxTracesRequest, PaginatedTraces, GetSandboxTracesError, DaytonaOpContext>;
|
|
1204
|
+
export type GetSandboxTraceSpansError = DaytonaOpError;
|
|
1205
|
+
/** Get trace spans Retrieve all spans for a specific trace */
|
|
1206
|
+
export declare const getSandboxTraceSpans: API.OperationMethod<GetSandboxTraceSpansRequest, GetSandboxTraceSpansResponse, GetSandboxTraceSpansError, DaytonaOpContext>;
|
|
1207
|
+
export type GetSignedPortPreviewUrlError = DaytonaOpError;
|
|
1208
|
+
/** Get signed preview URL for a sandbox port */
|
|
1209
|
+
export declare const getSignedPortPreviewUrl: API.OperationMethod<GetSignedPortPreviewUrlRequest, SignedPortPreviewUrl, GetSignedPortPreviewUrlError, DaytonaOpContext>;
|
|
1210
|
+
export type GetToolboxProxyUrlError = DaytonaOpError;
|
|
1211
|
+
/** Get toolbox proxy URL for a sandbox */
|
|
1212
|
+
export declare const getToolboxProxyUrl: API.OperationMethod<GetToolboxProxyUrlRequest, ToolboxProxyUrl, GetToolboxProxyUrlError, DaytonaOpContext>;
|
|
1213
|
+
export type ListSandboxesError = DaytonaOpError;
|
|
1214
|
+
/** List sandboxes Advanced filtering and ordering. Eventually consistent. */
|
|
1215
|
+
export declare const listSandboxes: API.OperationMethod<ListSandboxesRequest, ListSandboxesResponse, ListSandboxesError, DaytonaOpContext>;
|
|
1216
|
+
export type PauseSandboxError = DaytonaOpError;
|
|
1217
|
+
/** Pause sandbox */
|
|
1218
|
+
export declare const pauseSandbox: API.OperationMethod<PauseSandboxRequest, Sandbox2, PauseSandboxError, DaytonaOpContext>;
|
|
1219
|
+
export type RecoverSandboxError = DaytonaOpError;
|
|
1220
|
+
/** Recover sandbox from error state */
|
|
1221
|
+
export declare const recoverSandbox: API.OperationMethod<RecoverSandboxRequest, Sandbox2, RecoverSandboxError, DaytonaOpContext>;
|
|
1222
|
+
export type ReplaceLabelsError = DaytonaOpError;
|
|
1223
|
+
/** Replace sandbox labels */
|
|
1224
|
+
export declare const replaceLabels: API.OperationMethod<ReplaceLabelsRequest, SandboxLabels, ReplaceLabelsError, DaytonaOpContext>;
|
|
1225
|
+
export type ResizeSandboxError = DaytonaOpError;
|
|
1226
|
+
/** Resize sandbox resources */
|
|
1227
|
+
export declare const resizeSandbox: API.OperationMethod<ResizeSandboxRequest, Sandbox2, ResizeSandboxError, DaytonaOpContext>;
|
|
1228
|
+
export type ResolveSandboxSecretsError = DaytonaOpError;
|
|
1229
|
+
/** Resolve sandbox secrets */
|
|
1230
|
+
export declare const resolveSandboxSecrets: API.OperationMethod<ResolveSandboxSecretsRequest, ResolveSandboxSecretsResponse, ResolveSandboxSecretsError, DaytonaOpContext>;
|
|
1231
|
+
export type RevokeSshAccessError = DaytonaOpError;
|
|
1232
|
+
/** Revoke SSH access for sandbox */
|
|
1233
|
+
export declare const revokeSshAccess: API.OperationMethod<RevokeSshAccessRequest, Sandbox2, RevokeSshAccessError, DaytonaOpContext>;
|
|
1234
|
+
export type RotateSigningKeyError = DaytonaOpError;
|
|
1235
|
+
/** Rotate the signing key, invalidating all previously signed URLs */
|
|
1236
|
+
export declare const rotateSigningKey: API.OperationMethod<RotateSigningKeyRequest, RotateSigningKeyResponse, RotateSigningKeyError, DaytonaOpContext>;
|
|
1237
|
+
export type SetAutoArchiveIntervalError = DaytonaOpError;
|
|
1238
|
+
/** Set sandbox auto-archive interval */
|
|
1239
|
+
export declare const setAutoArchiveInterval: API.OperationMethod<SetAutoArchiveIntervalRequest, Sandbox2, SetAutoArchiveIntervalError, DaytonaOpContext>;
|
|
1240
|
+
export type SetAutoDeleteIntervalError = DaytonaOpError;
|
|
1241
|
+
/** Set sandbox auto-delete interval */
|
|
1242
|
+
export declare const setAutoDeleteInterval: API.OperationMethod<SetAutoDeleteIntervalRequest, Sandbox2, SetAutoDeleteIntervalError, DaytonaOpContext>;
|
|
1243
|
+
export type SetAutoPauseIntervalError = DaytonaOpError;
|
|
1244
|
+
/** Set sandbox auto-pause interval */
|
|
1245
|
+
export declare const setAutoPauseInterval: API.OperationMethod<SetAutoPauseIntervalRequest, Sandbox2, SetAutoPauseIntervalError, DaytonaOpContext>;
|
|
1246
|
+
export type SetAutostopIntervalError = DaytonaOpError;
|
|
1247
|
+
/** Set sandbox auto-stop interval */
|
|
1248
|
+
export declare const setAutostopInterval: API.OperationMethod<SetAutostopIntervalRequest, Sandbox2, SetAutostopIntervalError, DaytonaOpContext>;
|
|
1249
|
+
export type SetTtlError = DaytonaOpError;
|
|
1250
|
+
/** Set sandbox TTL */
|
|
1251
|
+
export declare const setTtl: API.OperationMethod<SetTtlRequest, Sandbox2, SetTtlError, DaytonaOpContext>;
|
|
1252
|
+
export type StartSandboxError = DaytonaOpError;
|
|
1253
|
+
/** Start or resume sandbox Starts a stopped or archived sandbox, or resumes a paused sandbox. The transition taken depends on the current sandbox state. */
|
|
1254
|
+
export declare const startSandbox: API.OperationMethod<StartSandboxRequest, Sandbox2, StartSandboxError, DaytonaOpContext>;
|
|
1255
|
+
export type StopSandboxError = DaytonaOpError;
|
|
1256
|
+
/** Stop sandbox */
|
|
1257
|
+
export declare const stopSandbox: API.OperationMethod<StopSandboxRequest, Sandbox2, StopSandboxError, DaytonaOpContext>;
|
|
1258
|
+
export type UpdateLastActivityError = DaytonaOpError;
|
|
1259
|
+
/** Update sandbox last activity */
|
|
1260
|
+
export declare const updateLastActivity: API.OperationMethod<UpdateLastActivityRequest, UpdateLastActivityResponse, UpdateLastActivityError, DaytonaOpContext>;
|
|
1261
|
+
export type UpdateNetworkSettingsError = DaytonaOpError;
|
|
1262
|
+
/** Update sandbox network settings Changes outbound network policy on the runner for a running sandbox (for example block all traffic, restore access, or set a CIDR allow list). */
|
|
1263
|
+
export declare const updateNetworkSettings: API.OperationMethod<UpdateNetworkSettingsRequest, Sandbox2, UpdateNetworkSettingsError, DaytonaOpContext>;
|
|
1264
|
+
export type UpdatePublicStatusError = DaytonaOpError;
|
|
1265
|
+
/** Update public status */
|
|
1266
|
+
export declare const updatePublicStatus: API.OperationMethod<UpdatePublicStatusRequest, Sandbox2, UpdatePublicStatusError, DaytonaOpContext>;
|
|
1267
|
+
export type UpdateSandboxSecretsError = DaytonaOpError;
|
|
1268
|
+
/** Update sandbox secrets Replaces the set of vault secrets mounted in the sandbox. Attached, detached and rotated secrets take effect for outbound requests within seconds. New env vars become visible to processes spawned after the update; a sandbox created without any secrets must be restarted for newly attached secrets to work. */
|
|
1269
|
+
export declare const updateSandboxSecrets: API.OperationMethod<UpdateSandboxSecretsRequest, Sandbox2, UpdateSandboxSecretsError, DaytonaOpContext>;
|
|
1270
|
+
export type UpdateSandboxStateError = DaytonaOpError;
|
|
1271
|
+
/** Update sandbox state */
|
|
1272
|
+
export declare const updateSandboxState: API.OperationMethod<UpdateSandboxStateRequest, UpdateSandboxStateResponse, UpdateSandboxStateError, DaytonaOpContext>;
|
|
1273
|
+
export type ValidateSshAccessError = DaytonaOpError;
|
|
1274
|
+
/** Validate SSH access for sandbox */
|
|
1275
|
+
export declare const validateSshAccess: API.OperationMethod<ValidateSshAccessRequest, SshAccessValidationDto, ValidateSshAccessError, DaytonaOpContext>;
|
|
1276
|
+
//# sourceMappingURL=sandbox.d.ts.map
|