@orangefox-recovery/foxinternalclient 5.2.5 → 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/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Fox API
6
6
  * 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.
7
7
  *
8
- * The version of the OpenAPI document: 5.2.5
8
+ * The version of the OpenAPI document: 5.2.6
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.StatsApi = exports.StatsApiFactory = exports.StatsApiFp = exports.StatsApiAxiosParamCreator = exports.ReleaseApi = exports.ReleaseApiFactory = exports.ReleaseApiFp = exports.ReleaseApiAxiosParamCreator = exports.InternalApi = exports.InternalApiFactory = exports.InternalApiFp = exports.InternalApiAxiosParamCreator = exports.GitlabApi = exports.GitlabApiFactory = exports.GitlabApiFp = exports.GitlabApiAxiosParamCreator = exports.FoxFactoryApi = exports.FoxFactoryApiFactory = exports.FoxFactoryApiFp = exports.FoxFactoryApiAxiosParamCreator = exports.DeviceApi = exports.DeviceApiFactory = exports.DeviceApiFp = exports.DeviceApiAxiosParamCreator = exports.ReleasesSort = exports.ReleaseType = exports.FFStatusEnum = exports.BuildStatusEnum = void 0;
25
+ exports.StatsApi = exports.StatsApiFactory = exports.StatsApiFp = exports.StatsApiAxiosParamCreator = exports.ReleaseApi = exports.ReleaseApiFactory = exports.ReleaseApiFp = exports.ReleaseApiAxiosParamCreator = exports.PasteApi = exports.PasteApiFactory = exports.PasteApiFp = exports.PasteApiAxiosParamCreator = exports.InternalApi = exports.InternalApiFactory = exports.InternalApiFp = exports.InternalApiAxiosParamCreator = exports.GitlabApi = exports.GitlabApiFactory = exports.GitlabApiFp = exports.GitlabApiAxiosParamCreator = exports.FoxFactoryApi = exports.FoxFactoryApiFactory = exports.FoxFactoryApiFp = exports.FoxFactoryApiAxiosParamCreator = exports.DeviceApi = exports.DeviceApiFactory = exports.DeviceApiFp = exports.DeviceApiAxiosParamCreator = exports.ReleasesSort = exports.ReleaseType = exports.FFStatusEnum = exports.BuildStatusEnum = void 0;
26
26
  const axios_1 = require("axios");
27
27
  // Some imports not used depending on template conditions
28
28
  // @ts-ignore
