@daytonaio/toolbox-api-client 0.192.0 → 0.193.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/package.json +1 -1
  2. package/src/api/file-system-api.d.ts +12 -8
  3. package/src/api/file-system-api.js +18 -11
  4. package/src/api/file-system-api.js.map +1 -1
  5. package/src/api/git-api.d.ts +323 -17
  6. package/src/api/git-api.js +593 -8
  7. package/src/api/git-api.js.map +1 -1
  8. package/src/api/system-api.d.ts +63 -0
  9. package/src/api/system-api.js +111 -0
  10. package/src/api/system-api.js.map +1 -0
  11. package/src/api.d.ts +1 -0
  12. package/src/api.js +1 -0
  13. package/src/api.js.map +1 -1
  14. package/src/models/file-info.d.ts +4 -0
  15. package/src/models/git-add-remote-request.d.ts +24 -0
  16. package/src/models/git-add-remote-request.js +16 -0
  17. package/src/models/git-add-remote-request.js.map +1 -0
  18. package/src/models/git-authenticate-request.d.ts +23 -0
  19. package/src/models/git-authenticate-request.js +16 -0
  20. package/src/models/git-authenticate-request.js.map +1 -0
  21. package/src/models/git-clone-request.d.ts +4 -0
  22. package/src/models/git-config-response.d.ts +17 -0
  23. package/src/models/git-config-response.js +16 -0
  24. package/src/models/git-config-response.js.map +1 -0
  25. package/src/models/git-configure-user-request.d.ts +23 -0
  26. package/src/models/git-configure-user-request.js +16 -0
  27. package/src/models/git-configure-user-request.js.map +1 -0
  28. package/src/models/git-init-request.d.ts +22 -0
  29. package/src/models/{git-repo-request.js → git-init-request.js} +1 -1
  30. package/src/models/git-init-request.js.map +1 -0
  31. package/src/models/git-pull-request.d.ts +24 -0
  32. package/src/models/git-pull-request.js +16 -0
  33. package/src/models/git-pull-request.js.map +1 -0
  34. package/src/models/git-push-request.d.ts +28 -0
  35. package/src/models/git-push-request.js +16 -0
  36. package/src/models/git-push-request.js.map +1 -0
  37. package/src/models/{git-repo-request.d.ts → git-remote.d.ts} +3 -4
  38. package/src/models/git-remote.js +16 -0
  39. package/src/models/git-remote.js.map +1 -0
  40. package/src/models/git-reset-request.d.ts +26 -0
  41. package/src/models/git-reset-request.js +16 -0
  42. package/src/models/git-reset-request.js.map +1 -0
  43. package/src/models/git-restore-request.d.ts +27 -0
  44. package/src/models/git-restore-request.js +16 -0
  45. package/src/models/git-restore-request.js.map +1 -0
  46. package/src/models/git-set-config-request.d.ts +23 -0
  47. package/src/models/git-set-config-request.js +16 -0
  48. package/src/models/git-set-config-request.js.map +1 -0
  49. package/src/models/git-status.d.ts +8 -0
  50. package/src/models/index.d.ts +13 -1
  51. package/src/models/index.js +13 -1
  52. package/src/models/index.js.map +1 -1
  53. package/src/models/list-branch-response.d.ts +4 -0
  54. package/src/models/list-remotes-response.d.ts +15 -0
  55. package/src/models/list-remotes-response.js +16 -0
  56. package/src/models/list-remotes-response.js.map +1 -0
  57. package/src/models/system-metrics.d.ts +23 -0
  58. package/src/models/system-metrics.js +16 -0
  59. package/src/models/system-metrics.js.map +1 -0
  60. package/src/models/git-repo-request.js.map +0 -1
@@ -12,17 +12,27 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { GitAddRemoteRequest } from '../models';
15
16
  import type { GitAddRequest } from '../models';
17
+ import type { GitAuthenticateRequest } from '../models';
16
18
  import type { GitBranchRequest } from '../models';
17
19
  import type { GitCheckoutRequest } from '../models';
18
20
  import type { GitCloneRequest } from '../models';
19
21
  import type { GitCommitInfo } from '../models';
20
22
  import type { GitCommitRequest } from '../models';
21
23
  import type { GitCommitResponse } from '../models';
