@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,367 @@
|
|
|
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 CompletionContext {
|
|
16
|
+
triggerCharacter?: string;
|
|
17
|
+
triggerKind: number;
|
|
18
|
+
}
|
|
19
|
+
export const CompletionContext = /*@__PURE__*/ S.suspend(() =>
|
|
20
|
+
S.Struct({
|
|
21
|
+
triggerCharacter: S.optional(S.String),
|
|
22
|
+
triggerKind: S.Number,
|
|
23
|
+
}),
|
|
24
|
+
).annotate({
|
|
25
|
+
identifier: "CompletionContext",
|
|
26
|
+
}) as any as S.Schema<CompletionContext>;
|
|
27
|
+
|
|
28
|
+
export interface LspPosition {
|
|
29
|
+
character: number;
|
|
30
|
+
line: number;
|
|
31
|
+
}
|
|
32
|
+
export const LspPosition = /*@__PURE__*/ S.suspend(() =>
|
|
33
|
+
S.Struct({
|
|
34
|
+
character: S.Number,
|
|
35
|
+
line: S.Number,
|
|
36
|
+
}),
|
|
37
|
+
).annotate({ identifier: "LspPosition" }) as any as S.Schema<LspPosition>;
|
|
38
|
+
|
|
39
|
+
export interface CompletionsRequest {
|
|
40
|
+
context?: CompletionContext;
|
|
41
|
+
languageId: string;
|
|
42
|
+
pathToProject: string;
|
|
43
|
+
position: LspPosition;
|
|
44
|
+
uri: string;
|
|
45
|
+
}
|
|
46
|
+
export const CompletionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
47
|
+
S.Struct({
|
|
48
|
+
context: S.optional(CompletionContext),
|
|
49
|
+
languageId: S.String,
|
|
50
|
+
pathToProject: S.String,
|
|
51
|
+
position: LspPosition,
|
|
52
|
+
uri: S.String,
|
|
53
|
+
}).pipe(T.Http({ method: "POST", uri: "/lsp/completions", code: 200 })),
|
|
54
|
+
).annotate({
|
|
55
|
+
identifier: "CompletionsRequest",
|
|
56
|
+
}) as any as S.Schema<CompletionsRequest>;
|
|
57
|
+
|
|
58
|
+
export interface CompletionItem {
|
|
59
|
+
detail?: string;
|
|
60
|
+
documentation?: unknown;
|
|
61
|
+
filterText?: string;
|
|
62
|
+
insertText?: string;
|
|
63
|
+
kind?: number;
|
|
64
|
+
label: string;
|
|
65
|
+
sortText?: string;
|
|
66
|
+
}
|
|
67
|
+
export const CompletionItem = /*@__PURE__*/ S.suspend(() =>
|
|
68
|
+
S.Struct({
|
|
69
|
+
detail: S.optional(S.String),
|
|
70
|
+
documentation: S.optional(S.Unknown),
|
|
71
|
+
filterText: S.optional(S.String),
|
|
72
|
+
insertText: S.optional(S.String),
|
|
73
|
+
kind: S.optional(S.Number),
|
|
74
|
+
label: S.String,
|
|
75
|
+
sortText: S.optional(S.String),
|
|
76
|
+
}),
|
|
77
|
+
).annotate({ identifier: "CompletionItem" }) as any as S.Schema<CompletionItem>;
|
|
78
|
+
|
|
79
|
+
export type CompletionListItemsList = Array<CompletionItem>;
|
|
80
|
+
export const CompletionListItemsList = /*@__PURE__*/ S.Array(
|
|
81
|
+
CompletionItem,
|
|
82
|
+
) as any as S.Schema<CompletionListItemsList>;
|
|
83
|
+
|
|
84
|
+
export interface CompletionList {
|
|
85
|
+
isIncomplete: boolean;
|
|
86
|
+
items: CompletionListItemsList;
|
|
87
|
+
}
|
|
88
|
+
export const CompletionList = /*@__PURE__*/ S.suspend(() =>
|
|
89
|
+
S.Struct({
|
|
90
|
+
isIncomplete: S.Boolean,
|
|
91
|
+
items: CompletionListItemsList,
|
|
92
|
+
}),
|
|
93
|
+
).annotate({ identifier: "CompletionList" }) as any as S.Schema<CompletionList>;
|
|
94
|
+
|
|
95
|
+
export interface DidCloseRequest {
|
|
96
|
+
languageId: string;
|
|
97
|
+
pathToProject: string;
|
|
98
|
+
uri: string;
|
|
99
|
+
}
|
|
100
|
+
export const DidCloseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
101
|
+
S.Struct({
|
|
102
|
+
languageId: S.String,
|
|
103
|
+
pathToProject: S.String,
|
|
104
|
+
uri: S.String,
|
|
105
|
+
}).pipe(T.Http({ method: "POST", uri: "/lsp/did-close", code: 200 })),
|
|
106
|
+
).annotate({
|
|
107
|
+
identifier: "DidCloseRequest",
|
|
108
|
+
}) as any as S.Schema<DidCloseRequest>;
|
|
109
|
+
|
|
110
|
+
export interface DidCloseResponse {}
|
|
111
|
+
export const DidCloseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
112
|
+
S.Struct({}),
|
|
113
|
+
).annotate({
|
|
114
|
+
identifier: "DidCloseResponse",
|
|
115
|
+
}) as any as S.Schema<DidCloseResponse>;
|
|
116
|
+
|
|
117
|
+
export interface DidOpenRequest {
|
|
118
|
+
languageId: string;
|
|
119
|
+
pathToProject: string;
|
|
120
|
+
uri: string;
|
|
121
|
+
}
|
|
122
|
+
export const DidOpenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
123
|
+
S.Struct({
|
|
124
|
+
languageId: S.String,
|
|
125
|
+
pathToProject: S.String,
|
|
126
|
+
uri: S.String,
|
|
127
|
+
}).pipe(T.Http({ method: "POST", uri: "/lsp/did-open", code: 200 })),
|
|
128
|
+
).annotate({ identifier: "DidOpenRequest" }) as any as S.Schema<DidOpenRequest>;
|
|
129
|
+
|
|
130
|
+
export interface DidOpenResponse {}
|
|
131
|
+
export const DidOpenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
132
|
+
S.Struct({}),
|
|
133
|
+
).annotate({
|
|
134
|
+
identifier: "DidOpenResponse",
|
|
135
|
+
}) as any as S.Schema<DidOpenResponse>;
|
|
136
|
+
|
|
137
|
+
export interface DocumentSymbolsRequest {
|
|
138
|
+
/** Language ID (e.g., python, typescript) */
|
|
139
|
+
languageId: string;
|
|
140
|
+
/** Path to project */
|
|
141
|
+
pathToProject: string;
|
|
142
|
+
/** Document URI */
|
|
143
|
+
uri: string;
|
|
144
|
+
}
|
|
145
|
+
export const DocumentSymbolsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
146
|
+
S.Struct({
|
|
147
|
+
languageId: S.String.pipe(T.Query()),
|
|
148
|
+
pathToProject: S.String.pipe(T.Query()),
|
|
149
|
+
uri: S.String.pipe(T.Query()),
|
|
150
|
+
}).pipe(T.Http({ method: "GET", uri: "/lsp/document-symbols", code: 200 })),
|
|
151
|
+
).annotate({
|
|
152
|
+
identifier: "DocumentSymbolsRequest",
|
|
153
|
+
}) as any as S.Schema<DocumentSymbolsRequest>;
|
|
154
|
+
|
|
155
|
+
export interface LspRange {
|
|
156
|
+
end: LspPosition;
|
|
157
|
+
start: LspPosition;
|
|
158
|
+
}
|
|
159
|
+
export const LspRange = /*@__PURE__*/ S.suspend(() =>
|
|
160
|
+
S.Struct({
|
|
161
|
+
end: LspPosition,
|
|
162
|
+
start: LspPosition,
|
|
163
|
+
}),
|
|
164
|
+
).annotate({ identifier: "LspRange" }) as any as S.Schema<LspRange>;
|
|
165
|
+
|
|
166
|
+
export interface LspLocation {
|
|
167
|
+
range: LspRange;
|
|
168
|
+
uri: string;
|
|
169
|
+
}
|
|
170
|
+
export const LspLocation = /*@__PURE__*/ S.suspend(() =>
|
|
171
|
+
S.Struct({
|
|
172
|
+
range: LspRange,
|
|
173
|
+
uri: S.String,
|
|
174
|
+
}),
|
|
175
|
+
).annotate({ identifier: "LspLocation" }) as any as S.Schema<LspLocation>;
|
|
176
|
+
|
|
177
|
+
export interface LspSymbol {
|
|
178
|
+
kind: number;
|
|
179
|
+
location: LspLocation;
|
|
180
|
+
name: string;
|
|
181
|
+
}
|
|
182
|
+
export const LspSymbol = /*@__PURE__*/ S.suspend(() =>
|
|
183
|
+
S.Struct({
|
|
184
|
+
kind: S.Number,
|
|
185
|
+
location: LspLocation,
|
|
186
|
+
name: S.String,
|
|
187
|
+
}),
|
|
188
|
+
).annotate({ identifier: "LspSymbol" }) as any as S.Schema<LspSymbol>;
|
|
189
|
+
|
|
190
|
+
export type DocumentSymbolsResponseBodyList = Array<LspSymbol>;
|
|
191
|
+
export const DocumentSymbolsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
192
|
+
LspSymbol,
|
|
193
|
+
) as any as S.Schema<DocumentSymbolsResponseBodyList>;
|
|
194
|
+
|
|
195
|
+
export type DocumentSymbolsResponse = DocumentSymbolsResponseBodyList;
|
|
196
|
+
export const DocumentSymbolsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
197
|
+
DocumentSymbolsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
198
|
+
).annotate({
|
|
199
|
+
identifier: "DocumentSymbolsResponse",
|
|
200
|
+
}) as any as S.Schema<DocumentSymbolsResponse>;
|
|
201
|
+
|
|
202
|
+
export interface StartRequest {
|
|
203
|
+
languageId: string;
|
|
204
|
+
pathToProject: string;
|
|
205
|
+
}
|
|
206
|
+
export const StartRequest = /*@__PURE__*/ S.suspend(() =>
|
|
207
|
+
S.Struct({
|
|
208
|
+
languageId: S.String,
|
|
209
|
+
pathToProject: S.String,
|
|
210
|
+
}).pipe(T.Http({ method: "POST", uri: "/lsp/start", code: 200 })),
|
|
211
|
+
).annotate({ identifier: "StartRequest" }) as any as S.Schema<StartRequest>;
|
|
212
|
+
|
|
213
|
+
export interface StartResponse {}
|
|
214
|
+
export const StartResponse = /*@__PURE__*/ S.suspend(() =>
|
|
215
|
+
S.Struct({}),
|
|
216
|
+
).annotate({ identifier: "StartResponse" }) as any as S.Schema<StartResponse>;
|
|
217
|
+
|
|
218
|
+
export interface StopRequest {
|
|
219
|
+
languageId: string;
|
|
220
|
+
pathToProject: string;
|
|
221
|
+
}
|
|
222
|
+
export const StopRequest = /*@__PURE__*/ S.suspend(() =>
|
|
223
|
+
S.Struct({
|
|
224
|
+
languageId: S.String,
|
|
225
|
+
pathToProject: S.String,
|
|
226
|
+
}).pipe(T.Http({ method: "POST", uri: "/lsp/stop", code: 200 })),
|
|
227
|
+
).annotate({ identifier: "StopRequest" }) as any as S.Schema<StopRequest>;
|
|
228
|
+
|
|
229
|
+
export interface StopResponse {}
|
|
230
|
+
export const StopResponse = /*@__PURE__*/ S.suspend(() =>
|
|
231
|
+
S.Struct({}),
|
|
232
|
+
).annotate({ identifier: "StopResponse" }) as any as S.Schema<StopResponse>;
|
|
233
|
+
|
|
234
|
+
export interface WorkspaceSymbolsRequest {
|
|
235
|
+
/** Search query */
|
|
236
|
+
query: string;
|
|
237
|
+
/** Language ID (e.g., python, typescript) */
|
|
238
|
+
languageId: string;
|
|
239
|
+
/** Path to project */
|
|
240
|
+
pathToProject: string;
|
|
241
|
+
}
|
|
242
|
+
export const WorkspaceSymbolsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
243
|
+
S.Struct({
|
|
244
|
+
query: S.String.pipe(T.Query()),
|
|
245
|
+
languageId: S.String.pipe(T.Query()),
|
|
246
|
+
pathToProject: S.String.pipe(T.Query()),
|
|
247
|
+
}).pipe(T.Http({ method: "GET", uri: "/lsp/workspacesymbols", code: 200 })),
|
|
248
|
+
).annotate({
|
|
249
|
+
identifier: "WorkspaceSymbolsRequest",
|
|
250
|
+
}) as any as S.Schema<WorkspaceSymbolsRequest>;
|
|
251
|
+
|
|
252
|
+
export type WorkspaceSymbolsResponseBodyList = Array<LspSymbol>;
|
|
253
|
+
export const WorkspaceSymbolsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
254
|
+
LspSymbol,
|
|
255
|
+
) as any as S.Schema<WorkspaceSymbolsResponseBodyList>;
|
|
256
|
+
|
|
257
|
+
export type WorkspaceSymbolsResponse = WorkspaceSymbolsResponseBodyList;
|
|
258
|
+
export const WorkspaceSymbolsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
259
|
+
WorkspaceSymbolsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
260
|
+
).annotate({
|
|
261
|
+
identifier: "WorkspaceSymbolsResponse",
|
|
262
|
+
}) as any as S.Schema<WorkspaceSymbolsResponse>;
|
|
263
|
+
|
|
264
|
+
export type CompletionsError = DaytonaOpError;
|
|
265
|
+
/** Get code completions Get code completion suggestions from the LSP server */
|
|
266
|
+
export const completions: API.OperationMethod<
|
|
267
|
+
CompletionsRequest,
|
|
268
|
+
CompletionList,
|
|
269
|
+
CompletionsError,
|
|
270
|
+
DaytonaOpContext
|
|
271
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
272
|
+
input: CompletionsRequest,
|
|
273
|
+
output: CompletionList,
|
|
274
|
+
errors: [UnknownDaytonaError],
|
|
275
|
+
protocol: DaytonaProtocol,
|
|
276
|
+
retry: Retry.Retry,
|
|
277
|
+
}));
|
|
278
|
+
|
|
279
|
+
export type DidCloseError = DaytonaOpError;
|
|
280
|
+
/** Notify document closed Notify the LSP server that a document has been closed */
|
|
281
|
+
export const didClose: API.OperationMethod<
|
|
282
|
+
DidCloseRequest,
|
|
283
|
+
DidCloseResponse,
|
|
284
|
+
DidCloseError,
|
|
285
|
+
DaytonaOpContext
|
|
286
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
287
|
+
input: DidCloseRequest,
|
|
288
|
+
output: DidCloseResponse,
|
|
289
|
+
errors: [UnknownDaytonaError],
|
|
290
|
+
protocol: DaytonaProtocol,
|
|
291
|
+
retry: Retry.Retry,
|
|
292
|
+
}));
|
|
293
|
+
|
|
294
|
+
export type DidOpenError = DaytonaOpError;
|
|
295
|
+
/** Notify document opened Notify the LSP server that a document has been opened */
|
|
296
|
+
export const didOpen: API.OperationMethod<
|
|
297
|
+
DidOpenRequest,
|
|
298
|
+
DidOpenResponse,
|
|
299
|
+
DidOpenError,
|
|
300
|
+
DaytonaOpContext
|
|
301
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
302
|
+
input: DidOpenRequest,
|
|
303
|
+
output: DidOpenResponse,
|
|
304
|
+
errors: [UnknownDaytonaError],
|
|
305
|
+
protocol: DaytonaProtocol,
|
|
306
|
+
retry: Retry.Retry,
|
|
307
|
+
}));
|
|
308
|
+
|
|
309
|
+
export type DocumentSymbolsError = DaytonaOpError;
|
|
310
|
+
/** Get document symbols Get symbols (functions, classes, etc.) from a document */
|
|
311
|
+
export const documentSymbols: API.OperationMethod<
|
|
312
|
+
DocumentSymbolsRequest,
|
|
313
|
+
DocumentSymbolsResponse,
|
|
314
|
+
DocumentSymbolsError,
|
|
315
|
+
DaytonaOpContext
|
|
316
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
317
|
+
input: DocumentSymbolsRequest,
|
|
318
|
+
output: DocumentSymbolsResponse,
|
|
319
|
+
errors: [UnknownDaytonaError],
|
|
320
|
+
protocol: DaytonaProtocol,
|
|
321
|
+
retry: Retry.Retry,
|
|
322
|
+
}));
|
|
323
|
+
|
|
324
|
+
export type StartError = DaytonaOpError;
|
|
325
|
+
/** Start LSP server Start a Language Server Protocol server for the specified language */
|
|
326
|
+
export const start: API.OperationMethod<
|
|
327
|
+
StartRequest,
|
|
328
|
+
StartResponse,
|
|
329
|
+
StartError,
|
|
330
|
+
DaytonaOpContext
|
|
331
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
332
|
+
input: StartRequest,
|
|
333
|
+
output: StartResponse,
|
|
334
|
+
errors: [UnknownDaytonaError],
|
|
335
|
+
protocol: DaytonaProtocol,
|
|
336
|
+
retry: Retry.Retry,
|
|
337
|
+
}));
|
|
338
|
+
|
|
339
|
+
export type StopError = DaytonaOpError;
|
|
340
|
+
/** Stop LSP server Stop a Language Server Protocol server */
|
|
341
|
+
export const stop: API.OperationMethod<
|
|
342
|
+
StopRequest,
|
|
343
|
+
StopResponse,
|
|
344
|
+
StopError,
|
|
345
|
+
DaytonaOpContext
|
|
346
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
347
|
+
input: StopRequest,
|
|
348
|
+
output: StopResponse,
|
|
349
|
+
errors: [UnknownDaytonaError],
|
|
350
|
+
protocol: DaytonaProtocol,
|
|
351
|
+
retry: Retry.Retry,
|
|
352
|
+
}));
|
|
353
|
+
|
|
354
|
+
export type WorkspaceSymbolsError = DaytonaOpError;
|
|
355
|
+
/** Get workspace symbols Search for symbols across the entire workspace */
|
|
356
|
+
export const workspaceSymbols: API.OperationMethod<
|
|
357
|
+
WorkspaceSymbolsRequest,
|
|
358
|
+
WorkspaceSymbolsResponse,
|
|
359
|
+
WorkspaceSymbolsError,
|
|
360
|
+
DaytonaOpContext
|
|
361
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
362
|
+
input: WorkspaceSymbolsRequest,
|
|
363
|
+
output: WorkspaceSymbolsResponse,
|
|
364
|
+
errors: [UnknownDaytonaError],
|
|
365
|
+
protocol: DaytonaProtocol,
|
|
366
|
+
retry: Retry.Retry,
|
|
367
|
+
}));
|
|
@@ -0,0 +1,75 @@
|
|
|
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 Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as T from "../traits.ts";
|
|
6
|
+
import {
|
|
7
|
+
DaytonaProtocol,
|
|
8
|
+
type DaytonaOpError,
|
|
9
|
+
type DaytonaOpContext,
|
|
10
|
+
} from "../protocol.ts";
|
|
11
|
+
import { UnknownDaytonaError } from "../errors.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { DaytonaOpError, DaytonaOpContext };
|
|
15
|
+
|
|
16
|
+
export interface GetPushAccessRequest {
|
|
17
|
+
/** Use with JWT to specify the organization ID */
|
|
18
|
+
xDaytonaOrganizationID?: string;
|
|
19
|
+
}
|
|
20
|
+
export const GetPushAccessRequest = /*@__PURE__*/ S.suspend(() =>
|
|
21
|
+
S.Struct({
|
|
22
|
+
xDaytonaOrganizationID: S.optional(
|
|
23
|
+
S.String.pipe(T.Header("X-Daytona-Organization-ID")),
|
|
24
|
+
),
|
|
25
|
+
}).pipe(
|
|
26
|
+
T.Http({ method: "GET", uri: "/object-storage/push-access", code: 200 }),
|
|
27
|
+
),
|
|
28
|
+
).annotate({
|
|
29
|
+
identifier: "GetPushAccessRequest",
|
|
30
|
+
}) as any as S.Schema<GetPushAccessRequest>;
|
|
31
|
+
|
|
32
|
+
export interface StorageAccessDto {
|
|
33
|
+
/** Access key for storage authentication */
|
|
34
|
+
accessKey: string;
|
|
35
|
+
/** Secret key for storage authentication */
|
|
36
|
+
secret: string | Redacted.Redacted<string>;
|
|
37
|
+
/** Session token for storage authentication */
|
|
38
|
+
sessionToken: string | Redacted.Redacted<string>;
|
|
39
|
+
/** Storage URL */
|
|
40
|
+
storageUrl: string;
|
|
41
|
+
/** Organization ID */
|
|
42
|
+
organizationId: string;
|
|
43
|
+
/** S3 bucket name */
|
|
44
|
+
bucket: string;
|
|
45
|
+
/** Region for the storage backend (e.g. "us-east-2") */
|
|
46
|
+
region: string;
|
|
47
|
+
}
|
|
48
|
+
export const StorageAccessDto = /*@__PURE__*/ S.suspend(() =>
|
|
49
|
+
S.Struct({
|
|
50
|
+
accessKey: S.String,
|
|
51
|
+
secret: S.String.pipe(T.SensitiveValue({})),
|
|
52
|
+
sessionToken: S.String.pipe(T.SensitiveValue({})),
|
|
53
|
+
storageUrl: S.String,
|
|
54
|
+
organizationId: S.String,
|
|
55
|
+
bucket: S.String,
|
|
56
|
+
region: S.String,
|
|
57
|
+
}),
|
|
58
|
+
).annotate({
|
|
59
|
+
identifier: "StorageAccessDto",
|
|
60
|
+
}) as any as S.Schema<StorageAccessDto>;
|
|
61
|
+
|
|
62
|
+
export type GetPushAccessError = DaytonaOpError;
|
|
63
|
+
/** Get temporary storage access for pushing objects */
|
|
64
|
+
export const getPushAccess: API.OperationMethod<
|
|
65
|
+
GetPushAccessRequest,
|
|
66
|
+
StorageAccessDto,
|
|
67
|
+
GetPushAccessError,
|
|
68
|
+
DaytonaOpContext
|
|
69
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
70
|
+
input: GetPushAccessRequest,
|
|
71
|
+
output: StorageAccessDto,
|
|
72
|
+
errors: [UnknownDaytonaError],
|
|
73
|
+
protocol: DaytonaProtocol,
|
|
74
|
+
retry: Retry.Retry,
|
|
75
|
+
}));
|