@@ -482,6 +482,12 @@ const FoxFactoryApiAxiosParamCreator = function (configuration) {
482
482
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
483
483
  const localVarHeaderParameter = {};
484
484
  const localVarQueryParameter = {};
485
+ // authentication oauth2_password required
486
+ // oauth required
487
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
488
+ // authentication bearer_auth required
489
+ // http bearer authentication required
490
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
485
491
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
486
492
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
487
493
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -511,6 +517,12 @@ const FoxFactoryApiAxiosParamCreator = function (configuration) {
511
517
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
512
518
  const localVarHeaderParameter = {};
513
519
  const localVarQueryParameter = {};
520
+ // authentication oauth2_password required
521
+ // oauth required
522
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
523
+ // authentication bearer_auth required
524
+ // http bearer authentication required
525
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
514
526
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
515
527
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
516
528
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -540,6 +552,12 @@ const FoxFactoryApiAxiosParamCreator = function (configuration) {
540
552
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
541
553
  const localVarHeaderParameter = {};
542
554
  const localVarQueryParameter = {};
555
+ // authentication oauth2_password required
556
+ // oauth required
557
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
558
+ // authentication bearer_auth required
559
+ // http bearer authentication required
560
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
543
561
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
544
562
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
545
563
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -565,6 +583,12 @@ const FoxFactoryApiAxiosParamCreator = function (configuration) {
565
583
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
566
584
  const localVarHeaderParameter = {};
567
585
  const localVarQueryParameter = {};
586
+ // authentication oauth2_password required
587
+ // oauth required
588
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
589
+ // authentication bearer_auth required
590
+ // http bearer authentication required
591
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
568
592
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
569
593
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
570
594
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -594,6 +618,12 @@ const FoxFactoryApiAxiosParamCreator = function (configuration) {
594
618
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
595
619
  const localVarHeaderParameter = {};
596
620
  const localVarQueryParameter = {};
621
+ // authentication oauth2_password required
622
+ // oauth required
623
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
624
+ // authentication bearer_auth required
625
+ // http bearer authentication required
626
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
597
627
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
598
628
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
599
629
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -620,6 +650,12 @@ const FoxFactoryApiAxiosParamCreator = function (configuration) {
620
650
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
621
651
  const localVarHeaderParameter = {};
622
652
  const localVarQueryParameter = {};
653
+ // authentication oauth2_password required
654
+ // oauth required
655
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
656
+ // authentication bearer_auth required
657
+ // http bearer authentication required
658
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
623
659
  if (deviceId !== undefined) {
624
660
  localVarQueryParameter['device_id'] = deviceId;
625
661
  }
@@ -651,6 +687,12 @@ const FoxFactoryApiAxiosParamCreator = function (configuration) {
651
687
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
652
688
  const localVarHeaderParameter = {};
653
689
  const localVarQueryParameter = {};
690
+ // authentication oauth2_password required
691
+ // oauth required
692
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
693
+ // authentication bearer_auth required
694
+ // http bearer authentication required
695
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
654
696
  localVarHeaderParameter['Content-Type'] = 'application/json';
655
697
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
656
698
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -685,6 +727,12 @@ const FoxFactoryApiAxiosParamCreator = function (configuration) {
685
727
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
686
728
  const localVarHeaderParameter = {};
687
729
  const localVarQueryParameter = {};
730
+ // authentication oauth2_password required
731
+ // oauth required
732
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
733
+ // authentication bearer_auth required
734
+ // http bearer authentication required
735
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
688
736
  localVarHeaderParameter['Content-Type'] = 'application/json';
689
737
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
690
738
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -715,6 +763,12 @@ const FoxFactoryApiAxiosParamCreator = function (configuration) {
715
763
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
716
764
  const localVarHeaderParameter = {};
717
765
  const localVarQueryParameter = {};
766
+ // authentication oauth2_password required
767
+ // oauth required
768
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
769
+ // authentication bearer_auth required
770
+ // http bearer authentication required
771
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
718
772
  localVarHeaderParameter['Content-Type'] = 'application/json';
719
773
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
720
774
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -753,6 +807,12 @@ const FoxFactoryApiAxiosParamCreator = function (configuration) {
753
807
  const localVarHeaderParameter = {};
754
808
  const localVarQueryParameter = {};
755
809
  const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
810
+ // authentication oauth2_password required
811
+ // oauth required
812
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
813
+ // authentication bearer_auth required
814
+ // http bearer authentication required
815
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
756
816
  if (artifact !== undefined) {
757
817
  localVarFormParams.append('artifact', artifact);
758
818
  }
@@ -1361,6 +1421,41 @@ const InternalApiAxiosParamCreator = function (configuration) {
1361
1421
  options: localVarRequestOptions,
1362
1422
  };
1363
1423
  }),
1424
+ /**
1425
+ * Delete a paste by ID. Requires admin permissions.
1426
+ * @summary Delete Paste
1427
+ * @param {string} pasteId
1428
+ * @param {*} [options] Override http request option.
1429
+ * @throws {RequiredError}
1430
+ */
1431
+ deletePasteInternalPastePasteIdDelete: (pasteId_1, ...args_1) => __awaiter(this, [pasteId_1, ...args_1], void 0, function* (pasteId, options = {}) {
1432
+ // verify required parameter 'pasteId' is not null or undefined
1433
+ (0, common_1.assertParamExists)('deletePasteInternalPastePasteIdDelete', 'pasteId', pasteId);
1434
+ const localVarPath = `/internal/paste/{paste_id}`
1435
+ .replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
1436
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1437
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1438
+ let baseOptions;
1439
+ if (configuration) {
1440
+ baseOptions = configuration.baseOptions;
1441
+ }
1442
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1443
+ const localVarHeaderParameter = {};
1444
+ const localVarQueryParameter = {};
1445
+ // authentication oauth2_password required
1446
+ // oauth required
1447
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
1448
+ // authentication bearer_auth required
1449
+ // http bearer authentication required
1450
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1451
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1452
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1453
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1454
+ return {
1455
+ url: (0, common_1.toPathString)(localVarUrlObj),
1456
+ options: localVarRequestOptions,
1457
+ };
1458
+ }),
1364
1459
  /**
1365
1460
  *
1366
1461
  * @summary Delete User
@@ -1950,6 +2045,46 @@ const InternalApiAxiosParamCreator = function (configuration) {
1950
2045
  options: localVarRequestOptions,
1951
2046
  };
1952
2047
  }),
2048
+ /**
2049
+ * Update a paste by ID. Requires admin permissions.
2050
+ * @summary Update Paste
2051
+ * @param {string} pasteId
2052
+ * @param {PasteInput} pasteInput
2053
+ * @param {*} [options] Override http request option.
2054
+ * @throws {RequiredError}
2055
+ */
2056
+ updatePasteInternalPastePasteIdPut: (pasteId_1, pasteInput_1, ...args_1) => __awaiter(this, [pasteId_1, pasteInput_1, ...args_1], void 0, function* (pasteId, pasteInput, options = {}) {
2057
+ // verify required parameter 'pasteId' is not null or undefined
2058
+ (0, common_1.assertParamExists)('updatePasteInternalPastePasteIdPut', 'pasteId', pasteId);
2059
+ // verify required parameter 'pasteInput' is not null or undefined
2060
+ (0, common_1.assertParamExists)('updatePasteInternalPastePasteIdPut', 'pasteInput', pasteInput);
2061
+ const localVarPath = `/internal/paste/{paste_id}`
2062
+ .replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
2063
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2064
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2065
+ let baseOptions;
2066
+ if (configuration) {
2067
+ baseOptions = configuration.baseOptions;
2068
+ }
2069
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
2070
+ const localVarHeaderParameter = {};
2071
+ const localVarQueryParameter = {};
2072
+ // authentication oauth2_password required
2073
+ // oauth required
2074
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2_password", [], configuration);
2075
+ // authentication bearer_auth required
2076
+ // http bearer authentication required
2077
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2078
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2079
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2080
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2081
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2082
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(pasteInput, localVarRequestOptions, configuration);
2083
+ return {
2084
+ url: (0, common_1.toPathString)(localVarUrlObj),
2085
+ options: localVarRequestOptions,
2086
+ };
2087
+ }),
1953
2088
  /**
1954
2089
  *
1955
2090
  * @summary Update User
@@ -2032,6 +2167,22 @@ const InternalApiFp = function (configuration) {
2032
2167
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2033
2168
  });
2034
2169
  },
2170
+ /**
2171
+ * Delete a paste by ID. Requires admin permissions.
2172
+ * @summary Delete Paste
2173
+ * @param {string} pasteId
2174
+ * @param {*} [options] Override http request option.
2175
+ * @throws {RequiredError}
2176
+ */
2177
+ deletePasteInternalPastePasteIdDelete(pasteId, options) {
2178
+ return __awaiter(this, void 0, void 0, function* () {
2179
+ var _a, _b, _c;
2180
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePasteInternalPastePasteIdDelete(pasteId, options);
2181
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2182
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.deletePasteInternalPastePasteIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2183
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2184
+ });
2185
+ },
2035
2186
  /**
2036
2187
  *
2037
2188
  * @summary Delete User
@@ -2275,6 +2426,23 @@ const InternalApiFp = function (configuration) {
2275
2426
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2276
2427
  });
2277
2428
  },
2429
+ /**
2430
+ * Update a paste by ID. Requires admin permissions.
2431
+ * @summary Update Paste
2432
+ * @param {string} pasteId
2433
+ * @param {PasteInput} pasteInput
2434
+ * @param {*} [options] Override http request option.
2435
+ * @throws {RequiredError}
2436
+ */
2437
+ updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options) {
2438
+ return __awaiter(this, void 0, void 0, function* () {
2439
+ var _a, _b, _c;
2440
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options);
2441
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2442
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InternalApi.updatePasteInternalPastePasteIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2443
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2444
+ });
2445
+ },
2278
2446
  /**
2279
2447
  *
2280
2448
  * @summary Update User
@@ -2322,6 +2490,16 @@ const InternalApiFactory = function (configuration, basePath, axios) {
2322
2490
  delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
2323
2491
  return localVarFp.delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(axios, basePath));
2324
2492
  },
2493
+ /**
2494
+ * Delete a paste by ID. Requires admin permissions.
2495
+ * @summary Delete Paste
2496
+ * @param {string} pasteId
2497
+ * @param {*} [options] Override http request option.
2498
+ * @throws {RequiredError}
2499
+ */
2500
+ deletePasteInternalPastePasteIdDelete(pasteId, options) {
2501
+ return localVarFp.deletePasteInternalPastePasteIdDelete(pasteId, options).then((request) => request(axios, basePath));
2502
+ },
2325
2503
  /**
2326
2504
  *
2327
2505
  * @summary Delete User
@@ -2481,6 +2659,17 @@ const InternalApiFactory = function (configuration, basePath, axios) {
2481
2659
  updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2482
2660
  return localVarFp.updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(axios, basePath));
2483
2661
  },
2662
+ /**
2663
+ * Update a paste by ID. Requires admin permissions.
2664
+ * @summary Update Paste
2665
+ * @param {string} pasteId
2666
+ * @param {PasteInput} pasteInput
2667
+ * @param {*} [options] Override http request option.
2668
+ * @throws {RequiredError}
2669
+ */
2670
+ updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options) {
2671
+ return localVarFp.updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options).then((request) => request(axios, basePath));
2672
+ },
2484
2673
  /**
2485
2674
  *
2486
2675
  * @summary Update User
@@ -2524,6 +2713,17 @@ class InternalApi extends base_1.BaseAPI {
2524
2713
  delReleaseInternalReleasesReleaseIdDelete(releaseId, options) {
2525
2714
  return (0, exports.InternalApiFp)(this.configuration).delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(this.axios, this.basePath));
2526
2715
  }
2716
+ /**
2717
+ * Delete a paste by ID. Requires admin permissions.
2718
+ * @summary Delete Paste
2719
+ * @param {string} pasteId
2720
+ * @param {*} [options] Override http request option.
2721
+ * @throws {RequiredError}
2722
+ * @memberof InternalApi
2723
+ */
2724
+ deletePasteInternalPastePasteIdDelete(pasteId, options) {
2725
+ return (0, exports.InternalApiFp)(this.configuration).deletePasteInternalPastePasteIdDelete(pasteId, options).then((request) => request(this.axios, this.basePath));
2726
+ }
2527
2727
  /**
2528
2728
  *
2529
2729
  * @summary Delete User
@@ -2697,6 +2897,18 @@ class InternalApi extends base_1.BaseAPI {
2697
2897
  updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options) {
2698
2898
  return (0, exports.InternalApiFp)(this.configuration).updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(this.axios, this.basePath));
2699
2899
  }
2900
+ /**
2901
+ * Update a paste by ID. Requires admin permissions.
2902
+ * @summary Update Paste
2903
+ * @param {string} pasteId
2904
+ * @param {PasteInput} pasteInput
2905
+ * @param {*} [options] Override http request option.
2906
+ * @throws {RequiredError}
2907
+ * @memberof InternalApi
2908
+ */
2909
+ updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options) {
2910
+ return (0, exports.InternalApiFp)(this.configuration).updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options).then((request) => request(this.axios, this.basePath));
2911
+ }
2700
2912
  /**
2701
2913
  *
2702
2914
  * @summary Update User
@@ -2711,6 +2923,177 @@ class InternalApi extends base_1.BaseAPI {
2711
2923
  }
2712
2924
  }
2713
2925
  exports.InternalApi = InternalApi;
2926
+ /**
2927
+ * PasteApi - axios parameter creator
2928
+ * @export
2929
+ */
2930
+ const PasteApiAxiosParamCreator = function (configuration) {
2931
+ return {
2932
+ /**
2933
+ * Create a new paste.
2934
+ * @summary Create Paste
2935
+ * @param {PasteInput} pasteInput
2936
+ * @param {*} [options] Override http request option.
2937
+ * @throws {RequiredError}
2938
+ */
2939
+ createPastePastePost: (pasteInput_1, ...args_1) => __awaiter(this, [pasteInput_1, ...args_1], void 0, function* (pasteInput, options = {}) {
2940
+ // verify required parameter 'pasteInput' is not null or undefined
2941
+ (0, common_1.assertParamExists)('createPastePastePost', 'pasteInput', pasteInput);
2942
+ const localVarPath = `/paste/`;
2943
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2944
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2945
+ let baseOptions;
2946
+ if (configuration) {
2947
+ baseOptions = configuration.baseOptions;
2948
+ }
2949
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
2950
+ const localVarHeaderParameter = {};
2951
+ const localVarQueryParameter = {};
2952
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2953
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2954
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2955
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2956
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(pasteInput, localVarRequestOptions, configuration);
2957
+ return {
2958
+ url: (0, common_1.toPathString)(localVarUrlObj),
2959
+ options: localVarRequestOptions,
2960
+ };
2961
+ }),
2962
+ /**
2963
+ * Get a paste by ID.
2964
+ * @summary Get Paste
2965
+ * @param {string} pasteId
2966
+ * @param {*} [options] Override http request option.
2967
+ * @throws {RequiredError}
2968
+ */
2969
+ getPastePastePasteIdGet: (pasteId_1, ...args_1) => __awaiter(this, [pasteId_1, ...args_1], void 0, function* (pasteId, options = {}) {
2970
+ // verify required parameter 'pasteId' is not null or undefined
2971
+ (0, common_1.assertParamExists)('getPastePastePasteIdGet', 'pasteId', pasteId);
2972
+ const localVarPath = `/paste/{paste_id}`
2973
+ .replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
2974
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2975
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2976
+ let baseOptions;
2977
+ if (configuration) {
2978
+ baseOptions = configuration.baseOptions;
2979
+ }
2980
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2981
+ const localVarHeaderParameter = {};
2982
+ const localVarQueryParameter = {};
2983
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2984
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2985
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2986
+ return {
2987
+ url: (0, common_1.toPathString)(localVarUrlObj),
2988
+ options: localVarRequestOptions,
2989
+ };
2990
+ }),
2991
+ };
2992
+ };
2993
+ exports.PasteApiAxiosParamCreator = PasteApiAxiosParamCreator;
2994
+ /**
2995
+ * PasteApi - functional programming interface
2996
+ * @export
2997
+ */
2998
+ const PasteApiFp = function (configuration) {
2999
+ const localVarAxiosParamCreator = (0, exports.PasteApiAxiosParamCreator)(configuration);
3000
+ return {
3001
+ /**
3002
+ * Create a new paste.
3003
+ * @summary Create Paste
3004
+ * @param {PasteInput} pasteInput
3005
+ * @param {*} [options] Override http request option.
3006
+ * @throws {RequiredError}
3007
+ */
3008
+ createPastePastePost(pasteInput, options) {
3009
+ return __awaiter(this, void 0, void 0, function* () {
3010
+ var _a, _b, _c;
3011
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createPastePastePost(pasteInput, options);
3012
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3013
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PasteApi.createPastePastePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3014
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3015
+ });
3016
+ },
3017
+ /**
3018
+ * Get a paste by ID.
3019
+ * @summary Get Paste
3020
+ * @param {string} pasteId
3021
+ * @param {*} [options] Override http request option.
3022
+ * @throws {RequiredError}
3023
+ */
3024
+ getPastePastePasteIdGet(pasteId, options) {
3025
+ return __awaiter(this, void 0, void 0, function* () {
3026
+ var _a, _b, _c;
3027
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPastePastePasteIdGet(pasteId, options);
3028
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3029
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PasteApi.getPastePastePasteIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3030
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3031
+ });
3032
+ },
3033
+ };
3034
+ };
3035
+ exports.PasteApiFp = PasteApiFp;
3036
+ /**
3037
+ * PasteApi - factory interface
3038
+ * @export
3039
+ */
3040
+ const PasteApiFactory = function (configuration, basePath, axios) {
3041
+ const localVarFp = (0, exports.PasteApiFp)(configuration);
3042
+ return {
3043
+ /**
3044
+ * Create a new paste.
3045
+ * @summary Create Paste
3046
+ * @param {PasteInput} pasteInput
3047
+ * @param {*} [options] Override http request option.
3048
+ * @throws {RequiredError}
3049
+ */
3050
+ createPastePastePost(pasteInput, options) {
3051
+ return localVarFp.createPastePastePost(pasteInput, options).then((request) => request(axios, basePath));
3052
+ },
3053
+ /**
3054
+ * Get a paste by ID.
3055
+ * @summary Get Paste
3056
+ * @param {string} pasteId
3057
+ * @param {*} [options] Override http request option.
3058
+ * @throws {RequiredError}
3059
+ */
3060
+ getPastePastePasteIdGet(pasteId, options) {
3061
+ return localVarFp.getPastePastePasteIdGet(pasteId, options).then((request) => request(axios, basePath));
3062
+ },
3063
+ };
3064
+ };
3065
+ exports.PasteApiFactory = PasteApiFactory;
3066
+ /**
3067
+ * PasteApi - object-oriented interface
3068
+ * @export
3069
+ * @class PasteApi
3070
+ * @extends {BaseAPI}
3071
+ */
3072
+ class PasteApi extends base_1.BaseAPI {
3073
+ /**
3074
+ * Create a new paste.
3075
+ * @summary Create Paste
3076
+ * @param {PasteInput} pasteInput
3077
+ * @param {*} [options] Override http request option.
3078
+ * @throws {RequiredError}
3079
+ * @memberof PasteApi
3080
+ */
3081
+ createPastePastePost(pasteInput, options) {
3082
+ return (0, exports.PasteApiFp)(this.configuration).createPastePastePost(pasteInput, options).then((request) => request(this.axios, this.basePath));
3083
+ }
3084
+ /**
3085
+ * Get a paste by ID.
3086
+ * @summary Get Paste
3087
+ * @param {string} pasteId
3088
+ * @param {*} [options] Override http request option.
3089
+ * @throws {RequiredError}
3090
+ * @memberof PasteApi
3091
+ */
3092
+ getPastePastePasteIdGet(pasteId, options) {
3093
+ return (0, exports.PasteApiFp)(this.configuration).getPastePastePasteIdGet(pasteId, options).then((request) => request(this.axios, this.basePath));
3094
+ }
3095
+ }
3096
+ exports.PasteApi = PasteApi;
2714
3097
  /**
2715
3098
  * ReleaseApi - axios parameter creator
2716
3099
  * @export
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Fox API
3
3
  * 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.
4
4
  *
5
- * The version of the OpenAPI document: 5.2.5
5
+ * The version of the OpenAPI document: 5.2.6
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Fox API
6
6
  * 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.
7
7
  *
8
- * The version of the OpenAPI document: 5.2.5
8
+ * The version of the OpenAPI document: 5.2.6
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Fox API
3
3
  * 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.
4
4
  *
5
- * The version of the OpenAPI document: 5.2.5
5
+ * The version of the OpenAPI document: 5.2.6
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Fox API
6
6
  * 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.
7
7
  *
8
- * The version of the OpenAPI document: 5.2.5
8
+ * The version of the OpenAPI document: 5.2.6
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Fox API
3
3
  * 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.
4
4
  *
5
- * The version of the OpenAPI document: 5.2.5
5
+ * The version of the OpenAPI document: 5.2.6
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fox API
6
6
  * 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.
7
7
  *
8
- * The version of the OpenAPI document: 5.2.5
8
+ * The version of the OpenAPI document: 5.2.6
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).