@distilled.cloud/daytona 0.0.0-placeholder → 1.0.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +34 -0
- package/lib/credentials.d.ts +46 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +67 -0
- package/lib/credentials.js.map +1 -0
- package/lib/endpoints.d.ts +15 -0
- package/lib/endpoints.d.ts.map +1 -0
- package/lib/endpoints.js +28 -0
- package/lib/endpoints.js.map +1 -0
- package/lib/errors.d.ts +53 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +30 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +10 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +10 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +75 -0
- package/lib/protocol.js.map +1 -0
- package/lib/response-validation.test.d.ts +4 -0
- package/lib/response-validation.test.d.ts.map +1 -0
- package/lib/response-validation.test.js +31 -0
- package/lib/response-validation.test.js.map +1 -0
- package/lib/retry.d.ts +50 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +43 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/api_keys.d.ts +120 -0
- package/lib/services/api_keys.d.ts.map +1 -0
- package/lib/services/api_keys.js +126 -0
- package/lib/services/api_keys.js.map +1 -0
- package/lib/services/audit.d.ts +159 -0
- package/lib/services/audit.d.ts.map +1 -0
- package/lib/services/audit.js +126 -0
- package/lib/services/audit.js.map +1 -0
- package/lib/services/computer_use.d.ts +484 -0
- package/lib/services/computer_use.d.ts.map +1 -0
- package/lib/services/computer_use.js +672 -0
- package/lib/services/computer_use.js.map +1 -0
- package/lib/services/config.d.ts +138 -0
- package/lib/services/config.d.ts.map +1 -0
- package/lib/services/config.js +88 -0
- package/lib/services/config.js.map +1 -0
- package/lib/services/docker_registry.d.ts +126 -0
- package/lib/services/docker_registry.d.ts.map +1 -0
- package/lib/services/docker_registry.js +135 -0
- package/lib/services/docker_registry.js.map +1 -0
- package/lib/services/file_system.d.ts +203 -0
- package/lib/services/file_system.d.ts.map +1 -0
- package/lib/services/file_system.js +255 -0
- package/lib/services/file_system.js.map +1 -0
- package/lib/services/git.d.ts +338 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +417 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/health.d.ts +41 -0
- package/lib/services/health.d.ts.map +1 -0
- package/lib/services/health.js +49 -0
- package/lib/services/health.js.map +1 -0
- package/lib/services/index.d.ts +31 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +32 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/info.d.ts +37 -0
- package/lib/services/info.d.ts.map +1 -0
- package/lib/services/info.js +55 -0
- package/lib/services/info.js.map +1 -0
- package/lib/services/interpreter.d.ts +56 -0
- package/lib/services/interpreter.d.ts.map +1 -0
- package/lib/services/interpreter.js +83 -0
- package/lib/services/interpreter.js.map +1 -0
- package/lib/services/jobs.d.ts +104 -0
- package/lib/services/jobs.d.ts.map +1 -0
- package/lib/services/jobs.js +94 -0
- package/lib/services/jobs.js.map +1 -0
- package/lib/services/lsp.d.ts +137 -0
- package/lib/services/lsp.d.ts.map +1 -0
- package/lib/services/lsp.js +160 -0
- package/lib/services/lsp.js.map +1 -0
- package/lib/services/object_storage.d.ts +31 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +33 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/organizations.d.ts +963 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +1143 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/port.d.ts +29 -0
- package/lib/services/port.d.ts.map +1 -0
- package/lib/services/port.js +41 -0
- package/lib/services/port.js.map +1 -0
- package/lib/services/preview.d.ts +73 -0
- package/lib/services/preview.d.ts.map +1 -0
- package/lib/services/preview.js +125 -0
- package/lib/services/preview.js.map +1 -0
- package/lib/services/process.d.ts +329 -0
- package/lib/services/process.d.ts.map +1 -0
- package/lib/services/process.js +421 -0
- package/lib/services/process.js.map +1 -0
- package/lib/services/regions.d.ts +41 -0
- package/lib/services/regions.d.ts.map +1 -0
- package/lib/services/regions.js +36 -0
- package/lib/services/regions.js.map +1 -0
- package/lib/services/runners.d.ts +358 -0
- package/lib/services/runners.d.ts.map +1 -0
- package/lib/services/runners.js +316 -0
- package/lib/services/runners.js.map +1 -0
- package/lib/services/sandbox.d.ts +1276 -0
- package/lib/services/sandbox.d.ts.map +1 -0
- package/lib/services/sandbox.js +1218 -0
- package/lib/services/sandbox.js.map +1 -0
- package/lib/services/secret.d.ts +120 -0
- package/lib/services/secret.d.ts.map +1 -0
- package/lib/services/secret.js +113 -0
- package/lib/services/secret.js.map +1 -0
- package/lib/services/server.d.ts +44 -0
- package/lib/services/server.d.ts.map +1 -0
- package/lib/services/server.js +46 -0
- package/lib/services/server.js.map +1 -0
- package/lib/services/snapshots.d.ts +208 -0
- package/lib/services/snapshots.d.ts.map +1 -0
- package/lib/services/snapshots.js +189 -0
- package/lib/services/snapshots.js.map +1 -0
- package/lib/services/system.d.ts +24 -0
- package/lib/services/system.d.ts.map +1 -0
- package/lib/services/system.js +31 -0
- package/lib/services/system.js.map +1 -0
- package/lib/services/telemetry.d.ts +141 -0
- package/lib/services/telemetry.d.ts.map +1 -0
- package/lib/services/telemetry.js +165 -0
- package/lib/services/telemetry.js.map +1 -0
- package/lib/services/usage.d.ts +111 -0
- package/lib/services/usage.d.ts.map +1 -0
- package/lib/services/usage.js +146 -0
- package/lib/services/usage.js.map +1 -0
- package/lib/services/users.d.ts +125 -0
- package/lib/services/users.d.ts.map +1 -0
- package/lib/services/users.js +172 -0
- package/lib/services/users.js.map +1 -0
- package/lib/services/volumes.d.ts +83 -0
- package/lib/services/volumes.d.ts.map +1 -0
- package/lib/services/volumes.js +96 -0
- package/lib/services/volumes.js.map +1 -0
- package/lib/services/warm_pools.d.ts +79 -0
- package/lib/services/warm_pools.d.ts.map +1 -0
- package/lib/services/warm_pools.js +90 -0
- package/lib/services/warm_pools.js.map +1 -0
- package/lib/services/webhooks.d.ts +67 -0
- package/lib/services/webhooks.d.ts.map +1 -0
- package/lib/services/webhooks.js +103 -0
- package/lib/services/webhooks.js.map +1 -0
- package/lib/traits.d.ts +10 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +78 -7
- package/src/credentials.ts +135 -0
- package/src/endpoints.ts +28 -0
- package/src/errors.ts +85 -0
- package/src/index.ts +33 -0
- package/src/pagination.ts +9 -0
- package/src/protocol.ts +108 -0
- package/src/response-validation.test.ts +45 -0
- package/src/retry.ts +74 -0
- package/src/services/api_keys.ts +378 -0
- package/src/services/audit.ts +416 -0
- package/src/services/computer_use.ts +1496 -0
- package/src/services/config.ts +256 -0
- package/src/services/docker_registry.ts +325 -0
- package/src/services/file_system.ts +575 -0
- package/src/services/git.ts +928 -0
- package/src/services/health.ts +116 -0
- package/src/services/index.ts +31 -0
- package/src/services/info.ts +116 -0
- package/src/services/interpreter.ts +182 -0
- package/src/services/jobs.ts +249 -0
- package/src/services/lsp.ts +367 -0
- package/src/services/object_storage.ts +75 -0
- package/src/services/organizations.ts +2712 -0
- package/src/services/port.ts +87 -0
- package/src/services/preview.ts +256 -0
- package/src/services/process.ts +948 -0
- package/src/services/regions.ts +90 -0
- package/src/services/runners.ts +811 -0
- package/src/services/sandbox.ts +3158 -0
- package/src/services/secret.ts +289 -0
- package/src/services/server.ts +111 -0
- package/src/services/snapshots.ts +508 -0
- package/src/services/system.ts +64 -0
- package/src/services/telemetry.ts +385 -0
- package/src/services/usage.ts +316 -0
- package/src/services/users.ts +380 -0
- package/src/services/volumes.ts +233 -0
- package/src/services/warm_pools.ts +209 -0
- package/src/services/webhooks.ts +214 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,575 @@
|
|
|
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 CreateFolderRequest {
|
|
16
|
+
/** Folder path to create */
|
|
17
|
+
path: string;
|
|
18
|
+
/** Octal permission mode (default: 0755) */
|
|
19
|
+
mode: string;
|
|
20
|
+
}
|
|
21
|
+
export const CreateFolderRequest = /*@__PURE__*/ S.suspend(() =>
|
|
22
|
+
S.Struct({
|
|
23
|
+
path: S.String.pipe(T.Query()),
|
|
24
|
+
mode: S.String.pipe(T.Query()),
|
|
25
|
+
}).pipe(T.Http({ method: "POST", uri: "/files/folder", code: 200 })),
|
|
26
|
+
).annotate({
|
|
27
|
+
identifier: "CreateFolderRequest",
|
|
28
|
+
}) as any as S.Schema<CreateFolderRequest>;
|
|
29
|
+
|
|
30
|
+
export interface CreateFolderResponse {}
|
|
31
|
+
export const CreateFolderResponse = /*@__PURE__*/ S.suspend(() =>
|
|
32
|
+
S.Struct({}),
|
|
33
|
+
).annotate({
|
|
34
|
+
identifier: "CreateFolderResponse",
|
|
35
|
+
}) as any as S.Schema<CreateFolderResponse>;
|
|
36
|
+
|
|
37
|
+
export interface DeleteFileRequest {
|
|
38
|
+
/** File or directory path to delete */
|
|
39
|
+
path: string;
|
|
40
|
+
/** Enable recursive deletion for directories */
|
|
41
|
+
recursive?: boolean;
|
|
42
|
+
}
|
|
43
|
+
export const DeleteFileRequest = /*@__PURE__*/ S.suspend(() =>
|
|
44
|
+
S.Struct({
|
|
45
|
+
path: S.String.pipe(T.Query()),
|
|
46
|
+
recursive: S.optional(S.Boolean.pipe(T.Query())),
|
|
47
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/files", code: 200 })),
|
|
48
|
+
).annotate({
|
|
49
|
+
identifier: "DeleteFileRequest",
|
|
50
|
+
}) as any as S.Schema<DeleteFileRequest>;
|
|
51
|
+
|
|
52
|
+
export interface DeleteFileResponse {}
|
|
53
|
+
export const DeleteFileResponse = /*@__PURE__*/ S.suspend(() =>
|
|
54
|
+
S.Struct({}),
|
|
55
|
+
).annotate({
|
|
56
|
+
identifier: "DeleteFileResponse",
|
|
57
|
+
}) as any as S.Schema<DeleteFileResponse>;
|
|
58
|
+
|
|
59
|
+
export interface DownloadFileRequest {
|
|
60
|
+
/** File path to download */
|
|
61
|
+
path: string;
|
|
62
|
+
}
|
|
63
|
+
export const DownloadFileRequest = /*@__PURE__*/ S.suspend(() =>
|
|
64
|
+
S.Struct({
|
|
65
|
+
path: S.String.pipe(T.Query()),
|
|
66
|
+
}).pipe(T.Http({ method: "GET", uri: "/files/download", code: 200 })),
|
|
67
|
+
).annotate({
|
|
68
|
+
identifier: "DownloadFileRequest",
|
|
69
|
+
}) as any as S.Schema<DownloadFileRequest>;
|
|
70
|
+
|
|
71
|
+
export type DownloadFileResponse = unknown;
|
|
72
|
+
export const DownloadFileResponse = /*@__PURE__*/ S.suspend(() =>
|
|
73
|
+
S.Unknown.pipe(T.RawResponseRoot()),
|
|
74
|
+
).annotate({
|
|
75
|
+
identifier: "DownloadFileResponse",
|
|
76
|
+
}) as any as S.Schema<DownloadFileResponse>;
|
|
77
|
+
|
|
78
|
+
export type DownloadFilesRequestPathsList = Array<string>;
|
|
79
|
+
export const DownloadFilesRequestPathsList = /*@__PURE__*/ S.Array(
|
|
80
|
+
S.String,
|
|
81
|
+
) as any as S.Schema<DownloadFilesRequestPathsList>;
|
|
82
|
+
|
|
83
|
+
export interface DownloadFilesRequest {
|
|
84
|
+
paths: DownloadFilesRequestPathsList;
|
|
85
|
+
}
|
|
86
|
+
export const DownloadFilesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
87
|
+
S.Struct({
|
|
88
|
+
paths: DownloadFilesRequestPathsList,
|
|
89
|
+
}).pipe(T.Http({ method: "POST", uri: "/files/bulk-download", code: 200 })),
|
|
90
|
+
).annotate({
|
|
91
|
+
identifier: "DownloadFilesRequest",
|
|
92
|
+
}) as any as S.Schema<DownloadFilesRequest>;
|
|
93
|
+
|
|
94
|
+
export type GinH = { [key: string]: unknown | undefined };
|
|
95
|
+
export const GinH = /*@__PURE__*/ S.Record(
|
|
96
|
+
S.String,
|
|
97
|
+
S.Unknown,
|
|
98
|
+
) as any as S.Schema<GinH>;
|
|
99
|
+
|
|
100
|
+
export type DownloadFilesResponse = GinH;
|
|
101
|
+
export const DownloadFilesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
102
|
+
GinH.pipe(T.RawResponseRoot()),
|
|
103
|
+
).annotate({
|
|
104
|
+
identifier: "DownloadFilesResponse",
|
|
105
|
+
}) as any as S.Schema<DownloadFilesResponse>;
|
|
106
|
+
|
|
107
|
+
export interface FindInFilesRequest {
|
|
108
|
+
/** Directory path to search in */
|
|
109
|
+
path: string;
|
|
110
|
+
/** Text pattern to search for */
|
|
111
|
+
pattern: string;
|
|
112
|
+
}
|
|
113
|
+
export const FindInFilesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
114
|
+
S.Struct({
|
|
115
|
+
path: S.String.pipe(T.Query()),
|
|
116
|
+
pattern: S.String.pipe(T.Query()),
|
|
117
|
+
}).pipe(T.Http({ method: "GET", uri: "/files/find", code: 200 })),
|
|
118
|
+
).annotate({
|
|
119
|
+
identifier: "FindInFilesRequest",
|
|
120
|
+
}) as any as S.Schema<FindInFilesRequest>;
|
|
121
|
+
|
|
122
|
+
export interface Match {
|
|
123
|
+
content: string;
|
|
124
|
+
file: string;
|
|
125
|
+
line: number;
|
|
126
|
+
}
|
|
127
|
+
export const Match = /*@__PURE__*/ S.suspend(() =>
|
|
128
|
+
S.Struct({
|
|
129
|
+
content: S.String,
|
|
130
|
+
file: S.String,
|
|
131
|
+
line: S.Number,
|
|
132
|
+
}),
|
|
133
|
+
).annotate({ identifier: "Match" }) as any as S.Schema<Match>;
|
|
134
|
+
|
|
135
|
+
export type FindInFilesResponseBodyList = Array<Match>;
|
|
136
|
+
export const FindInFilesResponseBodyList = /*@__PURE__*/ S.Array(
|
|
137
|
+
Match,
|
|
138
|
+
) as any as S.Schema<FindInFilesResponseBodyList>;
|
|
139
|
+
|
|
140
|
+
export type FindInFilesResponse = FindInFilesResponseBodyList;
|
|
141
|
+
export const FindInFilesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
142
|
+
FindInFilesResponseBodyList.pipe(T.RawResponseRoot()),
|
|
143
|
+
).annotate({
|
|
144
|
+
identifier: "FindInFilesResponse",
|
|
145
|
+
}) as any as S.Schema<FindInFilesResponse>;
|
|
146
|
+
|
|
147
|
+
export interface GetFileInfoRequest {
|
|
148
|
+
/** File or directory path */
|
|
149
|
+
path: string;
|
|
150
|
+
}
|
|
151
|
+
export const GetFileInfoRequest = /*@__PURE__*/ S.suspend(() =>
|
|
152
|
+
S.Struct({
|
|
153
|
+
path: S.String.pipe(T.Query()),
|
|
154
|
+
}).pipe(T.Http({ method: "GET", uri: "/files/info", code: 200 })),
|
|
155
|
+
).annotate({
|
|
156
|
+
identifier: "GetFileInfoRequest",
|
|
157
|
+
}) as any as S.Schema<GetFileInfoRequest>;
|
|
158
|
+
|
|
159
|
+
export interface FileInfo {
|
|
160
|
+
group: string;
|
|
161
|
+
isDir: boolean;
|
|
162
|
+
/** Deprecated: ModTime uses Go's time.String() layout which is not a standard format. Use ModifiedAt instead, which is serialized as ISO 8601 / RFC 3339. */
|
|
163
|
+
modTime: string;
|
|
164
|
+
mode: string;
|
|
165
|
+
modifiedAt: string;
|
|
166
|
+
name: string;
|
|
167
|
+
owner: string;
|
|
168
|
+
/** Full path of the entry */
|
|
169
|
+
path?: string;
|
|
170
|
+
permissions: string;
|
|
171
|
+
size: number;
|
|
172
|
+
}
|
|
173
|
+
export const FileInfo = /*@__PURE__*/ S.suspend(() =>
|
|
174
|
+
S.Struct({
|
|
175
|
+
group: S.String,
|
|
176
|
+
isDir: S.Boolean,
|
|
177
|
+
modTime: S.String,
|
|
178
|
+
mode: S.String,
|
|
179
|
+
modifiedAt: S.String,
|
|
180
|
+
name: S.String,
|
|
181
|
+
owner: S.String,
|
|
182
|
+
path: S.optional(S.String),
|
|
183
|
+
permissions: S.String,
|
|
184
|
+
size: S.Number,
|
|
185
|
+
}),
|
|
186
|
+
).annotate({ identifier: "FileInfo" }) as any as S.Schema<FileInfo>;
|
|
187
|
+
|
|
188
|
+
export interface ListFilesRequest {
|
|
189
|
+
/** Directory path to list (defaults to working directory) */
|
|
190
|
+
path?: string;
|
|
191
|
+
/** How many levels deep to list (default: 1, must be >= 1) */
|
|
192
|
+
depth?: number;
|
|
193
|
+
}
|
|
194
|
+
export const ListFilesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
195
|
+
S.Struct({
|
|
196
|
+
path: S.optional(S.String.pipe(T.Query())),
|
|
197
|
+
depth: S.optional(S.Number.pipe(T.Query())),
|
|
198
|
+
}).pipe(T.Http({ method: "GET", uri: "/files", code: 200 })),
|
|
199
|
+
).annotate({
|
|
200
|
+
identifier: "ListFilesRequest",
|
|
201
|
+
}) as any as S.Schema<ListFilesRequest>;
|
|
202
|
+
|
|
203
|
+
export type ListFilesResponseBodyList = Array<FileInfo>;
|
|
204
|
+
export const ListFilesResponseBodyList = /*@__PURE__*/ S.Array(
|
|
205
|
+
FileInfo,
|
|
206
|
+
) as any as S.Schema<ListFilesResponseBodyList>;
|
|
207
|
+
|
|
208
|
+
export type ListFilesResponse = ListFilesResponseBodyList;
|
|
209
|
+
export const ListFilesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
210
|
+
ListFilesResponseBodyList.pipe(T.RawResponseRoot()),
|
|
211
|
+
).annotate({
|
|
212
|
+
identifier: "ListFilesResponse",
|
|
213
|
+
}) as any as S.Schema<ListFilesResponse>;
|
|
214
|
+
|
|
215
|
+
export interface MoveFileRequest {
|
|
216
|
+
/** Source file or directory path */
|
|
217
|
+
source: string;
|
|
218
|
+
/** Destination file or directory path */
|
|
219
|
+
destination: string;
|
|
220
|
+
}
|
|
221
|
+
export const MoveFileRequest = /*@__PURE__*/ S.suspend(() =>
|
|
222
|
+
S.Struct({
|
|
223
|
+
source: S.String.pipe(T.Query()),
|
|
224
|
+
destination: S.String.pipe(T.Query()),
|
|
225
|
+
}).pipe(T.Http({ method: "POST", uri: "/files/move", code: 200 })),
|
|
226
|
+
).annotate({
|
|
227
|
+
identifier: "MoveFileRequest",
|
|
228
|
+
}) as any as S.Schema<MoveFileRequest>;
|
|
229
|
+
|
|
230
|
+
export interface MoveFileResponse {}
|
|
231
|
+
export const MoveFileResponse = /*@__PURE__*/ S.suspend(() =>
|
|
232
|
+
S.Struct({}),
|
|
233
|
+
).annotate({
|
|
234
|
+
identifier: "MoveFileResponse",
|
|
235
|
+
}) as any as S.Schema<MoveFileResponse>;
|
|
236
|
+
|
|
237
|
+
export type ReplaceInFilesRequestFilesList = Array<string>;
|
|
238
|
+
export const ReplaceInFilesRequestFilesList = /*@__PURE__*/ S.Array(
|
|
239
|
+
S.String,
|
|
240
|
+
) as any as S.Schema<ReplaceInFilesRequestFilesList>;
|
|
241
|
+
|
|
242
|
+
export interface ReplaceInFilesRequest {
|
|
243
|
+
files: ReplaceInFilesRequestFilesList;
|
|
244
|
+
newValue: string;
|
|
245
|
+
pattern: string;
|
|
246
|
+
}
|
|
247
|
+
export const ReplaceInFilesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
248
|
+
S.Struct({
|
|
249
|
+
files: ReplaceInFilesRequestFilesList,
|
|
250
|
+
newValue: S.String,
|
|
251
|
+
pattern: S.String,
|
|
252
|
+
}).pipe(T.Http({ method: "POST", uri: "/files/replace", code: 200 })),
|
|
253
|
+
).annotate({
|
|
254
|
+
identifier: "ReplaceInFilesRequest",
|
|
255
|
+
}) as any as S.Schema<ReplaceInFilesRequest>;
|
|
256
|
+
|
|
257
|
+
export interface ReplaceResult {
|
|
258
|
+
error?: string;
|
|
259
|
+
file?: string;
|
|
260
|
+
success?: boolean;
|
|
261
|
+
}
|
|
262
|
+
export const ReplaceResult = /*@__PURE__*/ S.suspend(() =>
|
|
263
|
+
S.Struct({
|
|
264
|
+
error: S.optional(S.String),
|
|
265
|
+
file: S.optional(S.String),
|
|
266
|
+
success: S.optional(S.Boolean),
|
|
267
|
+
}),
|
|
268
|
+
).annotate({ identifier: "ReplaceResult" }) as any as S.Schema<ReplaceResult>;
|
|
269
|
+
|
|
270
|
+
export type ReplaceInFilesResponseBodyList = Array<ReplaceResult>;
|
|
271
|
+
export const ReplaceInFilesResponseBodyList = /*@__PURE__*/ S.Array(
|
|
272
|
+
ReplaceResult,
|
|
273
|
+
) as any as S.Schema<ReplaceInFilesResponseBodyList>;
|
|
274
|
+
|
|
275
|
+
export type ReplaceInFilesResponse = ReplaceInFilesResponseBodyList;
|
|
276
|
+
export const ReplaceInFilesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
277
|
+
ReplaceInFilesResponseBodyList.pipe(T.RawResponseRoot()),
|
|
278
|
+
).annotate({
|
|
279
|
+
identifier: "ReplaceInFilesResponse",
|
|
280
|
+
}) as any as S.Schema<ReplaceInFilesResponse>;
|
|
281
|
+
|
|
282
|
+
export interface SearchFilesRequest {
|
|
283
|
+
/** Directory path to search in */
|
|
284
|
+
path: string;
|
|
285
|
+
/** File pattern to match (e.g., *.txt, *.go) */
|
|
286
|
+
pattern: string;
|
|
287
|
+
}
|
|
288
|
+
export const SearchFilesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
289
|
+
S.Struct({
|
|
290
|
+
path: S.String.pipe(T.Query()),
|
|
291
|
+
pattern: S.String.pipe(T.Query()),
|
|
292
|
+
}).pipe(T.Http({ method: "GET", uri: "/files/search", code: 200 })),
|
|
293
|
+
).annotate({
|
|
294
|
+
identifier: "SearchFilesRequest",
|
|
295
|
+
}) as any as S.Schema<SearchFilesRequest>;
|
|
296
|
+
|
|
297
|
+
export type SearchFilesResponseFilesList = Array<string>;
|
|
298
|
+
export const SearchFilesResponseFilesList = /*@__PURE__*/ S.Array(
|
|
299
|
+
S.String,
|
|
300
|
+
) as any as S.Schema<SearchFilesResponseFilesList>;
|
|
301
|
+
|
|
302
|
+
export interface SearchFilesResponse {
|
|
303
|
+
files: SearchFilesResponseFilesList;
|
|
304
|
+
}
|
|
305
|
+
export const SearchFilesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
306
|
+
S.Struct({
|
|
307
|
+
files: SearchFilesResponseFilesList,
|
|
308
|
+
}),
|
|
309
|
+
).annotate({
|
|
310
|
+
identifier: "SearchFilesResponse",
|
|
311
|
+
}) as any as S.Schema<SearchFilesResponse>;
|
|
312
|
+
|
|
313
|
+
export interface SetFilePermissionsRequest {
|
|
314
|
+
/** File or directory path */
|
|
315
|
+
path: string;
|
|
316
|
+
/** Owner (username or UID) */
|
|
317
|
+
owner?: string;
|
|
318
|
+
/** Group (group name or GID) */
|
|
319
|
+
group?: string;
|
|
320
|
+
/** File mode in octal format (e.g., 0755) */
|
|
321
|
+
mode?: string;
|
|
322
|
+
}
|
|
323
|
+
export const SetFilePermissionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
324
|
+
S.Struct({
|
|
325
|
+
path: S.String.pipe(T.Query()),
|
|
326
|
+
owner: S.optional(S.String.pipe(T.Query())),
|
|
327
|
+
group: S.optional(S.String.pipe(T.Query())),
|
|
328
|
+
mode: S.optional(S.String.pipe(T.Query())),
|
|
329
|
+
}).pipe(T.Http({ method: "POST", uri: "/files/permissions", code: 200 })),
|
|
330
|
+
).annotate({
|
|
331
|
+
identifier: "SetFilePermissionsRequest",
|
|
332
|
+
}) as any as S.Schema<SetFilePermissionsRequest>;
|
|
333
|
+
|
|
334
|
+
export interface SetFilePermissionsResponse {}
|
|
335
|
+
export const SetFilePermissionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
336
|
+
S.Struct({}),
|
|
337
|
+
).annotate({
|
|
338
|
+
identifier: "SetFilePermissionsResponse",
|
|
339
|
+
}) as any as S.Schema<SetFilePermissionsResponse>;
|
|
340
|
+
|
|
341
|
+
export interface UploadFileRequest {
|
|
342
|
+
/** Destination path for the uploaded file */
|
|
343
|
+
path: string;
|
|
344
|
+
}
|
|
345
|
+
export const UploadFileRequest = /*@__PURE__*/ S.suspend(() =>
|
|
346
|
+
S.Struct({
|
|
347
|
+
path: S.String.pipe(T.Query()),
|
|
348
|
+
}).pipe(T.Http({ method: "POST", uri: "/files/upload-v2", code: 200 })),
|
|
349
|
+
).annotate({
|
|
350
|
+
identifier: "UploadFileRequest",
|
|
351
|
+
}) as any as S.Schema<UploadFileRequest>;
|
|
352
|
+
|
|
353
|
+
export interface UploadedFile {
|
|
354
|
+
name: string;
|
|
355
|
+
path: string;
|
|
356
|
+
type: string;
|
|
357
|
+
}
|
|
358
|
+
export const UploadedFile = /*@__PURE__*/ S.suspend(() =>
|
|
359
|
+
S.Struct({
|
|
360
|
+
name: S.String,
|
|
361
|
+
path: S.String,
|
|
362
|
+
type: S.String,
|
|
363
|
+
}),
|
|
364
|
+
).annotate({ identifier: "UploadedFile" }) as any as S.Schema<UploadedFile>;
|
|
365
|
+
|
|
366
|
+
export interface UploadFilesRequest {}
|
|
367
|
+
export const UploadFilesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
368
|
+
S.Struct({}).pipe(
|
|
369
|
+
T.Http({ method: "POST", uri: "/files/bulk-upload", code: 200 }),
|
|
370
|
+
),
|
|
371
|
+
).annotate({
|
|
372
|
+
identifier: "UploadFilesRequest",
|
|
373
|
+
}) as any as S.Schema<UploadFilesRequest>;
|
|
374
|
+
|
|
375
|
+
export interface UploadFilesResponse {}
|
|
376
|
+
export const UploadFilesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
377
|
+
S.Struct({}),
|
|
378
|
+
).annotate({
|
|
379
|
+
identifier: "UploadFilesResponse",
|
|
380
|
+
}) as any as S.Schema<UploadFilesResponse>;
|
|
381
|
+
|
|
382
|
+
export type CreateFolderError = DaytonaOpError;
|
|
383
|
+
/** Create a folder Create a folder with the specified path and optional permissions */
|
|
384
|
+
export const createFolder: API.OperationMethod<
|
|
385
|
+
CreateFolderRequest,
|
|
386
|
+
CreateFolderResponse,
|
|
387
|
+
CreateFolderError,
|
|
388
|
+
DaytonaOpContext
|
|
389
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
390
|
+
input: CreateFolderRequest,
|
|
391
|
+
output: CreateFolderResponse,
|
|
392
|
+
errors: [UnknownDaytonaError],
|
|
393
|
+
protocol: DaytonaProtocol,
|
|
394
|
+
retry: Retry.Retry,
|
|
395
|
+
}));
|
|
396
|
+
|
|
397
|
+
export type DeleteFileError = DaytonaOpError;
|
|
398
|
+
/** Delete a file or directory Delete a file or directory at the specified path */
|
|
399
|
+
export const deleteFile: API.OperationMethod<
|
|
400
|
+
DeleteFileRequest,
|
|
401
|
+
DeleteFileResponse,
|
|
402
|
+
DeleteFileError,
|
|
403
|
+
DaytonaOpContext
|
|
404
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
405
|
+
input: DeleteFileRequest,
|
|
406
|
+
output: DeleteFileResponse,
|
|
407
|
+
errors: [UnknownDaytonaError],
|
|
408
|
+
protocol: DaytonaProtocol,
|
|
409
|
+
retry: Retry.Retry,
|
|
410
|
+
}));
|
|
411
|
+
|
|
412
|
+
export type DownloadFileError = DaytonaOpError;
|
|
413
|
+
/** Download a file Download a file by providing its path */
|
|
414
|
+
export const downloadFile: API.OperationMethod<
|
|
415
|
+
DownloadFileRequest,
|
|
416
|
+
DownloadFileResponse,
|
|
417
|
+
DownloadFileError,
|
|
418
|
+
DaytonaOpContext
|
|
419
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
420
|
+
input: DownloadFileRequest,
|
|
421
|
+
output: DownloadFileResponse,
|
|
422
|
+
errors: [UnknownDaytonaError],
|
|
423
|
+
protocol: DaytonaProtocol,
|
|
424
|
+
retry: Retry.Retry,
|
|
425
|
+
}));
|
|
426
|
+
|
|
427
|
+
export type DownloadFilesError = DaytonaOpError;
|
|
428
|
+
/** Download multiple files Download multiple files by providing their paths. Successful files are returned as multipart parts named `file`. Per-file failures are returned as multipart parts named `error` with JSON payloads shaped like ErrorResponse. */
|
|
429
|
+
export const downloadFiles: API.OperationMethod<
|
|
430
|
+
DownloadFilesRequest,
|
|
431
|
+
DownloadFilesResponse,
|
|
432
|
+
DownloadFilesError,
|
|
433
|
+
DaytonaOpContext
|
|
434
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
435
|
+
input: DownloadFilesRequest,
|
|
436
|
+
output: DownloadFilesResponse,
|
|
437
|
+
errors: [UnknownDaytonaError],
|
|
438
|
+
protocol: DaytonaProtocol,
|
|
439
|
+
retry: Retry.Retry,
|
|
440
|
+
}));
|
|
441
|
+
|
|
442
|
+
export type FindInFilesError = DaytonaOpError;
|
|
443
|
+
/** Find text in files Search for text pattern within files in a directory */
|
|
444
|
+
export const findInFiles: API.OperationMethod<
|
|
445
|
+
FindInFilesRequest,
|
|
446
|
+
FindInFilesResponse,
|
|
447
|
+
FindInFilesError,
|
|
448
|
+
DaytonaOpContext
|
|
449
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
450
|
+
input: FindInFilesRequest,
|
|
451
|
+
output: FindInFilesResponse,
|
|
452
|
+
errors: [UnknownDaytonaError],
|
|
453
|
+
protocol: DaytonaProtocol,
|
|
454
|
+
retry: Retry.Retry,
|
|
455
|
+
}));
|
|
456
|
+
|
|
457
|
+
export type GetFileInfoError = DaytonaOpError;
|
|
458
|
+
/** Get file information Get detailed information about a file or directory */
|
|
459
|
+
export const getFileInfo: API.OperationMethod<
|
|
460
|
+
GetFileInfoRequest,
|
|
461
|
+
FileInfo,
|
|
462
|
+
GetFileInfoError,
|
|
463
|
+
DaytonaOpContext
|
|
464
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
465
|
+
input: GetFileInfoRequest,
|
|
466
|
+
output: FileInfo,
|
|
467
|
+
errors: [UnknownDaytonaError],
|
|
468
|
+
protocol: DaytonaProtocol,
|
|
469
|
+
retry: Retry.Retry,
|
|
470
|
+
}));
|
|
471
|
+
|
|
472
|
+
export type ListFilesError = DaytonaOpError;
|
|
473
|
+
/** List files and directories List files and directories in the specified path. Use the optional depth parameter to list recursively: depth=1 (default) lists the directory's entries, depth=2 also includes their children, and so on. */
|
|
474
|
+
export const listFiles: API.OperationMethod<
|
|
475
|
+
ListFilesRequest,
|
|
476
|
+
ListFilesResponse,
|
|
477
|
+
ListFilesError,
|
|
478
|
+
DaytonaOpContext
|
|
479
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
480
|
+
input: ListFilesRequest,
|
|
481
|
+
output: ListFilesResponse,
|
|
482
|
+
errors: [UnknownDaytonaError],
|
|
483
|
+
protocol: DaytonaProtocol,
|
|
484
|
+
retry: Retry.Retry,
|
|
485
|
+
}));
|
|
486
|
+
|
|
487
|
+
export type MoveFileError = DaytonaOpError;
|
|
488
|
+
/** Move or rename file/directory Move or rename a file or directory from source to destination */
|
|
489
|
+
export const moveFile: API.OperationMethod<
|
|
490
|
+
MoveFileRequest,
|
|
491
|
+
MoveFileResponse,
|
|
492
|
+
MoveFileError,
|
|
493
|
+
DaytonaOpContext
|
|
494
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
495
|
+
input: MoveFileRequest,
|
|
496
|
+
output: MoveFileResponse,
|
|
497
|
+
errors: [UnknownDaytonaError],
|
|
498
|
+
protocol: DaytonaProtocol,
|
|
499
|
+
retry: Retry.Retry,
|
|
500
|
+
}));
|
|
501
|
+
|
|
502
|
+
export type ReplaceInFilesError = DaytonaOpError;
|
|
503
|
+
/** Replace text in files Replace text pattern with new value in multiple files */
|
|
504
|
+
export const replaceInFiles: API.OperationMethod<
|
|
505
|
+
ReplaceInFilesRequest,
|
|
506
|
+
ReplaceInFilesResponse,
|
|
507
|
+
ReplaceInFilesError,
|
|
508
|
+
DaytonaOpContext
|
|
509
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
510
|
+
input: ReplaceInFilesRequest,
|
|
511
|
+
output: ReplaceInFilesResponse,
|
|
512
|
+
errors: [UnknownDaytonaError],
|
|
513
|
+
protocol: DaytonaProtocol,
|
|
514
|
+
retry: Retry.Retry,
|
|
515
|
+
}));
|
|
516
|
+
|
|
517
|
+
export type SearchFilesError = DaytonaOpError;
|
|
518
|
+
/** Search files by pattern Search for files matching a specific pattern in a directory */
|
|
519
|
+
export const searchFiles: API.OperationMethod<
|
|
520
|
+
SearchFilesRequest,
|
|
521
|
+
SearchFilesResponse,
|
|
522
|
+
SearchFilesError,
|
|
523
|
+
DaytonaOpContext
|
|
524
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
525
|
+
input: SearchFilesRequest,
|
|
526
|
+
output: SearchFilesResponse,
|
|
527
|
+
errors: [UnknownDaytonaError],
|
|
528
|
+
protocol: DaytonaProtocol,
|
|
529
|
+
retry: Retry.Retry,
|
|
530
|
+
}));
|
|
531
|
+
|
|
532
|
+
export type SetFilePermissionsError = DaytonaOpError;
|
|
533
|
+
/** Set file permissions Set file permissions, ownership, and group for a file or directory */
|
|
534
|
+
export const setFilePermissions: API.OperationMethod<
|
|
535
|
+
SetFilePermissionsRequest,
|
|
536
|
+
SetFilePermissionsResponse,
|
|
537
|
+
SetFilePermissionsError,
|
|
538
|
+
DaytonaOpContext
|
|
539
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
540
|
+
input: SetFilePermissionsRequest,
|
|
541
|
+
output: SetFilePermissionsResponse,
|
|
542
|
+
errors: [UnknownDaytonaError],
|
|
543
|
+
protocol: DaytonaProtocol,
|
|
544
|
+
retry: Retry.Retry,
|
|
545
|
+
}));
|
|
546
|
+
|
|
547
|
+
export type UploadFileError = DaytonaOpError;
|
|
548
|
+
/** Upload a file Upload a file to the specified path. Accepts either multipart/form-data (field "file") or a raw request body (e.g. application/octet-stream). Parent directories are created if missing; an existing file is overwritten. */
|
|
549
|
+
export const uploadFile: API.OperationMethod<
|
|
550
|
+
UploadFileRequest,
|
|
551
|
+
UploadedFile,
|
|
552
|
+
UploadFileError,
|
|
553
|
+
DaytonaOpContext
|
|
554
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
555
|
+
input: UploadFileRequest,
|
|
556
|
+
output: UploadedFile,
|
|
557
|
+
errors: [UnknownDaytonaError],
|
|
558
|
+
protocol: DaytonaProtocol,
|
|
559
|
+
retry: Retry.Retry,
|
|
560
|
+
}));
|
|
561
|
+
|
|
562
|
+
export type UploadFilesError = DaytonaOpError;
|
|
563
|
+
/** Upload multiple files Upload multiple files with their destination paths */
|
|
564
|
+
export const uploadFiles: API.OperationMethod<
|
|
565
|
+
UploadFilesRequest,
|
|
566
|
+
UploadFilesResponse,
|
|
567
|
+
UploadFilesError,
|
|
568
|
+
DaytonaOpContext
|
|
569
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
570
|
+
input: UploadFilesRequest,
|
|
571
|
+
output: UploadFilesResponse,
|
|
572
|
+
errors: [UnknownDaytonaError],
|
|
573
|
+
protocol: DaytonaProtocol,
|
|
574
|
+
retry: Retry.Retry,
|
|
575
|
+
}));
|