@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/.openapi-generator/FILES +3 -0
- package/README.md +8 -2
- package/api.ts +536 -3
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +271 -3
- package/dist/api.js +385 -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 +271 -3
- package/dist/esm/api.js +380 -1
- 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/BuildTaskResponse.md +1 -1
- package/docs/FoxFactoryApi.md +10 -10
- package/docs/InternalApi.md +114 -0
- package/docs/PasteApi.md +117 -0
- package/docs/PasteInput.md +26 -0
- package/docs/PasteOutput.md +26 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/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).
|
|
@@ -129,10 +129,10 @@ export interface BuildTaskResponse {
|
|
|
129
129
|
'has_artifact': boolean;
|
|
130
130
|
/**
|
|
131
131
|
*
|
|
132
|
-
* @type {{ [key: string]:
|
|
132
|
+
* @type {{ [key: string]: string; }}
|
|
133
133
|
* @memberof BuildTaskResponse
|
|
134
134
|
*/
|
|
135
|
-
'environment'?: { [key: string]:
|
|
135
|
+
'environment'?: { [key: string]: string; } | null;
|
|
136
136
|
/**
|
|
137
137
|
*
|
|
138
138
|
* @type {Array<string>}
|
|
@@ -849,6 +849,68 @@ export interface NewDeviceBody {
|
|
|
849
849
|
*/
|
|
850
850
|
'maintainer': string;
|
|
851
851
|
}
|
|
852
|
+
/**
|
|
853
|
+
*
|
|
854
|
+
* @export
|
|
855
|
+
* @interface PasteInput
|
|
856
|
+
*/
|
|
857
|
+
export interface PasteInput {
|
|
858
|
+
/**
|
|
859
|
+
*
|
|
860
|
+
* @type {string}
|
|
861
|
+
* @memberof PasteInput
|
|
862
|
+
*/
|
|
863
|
+
'_id'?: string | null;
|
|
864
|
+
/**
|
|
865
|
+
*
|
|
866
|
+
* @type {string}
|
|
867
|
+
* @memberof PasteInput
|
|
868
|
+
*/
|
|
869
|
+
'content': string;
|
|
870
|
+
/**
|
|
871
|
+
*
|
|
872
|
+
* @type {string}
|
|
873
|
+
* @memberof PasteInput
|
|
874
|
+
*/
|
|
875
|
+
'ip_address': string;
|
|
876
|
+
/**
|
|
877
|
+
*
|
|
878
|
+
* @type {string}
|
|
879
|
+
* @memberof PasteInput
|
|
880
|
+
*/
|
|
881
|
+
'created_at'?: string;
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
*
|
|
885
|
+
* @export
|
|
886
|
+
* @interface PasteOutput
|
|
887
|
+
*/
|
|
888
|
+
export interface PasteOutput {
|
|
889
|
+
/**
|
|
890
|
+
*
|
|
891
|
+
* @type {string}
|
|
892
|
+
* @memberof PasteOutput
|
|
893
|
+
*/
|
|
894
|
+
'_id'?: string | null;
|
|
895
|
+
/**
|
|
896
|
+
*
|
|
897
|
+
* @type {string}
|
|
898
|
+
* @memberof PasteOutput
|
|
899
|
+
*/
|
|
900
|
+
'content': string;
|
|
901
|
+
/**
|
|
902
|
+
*
|
|
903
|
+
* @type {string}
|
|
904
|
+
* @memberof PasteOutput
|
|
905
|
+
*/
|
|
906
|
+
'ip_address': string;
|
|
907
|
+
/**
|
|
908
|
+
*
|
|
909
|
+
* @type {string}
|
|
910
|
+
* @memberof PasteOutput
|
|
911
|
+
*/
|
|
912
|
+
'created_at'?: string;
|
|
913
|
+
}
|
|
852
914
|
/**
|
|
853
915
|
*
|
|
854
916
|
* @export
|
|
@@ -2165,6 +2227,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2165
2227
|
const localVarHeaderParameter = {} as any;
|
|
2166
2228
|
const localVarQueryParameter = {} as any;
|
|
2167
2229
|
|
|
2230
|
+
// authentication oauth2_password required
|
|
2231
|
+
// oauth required
|
|
2232
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2233
|
+
|
|
2234
|
+
// authentication bearer_auth required
|
|
2235
|
+
// http bearer authentication required
|
|
2236
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2237
|
+
|
|
2168
2238
|
|
|
2169
2239
|
|
|
2170
2240
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2199,6 +2269,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2199
2269
|
const localVarHeaderParameter = {} as any;
|
|
2200
2270
|
const localVarQueryParameter = {} as any;
|
|
2201
2271
|
|
|
2272
|
+
// authentication oauth2_password required
|
|
2273
|
+
// oauth required
|
|
2274
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2275
|
+
|
|
2276
|
+
// authentication bearer_auth required
|
|
2277
|
+
// http bearer authentication required
|
|
2278
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2279
|
+
|
|
2202
2280
|
|
|
2203
2281
|
|
|
2204
2282
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2233,6 +2311,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2233
2311
|
const localVarHeaderParameter = {} as any;
|
|
2234
2312
|
const localVarQueryParameter = {} as any;
|
|
2235
2313
|
|
|
2314
|
+
// authentication oauth2_password required
|
|
2315
|
+
// oauth required
|
|
2316
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2317
|
+
|
|
2318
|
+
// authentication bearer_auth required
|
|
2319
|
+
// http bearer authentication required
|
|
2320
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2321
|
+
|
|
2236
2322
|
|
|
2237
2323
|
|
|
2238
2324
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2263,6 +2349,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2263
2349
|
const localVarHeaderParameter = {} as any;
|
|
2264
2350
|
const localVarQueryParameter = {} as any;
|
|
2265
2351
|
|
|
2352
|
+
// authentication oauth2_password required
|
|
2353
|
+
// oauth required
|
|
2354
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2355
|
+
|
|
2356
|
+
// authentication bearer_auth required
|
|
2357
|
+
// http bearer authentication required
|
|
2358
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2359
|
+
|
|
2266
2360
|
|
|
2267
2361
|
|
|
2268
2362
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2297,6 +2391,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2297
2391
|
const localVarHeaderParameter = {} as any;
|
|
2298
2392
|
const localVarQueryParameter = {} as any;
|
|
2299
2393
|
|
|
2394
|
+
// authentication oauth2_password required
|
|
2395
|
+
// oauth required
|
|
2396
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2397
|
+
|
|
2398
|
+
// authentication bearer_auth required
|
|
2399
|
+
// http bearer authentication required
|
|
2400
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2401
|
+
|
|
2300
2402
|
|
|
2301
2403
|
|
|
2302
2404
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2328,6 +2430,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2328
2430
|
const localVarHeaderParameter = {} as any;
|
|
2329
2431
|
const localVarQueryParameter = {} as any;
|
|
2330
2432
|
|
|
2433
|
+
// authentication oauth2_password required
|
|
2434
|
+
// oauth required
|
|
2435
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2436
|
+
|
|
2437
|
+
// authentication bearer_auth required
|
|
2438
|
+
// http bearer authentication required
|
|
2439
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2440
|
+
|
|
2331
2441
|
if (deviceId !== undefined) {
|
|
2332
2442
|
localVarQueryParameter['device_id'] = deviceId;
|
|
2333
2443
|
}
|
|
@@ -2365,6 +2475,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2365
2475
|
const localVarHeaderParameter = {} as any;
|
|
2366
2476
|
const localVarQueryParameter = {} as any;
|
|
2367
2477
|
|
|
2478
|
+
// authentication oauth2_password required
|
|
2479
|
+
// oauth required
|
|
2480
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2481
|
+
|
|
2482
|
+
// authentication bearer_auth required
|
|
2483
|
+
// http bearer authentication required
|
|
2484
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2485
|
+
|
|
2368
2486
|
|
|
2369
2487
|
|
|
2370
2488
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -2405,6 +2523,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2405
2523
|
const localVarHeaderParameter = {} as any;
|
|
2406
2524
|
const localVarQueryParameter = {} as any;
|
|
2407
2525
|
|
|
2526
|
+
// authentication oauth2_password required
|
|
2527
|
+
// oauth required
|
|
2528
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2529
|
+
|
|
2530
|
+
// authentication bearer_auth required
|
|
2531
|
+
// http bearer authentication required
|
|
2532
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2533
|
+
|
|
2408
2534
|
|
|
2409
2535
|
|
|
2410
2536
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -2441,6 +2567,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2441
2567
|
const localVarHeaderParameter = {} as any;
|
|
2442
2568
|
const localVarQueryParameter = {} as any;
|
|
2443
2569
|
|
|
2570
|
+
// authentication oauth2_password required
|
|
2571
|
+
// oauth required
|
|
2572
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2573
|
+
|
|
2574
|
+
// authentication bearer_auth required
|
|
2575
|
+
// http bearer authentication required
|
|
2576
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2577
|
+
|
|
2444
2578
|
|
|
2445
2579
|
|
|
2446
2580
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -2485,6 +2619,14 @@ export const FoxFactoryApiAxiosParamCreator = function (configuration?: Configur
|
|
|
2485
2619
|
const localVarQueryParameter = {} as any;
|
|
2486
2620
|
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
2487
2621
|
|
|
2622
|
+
// authentication oauth2_password required
|
|
2623
|
+
// oauth required
|
|
2624
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
2625
|
+
|
|
2626
|
+
// authentication bearer_auth required
|
|
2627
|
+
// http bearer authentication required
|
|
2628
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2629
|
+
|
|
2488
2630
|
|
|
2489
2631
|
if (artifact !== undefined) {
|
|
2490
2632
|
localVarFormParams.append('artifact', artifact as any);
|
|
@@ -3218,6 +3360,48 @@ export const InternalApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3218
3360
|
|
|
3219
3361
|
|
|
3220
3362
|
|
|
3363
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3364
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3365
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3366
|
+
|
|
3367
|
+
return {
|
|
3368
|
+
url: toPathString(localVarUrlObj),
|
|
3369
|
+
options: localVarRequestOptions,
|
|
3370
|
+
};
|
|
3371
|
+
},
|
|
3372
|
+
/**
|
|
3373
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
3374
|
+
* @summary Delete Paste
|
|
3375
|
+
* @param {string} pasteId
|
|
3376
|
+
* @param {*} [options] Override http request option.
|
|
3377
|
+
* @throws {RequiredError}
|
|
3378
|
+
*/
|
|
3379
|
+
deletePasteInternalPastePasteIdDelete: async (pasteId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3380
|
+
// verify required parameter 'pasteId' is not null or undefined
|
|
3381
|
+
assertParamExists('deletePasteInternalPastePasteIdDelete', 'pasteId', pasteId)
|
|
3382
|
+
const localVarPath = `/internal/paste/{paste_id}`
|
|
3383
|
+
.replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
|
|
3384
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3385
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3386
|
+
let baseOptions;
|
|
3387
|
+
if (configuration) {
|
|
3388
|
+
baseOptions = configuration.baseOptions;
|
|
3389
|
+
}
|
|
3390
|
+
|
|
3391
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
3392
|
+
const localVarHeaderParameter = {} as any;
|
|
3393
|
+
const localVarQueryParameter = {} as any;
|
|
3394
|
+
|
|
3395
|
+
// authentication oauth2_password required
|
|
3396
|
+
// oauth required
|
|
3397
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
3398
|
+
|
|
3399
|
+
// authentication bearer_auth required
|
|
3400
|
+
// http bearer authentication required
|
|
3401
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3402
|
+
|
|
3403
|
+
|
|
3404
|
+
|
|
3221
3405
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3222
3406
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3223
3407
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3942,6 +4126,54 @@ export const InternalApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3942
4126
|
options: localVarRequestOptions,
|
|
3943
4127
|
};
|
|
3944
4128
|
},
|
|
4129
|
+
/**
|
|
4130
|
+
* Update a paste by ID. Requires admin permissions.
|
|
4131
|
+
* @summary Update Paste
|
|
4132
|
+
* @param {string} pasteId
|
|
4133
|
+
* @param {PasteInput} pasteInput
|
|
4134
|
+
* @param {*} [options] Override http request option.
|
|
4135
|
+
* @throws {RequiredError}
|
|
4136
|
+
*/
|
|
4137
|
+
updatePasteInternalPastePasteIdPut: async (pasteId: string, pasteInput: PasteInput, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
4138
|
+
// verify required parameter 'pasteId' is not null or undefined
|
|
4139
|
+
assertParamExists('updatePasteInternalPastePasteIdPut', 'pasteId', pasteId)
|
|
4140
|
+
// verify required parameter 'pasteInput' is not null or undefined
|
|
4141
|
+
assertParamExists('updatePasteInternalPastePasteIdPut', 'pasteInput', pasteInput)
|
|
4142
|
+
const localVarPath = `/internal/paste/{paste_id}`
|
|
4143
|
+
.replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
|
|
4144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4145
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4146
|
+
let baseOptions;
|
|
4147
|
+
if (configuration) {
|
|
4148
|
+
baseOptions = configuration.baseOptions;
|
|
4149
|
+
}
|
|
4150
|
+
|
|
4151
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
4152
|
+
const localVarHeaderParameter = {} as any;
|
|
4153
|
+
const localVarQueryParameter = {} as any;
|
|
4154
|
+
|
|
4155
|
+
// authentication oauth2_password required
|
|
4156
|
+
// oauth required
|
|
4157
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
4158
|
+
|
|
4159
|
+
// authentication bearer_auth required
|
|
4160
|
+
// http bearer authentication required
|
|
4161
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
4162
|
+
|
|
4163
|
+
|
|
4164
|
+
|
|
4165
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4166
|
+
|
|
4167
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4168
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4169
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
4170
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pasteInput, localVarRequestOptions, configuration)
|
|
4171
|
+
|
|
4172
|
+
return {
|
|
4173
|
+
url: toPathString(localVarUrlObj),
|
|
4174
|
+
options: localVarRequestOptions,
|
|
4175
|
+
};
|
|
4176
|
+
},
|
|
3945
4177
|
/**
|
|
3946
4178
|
*
|
|
3947
4179
|
* @summary Update User
|
|
@@ -4026,6 +4258,19 @@ export const InternalApiFp = function(configuration?: Configuration) {
|
|
|
4026
4258
|
const localVarOperationServerBasePath = operationServerMap['InternalApi.delReleaseInternalReleasesReleaseIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
4027
4259
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4028
4260
|
},
|
|
4261
|
+
/**
|
|
4262
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
4263
|
+
* @summary Delete Paste
|
|
4264
|
+
* @param {string} pasteId
|
|
4265
|
+
* @param {*} [options] Override http request option.
|
|
4266
|
+
* @throws {RequiredError}
|
|
4267
|
+
*/
|
|
4268
|
+
async deletePasteInternalPastePasteIdDelete(pasteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
4269
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePasteInternalPastePasteIdDelete(pasteId, options);
|
|
4270
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4271
|
+
const localVarOperationServerBasePath = operationServerMap['InternalApi.deletePasteInternalPastePasteIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
4272
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4273
|
+
},
|
|
4029
4274
|
/**
|
|
4030
4275
|
*
|
|
4031
4276
|
* @summary Delete User
|
|
@@ -4227,6 +4472,20 @@ export const InternalApiFp = function(configuration?: Configuration) {
|
|
|
4227
4472
|
const localVarOperationServerBasePath = operationServerMap['InternalApi.updateDeviceInternalDevicesDeviceIdPut']?.[localVarOperationServerIndex]?.url;
|
|
4228
4473
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4229
4474
|
},
|
|
4475
|
+
/**
|
|
4476
|
+
* Update a paste by ID. Requires admin permissions.
|
|
4477
|
+
* @summary Update Paste
|
|
4478
|
+
* @param {string} pasteId
|
|
4479
|
+
* @param {PasteInput} pasteInput
|
|
4480
|
+
* @param {*} [options] Override http request option.
|
|
4481
|
+
* @throws {RequiredError}
|
|
4482
|
+
*/
|
|
4483
|
+
async updatePasteInternalPastePasteIdPut(pasteId: string, pasteInput: PasteInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>> {
|
|
4484
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options);
|
|
4485
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4486
|
+
const localVarOperationServerBasePath = operationServerMap['InternalApi.updatePasteInternalPastePasteIdPut']?.[localVarOperationServerIndex]?.url;
|
|
4487
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4488
|
+
},
|
|
4230
4489
|
/**
|
|
4231
4490
|
*
|
|
4232
4491
|
* @summary Update User
|
|
@@ -4271,6 +4530,16 @@ export const InternalApiFactory = function (configuration?: Configuration, baseP
|
|
|
4271
4530
|
delReleaseInternalReleasesReleaseIdDelete(releaseId: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean> {
|
|
4272
4531
|
return localVarFp.delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(axios, basePath));
|
|
4273
4532
|
},
|
|
4533
|
+
/**
|
|
4534
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
4535
|
+
* @summary Delete Paste
|
|
4536
|
+
* @param {string} pasteId
|
|
4537
|
+
* @param {*} [options] Override http request option.
|
|
4538
|
+
* @throws {RequiredError}
|
|
4539
|
+
*/
|
|
4540
|
+
deletePasteInternalPastePasteIdDelete(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4541
|
+
return localVarFp.deletePasteInternalPastePasteIdDelete(pasteId, options).then((request) => request(axios, basePath));
|
|
4542
|
+
},
|
|
4274
4543
|
/**
|
|
4275
4544
|
*
|
|
4276
4545
|
* @summary Delete User
|
|
@@ -4430,6 +4699,17 @@ export const InternalApiFactory = function (configuration?: Configuration, baseP
|
|
|
4430
4699
|
updateDeviceInternalDevicesDeviceIdPut(deviceId: string, deviceUpdateBody: DeviceUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<boolean> {
|
|
4431
4700
|
return localVarFp.updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(axios, basePath));
|
|
4432
4701
|
},
|
|
4702
|
+
/**
|
|
4703
|
+
* Update a paste by ID. Requires admin permissions.
|
|
4704
|
+
* @summary Update Paste
|
|
4705
|
+
* @param {string} pasteId
|
|
4706
|
+
* @param {PasteInput} pasteInput
|
|
4707
|
+
* @param {*} [options] Override http request option.
|
|
4708
|
+
* @throws {RequiredError}
|
|
4709
|
+
*/
|
|
4710
|
+
updatePasteInternalPastePasteIdPut(pasteId: string, pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput> {
|
|
4711
|
+
return localVarFp.updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options).then((request) => request(axios, basePath));
|
|
4712
|
+
},
|
|
4433
4713
|
/**
|
|
4434
4714
|
*
|
|
4435
4715
|
* @summary Update User
|
|
@@ -4470,6 +4750,16 @@ export interface InternalApiInterface {
|
|
|
4470
4750
|
*/
|
|
4471
4751
|
delReleaseInternalReleasesReleaseIdDelete(releaseId: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
4472
4752
|
|
|
4753
|
+
/**
|
|
4754
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
4755
|
+
* @summary Delete Paste
|
|
4756
|
+
* @param {string} pasteId
|
|
4757
|
+
* @param {*} [options] Override http request option.
|
|
4758
|
+
* @throws {RequiredError}
|
|
4759
|
+
* @memberof InternalApiInterface
|
|
4760
|
+
*/
|
|
4761
|
+
deletePasteInternalPastePasteIdDelete(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4762
|
+
|
|
4473
4763
|
/**
|
|
4474
4764
|
*
|
|
4475
4765
|
* @summary Delete User
|
|
@@ -4629,6 +4919,17 @@ export interface InternalApiInterface {
|
|
|
4629
4919
|
*/
|
|
4630
4920
|
updateDeviceInternalDevicesDeviceIdPut(deviceId: string, deviceUpdateBody: DeviceUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
|
|
4631
4921
|
|
|
4922
|
+
/**
|
|
4923
|
+
* Update a paste by ID. Requires admin permissions.
|
|
4924
|
+
* @summary Update Paste
|
|
4925
|
+
* @param {string} pasteId
|
|
4926
|
+
* @param {PasteInput} pasteInput
|
|
4927
|
+
* @param {*} [options] Override http request option.
|
|
4928
|
+
* @throws {RequiredError}
|
|
4929
|
+
* @memberof InternalApiInterface
|
|
4930
|
+
*/
|
|
4931
|
+
updatePasteInternalPastePasteIdPut(pasteId: string, pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
|
|
4932
|
+
|
|
4632
4933
|
/**
|
|
4633
4934
|
*
|
|
4634
4935
|
* @summary Update User
|
|
@@ -4673,6 +4974,18 @@ export class InternalApi extends BaseAPI implements InternalApiInterface {
|
|
|
4673
4974
|
return InternalApiFp(this.configuration).delReleaseInternalReleasesReleaseIdDelete(releaseId, options).then((request) => request(this.axios, this.basePath));
|
|
4674
4975
|
}
|
|
4675
4976
|
|
|
4977
|
+
/**
|
|
4978
|
+
* Delete a paste by ID. Requires admin permissions.
|
|
4979
|
+
* @summary Delete Paste
|
|
4980
|
+
* @param {string} pasteId
|
|
4981
|
+
* @param {*} [options] Override http request option.
|
|
4982
|
+
* @throws {RequiredError}
|
|
4983
|
+
* @memberof InternalApi
|
|
4984
|
+
*/
|
|
4985
|
+
public deletePasteInternalPastePasteIdDelete(pasteId: string, options?: RawAxiosRequestConfig) {
|
|
4986
|
+
return InternalApiFp(this.configuration).deletePasteInternalPastePasteIdDelete(pasteId, options).then((request) => request(this.axios, this.basePath));
|
|
4987
|
+
}
|
|
4988
|
+
|
|
4676
4989
|
/**
|
|
4677
4990
|
*
|
|
4678
4991
|
* @summary Delete User
|
|
@@ -4860,6 +5173,19 @@ export class InternalApi extends BaseAPI implements InternalApiInterface {
|
|
|
4860
5173
|
return InternalApiFp(this.configuration).updateDeviceInternalDevicesDeviceIdPut(deviceId, deviceUpdateBody, options).then((request) => request(this.axios, this.basePath));
|
|
4861
5174
|
}
|
|
4862
5175
|
|
|
5176
|
+
/**
|
|
5177
|
+
* Update a paste by ID. Requires admin permissions.
|
|
5178
|
+
* @summary Update Paste
|
|
5179
|
+
* @param {string} pasteId
|
|
5180
|
+
* @param {PasteInput} pasteInput
|
|
5181
|
+
* @param {*} [options] Override http request option.
|
|
5182
|
+
* @throws {RequiredError}
|
|
5183
|
+
* @memberof InternalApi
|
|
5184
|
+
*/
|
|
5185
|
+
public updatePasteInternalPastePasteIdPut(pasteId: string, pasteInput: PasteInput, options?: RawAxiosRequestConfig) {
|
|
5186
|
+
return InternalApiFp(this.configuration).updatePasteInternalPastePasteIdPut(pasteId, pasteInput, options).then((request) => request(this.axios, this.basePath));
|
|
5187
|
+
}
|
|
5188
|
+
|
|
4863
5189
|
/**
|
|
4864
5190
|
*
|
|
4865
5191
|
* @summary Update User
|
|
@@ -4876,6 +5202,213 @@ export class InternalApi extends BaseAPI implements InternalApiInterface {
|
|
|
4876
5202
|
|
|
4877
5203
|
|
|
4878
5204
|
|
|
5205
|
+
/**
|
|
5206
|
+
* PasteApi - axios parameter creator
|
|
5207
|
+
* @export
|
|
5208
|
+
*/
|
|
5209
|
+
export const PasteApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
5210
|
+
return {
|
|
5211
|
+
/**
|
|
5212
|
+
* Create a new paste.
|
|
5213
|
+
* @summary Create Paste
|
|
5214
|
+
* @param {PasteInput} pasteInput
|
|
5215
|
+
* @param {*} [options] Override http request option.
|
|
5216
|
+
* @throws {RequiredError}
|
|
5217
|
+
*/
|
|
5218
|
+
createPastePastePost: async (pasteInput: PasteInput, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5219
|
+
// verify required parameter 'pasteInput' is not null or undefined
|
|
5220
|
+
assertParamExists('createPastePastePost', 'pasteInput', pasteInput)
|
|
5221
|
+
const localVarPath = `/paste/`;
|
|
5222
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5223
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5224
|
+
let baseOptions;
|
|
5225
|
+
if (configuration) {
|
|
5226
|
+
baseOptions = configuration.baseOptions;
|
|
5227
|
+
}
|
|
5228
|
+
|
|
5229
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
5230
|
+
const localVarHeaderParameter = {} as any;
|
|
5231
|
+
const localVarQueryParameter = {} as any;
|
|
5232
|
+
|
|
5233
|
+
|
|
5234
|
+
|
|
5235
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5236
|
+
|
|
5237
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5239
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5240
|
+
localVarRequestOptions.data = serializeDataIfNeeded(pasteInput, localVarRequestOptions, configuration)
|
|
5241
|
+
|
|
5242
|
+
return {
|
|
5243
|
+
url: toPathString(localVarUrlObj),
|
|
5244
|
+
options: localVarRequestOptions,
|
|
5245
|
+
};
|
|
5246
|
+
},
|
|
5247
|
+
/**
|
|
5248
|
+
* Get a paste by ID.
|
|
5249
|
+
* @summary Get Paste
|
|
5250
|
+
* @param {string} pasteId
|
|
5251
|
+
* @param {*} [options] Override http request option.
|
|
5252
|
+
* @throws {RequiredError}
|
|
5253
|
+
*/
|
|
5254
|
+
getPastePastePasteIdGet: async (pasteId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5255
|
+
// verify required parameter 'pasteId' is not null or undefined
|
|
5256
|
+
assertParamExists('getPastePastePasteIdGet', 'pasteId', pasteId)
|
|
5257
|
+
const localVarPath = `/paste/{paste_id}`
|
|
5258
|
+
.replace(`{${"paste_id"}}`, encodeURIComponent(String(pasteId)));
|
|
5259
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5260
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5261
|
+
let baseOptions;
|
|
5262
|
+
if (configuration) {
|
|
5263
|
+
baseOptions = configuration.baseOptions;
|
|
5264
|
+
}
|
|
5265
|
+
|
|
5266
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
5267
|
+
const localVarHeaderParameter = {} as any;
|
|
5268
|
+
const localVarQueryParameter = {} as any;
|
|
5269
|
+
|
|
5270
|
+
|
|
5271
|
+
|
|
5272
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5274
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5275
|
+
|
|
5276
|
+
return {
|
|
5277
|
+
url: toPathString(localVarUrlObj),
|
|
5278
|
+
options: localVarRequestOptions,
|
|
5279
|
+
};
|
|
5280
|
+
},
|
|
5281
|
+
}
|
|
5282
|
+
};
|
|
5283
|
+
|
|
5284
|
+
/**
|
|
5285
|
+
* PasteApi - functional programming interface
|
|
5286
|
+
* @export
|
|
5287
|
+
*/
|
|
5288
|
+
export const PasteApiFp = function(configuration?: Configuration) {
|
|
5289
|
+
const localVarAxiosParamCreator = PasteApiAxiosParamCreator(configuration)
|
|
5290
|
+
return {
|
|
5291
|
+
/**
|
|
5292
|
+
* Create a new paste.
|
|
5293
|
+
* @summary Create Paste
|
|
5294
|
+
* @param {PasteInput} pasteInput
|
|
5295
|
+
* @param {*} [options] Override http request option.
|
|
5296
|
+
* @throws {RequiredError}
|
|
5297
|
+
*/
|
|
5298
|
+
async createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>> {
|
|
5299
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPastePastePost(pasteInput, options);
|
|
5300
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5301
|
+
const localVarOperationServerBasePath = operationServerMap['PasteApi.createPastePastePost']?.[localVarOperationServerIndex]?.url;
|
|
5302
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5303
|
+
},
|
|
5304
|
+
/**
|
|
5305
|
+
* Get a paste by ID.
|
|
5306
|
+
* @summary Get Paste
|
|
5307
|
+
* @param {string} pasteId
|
|
5308
|
+
* @param {*} [options] Override http request option.
|
|
5309
|
+
* @throws {RequiredError}
|
|
5310
|
+
*/
|
|
5311
|
+
async getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>> {
|
|
5312
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPastePastePasteIdGet(pasteId, options);
|
|
5313
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5314
|
+
const localVarOperationServerBasePath = operationServerMap['PasteApi.getPastePastePasteIdGet']?.[localVarOperationServerIndex]?.url;
|
|
5315
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5316
|
+
},
|
|
5317
|
+
}
|
|
5318
|
+
};
|
|
5319
|
+
|
|
5320
|
+
/**
|
|
5321
|
+
* PasteApi - factory interface
|
|
5322
|
+
* @export
|
|
5323
|
+
*/
|
|
5324
|
+
export const PasteApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
5325
|
+
const localVarFp = PasteApiFp(configuration)
|
|
5326
|
+
return {
|
|
5327
|
+
/**
|
|
5328
|
+
* Create a new paste.
|
|
5329
|
+
* @summary Create Paste
|
|
5330
|
+
* @param {PasteInput} pasteInput
|
|
5331
|
+
* @param {*} [options] Override http request option.
|
|
5332
|
+
* @throws {RequiredError}
|
|
5333
|
+
*/
|
|
5334
|
+
createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput> {
|
|
5335
|
+
return localVarFp.createPastePastePost(pasteInput, options).then((request) => request(axios, basePath));
|
|
5336
|
+
},
|
|
5337
|
+
/**
|
|
5338
|
+
* Get a paste by ID.
|
|
5339
|
+
* @summary Get Paste
|
|
5340
|
+
* @param {string} pasteId
|
|
5341
|
+
* @param {*} [options] Override http request option.
|
|
5342
|
+
* @throws {RequiredError}
|
|
5343
|
+
*/
|
|
5344
|
+
getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput> {
|
|
5345
|
+
return localVarFp.getPastePastePasteIdGet(pasteId, options).then((request) => request(axios, basePath));
|
|
5346
|
+
},
|
|
5347
|
+
};
|
|
5348
|
+
};
|
|
5349
|
+
|
|
5350
|
+
/**
|
|
5351
|
+
* PasteApi - interface
|
|
5352
|
+
* @export
|
|
5353
|
+
* @interface PasteApi
|
|
5354
|
+
*/
|
|
5355
|
+
export interface PasteApiInterface {
|
|
5356
|
+
/**
|
|
5357
|
+
* Create a new paste.
|
|
5358
|
+
* @summary Create Paste
|
|
5359
|
+
* @param {PasteInput} pasteInput
|
|
5360
|
+
* @param {*} [options] Override http request option.
|
|
5361
|
+
* @throws {RequiredError}
|
|
5362
|
+
* @memberof PasteApiInterface
|
|
5363
|
+
*/
|
|
5364
|
+
createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
|
|
5365
|
+
|
|
5366
|
+
/**
|
|
5367
|
+
* Get a paste by ID.
|
|
5368
|
+
* @summary Get Paste
|
|
5369
|
+
* @param {string} pasteId
|
|
5370
|
+
* @param {*} [options] Override http request option.
|
|
5371
|
+
* @throws {RequiredError}
|
|
5372
|
+
* @memberof PasteApiInterface
|
|
5373
|
+
*/
|
|
5374
|
+
getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
|
|
5375
|
+
|
|
5376
|
+
}
|
|
5377
|
+
|
|
5378
|
+
/**
|
|
5379
|
+
* PasteApi - object-oriented interface
|
|
5380
|
+
* @export
|
|
5381
|
+
* @class PasteApi
|
|
5382
|
+
* @extends {BaseAPI}
|
|
5383
|
+
*/
|
|
5384
|
+
export class PasteApi extends BaseAPI implements PasteApiInterface {
|
|
5385
|
+
/**
|
|
5386
|
+
* Create a new paste.
|
|
5387
|
+
* @summary Create Paste
|
|
5388
|
+
* @param {PasteInput} pasteInput
|
|
5389
|
+
* @param {*} [options] Override http request option.
|
|
5390
|
+
* @throws {RequiredError}
|
|
5391
|
+
* @memberof PasteApi
|
|
5392
|
+
*/
|
|
5393
|
+
public createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig) {
|
|
5394
|
+
return PasteApiFp(this.configuration).createPastePastePost(pasteInput, options).then((request) => request(this.axios, this.basePath));
|
|
5395
|
+
}
|
|
5396
|
+
|
|
5397
|
+
/**
|
|
5398
|
+
* Get a paste by ID.
|
|
5399
|
+
* @summary Get Paste
|
|
5400
|
+
* @param {string} pasteId
|
|
5401
|
+
* @param {*} [options] Override http request option.
|
|
5402
|
+
* @throws {RequiredError}
|
|
5403
|
+
* @memberof PasteApi
|
|
5404
|
+
*/
|
|
5405
|
+
public getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig) {
|
|
5406
|
+
return PasteApiFp(this.configuration).getPastePastePasteIdGet(pasteId, options).then((request) => request(this.axios, this.basePath));
|
|
5407
|
+
}
|
|
5408
|
+
}
|
|
5409
|
+
|
|
5410
|
+
|
|
5411
|
+
|
|
4879
5412
|
/**
|
|
4880
5413
|
* ReleaseApi - axios parameter creator
|
|
4881
5414
|
* @export
|