@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/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.5
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.5
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.5
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
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).
@@ -115,11 +115,11 @@ export interface BuildTaskResponse {
115
115
  'has_artifact': boolean;
116
116
  /**
117
117
  *
118
- * @type {{ [key: string]: any; }}
118
+ * @type {{ [key: string]: string; }}
119
119
  * @memberof BuildTaskResponse
120
120
  */
121
121
  'environment'?: {
122
- [key: string]: any;
122
+ [key: string]: string;
123
123
  } | null;
124
124
  /**
125
125
  *
@@ -833,6 +833,68 @@ export interface NewDeviceBody {
833
833
  */
834
834
  'maintainer': string;
835
835
  }
836
+ /**
837
+ *
838
+ * @export
839
+ * @interface PasteInput
840
+ */
841
+ export interface PasteInput {
842
+ /**
843
+ *
844
+ * @type {string}
845
+ * @memberof PasteInput
846
+ */
847
+ '_id'?: string | null;
848
+ /**
849
+ *
850
+ * @type {string}
851
+ * @memberof PasteInput
852
+ */
853
+ 'content': string;
854
+ /**
855
+ *
856
+ * @type {string}
857
+ * @memberof PasteInput
858
+ */
859
+ 'ip_address': string;
860
+ /**
861
+ *
862
+ * @type {string}
863
+ * @memberof PasteInput
864
+ */
865
+ 'created_at'?: string;
866
+ }
867
+ /**
868
+ *
869
+ * @export
870
+ * @interface PasteOutput
871
+ */
872
+ export interface PasteOutput {
873
+ /**
874
+ *
875
+ * @type {string}
876
+ * @memberof PasteOutput
877
+ */
878
+ '_id'?: string | null;
879
+ /**
880
+ *
881
+ * @type {string}
882
+ * @memberof PasteOutput
883
+ */
884
+ 'content': string;
885
+ /**
886
+ *
887
+ * @type {string}
888
+ * @memberof PasteOutput
889
+ */
890
+ 'ip_address': string;
891
+ /**
892
+ *
893
+ * @type {string}
894
+ * @memberof PasteOutput
895
+ */
896
+ 'created_at'?: string;
897
+ }
836
898
  /**
837
899
  *
838
900
  * @export
@@ -2472,6 +2534,14 @@ export declare const InternalApiAxiosParamCreator: (configuration?: Configuratio
2472
2534
  * @throws {RequiredError}
2473
2535
  */
