tornapi-typescript 6.9.0 → 6.10.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/dist/index.d.ts +52 -11
- package/dist/index.ts +62 -11
- package/dist/openapi.json +278 -27
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -115,6 +115,7 @@ export type AttackId = number;
|
|
|
115
115
|
export type AttackCode = string;
|
|
116
116
|
export type ForumId = number;
|
|
117
117
|
export type ForumThreadId = number;
|
|
118
|
+
export type GymId = number;
|
|
118
119
|
export type ForumPostId = number;
|
|
119
120
|
export interface RequestLinks {
|
|
120
121
|
next: string | null;
|
|
@@ -130,6 +131,11 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
130
131
|
links: RequestLinks;
|
|
131
132
|
total?: number;
|
|
132
133
|
}
|
|
134
|
+
export interface RequestMetadataWithLinksAndNanostamp {
|
|
135
|
+
links: RequestLinks;
|
|
136
|
+
/** Use to bypass system limitation when 100 or more logs were inserted within the same second. */
|
|
137
|
+
nanostamp?: string;
|
|
138
|
+
}
|
|
133
139
|
/**
|
|
134
140
|
* This represents the type of the activity. Values range from 1 to 8 where:
|
|
135
141
|
* * 1 = 'X posted on a thread',
|
|
@@ -141,6 +147,7 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
141
147
|
* * 7 = 'X quoted your post'.
|
|
142
148
|
*/
|
|
143
149
|
export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
150
|
+
export type GymClassEnum = "Basic" | "Lightweight" | "Middleweight" | "Heavyweight" | "Specialist";
|
|
144
151
|
export type UserGenderEnum = "Male" | "Female" | "Enby";
|
|
145
152
|
export type CompanyStaffRoomSizeEnum = "No staff room" | "Small staff room" | "Standard staff room" | "Large staff room" | "Very large staff room" | "Huge staff room" | "Colossal staff room";
|
|
146
153
|
export type CompanyStorageSizeEnum = "Small room" | "Standard room" | "Large room" | "Huge room" | "Warehouse" | "Large warehouse" | "Huge warehouse";
|
|
@@ -509,6 +516,12 @@ export interface ErrorFileDoesNotExist {
|
|
|
509
516
|
error: string;
|
|
510
517
|
}
|
|
511
518
|
export type ApiError = ErrorUnknown | ErrorKeyEmpty | ErrorIncorrectKey | ErrorWrongType | ErrorWrongFields | ErrorTooManyRequests | ErrorIncorrectId | ErrorIncorrectIdEntityRelation | ErrorIpBlocked | ErrorApiDisabled | ErrorKeyOwnerInFederalJail | ErrorKeyChangeCooldown | ErrorKeyReadError | ErrorKeyTemporaryDisabled | ErrorDailyReadLimitReached | ErrorLogUnavailable | ErrorAccessLevelTooLow | ErrorBackendError | ErrorApiKeyPaused | ErrorMustMigrateToCrimesV2 | ErrorRaceNotFinished | ErrorIncorrectCategory | ErrorOnlyAvailableInApiV1 | ErrorOnlyAvailableInApiV2 | ErrorClosedTemporarily | ErrorInvalidStatRequested | ErrorOnlyCategoryOrStatsAllowed | ErrorMustMigrateToOrganizedCrimesV2 | ErrorIncorrectLogId | ErrorCategorySelectionUnavailableForInteractionLogs | ErrorFileDoesNotExist;
|
|
519
|
+
export interface UserGymResponse {
|
|
520
|
+
gym: {
|
|
521
|
+
id: GymId;
|
|
522
|
+
name: string;
|
|
523
|
+
};
|
|
524
|
+
}
|
|
512
525
|
export interface UserSearch {
|
|
513
526
|
id: UserId;
|
|
514
527
|
name: string;
|
|
@@ -694,15 +707,16 @@ export interface UserStocksResponse {
|
|
|
694
707
|
export interface UserOrganizedCrimesResponse {
|
|
695
708
|
organizedcrimes: FactionCrime[];
|
|
696
709
|
}
|
|
710
|
+
export interface UserEquipmentAmmo {
|
|
711
|
+
id: AmmoId;
|
|
712
|
+
name: string;
|
|
713
|
+
quantity: number;
|
|
714
|
+
type: TornItemAmmoTypeEnum;
|
|
715
|
+
}
|
|
697
716
|
export type UserEquipment = TornItemDetails & {
|
|
698
717
|
slot: number;
|
|
699
718
|
mods: UserEquipmentItemMod[];
|
|
700
|
-
ammo:
|
|
701
|
-
id: AmmoId;
|
|
702
|
-
name: string;
|
|
703
|
-
quantity: number;
|
|
704
|
-
type: TornItemAmmoTypeEnum;
|
|
705
|
-
};
|
|
719
|
+
ammo: UserEquipmentAmmo | null;
|
|
706
720
|
};
|
|
707
721
|
export interface UserEquipmentItemMod {
|
|
708
722
|
id: ItemModId;
|
|
@@ -954,6 +968,7 @@ export interface UserProfileResponse {
|
|
|
954
968
|
signed_up: number;
|
|
955
969
|
faction_id: FactionId | null;
|
|
956
970
|
honor_id: HonorId;
|
|
971
|
+
revive_setting: ReviveSetting;
|
|
957
972
|
property: {
|
|
958
973
|
id: PropertyId;
|
|
959
974
|
name: string;
|
|
@@ -1092,7 +1107,7 @@ export interface UserLog {
|
|
|
1092
1107
|
}
|
|
1093
1108
|
export interface UserLogsResponse {
|
|
1094
1109
|
log: UserLog[];
|
|
1095
|
-
_metadata:
|
|
1110
|
+
_metadata: RequestMetadataWithLinksAndNanostamp;
|
|
1096
1111
|
}
|
|
1097
1112
|
export interface BasicUser {
|
|
1098
1113
|
id: UserId;
|
|
@@ -1327,7 +1342,7 @@ export interface UserRacesResponse {
|
|
|
1327
1342
|
}
|
|
1328
1343
|
export interface UserRaceCarDetails extends RaceCar {
|
|
1329
1344
|
id: RaceCarId;
|
|
1330
|
-
|
|
1345
|
+
car_name?: string | null;
|
|
1331
1346
|
worth: number;
|
|
1332
1347
|
points_spent: number;
|
|
1333
1348
|
races_entered: number;
|
|
@@ -1460,7 +1475,7 @@ export interface UserListResponse {
|
|
|
1460
1475
|
list: UserList[];
|
|
1461
1476
|
_metadata: RequestMetadataWithLinks;
|
|
1462
1477
|
}
|
|
1463
|
-
/** The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','
|
|
1478
|
+
/** The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','networth'. */
|
|
1464
1479
|
export type UserSelectionName = string;
|
|
1465
1480
|
export interface UserLookupResponse {
|
|
1466
1481
|
selections: UserSelectionName[];
|
|
@@ -3394,6 +3409,24 @@ export type PropertySelectionName = string;
|
|
|
3394
3409
|
export interface PropertyLookupResponse {
|
|
3395
3410
|
selections: PropertySelectionName[];
|
|
3396
3411
|
}
|
|
3412
|
+
export interface TornGymModifiers {
|
|
3413
|
+
strength: number;
|
|
3414
|
+
speed: number;
|
|
3415
|
+
defense: number;
|
|
3416
|
+
dexterity: number;
|
|
3417
|
+
}
|
|
3418
|
+
export interface TornGym {
|
|
3419
|
+
id: GymId;
|
|
3420
|
+
name: string;
|
|
3421
|
+
class: GymClassEnum;
|
|
3422
|
+
energy_cost: number;
|
|
3423
|
+
cost: number;
|
|
3424
|
+
modifiers: TornGymModifiers;
|
|
3425
|
+
note: string | null;
|
|
3426
|
+
}
|
|
3427
|
+
export interface TornGymsResponse {
|
|
3428
|
+
gyms: TornGym[];
|
|
3429
|
+
}
|
|
3397
3430
|
export interface TornSearchForCash {
|
|
3398
3431
|
id: TornSubCrimeId;
|
|
3399
3432
|
title: string;
|
|
@@ -3939,7 +3972,7 @@ export interface TornFactionTreeResponse {
|
|
|
3939
3972
|
factionTree: TornFactionTree[];
|
|
3940
3973
|
}
|
|
3941
3974
|
/**
|
|
3942
|
-
* The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','
|
|
3975
|
+
* The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','stats'.
|
|
3943
3976
|
* * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.
|
|
3944
3977
|
*/
|
|
3945
3978
|
export type TornSelectionName = string;
|
|
@@ -7303,6 +7336,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
7303
7336
|
response: UserForumThreadsResponse;
|
|
7304
7337
|
params: "limit" | "sort" | "from" | "to" | "timestamp";
|
|
7305
7338
|
};
|
|
7339
|
+
gym: {
|
|
7340
|
+
response: UserGymResponse;
|
|
7341
|
+
params: "timestamp";
|
|
7342
|
+
};
|
|
7306
7343
|
hof: {
|
|
7307
7344
|
response: UserHofResponse;
|
|
7308
7345
|
params: "timestamp";
|
|
@@ -7345,7 +7382,7 @@ export interface UserV2 extends BaseSchema {
|
|
|
7345
7382
|
};
|
|
7346
7383
|
log: {
|
|
7347
7384
|
response: UserLogsResponse;
|
|
7348
|
-
params: "log" | "cat" | "target" | "limit" | "to" | "from" | "timestamp";
|
|
7385
|
+
params: "log" | "cat" | "target" | "limit" | "to" | "from" | "timestamp" | "nanostamp";
|
|
7349
7386
|
};
|
|
7350
7387
|
medals: {
|
|
7351
7388
|
response: UserMedalsResponse;
|
|
@@ -7867,6 +7904,10 @@ export interface TornV2 extends BaseSchema {
|
|
|
7867
7904
|
response: TornFactionTreeResponse;
|
|
7868
7905
|
params: "timestamp";
|
|
7869
7906
|
};
|
|
7907
|
+
gyms: {
|
|
7908
|
+
response: TornGymsResponse;
|
|
7909
|
+
params: "timestamp";
|
|
7910
|
+
};
|
|
7870
7911
|
honors: {
|
|
7871
7912
|
response: TornHonorsResponse;
|
|
7872
7913
|
params: "limit" | "offset" | "sort" | "timestamp";
|
package/dist/index.ts
CHANGED
|
@@ -4799,6 +4799,8 @@ export type ForumId = number;
|
|
|
4799
4799
|
|
|
4800
4800
|
export type ForumThreadId = number;
|
|
4801
4801
|
|
|
4802
|
+
export type GymId = number;
|
|
4803
|
+
|
|
4802
4804
|
export type ForumPostId = number;
|
|
4803
4805
|
|
|
4804
4806
|
export interface RequestLinks {
|
|
@@ -4819,6 +4821,12 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
4819
4821
|
total?: number;
|
|
4820
4822
|
}
|
|
4821
4823
|
|
|
4824
|
+
export interface RequestMetadataWithLinksAndNanostamp {
|
|
4825
|
+
links: RequestLinks;
|
|
4826
|
+
/** Use to bypass system limitation when 100 or more logs were inserted within the same second. */
|
|
4827
|
+
nanostamp?: string;
|
|
4828
|
+
}
|
|
4829
|
+
|
|
4822
4830
|
/**
|
|
4823
4831
|
* This represents the type of the activity. Values range from 1 to 8 where:
|
|
4824
4832
|
* * 1 = 'X posted on a thread',
|
|
@@ -4831,6 +4839,9 @@ export interface RequestMetadataWithLinksAndTotal {
|
|
|
4831
4839
|
*/
|
|
4832
4840
|
export type ForumFeedTypeEnum = 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
4833
4841
|
|
|
4842
|
+
export type GymClassEnum =
|
|
4843
|
+
"Basic" | "Lightweight" | "Middleweight" | "Heavyweight" | "Specialist";
|
|
4844
|
+
|
|
4834
4845
|
export type UserGenderEnum = "Male" | "Female" | "Enby";
|
|
4835
4846
|
|
|
4836
4847
|
export type CompanyStaffRoomSizeEnum =
|
|
@@ -5534,6 +5545,13 @@ export type ApiError =
|
|
|
5534
5545
|
| ErrorCategorySelectionUnavailableForInteractionLogs
|
|
5535
5546
|
| ErrorFileDoesNotExist;
|
|
5536
5547
|
|
|
5548
|
+
export interface UserGymResponse {
|
|
5549
|
+
gym: {
|
|
5550
|
+
id: GymId;
|
|
5551
|
+
name: string;
|
|
5552
|
+
};
|
|
5553
|
+
}
|
|
5554
|
+
|
|
5537
5555
|
export interface UserSearch {
|
|
5538
5556
|
id: UserId;
|
|
5539
5557
|
name: string;
|
|
@@ -5751,15 +5769,17 @@ export interface UserOrganizedCrimesResponse {
|
|
|
5751
5769
|
organizedcrimes: FactionCrime[];
|
|
5752
5770
|
}
|
|
5753
5771
|
|
|
5772
|
+
export interface UserEquipmentAmmo {
|
|
5773
|
+
id: AmmoId;
|
|
5774
|
+
name: string;
|
|
5775
|
+
quantity: number;
|
|
5776
|
+
type: TornItemAmmoTypeEnum;
|
|
5777
|
+
}
|
|
5778
|
+
|
|
5754
5779
|
export type UserEquipment = TornItemDetails & {
|
|
5755
5780
|
slot: number;
|
|
5756
5781
|
mods: UserEquipmentItemMod[];
|
|
5757
|
-
ammo:
|
|
5758
|
-
id: AmmoId;
|
|
5759
|
-
name: string;
|
|
5760
|
-
quantity: number;
|
|
5761
|
-
type: TornItemAmmoTypeEnum;
|
|
5762
|
-
};
|
|
5782
|
+
ammo: UserEquipmentAmmo | null;
|
|
5763
5783
|
};
|
|
5764
5784
|
|
|
5765
5785
|
export interface UserEquipmentItemMod {
|
|
@@ -6064,6 +6084,7 @@ export interface UserProfileResponse {
|
|
|
6064
6084
|
signed_up: number;
|
|
6065
6085
|
faction_id: FactionId | null;
|
|
6066
6086
|
honor_id: HonorId;
|
|
6087
|
+
revive_setting: ReviveSetting;
|
|
6067
6088
|
property: {
|
|
6068
6089
|
id: PropertyId;
|
|
6069
6090
|
name: string;
|
|
@@ -6218,7 +6239,7 @@ export interface UserLog {
|
|
|
6218
6239
|
|
|
6219
6240
|
export interface UserLogsResponse {
|
|
6220
6241
|
log: UserLog[];
|
|
6221
|
-
_metadata:
|
|
6242
|
+
_metadata: RequestMetadataWithLinksAndNanostamp;
|
|
6222
6243
|
}
|
|
6223
6244
|
|
|
6224
6245
|
export interface BasicUser {
|
|
@@ -6501,7 +6522,7 @@ export interface UserRacesResponse {
|
|
|
6501
6522
|
|
|
6502
6523
|
export interface UserRaceCarDetails extends RaceCar {
|
|
6503
6524
|
id: RaceCarId;
|
|
6504
|
-
|
|
6525
|
+
car_name?: string | null;
|
|
6505
6526
|
worth: number;
|
|
6506
6527
|
points_spent: number;
|
|
6507
6528
|
races_entered: number;
|
|
@@ -6660,7 +6681,7 @@ export interface UserListResponse {
|
|
|
6660
6681
|
_metadata: RequestMetadataWithLinks;
|
|
6661
6682
|
}
|
|
6662
6683
|
|
|
6663
|
-
/** The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','
|
|
6684
|
+
/** The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','networth'. */
|
|
6664
6685
|
export type UserSelectionName = string;
|
|
6665
6686
|
|
|
6666
6687
|
export interface UserLookupResponse {
|
|
@@ -9154,6 +9175,27 @@ export interface PropertyLookupResponse {
|
|
|
9154
9175
|
selections: PropertySelectionName[];
|
|
9155
9176
|
}
|
|
9156
9177
|
|
|
9178
|
+
export interface TornGymModifiers {
|
|
9179
|
+
strength: number;
|
|
9180
|
+
speed: number;
|
|
9181
|
+
defense: number;
|
|
9182
|
+
dexterity: number;
|
|
9183
|
+
}
|
|
9184
|
+
|
|
9185
|
+
export interface TornGym {
|
|
9186
|
+
id: GymId;
|
|
9187
|
+
name: string;
|
|
9188
|
+
class: GymClassEnum;
|
|
9189
|
+
energy_cost: number;
|
|
9190
|
+
cost: number;
|
|
9191
|
+
modifiers: TornGymModifiers;
|
|
9192
|
+
note: string | null;
|
|
9193
|
+
}
|
|
9194
|
+
|
|
9195
|
+
export interface TornGymsResponse {
|
|
9196
|
+
gyms: TornGym[];
|
|
9197
|
+
}
|
|
9198
|
+
|
|
9157
9199
|
export interface TornSearchForCash {
|
|
9158
9200
|
id: TornSubCrimeId;
|
|
9159
9201
|
title: string;
|
|
@@ -9784,7 +9826,7 @@ export interface TornFactionTreeResponse {
|
|
|
9784
9826
|
}
|
|
9785
9827
|
|
|
9786
9828
|
/**
|
|
9787
|
-
* The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','
|
|
9829
|
+
* The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','stats'.
|
|
9788
9830
|
* * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.
|
|
9789
9831
|
*/
|
|
9790
9832
|
export type TornSelectionName = string;
|
|
@@ -13221,6 +13263,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
13221
13263
|
response: UserForumThreadsResponse;
|
|
13222
13264
|
params: "limit" | "sort" | "from" | "to" | "timestamp";
|
|
13223
13265
|
};
|
|
13266
|
+
gym: {
|
|
13267
|
+
response: UserGymResponse;
|
|
13268
|
+
params: "timestamp";
|
|
13269
|
+
};
|
|
13224
13270
|
hof: {
|
|
13225
13271
|
response: UserHofResponse;
|
|
13226
13272
|
params: "timestamp";
|
|
@@ -13271,7 +13317,8 @@ export interface UserV2 extends BaseSchema {
|
|
|
13271
13317
|
| "limit"
|
|
13272
13318
|
| "to"
|
|
13273
13319
|
| "from"
|
|
13274
|
-
| "timestamp"
|
|
13320
|
+
| "timestamp"
|
|
13321
|
+
| "nanostamp";
|
|
13275
13322
|
};
|
|
13276
13323
|
medals: {
|
|
13277
13324
|
response: UserMedalsResponse;
|
|
@@ -13854,6 +13901,10 @@ export interface TornV2 extends BaseSchema {
|
|
|
13854
13901
|
response: TornFactionTreeResponse;
|
|
13855
13902
|
params: "timestamp";
|
|
13856
13903
|
};
|
|
13904
|
+
gyms: {
|
|
13905
|
+
response: TornGymsResponse;
|
|
13906
|
+
params: "timestamp";
|
|
13907
|
+
};
|
|
13857
13908
|
honors: {
|
|
13858
13909
|
response: TornHonorsResponse;
|
|
13859
13910
|
params: "limit" | "offset" | "sort" | "timestamp";
|
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": "6.
|
|
6
|
+
"version": "6.10.0"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -1356,6 +1356,45 @@
|
|
|
1356
1356
|
"x-stability": "Stable"
|
|
1357
1357
|
}
|
|
1358
1358
|
},
|
|
1359
|
+
"/user/gym": {
|
|
1360
|
+
"get": {
|
|
1361
|
+
"tags": [
|
|
1362
|
+
"User"
|
|
1363
|
+
],
|
|
1364
|
+
"summary": "Get your currently active gym",
|
|
1365
|
+
"description": "Requires minimal access key. <br>",
|
|
1366
|
+
"operationId": "getMyGym",
|
|
1367
|
+
"parameters": [
|
|
1368
|
+
{
|
|
1369
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
1376
|
+
}
|
|
1377
|
+
],
|
|
1378
|
+
"responses": {
|
|
1379
|
+
"200": {
|
|
1380
|
+
"description": "Successful operation",
|
|
1381
|
+
"content": {
|
|
1382
|
+
"application/json": {
|
|
1383
|
+
"schema": {
|
|
1384
|
+
"$ref": "#/components/schemas/UserGymResponse"
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1390
|
+
"security": [
|
|
1391
|
+
{
|
|
1392
|
+
"api_key": []
|
|
1393
|
+
}
|
|
1394
|
+
],
|
|
1395
|
+
"x-stability": "Stable"
|
|
1396
|
+
}
|
|
1397
|
+
},
|
|
1359
1398
|
"/user/hof": {
|
|
1360
1399
|
"get": {
|
|
1361
1400
|
"tags": [
|
|
@@ -1982,6 +2021,9 @@
|
|
|
1982
2021
|
{
|
|
1983
2022
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
1984
2023
|
},
|
|
2024
|
+
{
|
|
2025
|
+
"$ref": "#/components/parameters/ApiNanostamp"
|
|
2026
|
+
},
|
|
1985
2027
|
{
|
|
1986
2028
|
"$ref": "#/components/parameters/ApiComment"
|
|
1987
2029
|
},
|
|
@@ -4105,6 +4147,9 @@
|
|
|
4105
4147
|
{
|
|
4106
4148
|
"$ref": "#/components/schemas/UserBattleStatsResponse"
|
|
4107
4149
|
},
|
|
4150
|
+
{
|
|
4151
|
+
"$ref": "#/components/schemas/UserGymResponse"
|
|
4152
|
+
},
|
|
4108
4153
|
{
|
|
4109
4154
|
"$ref": "#/components/schemas/UserTradeResponse"
|
|
4110
4155
|
},
|
|
@@ -10129,6 +10174,45 @@
|
|
|
10129
10174
|
"x-stability": "Stable"
|
|
10130
10175
|
}
|
|
10131
10176
|
},
|
|
10177
|
+
"/torn/gyms": {
|
|
10178
|
+
"get": {
|
|
10179
|
+
"tags": [
|
|
10180
|
+
"Torn"
|
|
10181
|
+
],
|
|
10182
|
+
"summary": "Get all gyms",
|
|
10183
|
+
"description": "Requires public access key. <br>",
|
|
10184
|
+
"operationId": "getTornGyms",
|
|
10185
|
+
"parameters": [
|
|
10186
|
+
{
|
|
10187
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
10188
|
+
},
|
|
10189
|
+
{
|
|
10190
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
10191
|
+
},
|
|
10192
|
+
{
|
|
10193
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
10194
|
+
}
|
|
10195
|
+
],
|
|
10196
|
+
"responses": {
|
|
10197
|
+
"200": {
|
|
10198
|
+
"description": "Successful operation",
|
|
10199
|
+
"content": {
|
|
10200
|
+
"application/json": {
|
|
10201
|
+
"schema": {
|
|
10202
|
+
"$ref": "#/components/schemas/TornGymsResponse"
|
|
10203
|
+
}
|
|
10204
|
+
}
|
|
10205
|
+
}
|
|
10206
|
+
}
|
|
10207
|
+
},
|
|
10208
|
+
"security": [
|
|
10209
|
+
{
|
|
10210
|
+
"api_key": []
|
|
10211
|
+
}
|
|
10212
|
+
],
|
|
10213
|
+
"x-stability": "Unstable"
|
|
10214
|
+
}
|
|
10215
|
+
},
|
|
10132
10216
|
"/torn/honors": {
|
|
10133
10217
|
"get": {
|
|
10134
10218
|
"tags": [
|
|
@@ -11432,6 +11516,9 @@
|
|
|
11432
11516
|
{
|
|
11433
11517
|
"$ref": "#/components/schemas/TornBountiesResponse"
|
|
11434
11518
|
},
|
|
11519
|
+
{
|
|
11520
|
+
"$ref": "#/components/schemas/TornGymsResponse"
|
|
11521
|
+
},
|
|
11435
11522
|
{
|
|
11436
11523
|
"$ref": "#/components/schemas/TornItemAmmoResponse"
|
|
11437
11524
|
},
|
|
@@ -16650,6 +16737,10 @@
|
|
|
16650
16737
|
"type": "integer",
|
|
16651
16738
|
"format": "int32"
|
|
16652
16739
|
},
|
|
16740
|
+
"GymId": {
|
|
16741
|
+
"type": "integer",
|
|
16742
|
+
"format": "int32"
|
|
16743
|
+
},
|
|
16653
16744
|
"ForumPostId": {
|
|
16654
16745
|
"type": "integer",
|
|
16655
16746
|
"format": "int32"
|
|
@@ -16722,6 +16813,21 @@
|
|
|
16722
16813
|
},
|
|
16723
16814
|
"type": "object"
|
|
16724
16815
|
},
|
|
16816
|
+
"RequestMetadataWithLinksAndNanostamp": {
|
|
16817
|
+
"required": [
|
|
16818
|
+
"links"
|
|
16819
|
+
],
|
|
16820
|
+
"properties": {
|
|
16821
|
+
"links": {
|
|
16822
|
+
"$ref": "#/components/schemas/RequestLinks"
|
|
16823
|
+
},
|
|
16824
|
+
"nanostamp": {
|
|
16825
|
+
"description": "Use to bypass system limitation when 100 or more logs were inserted within the same second.",
|
|
16826
|
+
"type": "string"
|
|
16827
|
+
}
|
|
16828
|
+
},
|
|
16829
|
+
"type": "object"
|
|
16830
|
+
},
|
|
16725
16831
|
"ForumFeedTypeEnum": {
|
|
16726
16832
|
"description": "This represents the type of the activity. Values range from 1 to 8 where:\n * 1 = 'X posted on a thread',\n * 2 = 'X created a thread',\n * 3 = 'X liked your thread',\n * 4 = 'X disliked your thread',\n * 5 = 'X liked your post',\n * 6 = 'X disliked your post',\n * 7 = 'X quoted your post'.",
|
|
16727
16833
|
"type": "integer",
|
|
@@ -16736,6 +16842,16 @@
|
|
|
16736
16842
|
7
|
|
16737
16843
|
]
|
|
16738
16844
|
},
|
|
16845
|
+
"GymClassEnum": {
|
|
16846
|
+
"type": "string",
|
|
16847
|
+
"enum": [
|
|
16848
|
+
"Basic",
|
|
16849
|
+
"Lightweight",
|
|
16850
|
+
"Middleweight",
|
|
16851
|
+
"Heavyweight",
|
|
16852
|
+
"Specialist"
|
|
16853
|
+
]
|
|
16854
|
+
},
|
|
16739
16855
|
"UserGenderEnum": {
|
|
16740
16856
|
"type": "string",
|
|
16741
16857
|
"enum": [
|
|
@@ -18947,6 +19063,29 @@
|
|
|
18947
19063
|
}
|
|
18948
19064
|
]
|
|
18949
19065
|
},
|
|
19066
|
+
"UserGymResponse": {
|
|
19067
|
+
"required": [
|
|
19068
|
+
"gym"
|
|
19069
|
+
],
|
|
19070
|
+
"properties": {
|
|
19071
|
+
"gym": {
|
|
19072
|
+
"required": [
|
|
19073
|
+
"id",
|
|
19074
|
+
"name"
|
|
19075
|
+
],
|
|
19076
|
+
"properties": {
|
|
19077
|
+
"id": {
|
|
19078
|
+
"$ref": "#/components/schemas/GymId"
|
|
19079
|
+
},
|
|
19080
|
+
"name": {
|
|
19081
|
+
"type": "string"
|
|
19082
|
+
}
|
|
19083
|
+
},
|
|
19084
|
+
"type": "object"
|
|
19085
|
+
}
|
|
19086
|
+
},
|
|
19087
|
+
"type": "object"
|
|
19088
|
+
},
|
|
18950
19089
|
"UserSearch": {
|
|
18951
19090
|
"required": [
|
|
18952
19091
|
"id",
|
|
@@ -19847,6 +19986,30 @@
|
|
|
19847
19986
|
},
|
|
19848
19987
|
"type": "object"
|
|
19849
19988
|
},
|
|
19989
|
+
"UserEquipmentAmmo": {
|
|
19990
|
+
"required": [
|
|
19991
|
+
"id",
|
|
19992
|
+
"name",
|
|
19993
|
+
"type",
|
|
19994
|
+
"quantity"
|
|
19995
|
+
],
|
|
19996
|
+
"properties": {
|
|
19997
|
+
"id": {
|
|
19998
|
+
"$ref": "#/components/schemas/AmmoId"
|
|
19999
|
+
},
|
|
20000
|
+
"name": {
|
|
20001
|
+
"type": "string"
|
|
20002
|
+
},
|
|
20003
|
+
"quantity": {
|
|
20004
|
+
"type": "integer",
|
|
20005
|
+
"format": "int32"
|
|
20006
|
+
},
|
|
20007
|
+
"type": {
|
|
20008
|
+
"$ref": "#/components/schemas/TornItemAmmoTypeEnum"
|
|
20009
|
+
}
|
|
20010
|
+
},
|
|
20011
|
+
"type": "object"
|
|
20012
|
+
},
|
|
19850
20013
|
"UserEquipment": {
|
|
19851
20014
|
"allOf": [
|
|
19852
20015
|
{
|
|
@@ -19870,28 +20033,14 @@
|
|
|
19870
20033
|
}
|
|
19871
20034
|
},
|
|
19872
20035
|
"ammo": {
|
|
19873
|
-
"
|
|
19874
|
-
|
|
19875
|
-
|
|
19876
|
-
"type",
|
|
19877
|
-
"quantity"
|
|
19878
|
-
],
|
|
19879
|
-
"properties": {
|
|
19880
|
-
"id": {
|
|
19881
|
-
"$ref": "#/components/schemas/AmmoId"
|
|
19882
|
-
},
|
|
19883
|
-
"name": {
|
|
19884
|
-
"type": "string"
|
|
19885
|
-
},
|
|
19886
|
-
"quantity": {
|
|
19887
|
-
"type": "integer",
|
|
19888
|
-
"format": "int32"
|
|
20036
|
+
"oneOf": [
|
|
20037
|
+
{
|
|
20038
|
+
"$ref": "#/components/schemas/UserEquipmentAmmo"
|
|
19889
20039
|
},
|
|
19890
|
-
|
|
19891
|
-
"
|
|
20040
|
+
{
|
|
20041
|
+
"type": "null"
|
|
19892
20042
|
}
|
|
19893
|
-
|
|
19894
|
-
"type": "object"
|
|
20043
|
+
]
|
|
19895
20044
|
}
|
|
19896
20045
|
},
|
|
19897
20046
|
"type": "object"
|
|
@@ -21101,7 +21250,8 @@
|
|
|
21101
21250
|
"karma",
|
|
21102
21251
|
"last_action",
|
|
21103
21252
|
"life",
|
|
21104
|
-
"donator_status"
|
|
21253
|
+
"donator_status",
|
|
21254
|
+
"revive_setting"
|
|
21105
21255
|
],
|
|
21106
21256
|
"properties": {
|
|
21107
21257
|
"id": {
|
|
@@ -21166,6 +21316,10 @@
|
|
|
21166
21316
|
"honor_id": {
|
|
21167
21317
|
"$ref": "#/components/schemas/HonorId"
|
|
21168
21318
|
},
|
|
21319
|
+
"revive_setting": {
|
|
21320
|
+
"$ref": "#/components/schemas/ReviveSetting",
|
|
21321
|
+
"description": "This field is shown only for 'Limited' or 'Full' access keys and only for the key owner, otherwise, the status is 'Unknown'."
|
|
21322
|
+
},
|
|
21169
21323
|
"property": {
|
|
21170
21324
|
"required": [
|
|
21171
21325
|
"id",
|
|
@@ -21771,7 +21925,7 @@
|
|
|
21771
21925
|
}
|
|
21772
21926
|
},
|
|
21773
21927
|
"_metadata": {
|
|
21774
|
-
"$ref": "#/components/schemas/
|
|
21928
|
+
"$ref": "#/components/schemas/RequestMetadataWithLinksAndNanostamp"
|
|
21775
21929
|
}
|
|
21776
21930
|
},
|
|
21777
21931
|
"type": "object"
|
|
@@ -22965,7 +23119,9 @@
|
|
|
22965
23119
|
"id": {
|
|
22966
23120
|
"$ref": "#/components/schemas/RaceCarId"
|
|
22967
23121
|
},
|
|
22968
|
-
"
|
|
23122
|
+
"car_name": {
|
|
23123
|
+
"description": "This field is deprecated and 'car_item_name' should be used instead.",
|
|
23124
|
+
"deprecated": true,
|
|
22969
23125
|
"oneOf": [
|
|
22970
23126
|
{
|
|
22971
23127
|
"type": "string"
|
|
@@ -23588,7 +23744,7 @@
|
|
|
23588
23744
|
"UserSelectionName": {
|
|
23589
23745
|
"oneOf": [
|
|
23590
23746
|
{
|
|
23591
|
-
"description": "The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','
|
|
23747
|
+
"description": "The following selections will fallback to API v1 and may change at any time: 'bazaar','criminalrecord','display','networth'.",
|
|
23592
23748
|
"type": "string",
|
|
23593
23749
|
"enum": [
|
|
23594
23750
|
"ammo",
|
|
@@ -23614,6 +23770,7 @@
|
|
|
23614
23770
|
"forumposts",
|
|
23615
23771
|
"forumsubscribedthreads",
|
|
23616
23772
|
"forumthreads",
|
|
23773
|
+
"gym",
|
|
23617
23774
|
"hof",
|
|
23618
23775
|
"honors",
|
|
23619
23776
|
"icons",
|
|
@@ -23659,7 +23816,6 @@
|
|
|
23659
23816
|
"criminalrecord",
|
|
23660
23817
|
"display",
|
|
23661
23818
|
"education",
|
|
23662
|
-
"gym",
|
|
23663
23819
|
"perks"
|
|
23664
23820
|
]
|
|
23665
23821
|
},
|
|
@@ -33181,6 +33337,91 @@
|
|
|
33181
33337
|
},
|
|
33182
33338
|
"type": "object"
|
|
33183
33339
|
},
|
|
33340
|
+
"TornGymModifiers": {
|
|
33341
|
+
"required": [
|
|
33342
|
+
"strength",
|
|
33343
|
+
"speed",
|
|
33344
|
+
"defense",
|
|
33345
|
+
"dexterity"
|
|
33346
|
+
],
|
|
33347
|
+
"properties": {
|
|
33348
|
+
"strength": {
|
|
33349
|
+
"type": "number",
|
|
33350
|
+
"format": "float"
|
|
33351
|
+
},
|
|
33352
|
+
"speed": {
|
|
33353
|
+
"type": "number",
|
|
33354
|
+
"format": "float"
|
|
33355
|
+
},
|
|
33356
|
+
"defense": {
|
|
33357
|
+
"type": "number",
|
|
33358
|
+
"format": "float"
|
|
33359
|
+
},
|
|
33360
|
+
"dexterity": {
|
|
33361
|
+
"type": "number",
|
|
33362
|
+
"format": "float"
|
|
33363
|
+
}
|
|
33364
|
+
},
|
|
33365
|
+
"type": "object"
|
|
33366
|
+
},
|
|
33367
|
+
"TornGym": {
|
|
33368
|
+
"required": [
|
|
33369
|
+
"id",
|
|
33370
|
+
"name",
|
|
33371
|
+
"class",
|
|
33372
|
+
"energy_cost",
|
|
33373
|
+
"cost",
|
|
33374
|
+
"modifiers",
|
|
33375
|
+
"note"
|
|
33376
|
+
],
|
|
33377
|
+
"properties": {
|
|
33378
|
+
"id": {
|
|
33379
|
+
"$ref": "#/components/schemas/GymId"
|
|
33380
|
+
},
|
|
33381
|
+
"name": {
|
|
33382
|
+
"type": "string"
|
|
33383
|
+
},
|
|
33384
|
+
"class": {
|
|
33385
|
+
"$ref": "#/components/schemas/GymClassEnum"
|
|
33386
|
+
},
|
|
33387
|
+
"energy_cost": {
|
|
33388
|
+
"type": "integer",
|
|
33389
|
+
"format": "int32"
|
|
33390
|
+
},
|
|
33391
|
+
"cost": {
|
|
33392
|
+
"type": "integer",
|
|
33393
|
+
"format": "int64"
|
|
33394
|
+
},
|
|
33395
|
+
"modifiers": {
|
|
33396
|
+
"$ref": "#/components/schemas/TornGymModifiers"
|
|
33397
|
+
},
|
|
33398
|
+
"note": {
|
|
33399
|
+
"oneOf": [
|
|
33400
|
+
{
|
|
33401
|
+
"type": "string"
|
|
33402
|
+
},
|
|
33403
|
+
{
|
|
33404
|
+
"type": "null"
|
|
33405
|
+
}
|
|
33406
|
+
]
|
|
33407
|
+
}
|
|
33408
|
+
},
|
|
33409
|
+
"type": "object"
|
|
33410
|
+
},
|
|
33411
|
+
"TornGymsResponse": {
|
|
33412
|
+
"required": [
|
|
33413
|
+
"gyms"
|
|
33414
|
+
],
|
|
33415
|
+
"properties": {
|
|
33416
|
+
"gyms": {
|
|
33417
|
+
"type": "array",
|
|
33418
|
+
"items": {
|
|
33419
|
+
"$ref": "#/components/schemas/TornGym"
|
|
33420
|
+
}
|
|
33421
|
+
}
|
|
33422
|
+
},
|
|
33423
|
+
"type": "object"
|
|
33424
|
+
},
|
|
33184
33425
|
"TornSearchForCash": {
|
|
33185
33426
|
"required": [
|
|
33186
33427
|
"id",
|
|
@@ -35761,7 +36002,7 @@
|
|
|
35761
36002
|
"TornSelectionName": {
|
|
35762
36003
|
"oneOf": [
|
|
35763
36004
|
{
|
|
35764
|
-
"description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','
|
|
36005
|
+
"description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','stats'.\n * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.",
|
|
35765
36006
|
"type": "string",
|
|
35766
36007
|
"enum": [
|
|
35767
36008
|
"attacklog",
|
|
@@ -35773,6 +36014,7 @@
|
|
|
35773
36014
|
"eliminationteam",
|
|
35774
36015
|
"factionhof",
|
|
35775
36016
|
"factiontree",
|
|
36017
|
+
"gyms",
|
|
35776
36018
|
"hof",
|
|
35777
36019
|
"honors",
|
|
35778
36020
|
"itemammo",
|
|
@@ -35978,6 +36220,15 @@
|
|
|
35978
36220
|
]
|
|
35979
36221
|
}
|
|
35980
36222
|
},
|
|
36223
|
+
"ApiNanostamp": {
|
|
36224
|
+
"name": "nanostamp",
|
|
36225
|
+
"in": "query",
|
|
36226
|
+
"description": "Timestamp in nanoseconds to bypass system limitation when using regular timestamps",
|
|
36227
|
+
"required": false,
|
|
36228
|
+
"schema": {
|
|
36229
|
+
"type": "string"
|
|
36230
|
+
}
|
|
36231
|
+
},
|
|
35981
36232
|
"ApiFiltersIncomingOutgoing": {
|
|
35982
36233
|
"name": "filters",
|
|
35983
36234
|
"in": "query",
|