24
+ import type { GitConfigResponse } from '../models';
25
+ import type { GitConfigureUserRequest } from '../models';
22
26
  import type { GitDeleteBranchRequest } from '../models';
23
- import type { GitRepoRequest } from '../models';
27
+ import type { GitInitRequest } from '../models';
28
+ import type { GitPullRequest } from '../models';
29
+ import type { GitPushRequest } from '../models';
30
+ import type { GitResetRequest } from '../models';
31
+ import type { GitRestoreRequest } from '../models';
32
+ import type { GitSetConfigRequest } from '../models';
24
33
  import type { GitStatus } from '../models';
25
34
  import type { ListBranchResponse } from '../models';
35
+ import type { ListRemotesResponse } from '../models';
26
36
  /**
27
37
  * GitApi - axios parameter creator
28
38
  */
@@ -35,6 +45,22 @@ export declare const GitApiAxiosParamCreator: (configuration?: Configuration) =>
35
45
  * @throws {RequiredError}
36
46
  */
37
47
  addFiles: (request: GitAddRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
48
+ /**
49
+ * Add (or overwrite) a remote in the Git repository
50
+ * @summary Add a remote
51
+ * @param {GitAddRemoteRequest} request Add remote request
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ addRemote: (request: GitAddRemoteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
56
+ /**
57
+ * Persist Git credentials globally via the credential store. Stores the password in plaintext on disk.
58
+ * @summary Authenticate Git
59
+ * @param {GitAuthenticateRequest} request Authenticate request
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ authenticate: (request: GitAuthenticateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
38
64
  /**
39
65
  * Switch to a different branch or commit in the Git repository
40
66
  * @summary Checkout branch or commit
@@ -59,6 +85,14 @@ export declare const GitApiAxiosParamCreator: (configuration?: Configuration) =>
59
85
  * @throws {RequiredError}
60
86
  */
61
87
  commitChanges: (request: GitCommitRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
88
+ /**
89
+ * Configure the Git user name and email at the given scope
90
+ * @summary Configure Git user
91
+ * @param {GitConfigureUserRequest} request Configure user request
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ configureUser: (request: GitConfigureUserRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
62
96
  /**
63
97
  * Create a new branch in the Git repository
64
98
  * @summary Create a new branch
@@ -83,6 +117,16 @@ export declare const GitApiAxiosParamCreator: (configuration?: Configuration) =>
83
117
  * @throws {RequiredError}
84
118
  */
85
119
  getCommitHistory: (path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
120
+ /**
121
+ * Get a Git config value at the given scope (null when unset)
122
+ * @summary Get a Git config value
123
+ * @param {string} key Config key (e.g. user.name)
124
+ * @param {string} [path] Repository path (required for local scope)
125
+ * @param {string} [scope] Config scope: global (default), local or system
126
+ * @param {*} [options] Override http request option.
127
+ * @throws {RequiredError}
128
+ */
129
+ getGitConfig: (key: string, path?: string, scope?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
86
130
  /**
87
131
  * Get the Git status of the repository at the specified path
88
132
  * @summary Get Git status
@@ -91,6 +135,14 @@ export declare const GitApiAxiosParamCreator: (configuration?: Configuration) =>
91
135
  * @throws {RequiredError}
92
136
  */
93
137
  getStatus: (path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
138
+ /**
139
+ * Initialize a new Git repository at the specified path
140
+ * @summary Initialize a Git repository
141
+ * @param {GitInitRequest} request Init repository request
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ initRepository: (request: GitInitRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
94
146
  /**
95
147
  * Get a list of all branches in the Git repository
96
148
  * @summary List branches
@@ -99,22 +151,54 @@ export declare const GitApiAxiosParamCreator: (configuration?: Configuration) =>
99
151
  * @throws {RequiredError}
100
152
  */
101
153
  listBranches: (path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
154
+ /**
155
+ * List the remotes configured in the Git repository
156
+ * @summary List remotes
157
+ * @param {string} path Repository path
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ listRemotes: (path: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
102
162
  /**
103
163
  * Pull changes from the remote Git repository
104
164
  * @summary Pull changes from remote
105
- * @param {GitRepoRequest} request Pull request
165
+ * @param {GitPullRequest} request Pull request
106
166
  * @param {*} [options] Override http request option.
107
167
  * @throws {RequiredError}
108
168
  */
109
- pullChanges: (request: GitRepoRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
169
+ pullChanges: (request: GitPullRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
110
170
  /**
111
171
  * Push local changes to the remote Git repository
112
172
  * @summary Push changes to remote
113
- * @param {GitRepoRequest} request Push request
173
+ * @param {GitPushRequest} request Push request
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ pushChanges: (request: GitPushRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
178
+ /**
179
+ * Reset the current HEAD to the specified state
180
+ * @summary Reset repository
181
+ * @param {GitResetRequest} request Reset request
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ */
185
+ resetChanges: (request: GitResetRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
186
+ /**
187
+ * Restore working tree files or unstage changes
188
+ * @summary Restore files
189
+ * @param {GitRestoreRequest} request Restore request
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ */
193
+ restoreFiles: (request: GitRestoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
194
+ /**
195
+ * Set a Git config key/value at the given scope
196
+ * @summary Set a Git config value
197
+ * @param {GitSetConfigRequest} request Set config request
114
198
  * @param {*} [options] Override http request option.
115
199
  * @throws {RequiredError}
116
200
  */
117
- pushChanges: (request: GitRepoRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
201
+ setGitConfig: (request: GitSetConfigRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
118
202
  };
119
203
  /**
120
204
  * GitApi - functional programming interface
@@ -128,6 +212,22 @@ export declare const GitApiFp: (configuration?: Configuration) => {
128
212
  * @throws {RequiredError}
129
213
  */
130
214
  addFiles(request: GitAddRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
215
+ /**
216
+ * Add (or overwrite) a remote in the Git repository
217
+ * @summary Add a remote
218
+ * @param {GitAddRemoteRequest} request Add remote request
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ addRemote(request: GitAddRemoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
223
+ /**
224
+ * Persist Git credentials globally via the credential store. Stores the password in plaintext on disk.
225
+ * @summary Authenticate Git
226
+ * @param {GitAuthenticateRequest} request Authenticate request
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ */
230
+ authenticate(request: GitAuthenticateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
131
231
  /**
132
232
  * Switch to a different branch or commit in the Git repository
133
233
  * @summary Checkout branch or commit
@@ -152,6 +252,14 @@ export declare const GitApiFp: (configuration?: Configuration) => {
152
252
  * @throws {RequiredError}
153
253
  */
154
254
  commitChanges(request: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitCommitResponse>>;
255
+ /**
256
+ * Configure the Git user name and email at the given scope
257
+ * @summary Configure Git user
258
+ * @param {GitConfigureUserRequest} request Configure user request
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ configureUser(request: GitConfigureUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
155
263
  /**
156
264
  * Create a new branch in the Git repository
157
265
  * @summary Create a new branch
@@ -176,6 +284,16 @@ export declare const GitApiFp: (configuration?: Configuration) => {
176
284
  * @throws {RequiredError}
177
285
  */
178
286
  getCommitHistory(path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GitCommitInfo>>>;
287
+ /**
288
+ * Get a Git config value at the given scope (null when unset)
289
+ * @summary Get a Git config value
290
+ * @param {string} key Config key (e.g. user.name)
291
+ * @param {string} [path] Repository path (required for local scope)
292
+ * @param {string} [scope] Config scope: global (default), local or system
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ getGitConfig(key: string, path?: string, scope?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitConfigResponse>>;
179
297
  /**
180
298
  * Get the Git status of the repository at the specified path
181
299
  * @summary Get Git status
@@ -184,6 +302,14 @@ export declare const GitApiFp: (configuration?: Configuration) => {
184
302
  * @throws {RequiredError}
185
303
  */
186
304
  getStatus(path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitStatus>>;
305
+ /**
306
+ * Initialize a new Git repository at the specified path
307
+ * @summary Initialize a Git repository
308
+ * @param {GitInitRequest} request Init repository request
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ initRepository(request: GitInitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
187
313
  /**
188
314
  * Get a list of all branches in the Git repository
189
315
  * @summary List branches
@@ -192,22 +318,54 @@ export declare const GitApiFp: (configuration?: Configuration) => {
192
318
  * @throws {RequiredError}
193
319
  */
194
320
  listBranches(path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBranchResponse>>;
321
+ /**
322
+ * List the remotes configured in the Git repository
323
+ * @summary List remotes
324
+ * @param {string} path Repository path
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ */
328
+ listRemotes(path: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRemotesResponse>>;
195
329
  /**
196
330
  * Pull changes from the remote Git repository
197
331
  * @summary Pull changes from remote
198
- * @param {GitRepoRequest} request Pull request
332
+ * @param {GitPullRequest} request Pull request
199
333
  * @param {*} [options] Override http request option.
200
334
  * @throws {RequiredError}
201
335
  */
202
- pullChanges(request: GitRepoRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
336
+ pullChanges(request: GitPullRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
203
337
  /**
204
338
  * Push local changes to the remote Git repository
205
339
  * @summary Push changes to remote
206
- * @param {GitRepoRequest} request Push request
340
+ * @param {GitPushRequest} request Push request
341
+ * @param {*} [options] Override http request option.
342
+ * @throws {RequiredError}
343
+ */
344
+ pushChanges(request: GitPushRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
345
+ /**
346
+ * Reset the current HEAD to the specified state
347
+ * @summary Reset repository
348
+ * @param {GitResetRequest} request Reset request
349
+ * @param {*} [options] Override http request option.
350
+ * @throws {RequiredError}
351
+ */
352
+ resetChanges(request: GitResetRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
353
+ /**
354
+ * Restore working tree files or unstage changes
355
+ * @summary Restore files
356
+ * @param {GitRestoreRequest} request Restore request
357
+ * @param {*} [options] Override http request option.
358
+ * @throws {RequiredError}
359
+ */
360
+ restoreFiles(request: GitRestoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
361
+ /**
362
+ * Set a Git config key/value at the given scope
363
+ * @summary Set a Git config value
364
+ * @param {GitSetConfigRequest} request Set config request
207
365
  * @param {*} [options] Override http request option.
208
366
  * @throws {RequiredError}
209
367
  */
210
- pushChanges(request: GitRepoRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
368
+ setGitConfig(request: GitSetConfigRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
211
369
  };
212
370
  /**
213
371
  * GitApi - factory interface
@@ -221,6 +379,22 @@ export declare const GitApiFactory: (configuration?: Configuration, basePath?: s
221
379
  * @throws {RequiredError}
222
380
  */
223
381
  addFiles(request: GitAddRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
382
+ /**
383
+ * Add (or overwrite) a remote in the Git repository
384
+ * @summary Add a remote
385
+ * @param {GitAddRemoteRequest} request Add remote request
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ addRemote(request: GitAddRemoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
390
+ /**
391
+ * Persist Git credentials globally via the credential store. Stores the password in plaintext on disk.
392
+ * @summary Authenticate Git
393
+ * @param {GitAuthenticateRequest} request Authenticate request
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ authenticate(request: GitAuthenticateRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
224
398
  /**
225
399
  * Switch to a different branch or commit in the Git repository
226
400
  * @summary Checkout branch or commit
@@ -245,6 +419,14 @@ export declare const GitApiFactory: (configuration?: Configuration, basePath?: s
245
419
  * @throws {RequiredError}
246
420
  */
247
421
  commitChanges(request: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<GitCommitResponse>;
422
+ /**
423
+ * Configure the Git user name and email at the given scope
424
+ * @summary Configure Git user
425
+ * @param {GitConfigureUserRequest} request Configure user request
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ */
429
+ configureUser(request: GitConfigureUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
248
430
  /**
249
431
  * Create a new branch in the Git repository
250
432
  * @summary Create a new branch
@@ -269,6 +451,16 @@ export declare const GitApiFactory: (configuration?: Configuration, basePath?: s
269
451
  * @throws {RequiredError}
270
452
  */
271
453
  getCommitHistory(path: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<GitCommitInfo>>;
454
+ /**
455
+ * Get a Git config value at the given scope (null when unset)
456
+ * @summary Get a Git config value
457
+ * @param {string} key Config key (e.g. user.name)
458
+ * @param {string} [path] Repository path (required for local scope)
459
+ * @param {string} [scope] Config scope: global (default), local or system
460
+ * @param {*} [options] Override http request option.
461
+ * @throws {RequiredError}
462
+ */
463
+ getGitConfig(key: string, path?: string, scope?: string, options?: RawAxiosRequestConfig): AxiosPromise<GitConfigResponse>;
272
464
  /**
273
465
  * Get the Git status of the repository at the specified path
274
466
  * @summary Get Git status
@@ -277,6 +469,14 @@ export declare const GitApiFactory: (configuration?: Configuration, basePath?: s
277
469
  * @throws {RequiredError}
278
470
  */
279
471
  getStatus(path: string, options?: RawAxiosRequestConfig): AxiosPromise<GitStatus>;
472
+ /**
473
+ * Initialize a new Git repository at the specified path
474
+ * @summary Initialize a Git repository
475
+ * @param {GitInitRequest} request Init repository request
476
+ * @param {*} [options] Override http request option.
477
+ * @throws {RequiredError}
478
+ */
479
+ initRepository(request: GitInitRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
280
480
  /**
281
481
  * Get a list of all branches in the Git repository
282
482
  * @summary List branches
@@ -285,22 +485,54 @@ export declare const GitApiFactory: (configuration?: Configuration, basePath?: s
285
485
  * @throws {RequiredError}
286
486
  */
287
487
  listBranches(path: string, options?: RawAxiosRequestConfig): AxiosPromise<ListBranchResponse>;
488
+ /**
489
+ * List the remotes configured in the Git repository
490
+ * @summary List remotes
491
+ * @param {string} path Repository path
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ */
495
+ listRemotes(path: string, options?: RawAxiosRequestConfig): AxiosPromise<ListRemotesResponse>;
288
496
  /**
289
497
  * Pull changes from the remote Git repository
290
498
  * @summary Pull changes from remote
291
- * @param {GitRepoRequest} request Pull request
499
+ * @param {GitPullRequest} request Pull request
292
500
  * @param {*} [options] Override http request option.
293
501
  * @throws {RequiredError}
294
502
  */
295
- pullChanges(request: GitRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
503
+ pullChanges(request: GitPullRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
296
504
  /**
297
505
  * Push local changes to the remote Git repository
298
506
  * @summary Push changes to remote
299
- * @param {GitRepoRequest} request Push request
507
+ * @param {GitPushRequest} request Push request
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ pushChanges(request: GitPushRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
512
+ /**
513
+ * Reset the current HEAD to the specified state
514
+ * @summary Reset repository
515
+ * @param {GitResetRequest} request Reset request
516
+ * @param {*} [options] Override http request option.
517
+ * @throws {RequiredError}
518
+ */
519
+ resetChanges(request: GitResetRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
520
+ /**
521
+ * Restore working tree files or unstage changes
522
+ * @summary Restore files
523
+ * @param {GitRestoreRequest} request Restore request
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ */
527
+ restoreFiles(request: GitRestoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
528
+ /**
529
+ * Set a Git config key/value at the given scope
530
+ * @summary Set a Git config value
531
+ * @param {GitSetConfigRequest} request Set config request
300
532
  * @param {*} [options] Override http request option.
301
533
  * @throws {RequiredError}
302
534
  */
303
- pushChanges(request: GitRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
535
+ setGitConfig(request: GitSetConfigRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
304
536
  };
305
537
  /**
306
538
  * GitApi - object-oriented interface
@@ -314,6 +546,22 @@ export declare class GitApi extends BaseAPI {
314
546
  * @throws {RequiredError}
315
547
  */
316
548
  addFiles(request: GitAddRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
549
+ /**
550
+ * Add (or overwrite) a remote in the Git repository
551
+ * @summary Add a remote
552
+ * @param {GitAddRemoteRequest} request Add remote request
553
+ * @param {*} [options] Override http request option.
554
+ * @throws {RequiredError}
555
+ */
556
+ addRemote(request: GitAddRemoteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
557
+ /**
558
+ * Persist Git credentials globally via the credential store. Stores the password in plaintext on disk.
559
+ * @summary Authenticate Git
560
+ * @param {GitAuthenticateRequest} request Authenticate request
561
+ * @param {*} [options] Override http request option.
562
+ * @throws {RequiredError}
563
+ */
564
+ authenticate(request: GitAuthenticateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
317
565
  /**
318
566
  * Switch to a different branch or commit in the Git repository
319
567
  * @summary Checkout branch or commit
@@ -338,6 +586,14 @@ export declare class GitApi extends BaseAPI {
338
586
  * @throws {RequiredError}
339
587
  */
340
588
  commitChanges(request: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitCommitResponse, any, {}>>;
589
+ /**
590
+ * Configure the Git user name and email at the given scope
591
+ * @summary Configure Git user
592
+ * @param {GitConfigureUserRequest} request Configure user request
593
+ * @param {*} [options] Override http request option.
594
+ * @throws {RequiredError}
595
+ */
596
+ configureUser(request: GitConfigureUserRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
341
597
  /**
342
598
  * Create a new branch in the Git repository
343
599
  * @summary Create a new branch
@@ -362,6 +618,16 @@ export declare class GitApi extends BaseAPI {
362
618
  * @throws {RequiredError}
363
619
  */
364
620
  getCommitHistory(path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitCommitInfo[], any, {}>>;
621
+ /**
622
+ * Get a Git config value at the given scope (null when unset)
623
+ * @summary Get a Git config value
624
+ * @param {string} key Config key (e.g. user.name)
625
+ * @param {string} [path] Repository path (required for local scope)
626
+ * @param {string} [scope] Config scope: global (default), local or system
627
+ * @param {*} [options] Override http request option.
628
+ * @throws {RequiredError}
629
+ */
630
+ getGitConfig(key: string, path?: string, scope?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitConfigResponse, any, {}>>;
365
631
  /**
366
632
  * Get the Git status of the repository at the specified path
367
633
  * @summary Get Git status
@@ -370,6 +636,14 @@ export declare class GitApi extends BaseAPI {
370
636
  * @throws {RequiredError}
371
637
  */
372
638
  getStatus(path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GitStatus, any, {}>>;
639
+ /**
640
+ * Initialize a new Git repository at the specified path
641
+ * @summary Initialize a Git repository
642
+ * @param {GitInitRequest} request Init repository request
643
+ * @param {*} [options] Override http request option.
644
+ * @throws {RequiredError}
645
+ */
646
+ initRepository(request: GitInitRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
373
647
  /**
374
648
  * Get a list of all branches in the Git repository
375
649
  * @summary List branches
@@ -378,20 +652,52 @@ export declare class GitApi extends BaseAPI {
378
652
  * @throws {RequiredError}
379
653
  */
380
654
  listBranches(path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBranchResponse, any, {}>>;
655
+ /**
656
+ * List the remotes configured in the Git repository
657
+ * @summary List remotes
658
+ * @param {string} path Repository path
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ */
662
+ listRemotes(path: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRemotesResponse, any, {}>>;
381
663
  /**
382
664
  * Pull changes from the remote Git repository
383
665
  * @summary Pull changes from remote
384
- * @param {GitRepoRequest} request Pull request
666
+ * @param {GitPullRequest} request Pull request
385
667
  * @param {*} [options] Override http request option.
386
668
  * @throws {RequiredError}
387
669
  */
388
- pullChanges(request: GitRepoRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
670
+ pullChanges(request: GitPullRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
389
671
  /**
390
672
  * Push local changes to the remote Git repository
391
673
  * @summary Push changes to remote
392
- * @param {GitRepoRequest} request Push request
674
+ * @param {GitPushRequest} request Push request
675
+ * @param {*} [options] Override http request option.
676
+ * @throws {RequiredError}
677
+ */
678
+ pushChanges(request: GitPushRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
679
+ /**
680
+ * Reset the current HEAD to the specified state
681
+ * @summary Reset repository
682
+ * @param {GitResetRequest} request Reset request
683
+ * @param {*} [options] Override http request option.
684
+ * @throws {RequiredError}
685
+ */
686
+ resetChanges(request: GitResetRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
687
+ /**
688
+ * Restore working tree files or unstage changes
689
+ * @summary Restore files
690
+ * @param {GitRestoreRequest} request Restore request
691
+ * @param {*} [options] Override http request option.
692
+ * @throws {RequiredError}
693
+ */
694
+ restoreFiles(request: GitRestoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
695
+ /**
696
+ * Set a Git config key/value at the given scope
697
+ * @summary Set a Git config value
698
+ * @param {GitSetConfigRequest} request Set config request
393
699
  * @param {*} [options] Override http request option.
394
700
  * @throws {RequiredError}
395
701
  */
396
- pushChanges(request: GitRepoRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
702
+ setGitConfig(request: GitSetConfigRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
397
703
  }