@orangefox-recovery/foxclient 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/.openapi-generator/FILES +3 -0
- package/README.md +6 -2
- package/api.ts +270 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +180 -1
- package/dist/api.js +173 -2
- 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 +180 -1
- package/dist/esm/api.js +169 -2
- 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/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/.openapi-generator/FILES
CHANGED
|
@@ -15,6 +15,9 @@ docs/ListResponseShortDeviceResponse.md
|
|
|
15
15
|
docs/ListResponseShortReleaseResponse.md
|
|
16
16
|
docs/ListResponseStr.md
|
|
17
17
|
docs/MaintainerShortModel.md
|
|
18
|
+
docs/PasteApi.md
|
|
19
|
+
docs/PasteInput.md
|
|
20
|
+
docs/PasteOutput.md
|
|
18
21
|
docs/RecoveryImgResponse.md
|
|
19
22
|
docs/ReleaseApi.md
|
|
20
23
|
docs/ReleaseGroupsResponse.md
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @orangefox-recovery/foxclient@5.2.
|
|
1
|
+
## @orangefox-recovery/foxclient@5.2.6
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @orangefox-recovery/foxclient@5.2.
|
|
39
|
+
npm install @orangefox-recovery/foxclient@5.2.6 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -55,6 +55,8 @@ Class | Method | HTTP request | Description
|
|
|
55
55
|
*DeviceApi* | [**getDeviceDeprecated**](docs/DeviceApi.md#getdevicedeprecated) | **GET** /devices/{device_id} | Get Device Short
|
|
56
56
|
*DeviceApi* | [**getDevices**](docs/DeviceApi.md#getdevices) | **GET** /devices/ | Get Devices
|
|
57
57
|
*DeviceApi* | [**getOems**](docs/DeviceApi.md#getoems) | **GET** /oems/ | Get Oems
|
|
58
|
+
*PasteApi* | [**createPastePastePost**](docs/PasteApi.md#createpastepastepost) | **POST** /paste/ | Create Paste
|
|
59
|
+
*PasteApi* | [**getPastePastePasteIdGet**](docs/PasteApi.md#getpastepastepasteidget) | **GET** /paste/{paste_id} | Get Paste
|
|
58
60
|
*ReleaseApi* | [**getRelease**](docs/ReleaseApi.md#getrelease) | **GET** /releases/get | Get Release
|
|
59
61
|
*ReleaseApi* | [**getReleaseDeprecated**](docs/ReleaseApi.md#getreleasedeprecated) | **GET** /releases/{release_id} | Get Release Short
|
|
60
62
|
*ReleaseApi* | [**getReleases**](docs/ReleaseApi.md#getreleases) | **GET** /releases/ | Get Releases
|
|
@@ -72,6 +74,8 @@ Class | Method | HTTP request | Description
|
|
|
72
74
|
- [ListResponseShortReleaseResponse](docs/ListResponseShortReleaseResponse.md)
|
|
73
75
|
- [ListResponseStr](docs/ListResponseStr.md)
|
|
74
76
|
- [MaintainerShortModel](docs/MaintainerShortModel.md)
|
|
77
|
+
- [PasteInput](docs/PasteInput.md)
|
|
78
|
+
- [PasteOutput](docs/PasteOutput.md)
|
|
75
79
|
- [RecoveryImgResponse](docs/RecoveryImgResponse.md)
|
|
76
80
|
- [ReleaseGroupsResponse](docs/ReleaseGroupsResponse.md)
|
|
77
81
|
- [ReleaseResponse](docs/ReleaseResponse.md)
|
package/api.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.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).
|
|
@@ -263,6 +263,68 @@ export interface MaintainerShortModel {
|
|
|
263
263
|
*/
|
|
264
264
|
'username': string;
|
|
265
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* @export
|
|
269
|
+
* @interface PasteInput
|
|
270
|
+
*/
|
|
271
|
+
export interface PasteInput {
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
* @type {string}
|
|
275
|
+
* @memberof PasteInput
|
|
276
|
+
*/
|
|
277
|
+
'_id'?: string | null;
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @type {string}
|
|
281
|
+
* @memberof PasteInput
|
|
282
|
+
*/
|
|
283
|
+
'content': string;
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @type {string}
|
|
287
|
+
* @memberof PasteInput
|
|
288
|
+
*/
|
|
289
|
+
'ip_address': string;
|
|
290
|
+
/**
|
|
291
|
+
*
|
|
292
|
+
* @type {string}
|
|
293
|
+
* @memberof PasteInput
|
|
294
|
+
*/
|
|
295
|
+
'created_at'?: string;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @export
|
|
300
|
+
* @interface PasteOutput
|
|
301
|
+
*/
|
|
302
|
+
export interface PasteOutput {
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @type {string}
|
|
306
|
+
* @memberof PasteOutput
|
|
307
|
+
*/
|
|
308
|
+
'_id'?: string | null;
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @type {string}
|
|
312
|
+
* @memberof PasteOutput
|
|
313
|
+
*/
|
|
314
|
+
'content': string;
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @type {string}
|
|
318
|
+
* @memberof PasteOutput
|
|
319
|
+
*/
|
|
320
|
+
'ip_address': string;
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @type {string}
|
|
324
|
+
* @memberof PasteOutput
|
|
325
|
+
*/
|
|
326
|
+
'created_at'?: string;
|
|
327
|
+
}
|
|
266
328
|
/**
|
|
267
329
|
*
|
|
268
330
|
* @export
|
|
@@ -1130,6 +1192,213 @@ export class DeviceApi extends BaseAPI implements DeviceApiInterface {
|
|
|
1130
1192
|
|
|
1131
1193
|
|
|
1132
1194
|
|
|
1195
|
+
/**
|
|
1196
|
+
* PasteApi - axios parameter creator
|
|
1197
|
+
* @export
|
|
1198
|
+
*/
|
|
1199
|
+
export const PasteApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1200
|
+
return {
|
|
1201
|
+
/**
|
|
1202
|
+
* Create a new paste.
|
|
1203
|
+
* @summary Create Paste
|
|
1204
|
+
* @param {PasteInput} pasteInput
|
|
1205
|
+
* @param {*} [options] Override http request option.
|
|
1206
|
+
* @throws {RequiredError}
|
|
1207
|
+
*/
|
|
1208
|
+
createPastePastePost: async (pasteInput: PasteInput, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1209
|
+
// verify required parameter 'pasteInput' is not null or undefined
|
|
1210
|
+
assertParamExists('createPastePastePost', 'pasteInput', pasteInput)
|
|
1211
|
+
const localVarPath = `/paste/`;
|
|
1212
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1213
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1214
|
+
let baseOptions;
|
|
1215
|
+
if (configuration) {
|
|
1216
|
+
baseOptions = configuration.baseOptions;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1220
|
+
const localVarHeaderParameter = {} as any;
|
|
1221
|
+
const localVarQueryParameter = {} as any;
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1226
|
+
|
|
1227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1229
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1230
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pasteInput, localVarRequestOptions, configuration)
|
|
1231
|
+
|
|
1232
|
+
return {
|
|
1233
|
+
url: toPathString(localVarUrlObj),
|
|
1234
|
+
options: localVarRequestOptions,
|
|
1235
|
+
};
|
|
1236
|
+
},
|
|
1237
|
+
/**
|
|
1238
|
+
* Get a paste by ID.
|
|
1239
|
+
* @summary Get Paste
|
|
1240
|
+
* @param {string} pasteId
|
|
1241
|
+
* @param {*} [options] Override http request option.
|
|
1242
|
+
* @throws {RequiredError}
|
|
1243
|
+
*/
|
|
1244
|
+
getPastePastePasteIdGet: async (pasteId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1245
|
+
// verify required parameter 'pasteId' is not null or undefined
|
|
1246
|
+
assertParamExists('getPastePastePasteIdGet', 'pasteId', pasteId)
|
|
1247
|
+
const localVarPath = `/paste/{paste_id}`
|
|
1248
|
+
.replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
|
|
1249
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1250
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1251
|
+
let baseOptions;
|
|
1252
|
+
if (configuration) {
|
|
1253
|
+
baseOptions = configuration.baseOptions;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1257
|
+
const localVarHeaderParameter = {} as any;
|
|
1258
|
+
const localVarQueryParameter = {} as any;
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1263
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1264
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1265
|
+
|
|
1266
|
+
return {
|
|
1267
|
+
url: toPathString(localVarUrlObj),
|
|
1268
|
+
options: localVarRequestOptions,
|
|
1269
|
+
};
|
|
1270
|
+
},
|
|
1271
|
+
}
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* PasteApi - functional programming interface
|
|
1276
|
+
* @export
|
|
1277
|
+
*/
|
|
1278
|
+
export const PasteApiFp = function(configuration?: Configuration) {
|
|
1279
|
+
const localVarAxiosParamCreator = PasteApiAxiosParamCreator(configuration)
|
|
1280
|
+
return {
|
|
1281
|
+
/**
|
|
1282
|
+
* Create a new paste.
|
|
1283
|
+
* @summary Create Paste
|
|
1284
|
+
* @param {PasteInput} pasteInput
|
|
1285
|
+
* @param {*} [options] Override http request option.
|
|
1286
|
+
* @throws {RequiredError}
|
|
1287
|
+
*/
|
|
1288
|
+
async createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>> {
|
|
1289
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPastePastePost(pasteInput, options);
|
|
1290
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1291
|
+
const localVarOperationServerBasePath = operationServerMap['PasteApi.createPastePastePost']?.[localVarOperationServerIndex]?.url;
|
|
1292
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1293
|
+
},
|
|
1294
|
+
/**
|
|
1295
|
+
* Get a paste by ID.
|
|
1296
|
+
* @summary Get Paste
|
|
1297
|
+
* @param {string} pasteId
|
|
1298
|
+
* @param {*} [options] Override http request option.
|
|
1299
|
+
* @throws {RequiredError}
|
|
1300
|
+
*/
|
|
1301
|
+
async getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>> {
|
|
1302
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPastePastePasteIdGet(pasteId, options);
|
|
1303
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1304
|
+
const localVarOperationServerBasePath = operationServerMap['PasteApi.getPastePastePasteIdGet']?.[localVarOperationServerIndex]?.url;
|
|
1305
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1306
|
+
},
|
|
1307
|
+
}
|
|
1308
|
+
};
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* PasteApi - factory interface
|
|
1312
|
+
* @export
|
|
1313
|
+
*/
|
|
1314
|
+
export const PasteApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1315
|
+
const localVarFp = PasteApiFp(configuration)
|
|
1316
|
+
return {
|
|
1317
|
+
/**
|
|
1318
|
+
* Create a new paste.
|
|
1319
|
+
* @summary Create Paste
|
|
1320
|
+
* @param {PasteInput} pasteInput
|
|
1321
|
+
* @param {*} [options] Override http request option.
|
|
1322
|
+
* @throws {RequiredError}
|
|
1323
|
+
*/
|
|
1324
|
+
createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput> {
|
|
1325
|
+
return localVarFp.createPastePastePost(pasteInput, options).then((request) => request(axios, basePath));
|
|
1326
|
+
},
|
|
1327
|
+
/**
|
|
1328
|
+
* Get a paste by ID.
|
|
1329
|
+
* @summary Get Paste
|
|
1330
|
+
* @param {string} pasteId
|
|
1331
|
+
* @param {*} [options] Override http request option.
|
|
1332
|
+
* @throws {RequiredError}
|
|
1333
|
+
*/
|
|
1334
|
+
getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput> {
|
|
1335
|
+
return localVarFp.getPastePastePasteIdGet(pasteId, options).then((request) => request(axios, basePath));
|
|
1336
|
+
},
|
|
1337
|
+
};
|
|
1338
|
+
};
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* PasteApi - interface
|
|
1342
|
+
* @export
|
|
1343
|
+
* @interface PasteApi
|
|
1344
|
+
*/
|
|
1345
|
+
export interface PasteApiInterface {
|
|
1346
|
+
/**
|
|
1347
|
+
* Create a new paste.
|
|
1348
|
+
* @summary Create Paste
|
|
1349
|
+
* @param {PasteInput} pasteInput
|
|
1350
|
+
* @param {*} [options] Override http request option.
|
|
1351
|
+
* @throws {RequiredError}
|
|
1352
|
+
* @memberof PasteApiInterface
|
|
1353
|
+
*/
|
|
1354
|
+
createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
|
|
1355
|
+
|
|
1356
|
+
/**
|
|
1357
|
+
* Get a paste by ID.
|
|
1358
|
+
* @summary Get Paste
|
|
1359
|
+
* @param {string} pasteId
|
|
1360
|
+
* @param {*} [options] Override http request option.
|
|
1361
|
+
* @throws {RequiredError}
|
|
1362
|
+
* @memberof PasteApiInterface
|
|
1363
|
+
*/
|
|
1364
|
+
getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
|
|
1365
|
+
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* PasteApi - object-oriented interface
|
|
1370
|
+
* @export
|
|
1371
|
+
* @class PasteApi
|
|
1372
|
+
* @extends {BaseAPI}
|
|
1373
|
+
*/
|
|
1374
|
+
export class PasteApi extends BaseAPI implements PasteApiInterface {
|
|
1375
|
+
/**
|
|
1376
|
+
* Create a new paste.
|
|
1377
|
+
* @summary Create Paste
|
|
1378
|
+
* @param {PasteInput} pasteInput
|
|
1379
|
+
* @param {*} [options] Override http request option.
|
|
1380
|
+
* @throws {RequiredError}
|
|
1381
|
+
* @memberof PasteApi
|
|
1382
|
+
*/
|
|
1383
|
+
public createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig) {
|
|
1384
|
+
return PasteApiFp(this.configuration).createPastePastePost(pasteInput, options).then((request) => request(this.axios, this.basePath));
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* Get a paste by ID.
|
|
1389
|
+
* @summary Get Paste
|
|
1390
|
+
* @param {string} pasteId
|
|
1391
|
+
* @param {*} [options] Override http request option.
|
|
1392
|
+
* @throws {RequiredError}
|
|
1393
|
+
* @memberof PasteApi
|
|
1394
|
+
*/
|
|
1395
|
+
public getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig) {
|
|
1396
|
+
return PasteApiFp(this.configuration).getPastePastePasteIdGet(pasteId, options).then((request) => request(this.axios, this.basePath));
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
|
|
1133
1402
|
/**
|
|
1134
1403
|
* ReleaseApi - axios parameter creator
|
|
1135
1404
|
* @export
|
package/base.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.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).
|
package/common.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.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).
|
package/configuration.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.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).
|
package/dist/api.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
|
+
* 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).
|
|
@@ -255,6 +255,68 @@ export interface MaintainerShortModel {
|
|
|
255
255
|
*/
|
|
256
256
|
'username': string;
|
|
257
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @export
|
|
261
|
+
* @interface PasteInput
|
|
262
|
+
*/
|
|
263
|
+
export interface PasteInput {
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @type {string}
|
|
267
|
+
* @memberof PasteInput
|
|
268
|
+
*/
|
|
269
|
+
'_id'?: string | null;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @type {string}
|
|
273
|
+
* @memberof PasteInput
|
|
274
|
+
*/
|
|
275
|
+
'content': string;
|
|
276
|
+
/**
|
|
277
|
+
*
|
|
278
|
+
* @type {string}
|
|
279
|
+
* @memberof PasteInput
|
|
280
|
+
*/
|
|
281
|
+
'ip_address': string;
|
|
282
|
+
/**
|
|
283
|
+
*
|
|
284
|
+
* @type {string}
|
|
285
|
+
* @memberof PasteInput
|
|
286
|
+
*/
|
|
287
|
+
'created_at'?: string;
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @export
|
|
292
|
+
* @interface PasteOutput
|
|
293
|
+
*/
|
|
294
|
+
export interface PasteOutput {
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @type {string}
|
|
298
|
+
* @memberof PasteOutput
|
|
299
|
+
*/
|
|
300
|
+
'_id'?: string | null;
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @type {string}
|
|
304
|
+
* @memberof PasteOutput
|
|
305
|
+
*/
|
|
306
|
+
'content': string;
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* @type {string}
|
|
310
|
+
* @memberof PasteOutput
|
|
311
|
+
*/
|
|
312
|
+
'ip_address': string;
|
|
313
|
+
/**
|
|
314
|
+
*
|
|
315
|
+
* @type {string}
|
|
316
|
+
* @memberof PasteOutput
|
|
317
|
+
*/
|
|
318
|
+
'created_at'?: string;
|
|
319
|
+
}
|
|
258
320
|
/**
|
|
259
321
|
*
|
|
260
322
|
* @export
|
|
@@ -906,6 +968,123 @@ export declare class DeviceApi extends BaseAPI implements DeviceApiInterface {
|
|
|
906
968
|
*/
|
|
907
969
|
getOems(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListResponseStr, any>>;
|
|
908
970
|
}
|
|
971
|
+
/**
|
|
972
|
+
* PasteApi - axios parameter creator
|
|
973
|
+
* @export
|
|
974
|
+
*/
|
|
975
|
+
export declare const PasteApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
976
|
+
/**
|
|
977
|
+
* Create a new paste.
|
|
978
|
+
* @summary Create Paste
|
|
979
|
+
* @param {PasteInput} pasteInput
|
|
980
|
+
* @param {*} [options] Override http request option.
|
|
981
|
+
* @throws {RequiredError}
|
|
982
|
+
*/
|
|
983
|
+
createPastePastePost: (pasteInput: PasteInput, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
984
|
+
/**
|
|
985
|
+
* Get a paste by ID.
|
|
986
|
+
* @summary Get Paste
|
|
987
|
+
* @param {string} pasteId
|
|
988
|
+
* @param {*} [options] Override http request option.
|
|
989
|
+
* @throws {RequiredError}
|
|
990
|
+
*/
|
|
991
|
+
getPastePastePasteIdGet: (pasteId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
992
|
+
};
|
|
993
|
+
/**
|
|
994
|
+
* PasteApi - functional programming interface
|
|
995
|
+
* @export
|
|
996
|
+
*/
|
|
997
|
+
export declare const PasteApiFp: (configuration?: Configuration) => {
|
|
998
|
+
/**
|
|
999
|
+
* Create a new paste.
|
|
1000
|
+
* @summary Create Paste
|
|
1001
|
+
* @param {PasteInput} pasteInput
|
|
1002
|
+
* @param {*} [options] Override http request option.
|
|
1003
|
+
* @throws {RequiredError}
|
|
1004
|
+
*/
|
|
1005
|
+
createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>>;
|
|
1006
|
+
/**
|
|
1007
|
+
* Get a paste by ID.
|
|
1008
|
+
* @summary Get Paste
|
|
1009
|
+
* @param {string} pasteId
|
|
1010
|
+
* @param {*} [options] Override http request option.
|
|
1011
|
+
* @throws {RequiredError}
|
|
1012
|
+
*/
|
|
1013
|
+
getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>>;
|
|
1014
|
+
};
|
|
1015
|
+
/**
|
|
1016
|
+
* PasteApi - factory interface
|
|
1017
|
+
* @export
|
|
1018
|
+
*/
|
|
1019
|
+
export declare const PasteApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1020
|
+
/**
|
|
1021
|
+
* Create a new paste.
|
|
1022
|
+
* @summary Create Paste
|
|
1023
|
+
* @param {PasteInput} pasteInput
|
|
1024
|
+
* @param {*} [options] Override http request option.
|
|
1025
|
+
* @throws {RequiredError}
|
|
1026
|
+
*/
|
|
1027
|
+
createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
|
|
1028
|
+
/**
|
|
1029
|
+
* Get a paste by ID.
|
|
1030
|
+
* @summary Get Paste
|
|
1031
|
+
* @param {string} pasteId
|
|
1032
|
+
* @param {*} [options] Override http request option.
|
|
1033
|
+
* @throws {RequiredError}
|
|
1034
|
+
*/
|
|
1035
|
+
getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
|
|
1036
|
+
};
|
|
1037
|
+
/**
|
|
1038
|
+
* PasteApi - interface
|
|
1039
|
+
* @export
|
|
1040
|
+
* @interface PasteApi
|
|
1041
|
+
*/
|
|
1042
|
+
export interface PasteApiInterface {
|
|
1043
|
+
/**
|
|
1044
|
+
* Create a new paste.
|
|
1045
|
+
* @summary Create Paste
|
|
1046
|
+
* @param {PasteInput} pasteInput
|
|
1047
|
+
* @param {*} [options] Override http request option.
|
|
1048
|
+
* @throws {RequiredError}
|
|
1049
|
+
* @memberof PasteApiInterface
|
|
1050
|
+
*/
|
|
1051
|
+
createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
|
|
1052
|
+
/**
|
|
1053
|
+
* Get a paste by ID.
|
|
1054
|
+
* @summary Get Paste
|
|
1055
|
+
* @param {string} pasteId
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
* @memberof PasteApiInterface
|
|
1059
|
+
*/
|
|
1060
|
+
getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
|
|
1061
|
+
}
|
|
1062
|
+
/**
|
|
1063
|
+
* PasteApi - object-oriented interface
|
|
1064
|
+
* @export
|
|
1065
|
+
* @class PasteApi
|
|
1066
|
+
* @extends {BaseAPI}
|
|
1067
|
+
*/
|
|
1068
|
+
export declare class PasteApi extends BaseAPI implements PasteApiInterface {
|
|
1069
|
+
/**
|
|
1070
|
+
* Create a new paste.
|
|
1071
|
+
* @summary Create Paste
|
|
1072
|
+
* @param {PasteInput} pasteInput
|
|
1073
|
+
* @param {*} [options] Override http request option.
|
|
1074
|
+
* @throws {RequiredError}
|
|
1075
|
+
* @memberof PasteApi
|
|
1076
|
+
*/
|
|
1077
|
+
createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PasteOutput, any>>;
|
|
1078
|
+
/**
|
|
1079
|
+
* Get a paste by ID.
|
|
1080
|
+
* @summary Get Paste
|
|
1081
|
+
* @param {string} pasteId
|
|
1082
|
+
* @param {*} [options] Override http request option.
|
|
1083
|
+
* @throws {RequiredError}
|
|
1084
|
+
* @memberof PasteApi
|
|
1085
|
+
*/
|
|
1086
|
+
getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PasteOutput, any>>;
|
|
1087
|
+
}
|
|
909
1088
|
/**
|
|
910
1089
|
* ReleaseApi - axios parameter creator
|
|
911
1090
|
* @export
|