2474
2536
  delReleaseInternalReleasesReleaseIdDelete: (releaseId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2537
+ /**
2538
+ * Delete a paste by ID. Requires admin permissions.
2539
+ * @summary Delete Paste
2540
+ * @param {string} pasteId
2541
+ * @param {*} [options] Override http request option.
2542
+ * @throws {RequiredError}
2543
+ */
2544
+ deletePasteInternalPastePasteIdDelete: (pasteId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2475
2545
  /**
2476
2546
  *
2477
2547
  * @summary Delete User
@@ -2603,6 +2673,15 @@ export declare const InternalApiAxiosParamCreator: (configuration?: Configuratio
2603
2673
  * @throws {RequiredError}
2604
2674
  */
2605
2675
  updateDeviceInternalDevicesDeviceIdPut: (deviceId: string, deviceUpdateBody: DeviceUpdateBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2676
+ /**
2677
+ * Update a paste by ID. Requires admin permissions.
2678
+ * @summary Update Paste
2679
+ * @param {string} pasteId
2680
+ * @param {PasteInput} pasteInput
2681
+ * @param {*} [options] Override http request option.
2682
+ * @throws {RequiredError}
2683
+ */
2684
+ updatePasteInternalPastePasteIdPut: (pasteId: string, pasteInput: PasteInput, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2606
2685
  /**
2607
2686
  *
2608
2687
  * @summary Update User
@@ -2634,6 +2713,14 @@ export declare const InternalApiFp: (configuration?: Configuration) => {
2634
2713
  * @throws {RequiredError}
2635
2714
  */
2636
2715
  delReleaseInternalReleasesReleaseIdDelete(releaseId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
2716
+ /**
2717
+ * Delete a paste by ID. Requires admin permissions.
2718
+ * @summary Delete Paste
2719
+ * @param {string} pasteId
2720
+ * @param {*} [options] Override http request option.
2721
+ * @throws {RequiredError}
2722
+ */
2723
+ deletePasteInternalPastePasteIdDelete(pasteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2637
2724
  /**
2638
2725
  *
2639
2726
  * @summary Delete User
@@ -2765,6 +2852,15 @@ export declare const InternalApiFp: (configuration?: Configuration) => {
2765
2852
  * @throws {RequiredError}
2766
2853
  */
2767
2854
  updateDeviceInternalDevicesDeviceIdPut(deviceId: string, deviceUpdateBody: DeviceUpdateBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
2855
+ /**
2856
+ * Update a paste by ID. Requires admin permissions.
2857
+ * @summary Update Paste
2858
+ * @param {string} pasteId
2859
+ * @param {PasteInput} pasteInput
2860
+ * @param {*} [options] Override http request option.
2861
+ * @throws {RequiredError}
2862
+ */
2863
+ updatePasteInternalPastePasteIdPut(pasteId: string, pasteInput: PasteInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>>;
2768
2864
  /**
2769
2865
  *
2770
2866
  * @summary Update User
@@ -2796,6 +2892,14 @@ export declare const InternalApiFactory: (configuration?: Configuration, basePat
2796
2892
  * @throws {RequiredError}
2797
2893
  */
2798
2894
  delReleaseInternalReleasesReleaseIdDelete(releaseId: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
2895
+ /**
2896
+ * Delete a paste by ID. Requires admin permissions.
2897
+ * @summary Delete Paste
2898
+ * @param {string} pasteId
2899
+ * @param {*} [options] Override http request option.
2900
+ * @throws {RequiredError}
2901
+ */
2902
+ deletePasteInternalPastePasteIdDelete(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2799
2903
  /**
2800
2904
  *
2801
2905
  * @summary Delete User
@@ -2927,6 +3031,15 @@ export declare const InternalApiFactory: (configuration?: Configuration, basePat
2927
3031
  * @throws {RequiredError}
2928
3032
  */
2929
3033
  updateDeviceInternalDevicesDeviceIdPut(deviceId: string, deviceUpdateBody: DeviceUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
3034
+ /**
3035
+ * Update a paste by ID. Requires admin permissions.
3036
+ * @summary Update Paste
3037
+ * @param {string} pasteId
3038
+ * @param {PasteInput} pasteInput
3039
+ * @param {*} [options] Override http request option.
3040
+ * @throws {RequiredError}
3041
+ */
3042
+ updatePasteInternalPastePasteIdPut(pasteId: string, pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
2930
3043
  /**
2931
3044
  *
2932
3045
  * @summary Update User
@@ -2961,6 +3074,15 @@ export interface InternalApiInterface {
2961
3074
  * @memberof InternalApiInterface
2962
3075
  */
2963
3076
  delReleaseInternalReleasesReleaseIdDelete(releaseId: string, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
3077
+ /**
3078
+ * Delete a paste by ID. Requires admin permissions.
3079
+ * @summary Delete Paste
3080
+ * @param {string} pasteId
3081
+ * @param {*} [options] Override http request option.
3082
+ * @throws {RequiredError}
3083
+ * @memberof InternalApiInterface
3084
+ */
3085
+ deletePasteInternalPastePasteIdDelete(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2964
3086
  /**
2965
3087
  *
2966
3088
  * @summary Delete User
@@ -3106,6 +3228,16 @@ export interface InternalApiInterface {
3106
3228
  * @memberof InternalApiInterface
3107
3229
  */
3108
3230
  updateDeviceInternalDevicesDeviceIdPut(deviceId: string, deviceUpdateBody: DeviceUpdateBody, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
3231
+ /**
3232
+ * Update a paste by ID. Requires admin permissions.
3233
+ * @summary Update Paste
3234
+ * @param {string} pasteId
3235
+ * @param {PasteInput} pasteInput
3236
+ * @param {*} [options] Override http request option.
3237
+ * @throws {RequiredError}
3238
+ * @memberof InternalApiInterface
3239
+ */
3240
+ updatePasteInternalPastePasteIdPut(pasteId: string, pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
3109
3241
  /**
3110
3242
  *
3111
3243
  * @summary Update User
@@ -3142,6 +3274,15 @@ export declare class InternalApi extends BaseAPI implements InternalApiInterface
3142
3274
  * @memberof InternalApi
3143
3275
  */
3144
3276
  delReleaseInternalReleasesReleaseIdDelete(releaseId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
3277
+ /**
3278
+ * Delete a paste by ID. Requires admin permissions.
3279
+ * @summary Delete Paste
3280
+ * @param {string} pasteId
3281
+ * @param {*} [options] Override http request option.
3282
+ * @throws {RequiredError}
3283
+ * @memberof InternalApi
3284
+ */
3285
+ deletePasteInternalPastePasteIdDelete(pasteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
3145
3286
  /**
3146
3287
  *
3147
3288
  * @summary Delete User
@@ -3287,6 +3428,16 @@ export declare class InternalApi extends BaseAPI implements InternalApiInterface
3287
3428
  * @memberof InternalApi
3288
3429
  */
3289
3430
  updateDeviceInternalDevicesDeviceIdPut(deviceId: string, deviceUpdateBody: DeviceUpdateBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
3431
+ /**
3432
+ * Update a paste by ID. Requires admin permissions.
3433
+ * @summary Update Paste
3434
+ * @param {string} pasteId
3435
+ * @param {PasteInput} pasteInput
3436
+ * @param {*} [options] Override http request option.
3437
+ * @throws {RequiredError}
3438
+ * @memberof InternalApi
3439
+ */
3440
+ updatePasteInternalPastePasteIdPut(pasteId: string, pasteInput: PasteInput, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PasteOutput, any>>;
3290
3441
  /**
3291
3442
  *
3292
3443
  * @summary Update User
@@ -3298,6 +3449,123 @@ export declare class InternalApi extends BaseAPI implements InternalApiInterface
3298
3449
  */
3299
3450
  updateUserInternalUsersUserIdPut(userId: string, userUpdateBody: UserUpdateBody, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
3300
3451
  }
3452
+ /**
3453
+ * PasteApi - axios parameter creator
3454
+ * @export
3455
+ */
3456
+ export declare const PasteApiAxiosParamCreator: (configuration?: Configuration) => {
3457
+ /**
3458
+ * Create a new paste.
3459
+ * @summary Create Paste
3460
+ * @param {PasteInput} pasteInput
3461
+ * @param {*} [options] Override http request option.
3462
+ * @throws {RequiredError}
3463
+ */
3464
+ createPastePastePost: (pasteInput: PasteInput, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3465
+ /**
3466
+ * Get a paste by ID.
3467
+ * @summary Get Paste
3468
+ * @param {string} pasteId
3469
+ * @param {*} [options] Override http request option.
3470
+ * @throws {RequiredError}
3471
+ */
3472
+ getPastePastePasteIdGet: (pasteId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3473
+ };
3474
+ /**
3475
+ * PasteApi - functional programming interface
3476
+ * @export
3477
+ */
3478
+ export declare const PasteApiFp: (configuration?: Configuration) => {
3479
+ /**
3480
+ * Create a new paste.
3481
+ * @summary Create Paste
3482
+ * @param {PasteInput} pasteInput
3483
+ * @param {*} [options] Override http request option.
3484
+ * @throws {RequiredError}
3485
+ */
3486
+ createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>>;
3487
+ /**
3488
+ * Get a paste by ID.
3489
+ * @summary Get Paste
3490
+ * @param {string} pasteId
3491
+ * @param {*} [options] Override http request option.
3492
+ * @throws {RequiredError}
3493
+ */
3494
+ getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PasteOutput>>;
3495
+ };
3496
+ /**
3497
+ * PasteApi - factory interface
3498
+ * @export
3499
+ */
3500
+ export declare const PasteApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
3501
+ /**
3502
+ * Create a new paste.
3503
+ * @summary Create Paste
3504
+ * @param {PasteInput} pasteInput
3505
+ * @param {*} [options] Override http request option.
3506
+ * @throws {RequiredError}
3507
+ */
3508
+ createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
3509
+ /**
3510
+ * Get a paste by ID.
3511
+ * @summary Get Paste
3512
+ * @param {string} pasteId
3513
+ * @param {*} [options] Override http request option.
3514
+ * @throws {RequiredError}
3515
+ */
3516
+ getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
3517
+ };
3518
+ /**
3519
+ * PasteApi - interface
3520
+ * @export
3521
+ * @interface PasteApi
3522
+ */
3523
+ export interface PasteApiInterface {
3524
+ /**
3525
+ * Create a new paste.
3526
+ * @summary Create Paste
3527
+ * @param {PasteInput} pasteInput
3528
+ * @param {*} [options] Override http request option.
3529
+ * @throws {RequiredError}
3530
+ * @memberof PasteApiInterface
3531
+ */
3532
+ createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
3533
+ /**
3534
+ * Get a paste by ID.
3535
+ * @summary Get Paste
3536
+ * @param {string} pasteId
3537
+ * @param {*} [options] Override http request option.
3538
+ * @throws {RequiredError}
3539
+ * @memberof PasteApiInterface
3540
+ */
3541
+ getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): AxiosPromise<PasteOutput>;
3542
+ }
3543
+ /**
3544
+ * PasteApi - object-oriented interface
3545
+ * @export
3546
+ * @class PasteApi
3547
+ * @extends {BaseAPI}
3548
+ */
3549
+ export declare class PasteApi extends BaseAPI implements PasteApiInterface {
3550
+ /**
3551
+ * Create a new paste.
3552
+ * @summary Create Paste
3553
+ * @param {PasteInput} pasteInput
3554
+ * @param {*} [options] Override http request option.
3555
+ * @throws {RequiredError}
3556
+ * @memberof PasteApi
3557
+ */
3558
+ createPastePastePost(pasteInput: PasteInput, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PasteOutput, any>>;
3559
+ /**
3560
+ * Get a paste by ID.
3561
+ * @summary Get Paste
3562
+ * @param {string} pasteId
3563
+ * @param {*} [options] Override http request option.
3564
+ * @throws {RequiredError}
3565
+ * @memberof PasteApi
3566
+ */
3567
+ getPastePastePasteIdGet(pasteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PasteOutput, any>>;
3568
+ }
3301
3569
  /**
3302
3570
  * ReleaseApi - axios parameter creator
3303
3571
  * @export