@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,1218 @@
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.js";
5
+ import { DaytonaProtocol, } from "../protocol.js";
6
+ import { UnknownDaytonaError } from "../errors.js";
7
+ import * as Retry from "../retry.js";
8
+ export const ArchiveSandboxRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
9
+ sandboxIdOrName: S.String.pipe(T.Label()),
10
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
11
+ }).pipe(T.Http({
12
+ method: "POST",
13
+ uri: "/sandbox/{sandboxIdOrName}/archive",
14
+ code: 200,
15
+ }))).annotate({
16
+ identifier: "ArchiveSandboxRequest",
17
+ });
18
+ export const SandboxEnvMap = /*@__PURE__*/ S.Record(S.String, S.String);
19
+ export const SandboxLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
20
+ export const GpuType = S.String;
21
+ export const SandboxState = S.String;
22
+ export const SandboxDesiredState = S.String;
23
+ export const SandboxBackupState = S.String;
24
+ export const SandboxVolume = /*@__PURE__*/ S.suspend(() => S.Struct({
25
+ volumeId: S.String,
26
+ mountPath: S.String,
27
+ subpath: S.optional(S.String),
28
+ })).annotate({ identifier: "SandboxVolume" });
29
+ export const SandboxVolumesList = /*@__PURE__*/ S.Array(SandboxVolume);
30
+ export const BuildInfoContextHashesList = /*@__PURE__*/ S.Array(S.String);
31
+ export const BuildInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
32
+ dockerfileContent: S.optional(S.String),
33
+ contextHashes: S.optional(BuildInfoContextHashesList),
34
+ createdAt: S.String,
35
+ updatedAt: S.String,
36
+ snapshotRef: S.String,
37
+ })).annotate({ identifier: "BuildInfo" });
38
+ export const SandboxSandboxClass = S.String;
39
+ export const Sandbox2 = /*@__PURE__*/ S.suspend(() => S.Struct({
40
+ id: S.String,
41
+ organizationId: S.String,
42
+ name: S.String,
43
+ snapshot: S.optional(S.String),
44
+ user: S.String,
45
+ env: SandboxEnvMap,
46
+ labels: SandboxLabelsMap,
47
+ public: S.Boolean,
48
+ networkBlockAll: S.Boolean,
49
+ networkAllowList: S.optional(S.String),
50
+ domainAllowList: S.optional(S.String),
51
+ outboundProxyUrl: S.optional(S.String),
52
+ otelEndpointOverride: S.optional(S.String),
53
+ target: S.String,
54
+ cpu: S.Number,
55
+ gpu: S.Number,
56
+ spot: S.optional(S.Boolean),
57
+ spotEvictedAt: S.optional(S.String),
58
+ gpuType: S.optional(GpuType),
59
+ memory: S.Number,
60
+ disk: S.Number,
61
+ state: S.optional(SandboxState),
62
+ desiredState: S.optional(SandboxDesiredState),
63
+ errorReason: S.optional(S.String),
64
+ recoverable: S.optional(S.Boolean),
65
+ warmPoolId: S.optional(S.String),
66
+ backupState: S.optional(SandboxBackupState),
67
+ backupCreatedAt: S.optional(S.String),
68
+ autoStopInterval: S.optional(S.Number),
69
+ autoPauseInterval: S.optional(S.Number),
70
+ autoArchiveInterval: S.optional(S.Number),
71
+ autoDeleteInterval: S.optional(S.Number),
72
+ autoDestroyAt: S.optional(S.String),
73
+ volumes: S.optional(SandboxVolumesList),
74
+ buildInfo: S.optional(BuildInfo),
75
+ createdAt: S.optional(S.String),
76
+ updatedAt: S.optional(S.String),
77
+ lastActivityAt: S.optional(S.String),
78
+ sandboxClass: S.optional(SandboxSandboxClass),
79
+ daemonVersion: S.optional(S.String),
80
+ runnerId: S.optional(S.String),
81
+ linkedSandboxId: S.optional(S.String),
82
+ toolboxProxyUrl: S.String,
83
+ })).annotate({ identifier: "Sandbox2" });
84
+ export const CreateSandboxRequestEnvMap = /*@__PURE__*/ S.Record(S.String, S.String);
85
+ export const CreateSandboxRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
86
+ export const CreateSandboxRequestGpuTypeList = /*@__PURE__*/ S.Array(GpuType);
87
+ export const CreateSandboxRequestVolumesList = /*@__PURE__*/ S.Array(SandboxVolume);
88
+ export const CreateBuildInfoContextHashesList = /*@__PURE__*/ S.Array(S.String);
89
+ export const CreateBuildInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
90
+ dockerfileContent: S.String,
91
+ contextHashes: S.optional(CreateBuildInfoContextHashesList),
92
+ })).annotate({
93
+ identifier: "CreateBuildInfo",
94
+ });
95
+ export const CreateSandboxRequestSecretsItemMap = /*@__PURE__*/ S.Record(S.String, S.String);
96
+ export const CreateSandboxRequestSecretsList = /*@__PURE__*/ S.Array(CreateSandboxRequestSecretsItemMap);
97
+ export const CreateSandboxRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
98
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
99
+ name: S.optional(S.String),
100
+ snapshot: S.optional(S.String),
101
+ user: S.optional(S.String),
102
+ env: S.optional(CreateSandboxRequestEnvMap),
103
+ labels: S.optional(CreateSandboxRequestLabelsMap),
104
+ public: S.optional(S.Boolean),
105
+ networkBlockAll: S.optional(S.Boolean),
106
+ networkAllowList: S.optional(S.String),
107
+ domainAllowList: S.optional(S.String),
108
+ outboundProxyUrl: S.optional(S.String),
109
+ otelEndpointOverride: S.optional(S.String),
110
+ target: S.optional(S.String),
111
+ cpu: S.optional(S.Number),
112
+ gpu: S.optional(S.Number),
113
+ gpuType: S.optional(CreateSandboxRequestGpuTypeList),
114
+ spot: S.optional(S.Boolean),
115
+ memory: S.optional(S.Number),
116
+ disk: S.optional(S.Number),
117
+ autoStopInterval: S.optional(S.Number),
118
+ autoPauseInterval: S.optional(S.Number),
119
+ autoArchiveInterval: S.optional(S.Number),
120
+ autoDeleteInterval: S.optional(S.Number),
121
+ ttlMinutes: S.optional(S.Number),
122
+ volumes: S.optional(CreateSandboxRequestVolumesList),
123
+ buildInfo: S.optional(CreateBuildInfo),
124
+ linkedSandbox: S.optional(S.String),
125
+ secrets: S.optional(CreateSandboxRequestSecretsList),
126
+ }).pipe(T.Http({ method: "POST", uri: "/sandbox", code: 200 }))).annotate({
127
+ identifier: "CreateSandboxRequest",
128
+ });
129
+ export const CreateSandboxSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
130
+ sandboxIdOrName: S.String.pipe(T.Label()),
131
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
132
+ name: S.String,
133
+ includeMemory: S.optional(S.Boolean),
134
+ }).pipe(T.Http({
135
+ method: "POST",
136
+ uri: "/sandbox/{sandboxIdOrName}/snapshot",
137
+ code: 200,
138
+ }))).annotate({
139
+ identifier: "CreateSandboxSnapshotRequest",
140
+ });
141
+ export const CreateSshAccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
142
+ sandboxIdOrName: S.String.pipe(T.Label()),
143
+ expiresInMinutes: S.optional(S.Number.pipe(T.Query())),
144
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
145
+ }).pipe(T.Http({
146
+ method: "POST",
147
+ uri: "/sandbox/{sandboxIdOrName}/ssh-access",
148
+ code: 200,
149
+ }))).annotate({
150
+ identifier: "CreateSshAccessRequest",
151
+ });
152
+ export const SshAccessDto = /*@__PURE__*/ S.suspend(() => S.Struct({
153
+ id: S.String,
154
+ sandboxId: S.String,
155
+ token: S.String,
156
+ expiresAt: S.String,
157
+ createdAt: S.String,
158
+ updatedAt: S.String,
159
+ sshCommand: S.String,
160
+ })).annotate({ identifier: "SshAccessDto" });
161
+ export const DeleteSandboxRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
162
+ sandboxIdOrName: S.String.pipe(T.Label()),
163
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
164
+ }).pipe(T.Http({ method: "DELETE", uri: "/sandbox/{sandboxIdOrName}", code: 200 }))).annotate({
165
+ identifier: "DeleteSandboxRequest",
166
+ });
167
+ export const ExpireSignedPortPreviewUrlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
168
+ sandboxIdOrName: S.String.pipe(T.Label()),
169
+ port: S.Number.pipe(T.Label()),
170
+ token: S.String.pipe(T.Label()),
171
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
172
+ }).pipe(T.Http({
173
+ method: "POST",
174
+ uri: "/sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-url/{token}/expire",
175
+ code: 200,
176
+ }))).annotate({
177
+ identifier: "ExpireSignedPortPreviewUrlRequest",
178
+ });
179
+ export const ExpireSignedPortPreviewUrlResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
180
+ identifier: "ExpireSignedPortPreviewUrlResponse",
181
+ });
182
+ export const ForkSandboxRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
183
+ sandboxIdOrName: S.String.pipe(T.Label()),
184
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
185
+ name: S.optional(S.String),
186
+ }).pipe(T.Http({
187
+ method: "POST",
188
+ uri: "/sandbox/{sandboxIdOrName}/fork",
189
+ code: 200,
190
+ }))).annotate({
191
+ identifier: "ForkSandboxRequest",
192
+ });
193
+ export const GetBuildLogsUrlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
194
+ sandboxIdOrName: S.String.pipe(T.Label()),
195
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
196
+ }).pipe(T.Http({
197
+ method: "GET",
198
+ uri: "/sandbox/{sandboxIdOrName}/build-logs-url",
199
+ code: 200,
200
+ }))).annotate({
201
+ identifier: "GetBuildLogsUrlRequest",
202
+ });
203
+ export const Url = /*@__PURE__*/ S.suspend(() => S.Struct({
204
+ url: S.String,
205
+ })).annotate({ identifier: "Url" });
206
+ export const GetOrganizationBySandboxIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
207
+ sandboxId: S.String.pipe(T.Label()),
208
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
209
+ }).pipe(T.Http({
210
+ method: "GET",
211
+ uri: "/sandbox/{sandboxId}/organization",
212
+ code: 200,
213
+ }))).annotate({
214
+ identifier: "GetOrganizationBySandboxIdRequest",
215
+ });
216
+ export const OtelConfigHeadersMap = /*@__PURE__*/ S.Record(S.String, S.String);
217
+ export const OtelConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
218
+ endpoint: S.String,
219
+ headers: S.optional(S.NullOr(OtelConfigHeadersMap)),
220
+ organizationId: S.optional(S.String),
221
+ })).annotate({ identifier: "OtelConfig" });
222
+ export const Organization = /*@__PURE__*/ S.suspend(() => S.Struct({
223
+ id: S.String,
224
+ name: S.String,
225
+ createdBy: S.String,
226
+ personal: S.Boolean,
227
+ createdAt: S.String,
228
+ updatedAt: S.String,
229
+ suspended: S.Boolean,
230
+ suspendedAt: S.String,
231
+ suspensionReason: S.String,
232
+ suspendedUntil: S.String,
233
+ suspensionCleanupGracePeriodHours: S.Number,
234
+ maxCpuPerSandbox: S.Number,
235
+ maxMemoryPerSandbox: S.Number,
236
+ maxDiskPerSandbox: S.Number,
237
+ secretQuota: S.Number,
238
+ maxSecretsPerSandbox: S.Number,
239
+ snapshotDeactivationTimeoutMinutes: S.Number,
240
+ sandboxLimitedNetworkEgress: S.Boolean,
241
+ previewWarningEnabled: S.Boolean,
242
+ ssoEnabled: S.Boolean,
243
+ scimEnabled: S.Boolean,
244
+ defaultRegionId: S.optional(S.String),
245
+ workosOrgId: S.optional(S.String),
246
+ authenticatedRateLimit: S.NullOr(S.Number),
247
+ sandboxCreateRateLimit: S.NullOr(S.Number),
248
+ sandboxLifecycleRateLimit: S.NullOr(S.Number),
249
+ experimentalConfig: S.Unknown,
250
+ otelConfig: S.NullOr(OtelConfig),
251
+ authenticatedRateLimitTtlSeconds: S.NullOr(S.Number),
252
+ sandboxCreateRateLimitTtlSeconds: S.NullOr(S.Number),
253
+ sandboxLifecycleRateLimitTtlSeconds: S.NullOr(S.Number),
254
+ })).annotate({ identifier: "Organization" });
255
+ export const GetPortPreviewUrlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
256
+ sandboxIdOrName: S.String.pipe(T.Label()),
257
+ port: S.Number.pipe(T.Label()),
258
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
259
+ }).pipe(T.Http({
260
+ method: "GET",
261
+ uri: "/sandbox/{sandboxIdOrName}/ports/{port}/preview-url",
262
+ code: 200,
263
+ }))).annotate({
264
+ identifier: "GetPortPreviewUrlRequest",
265
+ });
266
+ export const PortPreviewUrl = /*@__PURE__*/ S.suspend(() => S.Struct({
267
+ sandboxId: S.String,
268
+ url: S.String,
269
+ token: S.String,
270
+ })).annotate({ identifier: "PortPreviewUrl" });
271
+ export const GetRegionQuotaBySandboxIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
272
+ sandboxId: S.String.pipe(T.Label()),
273
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
274
+ }).pipe(T.Http({
275
+ method: "GET",
276
+ uri: "/sandbox/{sandboxId}/region-quota",
277
+ code: 200,
278
+ }))).annotate({
279
+ identifier: "GetRegionQuotaBySandboxIdRequest",
280
+ });
281
+ export const SandboxClass = S.String;
282
+ export const RegionQuotaAllowedGpuTypesList = /*@__PURE__*/ S.Array(GpuType);
283
+ export const RegionQuota = /*@__PURE__*/ S.suspend(() => S.Struct({
284
+ organizationId: S.String,
285
+ regionId: S.String,
286
+ sandboxClass: SandboxClass,
287
+ totalCpuQuota: S.Number,
288
+ totalMemoryQuota: S.Number,
289
+ totalDiskQuota: S.Number,
290
+ totalGpuQuota: S.Number,
291
+ allowedGpuTypes: S.optional(RegionQuotaAllowedGpuTypesList),
292
+ maxCpuPerSandbox: S.NullOr(S.Number),
293
+ maxMemoryPerSandbox: S.NullOr(S.Number),
294
+ maxDiskPerSandbox: S.NullOr(S.Number),
295
+ maxDiskPerNonEphemeralSandbox: S.NullOr(S.Number),
296
+ maxCpuPerGpu: S.NullOr(S.Number),
297
+ maxMemoryPerGpu: S.NullOr(S.Number),
298
+ maxDiskPerGpu: S.NullOr(S.Number),
299
+ maxSandboxLifespan: S.NullOr(S.Number),
300
+ })).annotate({ identifier: "RegionQuota" });
301
+ export const GetSandboxRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
302
+ sandboxIdOrName: S.String.pipe(T.Label()),
303
+ verbose: S.optional(S.Boolean.pipe(T.Query())),
304
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
305
+ }).pipe(T.Http({ method: "GET", uri: "/sandbox/{sandboxIdOrName}", code: 200 }))).annotate({
306
+ identifier: "GetSandboxRequest",
307
+ });
308
+ export const GetSandboxAncestorsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
309
+ sandboxIdOrName: S.String.pipe(T.Label()),
310
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
311
+ }).pipe(T.Http({
312
+ method: "GET",
313
+ uri: "/sandbox/{sandboxIdOrName}/ancestors",
314
+ code: 200,
315
+ }))).annotate({
316
+ identifier: "GetSandboxAncestorsRequest",
317
+ });
318
+ export const GetSandboxAncestorsResponseBodyList = /*@__PURE__*/ S.Array(Sandbox2);
319
+ export const GetSandboxAncestorsResponse = /*@__PURE__*/ S.suspend(() => GetSandboxAncestorsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
320
+ identifier: "GetSandboxAncestorsResponse",
321
+ });
322
+ export const GetSandboxesForRunnerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
323
+ states: S.optional(S.String.pipe(T.Query())),
324
+ skipReconcilingSandboxes: S.optional(S.Boolean.pipe(T.Query())),
325
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
326
+ }).pipe(T.Http({ method: "GET", uri: "/sandbox/for-runner", code: 200 }))).annotate({
327
+ identifier: "GetSandboxesForRunnerRequest",
328
+ });
329
+ export const GetSandboxesForRunnerResponseBodyList = /*@__PURE__*/ S.Array(Sandbox2);
330
+ export const GetSandboxesForRunnerResponse = /*@__PURE__*/ S.suspend(() => GetSandboxesForRunnerResponseBodyList.pipe(T.RawResponseRoot())).annotate({
331
+ identifier: "GetSandboxesForRunnerResponse",
332
+ });
333
+ export const GetSandboxForksRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
334
+ sandboxIdOrName: S.String.pipe(T.Label()),
335
+ includeDestroyed: S.optional(S.Boolean.pipe(T.Query())),
336
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
337
+ }).pipe(T.Http({
338
+ method: "GET",
339
+ uri: "/sandbox/{sandboxIdOrName}/forks",
340
+ code: 200,
341
+ }))).annotate({
342
+ identifier: "GetSandboxForksRequest",
343
+ });
344
+ export const GetSandboxForksResponseBodyList = /*@__PURE__*/ S.Array(Sandbox2);
345
+ export const GetSandboxForksResponse = /*@__PURE__*/ S.suspend(() => GetSandboxForksResponseBodyList.pipe(T.RawResponseRoot())).annotate({
346
+ identifier: "GetSandboxForksResponse",
347
+ });
348
+ export const GetSandboxLogsRequestSeveritiesList = /*@__PURE__*/ S.Array(S.String);
349
+ export const GetSandboxLogsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
350
+ sandboxId: S.String.pipe(T.Label()),
351
+ from: S.String.pipe(T.Query()),
352
+ to: S.String.pipe(T.Query()),
353
+ page: S.optional(S.Number.pipe(T.Query())),
354
+ limit: S.optional(S.Number.pipe(T.Query())),
355
+ severities: S.optional(GetSandboxLogsRequestSeveritiesList.pipe(T.Query())),
356
+ search: S.optional(S.String.pipe(T.Query())),
357
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
358
+ }).pipe(T.Http({
359
+ method: "GET",
360
+ uri: "/sandbox/{sandboxId}/telemetry/logs",
361
+ code: 200,
362
+ }))).annotate({
363
+ identifier: "GetSandboxLogsRequest",
364
+ });
365
+ export const LogEntryResourceAttributesMap = /*@__PURE__*/ S.Record(S.String, S.String);
366
+ export const LogEntryLogAttributesMap = /*@__PURE__*/ S.Record(S.String, S.String);
367
+ export const LogEntry = /*@__PURE__*/ S.suspend(() => S.Struct({
368
+ timestamp: S.String,
369
+ body: S.String,
370
+ severityText: S.String,
371
+ severityNumber: S.optional(S.Number),
372
+ serviceName: S.String,
373
+ resourceAttributes: LogEntryResourceAttributesMap,
374
+ logAttributes: LogEntryLogAttributesMap,
375
+ traceId: S.optional(S.String),
376
+ spanId: S.optional(S.String),
377
+ })).annotate({ identifier: "LogEntry" });
378
+ export const PaginatedLogsItemsList = /*@__PURE__*/ S.Array(LogEntry);
379
+ export const PaginatedLogs = /*@__PURE__*/ S.suspend(() => S.Struct({
380
+ items: PaginatedLogsItemsList,
381
+ total: S.Number,
382
+ page: S.Number,
383
+ totalPages: S.Number,
384
+ })).annotate({ identifier: "PaginatedLogs" });
385
+ export const GetSandboxMetricsRequestMetricNamesList = /*@__PURE__*/ S.Array(S.String);
386
+ export const GetSandboxMetricsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
387
+ sandboxId: S.String.pipe(T.Label()),
388
+ from: S.String.pipe(T.Query()),
389
+ to: S.String.pipe(T.Query()),
390
+ metricNames: S.optional(GetSandboxMetricsRequestMetricNamesList.pipe(T.Query())),
391
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
392
+ }).pipe(T.Http({
393
+ method: "GET",
394
+ uri: "/sandbox/{sandboxId}/telemetry/metrics",
395
+ code: 200,
396
+ }))).annotate({
397
+ identifier: "GetSandboxMetricsRequest",
398
+ });
399
+ export const MetricDataPoint = /*@__PURE__*/ S.suspend(() => S.Struct({
400
+ timestamp: S.String,
401
+ value: S.Number,
402
+ })).annotate({
403
+ identifier: "MetricDataPoint",
404
+ });
405
+ export const MetricSeriesDataPointsList = /*@__PURE__*/ S.Array(MetricDataPoint);
406
+ export const MetricSeries = /*@__PURE__*/ S.suspend(() => S.Struct({
407
+ metricName: S.String,
408
+ dataPoints: MetricSeriesDataPointsList,
409
+ })).annotate({ identifier: "MetricSeries" });
410
+ export const MetricsResponseSeriesList = /*@__PURE__*/ S.Array(MetricSeries);
411
+ export const MetricsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
412
+ series: MetricsResponseSeriesList,
413
+ })).annotate({
414
+ identifier: "MetricsResponse",
415
+ });
416
+ export const GetSandboxParentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
417
+ sandboxIdOrName: S.String.pipe(T.Label()),
418
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
419
+ }).pipe(T.Http({
420
+ method: "GET",
421
+ uri: "/sandbox/{sandboxIdOrName}/parent",
422
+ code: 200,
423
+ }))).annotate({
424
+ identifier: "GetSandboxParentRequest",
425
+ });
426
+ export const GetSandboxSigningKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
427
+ sandboxId: S.String.pipe(T.Label()),
428
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
429
+ }).pipe(T.Http({
430
+ method: "GET",
431
+ uri: "/sandbox/{sandboxId}/signing-key",
432
+ code: 200,
433
+ }))).annotate({
434
+ identifier: "GetSandboxSigningKeyRequest",
435
+ });
436
+ export const GetSandboxSigningKeyResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
437
+ identifier: "GetSandboxSigningKeyResponse",
438
+ });
439
+ export const GetSandboxTracesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
440
+ sandboxId: S.String.pipe(T.Label()),
441
+ from: S.String.pipe(T.Query()),
442
+ to: S.String.pipe(T.Query()),
443
+ page: S.optional(S.Number.pipe(T.Query())),
444
+ limit: S.optional(S.Number.pipe(T.Query())),
445
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
446
+ }).pipe(T.Http({
447
+ method: "GET",
448
+ uri: "/sandbox/{sandboxId}/telemetry/traces",
449
+ code: 200,
450
+ }))).annotate({
451
+ identifier: "GetSandboxTracesRequest",
452
+ });
453
+ export const TraceSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
454
+ traceId: S.String,
455
+ rootSpanName: S.String,
456
+ startTime: S.String,
457
+ endTime: S.String,
458
+ durationMs: S.Number,
459
+ spanCount: S.Number,
460
+ statusCode: S.optional(S.String),
461
+ })).annotate({ identifier: "TraceSummary" });
462
+ export const PaginatedTracesItemsList = /*@__PURE__*/ S.Array(TraceSummary);
463
+ export const PaginatedTraces = /*@__PURE__*/ S.suspend(() => S.Struct({
464
+ items: PaginatedTracesItemsList,
465
+ total: S.Number,
466
+ page: S.Number,
467
+ totalPages: S.Number,
468
+ })).annotate({
469
+ identifier: "PaginatedTraces",
470
+ });
471
+ export const GetSandboxTraceSpansRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
472
+ sandboxId: S.String.pipe(T.Label()),
473
+ traceId: S.String.pipe(T.Label()),
474
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
475
+ }).pipe(T.Http({
476
+ method: "GET",
477
+ uri: "/sandbox/{sandboxId}/telemetry/traces/{traceId}",
478
+ code: 200,
479
+ }))).annotate({
480
+ identifier: "GetSandboxTraceSpansRequest",
481
+ });
482
+ export const TraceSpanSpanAttributesMap = /*@__PURE__*/ S.Record(S.String, S.String);
483
+ export const TraceSpan = /*@__PURE__*/ S.suspend(() => S.Struct({
484
+ traceId: S.String,
485
+ spanId: S.String,
486
+ parentSpanId: S.optional(S.String),
487
+ spanName: S.String,
488
+ timestamp: S.String,
489
+ durationNs: S.Number,
490
+ spanAttributes: TraceSpanSpanAttributesMap,
491
+ statusCode: S.optional(S.String),
492
+ statusMessage: S.optional(S.String),
493
+ })).annotate({ identifier: "TraceSpan" });
494
+ export const GetSandboxTraceSpansResponseBodyList = /*@__PURE__*/ S.Array(TraceSpan);
495
+ export const GetSandboxTraceSpansResponse = /*@__PURE__*/ S.suspend(() => GetSandboxTraceSpansResponseBodyList.pipe(T.RawResponseRoot())).annotate({
496
+ identifier: "GetSandboxTraceSpansResponse",
497
+ });
498
+ export const GetSignedPortPreviewUrlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
499
+ sandboxIdOrName: S.String.pipe(T.Label()),
500
+ port: S.Number.pipe(T.Label()),
501
+ expiresInSeconds: S.optional(S.Number.pipe(T.Query())),
502
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
503
+ }).pipe(T.Http({
504
+ method: "GET",
505
+ uri: "/sandbox/{sandboxIdOrName}/ports/{port}/signed-preview-url",
506
+ code: 200,
507
+ }))).annotate({
508
+ identifier: "GetSignedPortPreviewUrlRequest",
509
+ });
510
+ export const SignedPortPreviewUrl = /*@__PURE__*/ S.suspend(() => S.Struct({
511
+ sandboxId: S.String,
512
+ port: S.Number,
513
+ token: S.String,
514
+ url: S.String,
515
+ })).annotate({
516
+ identifier: "SignedPortPreviewUrl",
517
+ });
518
+ export const GetToolboxProxyUrlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
519
+ sandboxId: S.String.pipe(T.Label()),
520
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
521
+ }).pipe(T.Http({
522
+ method: "GET",
523
+ uri: "/sandbox/{sandboxId}/toolbox-proxy-url",
524
+ code: 200,
525
+ }))).annotate({
526
+ identifier: "GetToolboxProxyUrlRequest",
527
+ });
528
+ export const ToolboxProxyUrl = /*@__PURE__*/ S.suspend(() => S.Struct({
529
+ url: S.String,
530
+ })).annotate({
531
+ identifier: "ToolboxProxyUrl",
532
+ });
533
+ export const ListSandboxesRequestStatesList = /*@__PURE__*/ S.Array(SandboxState);
534
+ export const ListSandboxesRequestSnapshotsList = /*@__PURE__*/ S.Array(S.String);
535
+ export const ListSandboxesRequestRegionIdsList = /*@__PURE__*/ S.Array(S.String);
536
+ export const ListSandboxesRequestSandboxClassesList = /*@__PURE__*/ S.Array(SandboxClass);
537
+ export const SandboxListSortField = S.String;
538
+ export const SandboxListSortDirection = S.String;
539
+ export const ListSandboxesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
540
+ cursor: S.optional(S.String.pipe(T.Query())),
541
+ limit: S.optional(S.Number.pipe(T.Query())),
542
+ id: S.optional(S.String.pipe(T.Query())),
543
+ name: S.optional(S.String.pipe(T.Query())),
544
+ labels: S.optional(S.String.pipe(T.Query())),
545
+ includeErroredDeleted: S.optional(S.Boolean.pipe(T.Query())),
546
+ includeWarm: S.optional(S.Boolean.pipe(T.Query())),
547
+ states: S.optional(ListSandboxesRequestStatesList.pipe(T.Query())),
548
+ snapshots: S.optional(ListSandboxesRequestSnapshotsList.pipe(T.Query())),
549
+ regionIds: S.optional(ListSandboxesRequestRegionIdsList.pipe(T.Query())),
550
+ sandboxClasses: S.optional(ListSandboxesRequestSandboxClassesList.pipe(T.Query())),
551
+ minCpu: S.optional(S.Number.pipe(T.Query())),
552
+ maxCpu: S.optional(S.Number.pipe(T.Query())),
553
+ minMemoryGiB: S.optional(S.Number.pipe(T.Query())),
554
+ maxMemoryGiB: S.optional(S.Number.pipe(T.Query())),
555
+ minDiskGiB: S.optional(S.Number.pipe(T.Query())),
556
+ maxDiskGiB: S.optional(S.Number.pipe(T.Query())),
557
+ minGpu: S.optional(S.Number.pipe(T.Query())),
558
+ maxGpu: S.optional(S.Number.pipe(T.Query())),
559
+ isPublic: S.optional(S.Boolean.pipe(T.Query())),
560
+ isRecoverable: S.optional(S.Boolean.pipe(T.Query())),
561
+ createdAtAfter: S.optional(S.String.pipe(T.Query())),
562
+ createdAtBefore: S.optional(S.String.pipe(T.Query())),
563
+ lastEventAfter: S.optional(S.String.pipe(T.Query())),
564
+ lastEventBefore: S.optional(S.String.pipe(T.Query())),
565
+ autoDestroyAtAfter: S.optional(S.String.pipe(T.Query())),
566
+ autoDestroyAtBefore: S.optional(S.String.pipe(T.Query())),
567
+ sort: S.optional(SandboxListSortField.pipe(T.Query())),
568
+ order: S.optional(SandboxListSortDirection.pipe(T.Query())),
569
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
570
+ }).pipe(T.Http({ method: "GET", uri: "/sandbox", code: 200 }))).annotate({
571
+ identifier: "ListSandboxesRequest",
572
+ });
573
+ export const SandboxListItemLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
574
+ export const SandboxListItemBackupState = S.String;
575
+ export const SandboxListItem = /*@__PURE__*/ S.suspend(() => S.Struct({
576
+ id: S.String,
577
+ organizationId: S.String,
578
+ name: S.String,
579
+ target: S.String,
580
+ runnerId: S.optional(S.String),
581
+ sandboxClass: S.optional(SandboxClass),
582
+ state: S.optional(SandboxState),
583
+ desiredState: S.optional(SandboxDesiredState),
584
+ snapshot: S.optional(S.String),
585
+ user: S.String,
586
+ errorReason: S.optional(S.String),
587
+ recoverable: S.optional(S.Boolean),
588
+ public: S.Boolean,
589
+ networkBlockAll: S.Boolean,
590
+ networkAllowList: S.optional(S.String),
591
+ domainAllowList: S.optional(S.String),
592
+ cpu: S.Number,
593
+ gpu: S.Number,
594
+ spot: S.optional(S.Boolean),
595
+ spotEvictedAt: S.optional(S.String),
596
+ gpuType: S.optional(GpuType),
597
+ memory: S.Number,
598
+ disk: S.Number,
599
+ labels: SandboxListItemLabelsMap,
600
+ backupState: S.optional(SandboxListItemBackupState),
601
+ autoStopInterval: S.optional(S.Number),
602
+ autoPauseInterval: S.optional(S.Number),
603
+ autoArchiveInterval: S.optional(S.Number),
604
+ autoDeleteInterval: S.optional(S.Number),
605
+ autoDestroyAt: S.optional(S.String),
606
+ createdAt: S.optional(S.String),
607
+ updatedAt: S.optional(S.String),
608
+ lastActivityAt: S.optional(S.String),
609
+ daemonVersion: S.optional(S.String),
610
+ warmPoolId: S.optional(S.String),
611
+ toolboxProxyUrl: S.String,
612
+ })).annotate({
613
+ identifier: "SandboxListItem",
614
+ });
615
+ export const ListSandboxesResponseItemsList = /*@__PURE__*/ S.Array(SandboxListItem);
616
+ export const ListSandboxesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
617
+ items: ListSandboxesResponseItemsList,
618
+ nextCursor: S.NullOr(S.String),
619
+ })).annotate({
620
+ identifier: "ListSandboxesResponse",
621
+ });
622
+ export const PauseSandboxRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
623
+ sandboxIdOrName: S.String.pipe(T.Label()),
624
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
625
+ }).pipe(T.Http({
626
+ method: "POST",
627
+ uri: "/sandbox/{sandboxIdOrName}/pause",
628
+ code: 200,
629
+ }))).annotate({
630
+ identifier: "PauseSandboxRequest",
631
+ });
632
+ export const RecoverSandboxRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
633
+ sandboxIdOrName: S.String.pipe(T.Label()),
634
+ skipStart: S.optional(S.Boolean.pipe(T.Query())),
635
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
636
+ }).pipe(T.Http({
637
+ method: "POST",
638
+ uri: "/sandbox/{sandboxIdOrName}/recover",
639
+ code: 200,
640
+ }))).annotate({
641
+ identifier: "RecoverSandboxRequest",
642
+ });
643
+ export const ReplaceLabelsRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
644
+ export const ReplaceLabelsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
645
+ sandboxIdOrName: S.String.pipe(T.Label()),
646
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
647
+ labels: ReplaceLabelsRequestLabelsMap,
648
+ }).pipe(T.Http({
649
+ method: "PUT",
650
+ uri: "/sandbox/{sandboxIdOrName}/labels",
651
+ code: 200,
652
+ }))).annotate({
653
+ identifier: "ReplaceLabelsRequest",
654
+ });
655
+ export const SandboxLabelsLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
656
+ export const SandboxLabels = /*@__PURE__*/ S.suspend(() => S.Struct({
657
+ labels: SandboxLabelsLabelsMap,
658
+ })).annotate({ identifier: "SandboxLabels" });
659
+ export const ResizeSandboxRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
660
+ sandboxIdOrName: S.String.pipe(T.Label()),
661
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
662
+ cpu: S.optional(S.Number),
663
+ memory: S.optional(S.Number),
664
+ disk: S.optional(S.Number),
665
+ }).pipe(T.Http({
666
+ method: "POST",
667
+ uri: "/sandbox/{sandboxIdOrName}/resize",
668
+ code: 200,
669
+ }))).annotate({
670
+ identifier: "ResizeSandboxRequest",
671
+ });
672
+ export const ResolveSandboxSecretsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
673
+ sandboxId: S.String.pipe(T.Label()),
674
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
675
+ }).pipe(T.Http({ method: "GET", uri: "/sandbox/{sandboxId}/secrets", code: 200 }))).annotate({
676
+ identifier: "ResolveSandboxSecretsRequest",
677
+ });
678
+ export const ResolveSandboxSecrets200ResponseInnerHostsList =
679
+ /*@__PURE__*/ S.Array(S.String);
680
+ export const ResolveSandboxSecrets200ResponseInner = /*@__PURE__*/ S.suspend(() => S.Struct({
681
+ env: S.optional(S.String),
682
+ placeholder: S.optional(S.String),
683
+ value: S.optional(S.String),
684
+ hosts: S.optional(ResolveSandboxSecrets200ResponseInnerHostsList),
685
+ })).annotate({
686
+ identifier: "ResolveSandboxSecrets200ResponseInner",
687
+ });
688
+ export const ResolveSandboxSecretsResponseBodyList = /*@__PURE__*/ S.Array(ResolveSandboxSecrets200ResponseInner);
689
+ export const ResolveSandboxSecretsResponse = /*@__PURE__*/ S.suspend(() => ResolveSandboxSecretsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
690
+ identifier: "ResolveSandboxSecretsResponse",
691
+ });
692
+ export const RevokeSshAccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
693
+ sandboxIdOrName: S.String.pipe(T.Label()),
694
+ token: S.optional(S.String.pipe(T.Query())),
695
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
696
+ }).pipe(T.Http({
697
+ method: "DELETE",
698
+ uri: "/sandbox/{sandboxIdOrName}/ssh-access",
699
+ code: 200,
700
+ }))).annotate({
701
+ identifier: "RevokeSshAccessRequest",
702
+ });
703
+ export const RotateSigningKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
704
+ sandboxId: S.String.pipe(T.Label()),
705
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
706
+ }).pipe(T.Http({
707
+ method: "POST",
708
+ uri: "/sandbox/{sandboxId}/signing-key/rotate",
709
+ code: 200,
710
+ }))).annotate({
711
+ identifier: "RotateSigningKeyRequest",
712
+ });
713
+ export const RotateSigningKeyResponse = /*@__PURE__*/ S.suspend(() => S.String.pipe(T.RawResponseRoot())).annotate({
714
+ identifier: "RotateSigningKeyResponse",
715
+ });
716
+ export const SetAutoArchiveIntervalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
717
+ sandboxIdOrName: S.String.pipe(T.Label()),
718
+ interval: S.Number.pipe(T.Label()),
719
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
720
+ }).pipe(T.Http({
721
+ method: "POST",
722
+ uri: "/sandbox/{sandboxIdOrName}/autoarchive/{interval}",
723
+ code: 200,
724
+ }))).annotate({
725
+ identifier: "SetAutoArchiveIntervalRequest",
726
+ });
727
+ export const SetAutoDeleteIntervalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
728
+ sandboxIdOrName: S.String.pipe(T.Label()),
729
+ interval: S.Number.pipe(T.Label()),
730
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
731
+ }).pipe(T.Http({
732
+ method: "POST",
733
+ uri: "/sandbox/{sandboxIdOrName}/autodelete/{interval}",
734
+ code: 200,
735
+ }))).annotate({
736
+ identifier: "SetAutoDeleteIntervalRequest",
737
+ });
738
+ export const SetAutoPauseIntervalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
739
+ sandboxIdOrName: S.String.pipe(T.Label()),
740
+ interval: S.Number.pipe(T.Label()),
741
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
742
+ }).pipe(T.Http({
743
+ method: "POST",
744
+ uri: "/sandbox/{sandboxIdOrName}/autopause/{interval}",
745
+ code: 200,
746
+ }))).annotate({
747
+ identifier: "SetAutoPauseIntervalRequest",
748
+ });
749
+ export const SetAutostopIntervalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
750
+ sandboxIdOrName: S.String.pipe(T.Label()),
751
+ interval: S.Number.pipe(T.Label()),
752
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
753
+ }).pipe(T.Http({
754
+ method: "POST",
755
+ uri: "/sandbox/{sandboxIdOrName}/autostop/{interval}",
756
+ code: 200,
757
+ }))).annotate({
758
+ identifier: "SetAutostopIntervalRequest",
759
+ });
760
+ export const SetTtlRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
761
+ sandboxIdOrName: S.String.pipe(T.Label()),
762
+ ttlMinutes: S.Number.pipe(T.Label()),
763
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
764
+ }).pipe(T.Http({
765
+ method: "POST",
766
+ uri: "/sandbox/{sandboxIdOrName}/ttl/{ttlMinutes}",
767
+ code: 200,
768
+ }))).annotate({ identifier: "SetTtlRequest" });
769
+ export const StartSandboxRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
770
+ sandboxIdOrName: S.String.pipe(T.Label()),
771
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
772
+ }).pipe(T.Http({
773
+ method: "POST",
774
+ uri: "/sandbox/{sandboxIdOrName}/start",
775
+ code: 200,
776
+ }))).annotate({
777
+ identifier: "StartSandboxRequest",
778
+ });
779
+ export const StopSandboxRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
780
+ sandboxIdOrName: S.String.pipe(T.Label()),
781
+ force: S.optional(S.Boolean.pipe(T.Query())),
782
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
783
+ }).pipe(T.Http({
784
+ method: "POST",
785
+ uri: "/sandbox/{sandboxIdOrName}/stop",
786
+ code: 200,
787
+ }))).annotate({
788
+ identifier: "StopSandboxRequest",
789
+ });
790
+ export const UpdateLastActivityRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
791
+ sandboxId: S.String.pipe(T.Label()),
792
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
793
+ activityType: S.optional(S.String),
794
+ }).pipe(T.Http({
795
+ method: "POST",
796
+ uri: "/sandbox/{sandboxId}/last-activity",
797
+ code: 200,
798
+ }))).annotate({
799
+ identifier: "UpdateLastActivityRequest",
800
+ });
801
+ export const UpdateLastActivityResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
802
+ identifier: "UpdateLastActivityResponse",
803
+ });
804
+ export const UpdateNetworkSettingsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
805
+ sandboxIdOrName: S.String.pipe(T.Label()),
806
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
807
+ networkBlockAll: S.optional(S.Boolean),
808
+ networkAllowList: S.optional(S.String),
809
+ domainAllowList: S.optional(S.String),
810
+ }).pipe(T.Http({
811
+ method: "POST",
812
+ uri: "/sandbox/{sandboxIdOrName}/network-settings",
813
+ code: 200,
814
+ }))).annotate({
815
+ identifier: "UpdateNetworkSettingsRequest",
816
+ });
817
+ export const UpdatePublicStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
818
+ sandboxIdOrName: S.String.pipe(T.Label()),
819
+ isPublic: S.Boolean.pipe(T.Label()),
820
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
821
+ }).pipe(T.Http({
822
+ method: "POST",
823
+ uri: "/sandbox/{sandboxIdOrName}/public/{isPublic}",
824
+ code: 200,
825
+ }))).annotate({
826
+ identifier: "UpdatePublicStatusRequest",
827
+ });
828
+ export const UpdateSandboxSecretsRequestSecretsItemMap = /*@__PURE__*/ S.Record(S.String, S.String);
829
+ export const UpdateSandboxSecretsRequestSecretsList = /*@__PURE__*/ S.Array(UpdateSandboxSecretsRequestSecretsItemMap);
830
+ export const UpdateSandboxSecretsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
831
+ sandboxIdOrName: S.String.pipe(T.Label()),
832
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
833
+ secrets: UpdateSandboxSecretsRequestSecretsList,
834
+ }).pipe(T.Http({
835
+ method: "PUT",
836
+ uri: "/sandbox/{sandboxIdOrName}/secrets",
837
+ code: 200,
838
+ }))).annotate({
839
+ identifier: "UpdateSandboxSecretsRequest",
840
+ });
841
+ export const UpdateSandboxStateRequestState = S.String;
842
+ export const UpdateSandboxStateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
843
+ sandboxId: S.String.pipe(T.Label()),
844
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
845
+ state: UpdateSandboxStateRequestState,
846
+ errorReason: S.optional(S.String),
847
+ recoverable: S.optional(S.Boolean),
848
+ }).pipe(T.Http({ method: "PUT", uri: "/sandbox/{sandboxId}/state", code: 200 }))).annotate({
849
+ identifier: "UpdateSandboxStateRequest",
850
+ });
851
+ export const UpdateSandboxStateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
852
+ identifier: "UpdateSandboxStateResponse",
853
+ });
854
+ export const ValidateSshAccessRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
855
+ token: S.String.pipe(T.Query()),
856
+ xDaytonaOrganizationID: S.optional(S.String.pipe(T.Header("X-Daytona-Organization-ID"))),
857
+ }).pipe(T.Http({ method: "GET", uri: "/sandbox/ssh-access/validate", code: 200 }))).annotate({
858
+ identifier: "ValidateSshAccessRequest",
859
+ });
860
+ export const SshAccessValidationDto = /*@__PURE__*/ S.suspend(() => S.Struct({
861
+ valid: S.Boolean,
862
+ sandboxId: S.String,
863
+ })).annotate({
864
+ identifier: "SshAccessValidationDto",
865
+ });
866
+ /** Archive sandbox */
867
+ export const archiveSandbox = /*@__PURE__*/ API.make(() => ({
868
+ input: ArchiveSandboxRequest,
869
+ output: Sandbox2,
870
+ errors: [UnknownDaytonaError],
871
+ protocol: DaytonaProtocol,
872
+ retry: Retry.Retry,
873
+ }));
874
+ /** Create a new sandbox */
875
+ export const createSandbox = /*@__PURE__*/ API.make(() => ({
876
+ input: CreateSandboxRequest,
877
+ output: Sandbox2,
878
+ errors: [UnknownDaytonaError],
879
+ protocol: DaytonaProtocol,
880
+ retry: Retry.Retry,
881
+ }));
882
+ /** Create a snapshot from a sandbox */
883
+ export const createSandboxSnapshot = /*@__PURE__*/ API.make(() => ({
884
+ input: CreateSandboxSnapshotRequest,
885
+ output: Sandbox2,
886
+ errors: [UnknownDaytonaError],
887
+ protocol: DaytonaProtocol,
888
+ retry: Retry.Retry,
889
+ }));
890
+ /** Create SSH access for sandbox */
891
+ export const createSshAccess = /*@__PURE__*/ API.make(() => ({
892
+ input: CreateSshAccessRequest,
893
+ output: SshAccessDto,
894
+ errors: [UnknownDaytonaError],
895
+ protocol: DaytonaProtocol,
896
+ retry: Retry.Retry,
897
+ }));
898
+ /** Delete sandbox */
899
+ export const deleteSandbox = /*@__PURE__*/ API.make(() => ({
900
+ input: DeleteSandboxRequest,
901
+ output: Sandbox2,
902
+ errors: [UnknownDaytonaError],
903
+ protocol: DaytonaProtocol,
904
+ retry: Retry.Retry,
905
+ }));
906
+ /** Expire signed preview URL for a sandbox port */
907
+ export const expireSignedPortPreviewUrl = /*@__PURE__*/ API.make(() => ({
908
+ input: ExpireSignedPortPreviewUrlRequest,
909
+ output: ExpireSignedPortPreviewUrlResponse,
910
+ errors: [UnknownDaytonaError],
911
+ protocol: DaytonaProtocol,
912
+ retry: Retry.Retry,
913
+ }));
914
+ /** Fork a sandbox */
915
+ export const forkSandbox = /*@__PURE__*/ API.make(() => ({
916
+ input: ForkSandboxRequest,
917
+ output: Sandbox2,
918
+ errors: [UnknownDaytonaError],
919
+ protocol: DaytonaProtocol,
920
+ retry: Retry.Retry,
921
+ }));
922
+ /** Get build logs URL */
923
+ export const getBuildLogsUrl = /*@__PURE__*/ API.make(() => ({
924
+ input: GetBuildLogsUrlRequest,
925
+ output: Url,
926
+ errors: [UnknownDaytonaError],
927
+ protocol: DaytonaProtocol,
928
+ retry: Retry.Retry,
929
+ }));
930
+ /** Get organization by sandbox ID */
931
+ export const getOrganizationBySandboxId = /*@__PURE__*/ API.make(() => ({
932
+ input: GetOrganizationBySandboxIdRequest,
933
+ output: Organization,
934
+ errors: [UnknownDaytonaError],
935
+ protocol: DaytonaProtocol,
936
+ retry: Retry.Retry,
937
+ }));
938
+ /** Get preview URL for a sandbox port */
939
+ export const getPortPreviewUrl = /*@__PURE__*/ API.make(() => ({
940
+ input: GetPortPreviewUrlRequest,
941
+ output: PortPreviewUrl,
942
+ errors: [UnknownDaytonaError],
943
+ protocol: DaytonaProtocol,
944
+ retry: Retry.Retry,
945
+ }));
946
+ /** Get region quota by sandbox ID */
947
+ export const getRegionQuotaBySandboxId = /*@__PURE__*/ API.make(() => ({
948
+ input: GetRegionQuotaBySandboxIdRequest,
949
+ output: RegionQuota,
950
+ errors: [UnknownDaytonaError],
951
+ protocol: DaytonaProtocol,
952
+ retry: Retry.Retry,
953
+ }));
954
+ /** Get sandbox details Sandboxes destroyed by spot preemption remain retrievable for 24 hours so `spotEvictedAt` can be read. */
955
+ export const getSandbox = /*@__PURE__*/ API.make(() => ({
956
+ input: GetSandboxRequest,
957
+ output: Sandbox2,
958
+ errors: [UnknownDaytonaError],
959
+ protocol: DaytonaProtocol,
960
+ retry: Retry.Retry,
961
+ }));
962
+ /** Get sandbox fork ancestor chain */
963
+ export const getSandboxAncestors = /*@__PURE__*/ API.make(() => ({
964
+ input: GetSandboxAncestorsRequest,
965
+ output: GetSandboxAncestorsResponse,
966
+ errors: [UnknownDaytonaError],
967
+ protocol: DaytonaProtocol,
968
+ retry: Retry.Retry,
969
+ }));
970
+ /** Get sandboxes for the authenticated runner */
971
+ export const getSandboxesForRunner = /*@__PURE__*/ API.make(() => ({
972
+ input: GetSandboxesForRunnerRequest,
973
+ output: GetSandboxesForRunnerResponse,
974
+ errors: [UnknownDaytonaError],
975
+ protocol: DaytonaProtocol,
976
+ retry: Retry.Retry,
977
+ }));
978
+ /** Get sandbox fork children */
979
+ export const getSandboxForks = /*@__PURE__*/ API.make(() => ({
980
+ input: GetSandboxForksRequest,
981
+ output: GetSandboxForksResponse,
982
+ errors: [UnknownDaytonaError],
983
+ protocol: DaytonaProtocol,
984
+ retry: Retry.Retry,
985
+ }));
986
+ /** Get sandbox logs Retrieve OTEL logs for a sandbox within a time range */
987
+ export const getSandboxLogs = /*@__PURE__*/ API.make(() => ({
988
+ input: GetSandboxLogsRequest,
989
+ output: PaginatedLogs,
990
+ errors: [UnknownDaytonaError],
991
+ protocol: DaytonaProtocol,
992
+ retry: Retry.Retry,
993
+ }));
994
+ /** Get sandbox metrics Retrieve OTEL metrics for a sandbox within a time range */
995
+ export const getSandboxMetrics = /*@__PURE__*/ API.make(() => ({
996
+ input: GetSandboxMetricsRequest,
997
+ output: MetricsResponse,
998
+ errors: [UnknownDaytonaError],
999
+ protocol: DaytonaProtocol,
1000
+ retry: Retry.Retry,
1001
+ }));
1002
+ /** Get sandbox fork parent */
1003
+ export const getSandboxParent = /*@__PURE__*/ API.make(() => ({
1004
+ input: GetSandboxParentRequest,
1005
+ output: Sandbox2,
1006
+ errors: [UnknownDaytonaError],
1007
+ protocol: DaytonaProtocol,
1008
+ retry: Retry.Retry,
1009
+ }));
1010
+ /** Get the signing key for a sandbox */
1011
+ export const getSandboxSigningKey = /*@__PURE__*/ API.make(() => ({
1012
+ input: GetSandboxSigningKeyRequest,
1013
+ output: GetSandboxSigningKeyResponse,
1014
+ errors: [UnknownDaytonaError],
1015
+ protocol: DaytonaProtocol,
1016
+ retry: Retry.Retry,
1017
+ }));
1018
+ /** Get sandbox traces Retrieve OTEL traces for a sandbox within a time range */
1019
+ export const getSandboxTraces = /*@__PURE__*/ API.make(() => ({
1020
+ input: GetSandboxTracesRequest,
1021
+ output: PaginatedTraces,
1022
+ errors: [UnknownDaytonaError],
1023
+ protocol: DaytonaProtocol,
1024
+ retry: Retry.Retry,
1025
+ }));
1026
+ /** Get trace spans Retrieve all spans for a specific trace */
1027
+ export const getSandboxTraceSpans = /*@__PURE__*/ API.make(() => ({
1028
+ input: GetSandboxTraceSpansRequest,
1029
+ output: GetSandboxTraceSpansResponse,
1030
+ errors: [UnknownDaytonaError],
1031
+ protocol: DaytonaProtocol,
1032
+ retry: Retry.Retry,
1033
+ }));
1034
+ /** Get signed preview URL for a sandbox port */
1035
+ export const getSignedPortPreviewUrl = /*@__PURE__*/ API.make(() => ({
1036
+ input: GetSignedPortPreviewUrlRequest,
1037
+ output: SignedPortPreviewUrl,
1038
+ errors: [UnknownDaytonaError],
1039
+ protocol: DaytonaProtocol,
1040
+ retry: Retry.Retry,
1041
+ }));
1042
+ /** Get toolbox proxy URL for a sandbox */
1043
+ export const getToolboxProxyUrl = /*@__PURE__*/ API.make(() => ({
1044
+ input: GetToolboxProxyUrlRequest,
1045
+ output: ToolboxProxyUrl,
1046
+ errors: [UnknownDaytonaError],
1047
+ protocol: DaytonaProtocol,
1048
+ retry: Retry.Retry,
1049
+ }));
1050
+ /** List sandboxes Advanced filtering and ordering. Eventually consistent. */
1051
+ export const listSandboxes = /*@__PURE__*/ API.make(() => ({
1052
+ input: ListSandboxesRequest,
1053
+ output: ListSandboxesResponse,
1054
+ errors: [UnknownDaytonaError],
1055
+ protocol: DaytonaProtocol,
1056
+ retry: Retry.Retry,
1057
+ }));
1058
+ /** Pause sandbox */
1059
+ export const pauseSandbox = /*@__PURE__*/ API.make(() => ({
1060
+ input: PauseSandboxRequest,
1061
+ output: Sandbox2,
1062
+ errors: [UnknownDaytonaError],
1063
+ protocol: DaytonaProtocol,
1064
+ retry: Retry.Retry,
1065
+ }));
1066
+ /** Recover sandbox from error state */
1067
+ export const recoverSandbox = /*@__PURE__*/ API.make(() => ({
1068
+ input: RecoverSandboxRequest,
1069
+ output: Sandbox2,
1070
+ errors: [UnknownDaytonaError],
1071
+ protocol: DaytonaProtocol,
1072
+ retry: Retry.Retry,
1073
+ }));
1074
+ /** Replace sandbox labels */
1075
+ export const replaceLabels = /*@__PURE__*/ API.make(() => ({
1076
+ input: ReplaceLabelsRequest,
1077
+ output: SandboxLabels,
1078
+ errors: [UnknownDaytonaError],
1079
+ protocol: DaytonaProtocol,
1080
+ retry: Retry.Retry,
1081
+ }));
1082
+ /** Resize sandbox resources */
1083
+ export const resizeSandbox = /*@__PURE__*/ API.make(() => ({
1084
+ input: ResizeSandboxRequest,
1085
+ output: Sandbox2,
1086
+ errors: [UnknownDaytonaError],
1087
+ protocol: DaytonaProtocol,
1088
+ retry: Retry.Retry,
1089
+ }));
1090
+ /** Resolve sandbox secrets */
1091
+ export const resolveSandboxSecrets = /*@__PURE__*/ API.make(() => ({
1092
+ input: ResolveSandboxSecretsRequest,
1093
+ output: ResolveSandboxSecretsResponse,
1094
+ errors: [UnknownDaytonaError],
1095
+ protocol: DaytonaProtocol,
1096
+ retry: Retry.Retry,
1097
+ }));
1098
+ /** Revoke SSH access for sandbox */
1099
+ export const revokeSshAccess = /*@__PURE__*/ API.make(() => ({
1100
+ input: RevokeSshAccessRequest,
1101
+ output: Sandbox2,
1102
+ errors: [UnknownDaytonaError],
1103
+ protocol: DaytonaProtocol,
1104
+ retry: Retry.Retry,
1105
+ }));
1106
+ /** Rotate the signing key, invalidating all previously signed URLs */
1107
+ export const rotateSigningKey = /*@__PURE__*/ API.make(() => ({
1108
+ input: RotateSigningKeyRequest,
1109
+ output: RotateSigningKeyResponse,
1110
+ errors: [UnknownDaytonaError],
1111
+ protocol: DaytonaProtocol,
1112
+ retry: Retry.Retry,
1113
+ }));
1114
+ /** Set sandbox auto-archive interval */
1115
+ export const setAutoArchiveInterval = /*@__PURE__*/ API.make(() => ({
1116
+ input: SetAutoArchiveIntervalRequest,
1117
+ output: Sandbox2,
1118
+ errors: [UnknownDaytonaError],
1119
+ protocol: DaytonaProtocol,
1120
+ retry: Retry.Retry,
1121
+ }));
1122
+ /** Set sandbox auto-delete interval */
1123
+ export const setAutoDeleteInterval = /*@__PURE__*/ API.make(() => ({
1124
+ input: SetAutoDeleteIntervalRequest,
1125
+ output: Sandbox2,
1126
+ errors: [UnknownDaytonaError],
1127
+ protocol: DaytonaProtocol,
1128
+ retry: Retry.Retry,
1129
+ }));
1130
+ /** Set sandbox auto-pause interval */
1131
+ export const setAutoPauseInterval = /*@__PURE__*/ API.make(() => ({
1132
+ input: SetAutoPauseIntervalRequest,
1133
+ output: Sandbox2,
1134
+ errors: [UnknownDaytonaError],
1135
+ protocol: DaytonaProtocol,
1136
+ retry: Retry.Retry,
1137
+ }));
1138
+ /** Set sandbox auto-stop interval */
1139
+ export const setAutostopInterval = /*@__PURE__*/ API.make(() => ({
1140
+ input: SetAutostopIntervalRequest,
1141
+ output: Sandbox2,
1142
+ errors: [UnknownDaytonaError],
1143
+ protocol: DaytonaProtocol,
1144
+ retry: Retry.Retry,
1145
+ }));
1146
+ /** Set sandbox TTL */
1147
+ export const setTtl = /*@__PURE__*/ API.make(() => ({
1148
+ input: SetTtlRequest,
1149
+ output: Sandbox2,
1150
+ errors: [UnknownDaytonaError],
1151
+ protocol: DaytonaProtocol,
1152
+ retry: Retry.Retry,
1153
+ }));
1154
+ /** Start or resume sandbox Starts a stopped or archived sandbox, or resumes a paused sandbox. The transition taken depends on the current sandbox state. */
1155
+ export const startSandbox = /*@__PURE__*/ API.make(() => ({
1156
+ input: StartSandboxRequest,
1157
+ output: Sandbox2,
1158
+ errors: [UnknownDaytonaError],
1159
+ protocol: DaytonaProtocol,
1160
+ retry: Retry.Retry,
1161
+ }));
1162
+ /** Stop sandbox */
1163
+ export const stopSandbox = /*@__PURE__*/ API.make(() => ({
1164
+ input: StopSandboxRequest,
1165
+ output: Sandbox2,
1166
+ errors: [UnknownDaytonaError],
1167
+ protocol: DaytonaProtocol,
1168
+ retry: Retry.Retry,
1169
+ }));
1170
+ /** Update sandbox last activity */
1171
+ export const updateLastActivity = /*@__PURE__*/ API.make(() => ({
1172
+ input: UpdateLastActivityRequest,
1173
+ output: UpdateLastActivityResponse,
1174
+ errors: [UnknownDaytonaError],
1175
+ protocol: DaytonaProtocol,
1176
+ retry: Retry.Retry,
1177
+ }));
1178
+ /** 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). */
1179
+ export const updateNetworkSettings = /*@__PURE__*/ API.make(() => ({
1180
+ input: UpdateNetworkSettingsRequest,
1181
+ output: Sandbox2,
1182
+ errors: [UnknownDaytonaError],
1183
+ protocol: DaytonaProtocol,
1184
+ retry: Retry.Retry,
1185
+ }));
1186
+ /** Update public status */
1187
+ export const updatePublicStatus = /*@__PURE__*/ API.make(() => ({
1188
+ input: UpdatePublicStatusRequest,
1189
+ output: Sandbox2,
1190
+ errors: [UnknownDaytonaError],
1191
+ protocol: DaytonaProtocol,
1192
+ retry: Retry.Retry,
1193
+ }));
1194
+ /** 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. */
1195
+ export const updateSandboxSecrets = /*@__PURE__*/ API.make(() => ({
1196
+ input: UpdateSandboxSecretsRequest,
1197
+ output: Sandbox2,
1198
+ errors: [UnknownDaytonaError],
1199
+ protocol: DaytonaProtocol,
1200
+ retry: Retry.Retry,
1201
+ }));
1202
+ /** Update sandbox state */
1203
+ export const updateSandboxState = /*@__PURE__*/ API.make(() => ({
1204
+ input: UpdateSandboxStateRequest,
1205
+ output: UpdateSandboxStateResponse,
1206
+ errors: [UnknownDaytonaError],
1207
+ protocol: DaytonaProtocol,
1208
+ retry: Retry.Retry,
1209
+ }));
1210
+ /** Validate SSH access for sandbox */
1211
+ export const validateSshAccess = /*@__PURE__*/ API.make(() => ({
1212
+ input: ValidateSshAccessRequest,
1213
+ output: SshAccessValidationDto,
1214
+ errors: [UnknownDaytonaError],
1215
+ protocol: DaytonaProtocol,
1216
+ retry: Retry.Retry,
1217
+ }));
1218
+ //# sourceMappingURL=sandbox.js.map