@orangefox-recovery/foxinternalclient 5.2.1
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 +63 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +155 -0
- package/api.ts +5275 -0
- package/base.ts +86 -0
- package/common.ts +150 -0
- package/configuration.ts +115 -0
- package/dist/api.d.ts +3508 -0
- package/dist/api.js +3078 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api.d.ts +3508 -0
- package/dist/esm/api.js +3051 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +13 -0
- package/dist/esm/index.js +15 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/BodyChangePasswordProfileChangePasswordPost.md +22 -0
- package/docs/BuildStatusEnum.md +18 -0
- package/docs/BuildTaskResponse.md +36 -0
- package/docs/BuildTaskShortResponse.md +32 -0
- package/docs/DeviceApi.md +253 -0
- package/docs/DeviceInternalResponse.md +48 -0
- package/docs/DeviceResponse.md +44 -0
- package/docs/DeviceStatsResponse.md +24 -0
- package/docs/DeviceUpdateBody.md +30 -0
- package/docs/FFStatusEnum.md +12 -0
- package/docs/FFStatusResponse.md +20 -0
- package/docs/FoxFactoryApi.md +375 -0
- package/docs/GitlabApi.md +62 -0
- package/docs/GlobalStatsAggregationModel.md +26 -0
- package/docs/HTTPValidationError.md +20 -0
- package/docs/InternalApi.md +961 -0
- package/docs/ListResponseReleaseResponse.md +22 -0
- package/docs/ListResponseShortDeviceResponse.md +22 -0
- package/docs/ListResponseShortReleaseResponse.md +22 -0
- package/docs/ListResponseStr.md +22 -0
- package/docs/ListResponseUserShortResponse.md +22 -0
- package/docs/LogListResponse.md +26 -0
- package/docs/LogResponse.md +36 -0
- package/docs/MaintainerShortModel.md +26 -0
- package/docs/NewBuildTaskBody.md +28 -0
- package/docs/NewDeviceBody.md +26 -0
- package/docs/RecoveryImgResponse.md +22 -0
- package/docs/ReleaseApi.md +292 -0
- package/docs/ReleaseGroupsResponse.md +20 -0
- package/docs/ReleaseInternalResponse.md +62 -0
- package/docs/ReleaseInternalResponsePropValue.md +18 -0
- package/docs/ReleaseResponse.md +56 -0
- package/docs/ReleaseStatsResponse.md +24 -0
- package/docs/ReleaseType.md +12 -0
- package/docs/ReleaseUpdateBody.md +26 -0
- package/docs/ReleasesSort.md +10 -0
- package/docs/ResponseGetReleases.md +22 -0
- package/docs/ShortDeviceResponse.md +38 -0
- package/docs/ShortReleaseResponse.md +44 -0
- package/docs/StatsApi.md +53 -0
- package/docs/TaskUpdateBody.md +22 -0
- package/docs/TokenResponse.md +22 -0
- package/docs/UserGitlab.md +20 -0
- package/docs/UserInternalResponse.md +38 -0
- package/docs/UserMail.md +20 -0
- package/docs/UserShortResponse.md +26 -0
- package/docs/UserTelegram.md +20 -0
- package/docs/UserUpdateBody.md +28 -0
- package/docs/ValidationError.md +24 -0
- package/docs/ValidationErrorLocInner.md +18 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +41 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# ReleaseResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | | [default to undefined]
|
|
9
|
+
**size** | **number** | | [default to undefined]
|
|
10
|
+
**id** | **string** | Release ID, that\'s how we indentify the release in the infrastructure | [default to undefined]
|
|
11
|
+
**build_id** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**filename** | **string** | | [default to undefined]
|
|
13
|
+
**variant** | **string** | | [default to undefined]
|
|
14
|
+
**device_id** | **string** | | [default to undefined]
|
|
15
|
+
**date** | **string** | | [default to undefined]
|
|
16
|
+
**md5** | **string** | | [default to undefined]
|
|
17
|
+
**version** | **string** | | [default to undefined]
|
|
18
|
+
**type** | [**ReleaseType**](ReleaseType.md) | | [default to undefined]
|
|
19
|
+
**maintainer_id** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**archived** | **boolean** | | [default to undefined]
|
|
21
|
+
**recovery_img** | [**RecoveryImgResponse**](RecoveryImgResponse.md) | | [default to undefined]
|
|
22
|
+
**changelog** | **Array<string>** | | [default to undefined]
|
|
23
|
+
**bugs** | **Array<string>** | | [default to undefined]
|
|
24
|
+
**notes** | **string** | | [default to undefined]
|
|
25
|
+
**url** | **string** | URL of the release on the official website | [readonly] [default to undefined]
|
|
26
|
+
**mirrors** | **{ [key: string]: string; }** | Mirrors list (deprecated) | [readonly] [default to undefined]
|
|
27
|
+
|
|
28
|
+
## Example
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { ReleaseResponse } from '@orangefox-recovery/foxinternalclient';
|
|
32
|
+
|
|
33
|
+
const instance: ReleaseResponse = {
|
|
34
|
+
_id,
|
|
35
|
+
size,
|
|
36
|
+
id,
|
|
37
|
+
build_id,
|
|
38
|
+
filename,
|
|
39
|
+
variant,
|
|
40
|
+
device_id,
|
|
41
|
+
date,
|
|
42
|
+
md5,
|
|
43
|
+
version,
|
|
44
|
+
type,
|
|
45
|
+
maintainer_id,
|
|
46
|
+
archived,
|
|
47
|
+
recovery_img,
|
|
48
|
+
changelog,
|
|
49
|
+
bugs,
|
|
50
|
+
notes,
|
|
51
|
+
url,
|
|
52
|
+
mirrors,
|
|
53
|
+
};
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ReleaseStatsResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**count** | **number** | | [default to undefined]
|
|
9
|
+
**days** | **{ [key: string]: number; }** | | [default to undefined]
|
|
10
|
+
**mirrors** | **{ [key: string]: number; }** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ReleaseStatsResponse } from '@orangefox-recovery/foxinternalclient';
|
|
16
|
+
|
|
17
|
+
const instance: ReleaseStatsResponse = {
|
|
18
|
+
count,
|
|
19
|
+
days,
|
|
20
|
+
mirrors,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# ReleaseType
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `Stable` (value: `'stable'`)
|
|
7
|
+
|
|
8
|
+
* `Beta` (value: `'beta'`)
|
|
9
|
+
|
|
10
|
+
* `Alpha` (value: `'alpha'`)
|
|
11
|
+
|
|
12
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ReleaseUpdateBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**changelog** | **Array<string>** | | [optional] [default to undefined]
|
|
9
|
+
**bugs** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
**notes** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**freezed** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ReleaseUpdateBody } from '@orangefox-recovery/foxinternalclient';
|
|
17
|
+
|
|
18
|
+
const instance: ReleaseUpdateBody = {
|
|
19
|
+
changelog,
|
|
20
|
+
bugs,
|
|
21
|
+
notes,
|
|
22
|
+
freezed,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# ReleasesSort
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `DateAsc` (value: `'date_asc'`)
|
|
7
|
+
|
|
8
|
+
* `DateDesc` (value: `'date_desc'`)
|
|
9
|
+
|
|
10
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# ResponseGetReleases
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | **{ [key: string]: Array<ReleaseResponse>; }** | | [default to undefined]
|
|
9
|
+
**count** | **number** | | [readonly] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ResponseGetReleases } from '@orangefox-recovery/foxinternalclient';
|
|
15
|
+
|
|
16
|
+
const instance: ResponseGetReleases = {
|
|
17
|
+
data,
|
|
18
|
+
count,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# ShortDeviceResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | | [default to undefined]
|
|
9
|
+
**codename** | **string** | Device codename, legacy | [default to undefined]
|
|
10
|
+
**model_name** | **string** | Model name of device, does not include the OEM part, legacy | [default to undefined]
|
|
11
|
+
**oem_name** | **string** | | [default to undefined]
|
|
12
|
+
**id** | **string** | | [default to undefined]
|
|
13
|
+
**codenames** | **Array<string>** | | [default to undefined]
|
|
14
|
+
**model_names** | **Array<string>** | | [default to undefined]
|
|
15
|
+
**supported** | **boolean** | | [default to undefined]
|
|
16
|
+
**full_name** | **string** | Full name of device / devices, legacy | [readonly] [default to undefined]
|
|
17
|
+
**url** | **string** | URL of the device on the official website | [readonly] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { ShortDeviceResponse } from '@orangefox-recovery/foxinternalclient';
|
|
23
|
+
|
|
24
|
+
const instance: ShortDeviceResponse = {
|
|
25
|
+
_id,
|
|
26
|
+
codename,
|
|
27
|
+
model_name,
|
|
28
|
+
oem_name,
|
|
29
|
+
id,
|
|
30
|
+
codenames,
|
|
31
|
+
model_names,
|
|
32
|
+
supported,
|
|
33
|
+
full_name,
|
|
34
|
+
url,
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# ShortReleaseResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**_id** | **string** | | [default to undefined]
|
|
9
|
+
**size** | **number** | | [default to undefined]
|
|
10
|
+
**id** | **string** | Release ID, that\'s how we indentify the release in the infrastructure | [default to undefined]
|
|
11
|
+
**build_id** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**filename** | **string** | | [default to undefined]
|
|
13
|
+
**variant** | **string** | | [default to undefined]
|
|
14
|
+
**device_id** | **string** | | [default to undefined]
|
|
15
|
+
**date** | **string** | | [default to undefined]
|
|
16
|
+
**md5** | **string** | | [default to undefined]
|
|
17
|
+
**version** | **string** | | [default to undefined]
|
|
18
|
+
**type** | [**ReleaseType**](ReleaseType.md) | | [default to undefined]
|
|
19
|
+
**maintainer_id** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**archived** | **boolean** | | [default to undefined]
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { ShortReleaseResponse } from '@orangefox-recovery/foxinternalclient';
|
|
26
|
+
|
|
27
|
+
const instance: ShortReleaseResponse = {
|
|
28
|
+
_id,
|
|
29
|
+
size,
|
|
30
|
+
id,
|
|
31
|
+
build_id,
|
|
32
|
+
filename,
|
|
33
|
+
variant,
|
|
34
|
+
device_id,
|
|
35
|
+
date,
|
|
36
|
+
md5,
|
|
37
|
+
version,
|
|
38
|
+
type,
|
|
39
|
+
maintainer_id,
|
|
40
|
+
archived,
|
|
41
|
+
};
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/StatsApi.md
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# StatsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.orangefox.download*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getPublicStats**](#getpublicstats) | **GET** /stats/ | Public Stats|
|
|
8
|
+
|
|
9
|
+
# **getPublicStats**
|
|
10
|
+
> GlobalStatsAggregationModel getPublicStats()
|
|
11
|
+
|
|
12
|
+
Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
StatsApi,
|
|
19
|
+
Configuration
|
|
20
|
+
} from '@orangefox-recovery/foxinternalclient';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new StatsApi(configuration);
|
|
24
|
+
|
|
25
|
+
const { status, data } = await apiInstance.getPublicStats();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Parameters
|
|
29
|
+
This endpoint does not have any parameters.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Return type
|
|
33
|
+
|
|
34
|
+
**GlobalStatsAggregationModel**
|
|
35
|
+
|
|
36
|
+
### Authorization
|
|
37
|
+
|
|
38
|
+
No authorization required
|
|
39
|
+
|
|
40
|
+
### HTTP request headers
|
|
41
|
+
|
|
42
|
+
- **Content-Type**: Not defined
|
|
43
|
+
- **Accept**: application/json
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### HTTP response details
|
|
47
|
+
| Status code | Description | Response headers |
|
|
48
|
+
|-------------|-------------|------------------|
|
|
49
|
+
|**200** | Successful Response | - |
|
|
50
|
+
|**429** | Too many requests | - |
|
|
51
|
+
|
|
52
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
53
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# TaskUpdateBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**status** | [**BuildStatusEnum**](BuildStatusEnum.md) | | [optional] [default to undefined]
|
|
9
|
+
**logs** | **Array<string>** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { TaskUpdateBody } from '@orangefox-recovery/foxinternalclient';
|
|
15
|
+
|
|
16
|
+
const instance: TaskUpdateBody = {
|
|
17
|
+
status,
|
|
18
|
+
logs,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# TokenResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**access_token** | **string** | | [default to undefined]
|
|
9
|
+
**token_type** | **string** | | [optional] [default to 'bearer']
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { TokenResponse } from '@orangefox-recovery/foxinternalclient';
|
|
15
|
+
|
|
16
|
+
const instance: TokenResponse = {
|
|
17
|
+
access_token,
|
|
18
|
+
token_type,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UserGitlab
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UserGitlab } from '@orangefox-recovery/foxinternalclient';
|
|
14
|
+
|
|
15
|
+
const instance: UserGitlab = {
|
|
16
|
+
id,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# UserInternalResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**username** | **string** | | [default to undefined]
|
|
10
|
+
**name** | **string** | | [default to undefined]
|
|
11
|
+
**freezed** | **boolean** | | [default to undefined]
|
|
12
|
+
**roles** | **Array<string>** | | [default to undefined]
|
|
13
|
+
**telegram** | [**UserTelegram**](UserTelegram.md) | | [optional] [default to undefined]
|
|
14
|
+
**gitlab** | [**UserGitlab**](UserGitlab.md) | | [optional] [default to undefined]
|
|
15
|
+
**mail** | [**UserMail**](UserMail.md) | | [optional] [default to undefined]
|
|
16
|
+
**admin_notes** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**maintained_devices** | [**Array<ShortDeviceResponse>**](ShortDeviceResponse.md) | | [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { UserInternalResponse } from '@orangefox-recovery/foxinternalclient';
|
|
23
|
+
|
|
24
|
+
const instance: UserInternalResponse = {
|
|
25
|
+
id,
|
|
26
|
+
username,
|
|
27
|
+
name,
|
|
28
|
+
freezed,
|
|
29
|
+
roles,
|
|
30
|
+
telegram,
|
|
31
|
+
gitlab,
|
|
32
|
+
mail,
|
|
33
|
+
admin_notes,
|
|
34
|
+
maintained_devices,
|
|
35
|
+
};
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/UserMail.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UserMail
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**username** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UserMail } from '@orangefox-recovery/foxinternalclient';
|
|
14
|
+
|
|
15
|
+
const instance: UserMail = {
|
|
16
|
+
username,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# UserShortResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | | [default to undefined]
|
|
9
|
+
**username** | **string** | | [default to undefined]
|
|
10
|
+
**name** | **string** | | [default to undefined]
|
|
11
|
+
**freezed** | **boolean** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { UserShortResponse } from '@orangefox-recovery/foxinternalclient';
|
|
17
|
+
|
|
18
|
+
const instance: UserShortResponse = {
|
|
19
|
+
id,
|
|
20
|
+
username,
|
|
21
|
+
name,
|
|
22
|
+
freezed,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# UserTelegram
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { UserTelegram } from '@orangefox-recovery/foxinternalclient';
|
|
14
|
+
|
|
15
|
+
const instance: UserTelegram = {
|
|
16
|
+
id,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# UserUpdateBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**username** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**freezed** | **boolean** | | [optional] [default to undefined]
|
|
11
|
+
**roles** | **Array<string>** | | [optional] [default to undefined]
|
|
12
|
+
**admin_notes** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { UserUpdateBody } from '@orangefox-recovery/foxinternalclient';
|
|
18
|
+
|
|
19
|
+
const instance: UserUpdateBody = {
|
|
20
|
+
username,
|
|
21
|
+
name,
|
|
22
|
+
freezed,
|
|
23
|
+
roles,
|
|
24
|
+
admin_notes,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# ValidationError
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**loc** | [**Array<ValidationErrorLocInner>**](ValidationErrorLocInner.md) | | [default to undefined]
|
|
9
|
+
**msg** | **string** | | [default to undefined]
|
|
10
|
+
**type** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ValidationError } from '@orangefox-recovery/foxinternalclient';
|
|
16
|
+
|
|
17
|
+
const instance: ValidationError = {
|
|
18
|
+
loc,
|
|
19
|
+
msg,
|
|
20
|
+
type,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# ValidationErrorLocInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
import { ValidationErrorLocInner } from '@orangefox-recovery/foxinternalclient';
|
|
13
|
+
|
|
14
|
+
const instance: ValidationErrorLocInner = {
|
|
15
|
+
};
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/git_push.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
|
3
|
+
#
|
|
4
|
+
# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
|
|
5
|
+
|
|
6
|
+
git_user_id=$1
|
|
7
|
+
git_repo_id=$2
|
|
8
|
+
release_note=$3
|
|
9
|
+
git_host=$4
|
|
10
|
+
|
|
11
|
+
if [ "$git_host" = "" ]; then
|
|
12
|
+
git_host="github.com"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
14
|
+
fi
|
|
15
|
+
|
|
16
|
+
if [ "$git_user_id" = "" ]; then
|
|
17
|
+
git_user_id="GIT_USER_ID"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
19
|
+
fi
|
|
20
|
+
|
|
21
|
+
if [ "$git_repo_id" = "" ]; then
|
|
22
|
+
git_repo_id="GIT_REPO_ID"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
24
|
+
fi
|
|
25
|
+
|
|
26
|
+
if [ "$release_note" = "" ]; then
|
|
27
|
+
release_note="Minor update"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
# Initialize the local directory as a Git repository
|
|
32
|
+
git init
|
|
33
|
+
|
|
34
|
+
# Adds the files in the local repository and stages them for commit.
|
|
35
|
+
git add .
|
|
36
|
+
|
|
37
|
+
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
+
git commit -m "$release_note"
|
|
39
|
+
|
|
40
|
+
# Sets the new remote
|
|
41
|
+
git_remote=$(git remote)
|
|
42
|
+
if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
|
+
|
|
44
|
+
if [ "$GIT_TOKEN" = "" ]; then
|
|
45
|
+
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
+
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
47
|
+
else
|
|
48
|
+
git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
|
|
49
|
+
fi
|
|
50
|
+
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
git pull origin master
|
|
54
|
+
|
|
55
|
+
# Pushes (Forces) the changes in the local repository up to the remote repository
|
|
56
|
+
echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
57
|
+
git push origin master 2>&1 | grep -v 'To https'
|
package/index.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fox API
|
|
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
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 5.2.1
|
|
8
|
+
* Contact: admin@orangefox.tech
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export * from "./api";
|
|
17
|
+
export * from "./configuration";
|
|
18
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@orangefox-recovery/foxinternalclient",
|
|
3
|
+
"version": "5.2.1",
|
|
4
|
+
"description": "OpenAPI client for @orangefox-recovery/foxinternalclient",
|
|
5
|
+
"author": "OpenAPI-Generator Contributors",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"axios",
|
|
12
|
+
"typescript",
|
|
13
|
+
"openapi-client",
|
|
14
|
+
"openapi-generator",
|
|
15
|
+
"@orangefox-recovery/foxinternalclient"
|
|
16
|
+
],
|
|
17
|
+
"license": "Unlicense",
|
|
18
|
+
"main": "./dist/index.js",
|
|
19
|
+
"typings": "./dist/index.d.ts",
|
|
20
|
+
"module": "./dist/esm/index.js",
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
24
|
+
"prepare": "npm run build"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"axios": "^1.6.1"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/node": "12.11.5 - 12.20.42",
|
|
31
|
+
"typescript": "^4.0 || ^5.0"
|
|
32
|
+
},
|
|
33
|
+
"directories": {
|
|
34
|
+
"doc": "docs"
|
|
35
|
+
},
|
|
36
|
+
"type": "commonjs",
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID/issues"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://github.com/GIT_USER_ID/GIT_REPO_ID#readme"
|
|
41
|
+
}
|