@orangefox-recovery/foxinternalclient 5.2.8 → 5.3.2
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 +54 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +199 -28
- package/dist/apis/DeviceApi.d.ts +1 -1
- package/dist/apis/DeviceApi.js +10 -5
- package/dist/apis/FoxFactoryApi.d.ts +1 -1
- package/dist/apis/FoxFactoryApi.js +27 -11
- package/dist/apis/GitlabApi.d.ts +1 -1
- package/dist/apis/GitlabApi.js +4 -2
- package/dist/apis/InternalApi.d.ts +48 -1
- package/dist/apis/InternalApi.js +135 -20
- package/dist/apis/PasteApi.d.ts +1 -1
- package/dist/apis/PasteApi.js +6 -3
- package/dist/apis/ReleaseApi.d.ts +1 -1
- package/dist/apis/ReleaseApi.js +11 -5
- package/dist/apis/StatsApi.d.ts +1 -1
- package/dist/apis/StatsApi.js +3 -2
- package/dist/esm/apis/DeviceApi.d.ts +1 -1
- package/dist/esm/apis/DeviceApi.js +10 -5
- package/dist/esm/apis/FoxFactoryApi.d.ts +1 -1
- package/dist/esm/apis/FoxFactoryApi.js +27 -11
- package/dist/esm/apis/GitlabApi.d.ts +1 -1
- package/dist/esm/apis/GitlabApi.js +4 -2
- package/dist/esm/apis/InternalApi.d.ts +48 -1
- package/dist/esm/apis/InternalApi.js +135 -20
- package/dist/esm/apis/PasteApi.d.ts +1 -1
- package/dist/esm/apis/PasteApi.js +6 -3
- package/dist/esm/apis/ReleaseApi.d.ts +1 -1
- package/dist/esm/apis/ReleaseApi.js +11 -5
- package/dist/esm/apis/StatsApi.d.ts +1 -1
- package/dist/esm/apis/StatsApi.js +3 -2
- package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.d.ts +1 -1
- package/dist/esm/models/BodyChangePasswordProfileChangePasswordPost.js +1 -1
- package/dist/esm/models/BuildStatusEnum.d.ts +1 -1
- package/dist/esm/models/BuildStatusEnum.js +1 -1
- package/dist/esm/models/BuildTaskResponse.d.ts +1 -1
- package/dist/esm/models/BuildTaskResponse.js +3 -3
- package/dist/esm/models/BuildTaskShortResponse.d.ts +1 -1
- package/dist/esm/models/BuildTaskShortResponse.js +3 -3
- package/dist/esm/models/DeviceInternalResponse.d.ts +13 -1
- package/dist/esm/models/DeviceInternalResponse.js +5 -1
- package/dist/esm/models/DeviceResponse.d.ts +13 -1
- package/dist/esm/models/DeviceResponse.js +5 -1
- package/dist/esm/models/DeviceStatsResponse.d.ts +1 -1
- package/dist/esm/models/DeviceStatsResponse.js +1 -1
- package/dist/esm/models/DeviceUpdateBody.d.ts +1 -1
- package/dist/esm/models/DeviceUpdateBody.js +1 -1
- package/dist/esm/models/FFStatusEnum.d.ts +1 -1
- package/dist/esm/models/FFStatusEnum.js +1 -1
- package/dist/esm/models/FFStatusResponse.d.ts +1 -1
- package/dist/esm/models/FFStatusResponse.js +1 -1
- package/dist/esm/models/GlobalStatsAggregationModel.d.ts +1 -1
- package/dist/esm/models/GlobalStatsAggregationModel.js +1 -1
- package/dist/esm/models/HTTPValidationError.d.ts +1 -1
- package/dist/esm/models/HTTPValidationError.js +1 -1
- package/dist/esm/models/ListResponseBuildTaskShortResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseBuildTaskShortResponse.js +1 -1
- package/dist/esm/models/ListResponseReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseReleaseResponse.js +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.js +1 -1
- package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseShortReleaseResponse.js +1 -1
- package/dist/esm/models/ListResponseStr.d.ts +1 -1
- package/dist/esm/models/ListResponseStr.js +1 -1
- package/dist/esm/models/ListResponseUserShortResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseUserShortResponse.js +1 -1
- package/dist/esm/models/LogListResponse.d.ts +1 -1
- package/dist/esm/models/LogListResponse.js +1 -1
- package/dist/esm/models/LogResponse.d.ts +1 -1
- package/dist/esm/models/LogResponse.js +2 -2
- package/dist/esm/models/MaintainerShortModel.d.ts +1 -1
- package/dist/esm/models/MaintainerShortModel.js +1 -1
- package/dist/esm/models/NewBuildTaskBody.d.ts +1 -1
- package/dist/esm/models/NewBuildTaskBody.js +1 -1
- package/dist/esm/models/NewDeviceBody.d.ts +1 -1
- package/dist/esm/models/NewDeviceBody.js +1 -1
- package/dist/esm/models/PasteInput.d.ts +2 -20
- package/dist/esm/models/PasteInput.js +1 -9
- package/dist/esm/models/PasteOutput.d.ts +9 -9
- package/dist/esm/models/PasteOutput.js +10 -8
- package/dist/esm/models/RecoveryImgResponse.d.ts +1 -1
- package/dist/esm/models/RecoveryImgResponse.js +1 -1
- package/dist/esm/models/ReleaseGroupsResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseGroupsResponse.js +1 -1
- package/dist/esm/models/ReleaseInternalResponse.d.ts +14 -2
- package/dist/esm/models/ReleaseInternalResponse.js +7 -1
- package/dist/esm/models/ReleaseInternalResponsePropValue.d.ts +1 -1
- package/dist/esm/models/ReleaseInternalResponsePropValue.js +1 -1
- package/dist/esm/models/ReleaseResponse.d.ts +14 -2
- package/dist/esm/models/ReleaseResponse.js +7 -1
- package/dist/esm/models/ReleaseStatsResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseStatsResponse.js +1 -1
- package/dist/esm/models/ReleaseType.d.ts +1 -1
- package/dist/esm/models/ReleaseType.js +1 -1
- package/dist/esm/models/ReleaseUpdateBody.d.ts +1 -1
- package/dist/esm/models/ReleaseUpdateBody.js +1 -1
- package/dist/esm/models/ReleasesSort.d.ts +1 -1
- package/dist/esm/models/ReleasesSort.js +1 -1
- package/dist/esm/models/ResponseGetReleases.d.ts +1 -1
- package/dist/esm/models/ResponseGetReleases.js +1 -1
- package/dist/esm/models/ShortDeviceResponse.d.ts +13 -1
- package/dist/esm/models/ShortDeviceResponse.js +5 -1
- package/dist/esm/models/ShortReleaseResponse.d.ts +14 -2
- package/dist/esm/models/ShortReleaseResponse.js +7 -1
- package/dist/esm/models/TaskUpdateBody.d.ts +1 -1
- package/dist/esm/models/TaskUpdateBody.js +1 -1
- package/dist/esm/models/TokenResponse.d.ts +1 -1
- package/dist/esm/models/TokenResponse.js +1 -1
- package/dist/esm/models/UserGitlab.d.ts +1 -1
- package/dist/esm/models/UserGitlab.js +1 -1
- package/dist/esm/models/UserInternalResponse.d.ts +1 -1
- package/dist/esm/models/UserInternalResponse.js +1 -1
- package/dist/esm/models/UserMail.d.ts +1 -1
- package/dist/esm/models/UserMail.js +1 -1
- package/dist/esm/models/UserShortResponse.d.ts +1 -1
- package/dist/esm/models/UserShortResponse.js +1 -1
- package/dist/esm/models/UserTelegram.d.ts +1 -1
- package/dist/esm/models/UserTelegram.js +1 -1
- package/dist/esm/models/UserUpdateBody.d.ts +1 -1
- package/dist/esm/models/UserUpdateBody.js +1 -1
- package/dist/esm/models/ValidationError.d.ts +1 -1
- package/dist/esm/models/ValidationError.js +1 -1
- package/dist/esm/models/ValidationErrorLocInner.d.ts +1 -1
- package/dist/esm/models/ValidationErrorLocInner.js +1 -1
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/BodyChangePasswordProfileChangePasswordPost.d.ts +1 -1
- package/dist/models/BodyChangePasswordProfileChangePasswordPost.js +1 -1
- package/dist/models/BuildStatusEnum.d.ts +1 -1
- package/dist/models/BuildStatusEnum.js +1 -1
- package/dist/models/BuildTaskResponse.d.ts +1 -1
- package/dist/models/BuildTaskResponse.js +3 -3
- package/dist/models/BuildTaskShortResponse.d.ts +1 -1
- package/dist/models/BuildTaskShortResponse.js +3 -3
- package/dist/models/DeviceInternalResponse.d.ts +13 -1
- package/dist/models/DeviceInternalResponse.js +5 -1
- package/dist/models/DeviceResponse.d.ts +13 -1
- package/dist/models/DeviceResponse.js +5 -1
- package/dist/models/DeviceStatsResponse.d.ts +1 -1
- package/dist/models/DeviceStatsResponse.js +1 -1
- package/dist/models/DeviceUpdateBody.d.ts +1 -1
- package/dist/models/DeviceUpdateBody.js +1 -1
- package/dist/models/FFStatusEnum.d.ts +1 -1
- package/dist/models/FFStatusEnum.js +1 -1
- package/dist/models/FFStatusResponse.d.ts +1 -1
- package/dist/models/FFStatusResponse.js +1 -1
- package/dist/models/GlobalStatsAggregationModel.d.ts +1 -1
- package/dist/models/GlobalStatsAggregationModel.js +1 -1
- package/dist/models/HTTPValidationError.d.ts +1 -1
- package/dist/models/HTTPValidationError.js +1 -1
- package/dist/models/ListResponseBuildTaskShortResponse.d.ts +1 -1
- package/dist/models/ListResponseBuildTaskShortResponse.js +1 -1
- package/dist/models/ListResponseReleaseResponse.d.ts +1 -1
- package/dist/models/ListResponseReleaseResponse.js +1 -1
- package/dist/models/ListResponseShortDeviceResponse.d.ts +1 -1
- package/dist/models/ListResponseShortDeviceResponse.js +1 -1
- package/dist/models/ListResponseShortReleaseResponse.d.ts +1 -1
- package/dist/models/ListResponseShortReleaseResponse.js +1 -1
- package/dist/models/ListResponseStr.d.ts +1 -1
- package/dist/models/ListResponseStr.js +1 -1
- package/dist/models/ListResponseUserShortResponse.d.ts +1 -1
- package/dist/models/ListResponseUserShortResponse.js +1 -1
- package/dist/models/LogListResponse.d.ts +1 -1
- package/dist/models/LogListResponse.js +1 -1
- package/dist/models/LogResponse.d.ts +1 -1
- package/dist/models/LogResponse.js +2 -2
- package/dist/models/MaintainerShortModel.d.ts +1 -1
- package/dist/models/MaintainerShortModel.js +1 -1
- package/dist/models/NewBuildTaskBody.d.ts +1 -1
- package/dist/models/NewBuildTaskBody.js +1 -1
- package/dist/models/NewDeviceBody.d.ts +1 -1
- package/dist/models/NewDeviceBody.js +1 -1
- package/dist/models/PasteInput.d.ts +2 -20
- package/dist/models/PasteInput.js +1 -9
- package/dist/models/PasteOutput.d.ts +9 -9
- package/dist/models/PasteOutput.js +10 -8
- package/dist/models/RecoveryImgResponse.d.ts +1 -1
- package/dist/models/RecoveryImgResponse.js +1 -1
- package/dist/models/ReleaseGroupsResponse.d.ts +1 -1
- package/dist/models/ReleaseGroupsResponse.js +1 -1
- package/dist/models/ReleaseInternalResponse.d.ts +14 -2
- package/dist/models/ReleaseInternalResponse.js +7 -1
- package/dist/models/ReleaseInternalResponsePropValue.d.ts +1 -1
- package/dist/models/ReleaseInternalResponsePropValue.js +1 -1
- package/dist/models/ReleaseResponse.d.ts +14 -2
- package/dist/models/ReleaseResponse.js +7 -1
- package/dist/models/ReleaseStatsResponse.d.ts +1 -1
- package/dist/models/ReleaseStatsResponse.js +1 -1
- package/dist/models/ReleaseType.d.ts +1 -1
- package/dist/models/ReleaseType.js +1 -1
- package/dist/models/ReleaseUpdateBody.d.ts +1 -1
- package/dist/models/ReleaseUpdateBody.js +1 -1
- package/dist/models/ReleasesSort.d.ts +1 -1
- package/dist/models/ReleasesSort.js +1 -1
- package/dist/models/ResponseGetReleases.d.ts +1 -1
- package/dist/models/ResponseGetReleases.js +1 -1
- package/dist/models/ShortDeviceResponse.d.ts +13 -1
- package/dist/models/ShortDeviceResponse.js +5 -1
- package/dist/models/ShortReleaseResponse.d.ts +14 -2
- package/dist/models/ShortReleaseResponse.js +7 -1
- package/dist/models/TaskUpdateBody.d.ts +1 -1
- package/dist/models/TaskUpdateBody.js +1 -1
- package/dist/models/TokenResponse.d.ts +1 -1
- package/dist/models/TokenResponse.js +1 -1
- package/dist/models/UserGitlab.d.ts +1 -1
- package/dist/models/UserGitlab.js +1 -1
- package/dist/models/UserInternalResponse.d.ts +1 -1
- package/dist/models/UserInternalResponse.js +1 -1
- package/dist/models/UserMail.d.ts +1 -1
- package/dist/models/UserMail.js +1 -1
- package/dist/models/UserShortResponse.d.ts +1 -1
- package/dist/models/UserShortResponse.js +1 -1
- package/dist/models/UserTelegram.d.ts +1 -1
- package/dist/models/UserTelegram.js +1 -1
- package/dist/models/UserUpdateBody.d.ts +1 -1
- package/dist/models/UserUpdateBody.js +1 -1
- package/dist/models/ValidationError.d.ts +1 -1
- package/dist/models/ValidationError.js +1 -1
- package/dist/models/ValidationErrorLocInner.d.ts +1 -1
- package/dist/models/ValidationErrorLocInner.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/docs/BodyChangePasswordProfileChangePasswordPost.md +36 -0
- package/docs/BuildStatusEnum.md +32 -0
- package/docs/BuildTaskResponse.md +56 -0
- package/docs/BuildTaskShortResponse.md +52 -0
- package/docs/DeviceApi.md +315 -0
- package/docs/DeviceInternalResponse.md +64 -0
- package/docs/DeviceResponse.md +60 -0
- package/docs/DeviceStatsResponse.md +38 -0
- package/docs/DeviceUpdateBody.md +44 -0
- package/docs/FFStatusEnum.md +32 -0
- package/docs/FFStatusResponse.md +34 -0
- package/docs/FoxFactoryApi.md +758 -0
- package/docs/GitlabApi.md +78 -0
- package/docs/GlobalStatsAggregationModel.md +40 -0
- package/docs/HTTPValidationError.md +34 -0
- package/docs/InternalApi.md +1608 -0
- package/docs/ListResponseBuildTaskShortResponse.md +36 -0
- package/docs/ListResponseReleaseResponse.md +36 -0
- package/docs/ListResponseShortDeviceResponse.md +36 -0
- package/docs/ListResponseShortReleaseResponse.md +36 -0
- package/docs/ListResponseStr.md +36 -0
- package/docs/ListResponseUserShortResponse.md +36 -0
- package/docs/LogListResponse.md +40 -0
- package/docs/LogResponse.md +50 -0
- package/docs/MaintainerShortModel.md +38 -0
- package/docs/NewBuildTaskBody.md +42 -0
- package/docs/NewDeviceBody.md +40 -0
- package/docs/PasteApi.md +149 -0
- package/docs/PasteInput.md +34 -0
- package/docs/PasteOutput.md +40 -0
- package/docs/RecoveryImgResponse.md +36 -0
- package/docs/ReleaseApi.md +354 -0
- package/docs/ReleaseGroupsResponse.md +34 -0
- package/docs/ReleaseInternalResponse.md +78 -0
- package/docs/ReleaseInternalResponsePropValue.md +32 -0
- package/docs/ReleaseResponse.md +72 -0
- package/docs/ReleaseStatsResponse.md +38 -0
- package/docs/ReleaseType.md +32 -0
- package/docs/ReleaseUpdateBody.md +40 -0
- package/docs/ReleasesSort.md +32 -0
- package/docs/ResponseGetReleases.md +36 -0
- package/docs/ShortDeviceResponse.md +54 -0
- package/docs/ShortReleaseResponse.md +60 -0
- package/docs/StatsApi.md +69 -0
- package/docs/TaskUpdateBody.md +36 -0
- package/docs/TokenResponse.md +36 -0
- package/docs/UserGitlab.md +34 -0
- package/docs/UserInternalResponse.md +52 -0
- package/docs/UserMail.md +34 -0
- package/docs/UserShortResponse.md +40 -0
- package/docs/UserTelegram.md +34 -0
- package/docs/UserUpdateBody.md +42 -0
- package/docs/ValidationError.md +38 -0
- package/docs/ValidationErrorLocInner.md +32 -0
- package/package.json +5 -2
- package/src/apis/DeviceApi.ts +18 -5
- package/src/apis/FoxFactoryApi.ts +47 -11
- package/src/apis/GitlabApi.ts +6 -2
- package/src/apis/InternalApi.ts +220 -20
- package/src/apis/PasteApi.ts +10 -3
- package/src/apis/ReleaseApi.ts +19 -5
- package/src/apis/StatsApi.ts +5 -2
- package/src/models/BodyChangePasswordProfileChangePasswordPost.ts +1 -1
- package/src/models/BuildStatusEnum.ts +1 -1
- package/src/models/BuildTaskResponse.ts +3 -3
- package/src/models/BuildTaskShortResponse.ts +3 -3
- package/src/models/DeviceInternalResponse.ts +17 -1
- package/src/models/DeviceResponse.ts +17 -1
- package/src/models/DeviceStatsResponse.ts +1 -1
- package/src/models/DeviceUpdateBody.ts +1 -1
- package/src/models/FFStatusEnum.ts +1 -1
- package/src/models/FFStatusResponse.ts +1 -1
- package/src/models/GlobalStatsAggregationModel.ts +1 -1
- package/src/models/HTTPValidationError.ts +1 -1
- package/src/models/ListResponseBuildTaskShortResponse.ts +1 -1
- package/src/models/ListResponseReleaseResponse.ts +1 -1
- package/src/models/ListResponseShortDeviceResponse.ts +1 -1
- package/src/models/ListResponseShortReleaseResponse.ts +1 -1
- package/src/models/ListResponseStr.ts +1 -1
- package/src/models/ListResponseUserShortResponse.ts +1 -1
- package/src/models/LogListResponse.ts +1 -1
- package/src/models/LogResponse.ts +2 -2
- package/src/models/MaintainerShortModel.ts +1 -1
- package/src/models/NewBuildTaskBody.ts +1 -1
- package/src/models/NewDeviceBody.ts +1 -1
- package/src/models/PasteInput.ts +2 -27
- package/src/models/PasteOutput.ts +17 -16
- package/src/models/RecoveryImgResponse.ts +1 -1
- package/src/models/ReleaseGroupsResponse.ts +1 -1
- package/src/models/ReleaseInternalResponse.ts +19 -2
- package/src/models/ReleaseInternalResponsePropValue.ts +1 -1
- package/src/models/ReleaseResponse.ts +19 -2
- package/src/models/ReleaseStatsResponse.ts +1 -1
- package/src/models/ReleaseType.ts +1 -1
- package/src/models/ReleaseUpdateBody.ts +1 -1
- package/src/models/ReleasesSort.ts +1 -1
- package/src/models/ResponseGetReleases.ts +1 -1
- package/src/models/ShortDeviceResponse.ts +17 -1
- package/src/models/ShortReleaseResponse.ts +19 -2
- package/src/models/TaskUpdateBody.ts +1 -1
- package/src/models/TokenResponse.ts +1 -1
- package/src/models/UserGitlab.ts +1 -1
- package/src/models/UserInternalResponse.ts +1 -1
- package/src/models/UserMail.ts +1 -1
- package/src/models/UserShortResponse.ts +1 -1
- package/src/models/UserTelegram.ts +1 -1
- package/src/models/UserUpdateBody.ts +1 -1
- package/src/models/ValidationError.ts +1 -1
- package/src/models/ValidationErrorLocInner.ts +1 -1
- package/src/runtime.ts +1 -1
package/src/apis/DeviceApi.ts
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.3.2
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -167,8 +167,11 @@ export class DeviceApi extends runtime.BaseAPI implements DeviceApiInterface {
|
|
|
167
167
|
|
|
168
168
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
169
169
|
|
|
170
|
+
|
|
171
|
+
let urlPath = `/devices/get`;
|
|
172
|
+
|
|
170
173
|
const response = await this.request({
|
|
171
|
-
path:
|
|
174
|
+
path: urlPath,
|
|
172
175
|
method: 'GET',
|
|
173
176
|
headers: headerParameters,
|
|
174
177
|
query: queryParameters,
|
|
@@ -203,8 +206,12 @@ export class DeviceApi extends runtime.BaseAPI implements DeviceApiInterface {
|
|
|
203
206
|
|
|
204
207
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
205
208
|
|
|
209
|
+
|
|
210
|
+
let urlPath = `/devices/{device_id}`;
|
|
211
|
+
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
212
|
+
|
|
206
213
|
const response = await this.request({
|
|
207
|
-
path:
|
|
214
|
+
path: urlPath,
|
|
208
215
|
method: 'GET',
|
|
209
216
|
headers: headerParameters,
|
|
210
217
|
query: queryParameters,
|
|
@@ -276,8 +283,11 @@ export class DeviceApi extends runtime.BaseAPI implements DeviceApiInterface {
|
|
|
276
283
|
|
|
277
284
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
278
285
|
|
|
286
|
+
|
|
287
|
+
let urlPath = `/devices/`;
|
|
288
|
+
|
|
279
289
|
const response = await this.request({
|
|
280
|
-
path:
|
|
290
|
+
path: urlPath,
|
|
281
291
|
method: 'GET',
|
|
282
292
|
headers: headerParameters,
|
|
283
293
|
query: queryParameters,
|
|
@@ -304,8 +314,11 @@ export class DeviceApi extends runtime.BaseAPI implements DeviceApiInterface {
|
|
|
304
314
|
|
|
305
315
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
306
316
|
|
|
317
|
+
|
|
318
|
+
let urlPath = `/oems/`;
|
|
319
|
+
|
|
307
320
|
const response = await this.request({
|
|
308
|
-
path:
|
|
321
|
+
path: urlPath,
|
|
309
322
|
method: 'GET',
|
|
310
323
|
headers: headerParameters,
|
|
311
324
|
query: queryParameters,
|
|
@@ -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.3.2
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -284,8 +284,12 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
284
284
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
+
|
|
288
|
+
let urlPath = `/factory/{task_id}/cancel`;
|
|
289
|
+
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
290
|
+
|
|
287
291
|
const response = await this.request({
|
|
288
|
-
path:
|
|
292
|
+
path: urlPath,
|
|
289
293
|
method: 'POST',
|
|
290
294
|
headers: headerParameters,
|
|
291
295
|
query: queryParameters,
|
|
@@ -332,8 +336,12 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
332
336
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
333
337
|
}
|
|
334
338
|
}
|
|
339
|
+
|
|
340
|
+
let urlPath = `/factory/{task_id}`;
|
|
341
|
+
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
342
|
+
|
|
335
343
|
const response = await this.request({
|
|
336
|
-
path:
|
|
344
|
+
path: urlPath,
|
|
337
345
|
method: 'DELETE',
|
|
338
346
|
headers: headerParameters,
|
|
339
347
|
query: queryParameters,
|
|
@@ -384,8 +392,12 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
384
392
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
385
393
|
}
|
|
386
394
|
}
|
|
395
|
+
|
|
396
|
+
let urlPath = `/factory/{task_id}/artifact`;
|
|
397
|
+
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
398
|
+
|
|
387
399
|
const response = await this.request({
|
|
388
|
-
path:
|
|
400
|
+
path: urlPath,
|
|
389
401
|
method: 'GET',
|
|
390
402
|
headers: headerParameters,
|
|
391
403
|
query: queryParameters,
|
|
@@ -429,8 +441,11 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
429
441
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
430
442
|
}
|
|
431
443
|
}
|
|
444
|
+
|
|
445
|
+
let urlPath = `/factory/status`;
|
|
446
|
+
|
|
432
447
|
const response = await this.request({
|
|
433
|
-
path:
|
|
448
|
+
path: urlPath,
|
|
434
449
|
method: 'GET',
|
|
435
450
|
headers: headerParameters,
|
|
436
451
|
query: queryParameters,
|
|
@@ -477,8 +492,12 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
477
492
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
478
493
|
}
|
|
479
494
|
}
|
|
495
|
+
|
|
496
|
+
let urlPath = `/factory/{task_id}`;
|
|
497
|
+
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
498
|
+
|
|
480
499
|
const response = await this.request({
|
|
481
|
-
path:
|
|
500
|
+
path: urlPath,
|
|
482
501
|
method: 'GET',
|
|
483
502
|
headers: headerParameters,
|
|
484
503
|
query: queryParameters,
|
|
@@ -522,8 +541,11 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
522
541
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
523
542
|
}
|
|
524
543
|
}
|
|
544
|
+
|
|
545
|
+
let urlPath = `/factory/`;
|
|
546
|
+
|
|
525
547
|
const response = await this.request({
|
|
526
|
-
path:
|
|
548
|
+
path: urlPath,
|
|
527
549
|
method: 'GET',
|
|
528
550
|
headers: headerParameters,
|
|
529
551
|
query: queryParameters,
|
|
@@ -572,8 +594,11 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
572
594
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
573
595
|
}
|
|
574
596
|
}
|
|
597
|
+
|
|
598
|
+
let urlPath = `/factory/`;
|
|
599
|
+
|
|
575
600
|
const response = await this.request({
|
|
576
|
-
path:
|
|
601
|
+
path: urlPath,
|
|
577
602
|
method: 'POST',
|
|
578
603
|
headers: headerParameters,
|
|
579
604
|
query: queryParameters,
|
|
@@ -634,8 +659,12 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
634
659
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
635
660
|
}
|
|
636
661
|
}
|
|
662
|
+
|
|
663
|
+
let urlPath = `/factory/{task_id}`;
|
|
664
|
+
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
665
|
+
|
|
637
666
|
const response = await this.request({
|
|
638
|
-
path:
|
|
667
|
+
path: urlPath,
|
|
639
668
|
method: 'PATCH',
|
|
640
669
|
headers: headerParameters,
|
|
641
670
|
query: queryParameters,
|
|
@@ -689,8 +718,11 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
689
718
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
690
719
|
}
|
|
691
720
|
}
|
|
721
|
+
|
|
722
|
+
let urlPath = `/factory/update_status`;
|
|
723
|
+
|
|
692
724
|
const response = await this.request({
|
|
693
|
-
path:
|
|
725
|
+
path: urlPath,
|
|
694
726
|
method: 'POST',
|
|
695
727
|
headers: headerParameters,
|
|
696
728
|
query: queryParameters,
|
|
@@ -780,8 +812,12 @@ export class FoxFactoryApi extends runtime.BaseAPI implements FoxFactoryApiInter
|
|
|
780
812
|
formParams.append('md5_hash', requestParameters['md5Hash'] as any);
|
|
781
813
|
}
|
|
782
814
|
|
|
815
|
+
|
|
816
|
+
let urlPath = `/factory/{task_id}/artifact`;
|
|
817
|
+
urlPath = urlPath.replace(`{${"task_id"}}`, encodeURIComponent(String(requestParameters['taskId'])));
|
|
818
|
+
|
|
783
819
|
const response = await this.request({
|
|
784
|
-
path:
|
|
820
|
+
path: urlPath,
|
|
785
821
|
method: 'POST',
|
|
786
822
|
headers: headerParameters,
|
|
787
823
|
query: queryParameters,
|
package/src/apis/GitlabApi.ts
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.3.2
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -83,8 +83,12 @@ export class GitlabApi extends runtime.BaseAPI implements GitlabApiInterface {
|
|
|
83
83
|
|
|
84
84
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
85
85
|
|
|
86
|
+
|
|
87
|
+
let urlPath = `/gitlab/device/{device_id}/gitlab`;
|
|
88
|
+
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
89
|
+
|
|
86
90
|
const response = await this.request({
|
|
87
|
-
path:
|
|
91
|
+
path: urlPath,
|
|
88
92
|
method: 'POST',
|
|
89
93
|
headers: headerParameters,
|
|
90
94
|
query: queryParameters,
|
package/src/apis/InternalApi.ts
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.3.2
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -72,6 +72,10 @@ export interface DelReleaseInternalReleasesReleaseIdDeleteRequest {
|
|
|
72
72
|
releaseId: string;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
export interface DeleteDeviceInternalDevicesDeviceIdDeleteRequest {
|
|
76
|
+
deviceId: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
75
79
|
export interface DeletePasteInternalPastePasteIdDeleteRequest {
|
|
76
80
|
pasteId: string;
|
|
77
81
|
}
|
|
@@ -197,6 +201,21 @@ export interface InternalApiInterface {
|
|
|
197
201
|
*/
|
|
198
202
|
delReleaseInternalReleasesReleaseIdDelete(requestParameters: DelReleaseInternalReleasesReleaseIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
|
|
199
203
|
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
* @summary Delete Device
|
|
207
|
+
* @param {string} deviceId
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
* @memberof InternalApiInterface
|
|
211
|
+
*/
|
|
212
|
+
deleteDeviceInternalDevicesDeviceIdDeleteRaw(requestParameters: DeleteDeviceInternalDevicesDeviceIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>>;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Delete Device
|
|
216
|
+
*/
|
|
217
|
+
deleteDeviceInternalDevicesDeviceIdDelete(requestParameters: DeleteDeviceInternalDevicesDeviceIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean>;
|
|
218
|
+
|
|
200
219
|
/**
|
|
201
220
|
* Delete a paste by ID. Requires admin permissions.
|
|
202
221
|
* @summary Delete Paste
|
|
@@ -328,6 +347,21 @@ export interface InternalApiInterface {
|
|
|
328
347
|
*/
|
|
329
348
|
getUserByIdInternalUsersUserIdGet(requestParameters: GetUserByIdInternalUsersUserIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserInternalResponse>;
|
|
330
349
|
|
|
350
|
+
/**
|
|
351
|
+
* List all pastes. Requires admin permissions.
|
|
352
|
+
* @summary List Pastes
|
|
353
|
+
* @param {*} [options] Override http request option.
|
|
354
|
+
* @throws {RequiredError}
|
|
355
|
+
* @memberof InternalApiInterface
|
|
356
|
+
*/
|
|
357
|
+
listPastesInternalPasteGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PasteOutput>>>;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* List all pastes. Requires admin permissions.
|
|
361
|
+
* List Pastes
|
|
362
|
+
*/
|
|
363
|
+
listPastesInternalPasteGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PasteOutput>>;
|
|
364
|
+
|
|
331
365
|
/**
|
|
332
366
|
*
|
|
333
367
|
* @summary List Users
|
|
@@ -505,8 +539,11 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
505
539
|
|
|
506
540
|
headerParameters['Content-Type'] = 'application/json';
|
|
507
541
|
|
|
542
|
+
|
|
543
|
+
let urlPath = `/profile/change_password`;
|
|
544
|
+
|
|
508
545
|
const response = await this.request({
|
|
509
|
-
path:
|
|
546
|
+
path: urlPath,
|
|
510
547
|
method: 'POST',
|
|
511
548
|
headers: headerParameters,
|
|
512
549
|
query: queryParameters,
|
|
@@ -558,8 +595,12 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
558
595
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
559
596
|
}
|
|
560
597
|
}
|
|
598
|
+
|
|
599
|
+
let urlPath = `/internal/releases/{release_id}`;
|
|
600
|
+
urlPath = urlPath.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId'])));
|
|
601
|
+
|
|
561
602
|
const response = await this.request({
|
|
562
|
-
path:
|
|
603
|
+
path: urlPath,
|
|
563
604
|
method: 'DELETE',
|
|
564
605
|
headers: headerParameters,
|
|
565
606
|
query: queryParameters,
|
|
@@ -581,6 +622,60 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
581
622
|
return await response.value();
|
|
582
623
|
}
|
|
583
624
|
|
|
625
|
+
/**
|
|
626
|
+
* Delete Device
|
|
627
|
+
*/
|
|
628
|
+
async deleteDeviceInternalDevicesDeviceIdDeleteRaw(requestParameters: DeleteDeviceInternalDevicesDeviceIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<boolean>> {
|
|
629
|
+
if (requestParameters['deviceId'] == null) {
|
|
630
|
+
throw new runtime.RequiredError(
|
|
631
|
+
'deviceId',
|
|
632
|
+
'Required parameter "deviceId" was null or undefined when calling deleteDeviceInternalDevicesDeviceIdDelete().'
|
|
633
|
+
);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
const queryParameters: any = {};
|
|
637
|
+
|
|
638
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
639
|
+
|
|
640
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
641
|
+
// oauth required
|
|
642
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("oauth2_password", []);
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
646
|
+
const token = this.configuration.accessToken;
|
|
647
|
+
const tokenString = await token("bearer_auth", []);
|
|
648
|
+
|
|
649
|
+
if (tokenString) {
|
|
650
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
let urlPath = `/internal/devices/{device_id}`;
|
|
655
|
+
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
656
|
+
|
|
657
|
+
const response = await this.request({
|
|
658
|
+
path: urlPath,
|
|
659
|
+
method: 'DELETE',
|
|
660
|
+
headers: headerParameters,
|
|
661
|
+
query: queryParameters,
|
|
662
|
+
}, initOverrides);
|
|
663
|
+
|
|
664
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
665
|
+
return new runtime.JSONApiResponse<boolean>(response);
|
|
666
|
+
} else {
|
|
667
|
+
return new runtime.TextApiResponse(response) as any;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Delete Device
|
|
673
|
+
*/
|
|
674
|
+
async deleteDeviceInternalDevicesDeviceIdDelete(requestParameters: DeleteDeviceInternalDevicesDeviceIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<boolean> {
|
|
675
|
+
const response = await this.deleteDeviceInternalDevicesDeviceIdDeleteRaw(requestParameters, initOverrides);
|
|
676
|
+
return await response.value();
|
|
677
|
+
}
|
|
678
|
+
|
|
584
679
|
/**
|
|
585
680
|
* Delete a paste by ID. Requires admin permissions.
|
|
586
681
|
* Delete Paste
|
|
@@ -610,8 +705,12 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
610
705
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
611
706
|
}
|
|
612
707
|
}
|
|
708
|
+
|
|
709
|
+
let urlPath = `/internal/paste/{paste_id}`;
|
|
710
|
+
urlPath = urlPath.replace(`{${"paste_id"}}`, encodeURIComponent(String(requestParameters['pasteId'])));
|
|
711
|
+
|
|
613
712
|
const response = await this.request({
|
|
614
|
-
path:
|
|
713
|
+
path: urlPath,
|
|
615
714
|
method: 'DELETE',
|
|
616
715
|
headers: headerParameters,
|
|
617
716
|
query: queryParameters,
|
|
@@ -656,8 +755,12 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
656
755
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
657
756
|
}
|
|
658
757
|
}
|
|
758
|
+
|
|
759
|
+
let urlPath = `/internal/users/{user_id}`;
|
|
760
|
+
urlPath = urlPath.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
761
|
+
|
|
659
762
|
const response = await this.request({
|
|
660
|
-
path:
|
|
763
|
+
path: urlPath,
|
|
661
764
|
method: 'DELETE',
|
|
662
765
|
headers: headerParameters,
|
|
663
766
|
query: queryParameters,
|
|
@@ -716,8 +819,12 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
716
819
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
717
820
|
}
|
|
718
821
|
}
|
|
822
|
+
|
|
823
|
+
let urlPath = `/internal/releases/{release_id}`;
|
|
824
|
+
urlPath = urlPath.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId'])));
|
|
825
|
+
|
|
719
826
|
const response = await this.request({
|
|
720
|
-
path:
|
|
827
|
+
path: urlPath,
|
|
721
828
|
method: 'PUT',
|
|
722
829
|
headers: headerParameters,
|
|
723
830
|
query: queryParameters,
|
|
@@ -768,8 +875,12 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
768
875
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
769
876
|
}
|
|
770
877
|
}
|
|
878
|
+
|
|
879
|
+
let urlPath = `/internal/devices/{device_id}`;
|
|
880
|
+
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
881
|
+
|
|
771
882
|
const response = await this.request({
|
|
772
|
-
path:
|
|
883
|
+
path: urlPath,
|
|
773
884
|
method: 'GET',
|
|
774
885
|
headers: headerParameters,
|
|
775
886
|
query: queryParameters,
|
|
@@ -832,8 +943,11 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
832
943
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
833
944
|
}
|
|
834
945
|
}
|
|
946
|
+
|
|
947
|
+
let urlPath = `/internal/logs/`;
|
|
948
|
+
|
|
835
949
|
const response = await this.request({
|
|
836
|
-
path:
|
|
950
|
+
path: urlPath,
|
|
837
951
|
method: 'GET',
|
|
838
952
|
headers: headerParameters,
|
|
839
953
|
query: queryParameters,
|
|
@@ -880,8 +994,12 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
880
994
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
881
995
|
}
|
|
882
996
|
}
|
|
997
|
+
|
|
998
|
+
let urlPath = `/internal/releases/{release_id}`;
|
|
999
|
+
urlPath = urlPath.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId'])));
|
|
1000
|
+
|
|
883
1001
|
const response = await this.request({
|
|
884
|
-
path:
|
|
1002
|
+
path: urlPath,
|
|
885
1003
|
method: 'GET',
|
|
886
1004
|
headers: headerParameters,
|
|
887
1005
|
query: queryParameters,
|
|
@@ -928,8 +1046,12 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
928
1046
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
929
1047
|
}
|
|
930
1048
|
}
|
|
1049
|
+
|
|
1050
|
+
let urlPath = `/internal/releases/{release_id}/dl`;
|
|
1051
|
+
urlPath = urlPath.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId'])));
|
|
1052
|
+
|
|
931
1053
|
const response = await this.request({
|
|
932
|
-
path:
|
|
1054
|
+
path: urlPath,
|
|
933
1055
|
method: 'GET',
|
|
934
1056
|
headers: headerParameters,
|
|
935
1057
|
query: queryParameters,
|
|
@@ -979,8 +1101,12 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
979
1101
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
980
1102
|
}
|
|
981
1103
|
}
|
|
1104
|
+
|
|
1105
|
+
let urlPath = `/internal/users/{user_id}`;
|
|
1106
|
+
urlPath = urlPath.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
1107
|
+
|
|
982
1108
|
const response = await this.request({
|
|
983
|
-
path:
|
|
1109
|
+
path: urlPath,
|
|
984
1110
|
method: 'GET',
|
|
985
1111
|
headers: headerParameters,
|
|
986
1112
|
query: queryParameters,
|
|
@@ -997,6 +1123,50 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
997
1123
|
return await response.value();
|
|
998
1124
|
}
|
|
999
1125
|
|
|
1126
|
+
/**
|
|
1127
|
+
* List all pastes. Requires admin permissions.
|
|
1128
|
+
* List Pastes
|
|
1129
|
+
*/
|
|
1130
|
+
async listPastesInternalPasteGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<PasteOutput>>> {
|
|
1131
|
+
const queryParameters: any = {};
|
|
1132
|
+
|
|
1133
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1134
|
+
|
|
1135
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1136
|
+
// oauth required
|
|
1137
|
+
headerParameters["Authorization"] = await this.configuration.accessToken("oauth2_password", []);
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1141
|
+
const token = this.configuration.accessToken;
|
|
1142
|
+
const tokenString = await token("bearer_auth", []);
|
|
1143
|
+
|
|
1144
|
+
if (tokenString) {
|
|
1145
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
let urlPath = `/internal/paste/`;
|
|
1150
|
+
|
|
1151
|
+
const response = await this.request({
|
|
1152
|
+
path: urlPath,
|
|
1153
|
+
method: 'GET',
|
|
1154
|
+
headers: headerParameters,
|
|
1155
|
+
query: queryParameters,
|
|
1156
|
+
}, initOverrides);
|
|
1157
|
+
|
|
1158
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PasteOutputFromJSON));
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* List all pastes. Requires admin permissions.
|
|
1163
|
+
* List Pastes
|
|
1164
|
+
*/
|
|
1165
|
+
async listPastesInternalPasteGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<PasteOutput>> {
|
|
1166
|
+
const response = await this.listPastesInternalPasteGetRaw(initOverrides);
|
|
1167
|
+
return await response.value();
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1000
1170
|
/**
|
|
1001
1171
|
* List Users
|
|
1002
1172
|
*/
|
|
@@ -1018,8 +1188,11 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
1018
1188
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1019
1189
|
}
|
|
1020
1190
|
}
|
|
1191
|
+
|
|
1192
|
+
let urlPath = `/internal/users/`;
|
|
1193
|
+
|
|
1021
1194
|
const response = await this.request({
|
|
1022
|
-
path:
|
|
1195
|
+
path: urlPath,
|
|
1023
1196
|
method: 'GET',
|
|
1024
1197
|
headers: headerParameters,
|
|
1025
1198
|
query: queryParameters,
|
|
@@ -1118,8 +1291,11 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
1118
1291
|
formParams.append('client_secret', requestParameters['clientSecret'] as any);
|
|
1119
1292
|
}
|
|
1120
1293
|
|
|
1294
|
+
|
|
1295
|
+
let urlPath = `/auth/login`;
|
|
1296
|
+
|
|
1121
1297
|
const response = await this.request({
|
|
1122
|
-
path:
|
|
1298
|
+
path: urlPath,
|
|
1123
1299
|
method: 'POST',
|
|
1124
1300
|
headers: headerParameters,
|
|
1125
1301
|
query: queryParameters,
|
|
@@ -1168,8 +1344,11 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
1168
1344
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1169
1345
|
}
|
|
1170
1346
|
}
|
|
1347
|
+
|
|
1348
|
+
let urlPath = `/auth/logout`;
|
|
1349
|
+
|
|
1171
1350
|
const response = await this.request({
|
|
1172
|
-
path:
|
|
1351
|
+
path: urlPath,
|
|
1173
1352
|
method: 'POST',
|
|
1174
1353
|
headers: headerParameters,
|
|
1175
1354
|
query: queryParameters,
|
|
@@ -1221,8 +1400,11 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
1221
1400
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1222
1401
|
}
|
|
1223
1402
|
}
|
|
1403
|
+
|
|
1404
|
+
let urlPath = `/internal/devices/`;
|
|
1405
|
+
|
|
1224
1406
|
const response = await this.request({
|
|
1225
|
-
path:
|
|
1407
|
+
path: urlPath,
|
|
1226
1408
|
method: 'POST',
|
|
1227
1409
|
headers: headerParameters,
|
|
1228
1410
|
query: queryParameters,
|
|
@@ -1337,8 +1519,11 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
1337
1519
|
formParams.append('force', requestParameters['force'] as any);
|
|
1338
1520
|
}
|
|
1339
1521
|
|
|
1522
|
+
|
|
1523
|
+
let urlPath = `/internal/releases/`;
|
|
1524
|
+
|
|
1340
1525
|
const response = await this.request({
|
|
1341
|
-
path:
|
|
1526
|
+
path: urlPath,
|
|
1342
1527
|
method: 'POST',
|
|
1343
1528
|
headers: headerParameters,
|
|
1344
1529
|
query: queryParameters,
|
|
@@ -1386,8 +1571,11 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
1386
1571
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1387
1572
|
}
|
|
1388
1573
|
}
|
|
1574
|
+
|
|
1575
|
+
let urlPath = `/auth/renew`;
|
|
1576
|
+
|
|
1389
1577
|
const response = await this.request({
|
|
1390
|
-
path:
|
|
1578
|
+
path: urlPath,
|
|
1391
1579
|
method: 'POST',
|
|
1392
1580
|
headers: headerParameters,
|
|
1393
1581
|
query: queryParameters,
|
|
@@ -1446,8 +1634,12 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
1446
1634
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1447
1635
|
}
|
|
1448
1636
|
}
|
|
1637
|
+
|
|
1638
|
+
let urlPath = `/internal/devices/{device_id}`;
|
|
1639
|
+
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
1640
|
+
|
|
1449
1641
|
const response = await this.request({
|
|
1450
|
-
path:
|
|
1642
|
+
path: urlPath,
|
|
1451
1643
|
method: 'PUT',
|
|
1452
1644
|
headers: headerParameters,
|
|
1453
1645
|
query: queryParameters,
|
|
@@ -1507,8 +1699,12 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
1507
1699
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1508
1700
|
}
|
|
1509
1701
|
}
|
|
1702
|
+
|
|
1703
|
+
let urlPath = `/internal/paste/{paste_id}`;
|
|
1704
|
+
urlPath = urlPath.replace(`{${"paste_id"}}`, encodeURIComponent(String(requestParameters['pasteId'])));
|
|
1705
|
+
|
|
1510
1706
|
const response = await this.request({
|
|
1511
|
-
path:
|
|
1707
|
+
path: urlPath,
|
|
1512
1708
|
method: 'PUT',
|
|
1513
1709
|
headers: headerParameters,
|
|
1514
1710
|
query: queryParameters,
|
|
@@ -1564,8 +1760,12 @@ export class InternalApi extends runtime.BaseAPI implements InternalApiInterface
|
|
|
1564
1760
|
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1565
1761
|
}
|
|
1566
1762
|
}
|
|
1763
|
+
|
|
1764
|
+
let urlPath = `/internal/users/{user_id}`;
|
|
1765
|
+
urlPath = urlPath.replace(`{${"user_id"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
1766
|
+
|
|
1567
1767
|
const response = await this.request({
|
|
1568
|
-
path:
|
|
1768
|
+
path: urlPath,
|
|
1569
1769
|
method: 'PUT',
|
|
1570
1770
|
headers: headerParameters,
|
|
1571
1771
|
query: queryParameters,
|