tornapi-typescript 0.2.4 → 0.2.5
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/dist/index.d.ts +151 -0
- package/dist/openapi.json +753 -50
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,31 @@
|
|
|
9
9
|
|
|
10
10
|
export type RaceClassEnum = "A" | "B" | "C" | "D" | "E";
|
|
11
11
|
|
|
12
|
+
export type CountryEnum =
|
|
13
|
+
| "Mexico"
|
|
14
|
+
| "Hawaii"
|
|
15
|
+
| "South Africa"
|
|
16
|
+
| "Japan"
|
|
17
|
+
| "China"
|
|
18
|
+
| "Argentina"
|
|
19
|
+
| "Switzerland"
|
|
20
|
+
| "Canada"
|
|
21
|
+
| "United Kingdom"
|
|
22
|
+
| "UAE"
|
|
23
|
+
| "Cayman Islands";
|
|
24
|
+
|
|
25
|
+
export type ReportTypeEnum =
|
|
26
|
+
| "mostwanted"
|
|
27
|
+
| "money"
|
|
28
|
+
| "stats"
|
|
29
|
+
| "references"
|
|
30
|
+
| "friendorfoe"
|
|
31
|
+
| "companyfinancials"
|
|
32
|
+
| "truelevel"
|
|
33
|
+
| "stockanalysis"
|
|
34
|
+
| "anonymousbounties"
|
|
35
|
+
| "investment";
|
|
36
|
+
|
|
12
37
|
export type ApiKeyAccessTypeEnum =
|
|
13
38
|
| "Custom"
|
|
14
39
|
| "Public Only"
|
|
@@ -4838,6 +4863,132 @@ export interface TimestampResponse {
|
|
|
4838
4863
|
timestamp: number;
|
|
4839
4864
|
}
|
|
4840
4865
|
|
|
4866
|
+
export interface ReportBase {
|
|
4867
|
+
type: ReportTypeEnum;
|
|
4868
|
+
target_id: UserId | null;
|
|
4869
|
+
reporter_id: UserId;
|
|
4870
|
+
faction_id: FactionId | null;
|
|
4871
|
+
timestamp: number;
|
|
4872
|
+
}
|
|
4873
|
+
|
|
4874
|
+
export interface ReportWarrantDetails {
|
|
4875
|
+
id: UserId;
|
|
4876
|
+
name: string;
|
|
4877
|
+
warrant: number;
|
|
4878
|
+
}
|
|
4879
|
+
|
|
4880
|
+
export interface ReportMostWanted {
|
|
4881
|
+
top: ReportWarrantDetails[];
|
|
4882
|
+
notable: ReportWarrantDetails[];
|
|
4883
|
+
}
|
|
4884
|
+
|
|
4885
|
+
export interface ReportMoney {
|
|
4886
|
+
money: number;
|
|
4887
|
+
}
|
|
4888
|
+
|
|
4889
|
+
export interface ReportInvestment {
|
|
4890
|
+
amount: number;
|
|
4891
|
+
until: number;
|
|
4892
|
+
}
|
|
4893
|
+
|
|
4894
|
+
export interface ReportTrueLevel {
|
|
4895
|
+
level: number;
|
|
4896
|
+
}
|
|
4897
|
+
|
|
4898
|
+
export interface ReportStats {
|
|
4899
|
+
strength: number | null;
|
|
4900
|
+
speed: number | null;
|
|
4901
|
+
dexterity: number | null;
|
|
4902
|
+
defense: number | null;
|
|
4903
|
+
total: number | null;
|
|
4904
|
+
}
|
|
4905
|
+
|
|
4906
|
+
export interface ReportHistoryFaction {
|
|
4907
|
+
id: FactionId;
|
|
4908
|
+
name: string;
|
|
4909
|
+
joined: string;
|
|
4910
|
+
left: string | null;
|
|
4911
|
+
}
|
|
4912
|
+
|
|
4913
|
+
export interface ReportHistoryCompany {
|
|
4914
|
+
id: CompanyId;
|
|
4915
|
+
name: string;
|
|
4916
|
+
joined: string;
|
|
4917
|
+
left: string | null;
|
|
4918
|
+
}
|
|
4919
|
+
|
|
4920
|
+
export interface ReportHistory {
|
|
4921
|
+
factions: ReportHistoryFaction[];
|
|
4922
|
+
companies: ReportHistoryCompany[];
|
|
4923
|
+
}
|
|
4924
|
+
|
|
4925
|
+
export interface ReportFriendOrFoeUser {
|
|
4926
|
+
id: UserId;
|
|
4927
|
+
name: string;
|
|
4928
|
+
}
|
|
4929
|
+
|
|
4930
|
+
export interface ReportFriendOrFoe {
|
|
4931
|
+
friends: ReportFriendOrFoeUser[];
|
|
4932
|
+
enemies: ReportFriendOrFoeUser[];
|
|
4933
|
+
}
|
|
4934
|
+
|
|
4935
|
+
export interface ReportCompanyFinancials {
|
|
4936
|
+
balance: number;
|
|
4937
|
+
employees: number;
|
|
4938
|
+
wages: {
|
|
4939
|
+
highest: number;
|
|
4940
|
+
lowest: number;
|
|
4941
|
+
average: number;
|
|
4942
|
+
};
|
|
4943
|
+
}
|
|
4944
|
+
|
|
4945
|
+
export interface ReportStockAnalysis {
|
|
4946
|
+
items: {
|
|
4947
|
+
country: CountryEnum;
|
|
4948
|
+
item: {
|
|
4949
|
+
id: ItemId;
|
|
4950
|
+
name: string;
|
|
4951
|
+
price: number;
|
|
4952
|
+
value: number;
|
|
4953
|
+
due: number | null;
|
|
4954
|
+
};
|
|
4955
|
+
trip_duration: number;
|
|
4956
|
+
hourly_profit: number;
|
|
4957
|
+
}[];
|
|
4958
|
+
}
|
|
4959
|
+
|
|
4960
|
+
export interface ReportAnonymousBounties {
|
|
4961
|
+
bounties: {
|
|
4962
|
+
text: string;
|
|
4963
|
+
bounty: number;
|
|
4964
|
+
user: {
|
|
4965
|
+
id: UserId;
|
|
4966
|
+
name: string;
|
|
4967
|
+
} | null;
|
|
4968
|
+
}[];
|
|
4969
|
+
}
|
|
4970
|
+
|
|
4971
|
+
export interface ReportReport {
|
|
4972
|
+
report:
|
|
4973
|
+
| ReportMoney
|
|
4974
|
+
| ReportStats
|
|
4975
|
+
| ReportMostWanted
|
|
4976
|
+
| ReportHistory
|
|
4977
|
+
| ReportFriendOrFoe
|
|
4978
|
+
| ReportCompanyFinancials
|
|
4979
|
+
| ReportTrueLevel
|
|
4980
|
+
| ReportStockAnalysis
|
|
4981
|
+
| ReportAnonymousBounties
|
|
4982
|
+
| ReportInvestment;
|
|
4983
|
+
}
|
|
4984
|
+
|
|
4985
|
+
export interface Report extends ReportBase, ReportReport {}
|
|
4986
|
+
|
|
4987
|
+
export interface ReportsResponse {
|
|
4988
|
+
reports: Report[];
|
|
4989
|
+
_metadata: RequestMetadataWithLinks;
|
|
4990
|
+
}
|
|
4991
|
+
|
|
4841
4992
|
export interface UserCurrentEducation {
|
|
4842
4993
|
id: EducationId;
|
|
4843
4994
|
until: number;
|
package/dist/openapi.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Torn API",
|
|
5
5
|
"description": "\n * The development of Torn's API v2 is still ongoing.\n * If selections remain unaltered, they will default to the API v1 version.\n * Unlike API v1, API v2 accepts both selections and IDs as path and query parameters.\n * If any discrepancies or errors are found, please submit a [bug report](https://www.torn.com/forums.php#/p=forums&f=19&b=0&a=0) on the Torn Forums.\n * In case you're using bots to check for changes on openapi.json file, make sure to specificy a custom user-agent header - CloudFlare sometimes prevents requests from default user-agents.",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.7.0"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -1226,6 +1226,69 @@
|
|
|
1226
1226
|
"x-stability": "Stable"
|
|
1227
1227
|
}
|
|
1228
1228
|
},
|
|
1229
|
+
"/user/reports": {
|
|
1230
|
+
"get": {
|
|
1231
|
+
"tags": [
|
|
1232
|
+
"User"
|
|
1233
|
+
],
|
|
1234
|
+
"summary": "Get your reports",
|
|
1235
|
+
"description": "Requires limited access key. <br>\n * The default limit is set to 25. However, the limit can be set to 100 for the 'stats' category.",
|
|
1236
|
+
"operationId": "6ba15a813fe1cc014564e9dba892e022",
|
|
1237
|
+
"parameters": [
|
|
1238
|
+
{
|
|
1239
|
+
"name": "cat",
|
|
1240
|
+
"in": "query",
|
|
1241
|
+
"description": "Used to filter reports with a specific type.",
|
|
1242
|
+
"required": false,
|
|
1243
|
+
"schema": {
|
|
1244
|
+
"$ref": "#/components/schemas/ReportTypeEnum"
|
|
1245
|
+
}
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
"name": "target",
|
|
1249
|
+
"in": "query",
|
|
1250
|
+
"description": "Get reports for a specific player by passing their player ID.",
|
|
1251
|
+
"required": false,
|
|
1252
|
+
"schema": {
|
|
1253
|
+
"$ref": "#/components/schemas/UserId"
|
|
1254
|
+
}
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"$ref": "#/components/parameters/ApiOffset"
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"$ref": "#/components/parameters/ApiKeyLimited"
|
|
1270
|
+
}
|
|
1271
|
+
],
|
|
1272
|
+
"responses": {
|
|
1273
|
+
"200": {
|
|
1274
|
+
"description": "Successful operation",
|
|
1275
|
+
"content": {
|
|
1276
|
+
"application/json": {
|
|
1277
|
+
"schema": {
|
|
1278
|
+
"$ref": "#/components/schemas/ReportsResponse"
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
"security": [
|
|
1285
|
+
{
|
|
1286
|
+
"api_key": []
|
|
1287
|
+
}
|
|
1288
|
+
],
|
|
1289
|
+
"x-stability": "Unstable"
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1229
1292
|
"/user/revives": {
|
|
1230
1293
|
"get": {
|
|
1231
1294
|
"tags": [
|
|
@@ -2787,6 +2850,69 @@
|
|
|
2787
2850
|
"x-stability": "Stable"
|
|
2788
2851
|
}
|
|
2789
2852
|
},
|
|
2853
|
+
"/faction/reports": {
|
|
2854
|
+
"get": {
|
|
2855
|
+
"tags": [
|
|
2856
|
+
"Faction"
|
|
2857
|
+
],
|
|
2858
|
+
"summary": "Get faction reports",
|
|
2859
|
+
"description": "Requires limited access key. <br>\n * The default limit is set to 25. However, the limit can be set to 100 for the 'stats' category.",
|
|
2860
|
+
"operationId": "e8bd37f10cc5e0e8d6694bb306f3a1e4",
|
|
2861
|
+
"parameters": [
|
|
2862
|
+
{
|
|
2863
|
+
"name": "cat",
|
|
2864
|
+
"in": "query",
|
|
2865
|
+
"description": "Used to filter reports with a specific type.",
|
|
2866
|
+
"required": false,
|
|
2867
|
+
"schema": {
|
|
2868
|
+
"$ref": "#/components/schemas/ReportTypeEnum"
|
|
2869
|
+
}
|
|
2870
|
+
},
|
|
2871
|
+
{
|
|
2872
|
+
"name": "target",
|
|
2873
|
+
"in": "query",
|
|
2874
|
+
"description": "Get reports for a specific player by passing their player ID.",
|
|
2875
|
+
"required": false,
|
|
2876
|
+
"schema": {
|
|
2877
|
+
"$ref": "#/components/schemas/UserId"
|
|
2878
|
+
}
|
|
2879
|
+
},
|
|
2880
|
+
{
|
|
2881
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
2882
|
+
},
|
|
2883
|
+
{
|
|
2884
|
+
"$ref": "#/components/parameters/ApiOffset"
|
|
2885
|
+
},
|
|
2886
|
+
{
|
|
2887
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
2888
|
+
},
|
|
2889
|
+
{
|
|
2890
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
2891
|
+
},
|
|
2892
|
+
{
|
|
2893
|
+
"$ref": "#/components/parameters/ApiKeyLimited"
|
|
2894
|
+
}
|
|
2895
|
+
],
|
|
2896
|
+
"responses": {
|
|
2897
|
+
"200": {
|
|
2898
|
+
"description": "Successful operation",
|
|
2899
|
+
"content": {
|
|
2900
|
+
"application/json": {
|
|
2901
|
+
"schema": {
|
|
2902
|
+
"$ref": "#/components/schemas/ReportsResponse"
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2907
|
+
},
|
|
2908
|
+
"security": [
|
|
2909
|
+
{
|
|
2910
|
+
"api_key": []
|
|
2911
|
+
}
|
|
2912
|
+
],
|
|
2913
|
+
"x-stability": "Unstable"
|
|
2914
|
+
}
|
|
2915
|
+
},
|
|
2790
2916
|
"/faction/revives": {
|
|
2791
2917
|
"get": {
|
|
2792
2918
|
"tags": [
|
|
@@ -3998,15 +4124,6 @@
|
|
|
3998
4124
|
{
|
|
3999
4125
|
"$ref": "#/components/parameters/ApiOffsetNoDefault"
|
|
4000
4126
|
},
|
|
4001
|
-
{
|
|
4002
|
-
"name": "cat",
|
|
4003
|
-
"in": "query",
|
|
4004
|
-
"description": "Selection category",
|
|
4005
|
-
"required": false,
|
|
4006
|
-
"schema": {
|
|
4007
|
-
"type": "string"
|
|
4008
|
-
}
|
|
4009
|
-
},
|
|
4010
4127
|
{
|
|
4011
4128
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
4012
4129
|
},
|
|
@@ -5983,6 +6100,37 @@
|
|
|
5983
6100
|
"E"
|
|
5984
6101
|
]
|
|
5985
6102
|
},
|
|
6103
|
+
"CountryEnum": {
|
|
6104
|
+
"type": "string",
|
|
6105
|
+
"enum": [
|
|
6106
|
+
"Mexico",
|
|
6107
|
+
"Hawaii",
|
|
6108
|
+
"South Africa",
|
|
6109
|
+
"Japan",
|
|
6110
|
+
"China",
|
|
6111
|
+
"Argentina",
|
|
6112
|
+
"Switzerland",
|
|
6113
|
+
"Canada",
|
|
6114
|
+
"United Kingdom",
|
|
6115
|
+
"UAE",
|
|
6116
|
+
"Cayman Islands"
|
|
6117
|
+
]
|
|
6118
|
+
},
|
|
6119
|
+
"ReportTypeEnum": {
|
|
6120
|
+
"type": "string",
|
|
6121
|
+
"enum": [
|
|
6122
|
+
"mostwanted",
|
|
6123
|
+
"money",
|
|
6124
|
+
"stats",
|
|
6125
|
+
"references",
|
|
6126
|
+
"friendorfoe",
|
|
6127
|
+
"companyfinancials",
|
|
6128
|
+
"truelevel",
|
|
6129
|
+
"stockanalysis",
|
|
6130
|
+
"anonymousbounties",
|
|
6131
|
+
"investment"
|
|
6132
|
+
]
|
|
6133
|
+
},
|
|
5986
6134
|
"ApiKeyAccessTypeEnum": {
|
|
5987
6135
|
"type": "string",
|
|
5988
6136
|
"enum": [
|
|
@@ -11450,79 +11598,624 @@
|
|
|
11450
11598
|
},
|
|
11451
11599
|
"type": "object"
|
|
11452
11600
|
},
|
|
11453
|
-
"
|
|
11601
|
+
"ReportBase": {
|
|
11602
|
+
"required": [
|
|
11603
|
+
"type",
|
|
11604
|
+
"target_id",
|
|
11605
|
+
"reporter_id",
|
|
11606
|
+
"faction_id",
|
|
11607
|
+
"timestamp"
|
|
11608
|
+
],
|
|
11609
|
+
"properties": {
|
|
11610
|
+
"type": {
|
|
11611
|
+
"$ref": "#/components/schemas/ReportTypeEnum"
|
|
11612
|
+
},
|
|
11613
|
+
"target_id": {
|
|
11614
|
+
"description": "The target ID if applicable.",
|
|
11615
|
+
"oneOf": [
|
|
11616
|
+
{
|
|
11617
|
+
"$ref": "#/components/schemas/UserId"
|
|
11618
|
+
},
|
|
11619
|
+
{
|
|
11620
|
+
"type": "null"
|
|
11621
|
+
}
|
|
11622
|
+
]
|
|
11623
|
+
},
|
|
11624
|
+
"reporter_id": {
|
|
11625
|
+
"$ref": "#/components/schemas/UserId"
|
|
11626
|
+
},
|
|
11627
|
+
"faction_id": {
|
|
11628
|
+
"description": "Reporter's faction ID if applicable.",
|
|
11629
|
+
"oneOf": [
|
|
11630
|
+
{
|
|
11631
|
+
"$ref": "#/components/schemas/FactionId"
|
|
11632
|
+
},
|
|
11633
|
+
{
|
|
11634
|
+
"type": "null"
|
|
11635
|
+
}
|
|
11636
|
+
]
|
|
11637
|
+
},
|
|
11638
|
+
"timestamp": {
|
|
11639
|
+
"type": "integer",
|
|
11640
|
+
"format": "int32"
|
|
11641
|
+
}
|
|
11642
|
+
},
|
|
11643
|
+
"type": "object"
|
|
11644
|
+
},
|
|
11645
|
+
"ReportWarrantDetails": {
|
|
11454
11646
|
"required": [
|
|
11455
11647
|
"id",
|
|
11456
|
-
"
|
|
11648
|
+
"name",
|
|
11649
|
+
"warrant"
|
|
11457
11650
|
],
|
|
11458
11651
|
"properties": {
|
|
11459
11652
|
"id": {
|
|
11460
|
-
"$ref": "#/components/schemas/
|
|
11653
|
+
"$ref": "#/components/schemas/UserId"
|
|
11461
11654
|
},
|
|
11462
|
-
"
|
|
11655
|
+
"name": {
|
|
11656
|
+
"type": "string"
|
|
11657
|
+
},
|
|
11658
|
+
"warrant": {
|
|
11463
11659
|
"type": "integer",
|
|
11464
11660
|
"format": "int32"
|
|
11465
11661
|
}
|
|
11466
11662
|
},
|
|
11467
11663
|
"type": "object"
|
|
11468
11664
|
},
|
|
11469
|
-
"
|
|
11665
|
+
"ReportMostWanted": {
|
|
11470
11666
|
"required": [
|
|
11471
|
-
"
|
|
11472
|
-
"
|
|
11667
|
+
"top",
|
|
11668
|
+
"notable"
|
|
11473
11669
|
],
|
|
11474
11670
|
"properties": {
|
|
11475
|
-
"
|
|
11671
|
+
"top": {
|
|
11476
11672
|
"type": "array",
|
|
11477
11673
|
"items": {
|
|
11478
|
-
"$ref": "#/components/schemas/
|
|
11674
|
+
"$ref": "#/components/schemas/ReportWarrantDetails"
|
|
11479
11675
|
}
|
|
11480
11676
|
},
|
|
11481
|
-
"
|
|
11482
|
-
"
|
|
11483
|
-
|
|
11484
|
-
|
|
11485
|
-
|
|
11486
|
-
{
|
|
11487
|
-
"type": "null"
|
|
11488
|
-
}
|
|
11489
|
-
]
|
|
11677
|
+
"notable": {
|
|
11678
|
+
"type": "array",
|
|
11679
|
+
"items": {
|
|
11680
|
+
"$ref": "#/components/schemas/ReportWarrantDetails"
|
|
11681
|
+
}
|
|
11490
11682
|
}
|
|
11491
11683
|
},
|
|
11492
11684
|
"type": "object"
|
|
11493
11685
|
},
|
|
11494
|
-
"
|
|
11686
|
+
"ReportMoney": {
|
|
11495
11687
|
"required": [
|
|
11496
|
-
"
|
|
11688
|
+
"money"
|
|
11497
11689
|
],
|
|
11498
11690
|
"properties": {
|
|
11499
|
-
"
|
|
11500
|
-
"
|
|
11691
|
+
"money": {
|
|
11692
|
+
"type": "integer",
|
|
11693
|
+
"format": "int32"
|
|
11501
11694
|
}
|
|
11502
11695
|
},
|
|
11503
11696
|
"type": "object"
|
|
11504
11697
|
},
|
|
11505
|
-
"
|
|
11698
|
+
"ReportInvestment": {
|
|
11506
11699
|
"required": [
|
|
11507
|
-
"
|
|
11508
|
-
"
|
|
11509
|
-
"dvd_copies"
|
|
11700
|
+
"amount",
|
|
11701
|
+
"until"
|
|
11510
11702
|
],
|
|
11511
11703
|
"properties": {
|
|
11512
|
-
"
|
|
11513
|
-
"
|
|
11514
|
-
"
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
11704
|
+
"amount": {
|
|
11705
|
+
"type": "integer",
|
|
11706
|
+
"format": "int64"
|
|
11707
|
+
},
|
|
11708
|
+
"until": {
|
|
11709
|
+
"type": "integer",
|
|
11710
|
+
"format": "int32"
|
|
11711
|
+
}
|
|
11712
|
+
},
|
|
11713
|
+
"type": "object"
|
|
11714
|
+
},
|
|
11715
|
+
"ReportTrueLevel": {
|
|
11716
|
+
"required": [
|
|
11717
|
+
"level"
|
|
11718
|
+
],
|
|
11719
|
+
"properties": {
|
|
11720
|
+
"level": {
|
|
11721
|
+
"type": "integer",
|
|
11722
|
+
"format": "int32"
|
|
11723
|
+
}
|
|
11724
|
+
},
|
|
11725
|
+
"type": "object"
|
|
11726
|
+
},
|
|
11727
|
+
"ReportStats": {
|
|
11728
|
+
"required": [
|
|
11729
|
+
"strength",
|
|
11730
|
+
"speed",
|
|
11731
|
+
"dexterity",
|
|
11732
|
+
"defense",
|
|
11733
|
+
"total"
|
|
11734
|
+
],
|
|
11735
|
+
"properties": {
|
|
11736
|
+
"strength": {
|
|
11737
|
+
"oneOf": [
|
|
11738
|
+
{
|
|
11522
11739
|
"type": "integer",
|
|
11523
|
-
"format": "
|
|
11740
|
+
"format": "int64"
|
|
11524
11741
|
},
|
|
11525
|
-
|
|
11742
|
+
{
|
|
11743
|
+
"type": "null"
|
|
11744
|
+
}
|
|
11745
|
+
]
|
|
11746
|
+
},
|
|
11747
|
+
"speed": {
|
|
11748
|
+
"oneOf": [
|
|
11749
|
+
{
|
|
11750
|
+
"type": "integer",
|
|
11751
|
+
"format": "int64"
|
|
11752
|
+
},
|
|
11753
|
+
{
|
|
11754
|
+
"type": "null"
|
|
11755
|
+
}
|
|
11756
|
+
]
|
|
11757
|
+
},
|
|
11758
|
+
"dexterity": {
|
|
11759
|
+
"oneOf": [
|
|
11760
|
+
{
|
|
11761
|
+
"type": "integer",
|
|
11762
|
+
"format": "int64"
|
|
11763
|
+
},
|
|
11764
|
+
{
|
|
11765
|
+
"type": "null"
|
|
11766
|
+
}
|
|
11767
|
+
]
|
|
11768
|
+
},
|
|
11769
|
+
"defense": {
|
|
11770
|
+
"oneOf": [
|
|
11771
|
+
{
|
|
11772
|
+
"type": "integer",
|
|
11773
|
+
"format": "int64"
|
|
11774
|
+
},
|
|
11775
|
+
{
|
|
11776
|
+
"type": "null"
|
|
11777
|
+
}
|
|
11778
|
+
]
|
|
11779
|
+
},
|
|
11780
|
+
"total": {
|
|
11781
|
+
"oneOf": [
|
|
11782
|
+
{
|
|
11783
|
+
"type": "integer",
|
|
11784
|
+
"format": "int64"
|
|
11785
|
+
},
|
|
11786
|
+
{
|
|
11787
|
+
"type": "null"
|
|
11788
|
+
}
|
|
11789
|
+
]
|
|
11790
|
+
}
|
|
11791
|
+
},
|
|
11792
|
+
"type": "object"
|
|
11793
|
+
},
|
|
11794
|
+
"ReportHistoryFaction": {
|
|
11795
|
+
"required": [
|
|
11796
|
+
"id",
|
|
11797
|
+
"name",
|
|
11798
|
+
"joined",
|
|
11799
|
+
"left"
|
|
11800
|
+
],
|
|
11801
|
+
"properties": {
|
|
11802
|
+
"id": {
|
|
11803
|
+
"$ref": "#/components/schemas/FactionId"
|
|
11804
|
+
},
|
|
11805
|
+
"name": {
|
|
11806
|
+
"type": "string"
|
|
11807
|
+
},
|
|
11808
|
+
"joined": {
|
|
11809
|
+
"type": "string",
|
|
11810
|
+
"format": "date"
|
|
11811
|
+
},
|
|
11812
|
+
"left": {
|
|
11813
|
+
"oneOf": [
|
|
11814
|
+
{
|
|
11815
|
+
"type": "string",
|
|
11816
|
+
"format": "date"
|
|
11817
|
+
},
|
|
11818
|
+
{
|
|
11819
|
+
"type": "null"
|
|
11820
|
+
}
|
|
11821
|
+
]
|
|
11822
|
+
}
|
|
11823
|
+
},
|
|
11824
|
+
"type": "object"
|
|
11825
|
+
},
|
|
11826
|
+
"ReportHistoryCompany": {
|
|
11827
|
+
"required": [
|
|
11828
|
+
"id",
|
|
11829
|
+
"name",
|
|
11830
|
+
"joined",
|
|
11831
|
+
"left"
|
|
11832
|
+
],
|
|
11833
|
+
"properties": {
|
|
11834
|
+
"id": {
|
|
11835
|
+
"$ref": "#/components/schemas/CompanyId"
|
|
11836
|
+
},
|
|
11837
|
+
"name": {
|
|
11838
|
+
"type": "string"
|
|
11839
|
+
},
|
|
11840
|
+
"joined": {
|
|
11841
|
+
"type": "string",
|
|
11842
|
+
"format": "date"
|
|
11843
|
+
},
|
|
11844
|
+
"left": {
|
|
11845
|
+
"oneOf": [
|
|
11846
|
+
{
|
|
11847
|
+
"type": "string",
|
|
11848
|
+
"format": "date"
|
|
11849
|
+
},
|
|
11850
|
+
{
|
|
11851
|
+
"type": "null"
|
|
11852
|
+
}
|
|
11853
|
+
]
|
|
11854
|
+
}
|
|
11855
|
+
},
|
|
11856
|
+
"type": "object"
|
|
11857
|
+
},
|
|
11858
|
+
"ReportHistory": {
|
|
11859
|
+
"required": [
|
|
11860
|
+
"factions",
|
|
11861
|
+
"companies"
|
|
11862
|
+
],
|
|
11863
|
+
"properties": {
|
|
11864
|
+
"factions": {
|
|
11865
|
+
"type": "array",
|
|
11866
|
+
"items": {
|
|
11867
|
+
"$ref": "#/components/schemas/ReportHistoryFaction"
|
|
11868
|
+
}
|
|
11869
|
+
},
|
|
11870
|
+
"companies": {
|
|
11871
|
+
"type": "array",
|
|
11872
|
+
"items": {
|
|
11873
|
+
"$ref": "#/components/schemas/ReportHistoryCompany"
|
|
11874
|
+
}
|
|
11875
|
+
}
|
|
11876
|
+
},
|
|
11877
|
+
"type": "object"
|
|
11878
|
+
},
|
|
11879
|
+
"ReportFriendOrFoeUser": {
|
|
11880
|
+
"required": [
|
|
11881
|
+
"id",
|
|
11882
|
+
"name"
|
|
11883
|
+
],
|
|
11884
|
+
"properties": {
|
|
11885
|
+
"id": {
|
|
11886
|
+
"$ref": "#/components/schemas/UserId"
|
|
11887
|
+
},
|
|
11888
|
+
"name": {
|
|
11889
|
+
"type": "string"
|
|
11890
|
+
}
|
|
11891
|
+
},
|
|
11892
|
+
"type": "object"
|
|
11893
|
+
},
|
|
11894
|
+
"ReportFriendOrFoe": {
|
|
11895
|
+
"required": [
|
|
11896
|
+
"friends",
|
|
11897
|
+
"enemies"
|
|
11898
|
+
],
|
|
11899
|
+
"properties": {
|
|
11900
|
+
"friends": {
|
|
11901
|
+
"type": "array",
|
|
11902
|
+
"items": {
|
|
11903
|
+
"$ref": "#/components/schemas/ReportFriendOrFoeUser"
|
|
11904
|
+
}
|
|
11905
|
+
},
|
|
11906
|
+
"enemies": {
|
|
11907
|
+
"type": "array",
|
|
11908
|
+
"items": {
|
|
11909
|
+
"$ref": "#/components/schemas/ReportFriendOrFoeUser"
|
|
11910
|
+
}
|
|
11911
|
+
}
|
|
11912
|
+
},
|
|
11913
|
+
"type": "object"
|
|
11914
|
+
},
|
|
11915
|
+
"ReportCompanyFinancials": {
|
|
11916
|
+
"required": [
|
|
11917
|
+
"balance",
|
|
11918
|
+
"employees",
|
|
11919
|
+
"wages"
|
|
11920
|
+
],
|
|
11921
|
+
"properties": {
|
|
11922
|
+
"balance": {
|
|
11923
|
+
"type": "integer",
|
|
11924
|
+
"format": "int64"
|
|
11925
|
+
},
|
|
11926
|
+
"employees": {
|
|
11927
|
+
"type": "integer",
|
|
11928
|
+
"format": "int32"
|
|
11929
|
+
},
|
|
11930
|
+
"wages": {
|
|
11931
|
+
"required": [
|
|
11932
|
+
"highest",
|
|
11933
|
+
"lowest",
|
|
11934
|
+
"average"
|
|
11935
|
+
],
|
|
11936
|
+
"properties": {
|
|
11937
|
+
"highest": {
|
|
11938
|
+
"type": "integer",
|
|
11939
|
+
"format": "int32"
|
|
11940
|
+
},
|
|
11941
|
+
"lowest": {
|
|
11942
|
+
"type": "integer",
|
|
11943
|
+
"format": "int32"
|
|
11944
|
+
},
|
|
11945
|
+
"average": {
|
|
11946
|
+
"type": "integer",
|
|
11947
|
+
"format": "int32"
|
|
11948
|
+
}
|
|
11949
|
+
},
|
|
11950
|
+
"type": "object"
|
|
11951
|
+
}
|
|
11952
|
+
},
|
|
11953
|
+
"type": "object"
|
|
11954
|
+
},
|
|
11955
|
+
"ReportStockAnalysis": {
|
|
11956
|
+
"required": [
|
|
11957
|
+
"items"
|
|
11958
|
+
],
|
|
11959
|
+
"properties": {
|
|
11960
|
+
"items": {
|
|
11961
|
+
"type": "array",
|
|
11962
|
+
"items": {
|
|
11963
|
+
"required": [
|
|
11964
|
+
"country",
|
|
11965
|
+
"item",
|
|
11966
|
+
"trip_duration",
|
|
11967
|
+
"hourly_profit"
|
|
11968
|
+
],
|
|
11969
|
+
"properties": {
|
|
11970
|
+
"country": {
|
|
11971
|
+
"$ref": "#/components/schemas/CountryEnum"
|
|
11972
|
+
},
|
|
11973
|
+
"item": {
|
|
11974
|
+
"required": [
|
|
11975
|
+
"id",
|
|
11976
|
+
"name",
|
|
11977
|
+
"stock",
|
|
11978
|
+
"price",
|
|
11979
|
+
"value",
|
|
11980
|
+
"due"
|
|
11981
|
+
],
|
|
11982
|
+
"properties": {
|
|
11983
|
+
"id": {
|
|
11984
|
+
"$ref": "#/components/schemas/ItemId"
|
|
11985
|
+
},
|
|
11986
|
+
"name": {
|
|
11987
|
+
"type": "string"
|
|
11988
|
+
},
|
|
11989
|
+
"price": {
|
|
11990
|
+
"type": "integer",
|
|
11991
|
+
"format": "int32"
|
|
11992
|
+
},
|
|
11993
|
+
"value": {
|
|
11994
|
+
"type": "integer",
|
|
11995
|
+
"format": "int32"
|
|
11996
|
+
},
|
|
11997
|
+
"due": {
|
|
11998
|
+
"oneOf": [
|
|
11999
|
+
{
|
|
12000
|
+
"type": "integer",
|
|
12001
|
+
"format": "int32"
|
|
12002
|
+
},
|
|
12003
|
+
{
|
|
12004
|
+
"type": "null"
|
|
12005
|
+
}
|
|
12006
|
+
]
|
|
12007
|
+
}
|
|
12008
|
+
},
|
|
12009
|
+
"type": "object"
|
|
12010
|
+
},
|
|
12011
|
+
"trip_duration": {
|
|
12012
|
+
"type": "integer",
|
|
12013
|
+
"format": "int32"
|
|
12014
|
+
},
|
|
12015
|
+
"hourly_profit": {
|
|
12016
|
+
"type": "integer",
|
|
12017
|
+
"format": "int32"
|
|
12018
|
+
}
|
|
12019
|
+
},
|
|
12020
|
+
"type": "object"
|
|
12021
|
+
}
|
|
12022
|
+
}
|
|
12023
|
+
},
|
|
12024
|
+
"type": "object"
|
|
12025
|
+
},
|
|
12026
|
+
"ReportAnonymousBounties": {
|
|
12027
|
+
"required": [
|
|
12028
|
+
"bounties"
|
|
12029
|
+
],
|
|
12030
|
+
"properties": {
|
|
12031
|
+
"bounties": {
|
|
12032
|
+
"type": "array",
|
|
12033
|
+
"items": {
|
|
12034
|
+
"required": [
|
|
12035
|
+
"bounty",
|
|
12036
|
+
"user",
|
|
12037
|
+
"text"
|
|
12038
|
+
],
|
|
12039
|
+
"properties": {
|
|
12040
|
+
"text": {
|
|
12041
|
+
"type": "string"
|
|
12042
|
+
},
|
|
12043
|
+
"bounty": {
|
|
12044
|
+
"type": "integer",
|
|
12045
|
+
"format": "int64"
|
|
12046
|
+
},
|
|
12047
|
+
"user": {
|
|
12048
|
+
"oneOf": [
|
|
12049
|
+
{
|
|
12050
|
+
"required": [
|
|
12051
|
+
"id",
|
|
12052
|
+
"name"
|
|
12053
|
+
],
|
|
12054
|
+
"properties": {
|
|
12055
|
+
"id": {
|
|
12056
|
+
"$ref": "#/components/schemas/UserId"
|
|
12057
|
+
},
|
|
12058
|
+
"name": {
|
|
12059
|
+
"type": "string"
|
|
12060
|
+
}
|
|
12061
|
+
},
|
|
12062
|
+
"type": "object"
|
|
12063
|
+
},
|
|
12064
|
+
{
|
|
12065
|
+
"type": "null"
|
|
12066
|
+
}
|
|
12067
|
+
]
|
|
12068
|
+
}
|
|
12069
|
+
},
|
|
12070
|
+
"type": "object"
|
|
12071
|
+
}
|
|
12072
|
+
}
|
|
12073
|
+
},
|
|
12074
|
+
"type": "object"
|
|
12075
|
+
},
|
|
12076
|
+
"ReportReport": {
|
|
12077
|
+
"required": [
|
|
12078
|
+
"report"
|
|
12079
|
+
],
|
|
12080
|
+
"properties": {
|
|
12081
|
+
"report": {
|
|
12082
|
+
"oneOf": [
|
|
12083
|
+
{
|
|
12084
|
+
"$ref": "#/components/schemas/ReportMoney"
|
|
12085
|
+
},
|
|
12086
|
+
{
|
|
12087
|
+
"$ref": "#/components/schemas/ReportStats"
|
|
12088
|
+
},
|
|
12089
|
+
{
|
|
12090
|
+
"$ref": "#/components/schemas/ReportMostWanted"
|
|
12091
|
+
},
|
|
12092
|
+
{
|
|
12093
|
+
"$ref": "#/components/schemas/ReportHistory"
|
|
12094
|
+
},
|
|
12095
|
+
{
|
|
12096
|
+
"$ref": "#/components/schemas/ReportFriendOrFoe"
|
|
12097
|
+
},
|
|
12098
|
+
{
|
|
12099
|
+
"$ref": "#/components/schemas/ReportCompanyFinancials"
|
|
12100
|
+
},
|
|
12101
|
+
{
|
|
12102
|
+
"$ref": "#/components/schemas/ReportTrueLevel"
|
|
12103
|
+
},
|
|
12104
|
+
{
|
|
12105
|
+
"$ref": "#/components/schemas/ReportStockAnalysis"
|
|
12106
|
+
},
|
|
12107
|
+
{
|
|
12108
|
+
"$ref": "#/components/schemas/ReportAnonymousBounties"
|
|
12109
|
+
},
|
|
12110
|
+
{
|
|
12111
|
+
"$ref": "#/components/schemas/ReportInvestment"
|
|
12112
|
+
}
|
|
12113
|
+
]
|
|
12114
|
+
}
|
|
12115
|
+
},
|
|
12116
|
+
"type": "object"
|
|
12117
|
+
},
|
|
12118
|
+
"Report": {
|
|
12119
|
+
"allOf": [
|
|
12120
|
+
{
|
|
12121
|
+
"$ref": "#/components/schemas/ReportBase"
|
|
12122
|
+
},
|
|
12123
|
+
{
|
|
12124
|
+
"$ref": "#/components/schemas/ReportReport"
|
|
12125
|
+
}
|
|
12126
|
+
]
|
|
12127
|
+
},
|
|
12128
|
+
"ReportsResponse": {
|
|
12129
|
+
"required": [
|
|
12130
|
+
"reports",
|
|
12131
|
+
"_metadata"
|
|
12132
|
+
],
|
|
12133
|
+
"properties": {
|
|
12134
|
+
"reports": {
|
|
12135
|
+
"type": "array",
|
|
12136
|
+
"items": {
|
|
12137
|
+
"$ref": "#/components/schemas/Report"
|
|
12138
|
+
}
|
|
12139
|
+
},
|
|
12140
|
+
"_metadata": {
|
|
12141
|
+
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
12142
|
+
}
|
|
12143
|
+
},
|
|
12144
|
+
"type": "object"
|
|
12145
|
+
},
|
|
12146
|
+
"UserCurrentEducation": {
|
|
12147
|
+
"required": [
|
|
12148
|
+
"id",
|
|
12149
|
+
"until"
|
|
12150
|
+
],
|
|
12151
|
+
"properties": {
|
|
12152
|
+
"id": {
|
|
12153
|
+
"$ref": "#/components/schemas/EducationId"
|
|
12154
|
+
},
|
|
12155
|
+
"until": {
|
|
12156
|
+
"type": "integer",
|
|
12157
|
+
"format": "int32"
|
|
12158
|
+
}
|
|
12159
|
+
},
|
|
12160
|
+
"type": "object"
|
|
12161
|
+
},
|
|
12162
|
+
"UserEducation": {
|
|
12163
|
+
"required": [
|
|
12164
|
+
"complete",
|
|
12165
|
+
"current"
|
|
12166
|
+
],
|
|
12167
|
+
"properties": {
|
|
12168
|
+
"complete": {
|
|
12169
|
+
"type": "array",
|
|
12170
|
+
"items": {
|
|
12171
|
+
"$ref": "#/components/schemas/EducationId"
|
|
12172
|
+
}
|
|
12173
|
+
},
|
|
12174
|
+
"current": {
|
|
12175
|
+
"oneOf": [
|
|
12176
|
+
{
|
|
12177
|
+
"$ref": "#/components/schemas/UserCurrentEducation"
|
|
12178
|
+
},
|
|
12179
|
+
{
|
|
12180
|
+
"type": "null"
|
|
12181
|
+
}
|
|
12182
|
+
]
|
|
12183
|
+
}
|
|
12184
|
+
},
|
|
12185
|
+
"type": "object"
|
|
12186
|
+
},
|
|
12187
|
+
"UserEducationResponse": {
|
|
12188
|
+
"required": [
|
|
12189
|
+
"education"
|
|
12190
|
+
],
|
|
12191
|
+
"properties": {
|
|
12192
|
+
"education": {
|
|
12193
|
+
"$ref": "#/components/schemas/UserEducation"
|
|
12194
|
+
}
|
|
12195
|
+
},
|
|
12196
|
+
"type": "object"
|
|
12197
|
+
},
|
|
12198
|
+
"UserCrimeDetailsBootlegging": {
|
|
12199
|
+
"required": [
|
|
12200
|
+
"online_store",
|
|
12201
|
+
"dvd_sales",
|
|
12202
|
+
"dvd_copies"
|
|
12203
|
+
],
|
|
12204
|
+
"properties": {
|
|
12205
|
+
"online_store": {
|
|
12206
|
+
"description": "Online store statistics.",
|
|
12207
|
+
"required": [
|
|
12208
|
+
"earnings",
|
|
12209
|
+
"visits",
|
|
12210
|
+
"customers",
|
|
12211
|
+
"sales"
|
|
12212
|
+
],
|
|
12213
|
+
"properties": {
|
|
12214
|
+
"earnings": {
|
|
12215
|
+
"type": "integer",
|
|
12216
|
+
"format": "int32"
|
|
12217
|
+
},
|
|
12218
|
+
"visits": {
|
|
11526
12219
|
"type": "integer",
|
|
11527
12220
|
"format": "int32"
|
|
11528
12221
|
},
|
|
@@ -12412,7 +13105,7 @@
|
|
|
12412
13105
|
],
|
|
12413
13106
|
"properties": {
|
|
12414
13107
|
"value": {
|
|
12415
|
-
"type": "
|
|
13108
|
+
"type": "number",
|
|
12416
13109
|
"format": "float"
|
|
12417
13110
|
},
|
|
12418
13111
|
"rank": {
|
|
@@ -12434,7 +13127,7 @@
|
|
|
12434
13127
|
"rank": {
|
|
12435
13128
|
"oneOf": [
|
|
12436
13129
|
{
|
|
12437
|
-
"type": "
|
|
13130
|
+
"type": "integer",
|
|
12438
13131
|
"format": "int32"
|
|
12439
13132
|
},
|
|
12440
13133
|
{
|
|
@@ -21603,6 +22296,16 @@
|
|
|
21603
22296
|
"minimum": 1
|
|
21604
22297
|
}
|
|
21605
22298
|
},
|
|
22299
|
+
"ApiTarget": {
|
|
22300
|
+
"name": "target",
|
|
22301
|
+
"in": "query",
|
|
22302
|
+
"required": false,
|
|
22303
|
+
"schema": {
|
|
22304
|
+
"type": "integer",
|
|
22305
|
+
"format": "int32",
|
|
22306
|
+
"minimum": 1
|
|
22307
|
+
}
|
|
22308
|
+
},
|
|
21606
22309
|
"ApiSort": {
|
|
21607
22310
|
"name": "sort",
|
|
21608
22311
|
"in": "query",
|