@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,928 @@
|
|
|
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
|
+
/** files to add (use . for all files) */
|
|
17
|
+
export type AddFilesRequestFilesList = Array<string>;
|
|
18
|
+
export const AddFilesRequestFilesList = /*@__PURE__*/ S.Array(
|
|
19
|
+
S.String,
|
|
20
|
+
) as any as S.Schema<AddFilesRequestFilesList>;
|
|
21
|
+
|
|
22
|
+
export interface AddFilesRequest {
|
|
23
|
+
/** files to add (use . for all files) */
|
|
24
|
+
files: AddFilesRequestFilesList;
|
|
25
|
+
path: string;
|
|
26
|
+
}
|
|
27
|
+
export const AddFilesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
28
|
+
S.Struct({
|
|
29
|
+
files: AddFilesRequestFilesList,
|
|
30
|
+
path: S.String,
|
|
31
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/add", code: 200 })),
|
|
32
|
+
).annotate({
|
|
33
|
+
identifier: "AddFilesRequest",
|
|
34
|
+
}) as any as S.Schema<AddFilesRequest>;
|
|
35
|
+
|
|
36
|
+
export interface AddFilesResponse {}
|
|
37
|
+
export const AddFilesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
38
|
+
S.Struct({}),
|
|
39
|
+
).annotate({
|
|
40
|
+
identifier: "AddFilesResponse",
|
|
41
|
+
}) as any as S.Schema<AddFilesResponse>;
|
|
42
|
+
|
|
43
|
+
export interface AddRemoteRequest {
|
|
44
|
+
/** Fetch fetches from the remote immediately after adding it. */
|
|
45
|
+
fetch?: boolean;
|
|
46
|
+
name: string;
|
|
47
|
+
/** Overwrite replaces an existing remote with the same name. */
|
|
48
|
+
overwrite?: boolean;
|
|
49
|
+
path: string;
|
|
50
|
+
url: string;
|
|
51
|
+
}
|
|
52
|
+
export const AddRemoteRequest = /*@__PURE__*/ S.suspend(() =>
|
|
53
|
+
S.Struct({
|
|
54
|
+
fetch: S.optional(S.Boolean),
|
|
55
|
+
name: S.String,
|
|
56
|
+
overwrite: S.optional(S.Boolean),
|
|
57
|
+
path: S.String,
|
|
58
|
+
url: S.String,
|
|
59
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/remotes", code: 200 })),
|
|
60
|
+
).annotate({
|
|
61
|
+
identifier: "AddRemoteRequest",
|
|
62
|
+
}) as any as S.Schema<AddRemoteRequest>;
|
|
63
|
+
|
|
64
|
+
export interface AddRemoteResponse {}
|
|
65
|
+
export const AddRemoteResponse = /*@__PURE__*/ S.suspend(() =>
|
|
66
|
+
S.Struct({}),
|
|
67
|
+
).annotate({
|
|
68
|
+
identifier: "AddRemoteResponse",
|
|
69
|
+
}) as any as S.Schema<AddRemoteResponse>;
|
|
70
|
+
|
|
71
|
+
export interface AuthenticateRequest {
|
|
72
|
+
/** Host defaults to github.com. */
|
|
73
|
+
host?: string;
|
|
74
|
+
password: string | Redacted.Redacted<string>;
|
|
75
|
+
/** Protocol defaults to https. */
|
|
76
|
+
protocol?: string;
|
|
77
|
+
username: string;
|
|
78
|
+
}
|
|
79
|
+
export const AuthenticateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
80
|
+
S.Struct({
|
|
81
|
+
host: S.optional(S.String),
|
|
82
|
+
password: S.String.pipe(T.SensitiveValue({})),
|
|
83
|
+
protocol: S.optional(S.String),
|
|
84
|
+
username: S.String,
|
|
85
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/credentials", code: 200 })),
|
|
86
|
+
).annotate({
|
|
87
|
+
identifier: "AuthenticateRequest",
|
|
88
|
+
}) as any as S.Schema<AuthenticateRequest>;
|
|
89
|
+
|
|
90
|
+
export interface AuthenticateResponse {}
|
|
91
|
+
export const AuthenticateResponse = /*@__PURE__*/ S.suspend(() =>
|
|
92
|
+
S.Struct({}),
|
|
93
|
+
).annotate({
|
|
94
|
+
identifier: "AuthenticateResponse",
|
|
95
|
+
}) as any as S.Schema<AuthenticateResponse>;
|
|
96
|
+
|
|
97
|
+
export interface CheckoutBranchRequest {
|
|
98
|
+
branch: string;
|
|
99
|
+
path: string;
|
|
100
|
+
}
|
|
101
|
+
export const CheckoutBranchRequest = /*@__PURE__*/ S.suspend(() =>
|
|
102
|
+
S.Struct({
|
|
103
|
+
branch: S.String,
|
|
104
|
+
path: S.String,
|
|
105
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/checkout", code: 200 })),
|
|
106
|
+
).annotate({
|
|
107
|
+
identifier: "CheckoutBranchRequest",
|
|
108
|
+
}) as any as S.Schema<CheckoutBranchRequest>;
|
|
109
|
+
|
|
110
|
+
export interface CheckoutBranchResponse {}
|
|
111
|
+
export const CheckoutBranchResponse = /*@__PURE__*/ S.suspend(() =>
|
|
112
|
+
S.Struct({}),
|
|
113
|
+
).annotate({
|
|
114
|
+
identifier: "CheckoutBranchResponse",
|
|
115
|
+
}) as any as S.Schema<CheckoutBranchResponse>;
|
|
116
|
+
|
|
117
|
+
export interface CloneRepositoryRequest {
|
|
118
|
+
branch?: string;
|
|
119
|
+
commit_id?: string;
|
|
120
|
+
/** Depth creates a shallow clone truncated to the given number of commits. */
|
|
121
|
+
depth?: number;
|
|
122
|
+
/** Skip TLS certificate verification for this clone. Defaults to false (verify). Set to true ONLY for trusted internal Git servers with self-signed or private-CA certs; credentials, if supplied, will be transmitted over an unverified TLS connection and are exposed to any MITM on the route. */
|
|
123
|
+
insecure_skip_tls?: boolean;
|
|
124
|
+
password?: string | Redacted.Redacted<string>;
|
|
125
|
+
path: string;
|
|
126
|
+
url: string;
|
|
127
|
+
username?: string;
|
|
128
|
+
}
|
|
129
|
+
export const CloneRepositoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
130
|
+
S.Struct({
|
|
131
|
+
branch: S.optional(S.String),
|
|
132
|
+
commit_id: S.optional(S.String),
|
|
133
|
+
depth: S.optional(S.Number),
|
|
134
|
+
insecure_skip_tls: S.optional(S.Boolean),
|
|
135
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
136
|
+
path: S.String,
|
|
137
|
+
url: S.String,
|
|
138
|
+
username: S.optional(S.String),
|
|
139
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/clone", code: 200 })),
|
|
140
|
+
).annotate({
|
|
141
|
+
identifier: "CloneRepositoryRequest",
|
|
142
|
+
}) as any as S.Schema<CloneRepositoryRequest>;
|
|
143
|
+
|
|
144
|
+
export interface CloneRepositoryResponse {}
|
|
145
|
+
export const CloneRepositoryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
146
|
+
S.Struct({}),
|
|
147
|
+
).annotate({
|
|
148
|
+
identifier: "CloneRepositoryResponse",
|
|
149
|
+
}) as any as S.Schema<CloneRepositoryResponse>;
|
|
150
|
+
|
|
151
|
+
export interface CommitChangesRequest {
|
|
152
|
+
allow_empty?: boolean;
|
|
153
|
+
author: string;
|
|
154
|
+
email: string;
|
|
155
|
+
message: string;
|
|
156
|
+
path: string;
|
|
157
|
+
}
|
|
158
|
+
export const CommitChangesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
159
|
+
S.Struct({
|
|
160
|
+
allow_empty: S.optional(S.Boolean),
|
|
161
|
+
author: S.String,
|
|
162
|
+
email: S.String,
|
|
163
|
+
message: S.String,
|
|
164
|
+
path: S.String,
|
|
165
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/commit", code: 200 })),
|
|
166
|
+
).annotate({
|
|
167
|
+
identifier: "CommitChangesRequest",
|
|
168
|
+
}) as any as S.Schema<CommitChangesRequest>;
|
|
169
|
+
|
|
170
|
+
export interface GitCommitResponse {
|
|
171
|
+
hash: string;
|
|
172
|
+
}
|
|
173
|
+
export const GitCommitResponse = /*@__PURE__*/ S.suspend(() =>
|
|
174
|
+
S.Struct({
|
|
175
|
+
hash: S.String,
|
|
176
|
+
}),
|
|
177
|
+
).annotate({
|
|
178
|
+
identifier: "GitCommitResponse",
|
|
179
|
+
}) as any as S.Schema<GitCommitResponse>;
|
|
180
|
+
|
|
181
|
+
export interface ConfigureUserRequest {
|
|
182
|
+
email: string;
|
|
183
|
+
name: string;
|
|
184
|
+
/** Path is the repository path, required when scope is "local". */
|
|
185
|
+
path?: string;
|
|
186
|
+
/** Scope is one of global (default), local or system. */
|
|
187
|
+
scope?: string;
|
|
188
|
+
}
|
|
189
|
+
export const ConfigureUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
190
|
+
S.Struct({
|
|
191
|
+
email: S.String,
|
|
192
|
+
name: S.String,
|
|
193
|
+
path: S.optional(S.String),
|
|
194
|
+
scope: S.optional(S.String),
|
|
195
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/config/user", code: 200 })),
|
|
196
|
+
).annotate({
|
|
197
|
+
identifier: "ConfigureUserRequest",
|
|
198
|
+
}) as any as S.Schema<ConfigureUserRequest>;
|
|
199
|
+
|
|
200
|
+
export interface ConfigureUserResponse {}
|
|
201
|
+
export const ConfigureUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
202
|
+
S.Struct({}),
|
|
203
|
+
).annotate({
|
|
204
|
+
identifier: "ConfigureUserResponse",
|
|
205
|
+
}) as any as S.Schema<ConfigureUserResponse>;
|
|
206
|
+
|
|
207
|
+
export interface CreateBranchRequest {
|
|
208
|
+
name: string;
|
|
209
|
+
path: string;
|
|
210
|
+
}
|
|
211
|
+
export const CreateBranchRequest = /*@__PURE__*/ S.suspend(() =>
|
|
212
|
+
S.Struct({
|
|
213
|
+
name: S.String,
|
|
214
|
+
path: S.String,
|
|
215
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/branches", code: 200 })),
|
|
216
|
+
).annotate({
|
|
217
|
+
identifier: "CreateBranchRequest",
|
|
218
|
+
}) as any as S.Schema<CreateBranchRequest>;
|
|
219
|
+
|
|
220
|
+
export interface CreateBranchResponse {}
|
|
221
|
+
export const CreateBranchResponse = /*@__PURE__*/ S.suspend(() =>
|
|
222
|
+
S.Struct({}),
|
|
223
|
+
).annotate({
|
|
224
|
+
identifier: "CreateBranchResponse",
|
|
225
|
+
}) as any as S.Schema<CreateBranchResponse>;
|
|
226
|
+
|
|
227
|
+
export interface DeleteBranchRequest {
|
|
228
|
+
name: string;
|
|
229
|
+
path: string;
|
|
230
|
+
}
|
|
231
|
+
export const DeleteBranchRequest = /*@__PURE__*/ S.suspend(() =>
|
|
232
|
+
S.Struct({
|
|
233
|
+
name: S.String,
|
|
234
|
+
path: S.String,
|
|
235
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/git/branches", code: 200 })),
|
|
236
|
+
).annotate({
|
|
237
|
+
identifier: "DeleteBranchRequest",
|
|
238
|
+
}) as any as S.Schema<DeleteBranchRequest>;
|
|
239
|
+
|
|
240
|
+
export interface DeleteBranchResponse {}
|
|
241
|
+
export const DeleteBranchResponse = /*@__PURE__*/ S.suspend(() =>
|
|
242
|
+
S.Struct({}),
|
|
243
|
+
).annotate({
|
|
244
|
+
identifier: "DeleteBranchResponse",
|
|
245
|
+
}) as any as S.Schema<DeleteBranchResponse>;
|
|
246
|
+
|
|
247
|
+
export interface GetCommitHistoryRequest {
|
|
248
|
+
/** Repository path */
|
|
249
|
+
path: string;
|
|
250
|
+
}
|
|
251
|
+
export const GetCommitHistoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
252
|
+
S.Struct({
|
|
253
|
+
path: S.String.pipe(T.Query()),
|
|
254
|
+
}).pipe(T.Http({ method: "GET", uri: "/git/history", code: 200 })),
|
|
255
|
+
).annotate({
|
|
256
|
+
identifier: "GetCommitHistoryRequest",
|
|
257
|
+
}) as any as S.Schema<GetCommitHistoryRequest>;
|
|
258
|
+
|
|
259
|
+
export interface GitCommitInfo {
|
|
260
|
+
author: string;
|
|
261
|
+
email: string;
|
|
262
|
+
hash: string;
|
|
263
|
+
message: string;
|
|
264
|
+
timestamp: string;
|
|
265
|
+
}
|
|
266
|
+
export const GitCommitInfo = /*@__PURE__*/ S.suspend(() =>
|
|
267
|
+
S.Struct({
|
|
268
|
+
author: S.String,
|
|
269
|
+
email: S.String,
|
|
270
|
+
hash: S.String,
|
|
271
|
+
message: S.String,
|
|
272
|
+
timestamp: S.String,
|
|
273
|
+
}),
|
|
274
|
+
).annotate({ identifier: "GitCommitInfo" }) as any as S.Schema<GitCommitInfo>;
|
|
275
|
+
|
|
276
|
+
export type GetCommitHistoryResponseBodyList = Array<GitCommitInfo>;
|
|
277
|
+
export const GetCommitHistoryResponseBodyList = /*@__PURE__*/ S.Array(
|
|
278
|
+
GitCommitInfo,
|
|
279
|
+
) as any as S.Schema<GetCommitHistoryResponseBodyList>;
|
|
280
|
+
|
|
281
|
+
export type GetCommitHistoryResponse = GetCommitHistoryResponseBodyList;
|
|
282
|
+
export const GetCommitHistoryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
283
|
+
GetCommitHistoryResponseBodyList.pipe(T.RawResponseRoot()),
|
|
284
|
+
).annotate({
|
|
285
|
+
identifier: "GetCommitHistoryResponse",
|
|
286
|
+
}) as any as S.Schema<GetCommitHistoryResponse>;
|
|
287
|
+
|
|
288
|
+
export interface GetGitConfigRequest {
|
|
289
|
+
/** Config key (e.g. user.name) */
|
|
290
|
+
key: string;
|
|
291
|
+
/** Repository path (required for local scope) */
|
|
292
|
+
path?: string;
|
|
293
|
+
/** Config scope: global (default), local or system */
|
|
294
|
+
scope?: string;
|
|
295
|
+
}
|
|
296
|
+
export const GetGitConfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
297
|
+
S.Struct({
|
|
298
|
+
key: S.String.pipe(T.Query()),
|
|
299
|
+
path: S.optional(S.String.pipe(T.Query())),
|
|
300
|
+
scope: S.optional(S.String.pipe(T.Query())),
|
|
301
|
+
}).pipe(T.Http({ method: "GET", uri: "/git/config", code: 200 })),
|
|
302
|
+
).annotate({
|
|
303
|
+
identifier: "GetGitConfigRequest",
|
|
304
|
+
}) as any as S.Schema<GetGitConfigRequest>;
|
|
305
|
+
|
|
306
|
+
export interface GitConfigResponse {
|
|
307
|
+
/** Value is the config value, null when the key is not set. */
|
|
308
|
+
value?: string;
|
|
309
|
+
}
|
|
310
|
+
export const GitConfigResponse = /*@__PURE__*/ S.suspend(() =>
|
|
311
|
+
S.Struct({
|
|
312
|
+
value: S.optional(S.String),
|
|
313
|
+
}),
|
|
314
|
+
).annotate({
|
|
315
|
+
identifier: "GitConfigResponse",
|
|
316
|
+
}) as any as S.Schema<GitConfigResponse>;
|
|
317
|
+
|
|
318
|
+
export interface GetStatusRequest {
|
|
319
|
+
/** Repository path */
|
|
320
|
+
path: string;
|
|
321
|
+
}
|
|
322
|
+
export const GetStatusRequest = /*@__PURE__*/ S.suspend(() =>
|
|
323
|
+
S.Struct({
|
|
324
|
+
path: S.String.pipe(T.Query()),
|
|
325
|
+
}).pipe(T.Http({ method: "GET", uri: "/git/status", code: 200 })),
|
|
326
|
+
).annotate({
|
|
327
|
+
identifier: "GetStatusRequest",
|
|
328
|
+
}) as any as S.Schema<GetStatusRequest>;
|
|
329
|
+
|
|
330
|
+
export type Status =
|
|
331
|
+
| "Unmodified"
|
|
332
|
+
| "Untracked"
|
|
333
|
+
| "Modified"
|
|
334
|
+
| "Added"
|
|
335
|
+
| "Deleted"
|
|
336
|
+
| "Renamed"
|
|
337
|
+
| "Copied"
|
|
338
|
+
| "Updated but unmerged";
|
|
339
|
+
export const Status = S.String;
|
|
340
|
+
|
|
341
|
+
export interface FileStatus {
|
|
342
|
+
extra: string;
|
|
343
|
+
name: string;
|
|
344
|
+
staging: Status;
|
|
345
|
+
worktree: Status;
|
|
346
|
+
}
|
|
347
|
+
export const FileStatus = /*@__PURE__*/ S.suspend(() =>
|
|
348
|
+
S.Struct({
|
|
349
|
+
extra: S.String,
|
|
350
|
+
name: S.String,
|
|
351
|
+
staging: Status,
|
|
352
|
+
worktree: Status,
|
|
353
|
+
}),
|
|
354
|
+
).annotate({ identifier: "FileStatus" }) as any as S.Schema<FileStatus>;
|
|
355
|
+
|
|
356
|
+
export type GitStatusFileStatusList = Array<FileStatus>;
|
|
357
|
+
export const GitStatusFileStatusList = /*@__PURE__*/ S.Array(
|
|
358
|
+
FileStatus,
|
|
359
|
+
) as any as S.Schema<GitStatusFileStatusList>;
|
|
360
|
+
|
|
361
|
+
export interface GitStatus {
|
|
362
|
+
ahead?: number;
|
|
363
|
+
behind?: number;
|
|
364
|
+
branchPublished?: boolean;
|
|
365
|
+
currentBranch: string;
|
|
366
|
+
/** Detached is true when HEAD is not on a branch (detached HEAD state). */
|
|
367
|
+
detached?: boolean;
|
|
368
|
+
fileStatus: GitStatusFileStatusList;
|
|
369
|
+
/** Upstream is the upstream tracking branch (e.g. "origin/main"), empty when unset. */
|
|
370
|
+
upstream?: string;
|
|
371
|
+
}
|
|
372
|
+
export const GitStatus = /*@__PURE__*/ S.suspend(() =>
|
|
373
|
+
S.Struct({
|
|
374
|
+
ahead: S.optional(S.Number),
|
|
375
|
+
behind: S.optional(S.Number),
|
|
376
|
+
branchPublished: S.optional(S.Boolean),
|
|
377
|
+
currentBranch: S.String,
|
|
378
|
+
detached: S.optional(S.Boolean),
|
|
379
|
+
fileStatus: GitStatusFileStatusList,
|
|
380
|
+
upstream: S.optional(S.String),
|
|
381
|
+
}),
|
|
382
|
+
).annotate({ identifier: "GitStatus" }) as any as S.Schema<GitStatus>;
|
|
383
|
+
|
|
384
|
+
export interface InitRepositoryRequest {
|
|
385
|
+
/** Bare creates a repository without a working tree. */
|
|
386
|
+
bare?: boolean;
|
|
387
|
+
/** InitialBranch sets the name of the initial branch. */
|
|
388
|
+
initial_branch?: string;
|
|
389
|
+
path: string;
|
|
390
|
+
}
|
|
391
|
+
export const InitRepositoryRequest = /*@__PURE__*/ S.suspend(() =>
|
|
392
|
+
S.Struct({
|
|
393
|
+
bare: S.optional(S.Boolean),
|
|
394
|
+
initial_branch: S.optional(S.String),
|
|
395
|
+
path: S.String,
|
|
396
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/init", code: 200 })),
|
|
397
|
+
).annotate({
|
|
398
|
+
identifier: "InitRepositoryRequest",
|
|
399
|
+
}) as any as S.Schema<InitRepositoryRequest>;
|
|
400
|
+
|
|
401
|
+
export interface InitRepositoryResponse {}
|
|
402
|
+
export const InitRepositoryResponse = /*@__PURE__*/ S.suspend(() =>
|
|
403
|
+
S.Struct({}),
|
|
404
|
+
).annotate({
|
|
405
|
+
identifier: "InitRepositoryResponse",
|
|
406
|
+
}) as any as S.Schema<InitRepositoryResponse>;
|
|
407
|
+
|
|
408
|
+
export interface ListBranchesRequest {
|
|
409
|
+
/** Repository path */
|
|
410
|
+
path: string;
|
|
411
|
+
}
|
|
412
|
+
export const ListBranchesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
413
|
+
S.Struct({
|
|
414
|
+
path: S.String.pipe(T.Query()),
|
|
415
|
+
}).pipe(T.Http({ method: "GET", uri: "/git/branches", code: 200 })),
|
|
416
|
+
).annotate({
|
|
417
|
+
identifier: "ListBranchesRequest",
|
|
418
|
+
}) as any as S.Schema<ListBranchesRequest>;
|
|
419
|
+
|
|
420
|
+
export type ListBranchResponseBranchesList = Array<string>;
|
|
421
|
+
export const ListBranchResponseBranchesList = /*@__PURE__*/ S.Array(
|
|
422
|
+
S.String,
|
|
423
|
+
) as any as S.Schema<ListBranchResponseBranchesList>;
|
|
424
|
+
|
|
425
|
+
export interface ListBranchResponse {
|
|
426
|
+
branches: ListBranchResponseBranchesList;
|
|
427
|
+
/** Current is the name of the checked out branch (empty when HEAD is detached). */
|
|
428
|
+
current?: string;
|
|
429
|
+
}
|
|
430
|
+
export const ListBranchResponse = /*@__PURE__*/ S.suspend(() =>
|
|
431
|
+
S.Struct({
|
|
432
|
+
branches: ListBranchResponseBranchesList,
|
|
433
|
+
current: S.optional(S.String),
|
|
434
|
+
}),
|
|
435
|
+
).annotate({
|
|
436
|
+
identifier: "ListBranchResponse",
|
|
437
|
+
}) as any as S.Schema<ListBranchResponse>;
|
|
438
|
+
|
|
439
|
+
export interface ListRemotesRequest {
|
|
440
|
+
/** Repository path */
|
|
441
|
+
path: string;
|
|
442
|
+
}
|
|
443
|
+
export const ListRemotesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
444
|
+
S.Struct({
|
|
445
|
+
path: S.String.pipe(T.Query()),
|
|
446
|
+
}).pipe(T.Http({ method: "GET", uri: "/git/remotes", code: 200 })),
|
|
447
|
+
).annotate({
|
|
448
|
+
identifier: "ListRemotesRequest",
|
|
449
|
+
}) as any as S.Schema<ListRemotesRequest>;
|
|
450
|
+
|
|
451
|
+
export interface GitRemote {
|
|
452
|
+
name: string;
|
|
453
|
+
url: string;
|
|
454
|
+
}
|
|
455
|
+
export const GitRemote = /*@__PURE__*/ S.suspend(() =>
|
|
456
|
+
S.Struct({
|
|
457
|
+
name: S.String,
|
|
458
|
+
url: S.String,
|
|
459
|
+
}),
|
|
460
|
+
).annotate({ identifier: "GitRemote" }) as any as S.Schema<GitRemote>;
|
|
461
|
+
|
|
462
|
+
export type ListRemotesResponseRemotesList = Array<GitRemote>;
|
|
463
|
+
export const ListRemotesResponseRemotesList = /*@__PURE__*/ S.Array(
|
|
464
|
+
GitRemote,
|
|
465
|
+
) as any as S.Schema<ListRemotesResponseRemotesList>;
|
|
466
|
+
|
|
467
|
+
export interface ListRemotesResponse {
|
|
468
|
+
remotes: ListRemotesResponseRemotesList;
|
|
469
|
+
}
|
|
470
|
+
export const ListRemotesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
471
|
+
S.Struct({
|
|
472
|
+
remotes: ListRemotesResponseRemotesList,
|
|
473
|
+
}),
|
|
474
|
+
).annotate({
|
|
475
|
+
identifier: "ListRemotesResponse",
|
|
476
|
+
}) as any as S.Schema<ListRemotesResponse>;
|
|
477
|
+
|
|
478
|
+
export interface PullChangesRequest {
|
|
479
|
+
/** Branch to pull (defaults to the current branch's upstream). */
|
|
480
|
+
branch?: string;
|
|
481
|
+
password?: string | Redacted.Redacted<string>;
|
|
482
|
+
path: string;
|
|
483
|
+
/** Remote to pull from (defaults to "origin"). */
|
|
484
|
+
remote?: string;
|
|
485
|
+
username?: string;
|
|
486
|
+
}
|
|
487
|
+
export const PullChangesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
488
|
+
S.Struct({
|
|
489
|
+
branch: S.optional(S.String),
|
|
490
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
491
|
+
path: S.String,
|
|
492
|
+
remote: S.optional(S.String),
|
|
493
|
+
username: S.optional(S.String),
|
|
494
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/pull", code: 200 })),
|
|
495
|
+
).annotate({
|
|
496
|
+
identifier: "PullChangesRequest",
|
|
497
|
+
}) as any as S.Schema<PullChangesRequest>;
|
|
498
|
+
|
|
499
|
+
export interface PullChangesResponse {}
|
|
500
|
+
export const PullChangesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
501
|
+
S.Struct({}),
|
|
502
|
+
).annotate({
|
|
503
|
+
identifier: "PullChangesResponse",
|
|
504
|
+
}) as any as S.Schema<PullChangesResponse>;
|
|
505
|
+
|
|
506
|
+
export interface PushChangesRequest {
|
|
507
|
+
/** Branch to push (defaults to the current branch). */
|
|
508
|
+
branch?: string;
|
|
509
|
+
password?: string | Redacted.Redacted<string>;
|
|
510
|
+
path: string;
|
|
511
|
+
/** Remote to push to (defaults to "origin"). */
|
|
512
|
+
remote?: string;
|
|
513
|
+
/** SetUpstream records the pushed branch as the upstream tracking branch. */
|
|
514
|
+
set_upstream?: boolean;
|
|
515
|
+
username?: string;
|
|
516
|
+
}
|
|
517
|
+
export const PushChangesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
518
|
+
S.Struct({
|
|
519
|
+
branch: S.optional(S.String),
|
|
520
|
+
password: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
521
|
+
path: S.String,
|
|
522
|
+
remote: S.optional(S.String),
|
|
523
|
+
set_upstream: S.optional(S.Boolean),
|
|
524
|
+
username: S.optional(S.String),
|
|
525
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/push", code: 200 })),
|
|
526
|
+
).annotate({
|
|
527
|
+
identifier: "PushChangesRequest",
|
|
528
|
+
}) as any as S.Schema<PushChangesRequest>;
|
|
529
|
+
|
|
530
|
+
export interface PushChangesResponse {}
|
|
531
|
+
export const PushChangesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
532
|
+
S.Struct({}),
|
|
533
|
+
).annotate({
|
|
534
|
+
identifier: "PushChangesResponse",
|
|
535
|
+
}) as any as S.Schema<PushChangesResponse>;
|
|
536
|
+
|
|
537
|
+
/** Files constrains the reset to the given paths. */
|
|
538
|
+
export type ResetChangesRequestFilesList = Array<string>;
|
|
539
|
+
export const ResetChangesRequestFilesList = /*@__PURE__*/ S.Array(
|
|
540
|
+
S.String,
|
|
541
|
+
) as any as S.Schema<ResetChangesRequestFilesList>;
|
|
542
|
+
|
|
543
|
+
export interface ResetChangesRequest {
|
|
544
|
+
/** Files constrains the reset to the given paths. */
|
|
545
|
+
files?: ResetChangesRequestFilesList;
|
|
546
|
+
/** Mode is one of soft, mixed (default), hard, merge or keep. */
|
|
547
|
+
mode?: string;
|
|
548
|
+
path: string;
|
|
549
|
+
/** Target is the revision to reset to (defaults to HEAD). */
|
|
550
|
+
target?: string;
|
|
551
|
+
}
|
|
552
|
+
export const ResetChangesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
553
|
+
S.Struct({
|
|
554
|
+
files: S.optional(ResetChangesRequestFilesList),
|
|
555
|
+
mode: S.optional(S.String),
|
|
556
|
+
path: S.String,
|
|
557
|
+
target: S.optional(S.String),
|
|
558
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/reset", code: 200 })),
|
|
559
|
+
).annotate({
|
|
560
|
+
identifier: "ResetChangesRequest",
|
|
561
|
+
}) as any as S.Schema<ResetChangesRequest>;
|
|
562
|
+
|
|
563
|
+
export interface ResetChangesResponse {}
|
|
564
|
+
export const ResetChangesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
565
|
+
S.Struct({}),
|
|
566
|
+
).annotate({
|
|
567
|
+
identifier: "ResetChangesResponse",
|
|
568
|
+
}) as any as S.Schema<ResetChangesResponse>;
|
|
569
|
+
|
|
570
|
+
export type RestoreFilesRequestFilesList = Array<string>;
|
|
571
|
+
export const RestoreFilesRequestFilesList = /*@__PURE__*/ S.Array(
|
|
572
|
+
S.String,
|
|
573
|
+
) as any as S.Schema<RestoreFilesRequestFilesList>;
|
|
574
|
+
|
|
575
|
+
export interface RestoreFilesRequest {
|
|
576
|
+
files: RestoreFilesRequestFilesList;
|
|
577
|
+
path: string;
|
|
578
|
+
/** Source restores file contents from the given revision instead of the index. */
|
|
579
|
+
source?: string;
|
|
580
|
+
/** Staged restores the staging index for the given files. */
|
|
581
|
+
staged?: boolean;
|
|
582
|
+
/** Worktree restores the working tree for the given files. */
|
|
583
|
+
worktree?: boolean;
|
|
584
|
+
}
|
|
585
|
+
export const RestoreFilesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
586
|
+
S.Struct({
|
|
587
|
+
files: RestoreFilesRequestFilesList,
|
|
588
|
+
path: S.String,
|
|
589
|
+
source: S.optional(S.String),
|
|
590
|
+
staged: S.optional(S.Boolean),
|
|
591
|
+
worktree: S.optional(S.Boolean),
|
|
592
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/restore", code: 200 })),
|
|
593
|
+
).annotate({
|
|
594
|
+
identifier: "RestoreFilesRequest",
|
|
595
|
+
}) as any as S.Schema<RestoreFilesRequest>;
|
|
596
|
+
|
|
597
|
+
export interface RestoreFilesResponse {}
|
|
598
|
+
export const RestoreFilesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
599
|
+
S.Struct({}),
|
|
600
|
+
).annotate({
|
|
601
|
+
identifier: "RestoreFilesResponse",
|
|
602
|
+
}) as any as S.Schema<RestoreFilesResponse>;
|
|
603
|
+
|
|
604
|
+
export interface SetGitConfigRequest {
|
|
605
|
+
key: string;
|
|
606
|
+
/** Path is the repository path, required when scope is "local". */
|
|
607
|
+
path?: string;
|
|
608
|
+
/** Scope is one of global (default), local or system. */
|
|
609
|
+
scope?: string;
|
|
610
|
+
value: string;
|
|
611
|
+
}
|
|
612
|
+
export const SetGitConfigRequest = /*@__PURE__*/ S.suspend(() =>
|
|
613
|
+
S.Struct({
|
|
614
|
+
key: S.String,
|
|
615
|
+
path: S.optional(S.String),
|
|
616
|
+
scope: S.optional(S.String),
|
|
617
|
+
value: S.String,
|
|
618
|
+
}).pipe(T.Http({ method: "POST", uri: "/git/config", code: 200 })),
|
|
619
|
+
).annotate({
|
|
620
|
+
identifier: "SetGitConfigRequest",
|
|
621
|
+
}) as any as S.Schema<SetGitConfigRequest>;
|
|
622
|
+
|
|
623
|
+
export interface SetGitConfigResponse {}
|
|
624
|
+
export const SetGitConfigResponse = /*@__PURE__*/ S.suspend(() =>
|
|
625
|
+
S.Struct({}),
|
|
626
|
+
).annotate({
|
|
627
|
+
identifier: "SetGitConfigResponse",
|
|
628
|
+
}) as any as S.Schema<SetGitConfigResponse>;
|
|
629
|
+
|
|
630
|
+
export type AddFilesError = DaytonaOpError;
|
|
631
|
+
/** Add files to Git staging Add files to the Git staging area */
|
|
632
|
+
export const addFiles: API.OperationMethod<
|
|
633
|
+
AddFilesRequest,
|
|
634
|
+
AddFilesResponse,
|
|
635
|
+
AddFilesError,
|
|
636
|
+
DaytonaOpContext
|
|
637
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
638
|
+
input: AddFilesRequest,
|
|
639
|
+
output: AddFilesResponse,
|
|
640
|
+
errors: [UnknownDaytonaError],
|
|
641
|
+
protocol: DaytonaProtocol,
|
|
642
|
+
retry: Retry.Retry,
|
|
643
|
+
}));
|
|
644
|
+
|
|
645
|
+
export type AddRemoteError = DaytonaOpError;
|
|
646
|
+
/** Add a remote Add (or overwrite) a remote in the Git repository */
|
|
647
|
+
export const addRemote: API.OperationMethod<
|
|
648
|
+
AddRemoteRequest,
|
|
649
|
+
AddRemoteResponse,
|
|
650
|
+
AddRemoteError,
|
|
651
|
+
DaytonaOpContext
|
|
652
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
653
|
+
input: AddRemoteRequest,
|
|
654
|
+
output: AddRemoteResponse,
|
|
655
|
+
errors: [UnknownDaytonaError],
|
|
656
|
+
protocol: DaytonaProtocol,
|
|
657
|
+
retry: Retry.Retry,
|
|
658
|
+
}));
|
|
659
|
+
|
|
660
|
+
export type AuthenticateError = DaytonaOpError;
|
|
661
|
+
/** Authenticate Git Persist Git credentials globally via the credential store. Stores the password in plaintext on disk. */
|
|
662
|
+
export const authenticate: API.OperationMethod<
|
|
663
|
+
AuthenticateRequest,
|
|
664
|
+
AuthenticateResponse,
|
|
665
|
+
AuthenticateError,
|
|
666
|
+
DaytonaOpContext
|
|
667
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
668
|
+
input: AuthenticateRequest,
|
|
669
|
+
output: AuthenticateResponse,
|
|
670
|
+
errors: [UnknownDaytonaError],
|
|
671
|
+
protocol: DaytonaProtocol,
|
|
672
|
+
retry: Retry.Retry,
|
|
673
|
+
}));
|
|
674
|
+
|
|
675
|
+
export type CheckoutBranchError = DaytonaOpError;
|
|
676
|
+
/** Checkout branch or commit Switch to a different branch or commit in the Git repository */
|
|
677
|
+
export const checkoutBranch: API.OperationMethod<
|
|
678
|
+
CheckoutBranchRequest,
|
|
679
|
+
CheckoutBranchResponse,
|
|
680
|
+
CheckoutBranchError,
|
|
681
|
+
DaytonaOpContext
|
|
682
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
683
|
+
input: CheckoutBranchRequest,
|
|
684
|
+
output: CheckoutBranchResponse,
|
|
685
|
+
errors: [UnknownDaytonaError],
|
|
686
|
+
protocol: DaytonaProtocol,
|
|
687
|
+
retry: Retry.Retry,
|
|
688
|
+
}));
|
|
689
|
+
|
|
690
|
+
export type CloneRepositoryError = DaytonaOpError;
|
|
691
|
+
/** Clone a Git repository Clone a Git repository to the specified path. Defaults to strict TLS verification; set insecure_skip_tls=true to skip verification for self-signed or private-CA Git servers. */
|
|
692
|
+
export const cloneRepository: API.OperationMethod<
|
|
693
|
+
CloneRepositoryRequest,
|
|
694
|
+
CloneRepositoryResponse,
|
|
695
|
+
CloneRepositoryError,
|
|
696
|
+
DaytonaOpContext
|
|
697
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
698
|
+
input: CloneRepositoryRequest,
|
|
699
|
+
output: CloneRepositoryResponse,
|
|
700
|
+
errors: [UnknownDaytonaError],
|
|
701
|
+
protocol: DaytonaProtocol,
|
|
702
|
+
retry: Retry.Retry,
|
|
703
|
+
}));
|
|
704
|
+
|
|
705
|
+
export type CommitChangesError = DaytonaOpError;
|
|
706
|
+
/** Commit changes Commit staged changes to the Git repository */
|
|
707
|
+
export const commitChanges: API.OperationMethod<
|
|
708
|
+
CommitChangesRequest,
|
|
709
|
+
GitCommitResponse,
|
|
710
|
+
CommitChangesError,
|
|
711
|
+
DaytonaOpContext
|
|
712
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
713
|
+
input: CommitChangesRequest,
|
|
714
|
+
output: GitCommitResponse,
|
|
715
|
+
errors: [UnknownDaytonaError],
|
|
716
|
+
protocol: DaytonaProtocol,
|
|
717
|
+
retry: Retry.Retry,
|
|
718
|
+
}));
|
|
719
|
+
|
|
720
|
+
export type ConfigureUserError = DaytonaOpError;
|
|
721
|
+
/** Configure Git user Configure the Git user name and email at the given scope */
|
|
722
|
+
export const configureUser: API.OperationMethod<
|
|
723
|
+
ConfigureUserRequest,
|
|
724
|
+
ConfigureUserResponse,
|
|
725
|
+
ConfigureUserError,
|
|
726
|
+
DaytonaOpContext
|
|
727
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
728
|
+
input: ConfigureUserRequest,
|
|
729
|
+
output: ConfigureUserResponse,
|
|
730
|
+
errors: [UnknownDaytonaError],
|
|
731
|
+
protocol: DaytonaProtocol,
|
|
732
|
+
retry: Retry.Retry,
|
|
733
|
+
}));
|
|
734
|
+
|
|
735
|
+
export type CreateBranchError = DaytonaOpError;
|
|
736
|
+
/** Create a new branch Create a new branch in the Git repository */
|
|
737
|
+
export const createBranch: API.OperationMethod<
|
|
738
|
+
CreateBranchRequest,
|
|
739
|
+
CreateBranchResponse,
|
|
740
|
+
CreateBranchError,
|
|
741
|
+
DaytonaOpContext
|
|
742
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
743
|
+
input: CreateBranchRequest,
|
|
744
|
+
output: CreateBranchResponse,
|
|
745
|
+
errors: [UnknownDaytonaError],
|
|
746
|
+
protocol: DaytonaProtocol,
|
|
747
|
+
retry: Retry.Retry,
|
|
748
|
+
}));
|
|
749
|
+
|
|
750
|
+
export type DeleteBranchError = DaytonaOpError;
|
|
751
|
+
/** Delete a branch Delete a branch from the Git repository */
|
|
752
|
+
export const deleteBranch: API.OperationMethod<
|
|
753
|
+
DeleteBranchRequest,
|
|
754
|
+
DeleteBranchResponse,
|
|
755
|
+
DeleteBranchError,
|
|
756
|
+
DaytonaOpContext
|
|
757
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
758
|
+
input: DeleteBranchRequest,
|
|
759
|
+
output: DeleteBranchResponse,
|
|
760
|
+
errors: [UnknownDaytonaError],
|
|
761
|
+
protocol: DaytonaProtocol,
|
|
762
|
+
retry: Retry.Retry,
|
|
763
|
+
}));
|
|
764
|
+
|
|
765
|
+
export type GetCommitHistoryError = DaytonaOpError;
|
|
766
|
+
/** Get commit history Get the commit history of the Git repository */
|
|
767
|
+
export const getCommitHistory: API.OperationMethod<
|
|
768
|
+
GetCommitHistoryRequest,
|
|
769
|
+
GetCommitHistoryResponse,
|
|
770
|
+
GetCommitHistoryError,
|
|
771
|
+
DaytonaOpContext
|
|
772
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
773
|
+
input: GetCommitHistoryRequest,
|
|
774
|
+
output: GetCommitHistoryResponse,
|
|
775
|
+
errors: [UnknownDaytonaError],
|
|
776
|
+
protocol: DaytonaProtocol,
|
|
777
|
+
retry: Retry.Retry,
|
|
778
|
+
}));
|
|
779
|
+
|
|
780
|
+
export type GetGitConfigError = DaytonaOpError;
|
|
781
|
+
/** Get a Git config value Get a Git config value at the given scope (null when unset) */
|
|
782
|
+
export const getGitConfig: API.OperationMethod<
|
|
783
|
+
GetGitConfigRequest,
|
|
784
|
+
GitConfigResponse,
|
|
785
|
+
GetGitConfigError,
|
|
786
|
+
DaytonaOpContext
|
|
787
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
788
|
+
input: GetGitConfigRequest,
|
|
789
|
+
output: GitConfigResponse,
|
|
790
|
+
errors: [UnknownDaytonaError],
|
|
791
|
+
protocol: DaytonaProtocol,
|
|
792
|
+
retry: Retry.Retry,
|
|
793
|
+
}));
|
|
794
|
+
|
|
795
|
+
export type GetStatusError = DaytonaOpError;
|
|
796
|
+
/** Get Git status Get the Git status of the repository at the specified path */
|
|
797
|
+
export const getStatus: API.OperationMethod<
|
|
798
|
+
GetStatusRequest,
|
|
799
|
+
GitStatus,
|
|
800
|
+
GetStatusError,
|
|
801
|
+
DaytonaOpContext
|
|
802
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
803
|
+
input: GetStatusRequest,
|
|
804
|
+
output: GitStatus,
|
|
805
|
+
errors: [UnknownDaytonaError],
|
|
806
|
+
protocol: DaytonaProtocol,
|
|
807
|
+
retry: Retry.Retry,
|
|
808
|
+
}));
|
|
809
|
+
|
|
810
|
+
export type InitRepositoryError = DaytonaOpError;
|
|
811
|
+
/** Initialize a Git repository Initialize a new Git repository at the specified path */
|
|
812
|
+
export const initRepository: API.OperationMethod<
|
|
813
|
+
InitRepositoryRequest,
|
|
814
|
+
InitRepositoryResponse,
|
|
815
|
+
InitRepositoryError,
|
|
816
|
+
DaytonaOpContext
|
|
817
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
818
|
+
input: InitRepositoryRequest,
|
|
819
|
+
output: InitRepositoryResponse,
|
|
820
|
+
errors: [UnknownDaytonaError],
|
|
821
|
+
protocol: DaytonaProtocol,
|
|
822
|
+
retry: Retry.Retry,
|
|
823
|
+
}));
|
|
824
|
+
|
|
825
|
+
export type ListBranchesError = DaytonaOpError;
|
|
826
|
+
/** List branches Get a list of all branches in the Git repository */
|
|
827
|
+
export const listBranches: API.OperationMethod<
|
|
828
|
+
ListBranchesRequest,
|
|
829
|
+
ListBranchResponse,
|
|
830
|
+
ListBranchesError,
|
|
831
|
+
DaytonaOpContext
|
|
832
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
833
|
+
input: ListBranchesRequest,
|
|
834
|
+
output: ListBranchResponse,
|
|
835
|
+
errors: [UnknownDaytonaError],
|
|
836
|
+
protocol: DaytonaProtocol,
|
|
837
|
+
retry: Retry.Retry,
|
|
838
|
+
}));
|
|
839
|
+
|
|
840
|
+
export type ListRemotesError = DaytonaOpError;
|
|
841
|
+
/** List remotes List the remotes configured in the Git repository */
|
|
842
|
+
export const listRemotes: API.OperationMethod<
|
|
843
|
+
ListRemotesRequest,
|
|
844
|
+
ListRemotesResponse,
|
|
845
|
+
ListRemotesError,
|
|
846
|
+
DaytonaOpContext
|
|
847
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
848
|
+
input: ListRemotesRequest,
|
|
849
|
+
output: ListRemotesResponse,
|
|
850
|
+
errors: [UnknownDaytonaError],
|
|
851
|
+
protocol: DaytonaProtocol,
|
|
852
|
+
retry: Retry.Retry,
|
|
853
|
+
}));
|
|
854
|
+
|
|
855
|
+
export type PullChangesError = DaytonaOpError;
|
|
856
|
+
/** Pull changes from remote Pull changes from the remote Git repository */
|
|
857
|
+
export const pullChanges: API.OperationMethod<
|
|
858
|
+
PullChangesRequest,
|
|
859
|
+
PullChangesResponse,
|
|
860
|
+
PullChangesError,
|
|
861
|
+
DaytonaOpContext
|
|
862
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
863
|
+
input: PullChangesRequest,
|
|
864
|
+
output: PullChangesResponse,
|
|
865
|
+
errors: [UnknownDaytonaError],
|
|
866
|
+
protocol: DaytonaProtocol,
|
|
867
|
+
retry: Retry.Retry,
|
|
868
|
+
}));
|
|
869
|
+
|
|
870
|
+
export type PushChangesError = DaytonaOpError;
|
|
871
|
+
/** Push changes to remote Push local changes to the remote Git repository */
|
|
872
|
+
export const pushChanges: API.OperationMethod<
|
|
873
|
+
PushChangesRequest,
|
|
874
|
+
PushChangesResponse,
|
|
875
|
+
PushChangesError,
|
|
876
|
+
DaytonaOpContext
|
|
877
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
878
|
+
input: PushChangesRequest,
|
|
879
|
+
output: PushChangesResponse,
|
|
880
|
+
errors: [UnknownDaytonaError],
|
|
881
|
+
protocol: DaytonaProtocol,
|
|
882
|
+
retry: Retry.Retry,
|
|
883
|
+
}));
|
|
884
|
+
|
|
885
|
+
export type ResetChangesError = DaytonaOpError;
|
|
886
|
+
/** Reset repository Reset the current HEAD to the specified state */
|
|
887
|
+
export const resetChanges: API.OperationMethod<
|
|
888
|
+
ResetChangesRequest,
|
|
889
|
+
ResetChangesResponse,
|
|
890
|
+
ResetChangesError,
|
|
891
|
+
DaytonaOpContext
|
|
892
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
893
|
+
input: ResetChangesRequest,
|
|
894
|
+
output: ResetChangesResponse,
|
|
895
|
+
errors: [UnknownDaytonaError],
|
|
896
|
+
protocol: DaytonaProtocol,
|
|
897
|
+
retry: Retry.Retry,
|
|
898
|
+
}));
|
|
899
|
+
|
|
900
|
+
export type RestoreFilesError = DaytonaOpError;
|
|
901
|
+
/** Restore files Restore working tree files or unstage changes */
|
|
902
|
+
export const restoreFiles: API.OperationMethod<
|
|
903
|
+
RestoreFilesRequest,
|
|
904
|
+
RestoreFilesResponse,
|
|
905
|
+
RestoreFilesError,
|
|
906
|
+
DaytonaOpContext
|
|
907
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
908
|
+
input: RestoreFilesRequest,
|
|
909
|
+
output: RestoreFilesResponse,
|
|
910
|
+
errors: [UnknownDaytonaError],
|
|
911
|
+
protocol: DaytonaProtocol,
|
|
912
|
+
retry: Retry.Retry,
|
|
913
|
+
}));
|
|
914
|
+
|
|
915
|
+
export type SetGitConfigError = DaytonaOpError;
|
|
916
|
+
/** Set a Git config value Set a Git config key/value at the given scope */
|
|
917
|
+
export const setGitConfig: API.OperationMethod<
|
|
918
|
+
SetGitConfigRequest,
|
|
919
|
+
SetGitConfigResponse,
|
|
920
|
+
SetGitConfigError,
|
|
921
|
+
DaytonaOpContext
|
|
922
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
923
|
+
input: SetGitConfigRequest,
|
|
924
|
+
output: SetGitConfigResponse,
|
|
925
|
+
errors: [UnknownDaytonaError],
|
|
926
|
+
protocol: DaytonaProtocol,
|
|
927
|
+
retry: Retry.Retry,
|
|
928
|
+
}));
|