@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.
Files changed (203) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +34 -0
  3. package/lib/credentials.d.ts +46 -0
  4. package/lib/credentials.d.ts.map +1 -0
  5. package/lib/credentials.js +67 -0
  6. package/lib/credentials.js.map +1 -0
  7. package/lib/endpoints.d.ts +15 -0
  8. package/lib/endpoints.d.ts.map +1 -0
  9. package/lib/endpoints.js +28 -0
  10. package/lib/endpoints.js.map +1 -0
  11. package/lib/errors.d.ts +53 -0
  12. package/lib/errors.d.ts.map +1 -0
  13. package/lib/errors.js +30 -0
  14. package/lib/errors.js.map +1 -0
  15. package/lib/index.d.ts +30 -0
  16. package/lib/index.d.ts.map +1 -0
  17. package/lib/index.js +30 -0
  18. package/lib/index.js.map +1 -0
  19. package/lib/pagination.d.ts +10 -0
  20. package/lib/pagination.d.ts.map +1 -0
  21. package/lib/pagination.js +10 -0
  22. package/lib/pagination.js.map +1 -0
  23. package/lib/protocol.d.ts +18 -0
  24. package/lib/protocol.d.ts.map +1 -0
  25. package/lib/protocol.js +75 -0
  26. package/lib/protocol.js.map +1 -0
  27. package/lib/response-validation.test.d.ts +4 -0
  28. package/lib/response-validation.test.d.ts.map +1 -0
  29. package/lib/response-validation.test.js +31 -0
  30. package/lib/response-validation.test.js.map +1 -0
  31. package/lib/retry.d.ts +50 -0
  32. package/lib/retry.d.ts.map +1 -0
  33. package/lib/retry.js +43 -0
  34. package/lib/retry.js.map +1 -0
  35. package/lib/services/api_keys.d.ts +120 -0
  36. package/lib/services/api_keys.d.ts.map +1 -0
  37. package/lib/services/api_keys.js +126 -0
  38. package/lib/services/api_keys.js.map +1 -0
  39. package/lib/services/audit.d.ts +159 -0
  40. package/lib/services/audit.d.ts.map +1 -0
  41. package/lib/services/audit.js +126 -0
  42. package/lib/services/audit.js.map +1 -0
  43. package/lib/services/computer_use.d.ts +484 -0
  44. package/lib/services/computer_use.d.ts.map +1 -0
  45. package/lib/services/computer_use.js +672 -0
  46. package/lib/services/computer_use.js.map +1 -0
  47. package/lib/services/config.d.ts +138 -0
  48. package/lib/services/config.d.ts.map +1 -0
  49. package/lib/services/config.js +88 -0
  50. package/lib/services/config.js.map +1 -0
  51. package/lib/services/docker_registry.d.ts +126 -0
  52. package/lib/services/docker_registry.d.ts.map +1 -0
  53. package/lib/services/docker_registry.js +135 -0
  54. package/lib/services/docker_registry.js.map +1 -0
  55. package/lib/services/file_system.d.ts +203 -0
  56. package/lib/services/file_system.d.ts.map +1 -0
  57. package/lib/services/file_system.js +255 -0
  58. package/lib/services/file_system.js.map +1 -0
  59. package/lib/services/git.d.ts +338 -0
  60. package/lib/services/git.d.ts.map +1 -0
  61. package/lib/services/git.js +417 -0
  62. package/lib/services/git.js.map +1 -0
  63. package/lib/services/health.d.ts +41 -0
  64. package/lib/services/health.d.ts.map +1 -0
  65. package/lib/services/health.js +49 -0
  66. package/lib/services/health.js.map +1 -0
  67. package/lib/services/index.d.ts +31 -0
  68. package/lib/services/index.d.ts.map +1 -0
  69. package/lib/services/index.js +32 -0
  70. package/lib/services/index.js.map +1 -0
  71. package/lib/services/info.d.ts +37 -0
  72. package/lib/services/info.d.ts.map +1 -0
  73. package/lib/services/info.js +55 -0
  74. package/lib/services/info.js.map +1 -0
  75. package/lib/services/interpreter.d.ts +56 -0
  76. package/lib/services/interpreter.d.ts.map +1 -0
  77. package/lib/services/interpreter.js +83 -0
  78. package/lib/services/interpreter.js.map +1 -0
  79. package/lib/services/jobs.d.ts +104 -0
  80. package/lib/services/jobs.d.ts.map +1 -0
  81. package/lib/services/jobs.js +94 -0
  82. package/lib/services/jobs.js.map +1 -0
  83. package/lib/services/lsp.d.ts +137 -0
  84. package/lib/services/lsp.d.ts.map +1 -0
  85. package/lib/services/lsp.js +160 -0
  86. package/lib/services/lsp.js.map +1 -0
  87. package/lib/services/object_storage.d.ts +31 -0
  88. package/lib/services/object_storage.d.ts.map +1 -0
  89. package/lib/services/object_storage.js +33 -0
  90. package/lib/services/object_storage.js.map +1 -0
  91. package/lib/services/organizations.d.ts +963 -0
  92. package/lib/services/organizations.d.ts.map +1 -0
  93. package/lib/services/organizations.js +1143 -0
  94. package/lib/services/organizations.js.map +1 -0
  95. package/lib/services/port.d.ts +29 -0
  96. package/lib/services/port.d.ts.map +1 -0
  97. package/lib/services/port.js +41 -0
  98. package/lib/services/port.js.map +1 -0
  99. package/lib/services/preview.d.ts +73 -0
  100. package/lib/services/preview.d.ts.map +1 -0
  101. package/lib/services/preview.js +125 -0
  102. package/lib/services/preview.js.map +1 -0
  103. package/lib/services/process.d.ts +329 -0
  104. package/lib/services/process.d.ts.map +1 -0
  105. package/lib/services/process.js +421 -0
  106. package/lib/services/process.js.map +1 -0
  107. package/lib/services/regions.d.ts +41 -0
  108. package/lib/services/regions.d.ts.map +1 -0
  109. package/lib/services/regions.js +36 -0
  110. package/lib/services/regions.js.map +1 -0
  111. package/lib/services/runners.d.ts +358 -0
  112. package/lib/services/runners.d.ts.map +1 -0
  113. package/lib/services/runners.js +316 -0
  114. package/lib/services/runners.js.map +1 -0
  115. package/lib/services/sandbox.d.ts +1276 -0
  116. package/lib/services/sandbox.d.ts.map +1 -0
  117. package/lib/services/sandbox.js +1218 -0
  118. package/lib/services/sandbox.js.map +1 -0
  119. package/lib/services/secret.d.ts +120 -0
  120. package/lib/services/secret.d.ts.map +1 -0
  121. package/lib/services/secret.js +113 -0
  122. package/lib/services/secret.js.map +1 -0
  123. package/lib/services/server.d.ts +44 -0
  124. package/lib/services/server.d.ts.map +1 -0
  125. package/lib/services/server.js +46 -0
  126. package/lib/services/server.js.map +1 -0
  127. package/lib/services/snapshots.d.ts +208 -0
  128. package/lib/services/snapshots.d.ts.map +1 -0
  129. package/lib/services/snapshots.js +189 -0
  130. package/lib/services/snapshots.js.map +1 -0
  131. package/lib/services/system.d.ts +24 -0
  132. package/lib/services/system.d.ts.map +1 -0
  133. package/lib/services/system.js +31 -0
  134. package/lib/services/system.js.map +1 -0
  135. package/lib/services/telemetry.d.ts +141 -0
  136. package/lib/services/telemetry.d.ts.map +1 -0
  137. package/lib/services/telemetry.js +165 -0
  138. package/lib/services/telemetry.js.map +1 -0
  139. package/lib/services/usage.d.ts +111 -0
  140. package/lib/services/usage.d.ts.map +1 -0
  141. package/lib/services/usage.js +146 -0
  142. package/lib/services/usage.js.map +1 -0
  143. package/lib/services/users.d.ts +125 -0
  144. package/lib/services/users.d.ts.map +1 -0
  145. package/lib/services/users.js +172 -0
  146. package/lib/services/users.js.map +1 -0
  147. package/lib/services/volumes.d.ts +83 -0
  148. package/lib/services/volumes.d.ts.map +1 -0
  149. package/lib/services/volumes.js +96 -0
  150. package/lib/services/volumes.js.map +1 -0
  151. package/lib/services/warm_pools.d.ts +79 -0
  152. package/lib/services/warm_pools.d.ts.map +1 -0
  153. package/lib/services/warm_pools.js +90 -0
  154. package/lib/services/warm_pools.js.map +1 -0
  155. package/lib/services/webhooks.d.ts +67 -0
  156. package/lib/services/webhooks.d.ts.map +1 -0
  157. package/lib/services/webhooks.js +103 -0
  158. package/lib/services/webhooks.js.map +1 -0
  159. package/lib/traits.d.ts +10 -0
  160. package/lib/traits.d.ts.map +1 -0
  161. package/lib/traits.js +11 -0
  162. package/lib/traits.js.map +1 -0
  163. package/package.json +78 -7
  164. package/src/credentials.ts +135 -0
  165. package/src/endpoints.ts +28 -0
  166. package/src/errors.ts +85 -0
  167. package/src/index.ts +33 -0
  168. package/src/pagination.ts +9 -0
  169. package/src/protocol.ts +108 -0
  170. package/src/response-validation.test.ts +45 -0
  171. package/src/retry.ts +74 -0
  172. package/src/services/api_keys.ts +378 -0
  173. package/src/services/audit.ts +416 -0
  174. package/src/services/computer_use.ts +1496 -0
  175. package/src/services/config.ts +256 -0
  176. package/src/services/docker_registry.ts +325 -0
  177. package/src/services/file_system.ts +575 -0
  178. package/src/services/git.ts +928 -0
  179. package/src/services/health.ts +116 -0
  180. package/src/services/index.ts +31 -0
  181. package/src/services/info.ts +116 -0
  182. package/src/services/interpreter.ts +182 -0
  183. package/src/services/jobs.ts +249 -0
  184. package/src/services/lsp.ts +367 -0
  185. package/src/services/object_storage.ts +75 -0
  186. package/src/services/organizations.ts +2712 -0
  187. package/src/services/port.ts +87 -0
  188. package/src/services/preview.ts +256 -0
  189. package/src/services/process.ts +948 -0
  190. package/src/services/regions.ts +90 -0
  191. package/src/services/runners.ts +811 -0
  192. package/src/services/sandbox.ts +3158 -0
  193. package/src/services/secret.ts +289 -0
  194. package/src/services/server.ts +111 -0
  195. package/src/services/snapshots.ts +508 -0
  196. package/src/services/system.ts +64 -0
  197. package/src/services/telemetry.ts +385 -0
  198. package/src/services/usage.ts +316 -0
  199. package/src/services/users.ts +380 -0
  200. package/src/services/volumes.ts +233 -0
  201. package/src/services/warm_pools.ts +209 -0
  202. package/src/services/webhooks.ts +214 -0
  203. package/src/traits.ts +44 -0
