@orangefox-recovery/foxclient 5.1.1 → 5.2.0
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/README.md +8 -8
- package/api.ts +127 -189
- package/base.ts +3 -3
- package/common.ts +2 -2
- package/configuration.ts +2 -2
- package/dist/api.d.ts +87 -77
- package/dist/api.js +109 -155
- package/dist/base.d.ts +2 -2
- package/dist/base.js +3 -3
- package/dist/common.d.ts +2 -2
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +87 -77
- package/dist/esm/api.js +110 -156
- package/dist/esm/base.d.ts +2 -2
- package/dist/esm/base.js +3 -3
- package/dist/esm/common.d.ts +2 -2
- package/dist/esm/common.js +2 -2
- package/dist/esm/configuration.d.ts +2 -2
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/docs/DeviceApi.md +36 -36
- package/docs/ReleaseApi.md +13 -13
- package/docs/StatsApi.md +2 -2
- package/index.ts +2 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Fox API
|
|
5
|
-
* Warning: Please add a custom
|
|
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 20 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.
|
|
7
|
+
* The version of the OpenAPI document: 5.2.0
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -667,17 +667,16 @@ export interface ValidationErrorLocInner {
|
|
|
667
667
|
export const DeviceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
668
668
|
return {
|
|
669
669
|
/**
|
|
670
|
-
*
|
|
670
|
+
* Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
|
|
671
671
|
* @summary Get Device
|
|
672
|
-
* @param {
|
|
672
|
+
* @param { | null} [deviceId]
|
|
673
|
+
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
674
|
+
* @param {string | null} [codename] Not recommended to use when you can
|
|
673
675
|
* @param {*} [options] Override http request option.
|
|
674
676
|
* @throws {RequiredError}
|
|
675
677
|
*/
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
assertParamExists('getDeviceDevicesDeviceIdGet', 'deviceId', deviceId)
|
|
679
|
-
const localVarPath = `/devices/{device_id}`
|
|
680
|
-
.replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
|
|
678
|
+
getDeviceDevicesGetGet: async (deviceId?: | null, id?: | null, codename?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
679
|
+
const localVarPath = `/devices/get`;
|
|
681
680
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
682
681
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
683
682
|
let baseOptions;
|
|
@@ -689,13 +688,21 @@ export const DeviceApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
689
688
|
const localVarHeaderParameter = {} as any;
|
|
690
689
|
const localVarQueryParameter = {} as any;
|
|
691
690
|
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
691
|
+
if (deviceId !== undefined) {
|
|
692
|
+
for (const [key, value] of Object.entries(deviceId)) {
|
|
693
|
+
localVarQueryParameter[key] = value;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
if (id !== undefined) {
|
|
698
|
+
for (const [key, value] of Object.entries(id)) {
|
|
699
|
+
localVarQueryParameter[key] = value;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
695
702
|
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
703
|
+
if (codename !== undefined) {
|
|
704
|
+
localVarQueryParameter['codename'] = codename;
|
|
705
|
+
}
|
|
699
706
|
|
|
700
707
|
|
|
701
708
|
|
|
@@ -709,16 +716,18 @@ export const DeviceApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
709
716
|
};
|
|
710
717
|
},
|
|
711
718
|
/**
|
|
712
|
-
*
|
|
713
|
-
* @summary Get Device
|
|
714
|
-
* @param {
|
|
715
|
-
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
716
|
-
* @param {string | null} [codename] Not recommended to use when you can
|
|
719
|
+
* Gets device info using device ID.
|
|
720
|
+
* @summary Get Device Short
|
|
721
|
+
* @param {string} deviceId
|
|
717
722
|
* @param {*} [options] Override http request option.
|
|
723
|
+
* @deprecated
|
|
718
724
|
* @throws {RequiredError}
|
|
719
725
|
*/
|
|
720
|
-
|
|
721
|
-
|
|
726
|
+
getDeviceShortDevicesDeviceIdGet: async (deviceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
727
|
+
// verify required parameter 'deviceId' is not null or undefined
|
|
728
|
+
assertParamExists('getDeviceShortDevicesDeviceIdGet', 'deviceId', deviceId)
|
|
729
|
+
const localVarPath = `/devices/{device_id}`
|
|
730
|
+
.replace(`{${"device_id"}}`, encodeURIComponent(String(deviceId)));
|
|
722
731
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
723
732
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
724
733
|
let baseOptions;
|
|
@@ -730,30 +739,6 @@ export const DeviceApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
730
739
|
const localVarHeaderParameter = {} as any;
|
|
731
740
|
const localVarQueryParameter = {} as any;
|
|
732
741
|
|
|
733
|
-
// authentication oauth2_password required
|
|
734
|
-
// oauth required
|
|
735
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
736
|
-
|
|
737
|
-
// authentication bearer_auth required
|
|
738
|
-
// http bearer authentication required
|
|
739
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
740
|
-
|
|
741
|
-
if (deviceId !== undefined) {
|
|
742
|
-
for (const [key, value] of Object.entries(deviceId)) {
|
|
743
|
-
localVarQueryParameter[key] = value;
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
if (id !== undefined) {
|
|
748
|
-
for (const [key, value] of Object.entries(id)) {
|
|
749
|
-
localVarQueryParameter[key] = value;
|
|
750
|
-
}
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
if (codename !== undefined) {
|
|
754
|
-
localVarQueryParameter['codename'] = codename;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
742
|
|
|
758
743
|
|
|
759
744
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -767,7 +752,7 @@ export const DeviceApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
767
752
|
},
|
|
768
753
|
/**
|
|
769
754
|
* Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
|
|
770
|
-
* @summary Get Devices
|
|
755
|
+
* @summary Get Devices
|
|
771
756
|
* @param {Array<any>} [id] Filter by Device IDs
|
|
772
757
|
* @param {Array<any>} [id2] Filter by Device IDs (deprecated)
|
|
773
758
|
* @param {Array<string>} [oemName] Filter by OEM names
|
|
@@ -782,7 +767,7 @@ export const DeviceApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
782
767
|
* @param {*} [options] Override http request option.
|
|
783
768
|
* @throws {RequiredError}
|
|
784
769
|
*/
|
|
785
|
-
|
|
770
|
+
getDevicesDevicesGet: async (id?: Array<any>, id2?: Array<any>, oemName?: Array<string>, codename?: Array<string>, modelName?: Array<string>, supported?: boolean | null, maintainer?: Array<string>, freezed?: boolean | null, hasReleases?: boolean | null, skip?: number | null, limit?: number | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
786
771
|
const localVarPath = `/devices/`;
|
|
787
772
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
788
773
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -795,14 +780,6 @@ export const DeviceApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
795
780
|
const localVarHeaderParameter = {} as any;
|
|
796
781
|
const localVarQueryParameter = {} as any;
|
|
797
782
|
|
|
798
|
-
// authentication oauth2_password required
|
|
799
|
-
// oauth required
|
|
800
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
801
|
-
|
|
802
|
-
// authentication bearer_auth required
|
|
803
|
-
// http bearer authentication required
|
|
804
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
805
|
-
|
|
806
783
|
if (id) {
|
|
807
784
|
localVarQueryParameter['id'] = id;
|
|
808
785
|
}
|
|
@@ -877,14 +854,6 @@ export const DeviceApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
877
854
|
const localVarHeaderParameter = {} as any;
|
|
878
855
|
const localVarQueryParameter = {} as any;
|
|
879
856
|
|
|
880
|
-
// authentication oauth2_password required
|
|
881
|
-
// oauth required
|
|
882
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
883
|
-
|
|
884
|
-
// authentication bearer_auth required
|
|
885
|
-
// http bearer authentication required
|
|
886
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
887
|
-
|
|
888
857
|
|
|
889
858
|
|
|
890
859
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -907,36 +876,37 @@ export const DeviceApiFp = function(configuration?: Configuration) {
|
|
|
907
876
|
const localVarAxiosParamCreator = DeviceApiAxiosParamCreator(configuration)
|
|
908
877
|
return {
|
|
909
878
|
/**
|
|
910
|
-
*
|
|
879
|
+
* Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
|
|
911
880
|
* @summary Get Device
|
|
912
|
-
* @param {
|
|
881
|
+
* @param { | null} [deviceId]
|
|
882
|
+
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
883
|
+
* @param {string | null} [codename] Not recommended to use when you can
|
|
913
884
|
* @param {*} [options] Override http request option.
|
|
914
885
|
* @throws {RequiredError}
|
|
915
886
|
*/
|
|
916
|
-
async
|
|
917
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
887
|
+
async getDeviceDevicesGetGet(deviceId?: | null, id?: | null, codename?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceResponse>> {
|
|
888
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeviceDevicesGetGet(deviceId, id, codename, options);
|
|
918
889
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
919
|
-
const localVarOperationServerBasePath = operationServerMap['DeviceApi.
|
|
890
|
+
const localVarOperationServerBasePath = operationServerMap['DeviceApi.getDeviceDevicesGetGet']?.[localVarOperationServerIndex]?.url;
|
|
920
891
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
921
892
|
},
|
|
922
893
|
/**
|
|
923
|
-
*
|
|
924
|
-
* @summary Get Device
|
|
925
|
-
* @param {
|
|
926
|
-
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
927
|
-
* @param {string | null} [codename] Not recommended to use when you can
|
|
894
|
+
* Gets device info using device ID.
|
|
895
|
+
* @summary Get Device Short
|
|
896
|
+
* @param {string} deviceId
|
|
928
897
|
* @param {*} [options] Override http request option.
|
|
898
|
+
* @deprecated
|
|
929
899
|
* @throws {RequiredError}
|
|
930
900
|
*/
|
|
931
|
-
async
|
|
932
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
901
|
+
async getDeviceShortDevicesDeviceIdGet(deviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeviceResponse>> {
|
|
902
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeviceShortDevicesDeviceIdGet(deviceId, options);
|
|
933
903
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
934
|
-
const localVarOperationServerBasePath = operationServerMap['DeviceApi.
|
|
904
|
+
const localVarOperationServerBasePath = operationServerMap['DeviceApi.getDeviceShortDevicesDeviceIdGet']?.[localVarOperationServerIndex]?.url;
|
|
935
905
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
936
906
|
},
|
|
937
907
|
/**
|
|
938
908
|
* Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
|
|
939
|
-
* @summary Get Devices
|
|
909
|
+
* @summary Get Devices
|
|
940
910
|
* @param {Array<any>} [id] Filter by Device IDs
|
|
941
911
|
* @param {Array<any>} [id2] Filter by Device IDs (deprecated)
|
|
942
912
|
* @param {Array<string>} [oemName] Filter by OEM names
|
|
@@ -951,10 +921,10 @@ export const DeviceApiFp = function(configuration?: Configuration) {
|
|
|
951
921
|
* @param {*} [options] Override http request option.
|
|
952
922
|
* @throws {RequiredError}
|
|
953
923
|
*/
|
|
954
|
-
async
|
|
955
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
924
|
+
async getDevicesDevicesGet(id?: Array<any>, id2?: Array<any>, oemName?: Array<string>, codename?: Array<string>, modelName?: Array<string>, supported?: boolean | null, maintainer?: Array<string>, freezed?: boolean | null, hasReleases?: boolean | null, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListResponseShortDeviceResponse>> {
|
|
925
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDevicesDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options);
|
|
956
926
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
957
|
-
const localVarOperationServerBasePath = operationServerMap['DeviceApi.
|
|
927
|
+
const localVarOperationServerBasePath = operationServerMap['DeviceApi.getDevicesDevicesGet']?.[localVarOperationServerIndex]?.url;
|
|
958
928
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
959
929
|
},
|
|
960
930
|
/**
|
|
@@ -980,30 +950,31 @@ export const DeviceApiFactory = function (configuration?: Configuration, basePat
|
|
|
980
950
|
const localVarFp = DeviceApiFp(configuration)
|
|
981
951
|
return {
|
|
982
952
|
/**
|
|
983
|
-
*
|
|
953
|
+
* Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
|
|
984
954
|
* @summary Get Device
|
|
985
|
-
* @param {
|
|
955
|
+
* @param { | null} [deviceId]
|
|
956
|
+
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
957
|
+
* @param {string | null} [codename] Not recommended to use when you can
|
|
986
958
|
* @param {*} [options] Override http request option.
|
|
987
959
|
* @throws {RequiredError}
|
|
988
960
|
*/
|
|
989
|
-
|
|
990
|
-
return localVarFp.
|
|
961
|
+
getDeviceDevicesGetGet(deviceId?: | null, id?: | null, codename?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<DeviceResponse> {
|
|
962
|
+
return localVarFp.getDeviceDevicesGetGet(deviceId, id, codename, options).then((request) => request(axios, basePath));
|
|
991
963
|
},
|
|
992
964
|
/**
|
|
993
|
-
*
|
|
994
|
-
* @summary Get Device
|
|
995
|
-
* @param {
|
|
996
|
-
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
997
|
-
* @param {string | null} [codename] Not recommended to use when you can
|
|
965
|
+
* Gets device info using device ID.
|
|
966
|
+
* @summary Get Device Short
|
|
967
|
+
* @param {string} deviceId
|
|
998
968
|
* @param {*} [options] Override http request option.
|
|
969
|
+
* @deprecated
|
|
999
970
|
* @throws {RequiredError}
|
|
1000
971
|
*/
|
|
1001
|
-
|
|
1002
|
-
return localVarFp.
|
|
972
|
+
getDeviceShortDevicesDeviceIdGet(deviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<DeviceResponse> {
|
|
973
|
+
return localVarFp.getDeviceShortDevicesDeviceIdGet(deviceId, options).then((request) => request(axios, basePath));
|
|
1003
974
|
},
|
|
1004
975
|
/**
|
|
1005
976
|
* Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
|
|
1006
|
-
* @summary Get Devices
|
|
977
|
+
* @summary Get Devices
|
|
1007
978
|
* @param {Array<any>} [id] Filter by Device IDs
|
|
1008
979
|
* @param {Array<any>} [id2] Filter by Device IDs (deprecated)
|
|
1009
980
|
* @param {Array<string>} [oemName] Filter by OEM names
|
|
@@ -1018,8 +989,8 @@ export const DeviceApiFactory = function (configuration?: Configuration, basePat
|
|
|
1018
989
|
* @param {*} [options] Override http request option.
|
|
1019
990
|
* @throws {RequiredError}
|
|
1020
991
|
*/
|
|
1021
|
-
|
|
1022
|
-
return localVarFp.
|
|
992
|
+
getDevicesDevicesGet(id?: Array<any>, id2?: Array<any>, oemName?: Array<string>, codename?: Array<string>, modelName?: Array<string>, supported?: boolean | null, maintainer?: Array<string>, freezed?: boolean | null, hasReleases?: boolean | null, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<ListResponseShortDeviceResponse> {
|
|
993
|
+
return localVarFp.getDevicesDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(axios, basePath));
|
|
1023
994
|
},
|
|
1024
995
|
/**
|
|
1025
996
|
* Lists all OEM names
|
|
@@ -1040,30 +1011,31 @@ export const DeviceApiFactory = function (configuration?: Configuration, basePat
|
|
|
1040
1011
|
*/
|
|
1041
1012
|
export interface DeviceApiInterface {
|
|
1042
1013
|
/**
|
|
1043
|
-
*
|
|
1014
|
+
* Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
|
|
1044
1015
|
* @summary Get Device
|
|
1045
|
-
* @param {
|
|
1016
|
+
* @param { | null} [deviceId]
|
|
1017
|
+
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
1018
|
+
* @param {string | null} [codename] Not recommended to use when you can
|
|
1046
1019
|
* @param {*} [options] Override http request option.
|
|
1047
1020
|
* @throws {RequiredError}
|
|
1048
1021
|
* @memberof DeviceApiInterface
|
|
1049
1022
|
*/
|
|
1050
|
-
|
|
1023
|
+
getDeviceDevicesGetGet(deviceId?: | null, id?: | null, codename?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<DeviceResponse>;
|
|
1051
1024
|
|
|
1052
1025
|
/**
|
|
1053
|
-
*
|
|
1054
|
-
* @summary Get Device
|
|
1055
|
-
* @param {
|
|
1056
|
-
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
1057
|
-
* @param {string | null} [codename] Not recommended to use when you can
|
|
1026
|
+
* Gets device info using device ID.
|
|
1027
|
+
* @summary Get Device Short
|
|
1028
|
+
* @param {string} deviceId
|
|
1058
1029
|
* @param {*} [options] Override http request option.
|
|
1030
|
+
* @deprecated
|
|
1059
1031
|
* @throws {RequiredError}
|
|
1060
1032
|
* @memberof DeviceApiInterface
|
|
1061
1033
|
*/
|
|
1062
|
-
|
|
1034
|
+
getDeviceShortDevicesDeviceIdGet(deviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<DeviceResponse>;
|
|
1063
1035
|
|
|
1064
1036
|
/**
|
|
1065
1037
|
* Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
|
|
1066
|
-
* @summary Get Devices
|
|
1038
|
+
* @summary Get Devices
|
|
1067
1039
|
* @param {Array<any>} [id] Filter by Device IDs
|
|
1068
1040
|
* @param {Array<any>} [id2] Filter by Device IDs (deprecated)
|
|
1069
1041
|
* @param {Array<string>} [oemName] Filter by OEM names
|
|
@@ -1079,7 +1051,7 @@ export interface DeviceApiInterface {
|
|
|
1079
1051
|
* @throws {RequiredError}
|
|
1080
1052
|
* @memberof DeviceApiInterface
|
|
1081
1053
|
*/
|
|
1082
|
-
|
|
1054
|
+
getDevicesDevicesGet(id?: Array<any>, id2?: Array<any>, oemName?: Array<string>, codename?: Array<string>, modelName?: Array<string>, supported?: boolean | null, maintainer?: Array<string>, freezed?: boolean | null, hasReleases?: boolean | null, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<ListResponseShortDeviceResponse>;
|
|
1083
1055
|
|
|
1084
1056
|
/**
|
|
1085
1057
|
* Lists all OEM names
|
|
@@ -1100,34 +1072,35 @@ export interface DeviceApiInterface {
|
|
|
1100
1072
|
*/
|
|
1101
1073
|
export class DeviceApi extends BaseAPI implements DeviceApiInterface {
|
|
1102
1074
|
/**
|
|
1103
|
-
*
|
|
1075
|
+
* Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename=lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
|
|
1104
1076
|
* @summary Get Device
|
|
1105
|
-
* @param {
|
|
1077
|
+
* @param { | null} [deviceId]
|
|
1078
|
+
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
1079
|
+
* @param {string | null} [codename] Not recommended to use when you can
|
|
1106
1080
|
* @param {*} [options] Override http request option.
|
|
1107
1081
|
* @throws {RequiredError}
|
|
1108
1082
|
* @memberof DeviceApi
|
|
1109
1083
|
*/
|
|
1110
|
-
public
|
|
1111
|
-
return DeviceApiFp(this.configuration).
|
|
1084
|
+
public getDeviceDevicesGetGet(deviceId?: | null, id?: | null, codename?: string | null, options?: RawAxiosRequestConfig) {
|
|
1085
|
+
return DeviceApiFp(this.configuration).getDeviceDevicesGetGet(deviceId, id, codename, options).then((request) => request(this.axios, this.basePath));
|
|
1112
1086
|
}
|
|
1113
1087
|
|
|
1114
1088
|
/**
|
|
1115
|
-
*
|
|
1116
|
-
* @summary Get Device
|
|
1117
|
-
* @param {
|
|
1118
|
-
* @param { | null} [id] Filter by Device ID (deprecated)
|
|
1119
|
-
* @param {string | null} [codename] Not recommended to use when you can
|
|
1089
|
+
* Gets device info using device ID.
|
|
1090
|
+
* @summary Get Device Short
|
|
1091
|
+
* @param {string} deviceId
|
|
1120
1092
|
* @param {*} [options] Override http request option.
|
|
1093
|
+
* @deprecated
|
|
1121
1094
|
* @throws {RequiredError}
|
|
1122
1095
|
* @memberof DeviceApi
|
|
1123
1096
|
*/
|
|
1124
|
-
public
|
|
1125
|
-
return DeviceApiFp(this.configuration).
|
|
1097
|
+
public getDeviceShortDevicesDeviceIdGet(deviceId: string, options?: RawAxiosRequestConfig) {
|
|
1098
|
+
return DeviceApiFp(this.configuration).getDeviceShortDevicesDeviceIdGet(deviceId, options).then((request) => request(this.axios, this.basePath));
|
|
1126
1099
|
}
|
|
1127
1100
|
|
|
1128
1101
|
/**
|
|
1129
1102
|
* Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\'s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\'s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\'t support unified model names at all! In short, do not use model_name as device\'s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\'t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \"Xiaomi\" model_name: \"Poco F5 Pro\". The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \"/device/<device_id>\" or \"/device/get\" method instead.
|
|
1130
|
-
* @summary Get Devices
|
|
1103
|
+
* @summary Get Devices
|
|
1131
1104
|
* @param {Array<any>} [id] Filter by Device IDs
|
|
1132
1105
|
* @param {Array<any>} [id2] Filter by Device IDs (deprecated)
|
|
1133
1106
|
* @param {Array<string>} [oemName] Filter by OEM names
|
|
@@ -1143,8 +1116,8 @@ export class DeviceApi extends BaseAPI implements DeviceApiInterface {
|
|
|
1143
1116
|
* @throws {RequiredError}
|
|
1144
1117
|
* @memberof DeviceApi
|
|
1145
1118
|
*/
|
|
1146
|
-
public
|
|
1147
|
-
return DeviceApiFp(this.configuration).
|
|
1119
|
+
public getDevicesDevicesGet(id?: Array<any>, id2?: Array<any>, oemName?: Array<string>, codename?: Array<string>, modelName?: Array<string>, supported?: boolean | null, maintainer?: Array<string>, freezed?: boolean | null, hasReleases?: boolean | null, skip?: number | null, limit?: number | null, options?: RawAxiosRequestConfig) {
|
|
1120
|
+
return DeviceApiFp(this.configuration).getDevicesDevicesGet(id, id2, oemName, codename, modelName, supported, maintainer, freezed, hasReleases, skip, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1148
1121
|
}
|
|
1149
1122
|
|
|
1150
1123
|
/**
|
|
@@ -1169,7 +1142,7 @@ export const ReleaseApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1169
1142
|
return {
|
|
1170
1143
|
/**
|
|
1171
1144
|
* Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
|
|
1172
|
-
* @summary Get Release
|
|
1145
|
+
* @summary Get Release
|
|
1173
1146
|
* @param { | null} [releaseId] Release ID
|
|
1174
1147
|
* @param { | null} [id] Release ID (deprecated)
|
|
1175
1148
|
* @param {string | null} [buildId] Build ID, `ro.build.fox_id` prop
|
|
@@ -1177,7 +1150,7 @@ export const ReleaseApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1177
1150
|
* @param {*} [options] Override http request option.
|
|
1178
1151
|
* @throws {RequiredError}
|
|
1179
1152
|
*/
|
|
1180
|
-
|
|
1153
|
+
getReleaseReleasesGetGet: async (releaseId?: | null, id?: | null, buildId?: string | null, filename?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1181
1154
|
const localVarPath = `/releases/get`;
|
|
1182
1155
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1183
1156
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1190,14 +1163,6 @@ export const ReleaseApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1190
1163
|
const localVarHeaderParameter = {} as any;
|
|
1191
1164
|
const localVarQueryParameter = {} as any;
|
|
1192
1165
|
|
|
1193
|
-
// authentication oauth2_password required
|
|
1194
|
-
// oauth required
|
|
1195
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
1196
|
-
|
|
1197
|
-
// authentication bearer_auth required
|
|
1198
|
-
// http bearer authentication required
|
|
1199
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1200
|
-
|
|
1201
1166
|
if (releaseId !== undefined) {
|
|
1202
1167
|
for (const [key, value] of Object.entries(releaseId)) {
|
|
1203
1168
|
localVarQueryParameter[key] = value;
|
|
@@ -1231,14 +1196,15 @@ export const ReleaseApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1231
1196
|
},
|
|
1232
1197
|
/**
|
|
1233
1198
|
* Gets release information using the release ID, nothing to discuss really.
|
|
1234
|
-
* @summary Get Release
|
|
1199
|
+
* @summary Get Release Short
|
|
1235
1200
|
* @param {any} releaseId
|
|
1236
1201
|
* @param {*} [options] Override http request option.
|
|
1202
|
+
* @deprecated
|
|
1237
1203
|
* @throws {RequiredError}
|
|
1238
1204
|
*/
|
|
1239
|
-
|
|
1205
|
+
getReleaseShortReleasesReleaseIdGet: async (releaseId: any, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1240
1206
|
// verify required parameter 'releaseId' is not null or undefined
|
|
1241
|
-
assertParamExists('
|
|
1207
|
+
assertParamExists('getReleaseShortReleasesReleaseIdGet', 'releaseId', releaseId)
|
|
1242
1208
|
const localVarPath = `/releases/{release_id}`
|
|
1243
1209
|
.replace(`{${"release_id"}}`, encodeURIComponent(String(releaseId)));
|
|
1244
1210
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1252,14 +1218,6 @@ export const ReleaseApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1252
1218
|
const localVarHeaderParameter = {} as any;
|
|
1253
1219
|
const localVarQueryParameter = {} as any;
|
|
1254
1220
|
|
|
1255
|
-
// authentication oauth2_password required
|
|
1256
|
-
// oauth required
|
|
1257
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
1258
|
-
|
|
1259
|
-
// authentication bearer_auth required
|
|
1260
|
-
// http bearer authentication required
|
|
1261
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1262
|
-
|
|
1263
1221
|
|
|
1264
1222
|
|
|
1265
1223
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1306,14 +1264,6 @@ export const ReleaseApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1306
1264
|
const localVarHeaderParameter = {} as any;
|
|
1307
1265
|
const localVarQueryParameter = {} as any;
|
|
1308
1266
|
|
|
1309
|
-
// authentication oauth2_password required
|
|
1310
|
-
// oauth required
|
|
1311
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
1312
|
-
|
|
1313
|
-
// authentication bearer_auth required
|
|
1314
|
-
// http bearer authentication required
|
|
1315
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1316
|
-
|
|
1317
1267
|
if (id) {
|
|
1318
1268
|
localVarQueryParameter['id'] = id;
|
|
1319
1269
|
}
|
|
@@ -1420,14 +1370,6 @@ export const ReleaseApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1420
1370
|
const localVarHeaderParameter = {} as any;
|
|
1421
1371
|
const localVarQueryParameter = {} as any;
|
|
1422
1372
|
|
|
1423
|
-
// authentication oauth2_password required
|
|
1424
|
-
// oauth required
|
|
1425
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
1426
|
-
|
|
1427
|
-
// authentication bearer_auth required
|
|
1428
|
-
// http bearer authentication required
|
|
1429
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1430
|
-
|
|
1431
1373
|
if (deviceId) {
|
|
1432
1374
|
localVarQueryParameter['device_id'] = deviceId;
|
|
1433
1375
|
}
|
|
@@ -1471,7 +1413,7 @@ export const ReleaseApiFp = function(configuration?: Configuration) {
|
|
|
1471
1413
|
return {
|
|
1472
1414
|
/**
|
|
1473
1415
|
* Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
|
|
1474
|
-
* @summary Get Release
|
|
1416
|
+
* @summary Get Release
|
|
1475
1417
|
* @param { | null} [releaseId] Release ID
|
|
1476
1418
|
* @param { | null} [id] Release ID (deprecated)
|
|
1477
1419
|
* @param {string | null} [buildId] Build ID, `ro.build.fox_id` prop
|
|
@@ -1479,23 +1421,24 @@ export const ReleaseApiFp = function(configuration?: Configuration) {
|
|
|
1479
1421
|
* @param {*} [options] Override http request option.
|
|
1480
1422
|
* @throws {RequiredError}
|
|
1481
1423
|
*/
|
|
1482
|
-
async
|
|
1483
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1424
|
+
async getReleaseReleasesGetGet(releaseId?: | null, id?: | null, buildId?: string | null, filename?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReleaseResponse>> {
|
|
1425
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getReleaseReleasesGetGet(releaseId, id, buildId, filename, options);
|
|
1484
1426
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1485
|
-
const localVarOperationServerBasePath = operationServerMap['ReleaseApi.
|
|
1427
|
+
const localVarOperationServerBasePath = operationServerMap['ReleaseApi.getReleaseReleasesGetGet']?.[localVarOperationServerIndex]?.url;
|
|
1486
1428
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1487
1429
|
},
|
|
1488
1430
|
/**
|
|
1489
1431
|
* Gets release information using the release ID, nothing to discuss really.
|
|
1490
|
-
* @summary Get Release
|
|
1432
|
+
* @summary Get Release Short
|
|
1491
1433
|
* @param {any} releaseId
|
|
1492
1434
|
* @param {*} [options] Override http request option.
|
|
1435
|
+
* @deprecated
|
|
1493
1436
|
* @throws {RequiredError}
|
|
1494
1437
|
*/
|
|
1495
|
-
async
|
|
1496
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1438
|
+
async getReleaseShortReleasesReleaseIdGet(releaseId: any, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReleaseResponse>> {
|
|
1439
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getReleaseShortReleasesReleaseIdGet(releaseId, options);
|
|
1497
1440
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1498
|
-
const localVarOperationServerBasePath = operationServerMap['ReleaseApi.
|
|
1441
|
+
const localVarOperationServerBasePath = operationServerMap['ReleaseApi.getReleaseShortReleasesReleaseIdGet']?.[localVarOperationServerIndex]?.url;
|
|
1499
1442
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1500
1443
|
},
|
|
1501
1444
|
/**
|
|
@@ -1557,7 +1500,7 @@ export const ReleaseApiFactory = function (configuration?: Configuration, basePa
|
|
|
1557
1500
|
return {
|
|
1558
1501
|
/**
|
|
1559
1502
|
* Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
|
|
1560
|
-
* @summary Get Release
|
|
1503
|
+
* @summary Get Release
|
|
1561
1504
|
* @param { | null} [releaseId] Release ID
|
|
1562
1505
|
* @param { | null} [id] Release ID (deprecated)
|
|
1563
1506
|
* @param {string | null} [buildId] Build ID, `ro.build.fox_id` prop
|
|
@@ -1565,18 +1508,19 @@ export const ReleaseApiFactory = function (configuration?: Configuration, basePa
|
|
|
1565
1508
|
* @param {*} [options] Override http request option.
|
|
1566
1509
|
* @throws {RequiredError}
|
|
1567
1510
|
*/
|
|
1568
|
-
|
|
1569
|
-
return localVarFp.
|
|
1511
|
+
getReleaseReleasesGetGet(releaseId?: | null, id?: | null, buildId?: string | null, filename?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<ReleaseResponse> {
|
|
1512
|
+
return localVarFp.getReleaseReleasesGetGet(releaseId, id, buildId, filename, options).then((request) => request(axios, basePath));
|
|
1570
1513
|
},
|
|
1571
1514
|
/**
|
|
1572
1515
|
* Gets release information using the release ID, nothing to discuss really.
|
|
1573
|
-
* @summary Get Release
|
|
1516
|
+
* @summary Get Release Short
|
|
1574
1517
|
* @param {any} releaseId
|
|
1575
1518
|
* @param {*} [options] Override http request option.
|
|
1519
|
+
* @deprecated
|
|
1576
1520
|
* @throws {RequiredError}
|
|
1577
1521
|
*/
|
|
1578
|
-
|
|
1579
|
-
return localVarFp.
|
|
1522
|
+
getReleaseShortReleasesReleaseIdGet(releaseId: any, options?: RawAxiosRequestConfig): AxiosPromise<ReleaseResponse> {
|
|
1523
|
+
return localVarFp.getReleaseShortReleasesReleaseIdGet(releaseId, options).then((request) => request(axios, basePath));
|
|
1580
1524
|
},
|
|
1581
1525
|
/**
|
|
1582
1526
|
* Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
|
|
@@ -1630,7 +1574,7 @@ export const ReleaseApiFactory = function (configuration?: Configuration, basePa
|
|
|
1630
1574
|
export interface ReleaseApiInterface {
|
|
1631
1575
|
/**
|
|
1632
1576
|
* Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
|
|
1633
|
-
* @summary Get Release
|
|
1577
|
+
* @summary Get Release
|
|
1634
1578
|
* @param { | null} [releaseId] Release ID
|
|
1635
1579
|
* @param { | null} [id] Release ID (deprecated)
|
|
1636
1580
|
* @param {string | null} [buildId] Build ID, `ro.build.fox_id` prop
|
|
@@ -1639,17 +1583,18 @@ export interface ReleaseApiInterface {
|
|
|
1639
1583
|
* @throws {RequiredError}
|
|
1640
1584
|
* @memberof ReleaseApiInterface
|
|
1641
1585
|
*/
|
|
1642
|
-
|
|
1586
|
+
getReleaseReleasesGetGet(releaseId?: | null, id?: | null, buildId?: string | null, filename?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<ReleaseResponse>;
|
|
1643
1587
|
|
|
1644
1588
|
/**
|
|
1645
1589
|
* Gets release information using the release ID, nothing to discuss really.
|
|
1646
|
-
* @summary Get Release
|
|
1590
|
+
* @summary Get Release Short
|
|
1647
1591
|
* @param {any} releaseId
|
|
1648
1592
|
* @param {*} [options] Override http request option.
|
|
1593
|
+
* @deprecated
|
|
1649
1594
|
* @throws {RequiredError}
|
|
1650
1595
|
* @memberof ReleaseApiInterface
|
|
1651
1596
|
*/
|
|
1652
|
-
|
|
1597
|
+
getReleaseShortReleasesReleaseIdGet(releaseId: any, options?: RawAxiosRequestConfig): AxiosPromise<ReleaseResponse>;
|
|
1653
1598
|
|
|
1654
1599
|
/**
|
|
1655
1600
|
* Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\'s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
|
|
@@ -1703,7 +1648,7 @@ export interface ReleaseApiInterface {
|
|
|
1703
1648
|
export class ReleaseApi extends BaseAPI implements ReleaseApiInterface {
|
|
1704
1649
|
/**
|
|
1705
1650
|
* Extended get device method, including the ability to get a device using device codename instead of the ID and Build ID. Example: /device/get?codename=lavender Calling this method without parameters will return the latest available release in the database Warning: the filename identification is deprecated! Use /release/<release_id> instead!
|
|
1706
|
-
* @summary Get Release
|
|
1651
|
+
* @summary Get Release
|
|
1707
1652
|
* @param { | null} [releaseId] Release ID
|
|
1708
1653
|
* @param { | null} [id] Release ID (deprecated)
|
|
1709
1654
|
* @param {string | null} [buildId] Build ID, `ro.build.fox_id` prop
|
|
@@ -1712,20 +1657,21 @@ export class ReleaseApi extends BaseAPI implements ReleaseApiInterface {
|
|
|
1712
1657
|
* @throws {RequiredError}
|
|
1713
1658
|
* @memberof ReleaseApi
|
|
1714
1659
|
*/
|
|
1715
|
-
public
|
|
1716
|
-
return ReleaseApiFp(this.configuration).
|
|
1660
|
+
public getReleaseReleasesGetGet(releaseId?: | null, id?: | null, buildId?: string | null, filename?: string | null, options?: RawAxiosRequestConfig) {
|
|
1661
|
+
return ReleaseApiFp(this.configuration).getReleaseReleasesGetGet(releaseId, id, buildId, filename, options).then((request) => request(this.axios, this.basePath));
|
|
1717
1662
|
}
|
|
1718
1663
|
|
|
1719
1664
|
/**
|
|
1720
1665
|
* Gets release information using the release ID, nothing to discuss really.
|
|
1721
|
-
* @summary Get Release
|
|
1666
|
+
* @summary Get Release Short
|
|
1722
1667
|
* @param {any} releaseId
|
|
1723
1668
|
* @param {*} [options] Override http request option.
|
|
1669
|
+
* @deprecated
|
|
1724
1670
|
* @throws {RequiredError}
|
|
1725
1671
|
* @memberof ReleaseApi
|
|
1726
1672
|
*/
|
|
1727
|
-
public
|
|
1728
|
-
return ReleaseApiFp(this.configuration).
|
|
1673
|
+
public getReleaseShortReleasesReleaseIdGet(releaseId: any, options?: RawAxiosRequestConfig) {
|
|
1674
|
+
return ReleaseApiFp(this.configuration).getReleaseShortReleasesReleaseIdGet(releaseId, options).then((request) => request(this.axios, this.basePath));
|
|
1729
1675
|
}
|
|
1730
1676
|
|
|
1731
1677
|
/**
|
|
@@ -1801,14 +1747,6 @@ export const StatsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
1801
1747
|
const localVarHeaderParameter = {} as any;
|
|
1802
1748
|
const localVarQueryParameter = {} as any;
|
|
1803
1749
|
|
|
1804
|
-
// authentication oauth2_password required
|
|
1805
|
-
// oauth required
|
|
1806
|
-
await setOAuthToObject(localVarHeaderParameter, "oauth2_password", [], configuration)
|
|
1807
|
-
|
|
1808
|
-
// authentication bearer_auth required
|
|
1809
|
-
// http bearer authentication required
|
|
1810
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1811
|
-
|
|
1812
1750
|
|
|
1813
1751
|
|
|
1814
1752
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|