@daytonaio/api-client 0.5.2 → 0.6.0
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/.openapi-generator/FILES +20 -18
- package/README.md +2 -2
- package/api/api-keys-api.ts +21 -21
- package/api/{default-api.ts → app-api.ts} +14 -14
- package/api/docker-registry-api.ts +30 -30
- package/api/nodes-api.ts +16 -14
- package/api/toolbox-api.ts +120 -120
- package/api/users-api.ts +16 -14
- package/api/workspace-api.ts +37 -37
- package/api.ts +1 -1
- package/dist/api/api-keys-api.d.ts +17 -17
- package/dist/api/api-keys-api.js +17 -17
- package/dist/api/{default-api.d.ts → app-api.d.ts} +10 -10
- package/dist/api/{default-api.js → app-api.js} +19 -19
- package/dist/api/docker-registry-api.d.ts +18 -18
- package/dist/api/docker-registry-api.js +33 -33
- package/dist/api/nodes-api.d.ts +9 -8
- package/dist/api/nodes-api.js +16 -16
- package/dist/api/toolbox-api.d.ts +72 -72
- package/dist/api/toolbox-api.js +125 -125
- package/dist/api/users-api.d.ts +9 -8
- package/dist/api/users-api.js +16 -16
- package/dist/api/workspace-api.d.ts +28 -28
- package/dist/api/workspace-api.js +34 -34
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/esm/api/api-keys-api.d.ts +17 -17
- package/dist/esm/api/api-keys-api.js +17 -17
- package/dist/esm/api/{default-api.d.ts → app-api.d.ts} +10 -10
- package/dist/esm/api/{default-api.js → app-api.js} +14 -14
- package/dist/esm/api/docker-registry-api.d.ts +18 -18
- package/dist/esm/api/docker-registry-api.js +33 -33
- package/dist/esm/api/nodes-api.d.ts +9 -8
- package/dist/esm/api/nodes-api.js +16 -16
- package/dist/esm/api/toolbox-api.d.ts +72 -72
- package/dist/esm/api/toolbox-api.js +125 -125
- package/dist/esm/api/users-api.d.ts +9 -8
- package/dist/esm/api/users-api.js +16 -16
- package/dist/esm/api/workspace-api.d.ts +28 -28
- package/dist/esm/api/workspace-api.js +34 -34
- package/dist/esm/api.d.ts +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
- package/dist/esm/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
- package/dist/{models/create-api-key-dto.d.ts → esm/models/create-api-key.d.ts} +3 -3
- package/dist/{models/create-docker-registry-dto.d.ts → esm/models/create-docker-registry.d.ts} +8 -8
- package/dist/esm/models/create-node.d.ts +24 -0
- package/dist/esm/models/create-user.d.ts +30 -0
- package/dist/{models/create-workspace-dto.d.ts → esm/models/create-workspace.d.ts} +21 -21
- package/dist/esm/models/{create-workspace-dto.js → create-workspace.js} +2 -2
- package/dist/{models/execute-request-dto.d.ts → esm/models/execute-request.d.ts} +4 -4
- package/dist/{models/execute-response-dto.d.ts → esm/models/execute-response.d.ts} +5 -5
- package/dist/esm/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
- package/dist/{models/git-branch-request-dto.d.ts → esm/models/git-branch-request.d.ts} +4 -4
- package/dist/esm/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
- package/dist/{models/git-commit-request-dto.d.ts → esm/models/git-commit-request.d.ts} +6 -6
- package/dist/esm/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/esm/models/index.d.ts +19 -17
- package/dist/esm/models/index.js +19 -17
- package/dist/esm/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/esm/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/{models/workspace-info-dto.d.ts → esm/models/workspace-info.d.ts} +5 -5
- package/dist/{models/workspace-labels-dto.d.ts → esm/models/workspace-labels.d.ts} +3 -3
- package/dist/esm/models/workspace-labels.js +14 -0
- package/dist/{models/workspace-dto.d.ts → esm/models/workspace.d.ts} +18 -18
- package/dist/esm/models/workspace.js +14 -0
- package/dist/models/{api-key-list-dto.d.ts → api-key-list.d.ts} +5 -5
- package/dist/models/{api-key-response-dto.d.ts → api-key-response.d.ts} +5 -5
- package/dist/{esm/models/create-api-key-dto.d.ts → models/create-api-key.d.ts} +3 -3
- package/dist/{esm/models/create-docker-registry-dto.d.ts → models/create-docker-registry.d.ts} +8 -8
- package/dist/models/create-node.d.ts +24 -0
- package/dist/models/create-user.d.ts +30 -0
- package/dist/{esm/models/create-workspace-dto.d.ts → models/create-workspace.d.ts} +21 -21
- package/dist/models/{create-workspace-dto.js → create-workspace.js} +3 -3
- package/dist/{esm/models/execute-request-dto.d.ts → models/execute-request.d.ts} +4 -4
- package/dist/{esm/models/execute-response-dto.d.ts → models/execute-response.d.ts} +5 -5
- package/dist/models/{git-add-request-dto.d.ts → git-add-request.d.ts} +4 -4
- package/dist/{esm/models/git-branch-request-dto.d.ts → models/git-branch-request.d.ts} +4 -4
- package/dist/models/{git-clone-request-dto.d.ts → git-clone-request.d.ts} +8 -8
- package/dist/{esm/models/git-commit-request-dto.d.ts → models/git-commit-request.d.ts} +6 -6
- package/dist/models/{git-repo-request-dto.d.ts → git-repo-request.d.ts} +5 -5
- package/dist/models/index.d.ts +19 -17
- package/dist/models/index.js +19 -17
- package/dist/models/{replace-request-dto.d.ts → replace-request.d.ts} +5 -5
- package/dist/models/{update-docker-registry-dto.d.ts → update-docker-registry.d.ts} +8 -8
- package/dist/{esm/models/workspace-info-dto.d.ts → models/workspace-info.d.ts} +5 -5
- package/dist/{esm/models/workspace-labels-dto.d.ts → models/workspace-labels.d.ts} +3 -3
- package/dist/models/workspace-labels.js +15 -0
- package/dist/{esm/models/workspace-dto.d.ts → models/workspace.d.ts} +18 -18
- package/dist/models/workspace.js +15 -0
- package/models/{api-key-list-dto.ts → api-key-list.ts} +5 -5
- package/models/{api-key-response-dto.ts → api-key-response.ts} +5 -5
- package/models/{create-api-key-dto.ts → create-api-key.ts} +3 -3
- package/models/{create-docker-registry-dto.ts → create-docker-registry.ts} +8 -8
- package/models/create-node.ts +30 -0
- package/models/create-user.ts +36 -0
- package/models/{create-workspace-dto.ts → create-workspace.ts} +21 -21
- package/models/{execute-request-dto.ts → execute-request.ts} +4 -4
- package/models/{execute-response-dto.ts → execute-response.ts} +5 -5
- package/models/{git-add-request-dto.ts → git-add-request.ts} +4 -4
- package/models/{git-branch-request-dto.ts → git-branch-request.ts} +4 -4
- package/models/{git-clone-request-dto.ts → git-clone-request.ts} +8 -8
- package/models/{git-commit-request-dto.ts → git-commit-request.ts} +6 -6
- package/models/{git-repo-request-dto.ts → git-repo-request.ts} +5 -5
- package/models/index.ts +19 -17
- package/models/{replace-request-dto.ts → replace-request.ts} +5 -5
- package/models/{update-docker-registry-dto.ts → update-docker-registry.ts} +8 -8
- package/models/{workspace-info-dto.ts → workspace-info.ts} +5 -5
- package/models/{workspace-labels-dto.ts → workspace-labels.ts} +3 -3
- package/models/{workspace-dto.ts → workspace.ts} +18 -18
- package/package.json +1 -1
- /package/dist/esm/models/{api-key-list-dto.js → api-key-list.js} +0 -0
- /package/dist/esm/models/{api-key-response-dto.js → api-key-response.js} +0 -0
- /package/dist/esm/models/{create-api-key-dto.js → create-api-key.js} +0 -0
- /package/dist/esm/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
- /package/dist/esm/models/{execute-request-dto.js → create-node.js} +0 -0
- /package/dist/esm/models/{execute-response-dto.js → create-user.js} +0 -0
- /package/dist/esm/models/{git-add-request-dto.js → execute-request.js} +0 -0
- /package/dist/esm/models/{git-branch-request-dto.js → execute-response.js} +0 -0
- /package/dist/esm/models/{git-clone-request-dto.js → git-add-request.js} +0 -0
- /package/dist/esm/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/esm/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
- /package/dist/esm/models/{replace-request-dto.js → git-commit-request.js} +0 -0
- /package/dist/esm/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
- /package/dist/esm/models/{workspace-dto.js → replace-request.js} +0 -0
- /package/dist/esm/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
- /package/dist/esm/models/{workspace-labels-dto.js → workspace-info.js} +0 -0
- /package/dist/models/{api-key-list-dto.js → api-key-list.js} +0 -0
- /package/dist/models/{api-key-response-dto.js → api-key-response.js} +0 -0
- /package/dist/models/{create-api-key-dto.js → create-api-key.js} +0 -0
- /package/dist/models/{create-docker-registry-dto.js → create-docker-registry.js} +0 -0
- /package/dist/models/{execute-request-dto.js → create-node.js} +0 -0
- /package/dist/models/{execute-response-dto.js → create-user.js} +0 -0
- /package/dist/models/{git-add-request-dto.js → execute-request.js} +0 -0
- /package/dist/models/{git-branch-request-dto.js → execute-response.js} +0 -0
- /package/dist/models/{git-clone-request-dto.js → git-add-request.js} +0 -0
- /package/dist/models/{git-commit-request-dto.js → git-branch-request.js} +0 -0
- /package/dist/models/{git-repo-request-dto.js → git-clone-request.js} +0 -0
- /package/dist/models/{replace-request-dto.js → git-commit-request.js} +0 -0
- /package/dist/models/{update-docker-registry-dto.js → git-repo-request.js} +0 -0
- /package/dist/models/{workspace-dto.js → replace-request.js} +0 -0
- /package/dist/models/{workspace-info-dto.js → update-docker-registry.js} +0 -0
- /package/dist/models/{workspace-labels-dto.js → workspace-info.js} +0 -0
package/api/toolbox-api.ts
CHANGED
|
@@ -22,21 +22,21 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
25
|
-
import type {
|
|
25
|
+
import type { ExecuteRequest } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
-
import type {
|
|
27
|
+
import type { ExecuteResponse } from '../models';
|
|
28
28
|
// @ts-ignore
|
|
29
|
-
import type {
|
|
29
|
+
import type { GitAddRequest } from '../models';
|
|
30
30
|
// @ts-ignore
|
|
31
|
-
import type {
|
|
31
|
+
import type { GitBranchRequest } from '../models';
|
|
32
32
|
// @ts-ignore
|
|
33
|
-
import type {
|
|
33
|
+
import type { GitCloneRequest } from '../models';
|
|
34
34
|
// @ts-ignore
|
|
35
|
-
import type {
|
|
35
|
+
import type { GitCommitRequest } from '../models';
|
|
36
36
|
// @ts-ignore
|
|
37
|
-
import type {
|
|
37
|
+
import type { GitRepoRequest } from '../models';
|
|
38
38
|
// @ts-ignore
|
|
39
|
-
import type {
|
|
39
|
+
import type { ReplaceRequest } from '../models';
|
|
40
40
|
/**
|
|
41
41
|
* ToolboxApi - axios parameter creator
|
|
42
42
|
* @export
|
|
@@ -189,15 +189,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
189
189
|
* Execute command synchronously inside workspace
|
|
190
190
|
* @summary Execute command
|
|
191
191
|
* @param {string} workspaceId
|
|
192
|
-
* @param {
|
|
192
|
+
* @param {ExecuteRequest} executeRequest
|
|
193
193
|
* @param {*} [options] Override http request option.
|
|
194
194
|
* @throws {RequiredError}
|
|
195
195
|
*/
|
|
196
|
-
executeCommand: async (workspaceId: string,
|
|
196
|
+
executeCommand: async (workspaceId: string, executeRequest: ExecuteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
197
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
198
198
|
assertParamExists('executeCommand', 'workspaceId', workspaceId)
|
|
199
|
-
// verify required parameter '
|
|
200
|
-
assertParamExists('executeCommand', '
|
|
199
|
+
// verify required parameter 'executeRequest' is not null or undefined
|
|
200
|
+
assertParamExists('executeCommand', 'executeRequest', executeRequest)
|
|
201
201
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/process/execute`
|
|
202
202
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
203
203
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -222,7 +222,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
222
222
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
223
223
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
224
224
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
225
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
225
|
+
localVarRequestOptions.data = serializeDataIfNeeded(executeRequest, localVarRequestOptions, configuration)
|
|
226
226
|
|
|
227
227
|
return {
|
|
228
228
|
url: toPathString(localVarUrlObj),
|
|
@@ -368,15 +368,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
368
368
|
* Add files to git commit
|
|
369
369
|
* @summary Add files
|
|
370
370
|
* @param {string} workspaceId
|
|
371
|
-
* @param {
|
|
371
|
+
* @param {GitAddRequest} gitAddRequest
|
|
372
372
|
* @param {*} [options] Override http request option.
|
|
373
373
|
* @throws {RequiredError}
|
|
374
374
|
*/
|
|
375
|
-
gitAddFiles: async (workspaceId: string,
|
|
375
|
+
gitAddFiles: async (workspaceId: string, gitAddRequest: GitAddRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
376
376
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
377
377
|
assertParamExists('gitAddFiles', 'workspaceId', workspaceId)
|
|
378
|
-
// verify required parameter '
|
|
379
|
-
assertParamExists('gitAddFiles', '
|
|
378
|
+
// verify required parameter 'gitAddRequest' is not null or undefined
|
|
379
|
+
assertParamExists('gitAddFiles', 'gitAddRequest', gitAddRequest)
|
|
380
380
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/add`
|
|
381
381
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
382
382
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -401,7 +401,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
401
401
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
402
402
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
403
403
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
404
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
404
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitAddRequest, localVarRequestOptions, configuration)
|
|
405
405
|
|
|
406
406
|
return {
|
|
407
407
|
url: toPathString(localVarUrlObj),
|
|
@@ -412,15 +412,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
412
412
|
* Clone git repository
|
|
413
413
|
* @summary Clone repository
|
|
414
414
|
* @param {string} workspaceId
|
|
415
|
-
* @param {
|
|
415
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
416
416
|
* @param {*} [options] Override http request option.
|
|
417
417
|
* @throws {RequiredError}
|
|
418
418
|
*/
|
|
419
|
-
gitCloneRepository: async (workspaceId: string,
|
|
419
|
+
gitCloneRepository: async (workspaceId: string, gitCloneRequest: GitCloneRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
420
420
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
421
421
|
assertParamExists('gitCloneRepository', 'workspaceId', workspaceId)
|
|
422
|
-
// verify required parameter '
|
|
423
|
-
assertParamExists('gitCloneRepository', '
|
|
422
|
+
// verify required parameter 'gitCloneRequest' is not null or undefined
|
|
423
|
+
assertParamExists('gitCloneRepository', 'gitCloneRequest', gitCloneRequest)
|
|
424
424
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/clone`
|
|
425
425
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
426
426
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -445,7 +445,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
445
445
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
446
446
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
447
447
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
448
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
448
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitCloneRequest, localVarRequestOptions, configuration)
|
|
449
449
|
|
|
450
450
|
return {
|
|
451
451
|
url: toPathString(localVarUrlObj),
|
|
@@ -456,15 +456,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
456
456
|
* Commit changes to git repository
|
|
457
457
|
* @summary Commit changes
|
|
458
458
|
* @param {string} workspaceId
|
|
459
|
-
* @param {
|
|
459
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
460
460
|
* @param {*} [options] Override http request option.
|
|
461
461
|
* @throws {RequiredError}
|
|
462
462
|
*/
|
|
463
|
-
gitCommitChanges: async (workspaceId: string,
|
|
463
|
+
gitCommitChanges: async (workspaceId: string, gitCommitRequest: GitCommitRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
464
464
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
465
465
|
assertParamExists('gitCommitChanges', 'workspaceId', workspaceId)
|
|
466
|
-
// verify required parameter '
|
|
467
|
-
assertParamExists('gitCommitChanges', '
|
|
466
|
+
// verify required parameter 'gitCommitRequest' is not null or undefined
|
|
467
|
+
assertParamExists('gitCommitChanges', 'gitCommitRequest', gitCommitRequest)
|
|
468
468
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/commit`
|
|
469
469
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
470
470
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -489,7 +489,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
489
489
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
490
490
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
491
491
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
492
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
492
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitCommitRequest, localVarRequestOptions, configuration)
|
|
493
493
|
|
|
494
494
|
return {
|
|
495
495
|
url: toPathString(localVarUrlObj),
|
|
@@ -500,15 +500,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
500
500
|
* Create branch on git repository
|
|
501
501
|
* @summary Create branch
|
|
502
502
|
* @param {string} workspaceId
|
|
503
|
-
* @param {
|
|
503
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
504
504
|
* @param {*} [options] Override http request option.
|
|
505
505
|
* @throws {RequiredError}
|
|
506
506
|
*/
|
|
507
|
-
gitCreateBranch: async (workspaceId: string,
|
|
507
|
+
gitCreateBranch: async (workspaceId: string, gitBranchRequest: GitBranchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
508
508
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
509
509
|
assertParamExists('gitCreateBranch', 'workspaceId', workspaceId)
|
|
510
|
-
// verify required parameter '
|
|
511
|
-
assertParamExists('gitCreateBranch', '
|
|
510
|
+
// verify required parameter 'gitBranchRequest' is not null or undefined
|
|
511
|
+
assertParamExists('gitCreateBranch', 'gitBranchRequest', gitBranchRequest)
|
|
512
512
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/branches`
|
|
513
513
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
514
514
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -533,7 +533,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
533
533
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
534
534
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
535
535
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
536
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
536
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitBranchRequest, localVarRequestOptions, configuration)
|
|
537
537
|
|
|
538
538
|
return {
|
|
539
539
|
url: toPathString(localVarUrlObj),
|
|
@@ -679,15 +679,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
679
679
|
* Pull changes from remote
|
|
680
680
|
* @summary Pull changes
|
|
681
681
|
* @param {string} workspaceId
|
|
682
|
-
* @param {
|
|
682
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
683
683
|
* @param {*} [options] Override http request option.
|
|
684
684
|
* @throws {RequiredError}
|
|
685
685
|
*/
|
|
686
|
-
gitPullChanges: async (workspaceId: string,
|
|
686
|
+
gitPullChanges: async (workspaceId: string, gitRepoRequest: GitRepoRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
687
687
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
688
688
|
assertParamExists('gitPullChanges', 'workspaceId', workspaceId)
|
|
689
|
-
// verify required parameter '
|
|
690
|
-
assertParamExists('gitPullChanges', '
|
|
689
|
+
// verify required parameter 'gitRepoRequest' is not null or undefined
|
|
690
|
+
assertParamExists('gitPullChanges', 'gitRepoRequest', gitRepoRequest)
|
|
691
691
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/pull`
|
|
692
692
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
693
693
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -712,7 +712,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
712
712
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
713
713
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
714
714
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
715
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
715
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequest, localVarRequestOptions, configuration)
|
|
716
716
|
|
|
717
717
|
return {
|
|
718
718
|
url: toPathString(localVarUrlObj),
|
|
@@ -723,15 +723,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
723
723
|
* Push changes to remote
|
|
724
724
|
* @summary Push changes
|
|
725
725
|
* @param {string} workspaceId
|
|
726
|
-
* @param {
|
|
726
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
727
727
|
* @param {*} [options] Override http request option.
|
|
728
728
|
* @throws {RequiredError}
|
|
729
729
|
*/
|
|
730
|
-
gitPushChanges: async (workspaceId: string,
|
|
730
|
+
gitPushChanges: async (workspaceId: string, gitRepoRequest: GitRepoRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
731
731
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
732
732
|
assertParamExists('gitPushChanges', 'workspaceId', workspaceId)
|
|
733
|
-
// verify required parameter '
|
|
734
|
-
assertParamExists('gitPushChanges', '
|
|
733
|
+
// verify required parameter 'gitRepoRequest' is not null or undefined
|
|
734
|
+
assertParamExists('gitPushChanges', 'gitRepoRequest', gitRepoRequest)
|
|
735
735
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/git/push`
|
|
736
736
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
737
737
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -756,7 +756,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
756
756
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
757
757
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
758
758
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
759
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
759
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gitRepoRequest, localVarRequestOptions, configuration)
|
|
760
760
|
|
|
761
761
|
return {
|
|
762
762
|
url: toPathString(localVarUrlObj),
|
|
@@ -862,15 +862,15 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
862
862
|
* Replace text/pattern in multiple files inside workspace
|
|
863
863
|
* @summary Replace in files
|
|
864
864
|
* @param {string} workspaceId
|
|
865
|
-
* @param {
|
|
865
|
+
* @param {ReplaceRequest} replaceRequest
|
|
866
866
|
* @param {*} [options] Override http request option.
|
|
867
867
|
* @throws {RequiredError}
|
|
868
868
|
*/
|
|
869
|
-
replaceInFiles: async (workspaceId: string,
|
|
869
|
+
replaceInFiles: async (workspaceId: string, replaceRequest: ReplaceRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
870
870
|
// verify required parameter 'workspaceId' is not null or undefined
|
|
871
871
|
assertParamExists('replaceInFiles', 'workspaceId', workspaceId)
|
|
872
|
-
// verify required parameter '
|
|
873
|
-
assertParamExists('replaceInFiles', '
|
|
872
|
+
// verify required parameter 'replaceRequest' is not null or undefined
|
|
873
|
+
assertParamExists('replaceInFiles', 'replaceRequest', replaceRequest)
|
|
874
874
|
const localVarPath = `/toolbox/{workspaceId}/toolbox/files/replace`
|
|
875
875
|
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
876
876
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -895,7 +895,7 @@ export const ToolboxApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
895
895
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
896
896
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
897
897
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
898
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
898
|
+
localVarRequestOptions.data = serializeDataIfNeeded(replaceRequest, localVarRequestOptions, configuration)
|
|
899
899
|
|
|
900
900
|
return {
|
|
901
901
|
url: toPathString(localVarUrlObj),
|
|
@@ -1131,12 +1131,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1131
1131
|
* Execute command synchronously inside workspace
|
|
1132
1132
|
* @summary Execute command
|
|
1133
1133
|
* @param {string} workspaceId
|
|
1134
|
-
* @param {
|
|
1134
|
+
* @param {ExecuteRequest} executeRequest
|
|
1135
1135
|
* @param {*} [options] Override http request option.
|
|
1136
1136
|
* @throws {RequiredError}
|
|
1137
1137
|
*/
|
|
1138
|
-
async executeCommand(workspaceId: string,
|
|
1139
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.executeCommand(workspaceId,
|
|
1138
|
+
async executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteResponse>> {
|
|
1139
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.executeCommand(workspaceId, executeRequest, options);
|
|
1140
1140
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1141
1141
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.executeCommand']?.[localVarOperationServerIndex]?.url;
|
|
1142
1142
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1187,12 +1187,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1187
1187
|
* Add files to git commit
|
|
1188
1188
|
* @summary Add files
|
|
1189
1189
|
* @param {string} workspaceId
|
|
1190
|
-
* @param {
|
|
1190
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1191
1191
|
* @param {*} [options] Override http request option.
|
|
1192
1192
|
* @throws {RequiredError}
|
|
1193
1193
|
*/
|
|
1194
|
-
async gitAddFiles(workspaceId: string,
|
|
1195
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gitAddFiles(workspaceId,
|
|
1194
|
+
async gitAddFiles(workspaceId: string, gitAddRequest: GitAddRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1195
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitAddFiles(workspaceId, gitAddRequest, options);
|
|
1196
1196
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1197
1197
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitAddFiles']?.[localVarOperationServerIndex]?.url;
|
|
1198
1198
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1201,12 +1201,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1201
1201
|
* Clone git repository
|
|
1202
1202
|
* @summary Clone repository
|
|
1203
1203
|
* @param {string} workspaceId
|
|
1204
|
-
* @param {
|
|
1204
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1205
1205
|
* @param {*} [options] Override http request option.
|
|
1206
1206
|
* @throws {RequiredError}
|
|
1207
1207
|
*/
|
|
1208
|
-
async gitCloneRepository(workspaceId: string,
|
|
1209
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCloneRepository(workspaceId,
|
|
1208
|
+
async gitCloneRepository(workspaceId: string, gitCloneRequest: GitCloneRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1209
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCloneRepository(workspaceId, gitCloneRequest, options);
|
|
1210
1210
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1211
1211
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitCloneRepository']?.[localVarOperationServerIndex]?.url;
|
|
1212
1212
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1215,12 +1215,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1215
1215
|
* Commit changes to git repository
|
|
1216
1216
|
* @summary Commit changes
|
|
1217
1217
|
* @param {string} workspaceId
|
|
1218
|
-
* @param {
|
|
1218
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1219
1219
|
* @param {*} [options] Override http request option.
|
|
1220
1220
|
* @throws {RequiredError}
|
|
1221
1221
|
*/
|
|
1222
|
-
async gitCommitChanges(workspaceId: string,
|
|
1223
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCommitChanges(workspaceId,
|
|
1222
|
+
async gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1223
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCommitChanges(workspaceId, gitCommitRequest, options);
|
|
1224
1224
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1225
1225
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitCommitChanges']?.[localVarOperationServerIndex]?.url;
|
|
1226
1226
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1229,12 +1229,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1229
1229
|
* Create branch on git repository
|
|
1230
1230
|
* @summary Create branch
|
|
1231
1231
|
* @param {string} workspaceId
|
|
1232
|
-
* @param {
|
|
1232
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1233
1233
|
* @param {*} [options] Override http request option.
|
|
1234
1234
|
* @throws {RequiredError}
|
|
1235
1235
|
*/
|
|
1236
|
-
async gitCreateBranch(workspaceId: string,
|
|
1237
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCreateBranch(workspaceId,
|
|
1236
|
+
async gitCreateBranch(workspaceId: string, gitBranchRequest: GitBranchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1237
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitCreateBranch(workspaceId, gitBranchRequest, options);
|
|
1238
1238
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1239
1239
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitCreateBranch']?.[localVarOperationServerIndex]?.url;
|
|
1240
1240
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1285,12 +1285,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1285
1285
|
* Pull changes from remote
|
|
1286
1286
|
* @summary Pull changes
|
|
1287
1287
|
* @param {string} workspaceId
|
|
1288
|
-
* @param {
|
|
1288
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1289
1289
|
* @param {*} [options] Override http request option.
|
|
1290
1290
|
* @throws {RequiredError}
|
|
1291
1291
|
*/
|
|
1292
|
-
async gitPullChanges(workspaceId: string,
|
|
1293
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gitPullChanges(workspaceId,
|
|
1292
|
+
async gitPullChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1293
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitPullChanges(workspaceId, gitRepoRequest, options);
|
|
1294
1294
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1295
1295
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitPullChanges']?.[localVarOperationServerIndex]?.url;
|
|
1296
1296
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1299,12 +1299,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1299
1299
|
* Push changes to remote
|
|
1300
1300
|
* @summary Push changes
|
|
1301
1301
|
* @param {string} workspaceId
|
|
1302
|
-
* @param {
|
|
1302
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1303
1303
|
* @param {*} [options] Override http request option.
|
|
1304
1304
|
* @throws {RequiredError}
|
|
1305
1305
|
*/
|
|
1306
|
-
async gitPushChanges(workspaceId: string,
|
|
1307
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gitPushChanges(workspaceId,
|
|
1306
|
+
async gitPushChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1307
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gitPushChanges(workspaceId, gitRepoRequest, options);
|
|
1308
1308
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1309
1309
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.gitPushChanges']?.[localVarOperationServerIndex]?.url;
|
|
1310
1310
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1342,12 +1342,12 @@ export const ToolboxApiFp = function(configuration?: Configuration) {
|
|
|
1342
1342
|
* Replace text/pattern in multiple files inside workspace
|
|
1343
1343
|
* @summary Replace in files
|
|
1344
1344
|
* @param {string} workspaceId
|
|
1345
|
-
* @param {
|
|
1345
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1346
1346
|
* @param {*} [options] Override http request option.
|
|
1347
1347
|
* @throws {RequiredError}
|
|
1348
1348
|
*/
|
|
1349
|
-
async replaceInFiles(workspaceId: string,
|
|
1350
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceInFiles(workspaceId,
|
|
1349
|
+
async replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1350
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceInFiles(workspaceId, replaceRequest, options);
|
|
1351
1351
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1352
1352
|
const localVarOperationServerBasePath = operationServerMap['ToolboxApi.replaceInFiles']?.[localVarOperationServerIndex]?.url;
|
|
1353
1353
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1447,12 +1447,12 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1447
1447
|
* Execute command synchronously inside workspace
|
|
1448
1448
|
* @summary Execute command
|
|
1449
1449
|
* @param {string} workspaceId
|
|
1450
|
-
* @param {
|
|
1450
|
+
* @param {ExecuteRequest} executeRequest
|
|
1451
1451
|
* @param {*} [options] Override http request option.
|
|
1452
1452
|
* @throws {RequiredError}
|
|
1453
1453
|
*/
|
|
1454
|
-
executeCommand(workspaceId: string,
|
|
1455
|
-
return localVarFp.executeCommand(workspaceId,
|
|
1454
|
+
executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExecuteResponse> {
|
|
1455
|
+
return localVarFp.executeCommand(workspaceId, executeRequest, options).then((request) => request(axios, basePath));
|
|
1456
1456
|
},
|
|
1457
1457
|
/**
|
|
1458
1458
|
* Search for text/pattern inside workspace files
|
|
@@ -1491,45 +1491,45 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1491
1491
|
* Add files to git commit
|
|
1492
1492
|
* @summary Add files
|
|
1493
1493
|
* @param {string} workspaceId
|
|
1494
|
-
* @param {
|
|
1494
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1495
1495
|
* @param {*} [options] Override http request option.
|
|
1496
1496
|
* @throws {RequiredError}
|
|
1497
1497
|
*/
|
|
1498
|
-
gitAddFiles(workspaceId: string,
|
|
1499
|
-
return localVarFp.gitAddFiles(workspaceId,
|
|
1498
|
+
gitAddFiles(workspaceId: string, gitAddRequest: GitAddRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1499
|
+
return localVarFp.gitAddFiles(workspaceId, gitAddRequest, options).then((request) => request(axios, basePath));
|
|
1500
1500
|
},
|
|
1501
1501
|
/**
|
|
1502
1502
|
* Clone git repository
|
|
1503
1503
|
* @summary Clone repository
|
|
1504
1504
|
* @param {string} workspaceId
|
|
1505
|
-
* @param {
|
|
1505
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1506
1506
|
* @param {*} [options] Override http request option.
|
|
1507
1507
|
* @throws {RequiredError}
|
|
1508
1508
|
*/
|
|
1509
|
-
gitCloneRepository(workspaceId: string,
|
|
1510
|
-
return localVarFp.gitCloneRepository(workspaceId,
|
|
1509
|
+
gitCloneRepository(workspaceId: string, gitCloneRequest: GitCloneRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1510
|
+
return localVarFp.gitCloneRepository(workspaceId, gitCloneRequest, options).then((request) => request(axios, basePath));
|
|
1511
1511
|
},
|
|
1512
1512
|
/**
|
|
1513
1513
|
* Commit changes to git repository
|
|
1514
1514
|
* @summary Commit changes
|
|
1515
1515
|
* @param {string} workspaceId
|
|
1516
|
-
* @param {
|
|
1516
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1517
1517
|
* @param {*} [options] Override http request option.
|
|
1518
1518
|
* @throws {RequiredError}
|
|
1519
1519
|
*/
|
|
1520
|
-
gitCommitChanges(workspaceId: string,
|
|
1521
|
-
return localVarFp.gitCommitChanges(workspaceId,
|
|
1520
|
+
gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1521
|
+
return localVarFp.gitCommitChanges(workspaceId, gitCommitRequest, options).then((request) => request(axios, basePath));
|
|
1522
1522
|
},
|
|
1523
1523
|
/**
|
|
1524
1524
|
* Create branch on git repository
|
|
1525
1525
|
* @summary Create branch
|
|
1526
1526
|
* @param {string} workspaceId
|
|
1527
|
-
* @param {
|
|
1527
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1528
1528
|
* @param {*} [options] Override http request option.
|
|
1529
1529
|
* @throws {RequiredError}
|
|
1530
1530
|
*/
|
|
1531
|
-
gitCreateBranch(workspaceId: string,
|
|
1532
|
-
return localVarFp.gitCreateBranch(workspaceId,
|
|
1531
|
+
gitCreateBranch(workspaceId: string, gitBranchRequest: GitBranchRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1532
|
+
return localVarFp.gitCreateBranch(workspaceId, gitBranchRequest, options).then((request) => request(axios, basePath));
|
|
1533
1533
|
},
|
|
1534
1534
|
/**
|
|
1535
1535
|
* Get commit history from git repository
|
|
@@ -1568,23 +1568,23 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1568
1568
|
* Pull changes from remote
|
|
1569
1569
|
* @summary Pull changes
|
|
1570
1570
|
* @param {string} workspaceId
|
|
1571
|
-
* @param {
|
|
1571
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1572
1572
|
* @param {*} [options] Override http request option.
|
|
1573
1573
|
* @throws {RequiredError}
|
|
1574
1574
|
*/
|
|
1575
|
-
gitPullChanges(workspaceId: string,
|
|
1576
|
-
return localVarFp.gitPullChanges(workspaceId,
|
|
1575
|
+
gitPullChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1576
|
+
return localVarFp.gitPullChanges(workspaceId, gitRepoRequest, options).then((request) => request(axios, basePath));
|
|
1577
1577
|
},
|
|
1578
1578
|
/**
|
|
1579
1579
|
* Push changes to remote
|
|
1580
1580
|
* @summary Push changes
|
|
1581
1581
|
* @param {string} workspaceId
|
|
1582
|
-
* @param {
|
|
1582
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1583
1583
|
* @param {*} [options] Override http request option.
|
|
1584
1584
|
* @throws {RequiredError}
|
|
1585
1585
|
*/
|
|
1586
|
-
gitPushChanges(workspaceId: string,
|
|
1587
|
-
return localVarFp.gitPushChanges(workspaceId,
|
|
1586
|
+
gitPushChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1587
|
+
return localVarFp.gitPushChanges(workspaceId, gitRepoRequest, options).then((request) => request(axios, basePath));
|
|
1588
1588
|
},
|
|
1589
1589
|
/**
|
|
1590
1590
|
*
|
|
@@ -1613,12 +1613,12 @@ export const ToolboxApiFactory = function (configuration?: Configuration, basePa
|
|
|
1613
1613
|
* Replace text/pattern in multiple files inside workspace
|
|
1614
1614
|
* @summary Replace in files
|
|
1615
1615
|
* @param {string} workspaceId
|
|
1616
|
-
* @param {
|
|
1616
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1617
1617
|
* @param {*} [options] Override http request option.
|
|
1618
1618
|
* @throws {RequiredError}
|
|
1619
1619
|
*/
|
|
1620
|
-
replaceInFiles(workspaceId: string,
|
|
1621
|
-
return localVarFp.replaceInFiles(workspaceId,
|
|
1620
|
+
replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1621
|
+
return localVarFp.replaceInFiles(workspaceId, replaceRequest, options).then((request) => request(axios, basePath));
|
|
1622
1622
|
},
|
|
1623
1623
|
/**
|
|
1624
1624
|
* Search for files inside workspace
|
|
@@ -1712,13 +1712,13 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1712
1712
|
* Execute command synchronously inside workspace
|
|
1713
1713
|
* @summary Execute command
|
|
1714
1714
|
* @param {string} workspaceId
|
|
1715
|
-
* @param {
|
|
1715
|
+
* @param {ExecuteRequest} executeRequest
|
|
1716
1716
|
* @param {*} [options] Override http request option.
|
|
1717
1717
|
* @throws {RequiredError}
|
|
1718
1718
|
* @memberof ToolboxApi
|
|
1719
1719
|
*/
|
|
1720
|
-
public executeCommand(workspaceId: string,
|
|
1721
|
-
return ToolboxApiFp(this.configuration).executeCommand(workspaceId,
|
|
1720
|
+
public executeCommand(workspaceId: string, executeRequest: ExecuteRequest, options?: RawAxiosRequestConfig) {
|
|
1721
|
+
return ToolboxApiFp(this.configuration).executeCommand(workspaceId, executeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1722
1722
|
}
|
|
1723
1723
|
|
|
1724
1724
|
/**
|
|
@@ -1764,52 +1764,52 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1764
1764
|
* Add files to git commit
|
|
1765
1765
|
* @summary Add files
|
|
1766
1766
|
* @param {string} workspaceId
|
|
1767
|
-
* @param {
|
|
1767
|
+
* @param {GitAddRequest} gitAddRequest
|
|
1768
1768
|
* @param {*} [options] Override http request option.
|
|
1769
1769
|
* @throws {RequiredError}
|
|
1770
1770
|
* @memberof ToolboxApi
|
|
1771
1771
|
*/
|
|
1772
|
-
public gitAddFiles(workspaceId: string,
|
|
1773
|
-
return ToolboxApiFp(this.configuration).gitAddFiles(workspaceId,
|
|
1772
|
+
public gitAddFiles(workspaceId: string, gitAddRequest: GitAddRequest, options?: RawAxiosRequestConfig) {
|
|
1773
|
+
return ToolboxApiFp(this.configuration).gitAddFiles(workspaceId, gitAddRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1774
1774
|
}
|
|
1775
1775
|
|
|
1776
1776
|
/**
|
|
1777
1777
|
* Clone git repository
|
|
1778
1778
|
* @summary Clone repository
|
|
1779
1779
|
* @param {string} workspaceId
|
|
1780
|
-
* @param {
|
|
1780
|
+
* @param {GitCloneRequest} gitCloneRequest
|
|
1781
1781
|
* @param {*} [options] Override http request option.
|
|
1782
1782
|
* @throws {RequiredError}
|
|
1783
1783
|
* @memberof ToolboxApi
|
|
1784
1784
|
*/
|
|
1785
|
-
public gitCloneRepository(workspaceId: string,
|
|
1786
|
-
return ToolboxApiFp(this.configuration).gitCloneRepository(workspaceId,
|
|
1785
|
+
public gitCloneRepository(workspaceId: string, gitCloneRequest: GitCloneRequest, options?: RawAxiosRequestConfig) {
|
|
1786
|
+
return ToolboxApiFp(this.configuration).gitCloneRepository(workspaceId, gitCloneRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1787
1787
|
}
|
|
1788
1788
|
|
|
1789
1789
|
/**
|
|
1790
1790
|
* Commit changes to git repository
|
|
1791
1791
|
* @summary Commit changes
|
|
1792
1792
|
* @param {string} workspaceId
|
|
1793
|
-
* @param {
|
|
1793
|
+
* @param {GitCommitRequest} gitCommitRequest
|
|
1794
1794
|
* @param {*} [options] Override http request option.
|
|
1795
1795
|
* @throws {RequiredError}
|
|
1796
1796
|
* @memberof ToolboxApi
|
|
1797
1797
|
*/
|
|
1798
|
-
public gitCommitChanges(workspaceId: string,
|
|
1799
|
-
return ToolboxApiFp(this.configuration).gitCommitChanges(workspaceId,
|
|
1798
|
+
public gitCommitChanges(workspaceId: string, gitCommitRequest: GitCommitRequest, options?: RawAxiosRequestConfig) {
|
|
1799
|
+
return ToolboxApiFp(this.configuration).gitCommitChanges(workspaceId, gitCommitRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1800
1800
|
}
|
|
1801
1801
|
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Create branch on git repository
|
|
1804
1804
|
* @summary Create branch
|
|
1805
1805
|
* @param {string} workspaceId
|
|
1806
|
-
* @param {
|
|
1806
|
+
* @param {GitBranchRequest} gitBranchRequest
|
|
1807
1807
|
* @param {*} [options] Override http request option.
|
|
1808
1808
|
* @throws {RequiredError}
|
|
1809
1809
|
* @memberof ToolboxApi
|
|
1810
1810
|
*/
|
|
1811
|
-
public gitCreateBranch(workspaceId: string,
|
|
1812
|
-
return ToolboxApiFp(this.configuration).gitCreateBranch(workspaceId,
|
|
1811
|
+
public gitCreateBranch(workspaceId: string, gitBranchRequest: GitBranchRequest, options?: RawAxiosRequestConfig) {
|
|
1812
|
+
return ToolboxApiFp(this.configuration).gitCreateBranch(workspaceId, gitBranchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1813
1813
|
}
|
|
1814
1814
|
|
|
1815
1815
|
/**
|
|
@@ -1855,26 +1855,26 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1855
1855
|
* Pull changes from remote
|
|
1856
1856
|
* @summary Pull changes
|
|
1857
1857
|
* @param {string} workspaceId
|
|
1858
|
-
* @param {
|
|
1858
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1859
1859
|
* @param {*} [options] Override http request option.
|
|
1860
1860
|
* @throws {RequiredError}
|
|
1861
1861
|
* @memberof ToolboxApi
|
|
1862
1862
|
*/
|
|
1863
|
-
public gitPullChanges(workspaceId: string,
|
|
1864
|
-
return ToolboxApiFp(this.configuration).gitPullChanges(workspaceId,
|
|
1863
|
+
public gitPullChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig) {
|
|
1864
|
+
return ToolboxApiFp(this.configuration).gitPullChanges(workspaceId, gitRepoRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1865
1865
|
}
|
|
1866
1866
|
|
|
1867
1867
|
/**
|
|
1868
1868
|
* Push changes to remote
|
|
1869
1869
|
* @summary Push changes
|
|
1870
1870
|
* @param {string} workspaceId
|
|
1871
|
-
* @param {
|
|
1871
|
+
* @param {GitRepoRequest} gitRepoRequest
|
|
1872
1872
|
* @param {*} [options] Override http request option.
|
|
1873
1873
|
* @throws {RequiredError}
|
|
1874
1874
|
* @memberof ToolboxApi
|
|
1875
1875
|
*/
|
|
1876
|
-
public gitPushChanges(workspaceId: string,
|
|
1877
|
-
return ToolboxApiFp(this.configuration).gitPushChanges(workspaceId,
|
|
1876
|
+
public gitPushChanges(workspaceId: string, gitRepoRequest: GitRepoRequest, options?: RawAxiosRequestConfig) {
|
|
1877
|
+
return ToolboxApiFp(this.configuration).gitPushChanges(workspaceId, gitRepoRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1878
1878
|
}
|
|
1879
1879
|
|
|
1880
1880
|
/**
|
|
@@ -1908,13 +1908,13 @@ export class ToolboxApi extends BaseAPI {
|
|
|
1908
1908
|
* Replace text/pattern in multiple files inside workspace
|
|
1909
1909
|
* @summary Replace in files
|
|
1910
1910
|
* @param {string} workspaceId
|
|
1911
|
-
* @param {
|
|
1911
|
+
* @param {ReplaceRequest} replaceRequest
|
|
1912
1912
|
* @param {*} [options] Override http request option.
|
|
1913
1913
|
* @throws {RequiredError}
|
|
1914
1914
|
* @memberof ToolboxApi
|
|
1915
1915
|
*/
|
|
1916
|
-
public replaceInFiles(workspaceId: string,
|
|
1917
|
-
return ToolboxApiFp(this.configuration).replaceInFiles(workspaceId,
|
|
1916
|
+
public replaceInFiles(workspaceId: string, replaceRequest: ReplaceRequest, options?: RawAxiosRequestConfig) {
|
|
1917
|
+
return ToolboxApiFp(this.configuration).replaceInFiles(workspaceId, replaceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1918
1918
|
}
|
|
1919
1919
|
|
|
1920
1920
|
/**
|