@orangefox-recovery/foxinternalclient 5.2.4 → 5.2.6
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 +3 -0
- package/README.md +11 -2
- package/api.ts +897 -62
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +462 -25
- package/dist/api.js +614 -10
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +462 -25
- package/dist/esm/api.js +609 -9
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BuildStatusEnum.md +2 -0
- package/docs/BuildTaskResponse.md +11 -5
- package/docs/BuildTaskShortResponse.md +10 -4
- package/docs/FoxFactoryApi.md +174 -8
- package/docs/InternalApi.md +114 -0
- package/docs/PasteApi.md +117 -0
- package/docs/PasteInput.md +26 -0
- package/docs/PasteOutput.md +26 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
5
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.2.
|
|
7
|
+
* The version of the OpenAPI document: 5.2.6
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -35,6 +35,7 @@ export const BuildStatusEnum = {
|
|
|
35
35
|
Pending: 'pending',
|
|
36
36
|
Running: 'running',
|
|
37
37
|
Cancelling: 'cancelling',
|
|
38
|
+
Uploading: 'uploading',
|
|
38
39
|
Success: 'success',
|
|
39
40
|
Cancelled: 'cancelled',
|
|
40
41
|
Failed: 'failed'
|
|
@@ -474,6 +475,12 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration) {
|
|
|
474
475
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
475
476
|
const localVarHeaderParameter = {};
|
|
476
477
|
const localVarQueryParameter = {};
|
|
478
|
+
// authentication oauth2_password required
|
|
479
|
+
// oauth required
|
|
480
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
481
|
+
// authentication bearer_auth required
|
|
482
|
+
// http bearer authentication required
|
|
483
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
477
484
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
478
485
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
479
486
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -483,7 +490,7 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration) {
|
|
|
483
490
|
};
|
|
484
491
|
}),
|
|
485
492
|
/**
|
|
486
|
-
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
493
|
+
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
|
|
487
494
|
* @summary Delete Task
|
|
488
495
|
* @param {string} taskId
|
|
489
496
|
* @param {*} [options] Override http request option.
|
|
@@ -503,6 +510,12 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration) {
|
|
|
503
510
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
504
511
|
const localVarHeaderParameter = {};
|
|
505
512
|
const localVarQueryParameter = {};
|
|
513
|
+
// authentication oauth2_password required
|
|
514
|
+
// oauth required
|
|
515
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
516
|
+
// authentication bearer_auth required
|
|
517
|
+
// http bearer authentication required
|
|
518
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
506
519
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
507
520
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
508
521
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -512,7 +525,42 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration) {
|
|
|
512
525
|
};
|
|
513
526
|
}),
|
|
514
527
|
/**
|
|
515
|
-
*
|
|
528
|
+
* Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
|
|
529
|
+
* @summary Download Artifact
|
|
530
|
+
* @param {string} taskId
|
|
531
|
+
* @param {*} [options] Override http request option.
|
|
532
|
+
* @throws {RequiredError}
|
|
533
|
+
*/
|
|
534
|
+
downloadArtifactFactoryTaskIdArtifactGet: (taskId_1, ...args_1) => __awaiter(this, [taskId_1, ...args_1], void 0, function* (taskId, options = {}) {
|
|
535
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
536
|
+
assertParamExists('downloadArtifactFactoryTaskIdArtifactGet', 'taskId', taskId);
|
|
537
|
+
const localVarPath = `/factory/{task_id}/artifact`
|
|
538
|
+
.replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
|
|
539
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
540
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
541
|
+
let baseOptions;
|
|
542
|
+
if (configuration) {
|
|
543
|
+
baseOptions = configuration.baseOptions;
|
|
544
|
+
}
|
|
545
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
546
|
+
const localVarHeaderParameter = {};
|
|
547
|
+
const localVarQueryParameter = {};
|
|
548
|
+
// authentication oauth2_password required
|
|
549
|
+
// oauth required
|
|
550
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
551
|
+
// authentication bearer_auth required
|
|
552
|
+
// http bearer authentication required
|
|
553
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
554
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
555
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
556
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
557
|
+
return {
|
|
558
|
+
url: toPathString(localVarUrlObj),
|
|
559
|
+
options: localVarRequestOptions,
|
|
560
|
+
};
|
|
561
|
+
}),
|
|
562
|
+
/**
|
|
563
|
+
* Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
|
|
516
564
|
* @summary Factory Status
|
|
517
565
|
* @param {*} [options] Override http request option.
|
|
518
566
|
* @throws {RequiredError}
|
|
@@ -528,6 +576,12 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration) {
|
|
|
528
576
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
529
577
|
const localVarHeaderParameter = {};
|
|
530
578
|
const localVarQueryParameter = {};
|
|
579
|
+
// authentication oauth2_password required
|
|
580
|
+
// oauth required
|
|
581
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
582
|
+
// authentication bearer_auth required
|
|
583
|
+
// http bearer authentication required
|
|
584
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
531
585
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
532
586
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
533
587
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -557,6 +611,12 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration) {
|
|
|
557
611
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
558
612
|
const localVarHeaderParameter = {};
|
|
559
613
|
const localVarQueryParameter = {};
|
|
614
|
+
// authentication oauth2_password required
|
|
615
|
+
// oauth required
|
|
616
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
617
|
+
// authentication bearer_auth required
|
|
618
|
+
// http bearer authentication required
|
|
619
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
560
620
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
561
621
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
562
622
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -583,6 +643,12 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration) {
|
|
|
583
643
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
584
644
|
const localVarHeaderParameter = {};
|
|
585
645
|
const localVarQueryParameter = {};
|
|
646
|
+
// authentication oauth2_password required
|
|
647
|
+
// oauth required
|
|
648
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
649
|
+
// authentication bearer_auth required
|
|
650
|
+
// http bearer authentication required
|
|
651
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
586
652
|
if (deviceId !== undefined) {
|
|
587
653
|
localVarQueryParameter['device_id'] = deviceId;
|
|
588
654
|
}
|
|
@@ -614,6 +680,12 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration) {
|
|
|
614
680
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
615
681
|
const localVarHeaderParameter = {};
|
|
616
682
|
const localVarQueryParameter = {};
|
|
683
|
+
// authentication oauth2_password required
|
|
684
|
+
// oauth required
|
|
685
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
686
|
+
// authentication bearer_auth required
|
|
687
|
+
// http bearer authentication required
|
|
688
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
617
689
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
618
690
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
619
691
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -648,6 +720,12 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration) {
|
|
|
648
720
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
649
721
|
const localVarHeaderParameter = {};
|
|
650
722
|
const localVarQueryParameter = {};
|
|
723
|
+
// authentication oauth2_password required
|
|
724
|
+
// oauth required
|
|
725
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
726
|
+
// authentication bearer_auth required
|
|
727
|
+
// http bearer authentication required
|
|
728
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
651
729
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
652
730
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
653
731
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -658,6 +736,92 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration) {
|
|
|
658
736
|
options: localVarRequestOptions,
|
|
659
737
|
};
|
|
660
738
|
}),
|
|
739
|
+
/**
|
|
740
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
741
|
+
* @summary Update Worker Status
|
|
742
|
+
* @param {string} body
|
|
743
|
+
* @param {*} [options] Override http request option.
|
|
744
|
+
* @throws {RequiredError}
|
|
745
|
+
*/
|
|
746
|
+
updateWorkerStatusFactoryUpdateStatusPost: (body_1, ...args_1) => __awaiter(this, [body_1, ...args_1], void 0, function* (body, options = {}) {
|
|
747
|
+
// verify required parameter 'body' is not null or undefined
|
|
748
|
+
assertParamExists('updateWorkerStatusFactoryUpdateStatusPost', 'body', body);
|
|
749
|
+
const localVarPath = `/factory/update_status`;
|
|
750
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
751
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
752
|
+
let baseOptions;
|
|
753
|
+
if (configuration) {
|
|
754
|
+
baseOptions = configuration.baseOptions;
|
|
755
|
+
}
|
|
756
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
757
|
+
const localVarHeaderParameter = {};
|
|
758
|
+
const localVarQueryParameter = {};
|
|
759
|
+
// authentication oauth2_password required
|
|
760
|
+
// oauth required
|
|
761
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
762
|
+
// authentication bearer_auth required
|
|
763
|
+
// http bearer authentication required
|
|
764
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
765
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
766
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
767
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
768
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
769
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
770
|
+
return {
|
|
771
|
+
url: toPathString(localVarUrlObj),
|
|
772
|
+
options: localVarRequestOptions,
|
|
773
|
+
};
|
|
774
|
+
}),
|
|
775
|
+
/**
|
|
776
|
+
* Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
|
|
777
|
+
* @summary Upload Artifact
|
|
778
|
+
* @param {string} taskId
|
|
779
|
+
* @param {File} artifact
|
|
780
|
+
* @param {string} md5Hash
|
|
781
|
+
* @param {*} [options] Override http request option.
|
|
782
|
+
* @throws {RequiredError}
|
|
783
|
+
*/
|
|
784
|
+
uploadArtifactFactoryTaskIdArtifactPost: (taskId_1, artifact_1, md5Hash_1, ...args_1) => __awaiter(this, [taskId_1, artifact_1, md5Hash_1, ...args_1], void 0, function* (taskId, artifact, md5Hash, options = {}) {
|
|
785
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
786
|
+
assertParamExists('uploadArtifactFactoryTaskIdArtifactPost', 'taskId', taskId);
|
|
787
|
+
// verify required parameter 'artifact' is not null or undefined
|
|
788
|
+
assertParamExists('uploadArtifactFactoryTaskIdArtifactPost', 'artifact', artifact);
|
|
789
|
+
// verify required parameter 'md5Hash' is not null or undefined
|
|
790
|
+
assertParamExists('uploadArtifactFactoryTaskIdArtifactPost', 'md5Hash', md5Hash);
|
|
791
|
+
const localVarPath = `/factory/{task_id}/artifact`
|
|
792
|
+
.replace(`{${"task_id"}}`, encodeURIComponent(String(taskId)));
|
|
793
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
794
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
795
|
+
let baseOptions;
|
|
796
|
+
if (configuration) {
|
|
797
|
+
baseOptions = configuration.baseOptions;
|
|
798
|
+
}
|
|
799
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
800
|
+
const localVarHeaderParameter = {};
|
|
801
|
+
const localVarQueryParameter = {};
|
|
802
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
803
|
+
// authentication oauth2_password required
|
|
804
|
+
// oauth required
|
|
805
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
806
|
+
// authentication bearer_auth required
|
|
807
|
+
// http bearer authentication required
|
|
808
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
809
|
+
if (artifact !== undefined) {
|
|
810
|
+
localVarFormParams.append('artifact', artifact);
|
|
811
|
+
}
|
|
812
|
+
if (md5Hash !== undefined) {
|
|
813
|
+
localVarFormParams.append('md5_hash', md5Hash);
|
|
814
|
+
}
|
|
815
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
816
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
817
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
818
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
819
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
820
|
+
return {
|
|
821
|
+
url: toPathString(localVarUrlObj),
|
|
822
|
+
options: localVarRequestOptions,
|
|
823
|
+
};
|
|
824
|
+
}),
|
|
661
825
|
};
|
|
662
826
|
};
|
|
663
827
|
/**
|
|
@@ -684,7 +848,7 @@ export const FoxFactoryApiFp = function (configuration) {
|
|
|
684
848
|
});
|
|
685
849
|
},
|
|
686
850
|
/**
|
|
687
|
-
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
851
|
+
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
|
|
688
852
|
* @summary Delete Task
|
|
689
853
|
* @param {string} taskId
|
|
690
854
|
* @param {*} [options] Override http request option.
|
|
@@ -700,7 +864,23 @@ export const FoxFactoryApiFp = function (configuration) {
|
|
|
700
864
|
});
|
|
701
865
|
},
|
|
702
866
|
/**
|
|
703
|
-
*
|
|
867
|
+
* Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
|
|
868
|
+
* @summary Download Artifact
|
|
869
|
+
* @param {string} taskId
|
|
870
|
+
* @param {*} [options] Override http request option.
|
|
871
|
+
* @throws {RequiredError}
|
|
872
|
+
*/
|
|
873
|
+
downloadArtifactFactoryTaskIdArtifactGet(taskId, options) {
|
|
874
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
875
|
+
var _a, _b, _c;
|
|
876
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.downloadArtifactFactoryTaskIdArtifactGet(taskId, options);
|
|
877
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
878
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.downloadArtifactFactoryTaskIdArtifactGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
879
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
880
|
+
});
|
|
881
|
+
},
|
|
882
|
+
/**
|
|
883
|
+
* Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
|
|
704
884
|
* @summary Factory Status
|
|
705
885
|
* @param {*} [options] Override http request option.
|
|
706
886
|
* @throws {RequiredError}
|
|
@@ -779,6 +959,40 @@ export const FoxFactoryApiFp = function (configuration) {
|
|
|
779
959
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
780
960
|
});
|
|
781
961
|
},
|
|
962
|
+
/**
|
|
963
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
964
|
+
* @summary Update Worker Status
|
|
965
|
+
* @param {string} body
|
|
966
|
+
* @param {*} [options] Override http request option.
|
|
967
|
+
* @throws {RequiredError}
|
|
968
|
+
*/
|
|
969
|
+
updateWorkerStatusFactoryUpdateStatusPost(body, options) {
|
|
970
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
971
|
+
var _a, _b, _c;
|
|
972
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWorkerStatusFactoryUpdateStatusPost(body, options);
|
|
973
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
974
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.updateWorkerStatusFactoryUpdateStatusPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
975
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
976
|
+
});
|
|
977
|
+
},
|
|
978
|
+
/**
|
|
979
|
+
* Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
|
|
980
|
+
* @summary Upload Artifact
|
|
981
|
+
* @param {string} taskId
|
|
982
|
+
* @param {File} artifact
|
|
983
|
+
* @param {string} md5Hash
|
|
984
|
+
* @param {*} [options] Override http request option.
|
|
985
|
+
* @throws {RequiredError}
|
|
986
|
+
*/
|
|
987
|
+
uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options) {
|
|
988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
989
|
+
var _a, _b, _c;
|
|
990
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options);
|
|
991
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
992
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FoxFactoryApi.uploadArtifactFactoryTaskIdArtifactPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
993
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
994
|
+
});
|
|
995
|
+
},
|
|
782
996
|
};
|
|
783
997
|
};
|
|
784
998
|
/**
|
|
@@ -799,7 +1013,7 @@ export const FoxFactoryApiFactory = function (configuration, basePath, axios) {
|
|
|
799
1013
|
return localVarFp.cancelTaskFactoryTaskIdCancelPost(taskId, options).then((request) => request(axios, basePath));
|
|
800
1014
|
},
|
|
801
1015
|
/**
|
|
802
|
-
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
1016
|
+
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
|
|
803
1017
|
* @summary Delete Task
|
|
804
1018
|
* @param {string} taskId
|
|
805
1019
|
* @param {*} [options] Override http request option.
|
|
@@ -809,7 +1023,17 @@ export const FoxFactoryApiFactory = function (configuration, basePath, axios) {
|
|
|
809
1023
|
return localVarFp.deleteTaskFactoryTaskIdDelete(taskId, options).then((request) => request(axios, basePath));
|
|
810
1024
|
},
|
|
811
1025
|
/**
|
|
812
|
-
*
|
|
1026
|
+
* Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
|
|
1027
|
+
* @summary Download Artifact
|
|
1028
|
+
* @param {string} taskId
|
|
1029
|
+
* @param {*} [options] Override http request option.
|
|
1030
|
+
* @throws {RequiredError}
|
|
1031
|
+
*/
|
|
1032
|
+
downloadArtifactFactoryTaskIdArtifactGet(taskId, options) {
|
|
1033
|
+
return localVarFp.downloadArtifactFactoryTaskIdArtifactGet(taskId, options).then((request) => request(axios, basePath));
|
|
1034
|
+
},
|
|
1035
|
+
/**
|
|
1036
|
+
* Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
|
|
813
1037
|
* @summary Factory Status
|
|
814
1038
|
* @param {*} [options] Override http request option.
|
|
815
1039
|
* @throws {RequiredError}
|
|
@@ -858,6 +1082,28 @@ export const FoxFactoryApiFactory = function (configuration, basePath, axios) {
|
|
|
858
1082
|
updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
|
|
859
1083
|
return localVarFp.updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options).then((request) => request(axios, basePath));
|
|
860
1084
|
},
|
|
1085
|
+
/**
|
|
1086
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
1087
|
+
* @summary Update Worker Status
|
|
1088
|
+
* @param {string} body
|
|
1089
|
+
* @param {*} [options] Override http request option.
|
|
1090
|
+
* @throws {RequiredError}
|
|
1091
|
+
*/
|
|
1092
|
+
updateWorkerStatusFactoryUpdateStatusPost(body, options) {
|
|
1093
|
+
return localVarFp.updateWorkerStatusFactoryUpdateStatusPost(body, options).then((request) => request(axios, basePath));
|
|
1094
|
+
},
|
|
1095
|
+
/**
|
|
1096
|
+
* Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
|
|
1097
|
+
* @summary Upload Artifact
|
|
1098
|
+
* @param {string} taskId
|
|
1099
|
+
* @param {File} artifact
|
|
1100
|
+
* @param {string} md5Hash
|
|
1101
|
+
* @param {*} [options] Override http request option.
|
|
1102
|
+
* @throws {RequiredError}
|
|
1103
|
+
*/
|
|
1104
|
+
uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options) {
|
|
1105
|
+
return localVarFp.uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options).then((request) => request(axios, basePath));
|
|
1106
|
+
},
|
|
861
1107
|
};
|
|
862
1108
|
};
|
|
863
1109
|
/**
|
|
@@ -879,7 +1125,7 @@ export class FoxFactoryApi extends BaseAPI {
|
|
|
879
1125
|
return FoxFactoryApiFp(this.configuration).cancelTaskFactoryTaskIdCancelPost(taskId, options).then((request) => request(this.axios, this.basePath));
|
|
880
1126
|
}
|
|
881
1127
|
/**
|
|
882
|
-
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised.
|
|
1128
|
+
* Deletes a build task given its identifier. If the task with the specified ID is not found, a 404 HTTP exception is raised. Also deletes any associated artifact files.
|
|
883
1129
|
* @summary Delete Task
|
|
884
1130
|
* @param {string} taskId
|
|
885
1131
|
* @param {*} [options] Override http request option.
|
|
@@ -890,7 +1136,18 @@ export class FoxFactoryApi extends BaseAPI {
|
|
|
890
1136
|
return FoxFactoryApiFp(this.configuration).deleteTaskFactoryTaskIdDelete(taskId, options).then((request) => request(this.axios, this.basePath));
|
|
891
1137
|
}
|
|
892
1138
|
/**
|
|
893
|
-
*
|
|
1139
|
+
* Download the artifact file for a specific build task. This endpoint allows maintainers and foxfactory workers to download the artifact file associated with a build task. Parameters: task_id: The ID of the build task
|
|
1140
|
+
* @summary Download Artifact
|
|
1141
|
+
* @param {string} taskId
|
|
1142
|
+
* @param {*} [options] Override http request option.
|
|
1143
|
+
* @throws {RequiredError}
|
|
1144
|
+
* @memberof FoxFactoryApi
|
|
1145
|
+
*/
|
|
1146
|
+
downloadArtifactFactoryTaskIdArtifactGet(taskId, options) {
|
|
1147
|
+
return FoxFactoryApiFp(this.configuration).downloadArtifactFactoryTaskIdArtifactGet(taskId, options).then((request) => request(this.axios, this.basePath));
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Endpoint for clients to get the current status of the worker. If the last update was longer than the defined timeout, worker is considered offline.
|
|
894
1151
|
* @summary Factory Status
|
|
895
1152
|
* @param {*} [options] Override http request option.
|
|
896
1153
|
* @throws {RequiredError}
|
|
@@ -944,6 +1201,30 @@ export class FoxFactoryApi extends BaseAPI {
|
|
|
944
1201
|
updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options) {
|
|
945
1202
|
return FoxFactoryApiFp(this.configuration).updateTaskFactoryTaskIdPatch(taskId, taskUpdateBody, options).then((request) => request(this.axios, this.basePath));
|
|
946
1203
|
}
|
|
1204
|
+
/**
|
|
1205
|
+
* Endpoint for FoxFactory worker to update its status.
|
|
1206
|
+
* @summary Update Worker Status
|
|
1207
|
+
* @param {string} body
|
|
1208
|
+
* @param {*} [options] Override http request option.
|
|
1209
|
+
* @throws {RequiredError}
|
|
1210
|
+
* @memberof FoxFactoryApi
|
|
1211
|
+
*/
|
|
1212
|
+
updateWorkerStatusFactoryUpdateStatusPost(body, options) {
|
|
1213
|
+
return FoxFactoryApiFp(this.configuration).updateWorkerStatusFactoryUpdateStatusPost(body, options).then((request) => request(this.axios, this.basePath));
|
|
1214
|
+
}
|
|
1215
|
+
/**
|
|
1216
|
+
* Upload an artifact zip file for a specific build task. This endpoint allows foxfactory workers to upload an artifact zip file, verifies its MD5 hash, and stores it in the appropriate directory. Parameters: task_id: The ID of the build task artifact: The artifact zip file to upload md5_hash: The expected MD5 hash of the artifact file
|
|
1217
|
+
* @summary Upload Artifact
|
|
1218
|
+
* @param {string} taskId
|
|
1219
|
+
* @param {File} artifact
|
|
1220
|
+
* @param {string} md5Hash
|
|
1221
|
+
* @param {*} [options] Override http request option.
|
|
1222
|
+
* @throws {RequiredError}
|
|
1223
|
+
* @memberof FoxFactoryApi
|
|
1224
|
+
*/
|
|
1225
|
+
uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options) {
|
|
1226
|
+
return FoxFactoryApiFp(this.configuration).uploadArtifactFactoryTaskIdArtifactPost(taskId, artifact, md5Hash, options).then((request) => request(this.axios, this.basePath));
|
|
1227
|
+
}
|
|
947
1228
|
}
|
|
948
1229
|
/**
|
|
949
1230
|
* GitlabApi - axios parameter creator
|
|
@@ -1125,6 +1406,41 @@ export const InternalApiAxiosParamCreator = function (configuration) {
|
|
|
1125
1406
|
options: localVarRequestOptions,
|
|
1126
1407
|
};
|
|
1127
1408
|
}),
|
|
1409
|
+
/**
|
|
1410
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
1411
|
+
* @summary Delete Paste
|
|
1412
|
+
* @param {string} pasteId
|
|
1413
|
+
* @param {*} [options] Override http request option.
|
|
1414
|
+
* @throws {RequiredError}
|
|
1415
|
+
*/
|
|
1416
|
+
deletePasteInternalPastePasteIdDelete: (pasteId_1, ...args_1) => __awaiter(this, [pasteId_1, ...args_1], void 0, function* (pasteId, options = {}) {
|
|
1417
|
+
// verify required parameter 'pasteId' is not null or undefined
|
|
1418
|
+
assertParamExists('deletePasteInternalPastePasteIdDelete', 'pasteId', pasteId);
|
|
1419
|
+
const localVarPath = `/internal/paste/{paste_id}`
|
|
1420
|
+
.replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
|
|
1421
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1422
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1423
|
+
let baseOptions;
|
|
1424
|
+
if (configuration) {
|
|
1425
|
+
baseOptions = configuration.baseOptions;
|
|
1426
|
+
}
|
|
1427
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1428
|
+
const localVarHeaderParameter = {};
|
|
1429
|
+
const localVarQueryParameter = {};
|
|
1430
|
+
// authentication oauth2_password required
|
|
1431
|
+
// oauth required
|
|
1432
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
1433
|
+
// authentication bearer_auth required
|
|
1434
|
+
// http bearer authentication required
|
|
1435
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1436
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1437
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1438
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1439
|
+
return {
|
|
1440
|
+
url: toPathString(localVarUrlObj),
|
|
1441
|
+
options: localVarRequestOptions,
|
|
1442
|
+
};
|
|
1443
|
+
}),
|
|
1128
1444
|
/**
|
|
1129
1445
|
*
|
|
1130
1446
|
* @summary Delete User
|
|
@@ -1714,6 +2030,46 @@ export const InternalApiAxiosParamCreator = function (configuration) {
|
|
|
1714
2030
|
options: localVarRequestOptions,
|
|
1715
2031
|
};
|
|
1716
2032
|
}),
|
|
2033
|
+
/**
|
|
2034
|
+
* Update a paste by ID. Requires admin permissions.
|
|
2035
|
+
* @summary Update Paste
|
|
2036
|
+
* @param {string} pasteId
|
|
2037
|
+
* @param {PasteInput} pasteInput
|
|
2038
|
+
* @param {*} [options] Override http request option.
|
|
2039
|
+
* @throws {RequiredError}
|
|
2040
|
+
*/
|
|
2041
|
+
updatePasteInternalPastePasteIdPut: (pasteId_1, pasteInput_1, ...args_1) => __awaiter(this, [pasteId_1, pasteInput_1, ...args_1], void 0, function* (pasteId, pasteInput, options = {}) {
|
|
2042
|
+
// verify required parameter 'pasteId' is not null or undefined
|
|
2043
|
+
assertParamExists('updatePasteInternalPastePasteIdPut', 'pasteId', pasteId);
|
|
2044
|
+
// verify required parameter 'pasteInput' is not null or undefined
|
|
2045
|
+
assertParamExists('updatePasteInternalPastePasteIdPut', 'pasteInput', pasteInput);
|
|
2046
|
+
const localVarPath = `/internal/paste/{paste_id}`
|
|
2047
|
+
.replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
|
|
2048
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2049
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2050
|
+
let baseOptions;
|
|
2051
|
+
if (configuration) {
|
|
2052
|
+
baseOptions = configuration.baseOptions;
|
|
2053
|
+
}
|
|
2054
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2055
|
+
const localVarHeaderParameter = {};
|
|
2056
|
+
const localVarQueryParameter = {};
|
|
2057
|
+
// authentication oauth2_password required
|
|
2058
|
+
// oauth required
|
|
2059
|
+
yield setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration);
|
|
2060
|
+
// authentication bearer_auth required
|
|
2061
|
+
// http bearer authentication required
|
|
2062
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2063
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2064
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2065
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2066
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2067
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pasteInput, localVarRequestOptions, configuration);
|
|
2068
|
+
return {
|
|
2069
|
+
url: toPathString(localVarUrlObj),
|
|
2070
|
+
options: localVarRequestOptions,
|
|
2071
|
+
};
|
|
2072
|
+
}),
|
|
1717
2073
|
/**
|
|
1718
2074
|
*
|
|
1719
2075
|
* @summary Update User
|
|
@@ -1795,6 +2151,22 @@ export const InternalApiFp = function (configuration) {
|
|
|
1795
2151
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1796
2152
|
});
|
|
1797
2153
|
},
|
|
2154
|
+
/**
|
|
2155
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
2156
|
+
* @summary Delete Paste
|
|
2157
|
+
* @param {string} pasteId
|
|
2158
|
+
* @param {*} [options] Override http request option.
|
|
2159
|
+
* @throws {RequiredError}
|
|
2160
|
+
*/
|
|
2161
|
+
deletePasteInternalPastePasteIdDelete(pasteId, options) {
|
|
2162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2163
|
+
var _a, _b, _c;
|
|
2164
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePasteInternalPastePasteIdDelete(pasteId, options);
|
|
2165
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2166
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.deletePasteInternalPastePasteIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2167
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2168
|
+
});
|
|
2169
|
+
},
|
|
1798
2170
|
/**
|
|
1799
2171
|
*
|
|
1800
2172
|
* @summary Delete User
|
|
@@ -2038,6 +2410,23 @@ export const InternalApiFp = function (configuration) {
|
|
|
2038
2410
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2039
2411
|
});
|
|
2040
2412
|
},
|
|
2413
|
+
/**
|
|
2414
|
+
* Update a paste by ID. Requires admin permissions.
|
|
2415
|
+
* @summary Update Paste
|
|
2416
|
+
* @param {string} pasteId
|
|
2417
|
+
* @param {PasteInput} pasteInput
|
|
2418
|
+
* @param {*} [options] Override http request option.
|
|
2419
|
+
* @throws {RequiredError}
|
|
2420
|
+
*/
|
|
2421
|
+
updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options) {
|
|
2422
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2423
|
+
var _a, _b, _c;
|
|
2424
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options);
|
|
2425
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2426
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InternalApi.updatePasteInternalPastePasteIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2427
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2428
|
+
});
|
|
2429
|
+
},
|
|
2041
2430
|
/**
|
|
2042
2431
|
*
|
|
2043
2432
|
* @summary Update User
|
|
@@ -2084,6 +2473,16 @@ export const InternalApiFactory = function (configuration, basePath, axios) {
|
|
|
2084
2473
|
delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
|
|
2085
2474
|
return localVarFp.delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(axios, basePath));
|
|
2086
2475
|
},
|
|
2476
|
+
/**
|
|
2477
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
2478
|
+
* @summary Delete Paste
|
|
2479
|
+
* @param {string} pasteId
|
|
2480
|
+
* @param {*} [options] Override http request option.
|
|
2481
|
+
* @throws {RequiredError}
|
|
2482
|
+
*/
|
|
2483
|
+
deletePasteInternalPastePasteIdDelete(pasteId, options) {
|
|
2484
|
+
return localVarFp.deletePasteInternalPastePasteIdDelete(pasteId, options).then((request) => request(axios, basePath));
|
|
2485
|
+
},
|
|
2087
2486
|
/**
|
|
2088
2487
|
*
|
|
2089
2488
|
* @summary Delete User
|
|
@@ -2243,6 +2642,17 @@ export const InternalApiFactory = function (configuration, basePath, axios) {
|
|
|
2243
2642
|
updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
|
|
2244
2643
|
return localVarFp.updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(axios, basePath));
|
|
2245
2644
|
},
|
|
2645
|
+
/**
|
|
2646
|
+
* Update a paste by ID. Requires admin permissions.
|
|
2647
|
+
* @summary Update Paste
|
|
2648
|
+
* @param {string} pasteId
|
|
2649
|
+
* @param {PasteInput} pasteInput
|
|
2650
|
+
* @param {*} [options] Override http request option.
|
|
2651
|
+
* @throws {RequiredError}
|
|
2652
|
+
*/
|
|
2653
|
+
updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options) {
|
|
2654
|
+
return localVarFp.updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options).then((request) => request(axios, basePath));
|
|
2655
|
+
},
|
|
2246
2656
|
/**
|
|
2247
2657
|
*
|
|
2248
2658
|
* @summary Update User
|
|
@@ -2285,6 +2695,17 @@ export class InternalApi extends BaseAPI {
|
|
|
2285
2695
|
delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
|
|
2286
2696
|
return InternalApiFp(this.configuration).delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(this.axios, this.basePath));
|
|
2287
2697
|
}
|
|
2698
|
+
/**
|
|
2699
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
2700
|
+
* @summary Delete Paste
|
|
2701
|
+
* @param {string} pasteId
|
|
2702
|
+
* @param {*} [options] Override http request option.
|
|
2703
|
+
* @throws {RequiredError}
|
|
2704
|
+
* @memberof InternalApi
|
|
2705
|
+
*/
|
|
2706
|
+
deletePasteInternalPastePasteIdDelete(pasteId, options) {
|
|
2707
|
+
return InternalApiFp(this.configuration).deletePasteInternalPastePasteIdDelete(pasteId, options).then((request) => request(this.axios, this.basePath));
|
|
2708
|
+
}
|
|
2288
2709
|
/**
|
|
2289
2710
|
*
|
|
2290
2711
|
* @summary Delete User
|
|
@@ -2458,6 +2879,18 @@ export class InternalApi extends BaseAPI {
|
|
|
2458
2879
|
updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
|
|
2459
2880
|
return InternalApiFp(this.configuration).updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(this.axios, this.basePath));
|
|
2460
2881
|
}
|
|
2882
|
+
/**
|
|
2883
|
+
* Update a paste by ID. Requires admin permissions.
|
|
2884
|
+
* @summary Update Paste
|
|
2885
|
+
* @param {string} pasteId
|
|
2886
|
+
* @param {PasteInput} pasteInput
|
|
2887
|
+
* @param {*} [options] Override http request option.
|
|
2888
|
+
* @throws {RequiredError}
|
|
2889
|
+
* @memberof InternalApi
|
|
2890
|
+
*/
|
|
2891
|
+
updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options) {
|
|
2892
|
+
return InternalApiFp(this.configuration).updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options).then((request) => request(this.axios, this.basePath));
|
|
2893
|
+
}
|
|
2461
2894
|
/**
|
|
2462
2895
|
*
|
|
2463
2896
|
* @summary Update User
|
|
@@ -2471,6 +2904,173 @@ export class InternalApi extends BaseAPI {
|
|
|
2471
2904
|
return InternalApiFp(this.configuration).updateUserInternalUsersUserIdPut(userId, userUpdateBody, options).then((request) => request(this.axios, this.basePath));
|
|
2472
2905
|
}
|
|
2473
2906
|
}
|
|
2907
|
+
/**
|
|
2908
|
+
* PasteApi - axios parameter creator
|
|
2909
|
+
* @export
|
|
2910
|
+
*/
|
|
2911
|
+
export const PasteApiAxiosParamCreator = function (configuration) {
|
|
2912
|
+
return {
|
|
2913
|
+
/**
|
|
2914
|
+
* Create a new paste.
|
|
2915
|
+
* @summary Create Paste
|
|
2916
|
+
* @param {PasteInput} pasteInput
|
|
2917
|
+
* @param {*} [options] Override http request option.
|
|
2918
|
+
* @throws {RequiredError}
|
|
2919
|
+
*/
|
|
2920
|
+
createPastePastePost: (pasteInput_1, ...args_1) => __awaiter(this, [pasteInput_1, ...args_1], void 0, function* (pasteInput, options = {}) {
|
|
2921
|
+
// verify required parameter 'pasteInput' is not null or undefined
|
|
2922
|
+
assertParamExists('createPastePastePost', 'pasteInput', pasteInput);
|
|
2923
|
+
const localVarPath = `/paste/`;
|
|
2924
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2925
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2926
|
+
let baseOptions;
|
|
2927
|
+
if (configuration) {
|
|
2928
|
+
baseOptions = configuration.baseOptions;
|
|
2929
|
+
}
|
|
2930
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2931
|
+
const localVarHeaderParameter = {};
|
|
2932
|
+
const localVarQueryParameter = {};
|
|
2933
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2934
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2935
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2936
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2937
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pasteInput, localVarRequestOptions, configuration);
|
|
2938
|
+
return {
|
|
2939
|
+
url: toPathString(localVarUrlObj),
|
|
2940
|
+
options: localVarRequestOptions,
|
|
2941
|
+
};
|
|
2942
|
+
}),
|
|
2943
|
+
/**
|
|
2944
|
+
* Get a paste by ID.
|
|
2945
|
+
* @summary Get Paste
|
|
2946
|
+
* @param {string} pasteId
|
|
2947
|
+
* @param {*} [options] Override http request option.
|
|
2948
|
+
* @throws {RequiredError}
|
|
2949
|
+
*/
|
|
2950
|
+
getPastePastePasteIdGet: (pasteId_1, ...args_1) => __awaiter(this, [pasteId_1, ...args_1], void 0, function* (pasteId, options = {}) {
|
|
2951
|
+
// verify required parameter 'pasteId' is not null or undefined
|
|
2952
|
+
assertParamExists('getPastePastePasteIdGet', 'pasteId', pasteId);
|
|
2953
|
+
const localVarPath = `/paste/{paste_id}`
|
|
2954
|
+
.replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
|
|
2955
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2956
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2957
|
+
let baseOptions;
|
|
2958
|
+
if (configuration) {
|
|
2959
|
+
baseOptions = configuration.baseOptions;
|
|
2960
|
+
}
|
|
2961
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2962
|
+
const localVarHeaderParameter = {};
|
|
2963
|
+
const localVarQueryParameter = {};
|
|
2964
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2965
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2966
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2967
|
+
return {
|
|
2968
|
+
url: toPathString(localVarUrlObj),
|
|
2969
|
+
options: localVarRequestOptions,
|
|
2970
|
+
};
|
|
2971
|
+
}),
|
|
2972
|
+
};
|
|
2973
|
+
};
|
|
2974
|
+
/**
|
|
2975
|
+
* PasteApi - functional programming interface
|
|
2976
|
+
* @export
|
|
2977
|
+
*/
|
|
2978
|
+
export const PasteApiFp = function (configuration) {
|
|
2979
|
+
const localVarAxiosParamCreator = PasteApiAxiosParamCreator(configuration);
|
|
2980
|
+
return {
|
|
2981
|
+
/**
|
|
2982
|
+
* Create a new paste.
|
|
2983
|
+
* @summary Create Paste
|
|
2984
|
+
* @param {PasteInput} pasteInput
|
|
2985
|
+
* @param {*} [options] Override http request option.
|
|
2986
|
+
* @throws {RequiredError}
|
|
2987
|
+
*/
|
|
2988
|
+
createPastePastePost(pasteInput, options) {
|
|
2989
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2990
|
+
var _a, _b, _c;
|
|
2991
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPastePastePost(pasteInput, options);
|
|
2992
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2993
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PasteApi.createPastePastePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2994
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2995
|
+
});
|
|
2996
|
+
},
|
|
2997
|
+
/**
|
|
2998
|
+
* Get a paste by ID.
|
|
2999
|
+
* @summary Get Paste
|
|
3000
|
+
* @param {string} pasteId
|
|
3001
|
+
* @param {*} [options] Override http request option.
|
|
3002
|
+
* @throws {RequiredError}
|
|
3003
|
+
*/
|
|
3004
|
+
getPastePastePasteIdGet(pasteId, options) {
|
|
3005
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3006
|
+
var _a, _b, _c;
|
|
3007
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastePastePasteIdGet(pasteId, options);
|
|
3008
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3009
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PasteApi.getPastePastePasteIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3010
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3011
|
+
});
|
|
3012
|
+
},
|
|
3013
|
+
};
|
|
3014
|
+
};
|
|
3015
|
+
/**
|
|
3016
|
+
* PasteApi - factory interface
|
|
3017
|
+
* @export
|
|
3018
|
+
*/
|
|
3019
|
+
export const PasteApiFactory = function (configuration, basePath, axios) {
|
|
3020
|
+
const localVarFp = PasteApiFp(configuration);
|
|
3021
|
+
return {
|
|
3022
|
+
/**
|
|
3023
|
+
* Create a new paste.
|
|
3024
|
+
* @summary Create Paste
|
|
3025
|
+
* @param {PasteInput} pasteInput
|
|
3026
|
+
* @param {*} [options] Override http request option.
|
|
3027
|
+
* @throws {RequiredError}
|
|
3028
|
+
*/
|
|
3029
|
+
createPastePastePost(pasteInput, options) {
|
|
3030
|
+
return localVarFp.createPastePastePost(pasteInput, options).then((request) => request(axios, basePath));
|
|
3031
|
+
},
|
|
3032
|
+
/**
|
|
3033
|
+
* Get a paste by ID.
|
|
3034
|
+
* @summary Get Paste
|
|
3035
|
+
* @param {string} pasteId
|
|
3036
|
+
* @param {*} [options] Override http request option.
|
|
3037
|
+
* @throws {RequiredError}
|
|
3038
|
+
*/
|
|
3039
|
+
getPastePastePasteIdGet(pasteId, options) {
|
|
3040
|
+
return localVarFp.getPastePastePasteIdGet(pasteId, options).then((request) => request(axios, basePath));
|
|
3041
|
+
},
|
|
3042
|
+
};
|
|
3043
|
+
};
|
|
3044
|
+
/**
|
|
3045
|
+
* PasteApi - object-oriented interface
|
|
3046
|
+
* @export
|
|
3047
|
+
* @class PasteApi
|
|
3048
|
+
* @extends {BaseAPI}
|
|
3049
|
+
*/
|
|
3050
|
+
export class PasteApi extends BaseAPI {
|
|
3051
|
+
/**
|
|
3052
|
+
* Create a new paste.
|
|
3053
|
+
* @summary Create Paste
|
|
3054
|
+
* @param {PasteInput} pasteInput
|
|
3055
|
+
* @param {*} [options] Override http request option.
|
|
3056
|
+
* @throws {RequiredError}
|
|
3057
|
+
* @memberof PasteApi
|
|
3058
|
+
*/
|
|
3059
|
+
createPastePastePost(pasteInput, options) {
|
|
3060
|
+
return PasteApiFp(this.configuration).createPastePastePost(pasteInput, options).then((request) => request(this.axios, this.basePath));
|
|
3061
|
+
}
|
|
3062
|
+
/**
|
|
3063
|
+
* Get a paste by ID.
|
|
3064
|
+
* @summary Get Paste
|
|
3065
|
+
* @param {string} pasteId
|
|
3066
|
+
* @param {*} [options] Override http request option.
|
|
3067
|
+
* @throws {RequiredError}
|
|
3068
|
+
* @memberof PasteApi
|
|
3069
|
+
*/
|
|
3070
|
+
getPastePastePasteIdGet(pasteId, options) {
|
|
3071
|
+
return PasteApiFp(this.configuration).getPastePastePasteIdGet(pasteId, options).then((request) => request(this.axios, this.basePath));
|
|
3072
|
+
}
|
|
3073
|
+
}
|
|
2474
3074
|
/**
|
|
2475
3075
|
* ReleaseApi - axios parameter creator
|
|
2476
3076
|
* @export
|