@@ -0,0 +1,3158 @@
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 ArchiveSandboxRequest {
16
+ sandboxIdOrName: string;
17
+ /** Use with JWT to specify the organization ID */
18
+ xDaytonaOrganizationID?: string;
19
+ }
20
+ export const ArchiveSandboxRequest = /*@__PURE__*/ S.suspend(() =>
21
+ S.Struct({
22
+ sandboxIdOrName: S.String.pipe(T.Label()),
23
+ xDaytonaOrganizationID: S.optional(
24
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
25
+ ),
26
+ }).pipe(
27
+ T.Http({
28
+ method: "POST",
29
+ uri: "/sandbox/{sandboxIdOrName}/archive",
30
+ code: 200,
31
+ }),
32
+ ),
33
+ ).annotate({
34
+ identifier: "ArchiveSandboxRequest",
35
+ }) as any as S.Schema<ArchiveSandboxRequest>;
36
+
37
+ /** Environment variables for the sandbox */
38
+ export type SandboxEnvMap = { [key: string]: string | undefined };
39
+ export const SandboxEnvMap = /*@__PURE__*/ S.Record(
40
+ S.String,
41
+ S.String,
42
+ ) as any as S.Schema<SandboxEnvMap>;
43
+
44
+ /** Labels for the sandbox */
45
+ export type SandboxLabelsMap = { [key: string]: string | undefined };
46
+ export const SandboxLabelsMap = /*@__PURE__*/ S.Record(
47
+ S.String,
48
+ S.String,
49
+ ) as any as S.Schema<SandboxLabelsMap>;
50
+
51
+ export type GpuType =
52
+ | "H100"
53
+ | "H200"
54
+ | "RTX-PRO-6000"
55
+ | "RTX-4090"
56
+ | "RTX-5090"
57
+ | "MI355X";
58
+ export const GpuType = S.String;
59
+
60
+ export type SandboxState =
61
+ | "creating"
62
+ | "restoring"
63
+ | "destroyed"
64
+ | "destroying"
65
+ | "started"
66
+ | "stopped"
67
+ | "starting"
68
+ | "stopping"
69
+ | "error"
70
+ | "build_failed"
71
+ | "pending_build"
72
+ | "building_snapshot"
73
+ | "unknown"
74
+ | "pulling_snapshot"
75
+ | "archived"
76
+ | "archiving"
77
+ | "resizing"
78
+ | "snapshotting"
79
+ | "forking"
80
+ | "pausing"
81
+ | "paused"
82
+ | "resuming";
83
+ export const SandboxState = S.String;
84
+
85
+ /** The desired state of the sandbox */
86
+ export type SandboxDesiredState =
87
+ | "destroyed"
88
+ | "started"
89
+ | "stopped"
90
+ | "resized"
91
+ | "archived"
92
+ | "paused";
93
+ export const SandboxDesiredState = S.String;
94
+
95
+ /** The state of the backup */
96
+ export type SandboxBackupState =
97
+ | "None"
98
+ | "Pending"
99
+ | "InProgress"
100
+ | "Completed"
101
+ | "Error";
102
+ export const SandboxBackupState = S.String;
103
+
104
+ export interface SandboxVolume {
105
+ /** The ID or name of the volume. Resolved to the volume ID on sandbox create. */
106
+ volumeId: string;
107
+ /** The mount path for the volume */
108
+ mountPath: string;
109
+ /** Optional subpath within the volume to mount. When specified, only this S3 prefix will be accessible. When omitted, the entire volume is mounted. */
110
+ subpath?: string;
111
+ }
112
+ export const SandboxVolume = /*@__PURE__*/ S.suspend(() =>
113
+ S.Struct({
114
+ volumeId: S.String,
115
+ mountPath: S.String,
116
+ subpath: S.optional(S.String),
117
+ }),
118
+ ).annotate({ identifier: "SandboxVolume" }) as any as S.Schema<SandboxVolume>;
119
+
120
+ /** Array of volumes attached to the sandbox */
121
+ export type SandboxVolumesList = Array<SandboxVolume>;
122
+ export const SandboxVolumesList = /*@__PURE__*/ S.Array(
123
+ SandboxVolume,
124
+ ) as any as S.Schema<SandboxVolumesList>;
125
+
126
+ /** The context hashes used for the build */
127
+ export type BuildInfoContextHashesList = Array<string>;
128
+ export const BuildInfoContextHashesList = /*@__PURE__*/ S.Array(
129
+ S.String,
130
+ ) as any as S.Schema<BuildInfoContextHashesList>;
131
+
132
+ export interface BuildInfo {
133
+ /** The Dockerfile content used for the build */
134
+ dockerfileContent?: string;
135
+ /** The context hashes used for the build */
136
+ contextHashes?: BuildInfoContextHashesList;
137
+ /** The creation timestamp */
138
+ createdAt: string;
139
+ /** The last update timestamp */
140
+ updatedAt: string;
141
+ /** The snapshot reference */
142
+ snapshotRef: string;
143
+ }
144
+ export const BuildInfo = /*@__PURE__*/ S.suspend(() =>
145
+ S.Struct({
146
+ dockerfileContent: S.optional(S.String),
147
+ contextHashes: S.optional(BuildInfoContextHashesList),
148
+ createdAt: S.String,
149
+ updatedAt: S.String,
150
+ snapshotRef: S.String,
151
+ }),
152
+ ).annotate({ identifier: "BuildInfo" }) as any as S.Schema<BuildInfo>;
153
+
154
+ /** The class of the sandbox */
155
+ export type SandboxSandboxClass =
156
+ | "linux-vm"
157
+ | "container"
158
+ | "android"
159
+ | "windows";
160
+ export const SandboxSandboxClass = S.String;
161
+
162
+ export interface Sandbox2 {
163
+ /** The ID of the sandbox */
164
+ id: string;
165
+ /** The organization ID of the sandbox */
166
+ organizationId: string;
167
+ /** The name of the sandbox */
168
+ name: string;
169
+ /** The snapshot used for the sandbox */
170
+ snapshot?: string;
171
+ /** The user associated with the project */
172
+ user: string;
173
+ /** Environment variables for the sandbox */
174
+ env: SandboxEnvMap;
175
+ /** Labels for the sandbox */
176
+ labels: SandboxLabelsMap;
177
+ /** Whether the sandbox http preview is public */
178
+ public: boolean;
179
+ /** Whether to block all network access for the sandbox */
180
+ networkBlockAll: boolean;
181
+ /** Comma-separated list of allowed CIDR network addresses for the sandbox */
182
+ networkAllowList?: string;
183
+ /** Comma-separated list of allowed domains for the sandbox */
184
+ domainAllowList?: string;
185
+ /** 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. */
186
+ outboundProxyUrl?: string;
187
+ /** 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. */
188
+ otelEndpointOverride?: string;
189
+ /** The target environment for the sandbox */
190
+ target: string;
191
+ /** The CPU quota for the sandbox */
192
+ cpu: number;
193
+ /** The GPU quota for the sandbox */
194
+ gpu: number;
195
+ /** 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. */
196
+ spot?: boolean;
197
+ /** When this sandbox was destroyed by spot preemption. Set only for spot-evicted sandboxes, which stay retrievable by ID for 24 hours after eviction. */
198
+ spotEvictedAt?: string;
199
+ /** The GPU type assigned to the sandbox */
200
+ gpuType?: GpuType;
201
+ /** The memory quota for the sandbox */
202
+ memory: number;
203
+ /** The disk quota for the sandbox */
204
+ disk: number;
205
+ /** The state of the sandbox */
206
+ state?: SandboxState;
207
+ /** The desired state of the sandbox */
208
+ desiredState?: SandboxDesiredState;
209
+ /** The error reason of the sandbox */
210
+ errorReason?: string;
211
+ /** Whether the sandbox error is recoverable. */
212
+ recoverable?: boolean;
213
+ /** Id of the warm pool this sandbox waits in; set only while it is an unclaimed member. */
214
+ warmPoolId?: string;
215
+ /** The state of the backup */
216
+ backupState?: SandboxBackupState;
217
+ /** The creation timestamp of the last backup */
218
+ backupCreatedAt?: string;
219
+ /** Auto-stop interval in minutes (0 means disabled) */
220
+ autoStopInterval?: number;
221
+ /** Auto-pause interval in minutes (0 means disabled) */
222
+ autoPauseInterval?: number;
223
+ /** Auto-archive interval in minutes */
224
+ autoArchiveInterval?: number;
225
+ /** Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) */
226
+ autoDeleteInterval?: number;
227
+ /** When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) */
228
+ autoDestroyAt?: string;
229
+ /** Array of volumes attached to the sandbox */
230
+ volumes?: SandboxVolumesList;
231
+ /** Build information for the sandbox */
232
+ buildInfo?: BuildInfo;
233
+ /** The creation timestamp of the sandbox */
234
+ createdAt?: string;
235
+ /** The last update timestamp of the sandbox */
236
+ updatedAt?: string;
237
+ /** The last activity timestamp of the sandbox */
238
+ lastActivityAt?: string;
239
+ /** The class of the sandbox */
240
+ sandboxClass?: SandboxSandboxClass;
241
+ /** The version of the daemon running in the sandbox */
242
+ daemonVersion?: string;
243
+ /** The runner ID of the sandbox */
244
+ runnerId?: string;
245
+ /** ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox. */
246
+ linkedSandboxId?: string;
247
+ /** The toolbox proxy URL for the sandbox */
248
+ toolboxProxyUrl: string;
249
+ }
250
+ export const Sandbox2 = /*@__PURE__*/ S.suspend(() =>
251
+ S.Struct({
252
+ id: S.String,
253
+ organizationId: S.String,
254
+ name: S.String,
255
+ snapshot: S.optional(S.String),
256
+ user: S.String,
257
+ env: SandboxEnvMap,
258
+ labels: SandboxLabelsMap,
259
+ public: S.Boolean,
260
+ networkBlockAll: S.Boolean,
261
+ networkAllowList: S.optional(S.String),
262
+ domainAllowList: S.optional(S.String),
263
+ outboundProxyUrl: S.optional(S.String),
264
+ otelEndpointOverride: S.optional(S.String),
265
+ target: S.String,
266
+ cpu: S.Number,
267
+ gpu: S.Number,
268
+ spot: S.optional(S.Boolean),
269
+ spotEvictedAt: S.optional(S.String),
270
+ gpuType: S.optional(GpuType),
271
+ memory: S.Number,
272
+ disk: S.Number,
273
+ state: S.optional(SandboxState),
274
+ desiredState: S.optional(SandboxDesiredState),
275
+ errorReason: S.optional(S.String),
276
+ recoverable: S.optional(S.Boolean),
277
+ warmPoolId: S.optional(S.String),
278
+ backupState: S.optional(SandboxBackupState),
279
+ backupCreatedAt: S.optional(S.String),
280
+ autoStopInterval: S.optional(S.Number),
281
+ autoPauseInterval: S.optional(S.Number),
282
+ autoArchiveInterval: S.optional(S.Number),
283
+ autoDeleteInterval: S.optional(S.Number),
284
+ autoDestroyAt: S.optional(S.String),
285
+ volumes: S.optional(SandboxVolumesList),
286
+ buildInfo: S.optional(BuildInfo),
287
+ createdAt: S.optional(S.String),
288
+ updatedAt: S.optional(S.String),
289
+ lastActivityAt: S.optional(S.String),
290
+ sandboxClass: S.optional(SandboxSandboxClass),
291
+ daemonVersion: S.optional(S.String),
292
+ runnerId: S.optional(S.String),
293
+ linkedSandboxId: S.optional(S.String),
294
+ toolboxProxyUrl: S.String,
295
+ }),
296
+ ).annotate({ identifier: "Sandbox2" }) as any as S.Schema<Sandbox2>;
297
+
298
+ /** Environment variables for the sandbox */
299
+ export type CreateSandboxRequestEnvMap = { [key: string]: string | undefined };
300
+ export const CreateSandboxRequestEnvMap = /*@__PURE__*/ S.Record(
301
+ S.String,
302
+ S.String,
303
+ ) as any as S.Schema<CreateSandboxRequestEnvMap>;
304
+
305
+ /** Labels for the sandbox */
306
+ export type CreateSandboxRequestLabelsMap = {
307
+ [key: string]: string | undefined;
308
+ };
309
+ export const CreateSandboxRequestLabelsMap = /*@__PURE__*/ S.Record(
310
+ S.String,
311
+ S.String,
312
+ ) as any as S.Schema<CreateSandboxRequestLabelsMap>;
313
+
314
+ /** 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. */
315
+ export type CreateSandboxRequestGpuTypeList = Array<GpuType | (string & {})>;
316
+ export const CreateSandboxRequestGpuTypeList = /*@__PURE__*/ S.Array(
317
+ GpuType,
318
+ ) as any as S.Schema<CreateSandboxRequestGpuTypeList>;
319
+
320
+ /** Array of volumes to attach to the sandbox */
321
+ export type CreateSandboxRequestVolumesList = Array<SandboxVolume>;
322
+ export const CreateSandboxRequestVolumesList = /*@__PURE__*/ S.Array(
323
+ SandboxVolume,
324
+ ) as any as S.Schema<CreateSandboxRequestVolumesList>;
325
+
326
+ /** The context hashes used for the build */
327
+ export type CreateBuildInfoContextHashesList = Array<string>;
328
+ export const CreateBuildInfoContextHashesList = /*@__PURE__*/ S.Array(
329
+ S.String,
330
+ ) as any as S.Schema<CreateBuildInfoContextHashesList>;
331
+
332
+ export interface CreateBuildInfo {
333
+ /** The Dockerfile content used for the build */
334
+ dockerfileContent: string;
335
+ /** The context hashes used for the build */
336
+ contextHashes?: CreateBuildInfoContextHashesList;
337
+ }
338
+ export const CreateBuildInfo = /*@__PURE__*/ S.suspend(() =>
339
+ S.Struct({
340
+ dockerfileContent: S.String,
341
+ contextHashes: S.optional(CreateBuildInfoContextHashesList),
342
+ }),
343
+ ).annotate({
344
+ identifier: "CreateBuildInfo",
345
+ }) as any as S.Schema<CreateBuildInfo>;
346
+
347
+ export type CreateSandboxRequestSecretsItemMap = {
348
+ [key: string]: string | undefined;
349
+ };
350
+ export const CreateSandboxRequestSecretsItemMap = /*@__PURE__*/ S.Record(
351
+ S.String,
352
+ S.String,
353
+ ) as any as S.Schema<CreateSandboxRequestSecretsItemMap>;
354
+
355
+ /** Secrets to mount in this sandbox. Each entry maps an env var name to a vault secret name. */
356
+ export type CreateSandboxRequestSecretsList =
357
+ Array<CreateSandboxRequestSecretsItemMap>;
358
+ export const CreateSandboxRequestSecretsList = /*@__PURE__*/ S.Array(
359
+ CreateSandboxRequestSecretsItemMap,
360
+ ) as any as S.Schema<CreateSandboxRequestSecretsList>;
361
+
362
+ export interface CreateSandboxRequest {
363
+ /** Use with JWT to specify the organization ID */
364
+ xDaytonaOrganizationID?: string;
365
+ /** The name of the sandbox. If not provided, the sandbox ID will be used as the name */
366
+ name?: string;
367
+ /** The ID or name of the snapshot used for the sandbox */
368
+ snapshot?: string;
369
+ /** The user associated with the project */
370
+ user?: string;
371
+ /** Environment variables for the sandbox */
372
+ env?: CreateSandboxRequestEnvMap;
373
+ /** Labels for the sandbox */
374
+ labels?: CreateSandboxRequestLabelsMap;
375
+ /** Whether the sandbox http preview is publicly accessible */
376
+ public?: boolean;
377
+ /** Whether to block all network access for the sandbox */
378
+ networkBlockAll?: boolean;
379
+ /** Comma-separated list of allowed CIDR network addresses for the sandbox */
380
+ networkAllowList?: string;
381
+ /** Comma-separated list of allowed domains for the sandbox */
382
+ domainAllowList?: string;
383
+ /** 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. */
384
+ outboundProxyUrl?: string;
385
+ /** 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. */
386
+ otelEndpointOverride?: string;
387
+ /** The target (region) where the sandbox will be created */
388
+ target?: string;
389
+ /** CPU cores allocated to the sandbox */
390
+ cpu?: number;
391
+ /** GPU units allocated to the sandbox */
392
+ gpu?: number;
393
+ /** 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. */
394
+ gpuType?: CreateSandboxRequestGpuTypeList;
395
+ /** 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. */
396
+ spot?: boolean;
397
+ /** Memory allocated to the sandbox in GB */
398
+ memory?: number;
399
+ /** Disk space allocated to the sandbox in GB */
400
+ disk?: number;
401
+ /** Auto-stop interval in minutes (0 means disabled) */
402
+ autoStopInterval?: number;
403
+ /** 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. */
404
+ autoPauseInterval?: number;
405
+ /** Auto-archive interval in minutes (0 means the maximum interval will be used) */
406
+ autoArchiveInterval?: number;
407
+ /** Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) */
408
+ autoDeleteInterval?: number;
409
+ /** 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. */
410
+ ttlMinutes?: number;
411
+ /** Array of volumes to attach to the sandbox */
412
+ volumes?: CreateSandboxRequestVolumesList;
413
+ /** Build information for the sandbox */
414
+ buildInfo?: CreateBuildInfo;
415
+ /** 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. */
416
+ linkedSandbox?: string;
417
+ /** Secrets to mount in this sandbox. Each entry maps an env var name to a vault secret name. */
418
+ secrets?: CreateSandboxRequestSecretsList;
419
+ }
420
+ export const CreateSandboxRequest = /*@__PURE__*/ S.suspend(() =>
421
+ S.Struct({
422
+ xDaytonaOrganizationID: S.optional(
423
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
424
+ ),
425
+ name: S.optional(S.String),
426
+ snapshot: S.optional(S.String),
427
+ user: S.optional(S.String),
428
+ env: S.optional(CreateSandboxRequestEnvMap),
429
+ labels: S.optional(CreateSandboxRequestLabelsMap),
430
+ public: S.optional(S.Boolean),
431
+ networkBlockAll: S.optional(S.Boolean),
432
+ networkAllowList: S.optional(S.String),
433
+ domainAllowList: S.optional(S.String),
434
+ outboundProxyUrl: S.optional(S.String),
435
+ otelEndpointOverride: S.optional(S.String),
436
+ target: S.optional(S.String),
437
+ cpu: S.optional(S.Number),
438
+ gpu: S.optional(S.Number),
439
+ gpuType: S.optional(CreateSandboxRequestGpuTypeList),
440
+ spot: S.optional(S.Boolean),
441
+ memory: S.optional(S.Number),
442
+ disk: S.optional(S.Number),
443
+ autoStopInterval: S.optional(S.Number),
444
+ autoPauseInterval: S.optional(S.Number),
445
+ autoArchiveInterval: S.optional(S.Number),
446
+ autoDeleteInterval: S.optional(S.Number),
447
+ ttlMinutes: S.optional(S.Number),
448
+ volumes: S.optional(CreateSandboxRequestVolumesList),
449
+ buildInfo: S.optional(CreateBuildInfo),
450
+ linkedSandbox: S.optional(S.String),
451
+ secrets: S.optional(CreateSandboxRequestSecretsList),
452
+ }).pipe(T.Http({ method: "POST", uri: "/sandbox", code: 200 })),
453
+ ).annotate({
454
+ identifier: "CreateSandboxRequest",
455
+ }) as any as S.Schema<CreateSandboxRequest>;
456
+
457
+ export interface CreateSandboxSnapshotRequest {
458
+ sandboxIdOrName: string;
459
+ /** Use with JWT to specify the organization ID */
460
+ xDaytonaOrganizationID?: string;
461
+ /** Name for the new snapshot */
462
+ name: string;
463
+ /** 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. */
464
+ includeMemory?: boolean;
465
+ }
466
+ export const CreateSandboxSnapshotRequest = /*@__PURE__*/ S.suspend(() =>
467
+ S.Struct({
468
+ sandboxIdOrName: S.String.pipe(T.Label()),
469
+ xDaytonaOrganizationID: S.optional(
470
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
471
+ ),
472
+ name: S.String,
473
+ includeMemory: S.optional(S.Boolean),
474
+ }).pipe(
475
+ T.Http({
476
+ method: "POST",
477
+ uri: "/sandbox/{sandboxIdOrName}/snapshot",
478
+ code: 200,
479
+ }),
480
+ ),
481
+ ).annotate({
482
+ identifier: "CreateSandboxSnapshotRequest",
483
+ }) as any as S.Schema<CreateSandboxSnapshotRequest>;
484
+
485
+ export interface CreateSshAccessRequest {
486
+ /** ID or name of the sandbox */
487
+ sandboxIdOrName: string;
488
+ /** Expiration time in minutes (default: 60) */
489
+ expiresInMinutes?: number;
490
+ /** Use with JWT to specify the organization ID */
491
+ xDaytonaOrganizationID?: string;
492
+ }
493
+ export const CreateSshAccessRequest = /*@__PURE__*/ S.suspend(() =>
494
+ S.Struct({
495
+ sandboxIdOrName: S.String.pipe(T.Label()),
496
+ expiresInMinutes: S.optional(S.Number.pipe(T.Query())),
497
+ xDaytonaOrganizationID: S.optional(
498
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
499
+ ),
500
+ }).pipe(
501
+ T.Http({
502
+ method: "POST",
503
+ uri: "/sandbox/{sandboxIdOrName}/ssh-access",
504
+ code: 200,
505
+ }),
506
+ ),
507
+ ).annotate({
508
+ identifier: "CreateSshAccessRequest",
509
+ }) as any as S.Schema<CreateSshAccessRequest>;
510
+
511
+ export interface SshAccessDto {
512
+ /** Unique identifier for the SSH access */
513
+ id: string;
514
+ /** ID of the sandbox this SSH access is for */
515
+ sandboxId: string;
516
+ /** SSH access token */
517
+ token: string;
518
+ /** When the SSH access expires */
519
+ expiresAt: string;
520
+ /** When the SSH access was created */
521
+ createdAt: string;
522
+ /** When the SSH access was last updated */
523
+ updatedAt: string;
524
+ /** SSH command to connect to the sandbox */
525
+ sshCommand: string;
526
+ }
527
+ export const SshAccessDto = /*@__PURE__*/ S.suspend(() =>
528
+ S.Struct({
529
+ id: S.String,
530
+ sandboxId: S.String,
531
+ token: S.String,
532
+ expiresAt: S.String,
533
+ createdAt: S.String,
534
+ updatedAt: S.String,
535
+ sshCommand: S.String,
536
+ }),
537
+ ).annotate({ identifier: "SshAccessDto" }) as any as S.Schema<SshAccessDto>;
538
+
539
+ export interface DeleteSandboxRequest {
540
+ /** ID or name of the sandbox */
541
+ sandboxIdOrName: string;
542
+ /** Use with JWT to specify the organization ID */
543
+ xDaytonaOrganizationID?: string;
544
+ }
545
+ export const DeleteSandboxRequest = /*@__PURE__*/ S.suspend(() =>
546
+ S.Struct({
547
+ sandboxIdOrName: S.String.pipe(T.Label()),
548
+ xDaytonaOrganizationID: S.optional(
549
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
550
+ ),
551
+ }).pipe(
552
+ T.Http({ method: "DELETE", uri: "/sandbox/{sandboxIdOrName}", code: 200 }),
553
+ ),
554
+ ).annotate({
555
+ identifier: "DeleteSandboxRequest",
556
+ }) as any as S.Schema<DeleteSandboxRequest>;
557
+
558
+ export interface ExpireSignedPortPreviewUrlRequest {
559
+ /** ID or name of the sandbox */
560
+ sandboxIdOrName: string;
561
+ /** Port number to expire signed preview URL for */
562
+ port: number;
563
+ /** Token to expire signed preview URL for */
564
+ token: string;
565
+ /** Use with JWT to specify the organization ID */
566
+ xDaytonaOrganizationID?: string;
567
+ }
568
+ export const ExpireSignedPortPreviewUrlRequest = /*@__PURE__*/ S.suspend(() =>
569
+ S.Struct({
570
+ sandboxIdOrName: S.String.pipe(T.Label()),
571
+ port: S.Number.pipe(T.Label()),
572
+ token: S.String.pipe(T.Label()),
573
+ xDaytonaOrganizationID: S.optional(
574
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
575
+ ),
576
+ }).pipe(
577
+ T.Http({
578
+ method: "POST",
579
+ uri: "/sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-url/{token}/expire",
580
+ code: 200,
581
+ }),
582
+ ),
583
+ ).annotate({
584
+ identifier: "ExpireSignedPortPreviewUrlRequest",
585
+ }) as any as S.Schema<ExpireSignedPortPreviewUrlRequest>;
586
+
587
+ export interface ExpireSignedPortPreviewUrlResponse {}
588
+ export const ExpireSignedPortPreviewUrlResponse = /*@__PURE__*/ S.suspend(() =>
589
+ S.Struct({}),
590
+ ).annotate({
591
+ identifier: "ExpireSignedPortPreviewUrlResponse",
592
+ }) as any as S.Schema<ExpireSignedPortPreviewUrlResponse>;
593
+
594
+ export interface ForkSandboxRequest {
595
+ sandboxIdOrName: string;
596
+ /** Use with JWT to specify the organization ID */
597
+ xDaytonaOrganizationID?: string;
598
+ /** The name for the forked sandbox. If not provided, a unique name will be generated. */
599
+ name?: string;
600
+ }
601
+ export const ForkSandboxRequest = /*@__PURE__*/ S.suspend(() =>
602
+ S.Struct({
603
+ sandboxIdOrName: S.String.pipe(T.Label()),
604
+ xDaytonaOrganizationID: S.optional(
605
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
606
+ ),
607
+ name: S.optional(S.String),
608
+ }).pipe(
609
+ T.Http({
610
+ method: "POST",
611
+ uri: "/sandbox/{sandboxIdOrName}/fork",
612
+ code: 200,
613
+ }),
614
+ ),
615
+ ).annotate({
616
+ identifier: "ForkSandboxRequest",
617
+ }) as any as S.Schema<ForkSandboxRequest>;
618
+
619
+ export interface GetBuildLogsUrlRequest {
620
+ /** ID or name of the sandbox */
621
+ sandboxIdOrName: string;
622
+ /** Use with JWT to specify the organization ID */
623
+ xDaytonaOrganizationID?: string;
624
+ }
625
+ export const GetBuildLogsUrlRequest = /*@__PURE__*/ S.suspend(() =>
626
+ S.Struct({
627
+ sandboxIdOrName: S.String.pipe(T.Label()),
628
+ xDaytonaOrganizationID: S.optional(
629
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
630
+ ),
631
+ }).pipe(
632
+ T.Http({
633
+ method: "GET",
634
+ uri: "/sandbox/{sandboxIdOrName}/build-logs-url",
635
+ code: 200,
636
+ }),
637
+ ),
638
+ ).annotate({
639
+ identifier: "GetBuildLogsUrlRequest",
640
+ }) as any as S.Schema<GetBuildLogsUrlRequest>;
641
+
642
+ export interface Url {
643
+ /** URL response */
644
+ url: string;
645
+ }
646
+ export const Url = /*@__PURE__*/ S.suspend(() =>
647
+ S.Struct({
648
+ url: S.String,
649
+ }),
650
+ ).annotate({ identifier: "Url" }) as any as S.Schema<Url>;
651
+
652
+ export interface GetOrganizationBySandboxIdRequest {
653
+ /** ID of the sandbox */
654
+ sandboxId: string;
655
+ /** Use with JWT to specify the organization ID */
656
+ xDaytonaOrganizationID?: string;
657
+ }
658
+ export const GetOrganizationBySandboxIdRequest = /*@__PURE__*/ S.suspend(() =>
659
+ S.Struct({
660
+ sandboxId: S.String.pipe(T.Label()),
661
+ xDaytonaOrganizationID: S.optional(
662
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
663
+ ),
664
+ }).pipe(
665
+ T.Http({
666
+ method: "GET",
667
+ uri: "/sandbox/{sandboxId}/organization",
668
+ code: 200,
669
+ }),
670
+ ),
671
+ ).annotate({
672
+ identifier: "GetOrganizationBySandboxIdRequest",
673
+ }) as any as S.Schema<GetOrganizationBySandboxIdRequest>;
674
+
675
+ /** Headers */
676
+ export type OtelConfigHeadersMap = { [key: string]: string | undefined };
677
+ export const OtelConfigHeadersMap = /*@__PURE__*/ S.Record(
678
+ S.String,
679
+ S.String,
680
+ ) as any as S.Schema<OtelConfigHeadersMap>;
681
+
682
+ export interface OtelConfig {
683
+ /** Endpoint */
684
+ endpoint: string;
685
+ /** Headers */
686
+ headers?: OtelConfigHeadersMap | null;
687
+ /** Organization ID the config belongs to */
688
+ organizationId?: string;
689
+ }
690
+ export const OtelConfig = /*@__PURE__*/ S.suspend(() =>
691
+ S.Struct({
692
+ endpoint: S.String,
693
+ headers: S.optional(S.NullOr(OtelConfigHeadersMap)),
694
+ organizationId: S.optional(S.String),
695
+ }),
696
+ ).annotate({ identifier: "OtelConfig" }) as any as S.Schema<OtelConfig>;
697
+
698
+ export interface Organization {
699
+ /** Organization ID */
700
+ id: string;
701
+ /** Organization name */
702
+ name: string;
703
+ /** User ID of the organization creator */
704
+ createdBy: string;
705
+ /** Personal organization flag */
706
+ personal: boolean;
707
+ /** Creation timestamp */
708
+ createdAt: string;
709
+ /** Last update timestamp */
710
+ updatedAt: string;
711
+ /** Suspended flag */
712
+ suspended: boolean;
713
+ /** Suspended at */
714
+ suspendedAt: string;
715
+ /** Suspended reason */
716
+ suspensionReason: string;
717
+ /** Suspended until */
718
+ suspendedUntil: string;
719
+ /** Suspension cleanup grace period hours */
720
+ suspensionCleanupGracePeriodHours: number;
721
+ /** Max CPU per sandbox */
722
+ maxCpuPerSandbox: number;
723
+ /** Max memory per sandbox */
724
+ maxMemoryPerSandbox: number;
725
+ /** Max disk per sandbox */
726
+ maxDiskPerSandbox: number;
727
+ /** Maximum number of secrets */
728
+ secretQuota: number;
729
+ /** Maximum number of secrets that can be mounted to a single sandbox */
730
+ maxSecretsPerSandbox: number;
731
+ /** Time in minutes before an unused snapshot is deactivated */
732
+ snapshotDeactivationTimeoutMinutes: number;
733
+ /** Sandbox default network block all */
734
+ sandboxLimitedNetworkEgress: boolean;
735
+ /** Whether the proxy shows the preview URL warning page for this organization */
736
+ previewWarningEnabled: boolean;
737
+ /** Whether this organization may configure SSO identity providers */
738
+ ssoEnabled: boolean;
739
+ /** Whether this organization may use SCIM directory sync */
740
+ scimEnabled: boolean;
741
+ /** Default region ID */
742
+ defaultRegionId?: string;
743
+ /** ID of the WorkOS organization mirrored from this organization (absent for personal organizations, which are never mirrored) */
744
+ workosOrgId?: string;
745
+ /** Authenticated rate limit per minute */
746
+ authenticatedRateLimit: number | null;
747
+ /** Sandbox create rate limit per minute */
748
+ sandboxCreateRateLimit: number | null;
749
+ /** Sandbox lifecycle rate limit per minute */
750
+ sandboxLifecycleRateLimit: number | null;
751
+ /** Experimental configuration */
752
+ experimentalConfig: unknown;
753
+ /** OpenTelemetry collection configuration */
754
+ otelConfig: OtelConfig | null;
755
+ /** Authenticated rate limit TTL in seconds */
756
+ authenticatedRateLimitTtlSeconds: number | null;
757
+ /** Sandbox create rate limit TTL in seconds */
758
+ sandboxCreateRateLimitTtlSeconds: number | null;
759
+ /** Sandbox lifecycle rate limit TTL in seconds */
760
+ sandboxLifecycleRateLimitTtlSeconds: number | null;
761
+ }
762
+ export const Organization = /*@__PURE__*/ S.suspend(() =>
763
+ S.Struct({
764
+ id: S.String,
765
+ name: S.String,
766
+ createdBy: S.String,
767
+ personal: S.Boolean,
768
+ createdAt: S.String,
769
+ updatedAt: S.String,
770
+ suspended: S.Boolean,
771
+ suspendedAt: S.String,
772
+ suspensionReason: S.String,
773
+ suspendedUntil: S.String,
774
+ suspensionCleanupGracePeriodHours: S.Number,
775
+ maxCpuPerSandbox: S.Number,
776
+ maxMemoryPerSandbox: S.Number,
777
+ maxDiskPerSandbox: S.Number,
778
+ secretQuota: S.Number,
779
+ maxSecretsPerSandbox: S.Number,
780
+ snapshotDeactivationTimeoutMinutes: S.Number,
781
+ sandboxLimitedNetworkEgress: S.Boolean,
782
+ previewWarningEnabled: S.Boolean,
783
+ ssoEnabled: S.Boolean,
784
+ scimEnabled: S.Boolean,
785
+ defaultRegionId: S.optional(S.String),
786
+ workosOrgId: S.optional(S.String),
787
+ authenticatedRateLimit: S.NullOr(S.Number),
788
+ sandboxCreateRateLimit: S.NullOr(S.Number),
789
+ sandboxLifecycleRateLimit: S.NullOr(S.Number),
790
+ experimentalConfig: S.Unknown,
791
+ otelConfig: S.NullOr(OtelConfig),
792
+ authenticatedRateLimitTtlSeconds: S.NullOr(S.Number),
793
+ sandboxCreateRateLimitTtlSeconds: S.NullOr(S.Number),
794
+ sandboxLifecycleRateLimitTtlSeconds: S.NullOr(S.Number),
795
+ }),
796
+ ).annotate({ identifier: "Organization" }) as any as S.Schema<Organization>;
797
+
798
+ export interface GetPortPreviewUrlRequest {
799
+ /** ID or name of the sandbox */
800
+ sandboxIdOrName: string;
801
+ /** Port number to get preview URL for */
802
+ port: number;
803
+ /** Use with JWT to specify the organization ID */
804
+ xDaytonaOrganizationID?: string;
805
+ }
806
+ export const GetPortPreviewUrlRequest = /*@__PURE__*/ S.suspend(() =>
807
+ S.Struct({
808
+ sandboxIdOrName: S.String.pipe(T.Label()),
809
+ port: S.Number.pipe(T.Label()),
810
+ xDaytonaOrganizationID: S.optional(
811
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
812
+ ),
813
+ }).pipe(
814
+ T.Http({
815
+ method: "GET",
816
+ uri: "/sandbox/{sandboxIdOrName}/ports/{port}/preview-url",
817
+ code: 200,
818
+ }),
819
+ ),
820
+ ).annotate({
821
+ identifier: "GetPortPreviewUrlRequest",
822
+ }) as any as S.Schema<GetPortPreviewUrlRequest>;
823
+
824
+ export interface PortPreviewUrl {
825
+ /** ID of the sandbox */
826
+ sandboxId: string;
827
+ /** Preview url */
828
+ url: string;
829
+ /** Access token */
830
+ token: string;
831
+ }
832
+ export const PortPreviewUrl = /*@__PURE__*/ S.suspend(() =>
833
+ S.Struct({
834
+ sandboxId: S.String,
835
+ url: S.String,
836
+ token: S.String,
837
+ }),
838
+ ).annotate({ identifier: "PortPreviewUrl" }) as any as S.Schema<PortPreviewUrl>;
839
+
840
+ export interface GetRegionQuotaBySandboxIdRequest {
841
+ /** ID of the sandbox */
842
+ sandboxId: string;
843
+ /** Use with JWT to specify the organization ID */
844
+ xDaytonaOrganizationID?: string;
845
+ }
846
+ export const GetRegionQuotaBySandboxIdRequest = /*@__PURE__*/ S.suspend(() =>
847
+ S.Struct({
848
+ sandboxId: S.String.pipe(T.Label()),
849
+ xDaytonaOrganizationID: S.optional(
850
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
851
+ ),
852
+ }).pipe(
853
+ T.Http({
854
+ method: "GET",
855
+ uri: "/sandbox/{sandboxId}/region-quota",
856
+ code: 200,
857
+ }),
858
+ ),
859
+ ).annotate({
860
+ identifier: "GetRegionQuotaBySandboxIdRequest",
861
+ }) as any as S.Schema<GetRegionQuotaBySandboxIdRequest>;
862
+
863
+ export type SandboxClass = "linux-vm" | "container" | "android" | "windows";
864
+ export const SandboxClass = S.String;
865
+
866
+ export type RegionQuotaAllowedGpuTypesList = Array<GpuType>;
867
+ export const RegionQuotaAllowedGpuTypesList = /*@__PURE__*/ S.Array(
868
+ GpuType,
869
+ ) as any as S.Schema<RegionQuotaAllowedGpuTypesList>;
870
+
871
+ export interface RegionQuota {
872
+ organizationId: string;
873
+ regionId: string;
874
+ sandboxClass: SandboxClass;
875
+ totalCpuQuota: number;
876
+ totalMemoryQuota: number;
877
+ totalDiskQuota: number;
878
+ totalGpuQuota: number;
879
+ allowedGpuTypes?: RegionQuotaAllowedGpuTypesList;
880
+ maxCpuPerSandbox: number | null;
881
+ maxMemoryPerSandbox: number | null;
882
+ maxDiskPerSandbox: number | null;
883
+ maxDiskPerNonEphemeralSandbox: number | null;
884
+ /** CPU maximum per requested GPU unit for GPU sandboxes. */
885
+ maxCpuPerGpu: number | null;
886
+ /** Memory maximum per requested GPU unit for GPU sandboxes. */
887
+ maxMemoryPerGpu: number | null;
888
+ /** Disk maximum per requested GPU unit for GPU sandboxes. */
889
+ maxDiskPerGpu: number | null;
890
+ /** 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. */
891
+ maxSandboxLifespan: number | null;
892
+ }
893
+ export const RegionQuota = /*@__PURE__*/ S.suspend(() =>
894
+ S.Struct({
895
+ organizationId: S.String,
896
+ regionId: S.String,
897
+ sandboxClass: SandboxClass,
898
+ totalCpuQuota: S.Number,
899
+ totalMemoryQuota: S.Number,
900
+ totalDiskQuota: S.Number,
901
+ totalGpuQuota: S.Number,
902
+ allowedGpuTypes: S.optional(RegionQuotaAllowedGpuTypesList),
903
+ maxCpuPerSandbox: S.NullOr(S.Number),
904
+ maxMemoryPerSandbox: S.NullOr(S.Number),
905
+ maxDiskPerSandbox: S.NullOr(S.Number),
906
+ maxDiskPerNonEphemeralSandbox: S.NullOr(S.Number),
907
+ maxCpuPerGpu: S.NullOr(S.Number),
908
+ maxMemoryPerGpu: S.NullOr(S.Number),
909
+ maxDiskPerGpu: S.NullOr(S.Number),
910
+ maxSandboxLifespan: S.NullOr(S.Number),
911
+ }),
912
+ ).annotate({ identifier: "RegionQuota" }) as any as S.Schema<RegionQuota>;
913
+
914
+ export interface GetSandboxRequest {
915
+ /** ID or name of the sandbox */
916
+ sandboxIdOrName: string;
917
+ /** Include verbose output */
918
+ verbose?: boolean;
919
+ /** Use with JWT to specify the organization ID */
920
+ xDaytonaOrganizationID?: string;
921
+ }
922
+ export const GetSandboxRequest = /*@__PURE__*/ S.suspend(() =>
923
+ S.Struct({
924
+ sandboxIdOrName: S.String.pipe(T.Label()),
925
+ verbose: S.optional(S.Boolean.pipe(T.Query())),
926
+ xDaytonaOrganizationID: S.optional(
927
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
928
+ ),
929
+ }).pipe(
930
+ T.Http({ method: "GET", uri: "/sandbox/{sandboxIdOrName}", code: 200 }),
931
+ ),
932
+ ).annotate({
933
+ identifier: "GetSandboxRequest",
934
+ }) as any as S.Schema<GetSandboxRequest>;
935
+
936
+ export interface GetSandboxAncestorsRequest {
937
+ sandboxIdOrName: string;
938
+ /** Use with JWT to specify the organization ID */
939
+ xDaytonaOrganizationID?: string;
940
+ }
941
+ export const GetSandboxAncestorsRequest = /*@__PURE__*/ S.suspend(() =>
942
+ S.Struct({
943
+ sandboxIdOrName: S.String.pipe(T.Label()),
944
+ xDaytonaOrganizationID: S.optional(
945
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
946
+ ),
947
+ }).pipe(
948
+ T.Http({
949
+ method: "GET",
950
+ uri: "/sandbox/{sandboxIdOrName}/ancestors",
951
+ code: 200,
952
+ }),
953
+ ),
954
+ ).annotate({
955
+ identifier: "GetSandboxAncestorsRequest",
956
+ }) as any as S.Schema<GetSandboxAncestorsRequest>;
957
+
958
+ export type GetSandboxAncestorsResponseBodyList = Array<Sandbox2>;
959
+ export const GetSandboxAncestorsResponseBodyList = /*@__PURE__*/ S.Array(
960
+ Sandbox2,
961
+ ) as any as S.Schema<GetSandboxAncestorsResponseBodyList>;
962
+
963
+ export type GetSandboxAncestorsResponse = GetSandboxAncestorsResponseBodyList;
964
+ export const GetSandboxAncestorsResponse = /*@__PURE__*/ S.suspend(() =>
965
+ GetSandboxAncestorsResponseBodyList.pipe(T.RawResponseRoot()),
966
+ ).annotate({
967
+ identifier: "GetSandboxAncestorsResponse",
968
+ }) as any as S.Schema<GetSandboxAncestorsResponse>;
969
+
970
+ export interface GetSandboxesForRunnerRequest {
971
+ /** Comma-separated list of sandbox states to filter by */
972
+ states?: string;
973
+ /** Skip sandboxes where state differs from desired state */
974
+ skipReconcilingSandboxes?: boolean;
975
+ /** Use with JWT to specify the organization ID */
976
+ xDaytonaOrganizationID?: string;
977
+ }
978
+ export const GetSandboxesForRunnerRequest = /*@__PURE__*/ S.suspend(() =>
979
+ S.Struct({
980
+ states: S.optional(S.String.pipe(T.Query())),
981
+ skipReconcilingSandboxes: S.optional(S.Boolean.pipe(T.Query())),
982
+ xDaytonaOrganizationID: S.optional(
983
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
984
+ ),
985
+ }).pipe(T.Http({ method: "GET", uri: "/sandbox/for-runner", code: 200 })),
986
+ ).annotate({
987
+ identifier: "GetSandboxesForRunnerRequest",
988
+ }) as any as S.Schema<GetSandboxesForRunnerRequest>;
989
+
990
+ export type GetSandboxesForRunnerResponseBodyList = Array<Sandbox2>;
991
+ export const GetSandboxesForRunnerResponseBodyList = /*@__PURE__*/ S.Array(
992
+ Sandbox2,
993
+ ) as any as S.Schema<GetSandboxesForRunnerResponseBodyList>;
994
+
995
+ export type GetSandboxesForRunnerResponse =
996
+ GetSandboxesForRunnerResponseBodyList;
997
+ export const GetSandboxesForRunnerResponse = /*@__PURE__*/ S.suspend(() =>
998
+ GetSandboxesForRunnerResponseBodyList.pipe(T.RawResponseRoot()),
999
+ ).annotate({
1000
+ identifier: "GetSandboxesForRunnerResponse",
1001
+ }) as any as S.Schema<GetSandboxesForRunnerResponse>;
1002
+
1003
+ export interface GetSandboxForksRequest {
1004
+ sandboxIdOrName: string;
1005
+ includeDestroyed?: boolean;
1006
+ /** Use with JWT to specify the organization ID */
1007
+ xDaytonaOrganizationID?: string;
1008
+ }
1009
+ export const GetSandboxForksRequest = /*@__PURE__*/ S.suspend(() =>
1010
+ S.Struct({
1011
+ sandboxIdOrName: S.String.pipe(T.Label()),
1012
+ includeDestroyed: S.optional(S.Boolean.pipe(T.Query())),
1013
+ xDaytonaOrganizationID: S.optional(
1014
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1015
+ ),
1016
+ }).pipe(
1017
+ T.Http({
1018
+ method: "GET",
1019
+ uri: "/sandbox/{sandboxIdOrName}/forks",
1020
+ code: 200,
1021
+ }),
1022
+ ),
1023
+ ).annotate({
1024
+ identifier: "GetSandboxForksRequest",
1025
+ }) as any as S.Schema<GetSandboxForksRequest>;
1026
+
1027
+ export type GetSandboxForksResponseBodyList = Array<Sandbox2>;
1028
+ export const GetSandboxForksResponseBodyList = /*@__PURE__*/ S.Array(
1029
+ Sandbox2,
1030
+ ) as any as S.Schema<GetSandboxForksResponseBodyList>;
1031
+
1032
+ export type GetSandboxForksResponse = GetSandboxForksResponseBodyList;
1033
+ export const GetSandboxForksResponse = /*@__PURE__*/ S.suspend(() =>
1034
+ GetSandboxForksResponseBodyList.pipe(T.RawResponseRoot()),
1035
+ ).annotate({
1036
+ identifier: "GetSandboxForksResponse",
1037
+ }) as any as S.Schema<GetSandboxForksResponse>;
1038
+
1039
+ export type GetSandboxLogsRequestSeveritiesList = Array<string>;
1040
+ export const GetSandboxLogsRequestSeveritiesList = /*@__PURE__*/ S.Array(
1041
+ S.String,
1042
+ ) as any as S.Schema<GetSandboxLogsRequestSeveritiesList>;
1043
+
1044
+ export interface GetSandboxLogsRequest {
1045
+ /** ID of the sandbox */
1046
+ sandboxId: string;
1047
+ /** Start of time range (ISO 8601) */
1048
+ from: string;
1049
+ /** End of time range (ISO 8601) */
1050
+ to: string;
1051
+ /** Page number (1-indexed) */
1052
+ page?: number;
1053
+ /** Number of items per page */
1054
+ limit?: number;
1055
+ /** Filter by severity levels (DEBUG, INFO, WARN, ERROR) */
1056
+ severities?: GetSandboxLogsRequestSeveritiesList;
1057
+ /** Search in log body */
1058
+ search?: string;
1059
+ /** Use with JWT to specify the organization ID */
1060
+ xDaytonaOrganizationID?: string;
1061
+ }
1062
+ export const GetSandboxLogsRequest = /*@__PURE__*/ S.suspend(() =>
1063
+ S.Struct({
1064
+ sandboxId: S.String.pipe(T.Label()),
1065
+ from: S.String.pipe(T.Query()),
1066
+ to: S.String.pipe(T.Query()),
1067
+ page: S.optional(S.Number.pipe(T.Query())),
1068
+ limit: S.optional(S.Number.pipe(T.Query())),
1069
+ severities: S.optional(GetSandboxLogsRequestSeveritiesList.pipe(T.Query())),
1070
+ search: S.optional(S.String.pipe(T.Query())),
1071
+ xDaytonaOrganizationID: S.optional(
1072
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1073
+ ),
1074
+ }).pipe(
1075
+ T.Http({
1076
+ method: "GET",
1077
+ uri: "/sandbox/{sandboxId}/telemetry/logs",
1078
+ code: 200,
1079
+ }),
1080
+ ),
1081
+ ).annotate({
1082
+ identifier: "GetSandboxLogsRequest",
1083
+ }) as any as S.Schema<GetSandboxLogsRequest>;
1084
+
1085
+ /** Resource attributes from OTEL */
1086
+ export type LogEntryResourceAttributesMap = {
1087
+ [key: string]: string | undefined;
1088
+ };
1089
+ export const LogEntryResourceAttributesMap = /*@__PURE__*/ S.Record(
1090
+ S.String,
1091
+ S.String,
1092
+ ) as any as S.Schema<LogEntryResourceAttributesMap>;
1093
+
1094
+ /** Log-specific attributes */
1095
+ export type LogEntryLogAttributesMap = { [key: string]: string | undefined };
1096
+ export const LogEntryLogAttributesMap = /*@__PURE__*/ S.Record(
1097
+ S.String,
1098
+ S.String,
1099
+ ) as any as S.Schema<LogEntryLogAttributesMap>;
1100
+
1101
+ export interface LogEntry {
1102
+ /** Timestamp of the log entry */
1103
+ timestamp: string;
1104
+ /** Log message body */
1105
+ body: string;
1106
+ /** Severity level text (e.g., INFO, WARN, ERROR) */
1107
+ severityText: string;
1108
+ /** Severity level number */
1109
+ severityNumber?: number;
1110
+ /** Service name that generated the log */
1111
+ serviceName: string;
1112
+ /** Resource attributes from OTEL */
1113
+ resourceAttributes: LogEntryResourceAttributesMap;
1114
+ /** Log-specific attributes */
1115
+ logAttributes: LogEntryLogAttributesMap;
1116
+ /** Associated trace ID if available */
1117
+ traceId?: string;
1118
+ /** Associated span ID if available */
1119
+ spanId?: string;
1120
+ }
1121
+ export const LogEntry = /*@__PURE__*/ S.suspend(() =>
1122
+ S.Struct({
1123
+ timestamp: S.String,
1124
+ body: S.String,
1125
+ severityText: S.String,
1126
+ severityNumber: S.optional(S.Number),
1127
+ serviceName: S.String,
1128
+ resourceAttributes: LogEntryResourceAttributesMap,
1129
+ logAttributes: LogEntryLogAttributesMap,
1130
+ traceId: S.optional(S.String),
1131
+ spanId: S.optional(S.String),
1132
+ }),
1133
+ ).annotate({ identifier: "LogEntry" }) as any as S.Schema<LogEntry>;
1134
+
1135
+ /** List of log entries */
1136
+ export type PaginatedLogsItemsList = Array<LogEntry>;
1137
+ export const PaginatedLogsItemsList = /*@__PURE__*/ S.Array(
1138
+ LogEntry,
1139
+ ) as any as S.Schema<PaginatedLogsItemsList>;
1140
+
1141
+ export interface PaginatedLogs {
1142
+ /** List of log entries */
1143
+ items: PaginatedLogsItemsList;
1144
+ /** Total number of log entries matching the query */
1145
+ total: number;
1146
+ /** Current page number */
1147
+ page: number;
1148
+ /** Total number of pages */
1149
+ totalPages: number;
1150
+ }
1151
+ export const PaginatedLogs = /*@__PURE__*/ S.suspend(() =>
1152
+ S.Struct({
1153
+ items: PaginatedLogsItemsList,
1154
+ total: S.Number,
1155
+ page: S.Number,
1156
+ totalPages: S.Number,
1157
+ }),
1158
+ ).annotate({ identifier: "PaginatedLogs" }) as any as S.Schema<PaginatedLogs>;
1159
+
1160
+ export type GetSandboxMetricsRequestMetricNamesList = Array<string>;
1161
+ export const GetSandboxMetricsRequestMetricNamesList = /*@__PURE__*/ S.Array(
1162
+ S.String,
1163
+ ) as any as S.Schema<GetSandboxMetricsRequestMetricNamesList>;
1164
+
1165
+ export interface GetSandboxMetricsRequest {
1166
+ /** ID of the sandbox */
1167
+ sandboxId: string;
1168
+ /** Start of time range (ISO 8601) */
1169
+ from: string;
1170
+ /** End of time range (ISO 8601) */
1171
+ to: string;
1172
+ /** Filter by metric names */
1173
+ metricNames?: GetSandboxMetricsRequestMetricNamesList;
1174
+ /** Use with JWT to specify the organization ID */
1175
+ xDaytonaOrganizationID?: string;
1176
+ }
1177
+ export const GetSandboxMetricsRequest = /*@__PURE__*/ S.suspend(() =>
1178
+ S.Struct({
1179
+ sandboxId: S.String.pipe(T.Label()),
1180
+ from: S.String.pipe(T.Query()),
1181
+ to: S.String.pipe(T.Query()),
1182
+ metricNames: S.optional(
1183
+ GetSandboxMetricsRequestMetricNamesList.pipe(T.Query()),
1184
+ ),
1185
+ xDaytonaOrganizationID: S.optional(
1186
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1187
+ ),
1188
+ }).pipe(
1189
+ T.Http({
1190
+ method: "GET",
1191
+ uri: "/sandbox/{sandboxId}/telemetry/metrics",
1192
+ code: 200,
1193
+ }),
1194
+ ),
1195
+ ).annotate({
1196
+ identifier: "GetSandboxMetricsRequest",
1197
+ }) as any as S.Schema<GetSandboxMetricsRequest>;
1198
+
1199
+ export interface MetricDataPoint {
1200
+ /** Timestamp of the data point */
1201
+ timestamp: string;
1202
+ /** Value at this timestamp */
1203
+ value: number;
1204
+ }
1205
+ export const MetricDataPoint = /*@__PURE__*/ S.suspend(() =>
1206
+ S.Struct({
1207
+ timestamp: S.String,
1208
+ value: S.Number,
1209
+ }),
1210
+ ).annotate({
1211
+ identifier: "MetricDataPoint",
1212
+ }) as any as S.Schema<MetricDataPoint>;
1213
+
1214
+ /** Data points for this metric */
1215
+ export type MetricSeriesDataPointsList = Array<MetricDataPoint>;
1216
+ export const MetricSeriesDataPointsList = /*@__PURE__*/ S.Array(
1217
+ MetricDataPoint,
1218
+ ) as any as S.Schema<MetricSeriesDataPointsList>;
1219
+
1220
+ export interface MetricSeries {
1221
+ /** Name of the metric */
1222
+ metricName: string;
1223
+ /** Data points for this metric */
1224
+ dataPoints: MetricSeriesDataPointsList;
1225
+ }
1226
+ export const MetricSeries = /*@__PURE__*/ S.suspend(() =>
1227
+ S.Struct({
1228
+ metricName: S.String,
1229
+ dataPoints: MetricSeriesDataPointsList,
1230
+ }),
1231
+ ).annotate({ identifier: "MetricSeries" }) as any as S.Schema<MetricSeries>;
1232
+
1233
+ /** List of metric series */
1234
+ export type MetricsResponseSeriesList = Array<MetricSeries>;
1235
+ export const MetricsResponseSeriesList = /*@__PURE__*/ S.Array(
1236
+ MetricSeries,
1237
+ ) as any as S.Schema<MetricsResponseSeriesList>;
1238
+
1239
+ export interface MetricsResponse {
1240
+ /** List of metric series */
1241
+ series: MetricsResponseSeriesList;
1242
+ }
1243
+ export const MetricsResponse = /*@__PURE__*/ S.suspend(() =>
1244
+ S.Struct({
1245
+ series: MetricsResponseSeriesList,
1246
+ }),
1247
+ ).annotate({
1248
+ identifier: "MetricsResponse",
1249
+ }) as any as S.Schema<MetricsResponse>;
1250
+
1251
+ export interface GetSandboxParentRequest {
1252
+ sandboxIdOrName: string;
1253
+ /** Use with JWT to specify the organization ID */
1254
+ xDaytonaOrganizationID?: string;
1255
+ }
1256
+ export const GetSandboxParentRequest = /*@__PURE__*/ S.suspend(() =>
1257
+ S.Struct({
1258
+ sandboxIdOrName: S.String.pipe(T.Label()),
1259
+ xDaytonaOrganizationID: S.optional(
1260
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1261
+ ),
1262
+ }).pipe(
1263
+ T.Http({
1264
+ method: "GET",
1265
+ uri: "/sandbox/{sandboxIdOrName}/parent",
1266
+ code: 200,
1267
+ }),
1268
+ ),
1269
+ ).annotate({
1270
+ identifier: "GetSandboxParentRequest",
1271
+ }) as any as S.Schema<GetSandboxParentRequest>;
1272
+
1273
+ export interface GetSandboxSigningKeyRequest {
1274
+ /** ID of the sandbox */
1275
+ sandboxId: string;
1276
+ /** Use with JWT to specify the organization ID */
1277
+ xDaytonaOrganizationID?: string;
1278
+ }
1279
+ export const GetSandboxSigningKeyRequest = /*@__PURE__*/ S.suspend(() =>
1280
+ S.Struct({
1281
+ sandboxId: S.String.pipe(T.Label()),
1282
+ xDaytonaOrganizationID: S.optional(
1283
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1284
+ ),
1285
+ }).pipe(
1286
+ T.Http({
1287
+ method: "GET",
1288
+ uri: "/sandbox/{sandboxId}/signing-key",
1289
+ code: 200,
1290
+ }),
1291
+ ),
1292
+ ).annotate({
1293
+ identifier: "GetSandboxSigningKeyRequest",
1294
+ }) as any as S.Schema<GetSandboxSigningKeyRequest>;
1295
+
1296
+ export type GetSandboxSigningKeyResponse = string;
1297
+ export const GetSandboxSigningKeyResponse = /*@__PURE__*/ S.suspend(() =>
1298
+ S.String.pipe(T.RawResponseRoot()),
1299
+ ).annotate({
1300
+ identifier: "GetSandboxSigningKeyResponse",
1301
+ }) as any as S.Schema<GetSandboxSigningKeyResponse>;
1302
+
1303
+ export interface GetSandboxTracesRequest {
1304
+ /** ID of the sandbox */
1305
+ sandboxId: string;
1306
+ /** Start of time range (ISO 8601) */
1307
+ from: string;
1308
+ /** End of time range (ISO 8601) */
1309
+ to: string;
1310
+ /** Page number (1-indexed) */
1311
+ page?: number;
1312
+ /** Number of items per page */
1313
+ limit?: number;
1314
+ /** Use with JWT to specify the organization ID */
1315
+ xDaytonaOrganizationID?: string;
1316
+ }
1317
+ export const GetSandboxTracesRequest = /*@__PURE__*/ S.suspend(() =>
1318
+ S.Struct({
1319
+ sandboxId: S.String.pipe(T.Label()),
1320
+ from: S.String.pipe(T.Query()),
1321
+ to: S.String.pipe(T.Query()),
1322
+ page: S.optional(S.Number.pipe(T.Query())),
1323
+ limit: S.optional(S.Number.pipe(T.Query())),
1324
+ xDaytonaOrganizationID: S.optional(
1325
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1326
+ ),
1327
+ }).pipe(
1328
+ T.Http({
1329
+ method: "GET",
1330
+ uri: "/sandbox/{sandboxId}/telemetry/traces",
1331
+ code: 200,
1332
+ }),
1333
+ ),
1334
+ ).annotate({
1335
+ identifier: "GetSandboxTracesRequest",
1336
+ }) as any as S.Schema<GetSandboxTracesRequest>;
1337
+
1338
+ export interface TraceSummary {
1339
+ /** Unique trace identifier */
1340
+ traceId: string;
1341
+ /** Name of the root span */
1342
+ rootSpanName: string;
1343
+ /** Trace start time */
1344
+ startTime: string;
1345
+ /** Trace end time */
1346
+ endTime: string;
1347
+ /** Total duration in milliseconds */
1348
+ durationMs: number;
1349
+ /** Number of spans in this trace */
1350
+ spanCount: number;
1351
+ /** Status code of the trace */
1352
+ statusCode?: string;
1353
+ }
1354
+ export const TraceSummary = /*@__PURE__*/ S.suspend(() =>
1355
+ S.Struct({
1356
+ traceId: S.String,
1357
+ rootSpanName: S.String,
1358
+ startTime: S.String,
1359
+ endTime: S.String,
1360
+ durationMs: S.Number,
1361
+ spanCount: S.Number,
1362
+ statusCode: S.optional(S.String),
1363
+ }),
1364
+ ).annotate({ identifier: "TraceSummary" }) as any as S.Schema<TraceSummary>;
1365
+
1366
+ /** List of trace summaries */
1367
+ export type PaginatedTracesItemsList = Array<TraceSummary>;
1368
+ export const PaginatedTracesItemsList = /*@__PURE__*/ S.Array(
1369
+ TraceSummary,
1370
+ ) as any as S.Schema<PaginatedTracesItemsList>;
1371
+
1372
+ export interface PaginatedTraces {
1373
+ /** List of trace summaries */
1374
+ items: PaginatedTracesItemsList;
1375
+ /** Total number of traces matching the query */
1376
+ total: number;
1377
+ /** Current page number */
1378
+ page: number;
1379
+ /** Total number of pages */
1380
+ totalPages: number;
1381
+ }
1382
+ export const PaginatedTraces = /*@__PURE__*/ S.suspend(() =>
1383
+ S.Struct({
1384
+ items: PaginatedTracesItemsList,
1385
+ total: S.Number,
1386
+ page: S.Number,
1387
+ totalPages: S.Number,
1388
+ }),
1389
+ ).annotate({
1390
+ identifier: "PaginatedTraces",
1391
+ }) as any as S.Schema<PaginatedTraces>;
1392
+
1393
+ export interface GetSandboxTraceSpansRequest {
1394
+ /** ID of the sandbox */
1395
+ sandboxId: string;
1396
+ /** ID of the trace */
1397
+ traceId: string;
1398
+ /** Use with JWT to specify the organization ID */
1399
+ xDaytonaOrganizationID?: string;
1400
+ }
1401
+ export const GetSandboxTraceSpansRequest = /*@__PURE__*/ S.suspend(() =>
1402
+ S.Struct({
1403
+ sandboxId: S.String.pipe(T.Label()),
1404
+ traceId: S.String.pipe(T.Label()),
1405
+ xDaytonaOrganizationID: S.optional(
1406
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1407
+ ),
1408
+ }).pipe(
1409
+ T.Http({
1410
+ method: "GET",
1411
+ uri: "/sandbox/{sandboxId}/telemetry/traces/{traceId}",
1412
+ code: 200,
1413
+ }),
1414
+ ),
1415
+ ).annotate({
1416
+ identifier: "GetSandboxTraceSpansRequest",
1417
+ }) as any as S.Schema<GetSandboxTraceSpansRequest>;
1418
+
1419
+ /** Span attributes */
1420
+ export type TraceSpanSpanAttributesMap = { [key: string]: string | undefined };
1421
+ export const TraceSpanSpanAttributesMap = /*@__PURE__*/ S.Record(
1422
+ S.String,
1423
+ S.String,
1424
+ ) as any as S.Schema<TraceSpanSpanAttributesMap>;
1425
+
1426
+ export interface TraceSpan {
1427
+ /** Trace identifier */
1428
+ traceId: string;
1429
+ /** Span identifier */
1430
+ spanId: string;
1431
+ /** Parent span identifier */
1432
+ parentSpanId?: string;
1433
+ /** Span name */
1434
+ spanName: string;
1435
+ /** Span start timestamp */
1436
+ timestamp: string;
1437
+ /** Span duration in nanoseconds */
1438
+ durationNs: number;
1439
+ /** Span attributes */
1440
+ spanAttributes: TraceSpanSpanAttributesMap;
1441
+ /** Status code of the span */
1442
+ statusCode?: string;
1443
+ /** Status message */
1444
+ statusMessage?: string;
1445
+ }
1446
+ export const TraceSpan = /*@__PURE__*/ S.suspend(() =>
1447
+ S.Struct({
1448
+ traceId: S.String,
1449
+ spanId: S.String,
1450
+ parentSpanId: S.optional(S.String),
1451
+ spanName: S.String,
1452
+ timestamp: S.String,
1453
+ durationNs: S.Number,
1454
+ spanAttributes: TraceSpanSpanAttributesMap,
1455
+ statusCode: S.optional(S.String),
1456
+ statusMessage: S.optional(S.String),
1457
+ }),
1458
+ ).annotate({ identifier: "TraceSpan" }) as any as S.Schema<TraceSpan>;
1459
+
1460
+ export type GetSandboxTraceSpansResponseBodyList = Array<TraceSpan>;
1461
+ export const GetSandboxTraceSpansResponseBodyList = /*@__PURE__*/ S.Array(
1462
+ TraceSpan,
1463
+ ) as any as S.Schema<GetSandboxTraceSpansResponseBodyList>;
1464
+
1465
+ export type GetSandboxTraceSpansResponse = GetSandboxTraceSpansResponseBodyList;
1466
+ export const GetSandboxTraceSpansResponse = /*@__PURE__*/ S.suspend(() =>
1467
+ GetSandboxTraceSpansResponseBodyList.pipe(T.RawResponseRoot()),
1468
+ ).annotate({
1469
+ identifier: "GetSandboxTraceSpansResponse",
1470
+ }) as any as S.Schema<GetSandboxTraceSpansResponse>;
1471
+
1472
+ export interface GetSignedPortPreviewUrlRequest {
1473
+ /** ID or name of the sandbox */
1474
+ sandboxIdOrName: string;
1475
+ /** Port number to get signed preview URL for */
1476
+ port: number;
1477
+ /** Expiration time in seconds (default: 60 seconds) */
1478
+ expiresInSeconds?: number;
1479
+ /** Use with JWT to specify the organization ID */
1480
+ xDaytonaOrganizationID?: string;
1481
+ }
1482
+ export const GetSignedPortPreviewUrlRequest = /*@__PURE__*/ S.suspend(() =>
1483
+ S.Struct({
1484
+ sandboxIdOrName: S.String.pipe(T.Label()),
1485
+ port: S.Number.pipe(T.Label()),
1486
+ expiresInSeconds: S.optional(S.Number.pipe(T.Query())),
1487
+ xDaytonaOrganizationID: S.optional(
1488
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1489
+ ),
1490
+ }).pipe(
1491
+ T.Http({
1492
+ method: "GET",
1493
+ uri: "/sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-url",
1494
+ code: 200,
1495
+ }),
1496
+ ),
1497
+ ).annotate({
1498
+ identifier: "GetSignedPortPreviewUrlRequest",
1499
+ }) as any as S.Schema<GetSignedPortPreviewUrlRequest>;
1500
+
1501
+ export interface SignedPortPreviewUrl {
1502
+ /** ID of the sandbox */
1503
+ sandboxId: string;
1504
+ /** Port number of the signed preview URL */
1505
+ port: number;
1506
+ /** Token of the signed preview URL */
1507
+ token: string;
1508
+ /** Signed preview url */
1509
+ url: string;
1510
+ }
1511
+ export const SignedPortPreviewUrl = /*@__PURE__*/ S.suspend(() =>
1512
+ S.Struct({
1513
+ sandboxId: S.String,
1514
+ port: S.Number,
1515
+ token: S.String,
1516
+ url: S.String,
1517
+ }),
1518
+ ).annotate({
1519
+ identifier: "SignedPortPreviewUrl",
1520
+ }) as any as S.Schema<SignedPortPreviewUrl>;
1521
+
1522
+ export interface GetToolboxProxyUrlRequest {
1523
+ /** ID of the sandbox */
1524
+ sandboxId: string;
1525
+ /** Use with JWT to specify the organization ID */
1526
+ xDaytonaOrganizationID?: string;
1527
+ }
1528
+ export const GetToolboxProxyUrlRequest = /*@__PURE__*/ S.suspend(() =>
1529
+ S.Struct({
1530
+ sandboxId: S.String.pipe(T.Label()),
1531
+ xDaytonaOrganizationID: S.optional(
1532
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1533
+ ),
1534
+ }).pipe(
1535
+ T.Http({
1536
+ method: "GET",
1537
+ uri: "/sandbox/{sandboxId}/toolbox-proxy-url",
1538
+ code: 200,
1539
+ }),
1540
+ ),
1541
+ ).annotate({
1542
+ identifier: "GetToolboxProxyUrlRequest",
1543
+ }) as any as S.Schema<GetToolboxProxyUrlRequest>;
1544
+
1545
+ export interface ToolboxProxyUrl {
1546
+ /** The toolbox proxy URL for the sandbox */
1547
+ url: string;
1548
+ }
1549
+ export const ToolboxProxyUrl = /*@__PURE__*/ S.suspend(() =>
1550
+ S.Struct({
1551
+ url: S.String,
1552
+ }),
1553
+ ).annotate({
1554
+ identifier: "ToolboxProxyUrl",
1555
+ }) as any as S.Schema<ToolboxProxyUrl>;
1556
+
1557
+ export type ListSandboxesRequestStatesList = Array<
1558
+ SandboxState | (string & {})
1559
+ >;
1560
+ export const ListSandboxesRequestStatesList = /*@__PURE__*/ S.Array(
1561
+ SandboxState,
1562
+ ) as any as S.Schema<ListSandboxesRequestStatesList>;
1563
+
1564
+ export type ListSandboxesRequestSnapshotsList = Array<string>;
1565
+ export const ListSandboxesRequestSnapshotsList = /*@__PURE__*/ S.Array(
1566
+ S.String,
1567
+ ) as any as S.Schema<ListSandboxesRequestSnapshotsList>;
1568
+
1569
+ export type ListSandboxesRequestRegionIdsList = Array<string>;
1570
+ export const ListSandboxesRequestRegionIdsList = /*@__PURE__*/ S.Array(
1571
+ S.String,
1572
+ ) as any as S.Schema<ListSandboxesRequestRegionIdsList>;
1573
+
1574
+ export type ListSandboxesRequestSandboxClassesList = Array<
1575
+ SandboxClass | (string & {})
1576
+ >;
1577
+ export const ListSandboxesRequestSandboxClassesList = /*@__PURE__*/ S.Array(
1578
+ SandboxClass,
1579
+ ) as any as S.Schema<ListSandboxesRequestSandboxClassesList>;
1580
+
1581
+ export type SandboxListSortField =
1582
+ | "name"
1583
+ | "cpu"
1584
+ | "memoryGib"
1585
+ | "diskGib"
1586
+ | "lastActivityAt"
1587
+ | "createdAt";
1588
+ export const SandboxListSortField = S.String;
1589
+
1590
+ export type SandboxListSortDirection = "asc" | "desc";
1591
+ export const SandboxListSortDirection = S.String;
1592
+
1593
+ export interface ListSandboxesRequest {
1594
+ /** Pagination cursor from a previous response */
1595
+ cursor?: string;
1596
+ /** Number of results per page */
1597
+ limit?: number;
1598
+ /** Filter by ID prefix (case-insensitive) */
1599
+ id?: string;
1600
+ /** Filter by name prefix (case-insensitive) */
1601
+ name?: string;
1602
+ /** JSON encoded labels to filter by */
1603
+ labels?: string;
1604
+ /** Include results with errored state and deleted desired state */
1605
+ includeErroredDeleted?: boolean;
1606
+ /** Include unclaimed warm pool sandboxes (excluded by default) */
1607
+ includeWarm?: boolean;
1608
+ /** List of states to filter by. */
1609
+ states?: ListSandboxesRequestStatesList;
1610
+ /** List of snapshot names to filter by */
1611
+ snapshots?: ListSandboxesRequestSnapshotsList;
1612
+ /** List of regions IDs to filter by */
1613
+ regionIds?: ListSandboxesRequestRegionIdsList;
1614
+ /** List of sandbox classes to filter by */
1615
+ sandboxClasses?: ListSandboxesRequestSandboxClassesList;
1616
+ /** Minimum CPU */
1617
+ minCpu?: number;
1618
+ /** Maximum CPU */
1619
+ maxCpu?: number;
1620
+ /** Minimum memory in GiB */
1621
+ minMemoryGiB?: number;
1622
+ /** Maximum memory in GiB */
1623
+ maxMemoryGiB?: number;
1624
+ /** Minimum disk space in GiB */
1625
+ minDiskGiB?: number;
1626
+ /** Maximum disk space in GiB */
1627
+ maxDiskGiB?: number;
1628
+ /** Minimum GPU */
1629
+ minGpu?: number;
1630
+ /** Maximum GPU */
1631
+ maxGpu?: number;
1632
+ /** Filter by public status */
1633
+ isPublic?: boolean;
1634
+ /** Filter by recoverable status */
1635
+ isRecoverable?: boolean;
1636
+ /** Include items created after this timestamp */
1637
+ createdAtAfter?: string;
1638
+ /** Include items created before this timestamp */
1639
+ createdAtBefore?: string;
1640
+ /** Include items with last event after this timestamp */
1641
+ lastEventAfter?: string;
1642
+ /** Include items with last event before this timestamp */
1643
+ lastEventBefore?: string;
1644
+ /** Include items scheduled for auto destroy after this timestamp */
1645
+ autoDestroyAtAfter?: string;
1646
+ /** Include items scheduled for auto destroy before this timestamp */
1647
+ autoDestroyAtBefore?: string;
1648
+ /** Field to sort by */
1649
+ sort?: SandboxListSortField | (string & {});
1650
+ /** Direction to sort by */
1651
+ order?: SandboxListSortDirection | (string & {});
1652
+ /** Use with JWT to specify the organization ID */
1653
+ xDaytonaOrganizationID?: string;
1654
+ }
1655
+ export const ListSandboxesRequest = /*@__PURE__*/ S.suspend(() =>
1656
+ S.Struct({
1657
+ cursor: S.optional(S.String.pipe(T.Query())),
1658
+ limit: S.optional(S.Number.pipe(T.Query())),
1659
+ id: S.optional(S.String.pipe(T.Query())),
1660
+ name: S.optional(S.String.pipe(T.Query())),
1661
+ labels: S.optional(S.String.pipe(T.Query())),
1662
+ includeErroredDeleted: S.optional(S.Boolean.pipe(T.Query())),
1663
+ includeWarm: S.optional(S.Boolean.pipe(T.Query())),
1664
+ states: S.optional(ListSandboxesRequestStatesList.pipe(T.Query())),
1665
+ snapshots: S.optional(ListSandboxesRequestSnapshotsList.pipe(T.Query())),
1666
+ regionIds: S.optional(ListSandboxesRequestRegionIdsList.pipe(T.Query())),
1667
+ sandboxClasses: S.optional(
1668
+ ListSandboxesRequestSandboxClassesList.pipe(T.Query()),
1669
+ ),
1670
+ minCpu: S.optional(S.Number.pipe(T.Query())),
1671
+ maxCpu: S.optional(S.Number.pipe(T.Query())),
1672
+ minMemoryGiB: S.optional(S.Number.pipe(T.Query())),
1673
+ maxMemoryGiB: S.optional(S.Number.pipe(T.Query())),
1674
+ minDiskGiB: S.optional(S.Number.pipe(T.Query())),
1675
+ maxDiskGiB: S.optional(S.Number.pipe(T.Query())),
1676
+ minGpu: S.optional(S.Number.pipe(T.Query())),
1677
+ maxGpu: S.optional(S.Number.pipe(T.Query())),
1678
+ isPublic: S.optional(S.Boolean.pipe(T.Query())),
1679
+ isRecoverable: S.optional(S.Boolean.pipe(T.Query())),
1680
+ createdAtAfter: S.optional(S.String.pipe(T.Query())),
1681
+ createdAtBefore: S.optional(S.String.pipe(T.Query())),
1682
+ lastEventAfter: S.optional(S.String.pipe(T.Query())),
1683
+ lastEventBefore: S.optional(S.String.pipe(T.Query())),
1684
+ autoDestroyAtAfter: S.optional(S.String.pipe(T.Query())),
1685
+ autoDestroyAtBefore: S.optional(S.String.pipe(T.Query())),
1686
+ sort: S.optional(SandboxListSortField.pipe(T.Query())),
1687
+ order: S.optional(SandboxListSortDirection.pipe(T.Query())),
1688
+ xDaytonaOrganizationID: S.optional(
1689
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1690
+ ),
1691
+ }).pipe(T.Http({ method: "GET", uri: "/sandbox", code: 200 })),
1692
+ ).annotate({
1693
+ identifier: "ListSandboxesRequest",
1694
+ }) as any as S.Schema<ListSandboxesRequest>;
1695
+
1696
+ /** Labels for the sandbox */
1697
+ export type SandboxListItemLabelsMap = { [key: string]: string | undefined };
1698
+ export const SandboxListItemLabelsMap = /*@__PURE__*/ S.Record(
1699
+ S.String,
1700
+ S.String,
1701
+ ) as any as S.Schema<SandboxListItemLabelsMap>;
1702
+
1703
+ /** The state of the backup */
1704
+ export type SandboxListItemBackupState =
1705
+ | "None"
1706
+ | "Pending"
1707
+ | "InProgress"
1708
+ | "Completed"
1709
+ | "Error";
1710
+ export const SandboxListItemBackupState = S.String;
1711
+
1712
+ export interface SandboxListItem {
1713
+ /** The ID of the sandbox */
1714
+ id: string;
1715
+ /** The organization ID of the sandbox */
1716
+ organizationId: string;
1717
+ /** The name of the sandbox */
1718
+ name: string;
1719
+ /** The target environment for the sandbox */
1720
+ target: string;
1721
+ /** The runner ID of the sandbox */
1722
+ runnerId?: string;
1723
+ /** The class of the sandbox */
1724
+ sandboxClass?: SandboxClass;
1725
+ /** The state of the sandbox */
1726
+ state?: SandboxState;
1727
+ /** The desired state of the sandbox */
1728
+ desiredState?: SandboxDesiredState;
1729
+ /** The snapshot used for the sandbox */
1730
+ snapshot?: string;
1731
+ /** The user associated with the project */
1732
+ user: string;
1733
+ /** The error reason of the sandbox */
1734
+ errorReason?: string;
1735
+ /** Whether the sandbox error is recoverable. */
1736
+ recoverable?: boolean;
1737
+ /** Whether the sandbox http preview is public */
1738
+ public: boolean;
1739
+ /** Whether to block all network access for the sandbox */
1740
+ networkBlockAll: boolean;
1741
+ /** Comma-separated list of allowed CIDR network addresses for the sandbox */
1742
+ networkAllowList?: string;
1743
+ /** Comma-separated list of allowed domains for the sandbox */
1744
+ domainAllowList?: string;
1745
+ /** The CPU quota for the sandbox */
1746
+ cpu: number;
1747
+ /** The GPU quota for the sandbox */
1748
+ gpu: number;
1749
+ /** 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. */
1750
+ spot?: boolean;
1751
+ /** 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. */
1752
+ spotEvictedAt?: string;
1753
+ /** The GPU type assigned to the sandbox */
1754
+ gpuType?: GpuType;
1755
+ /** The memory quota for the sandbox */
1756
+ memory: number;
1757
+ /** The disk quota for the sandbox */
1758
+ disk: number;
1759
+ /** Labels for the sandbox */
1760
+ labels: SandboxListItemLabelsMap;
1761
+ /** The state of the backup */
1762
+ backupState?: SandboxListItemBackupState;
1763
+ /** Auto-stop interval in minutes (0 means disabled) */
1764
+ autoStopInterval?: number;
1765
+ /** Auto-pause interval in minutes (0 means disabled) */
1766
+ autoPauseInterval?: number;
1767
+ /** Auto-archive interval in minutes */
1768
+ autoArchiveInterval?: number;
1769
+ /** Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) */
1770
+ autoDeleteInterval?: number;
1771
+ /** When the sandbox will be automatically destroyed, regardless of its state (only set when a TTL is configured) */
1772
+ autoDestroyAt?: string;
1773
+ /** The creation timestamp of the sandbox */
1774
+ createdAt?: string;
1775
+ /** The last update timestamp of the sandbox */
1776
+ updatedAt?: string;
1777
+ /** The last activity timestamp of the sandbox */
1778
+ lastActivityAt?: string;
1779
+ /** The version of the daemon running in the sandbox */
1780
+ daemonVersion?: string;
1781
+ /** Id of the warm pool this sandbox waits in; set only while it is an unclaimed member */
1782
+ warmPoolId?: string;
1783
+ /** The toolbox proxy URL for the sandbox */
1784
+ toolboxProxyUrl: string;
1785
+ }
1786
+ export const SandboxListItem = /*@__PURE__*/ S.suspend(() =>
1787
+ S.Struct({
1788
+ id: S.String,
1789
+ organizationId: S.String,
1790
+ name: S.String,
1791
+ target: S.String,
1792
+ runnerId: S.optional(S.String),
1793
+ sandboxClass: S.optional(SandboxClass),
1794
+ state: S.optional(SandboxState),
1795
+ desiredState: S.optional(SandboxDesiredState),
1796
+ snapshot: S.optional(S.String),
1797
+ user: S.String,
1798
+ errorReason: S.optional(S.String),
1799
+ recoverable: S.optional(S.Boolean),
1800
+ public: S.Boolean,
1801
+ networkBlockAll: S.Boolean,
1802
+ networkAllowList: S.optional(S.String),
1803
+ domainAllowList: S.optional(S.String),
1804
+ cpu: S.Number,
1805
+ gpu: S.Number,
1806
+ spot: S.optional(S.Boolean),
1807
+ spotEvictedAt: S.optional(S.String),
1808
+ gpuType: S.optional(GpuType),
1809
+ memory: S.Number,
1810
+ disk: S.Number,
1811
+ labels: SandboxListItemLabelsMap,
1812
+ backupState: S.optional(SandboxListItemBackupState),
1813
+ autoStopInterval: S.optional(S.Number),
1814
+ autoPauseInterval: S.optional(S.Number),
1815
+ autoArchiveInterval: S.optional(S.Number),
1816
+ autoDeleteInterval: S.optional(S.Number),
1817
+ autoDestroyAt: S.optional(S.String),
1818
+ createdAt: S.optional(S.String),
1819
+ updatedAt: S.optional(S.String),
1820
+ lastActivityAt: S.optional(S.String),
1821
+ daemonVersion: S.optional(S.String),
1822
+ warmPoolId: S.optional(S.String),
1823
+ toolboxProxyUrl: S.String,
1824
+ }),
1825
+ ).annotate({
1826
+ identifier: "SandboxListItem",
1827
+ }) as any as S.Schema<SandboxListItem>;
1828
+
1829
+ /** List of results for the current page */
1830
+ export type ListSandboxesResponseItemsList = Array<SandboxListItem>;
1831
+ export const ListSandboxesResponseItemsList = /*@__PURE__*/ S.Array(
1832
+ SandboxListItem,
1833
+ ) as any as S.Schema<ListSandboxesResponseItemsList>;
1834
+
1835
+ export interface ListSandboxesResponse {
1836
+ /** List of results for the current page */
1837
+ items: ListSandboxesResponseItemsList;
1838
+ /** Cursor for the next page of results */
1839
+ nextCursor: string | null;
1840
+ }
1841
+ export const ListSandboxesResponse = /*@__PURE__*/ S.suspend(() =>
1842
+ S.Struct({
1843
+ items: ListSandboxesResponseItemsList,
1844
+ nextCursor: S.NullOr(S.String),
1845
+ }),
1846
+ ).annotate({
1847
+ identifier: "ListSandboxesResponse",
1848
+ }) as any as S.Schema<ListSandboxesResponse>;
1849
+
1850
+ export interface PauseSandboxRequest {
1851
+ /** ID or name of the sandbox */
1852
+ sandboxIdOrName: string;
1853
+ /** Use with JWT to specify the organization ID */
1854
+ xDaytonaOrganizationID?: string;
1855
+ }
1856
+ export const PauseSandboxRequest = /*@__PURE__*/ S.suspend(() =>
1857
+ S.Struct({
1858
+ sandboxIdOrName: S.String.pipe(T.Label()),
1859
+ xDaytonaOrganizationID: S.optional(
1860
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1861
+ ),
1862
+ }).pipe(
1863
+ T.Http({
1864
+ method: "POST",
1865
+ uri: "/sandbox/{sandboxIdOrName}/pause",
1866
+ code: 200,
1867
+ }),
1868
+ ),
1869
+ ).annotate({
1870
+ identifier: "PauseSandboxRequest",
1871
+ }) as any as S.Schema<PauseSandboxRequest>;
1872
+
1873
+ export interface RecoverSandboxRequest {
1874
+ /** ID or name of the sandbox */
1875
+ sandboxIdOrName: string;
1876
+ /** If true, the sandbox is left in STOPPED after recovery instead of being started. */
1877
+ skipStart?: boolean;
1878
+ /** Use with JWT to specify the organization ID */
1879
+ xDaytonaOrganizationID?: string;
1880
+ }
1881
+ export const RecoverSandboxRequest = /*@__PURE__*/ S.suspend(() =>
1882
+ S.Struct({
1883
+ sandboxIdOrName: S.String.pipe(T.Label()),
1884
+ skipStart: S.optional(S.Boolean.pipe(T.Query())),
1885
+ xDaytonaOrganizationID: S.optional(
1886
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1887
+ ),
1888
+ }).pipe(
1889
+ T.Http({
1890
+ method: "POST",
1891
+ uri: "/sandbox/{sandboxIdOrName}/recover",
1892
+ code: 200,
1893
+ }),
1894
+ ),
1895
+ ).annotate({
1896
+ identifier: "RecoverSandboxRequest",
1897
+ }) as any as S.Schema<RecoverSandboxRequest>;
1898
+
1899
+ /** Key-value pairs of labels */
1900
+ export type ReplaceLabelsRequestLabelsMap = {
1901
+ [key: string]: string | undefined;
1902
+ };
1903
+ export const ReplaceLabelsRequestLabelsMap = /*@__PURE__*/ S.Record(
1904
+ S.String,
1905
+ S.String,
1906
+ ) as any as S.Schema<ReplaceLabelsRequestLabelsMap>;
1907
+
1908
+ export interface ReplaceLabelsRequest {
1909
+ /** ID or name of the sandbox */
1910
+ sandboxIdOrName: string;
1911
+ /** Use with JWT to specify the organization ID */
1912
+ xDaytonaOrganizationID?: string;
1913
+ /** Key-value pairs of labels */
1914
+ labels: ReplaceLabelsRequestLabelsMap;
1915
+ }
1916
+ export const ReplaceLabelsRequest = /*@__PURE__*/ S.suspend(() =>
1917
+ S.Struct({
1918
+ sandboxIdOrName: S.String.pipe(T.Label()),
1919
+ xDaytonaOrganizationID: S.optional(
1920
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1921
+ ),
1922
+ labels: ReplaceLabelsRequestLabelsMap,
1923
+ }).pipe(
1924
+ T.Http({
1925
+ method: "PUT",
1926
+ uri: "/sandbox/{sandboxIdOrName}/labels",
1927
+ code: 200,
1928
+ }),
1929
+ ),
1930
+ ).annotate({
1931
+ identifier: "ReplaceLabelsRequest",
1932
+ }) as any as S.Schema<ReplaceLabelsRequest>;
1933
+
1934
+ /** Key-value pairs of labels */
1935
+ export type SandboxLabelsLabelsMap = { [key: string]: string | undefined };
1936
+ export const SandboxLabelsLabelsMap = /*@__PURE__*/ S.Record(
1937
+ S.String,
1938
+ S.String,
1939
+ ) as any as S.Schema<SandboxLabelsLabelsMap>;
1940
+
1941
+ export interface SandboxLabels {
1942
+ /** Key-value pairs of labels */
1943
+ labels: SandboxLabelsLabelsMap;
1944
+ }
1945
+ export const SandboxLabels = /*@__PURE__*/ S.suspend(() =>
1946
+ S.Struct({
1947
+ labels: SandboxLabelsLabelsMap,
1948
+ }),
1949
+ ).annotate({ identifier: "SandboxLabels" }) as any as S.Schema<SandboxLabels>;
1950
+
1951
+ export interface ResizeSandboxRequest {
1952
+ /** ID or name of the sandbox */
1953
+ sandboxIdOrName: string;
1954
+ /** Use with JWT to specify the organization ID */
1955
+ xDaytonaOrganizationID?: string;
1956
+ /** CPU cores to allocate to the sandbox (minimum: 1) */
1957
+ cpu?: number;
1958
+ /** Memory in GB to allocate to the sandbox (minimum: 1) */
1959
+ memory?: number;
1960
+ /** Disk space in GB to allocate to the sandbox (can only be increased) */
1961
+ disk?: number;
1962
+ }
1963
+ export const ResizeSandboxRequest = /*@__PURE__*/ S.suspend(() =>
1964
+ S.Struct({
1965
+ sandboxIdOrName: S.String.pipe(T.Label()),
1966
+ xDaytonaOrganizationID: S.optional(
1967
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1968
+ ),
1969
+ cpu: S.optional(S.Number),
1970
+ memory: S.optional(S.Number),
1971
+ disk: S.optional(S.Number),
1972
+ }).pipe(
1973
+ T.Http({
1974
+ method: "POST",
1975
+ uri: "/sandbox/{sandboxIdOrName}/resize",
1976
+ code: 200,
1977
+ }),
1978
+ ),
1979
+ ).annotate({
1980
+ identifier: "ResizeSandboxRequest",
1981
+ }) as any as S.Schema<ResizeSandboxRequest>;
1982
+
1983
+ export interface ResolveSandboxSecretsRequest {
1984
+ /** Sandbox ID */
1985
+ sandboxId: string;
1986
+ /** Use with JWT to specify the organization ID */
1987
+ xDaytonaOrganizationID?: string;
1988
+ }
1989
+ export const ResolveSandboxSecretsRequest = /*@__PURE__*/ S.suspend(() =>
1990
+ S.Struct({
1991
+ sandboxId: S.String.pipe(T.Label()),
1992
+ xDaytonaOrganizationID: S.optional(
1993
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
1994
+ ),
1995
+ }).pipe(
1996
+ T.Http({ method: "GET", uri: "/sandbox/{sandboxId}/secrets", code: 200 }),
1997
+ ),
1998
+ ).annotate({
1999
+ identifier: "ResolveSandboxSecretsRequest",
2000
+ }) as any as S.Schema<ResolveSandboxSecretsRequest>;
2001
+
2002
+ export type ResolveSandboxSecrets200ResponseInnerHostsList = Array<string>;
2003
+ export const ResolveSandboxSecrets200ResponseInnerHostsList =
2004
+ /*@__PURE__*/ S.Array(
2005
+ S.String,
2006
+ ) as any as S.Schema<ResolveSandboxSecrets200ResponseInnerHostsList>;
2007
+
2008
+ export interface ResolveSandboxSecrets200ResponseInner {
2009
+ env?: string;
2010
+ placeholder?: string;
2011
+ value?: string;
2012
+ hosts?: ResolveSandboxSecrets200ResponseInnerHostsList;
2013
+ }
2014
+ export const ResolveSandboxSecrets200ResponseInner = /*@__PURE__*/ S.suspend(
2015
+ () =>
2016
+ S.Struct({
2017
+ env: S.optional(S.String),
2018
+ placeholder: S.optional(S.String),
2019
+ value: S.optional(S.String),
2020
+ hosts: S.optional(ResolveSandboxSecrets200ResponseInnerHostsList),
2021
+ }),
2022
+ ).annotate({
2023
+ identifier: "ResolveSandboxSecrets200ResponseInner",
2024
+ }) as any as S.Schema<ResolveSandboxSecrets200ResponseInner>;
2025
+
2026
+ export type ResolveSandboxSecretsResponseBodyList =
2027
+ Array<ResolveSandboxSecrets200ResponseInner>;
2028
+ export const ResolveSandboxSecretsResponseBodyList = /*@__PURE__*/ S.Array(
2029
+ ResolveSandboxSecrets200ResponseInner,
2030
+ ) as any as S.Schema<ResolveSandboxSecretsResponseBodyList>;
2031
+
2032
+ export type ResolveSandboxSecretsResponse =
2033
+ ResolveSandboxSecretsResponseBodyList;
2034
+ export const ResolveSandboxSecretsResponse = /*@__PURE__*/ S.suspend(() =>
2035
+ ResolveSandboxSecretsResponseBodyList.pipe(T.RawResponseRoot()),
2036
+ ).annotate({
2037
+ identifier: "ResolveSandboxSecretsResponse",
2038
+ }) as any as S.Schema<ResolveSandboxSecretsResponse>;
2039
+
2040
+ export interface RevokeSshAccessRequest {
2041
+ /** ID or name of the sandbox */
2042
+ sandboxIdOrName: string;
2043
+ /** SSH access token to revoke. If not provided, all SSH access for the sandbox will be revoked. */
2044
+ token?: string;
2045
+ /** Use with JWT to specify the organization ID */
2046
+ xDaytonaOrganizationID?: string;
2047
+ }
2048
+ export const RevokeSshAccessRequest = /*@__PURE__*/ S.suspend(() =>
2049
+ S.Struct({
2050
+ sandboxIdOrName: S.String.pipe(T.Label()),
2051
+ token: S.optional(S.String.pipe(T.Query())),
2052
+ xDaytonaOrganizationID: S.optional(
2053
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2054
+ ),
2055
+ }).pipe(
2056
+ T.Http({
2057
+ method: "DELETE",
2058
+ uri: "/sandbox/{sandboxIdOrName}/ssh-access",
2059
+ code: 200,
2060
+ }),
2061
+ ),
2062
+ ).annotate({
2063
+ identifier: "RevokeSshAccessRequest",
2064
+ }) as any as S.Schema<RevokeSshAccessRequest>;
2065
+
2066
+ export interface RotateSigningKeyRequest {
2067
+ /** ID of the sandbox */
2068
+ sandboxId: string;
2069
+ /** Use with JWT to specify the organization ID */
2070
+ xDaytonaOrganizationID?: string;
2071
+ }
2072
+ export const RotateSigningKeyRequest = /*@__PURE__*/ S.suspend(() =>
2073
+ S.Struct({
2074
+ sandboxId: S.String.pipe(T.Label()),
2075
+ xDaytonaOrganizationID: S.optional(
2076
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2077
+ ),
2078
+ }).pipe(
2079
+ T.Http({
2080
+ method: "POST",
2081
+ uri: "/sandbox/{sandboxId}/signing-key/rotate",
2082
+ code: 200,
2083
+ }),
2084
+ ),
2085
+ ).annotate({
2086
+ identifier: "RotateSigningKeyRequest",
2087
+ }) as any as S.Schema<RotateSigningKeyRequest>;
2088
+
2089
+ export type RotateSigningKeyResponse = string;
2090
+ export const RotateSigningKeyResponse = /*@__PURE__*/ S.suspend(() =>
2091
+ S.String.pipe(T.RawResponseRoot()),
2092
+ ).annotate({
2093
+ identifier: "RotateSigningKeyResponse",
2094
+ }) as any as S.Schema<RotateSigningKeyResponse>;
2095
+
2096
+ export interface SetAutoArchiveIntervalRequest {
2097
+ /** ID or name of the sandbox */
2098
+ sandboxIdOrName: string;
2099
+ /** Auto-archive interval in minutes (0 means the maximum interval will be used) */
2100
+ interval: number;
2101
+ /** Use with JWT to specify the organization ID */
2102
+ xDaytonaOrganizationID?: string;
2103
+ }
2104
+ export const SetAutoArchiveIntervalRequest = /*@__PURE__*/ S.suspend(() =>
2105
+ S.Struct({
2106
+ sandboxIdOrName: S.String.pipe(T.Label()),
2107
+ interval: S.Number.pipe(T.Label()),
2108
+ xDaytonaOrganizationID: S.optional(
2109
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2110
+ ),
2111
+ }).pipe(
2112
+ T.Http({
2113
+ method: "POST",
2114
+ uri: "/sandbox/{sandboxIdOrName}/autoarchive/{interval}",
2115
+ code: 200,
2116
+ }),
2117
+ ),
2118
+ ).annotate({
2119
+ identifier: "SetAutoArchiveIntervalRequest",
2120
+ }) as any as S.Schema<SetAutoArchiveIntervalRequest>;
2121
+
2122
+ export interface SetAutoDeleteIntervalRequest {
2123
+ /** ID or name of the sandbox */
2124
+ sandboxIdOrName: string;
2125
+ /** Auto-delete interval in minutes (negative value means disabled, 0 means delete immediately upon stopping) */
2126
+ interval: number;
2127
+ /** Use with JWT to specify the organization ID */
2128
+ xDaytonaOrganizationID?: string;
2129
+ }
2130
+ export const SetAutoDeleteIntervalRequest = /*@__PURE__*/ S.suspend(() =>
2131
+ S.Struct({
2132
+ sandboxIdOrName: S.String.pipe(T.Label()),
2133
+ interval: S.Number.pipe(T.Label()),
2134
+ xDaytonaOrganizationID: S.optional(
2135
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2136
+ ),
2137
+ }).pipe(
2138
+ T.Http({
2139
+ method: "POST",
2140
+ uri: "/sandbox/{sandboxIdOrName}/autodelete/{interval}",
2141
+ code: 200,
2142
+ }),
2143
+ ),
2144
+ ).annotate({
2145
+ identifier: "SetAutoDeleteIntervalRequest",
2146
+ }) as any as S.Schema<SetAutoDeleteIntervalRequest>;
2147
+
2148
+ export interface SetAutoPauseIntervalRequest {
2149
+ /** ID or name of the sandbox */
2150
+ sandboxIdOrName: string;
2151
+ /** Auto-pause interval in minutes (0 to disable) */
2152
+ interval: number;
2153
+ /** Use with JWT to specify the organization ID */
2154
+ xDaytonaOrganizationID?: string;
2155
+ }
2156
+ export const SetAutoPauseIntervalRequest = /*@__PURE__*/ S.suspend(() =>
2157
+ S.Struct({
2158
+ sandboxIdOrName: S.String.pipe(T.Label()),
2159
+ interval: S.Number.pipe(T.Label()),
2160
+ xDaytonaOrganizationID: S.optional(
2161
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2162
+ ),
2163
+ }).pipe(
2164
+ T.Http({
2165
+ method: "POST",
2166
+ uri: "/sandbox/{sandboxIdOrName}/autopause/{interval}",
2167
+ code: 200,
2168
+ }),
2169
+ ),
2170
+ ).annotate({
2171
+ identifier: "SetAutoPauseIntervalRequest",
2172
+ }) as any as S.Schema<SetAutoPauseIntervalRequest>;
2173
+
2174
+ export interface SetAutostopIntervalRequest {
2175
+ /** ID or name of the sandbox */
2176
+ sandboxIdOrName: string;
2177
+ /** Auto-stop interval in minutes (0 to disable) */
2178
+ interval: number;
2179
+ /** Use with JWT to specify the organization ID */
2180
+ xDaytonaOrganizationID?: string;
2181
+ }
2182
+ export const SetAutostopIntervalRequest = /*@__PURE__*/ S.suspend(() =>
2183
+ S.Struct({
2184
+ sandboxIdOrName: S.String.pipe(T.Label()),
2185
+ interval: S.Number.pipe(T.Label()),
2186
+ xDaytonaOrganizationID: S.optional(
2187
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2188
+ ),
2189
+ }).pipe(
2190
+ T.Http({
2191
+ method: "POST",
2192
+ uri: "/sandbox/{sandboxIdOrName}/autostop/{interval}",
2193
+ code: 200,
2194
+ }),
2195
+ ),
2196
+ ).annotate({
2197
+ identifier: "SetAutostopIntervalRequest",
2198
+ }) as any as S.Schema<SetAutostopIntervalRequest>;
2199
+
2200
+ export interface SetTtlRequest {
2201
+ /** ID or name of the sandbox */
2202
+ sandboxIdOrName: string;
2203
+ /** 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 */
2204
+ ttlMinutes: number;
2205
+ /** Use with JWT to specify the organization ID */
2206
+ xDaytonaOrganizationID?: string;
2207
+ }
2208
+ export const SetTtlRequest = /*@__PURE__*/ S.suspend(() =>
2209
+ S.Struct({
2210
+ sandboxIdOrName: S.String.pipe(T.Label()),
2211
+ ttlMinutes: S.Number.pipe(T.Label()),
2212
+ xDaytonaOrganizationID: S.optional(
2213
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2214
+ ),
2215
+ }).pipe(
2216
+ T.Http({
2217
+ method: "POST",
2218
+ uri: "/sandbox/{sandboxIdOrName}/ttl/{ttlMinutes}",
2219
+ code: 200,
2220
+ }),
2221
+ ),
2222
+ ).annotate({ identifier: "SetTtlRequest" }) as any as S.Schema<SetTtlRequest>;
2223
+
2224
+ export interface StartSandboxRequest {
2225
+ /** ID or name of the sandbox */
2226
+ sandboxIdOrName: string;
2227
+ /** Use with JWT to specify the organization ID */
2228
+ xDaytonaOrganizationID?: string;
2229
+ }
2230
+ export const StartSandboxRequest = /*@__PURE__*/ S.suspend(() =>
2231
+ S.Struct({
2232
+ sandboxIdOrName: S.String.pipe(T.Label()),
2233
+ xDaytonaOrganizationID: S.optional(
2234
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2235
+ ),
2236
+ }).pipe(
2237
+ T.Http({
2238
+ method: "POST",
2239
+ uri: "/sandbox/{sandboxIdOrName}/start",
2240
+ code: 200,
2241
+ }),
2242
+ ),
2243
+ ).annotate({
2244
+ identifier: "StartSandboxRequest",
2245
+ }) as any as S.Schema<StartSandboxRequest>;
2246
+
2247
+ export interface StopSandboxRequest {
2248
+ /** ID or name of the sandbox */
2249
+ sandboxIdOrName: string;
2250
+ /** Force stop the sandbox using SIGKILL instead of SIGTERM */
2251
+ force?: boolean;
2252
+ /** Use with JWT to specify the organization ID */
2253
+ xDaytonaOrganizationID?: string;
2254
+ }
2255
+ export const StopSandboxRequest = /*@__PURE__*/ S.suspend(() =>
2256
+ S.Struct({
2257
+ sandboxIdOrName: S.String.pipe(T.Label()),
2258
+ force: S.optional(S.Boolean.pipe(T.Query())),
2259
+ xDaytonaOrganizationID: S.optional(
2260
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2261
+ ),
2262
+ }).pipe(
2263
+ T.Http({
2264
+ method: "POST",
2265
+ uri: "/sandbox/{sandboxIdOrName}/stop",
2266
+ code: 200,
2267
+ }),
2268
+ ),
2269
+ ).annotate({
2270
+ identifier: "StopSandboxRequest",
2271
+ }) as any as S.Schema<StopSandboxRequest>;
2272
+
2273
+ export interface UpdateLastActivityRequest {
2274
+ /** ID of the sandbox */
2275
+ sandboxId: string;
2276
+ /** Use with JWT to specify the organization ID */
2277
+ xDaytonaOrganizationID?: string;
2278
+ /** Optional type of interaction that reset the activity timer. */
2279
+ activityType?: string;
2280
+ }
2281
+ export const UpdateLastActivityRequest = /*@__PURE__*/ S.suspend(() =>
2282
+ S.Struct({
2283
+ sandboxId: S.String.pipe(T.Label()),
2284
+ xDaytonaOrganizationID: S.optional(
2285
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2286
+ ),
2287
+ activityType: S.optional(S.String),
2288
+ }).pipe(
2289
+ T.Http({
2290
+ method: "POST",
2291
+ uri: "/sandbox/{sandboxId}/last-activity",
2292
+ code: 200,
2293
+ }),
2294
+ ),
2295
+ ).annotate({
2296
+ identifier: "UpdateLastActivityRequest",
2297
+ }) as any as S.Schema<UpdateLastActivityRequest>;
2298
+
2299
+ export interface UpdateLastActivityResponse {}
2300
+ export const UpdateLastActivityResponse = /*@__PURE__*/ S.suspend(() =>
2301
+ S.Struct({}),
2302
+ ).annotate({
2303
+ identifier: "UpdateLastActivityResponse",
2304
+ }) as any as S.Schema<UpdateLastActivityResponse>;
2305
+
2306
+ export interface UpdateNetworkSettingsRequest {
2307
+ /** ID or name of the sandbox */
2308
+ sandboxIdOrName: string;
2309
+ /** Use with JWT to specify the organization ID */
2310
+ xDaytonaOrganizationID?: string;
2311
+ /** Whether to block all network access for the sandbox */
2312
+ networkBlockAll?: boolean;
2313
+ /** Comma-separated list of allowed CIDR network addresses for the sandbox */
2314
+ networkAllowList?: string;
2315
+ /** Comma-separated list of allowed domains for the sandbox */
2316
+ domainAllowList?: string;
2317
+ }
2318
+ export const UpdateNetworkSettingsRequest = /*@__PURE__*/ S.suspend(() =>
2319
+ S.Struct({
2320
+ sandboxIdOrName: S.String.pipe(T.Label()),
2321
+ xDaytonaOrganizationID: S.optional(
2322
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2323
+ ),
2324
+ networkBlockAll: S.optional(S.Boolean),
2325
+ networkAllowList: S.optional(S.String),
2326
+ domainAllowList: S.optional(S.String),
2327
+ }).pipe(
2328
+ T.Http({
2329
+ method: "POST",
2330
+ uri: "/sandbox/{sandboxIdOrName}/network-settings",
2331
+ code: 200,
2332
+ }),
2333
+ ),
2334
+ ).annotate({
2335
+ identifier: "UpdateNetworkSettingsRequest",
2336
+ }) as any as S.Schema<UpdateNetworkSettingsRequest>;
2337
+
2338
+ export interface UpdatePublicStatusRequest {
2339
+ /** ID or name of the sandbox */
2340
+ sandboxIdOrName: string;
2341
+ /** Public status to set */
2342
+ isPublic: boolean;
2343
+ /** Use with JWT to specify the organization ID */
2344
+ xDaytonaOrganizationID?: string;
2345
+ }
2346
+ export const UpdatePublicStatusRequest = /*@__PURE__*/ S.suspend(() =>
2347
+ S.Struct({
2348
+ sandboxIdOrName: S.String.pipe(T.Label()),
2349
+ isPublic: S.Boolean.pipe(T.Label()),
2350
+ xDaytonaOrganizationID: S.optional(
2351
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2352
+ ),
2353
+ }).pipe(
2354
+ T.Http({
2355
+ method: "POST",
2356
+ uri: "/sandbox/{sandboxIdOrName}/public/{isPublic}",
2357
+ code: 200,
2358
+ }),
2359
+ ),
2360
+ ).annotate({
2361
+ identifier: "UpdatePublicStatusRequest",
2362
+ }) as any as S.Schema<UpdatePublicStatusRequest>;
2363
+
2364
+ export type UpdateSandboxSecretsRequestSecretsItemMap = {
2365
+ [key: string]: string | undefined;
2366
+ };
2367
+ export const UpdateSandboxSecretsRequestSecretsItemMap = /*@__PURE__*/ S.Record(
2368
+ S.String,
2369
+ S.String,
2370
+ ) as any as S.Schema<UpdateSandboxSecretsRequestSecretsItemMap>;
2371
+
2372
+ /** 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. */
2373
+ export type UpdateSandboxSecretsRequestSecretsList =
2374
+ Array<UpdateSandboxSecretsRequestSecretsItemMap>;
2375
+ export const UpdateSandboxSecretsRequestSecretsList = /*@__PURE__*/ S.Array(
2376
+ UpdateSandboxSecretsRequestSecretsItemMap,
2377
+ ) as any as S.Schema<UpdateSandboxSecretsRequestSecretsList>;
2378
+
2379
+ export interface UpdateSandboxSecretsRequest {
2380
+ /** ID or name of the sandbox */
2381
+ sandboxIdOrName: string;
2382
+ /** Use with JWT to specify the organization ID */
2383
+ xDaytonaOrganizationID?: string;
2384
+ /** 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. */
2385
+ secrets: UpdateSandboxSecretsRequestSecretsList;
2386
+ }
2387
+ export const UpdateSandboxSecretsRequest = /*@__PURE__*/ S.suspend(() =>
2388
+ S.Struct({
2389
+ sandboxIdOrName: S.String.pipe(T.Label()),
2390
+ xDaytonaOrganizationID: S.optional(
2391
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2392
+ ),
2393
+ secrets: UpdateSandboxSecretsRequestSecretsList,
2394
+ }).pipe(
2395
+ T.Http({
2396
+ method: "PUT",
2397
+ uri: "/sandbox/{sandboxIdOrName}/secrets",
2398
+ code: 200,
2399
+ }),
2400
+ ),
2401
+ ).annotate({
2402
+ identifier: "UpdateSandboxSecretsRequest",
2403
+ }) as any as S.Schema<UpdateSandboxSecretsRequest>;
2404
+
2405
+ /** The new state for the sandbox */
2406
+ export type UpdateSandboxStateRequestState =
2407
+ | "creating"
2408
+ | "restoring"
2409
+ | "destroyed"
2410
+ | "destroying"
2411
+ | "started"
2412
+ | "stopped"
2413
+ | "starting"
2414
+ | "stopping"
2415
+ | "error"
2416
+ | "build_failed"
2417
+ | "pending_build"
2418
+ | "building_snapshot"
2419
+ | "unknown"
2420
+ | "pulling_snapshot"
2421
+ | "archived"
2422
+ | "archiving"
2423
+ | "resizing"
2424
+ | "snapshotting"
2425
+ | "forking"
2426
+ | "pausing"
2427
+ | "paused"
2428
+ | "resuming";
2429
+ export const UpdateSandboxStateRequestState = S.String;
2430
+
2431
+ export interface UpdateSandboxStateRequest {
2432
+ /** ID of the sandbox */
2433
+ sandboxId: string;
2434
+ /** Use with JWT to specify the organization ID */
2435
+ xDaytonaOrganizationID?: string;
2436
+ /** The new state for the sandbox */
2437
+ state: UpdateSandboxStateRequestState | (string & {});
2438
+ /** Optional error message when reporting an error state */
2439
+ errorReason?: string;
2440
+ /** Whether the sandbox is recoverable */
2441
+ recoverable?: boolean;
2442
+ }
2443
+ export const UpdateSandboxStateRequest = /*@__PURE__*/ S.suspend(() =>
2444
+ S.Struct({
2445
+ sandboxId: S.String.pipe(T.Label()),
2446
+ xDaytonaOrganizationID: S.optional(
2447
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2448
+ ),
2449
+ state: UpdateSandboxStateRequestState,
2450
+ errorReason: S.optional(S.String),
2451
+ recoverable: S.optional(S.Boolean),
2452
+ }).pipe(
2453
+ T.Http({ method: "PUT", uri: "/sandbox/{sandboxId}/state", code: 200 }),
2454
+ ),
2455
+ ).annotate({
2456
+ identifier: "UpdateSandboxStateRequest",
2457
+ }) as any as S.Schema<UpdateSandboxStateRequest>;
2458
+
2459
+ export interface UpdateSandboxStateResponse {}
2460
+ export const UpdateSandboxStateResponse = /*@__PURE__*/ S.suspend(() =>
2461
+ S.Struct({}),
2462
+ ).annotate({
2463
+ identifier: "UpdateSandboxStateResponse",
2464
+ }) as any as S.Schema<UpdateSandboxStateResponse>;
2465
+
2466
+ export interface ValidateSshAccessRequest {
2467
+ /** SSH access token to validate */
2468
+ token: string;
2469
+ /** Use with JWT to specify the organization ID */
2470
+ xDaytonaOrganizationID?: string;
2471
+ }
2472
+ export const ValidateSshAccessRequest = /*@__PURE__*/ S.suspend(() =>
2473
+ S.Struct({
2474
+ token: S.String.pipe(T.Query()),
2475
+ xDaytonaOrganizationID: S.optional(
2476
+ S.String.pipe(T.Header("X-Daytona-Organization-ID")),
2477
+ ),
2478
+ }).pipe(
2479
+ T.Http({ method: "GET", uri: "/sandbox/ssh-access/validate", code: 200 }),
2480
+ ),
2481
+ ).annotate({
2482
+ identifier: "ValidateSshAccessRequest",
2483
+ }) as any as S.Schema<ValidateSshAccessRequest>;
2484
+
2485
+ export interface SshAccessValidationDto {
2486
+ /** Whether the SSH access token is valid */
2487
+ valid: boolean;
2488
+ /** ID of the sandbox this SSH access is for */
2489
+ sandboxId: string;
2490
+ }
2491
+ export const SshAccessValidationDto = /*@__PURE__*/ S.suspend(() =>
2492
+ S.Struct({
2493
+ valid: S.Boolean,
2494
+ sandboxId: S.String,
2495
+ }),
2496
+ ).annotate({
2497
+ identifier: "SshAccessValidationDto",
2498
+ }) as any as S.Schema<SshAccessValidationDto>;
2499
+
2500
+ export type ArchiveSandboxError = DaytonaOpError;
2501
+ /** Archive sandbox */
2502
+ export const archiveSandbox: API.OperationMethod<
2503
+ ArchiveSandboxRequest,
2504
+ Sandbox2,
2505
+ ArchiveSandboxError,
2506
+ DaytonaOpContext
2507
+ > = /*@__PURE__*/ API.make(() => ({
2508
+ input: ArchiveSandboxRequest,
2509
+ output: Sandbox2,
2510
+ errors: [UnknownDaytonaError],
2511
+ protocol: DaytonaProtocol,
2512
+ retry: Retry.Retry,
2513
+ }));
2514
+
2515
+ export type CreateSandboxError = DaytonaOpError;
2516
+ /** Create a new sandbox */
2517
+ export const createSandbox: API.OperationMethod<
2518
+ CreateSandboxRequest,
2519
+ Sandbox2,
2520
+ CreateSandboxError,
2521
+ DaytonaOpContext
2522
+ > = /*@__PURE__*/ API.make(() => ({
2523
+ input: CreateSandboxRequest,
2524
+ output: Sandbox2,
2525
+ errors: [UnknownDaytonaError],
2526
+ protocol: DaytonaProtocol,
2527
+ retry: Retry.Retry,
2528
+ }));
2529
+
2530
+ export type CreateSandboxSnapshotError = DaytonaOpError;
2531
+ /** Create a snapshot from a sandbox */
2532
+ export const createSandboxSnapshot: API.OperationMethod<
2533
+ CreateSandboxSnapshotRequest,
2534
+ Sandbox2,
2535
+ CreateSandboxSnapshotError,
2536
+ DaytonaOpContext
2537
+ > = /*@__PURE__*/ API.make(() => ({
2538
+ input: CreateSandboxSnapshotRequest,
2539
+ output: Sandbox2,
2540
+ errors: [UnknownDaytonaError],
2541
+ protocol: DaytonaProtocol,
2542
+ retry: Retry.Retry,
2543
+ }));
2544
+
2545
+ export type CreateSshAccessError = DaytonaOpError;
2546
+ /** Create SSH access for sandbox */
2547
+ export const createSshAccess: API.OperationMethod<
2548
+ CreateSshAccessRequest,
2549
+ SshAccessDto,
2550
+ CreateSshAccessError,
2551
+ DaytonaOpContext
2552
+ > = /*@__PURE__*/ API.make(() => ({
2553
+ input: CreateSshAccessRequest,
2554
+ output: SshAccessDto,
2555
+ errors: [UnknownDaytonaError],
2556
+ protocol: DaytonaProtocol,
2557
+ retry: Retry.Retry,
2558
+ }));
2559
+
2560
+ export type DeleteSandboxError = DaytonaOpError;
2561
+ /** Delete sandbox */
2562
+ export const deleteSandbox: API.OperationMethod<
2563
+ DeleteSandboxRequest,
2564
+ Sandbox2,
2565
+ DeleteSandboxError,
2566
+ DaytonaOpContext
2567
+ > = /*@__PURE__*/ API.make(() => ({
2568
+ input: DeleteSandboxRequest,
2569
+ output: Sandbox2,
2570
+ errors: [UnknownDaytonaError],
2571
+ protocol: DaytonaProtocol,
2572
+ retry: Retry.Retry,
2573
+ }));
2574
+
2575
+ export type ExpireSignedPortPreviewUrlError = DaytonaOpError;
2576
+ /** Expire signed preview URL for a sandbox port */
2577
+ export const expireSignedPortPreviewUrl: API.OperationMethod<
2578
+ ExpireSignedPortPreviewUrlRequest,
2579
+ ExpireSignedPortPreviewUrlResponse,
2580
+ ExpireSignedPortPreviewUrlError,
2581
+ DaytonaOpContext
2582
+ > = /*@__PURE__*/ API.make(() => ({
2583
+ input: ExpireSignedPortPreviewUrlRequest,
2584
+ output: ExpireSignedPortPreviewUrlResponse,
2585
+ errors: [UnknownDaytonaError],
2586
+ protocol: DaytonaProtocol,
2587
+ retry: Retry.Retry,
2588
+ }));
2589
+
2590
+ export type ForkSandboxError = DaytonaOpError;
2591
+ /** Fork a sandbox */
2592
+ export const forkSandbox: API.OperationMethod<
2593
+ ForkSandboxRequest,
2594
+ Sandbox2,
2595
+ ForkSandboxError,
2596
+ DaytonaOpContext
2597
+ > = /*@__PURE__*/ API.make(() => ({
2598
+ input: ForkSandboxRequest,
2599
+ output: Sandbox2,
2600
+ errors: [UnknownDaytonaError],
2601
+ protocol: DaytonaProtocol,
2602
+ retry: Retry.Retry,
2603
+ }));
2604
+
2605
+ export type GetBuildLogsUrlError = DaytonaOpError;
2606
+ /** Get build logs URL */
2607
+ export const getBuildLogsUrl: API.OperationMethod<
2608
+ GetBuildLogsUrlRequest,
2609
+ Url,
2610
+ GetBuildLogsUrlError,
2611
+ DaytonaOpContext
2612
+ > = /*@__PURE__*/ API.make(() => ({
2613
+ input: GetBuildLogsUrlRequest,
2614
+ output: Url,
2615
+ errors: [UnknownDaytonaError],
2616
+ protocol: DaytonaProtocol,
2617
+ retry: Retry.Retry,
2618
+ }));
2619
+
2620
+ export type GetOrganizationBySandboxIdError = DaytonaOpError;
2621
+ /** Get organization by sandbox ID */
2622
+ export const getOrganizationBySandboxId: API.OperationMethod<
2623
+ GetOrganizationBySandboxIdRequest,
2624
+ Organization,
2625
+ GetOrganizationBySandboxIdError,
2626
+ DaytonaOpContext
2627
+ > = /*@__PURE__*/ API.make(() => ({
2628
+ input: GetOrganizationBySandboxIdRequest,
2629
+ output: Organization,
2630
+ errors: [UnknownDaytonaError],
2631
+ protocol: DaytonaProtocol,
2632
+ retry: Retry.Retry,
2633
+ }));
2634
+
2635
+ export type GetPortPreviewUrlError = DaytonaOpError;
2636
+ /** Get preview URL for a sandbox port */
2637
+ export const getPortPreviewUrl: API.OperationMethod<
2638
+ GetPortPreviewUrlRequest,
2639
+ PortPreviewUrl,
2640
+ GetPortPreviewUrlError,
2641
+ DaytonaOpContext
2642
+ > = /*@__PURE__*/ API.make(() => ({
2643
+ input: GetPortPreviewUrlRequest,
2644
+ output: PortPreviewUrl,
2645
+ errors: [UnknownDaytonaError],
2646
+ protocol: DaytonaProtocol,
2647
+ retry: Retry.Retry,
2648
+ }));
2649
+
2650
+ export type GetRegionQuotaBySandboxIdError = DaytonaOpError;
2651
+ /** Get region quota by sandbox ID */
2652
+ export const getRegionQuotaBySandboxId: API.OperationMethod<
2653
+ GetRegionQuotaBySandboxIdRequest,
2654
+ RegionQuota,
2655
+ GetRegionQuotaBySandboxIdError,
2656
+ DaytonaOpContext
2657
+ > = /*@__PURE__*/ API.make(() => ({
2658
+ input: GetRegionQuotaBySandboxIdRequest,
2659
+ output: RegionQuota,
2660
+ errors: [UnknownDaytonaError],
2661
+ protocol: DaytonaProtocol,
2662
+ retry: Retry.Retry,
2663
+ }));
2664
+
2665
+ export type GetSandboxError = DaytonaOpError;
2666
+ /** Get sandbox details Sandboxes destroyed by spot preemption remain retrievable for 24 hours so `spotEvictedAt` can be read. */
2667
+ export const getSandbox: API.OperationMethod<
2668
+ GetSandboxRequest,
2669
+ Sandbox2,
2670
+ GetSandboxError,
2671
+ DaytonaOpContext
2672
+ > = /*@__PURE__*/ API.make(() => ({
2673
+ input: GetSandboxRequest,
2674
+ output: Sandbox2,
2675
+ errors: [UnknownDaytonaError],
2676
+ protocol: DaytonaProtocol,
2677
+ retry: Retry.Retry,
2678
+ }));
2679
+
2680
+ export type GetSandboxAncestorsError = DaytonaOpError;
2681
+ /** Get sandbox fork ancestor chain */
2682
+ export const getSandboxAncestors: API.OperationMethod<
2683
+ GetSandboxAncestorsRequest,
2684
+ GetSandboxAncestorsResponse,
2685
+ GetSandboxAncestorsError,
2686
+ DaytonaOpContext
2687
+ > = /*@__PURE__*/ API.make(() => ({
2688
+ input: GetSandboxAncestorsRequest,
2689
+ output: GetSandboxAncestorsResponse,
2690
+ errors: [UnknownDaytonaError],
2691
+ protocol: DaytonaProtocol,
2692
+ retry: Retry.Retry,
2693
+ }));
2694
+
2695
+ export type GetSandboxesForRunnerError = DaytonaOpError;
2696
+ /** Get sandboxes for the authenticated runner */
2697
+ export const getSandboxesForRunner: API.OperationMethod<
2698
+ GetSandboxesForRunnerRequest,
2699
+ GetSandboxesForRunnerResponse,
2700
+ GetSandboxesForRunnerError,
2701
+ DaytonaOpContext
2702
+ > = /*@__PURE__*/ API.make(() => ({
2703
+ input: GetSandboxesForRunnerRequest,
2704
+ output: GetSandboxesForRunnerResponse,
2705
+ errors: [UnknownDaytonaError],
2706
+ protocol: DaytonaProtocol,
2707
+ retry: Retry.Retry,
2708
+ }));
2709
+
2710
+ export type GetSandboxForksError = DaytonaOpError;
2711
+ /** Get sandbox fork children */
2712
+ export const getSandboxForks: API.OperationMethod<
2713
+ GetSandboxForksRequest,
2714
+ GetSandboxForksResponse,
2715
+ GetSandboxForksError,
2716
+ DaytonaOpContext
2717
+ > = /*@__PURE__*/ API.make(() => ({
2718
+ input: GetSandboxForksRequest,
2719
+ output: GetSandboxForksResponse,
2720
+ errors: [UnknownDaytonaError],
2721
+ protocol: DaytonaProtocol,
2722
+ retry: Retry.Retry,
2723
+ }));
2724
+
2725
+ export type GetSandboxLogsError = DaytonaOpError;
2726
+ /** Get sandbox logs Retrieve OTEL logs for a sandbox within a time range */
2727
+ export const getSandboxLogs: API.OperationMethod<
2728
+ GetSandboxLogsRequest,
2729
+ PaginatedLogs,
2730
+ GetSandboxLogsError,
2731
+ DaytonaOpContext
2732
+ > = /*@__PURE__*/ API.make(() => ({
2733
+ input: GetSandboxLogsRequest,
2734
+ output: PaginatedLogs,
2735
+ errors: [UnknownDaytonaError],
2736
+ protocol: DaytonaProtocol,
2737
+ retry: Retry.Retry,
2738
+ }));
2739
+
2740
+ export type GetSandboxMetricsError = DaytonaOpError;
2741
+ /** Get sandbox metrics Retrieve OTEL metrics for a sandbox within a time range */
2742
+ export const getSandboxMetrics: API.OperationMethod<
2743
+ GetSandboxMetricsRequest,
2744
+ MetricsResponse,
2745
+ GetSandboxMetricsError,
2746
+ DaytonaOpContext
2747
+ > = /*@__PURE__*/ API.make(() => ({
2748
+ input: GetSandboxMetricsRequest,
2749
+ output: MetricsResponse,
2750
+ errors: [UnknownDaytonaError],
2751
+ protocol: DaytonaProtocol,
2752
+ retry: Retry.Retry,
2753
+ }));
2754
+
2755
+ export type GetSandboxParentError = DaytonaOpError;
2756
+ /** Get sandbox fork parent */
2757
+ export const getSandboxParent: API.OperationMethod<
2758
+ GetSandboxParentRequest,
2759
+ Sandbox2,
2760
+ GetSandboxParentError,
2761
+ DaytonaOpContext
2762
+ > = /*@__PURE__*/ API.make(() => ({
2763
+ input: GetSandboxParentRequest,
2764
+ output: Sandbox2,
2765
+ errors: [UnknownDaytonaError],
2766
+ protocol: DaytonaProtocol,
2767
+ retry: Retry.Retry,
2768
+ }));
2769
+
2770
+ export type GetSandboxSigningKeyError = DaytonaOpError;
2771
+ /** Get the signing key for a sandbox */
2772
+ export const getSandboxSigningKey: API.OperationMethod<
2773
+ GetSandboxSigningKeyRequest,
2774
+ GetSandboxSigningKeyResponse,
2775
+ GetSandboxSigningKeyError,
2776
+ DaytonaOpContext
2777
+ > = /*@__PURE__*/ API.make(() => ({
2778
+ input: GetSandboxSigningKeyRequest,
2779
+ output: GetSandboxSigningKeyResponse,
2780
+ errors: [UnknownDaytonaError],
2781
+ protocol: DaytonaProtocol,
2782
+ retry: Retry.Retry,
2783
+ }));
2784
+
2785
+ export type GetSandboxTracesError = DaytonaOpError;
2786
+ /** Get sandbox traces Retrieve OTEL traces for a sandbox within a time range */
2787
+ export const getSandboxTraces: API.OperationMethod<
2788
+ GetSandboxTracesRequest,
2789
+ PaginatedTraces,
2790
+ GetSandboxTracesError,
2791
+ DaytonaOpContext
2792
+ > = /*@__PURE__*/ API.make(() => ({
2793
+ input: GetSandboxTracesRequest,
2794
+ output: PaginatedTraces,
2795
+ errors: [UnknownDaytonaError],
2796
+ protocol: DaytonaProtocol,
2797
+ retry: Retry.Retry,
2798
+ }));
2799
+
2800
+ export type GetSandboxTraceSpansError = DaytonaOpError;
2801
+ /** Get trace spans Retrieve all spans for a specific trace */
2802
+ export const getSandboxTraceSpans: API.OperationMethod<
2803
+ GetSandboxTraceSpansRequest,
2804
+ GetSandboxTraceSpansResponse,
2805
+ GetSandboxTraceSpansError,
2806
+ DaytonaOpContext
2807
+ > = /*@__PURE__*/ API.make(() => ({
2808
+ input: GetSandboxTraceSpansRequest,
2809
+ output: GetSandboxTraceSpansResponse,
2810
+ errors: [UnknownDaytonaError],
2811
+ protocol: DaytonaProtocol,
2812
+ retry: Retry.Retry,
2813
+ }));
2814
+
2815
+ export type GetSignedPortPreviewUrlError = DaytonaOpError;
2816
+ /** Get signed preview URL for a sandbox port */
2817
+ export const getSignedPortPreviewUrl: API.OperationMethod<
2818
+ GetSignedPortPreviewUrlRequest,
2819
+ SignedPortPreviewUrl,
2820
+ GetSignedPortPreviewUrlError,
2821
+ DaytonaOpContext
2822
+ > = /*@__PURE__*/ API.make(() => ({
2823
+ input: GetSignedPortPreviewUrlRequest,
2824
+ output: SignedPortPreviewUrl,
2825
+ errors: [UnknownDaytonaError],
2826
+ protocol: DaytonaProtocol,
2827
+ retry: Retry.Retry,
2828
+ }));
2829
+
2830
+ export type GetToolboxProxyUrlError = DaytonaOpError;
2831
+ /** Get toolbox proxy URL for a sandbox */
2832
+ export const getToolboxProxyUrl: API.OperationMethod<
2833
+ GetToolboxProxyUrlRequest,
2834
+ ToolboxProxyUrl,
2835
+ GetToolboxProxyUrlError,
2836
+ DaytonaOpContext
2837
+ > = /*@__PURE__*/ API.make(() => ({
2838
+ input: GetToolboxProxyUrlRequest,
2839
+ output: ToolboxProxyUrl,
2840
+ errors: [UnknownDaytonaError],
2841
+ protocol: DaytonaProtocol,
2842
+ retry: Retry.Retry,
2843
+ }));
2844
+
2845
+ export type ListSandboxesError = DaytonaOpError;
2846
+ /** List sandboxes Advanced filtering and ordering. Eventually consistent. */
2847
+ export const listSandboxes: API.OperationMethod<
2848
+ ListSandboxesRequest,
2849
+ ListSandboxesResponse,
2850
+ ListSandboxesError,
2851
+ DaytonaOpContext
2852
+ > = /*@__PURE__*/ API.make(() => ({
2853
+ input: ListSandboxesRequest,
2854
+ output: ListSandboxesResponse,
2855
+ errors: [UnknownDaytonaError],
2856
+ protocol: DaytonaProtocol,
2857
+ retry: Retry.Retry,
2858
+ }));
2859
+
2860
+ export type PauseSandboxError = DaytonaOpError;
2861
+ /** Pause sandbox */
2862
+ export const pauseSandbox: API.OperationMethod<
2863
+ PauseSandboxRequest,
2864
+ Sandbox2,
2865
+ PauseSandboxError,
2866
+ DaytonaOpContext
2867
+ > = /*@__PURE__*/ API.make(() => ({
2868
+ input: PauseSandboxRequest,
2869
+ output: Sandbox2,
2870
+ errors: [UnknownDaytonaError],
2871
+ protocol: DaytonaProtocol,
2872
+ retry: Retry.Retry,
2873
+ }));
2874
+
2875
+ export type RecoverSandboxError = DaytonaOpError;
2876
+ /** Recover sandbox from error state */
2877
+ export const recoverSandbox: API.OperationMethod<
2878
+ RecoverSandboxRequest,
2879
+ Sandbox2,
2880
+ RecoverSandboxError,
2881
+ DaytonaOpContext
2882
+ > = /*@__PURE__*/ API.make(() => ({
2883
+ input: RecoverSandboxRequest,
2884
+ output: Sandbox2,
2885
+ errors: [UnknownDaytonaError],
2886
+ protocol: DaytonaProtocol,
2887
+ retry: Retry.Retry,
2888
+ }));
2889
+
2890
+ export type ReplaceLabelsError = DaytonaOpError;
2891
+ /** Replace sandbox labels */
2892
+ export const replaceLabels: API.OperationMethod<
2893
+ ReplaceLabelsRequest,
2894
+ SandboxLabels,
2895
+ ReplaceLabelsError,
2896
+ DaytonaOpContext
2897
+ > = /*@__PURE__*/ API.make(() => ({
2898
+ input: ReplaceLabelsRequest,
2899
+ output: SandboxLabels,
2900
+ errors: [UnknownDaytonaError],
2901
+ protocol: DaytonaProtocol,
2902
+ retry: Retry.Retry,
2903
+ }));
2904
+
2905
+ export type ResizeSandboxError = DaytonaOpError;
2906
+ /** Resize sandbox resources */
2907
+ export const resizeSandbox: API.OperationMethod<
2908
+ ResizeSandboxRequest,
2909
+ Sandbox2,
2910
+ ResizeSandboxError,
2911
+ DaytonaOpContext
2912
+ > = /*@__PURE__*/ API.make(() => ({
2913
+ input: ResizeSandboxRequest,
2914
+ output: Sandbox2,
2915
+ errors: [UnknownDaytonaError],
2916
+ protocol: DaytonaProtocol,
2917
+ retry: Retry.Retry,
2918
+ }));
2919
+
2920
+ export type ResolveSandboxSecretsError = DaytonaOpError;
2921
+ /** Resolve sandbox secrets */
2922
+ export const resolveSandboxSecrets: API.OperationMethod<
2923
+ ResolveSandboxSecretsRequest,
2924
+ ResolveSandboxSecretsResponse,
2925
+ ResolveSandboxSecretsError,
2926
+ DaytonaOpContext
2927
+ > = /*@__PURE__*/ API.make(() => ({
2928
+ input: ResolveSandboxSecretsRequest,
2929
+ output: ResolveSandboxSecretsResponse,
2930
+ errors: [UnknownDaytonaError],
2931
+ protocol: DaytonaProtocol,
2932
+ retry: Retry.Retry,
2933
+ }));
2934
+
2935
+ export type RevokeSshAccessError = DaytonaOpError;
2936
+ /** Revoke SSH access for sandbox */
2937
+ export const revokeSshAccess: API.OperationMethod<
2938
+ RevokeSshAccessRequest,
2939
+ Sandbox2,
2940
+ RevokeSshAccessError,
2941
+ DaytonaOpContext
2942
+ > = /*@__PURE__*/ API.make(() => ({
2943
+ input: RevokeSshAccessRequest,
2944
+ output: Sandbox2,
2945
+ errors: [UnknownDaytonaError],
2946
+ protocol: DaytonaProtocol,
2947
+ retry: Retry.Retry,
2948
+ }));
2949
+
2950
+ export type RotateSigningKeyError = DaytonaOpError;
2951
+ /** Rotate the signing key, invalidating all previously signed URLs */
2952
+ export const rotateSigningKey: API.OperationMethod<
2953
+ RotateSigningKeyRequest,
2954
+ RotateSigningKeyResponse,
2955
+ RotateSigningKeyError,
2956
+ DaytonaOpContext
2957
+ > = /*@__PURE__*/ API.make(() => ({
2958
+ input: RotateSigningKeyRequest,
2959
+ output: RotateSigningKeyResponse,
2960
+ errors: [UnknownDaytonaError],
2961
+ protocol: DaytonaProtocol,
2962
+ retry: Retry.Retry,
2963
+ }));
2964
+
2965
+ export type SetAutoArchiveIntervalError = DaytonaOpError;
2966
+ /** Set sandbox auto-archive interval */
2967
+ export const setAutoArchiveInterval: API.OperationMethod<
2968
+ SetAutoArchiveIntervalRequest,
2969
+ Sandbox2,
2970
+ SetAutoArchiveIntervalError,
2971
+ DaytonaOpContext
2972
+ > = /*@__PURE__*/ API.make(() => ({
2973
+ input: SetAutoArchiveIntervalRequest,
2974
+ output: Sandbox2,
2975
+ errors: [UnknownDaytonaError],
2976
+ protocol: DaytonaProtocol,
2977
+ retry: Retry.Retry,
2978
+ }));
2979
+
2980
+ export type SetAutoDeleteIntervalError = DaytonaOpError;
2981
+ /** Set sandbox auto-delete interval */
2982
+ export const setAutoDeleteInterval: API.OperationMethod<
2983
+ SetAutoDeleteIntervalRequest,
2984
+ Sandbox2,
2985
+ SetAutoDeleteIntervalError,
2986
+ DaytonaOpContext
2987
+ > = /*@__PURE__*/ API.make(() => ({
2988
+ input: SetAutoDeleteIntervalRequest,
2989
+ output: Sandbox2,
2990
+ errors: [UnknownDaytonaError],
2991
+ protocol: DaytonaProtocol,
2992
+ retry: Retry.Retry,
2993
+ }));
2994
+
2995
+ export type SetAutoPauseIntervalError = DaytonaOpError;
2996
+ /** Set sandbox auto-pause interval */
2997
+ export const setAutoPauseInterval: API.OperationMethod<
2998
+ SetAutoPauseIntervalRequest,
2999
+ Sandbox2,
3000
+ SetAutoPauseIntervalError,
3001
+ DaytonaOpContext
3002
+ > = /*@__PURE__*/ API.make(() => ({
3003
+ input: SetAutoPauseIntervalRequest,
3004
+ output: Sandbox2,
3005
+ errors: [UnknownDaytonaError],
3006
+ protocol: DaytonaProtocol,
3007
+ retry: Retry.Retry,
3008
+ }));
3009
+
3010
+ export type SetAutostopIntervalError = DaytonaOpError;
3011
+ /** Set sandbox auto-stop interval */
3012
+ export const setAutostopInterval: API.OperationMethod<
3013
+ SetAutostopIntervalRequest,
3014
+ Sandbox2,
3015
+ SetAutostopIntervalError,
3016
+ DaytonaOpContext
3017
+ > = /*@__PURE__*/ API.make(() => ({
3018
+ input: SetAutostopIntervalRequest,
3019
+ output: Sandbox2,
3020
+ errors: [UnknownDaytonaError],
3021
+ protocol: DaytonaProtocol,
3022
+ retry: Retry.Retry,
3023
+ }));
3024
+
3025
+ export type SetTtlError = DaytonaOpError;
3026
+ /** Set sandbox TTL */
3027
+ export const setTtl: API.OperationMethod<
3028
+ SetTtlRequest,
3029
+ Sandbox2,
3030
+ SetTtlError,
3031
+ DaytonaOpContext
3032
+ > = /*@__PURE__*/ API.make(() => ({
3033
+ input: SetTtlRequest,
3034
+ output: Sandbox2,
3035
+ errors: [UnknownDaytonaError],
3036
+ protocol: DaytonaProtocol,
3037
+ retry: Retry.Retry,
3038
+ }));
3039
+
3040
+ export type StartSandboxError = DaytonaOpError;
3041
+ /** Start or resume sandbox Starts a stopped or archived sandbox, or resumes a paused sandbox. The transition taken depends on the current sandbox state. */
3042
+ export const startSandbox: API.OperationMethod<
3043
+ StartSandboxRequest,
3044
+ Sandbox2,
3045
+ StartSandboxError,
3046
+ DaytonaOpContext
3047
+ > = /*@__PURE__*/ API.make(() => ({
3048
+ input: StartSandboxRequest,
3049
+ output: Sandbox2,
3050
+ errors: [UnknownDaytonaError],
3051
+ protocol: DaytonaProtocol,
3052
+ retry: Retry.Retry,
3053
+ }));
3054
+
3055
+ export type StopSandboxError = DaytonaOpError;
3056
+ /** Stop sandbox */
3057
+ export const stopSandbox: API.OperationMethod<
3058
+ StopSandboxRequest,
3059
+ Sandbox2,
3060
+ StopSandboxError,
3061
+ DaytonaOpContext
3062
+ > = /*@__PURE__*/ API.make(() => ({
3063
+ input: StopSandboxRequest,
3064
+ output: Sandbox2,
3065
+ errors: [UnknownDaytonaError],
3066
+ protocol: DaytonaProtocol,
3067
+ retry: Retry.Retry,
3068
+ }));
3069
+
3070
+ export type UpdateLastActivityError = DaytonaOpError;
3071
+ /** Update sandbox last activity */
3072
+ export const updateLastActivity: API.OperationMethod<
3073
+ UpdateLastActivityRequest,
3074
+ UpdateLastActivityResponse,
3075
+ UpdateLastActivityError,
3076
+ DaytonaOpContext
3077
+ > = /*@__PURE__*/ API.make(() => ({
3078
+ input: UpdateLastActivityRequest,
3079
+ output: UpdateLastActivityResponse,
3080
+ errors: [UnknownDaytonaError],
3081
+ protocol: DaytonaProtocol,
3082
+ retry: Retry.Retry,
3083
+ }));
3084
+
3085
+ export type UpdateNetworkSettingsError = DaytonaOpError;
3086
+ /** 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). */
3087
+ export const updateNetworkSettings: API.OperationMethod<
3088
+ UpdateNetworkSettingsRequest,
3089
+ Sandbox2,
3090
+ UpdateNetworkSettingsError,
3091
+ DaytonaOpContext
3092
+ > = /*@__PURE__*/ API.make(() => ({
3093
+ input: UpdateNetworkSettingsRequest,
3094
+ output: Sandbox2,
3095
+ errors: [UnknownDaytonaError],
3096
+ protocol: DaytonaProtocol,
3097
+ retry: Retry.Retry,
3098
+ }));
3099
+
3100
+ export type UpdatePublicStatusError = DaytonaOpError;
3101
+ /** Update public status */
3102
+ export const updatePublicStatus: API.OperationMethod<
3103
+ UpdatePublicStatusRequest,
3104
+ Sandbox2,
3105
+ UpdatePublicStatusError,
3106
+ DaytonaOpContext
3107
+ > = /*@__PURE__*/ API.make(() => ({
3108
+ input: UpdatePublicStatusRequest,
3109
+ output: Sandbox2,
3110
+ errors: [UnknownDaytonaError],
3111
+ protocol: DaytonaProtocol,
3112
+ retry: Retry.Retry,
3113
+ }));
3114
+
3115
+ export type UpdateSandboxSecretsError = DaytonaOpError;
3116
+ /** 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. */
3117
+ export const updateSandboxSecrets: API.OperationMethod<
3118
+ UpdateSandboxSecretsRequest,
3119
+ Sandbox2,
3120
+ UpdateSandboxSecretsError,
3121
+ DaytonaOpContext
3122
+ > = /*@__PURE__*/ API.make(() => ({
3123
+ input: UpdateSandboxSecretsRequest,
3124
+ output: Sandbox2,
3125
+ errors: [UnknownDaytonaError],
3126
+ protocol: DaytonaProtocol,
3127
+ retry: Retry.Retry,
3128
+ }));
3129
+
3130
+ export type UpdateSandboxStateError = DaytonaOpError;
3131
+ /** Update sandbox state */
3132
+ export const updateSandboxState: API.OperationMethod<
3133
+ UpdateSandboxStateRequest,
3134
+ UpdateSandboxStateResponse,
3135
+ UpdateSandboxStateError,
3136
+ DaytonaOpContext
3137
+ > = /*@__PURE__*/ API.make(() => ({
3138
+ input: UpdateSandboxStateRequest,
3139
+ output: UpdateSandboxStateResponse,
3140
+ errors: [UnknownDaytonaError],
3141
+ protocol: DaytonaProtocol,
3142
+ retry: Retry.Retry,
3143
+ }));
3144
+
3145
+ export type ValidateSshAccessError = DaytonaOpError;
3146
+ /** Validate SSH access for sandbox */
3147
+ export const validateSshAccess: API.OperationMethod<
3148
+ ValidateSshAccessRequest,
3149
+ SshAccessValidationDto,
3150
+ ValidateSshAccessError,
3151
+ DaytonaOpContext
3152
+ > = /*@__PURE__*/ API.make(() => ({
3153
+ input: ValidateSshAccessRequest,
3154
+ output: SshAccessValidationDto,
3155
+ errors: [UnknownDaytonaError],
3156
+ protocol: DaytonaProtocol,
3157
+ retry: Retry.Retry,
3158
+ }));