tornapi-typescript 6.3.1 → 6.5.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 -0
- package/dist/index.ts +54 -0
- package/dist/openapi.json +342 -21
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -504,6 +504,50 @@ export interface ErrorFileDoesNotExist {
|
|
|
504
504
|
error: string;
|
|
505
505
|
}
|
|
506
506
|
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;
|
|
507
|
+
export interface UserPerksResponse {
|
|
508
|
+
perks: {
|
|
509
|
+
faction: string[];
|
|
510
|
+
job: string[];
|
|
511
|
+
property: string[];
|
|
512
|
+
education: string[];
|
|
513
|
+
enhancer: string[];
|
|
514
|
+
book: string[];
|
|
515
|
+
stock: string[];
|
|
516
|
+
merit: string[];
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
export interface UserNetworthResponse {
|
|
520
|
+
networth: {
|
|
521
|
+
money: {
|
|
522
|
+
pending: number;
|
|
523
|
+
wallet: number;
|
|
524
|
+
vault: number;
|
|
525
|
+
bookie: number;
|
|
526
|
+
city_bank: number;
|
|
527
|
+
cayman_bank: number;
|
|
528
|
+
piggy_bank: number;
|
|
529
|
+
loans: number;
|
|
530
|
+
unpaid_fees: number;
|
|
531
|
+
};
|
|
532
|
+
items: {
|
|
533
|
+
inventory: number;
|
|
534
|
+
display_case: number;
|
|
535
|
+
bazaar: number;
|
|
536
|
+
trades: number;
|
|
537
|
+
item_market: number;
|
|
538
|
+
auction_house: number;
|
|
539
|
+
enlisted_cars: number;
|
|
540
|
+
};
|
|
541
|
+
assets: {
|
|
542
|
+
property: number;
|
|
543
|
+
stock_market: number;
|
|
544
|
+
company: number;
|
|
545
|
+
};
|
|
546
|
+
points: number;
|
|
547
|
+
total: number;
|
|
548
|
+
timestamp: number;
|
|
549
|
+
};
|
|
550
|
+
}
|
|
507
551
|
export interface UserItemMod {
|
|
508
552
|
id: ItemModId;
|
|
509
553
|
title: string;
|
|
@@ -7222,6 +7266,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
7222
7266
|
response: UserNewEventsResponse;
|
|
7223
7267
|
params: "striptags" | "timestamp";
|
|
7224
7268
|
};
|
|
7269
|
+
networth: {
|
|
7270
|
+
response: UserNetworthResponse;
|
|
7271
|
+
params: "timestamp";
|
|
7272
|
+
};
|
|
7225
7273
|
newmessages: {
|
|
7226
7274
|
response: UserNewMessagesResponse;
|
|
7227
7275
|
params: "timestamp";
|
|
@@ -7238,6 +7286,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
7238
7286
|
response: UserOrganizedCrimesResponse;
|
|
7239
7287
|
params: "timestamp";
|
|
7240
7288
|
};
|
|
7289
|
+
perks: {
|
|
7290
|
+
response: UserPerksResponse;
|
|
7291
|
+
params: "timestamp";
|
|
7292
|
+
};
|
|
7241
7293
|
personalstats: {
|
|
7242
7294
|
response: UserPersonalStatsResponse;
|
|
7243
7295
|
params: "cat" | "stat" | "timestamp";
|
package/dist/index.ts
CHANGED
|
@@ -5517,6 +5517,52 @@ export type ApiError =
|
|
|
5517
5517
|
| ErrorCategorySelectionUnavailableForInteractionLogs
|
|
5518
5518
|
| ErrorFileDoesNotExist;
|
|
5519
5519
|
|
|
5520
|
+
export interface UserPerksResponse {
|
|
5521
|
+
perks: {
|
|
5522
|
+
faction: string[];
|
|
5523
|
+
job: string[];
|
|
5524
|
+
property: string[];
|
|
5525
|
+
education: string[];
|
|
5526
|
+
enhancer: string[];
|
|
5527
|
+
book: string[];
|
|
5528
|
+
stock: string[];
|
|
5529
|
+
merit: string[];
|
|
5530
|
+
};
|
|
5531
|
+
}
|
|
5532
|
+
|
|
5533
|
+
export interface UserNetworthResponse {
|
|
5534
|
+
networth: {
|
|
5535
|
+
money: {
|
|
5536
|
+
pending: number;
|
|
5537
|
+
wallet: number;
|
|
5538
|
+
vault: number;
|
|
5539
|
+
bookie: number;
|
|
5540
|
+
city_bank: number;
|
|
5541
|
+
cayman_bank: number;
|
|
5542
|
+
piggy_bank: number;
|
|
5543
|
+
loans: number;
|
|
5544
|
+
unpaid_fees: number;
|
|
5545
|
+
};
|
|
5546
|
+
items: {
|
|
5547
|
+
inventory: number;
|
|
5548
|
+
display_case: number;
|
|
5549
|
+
bazaar: number;
|
|
5550
|
+
trades: number;
|
|
5551
|
+
item_market: number;
|
|
5552
|
+
auction_house: number;
|
|
5553
|
+
enlisted_cars: number;
|
|
5554
|
+
};
|
|
5555
|
+
assets: {
|
|
5556
|
+
property: number;
|
|
5557
|
+
stock_market: number;
|
|
5558
|
+
company: number;
|
|
5559
|
+
};
|
|
5560
|
+
points: number;
|
|
5561
|
+
total: number;
|
|
5562
|
+
timestamp: number;
|
|
5563
|
+
};
|
|
5564
|
+
}
|
|
5565
|
+
|
|
5520
5566
|
export interface UserItemMod {
|
|
5521
5567
|
id: ItemModId;
|
|
5522
5568
|
title: string;
|
|
@@ -13116,6 +13162,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
13116
13162
|
response: UserNewEventsResponse;
|
|
13117
13163
|
params: "striptags" | "timestamp";
|
|
13118
13164
|
};
|
|
13165
|
+
networth: {
|
|
13166
|
+
response: UserNetworthResponse;
|
|
13167
|
+
params: "timestamp";
|
|
13168
|
+
};
|
|
13119
13169
|
newmessages: {
|
|
13120
13170
|
response: UserNewMessagesResponse;
|
|
13121
13171
|
params: "timestamp";
|
|
@@ -13132,6 +13182,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
13132
13182
|
response: UserOrganizedCrimesResponse;
|
|
13133
13183
|
params: "timestamp";
|
|
13134
13184
|
};
|
|
13185
|
+
perks: {
|
|
13186
|
+
response: UserPerksResponse;
|
|
13187
|
+
params: "timestamp";
|
|
13188
|
+
};
|
|
13135
13189
|
personalstats: {
|
|
13136
13190
|
response: UserPersonalStatsResponse;
|
|
13137
13191
|
params: "cat" | "stat" | "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.5.0"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
"api_key": []
|
|
493
493
|
}
|
|
494
494
|
],
|
|
495
|
-
"x-stability": "
|
|
495
|
+
"x-stability": "Stable"
|
|
496
496
|
}
|
|
497
497
|
},
|
|
498
498
|
"/user/competition": {
|
|
@@ -2258,13 +2258,52 @@
|
|
|
2258
2258
|
"x-stability": "Stable"
|
|
2259
2259
|
}
|
|
2260
2260
|
},
|
|
2261
|
+
"/user/networth": {
|
|
2262
|
+
"get": {
|
|
2263
|
+
"tags": [
|
|
2264
|
+
"User"
|
|
2265
|
+
],
|
|
2266
|
+
"summary": "Get your networth",
|
|
2267
|
+
"description": "Requires limited access key. <br>",
|
|
2268
|
+
"operationId": "getMyNetworth",
|
|
2269
|
+
"parameters": [
|
|
2270
|
+
{
|
|
2271
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
2272
|
+
},
|
|
2273
|
+
{
|
|
2274
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
"$ref": "#/components/parameters/ApiKeyLimited"
|
|
2278
|
+
}
|
|
2279
|
+
],
|
|
2280
|
+
"responses": {
|
|
2281
|
+
"200": {
|
|
2282
|
+
"description": "Successful operation",
|
|
2283
|
+
"content": {
|
|
2284
|
+
"application/json": {
|
|
2285
|
+
"schema": {
|
|
2286
|
+
"$ref": "#/components/schemas/UserNetworthResponse"
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
},
|
|
2292
|
+
"security": [
|
|
2293
|
+
{
|
|
2294
|
+
"api_key": []
|
|
2295
|
+
}
|
|
2296
|
+
],
|
|
2297
|
+
"x-stability": "Unstable"
|
|
2298
|
+
}
|
|
2299
|
+
},
|
|
2261
2300
|
"/user/newmessages": {
|
|
2262
2301
|
"get": {
|
|
2263
2302
|
"tags": [
|
|
2264
2303
|
"User"
|
|
2265
2304
|
],
|
|
2266
2305
|
"summary": "Get your unseen messages",
|
|
2267
|
-
"description": "Requires limited access key. <br>",
|
|
2306
|
+
"description": "Requires limited access key. <br>This selection is cached for 1 hour.",
|
|
2268
2307
|
"operationId": "getMyNewMessages",
|
|
2269
2308
|
"parameters": [
|
|
2270
2309
|
{
|
|
@@ -2414,6 +2453,45 @@
|
|
|
2414
2453
|
"x-stability": "Stable"
|
|
2415
2454
|
}
|
|
2416
2455
|
},
|
|
2456
|
+
"/user/perks": {
|
|
2457
|
+
"get": {
|
|
2458
|
+
"tags": [
|
|
2459
|
+
"User"
|
|
2460
|
+
],
|
|
2461
|
+
"summary": "Get your current perks",
|
|
2462
|
+
"description": "Requires minimal access key. <br>",
|
|
2463
|
+
"operationId": "getMyPerks",
|
|
2464
|
+
"parameters": [
|
|
2465
|
+
{
|
|
2466
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
2470
|
+
},
|
|
2471
|
+
{
|
|
2472
|
+
"$ref": "#/components/parameters/ApiKeyPublic"
|
|
2473
|
+
}
|
|
2474
|
+
],
|
|
2475
|
+
"responses": {
|
|
2476
|
+
"200": {
|
|
2477
|
+
"description": "Successful operation",
|
|
2478
|
+
"content": {
|
|
2479
|
+
"application/json": {
|
|
2480
|
+
"schema": {
|
|
2481
|
+
"$ref": "#/components/schemas/UserPerksResponse"
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2486
|
+
},
|
|
2487
|
+
"security": [
|
|
2488
|
+
{
|
|
2489
|
+
"api_key": []
|
|
2490
|
+
}
|
|
2491
|
+
],
|
|
2492
|
+
"x-stability": "Stable"
|
|
2493
|
+
}
|
|
2494
|
+
},
|
|
2417
2495
|
"/user/personalstats": {
|
|
2418
2496
|
"get": {
|
|
2419
2497
|
"tags": [
|
|
@@ -3213,7 +3291,7 @@
|
|
|
3213
3291
|
"operationId": "getUsersSnapshot",
|
|
3214
3292
|
"parameters": [
|
|
3215
3293
|
{
|
|
3216
|
-
"$ref": "#/components/parameters/
|
|
3294
|
+
"$ref": "#/components/parameters/ApiTimestampSpecificPointInTime"
|
|
3217
3295
|
},
|
|
3218
3296
|
{
|
|
3219
3297
|
"$ref": "#/components/parameters/ApiComment"
|
|
@@ -3339,7 +3417,7 @@
|
|
|
3339
3417
|
"api_key": []
|
|
3340
3418
|
}
|
|
3341
3419
|
],
|
|
3342
|
-
"x-stability": "
|
|
3420
|
+
"x-stability": "Stable"
|
|
3343
3421
|
}
|
|
3344
3422
|
},
|
|
3345
3423
|
"/user/{tradeId}/trade": {
|
|
@@ -3387,7 +3465,7 @@
|
|
|
3387
3465
|
"api_key": []
|
|
3388
3466
|
}
|
|
3389
3467
|
],
|
|
3390
|
-
"x-stability": "
|
|
3468
|
+
"x-stability": "Stable"
|
|
3391
3469
|
}
|
|
3392
3470
|
},
|
|
3393
3471
|
"/user/travel": {
|
|
@@ -3895,6 +3973,9 @@
|
|
|
3895
3973
|
{
|
|
3896
3974
|
"$ref": "#/components/schemas/UserNotificationsResponse"
|
|
3897
3975
|
},
|
|
3976
|
+
{
|
|
3977
|
+
"$ref": "#/components/schemas/UserPerksResponse"
|
|
3978
|
+
},
|
|
3898
3979
|
{
|
|
3899
3980
|
"$ref": "#/components/schemas/UserRefillsResponse"
|
|
3900
3981
|
},
|
|
@@ -3910,6 +3991,9 @@
|
|
|
3910
3991
|
{
|
|
3911
3992
|
"$ref": "#/components/schemas/UserCasinoResponse"
|
|
3912
3993
|
},
|
|
3994
|
+
{
|
|
3995
|
+
"$ref": "#/components/schemas/UserNetworthResponse"
|
|
3996
|
+
},
|
|
3913
3997
|
{
|
|
3914
3998
|
"$ref": "#/components/schemas/UserMoneyResponse"
|
|
3915
3999
|
},
|
|
@@ -5614,7 +5698,7 @@
|
|
|
5614
5698
|
"operationId": "getFactionsSnapshot",
|
|
5615
5699
|
"parameters": [
|
|
5616
5700
|
{
|
|
5617
|
-
"$ref": "#/components/parameters/
|
|
5701
|
+
"$ref": "#/components/parameters/ApiTimestampSpecificPointInTime"
|
|
5618
5702
|
},
|
|
5619
5703
|
{
|
|
5620
5704
|
"$ref": "#/components/parameters/ApiComment"
|
|
@@ -6552,7 +6636,7 @@
|
|
|
6552
6636
|
"api_key": []
|
|
6553
6637
|
}
|
|
6554
6638
|
],
|
|
6555
|
-
"x-stability": "
|
|
6639
|
+
"x-stability": "Stable"
|
|
6556
6640
|
}
|
|
6557
6641
|
},
|
|
6558
6642
|
"/company/employees": {
|
|
@@ -6594,7 +6678,7 @@
|
|
|
6594
6678
|
"api_key": []
|
|
6595
6679
|
}
|
|
6596
6680
|
],
|
|
6597
|
-
"x-stability": "
|
|
6681
|
+
"x-stability": "Stable"
|
|
6598
6682
|
}
|
|
6599
6683
|
},
|
|
6600
6684
|
"/company/{id}/employees": {
|
|
@@ -6645,7 +6729,7 @@
|
|
|
6645
6729
|
"api_key": []
|
|
6646
6730
|
}
|
|
6647
6731
|
],
|
|
6648
|
-
"x-stability": "
|
|
6732
|
+
"x-stability": "Stable"
|
|
6649
6733
|
}
|
|
6650
6734
|
},
|
|
6651
6735
|
"/company/news": {
|
|
@@ -6708,7 +6792,7 @@
|
|
|
6708
6792
|
"api_key": []
|
|
6709
6793
|
}
|
|
6710
6794
|
],
|
|
6711
|
-
"x-stability": "
|
|
6795
|
+
"x-stability": "Stable"
|
|
6712
6796
|
}
|
|
6713
6797
|
},
|
|
6714
6798
|
"/company/{typeId}/companies": {
|
|
@@ -6765,7 +6849,7 @@
|
|
|
6765
6849
|
"api_key": []
|
|
6766
6850
|
}
|
|
6767
6851
|
],
|
|
6768
|
-
"x-stability": "
|
|
6852
|
+
"x-stability": "Stable"
|
|
6769
6853
|
}
|
|
6770
6854
|
},
|
|
6771
6855
|
"/company/profile": {
|
|
@@ -6807,7 +6891,7 @@
|
|
|
6807
6891
|
"api_key": []
|
|
6808
6892
|
}
|
|
6809
6893
|
],
|
|
6810
|
-
"x-stability": "
|
|
6894
|
+
"x-stability": "Stable"
|
|
6811
6895
|
}
|
|
6812
6896
|
},
|
|
6813
6897
|
"/company/{id}/profile": {
|
|
@@ -6858,7 +6942,7 @@
|
|
|
6858
6942
|
"api_key": []
|
|
6859
6943
|
}
|
|
6860
6944
|
],
|
|
6861
|
-
"x-stability": "
|
|
6945
|
+
"x-stability": "Stable"
|
|
6862
6946
|
}
|
|
6863
6947
|
},
|
|
6864
6948
|
"/company/search": {
|
|
@@ -6909,7 +6993,7 @@
|
|
|
6909
6993
|
"api_key": []
|
|
6910
6994
|
}
|
|
6911
6995
|
],
|
|
6912
|
-
"x-stability": "
|
|
6996
|
+
"x-stability": "Stable"
|
|
6913
6997
|
}
|
|
6914
6998
|
},
|
|
6915
6999
|
"/company/snapshot": {
|
|
@@ -6922,7 +7006,7 @@
|
|
|
6922
7006
|
"operationId": "getCompaniesSnapshot",
|
|
6923
7007
|
"parameters": [
|
|
6924
7008
|
{
|
|
6925
|
-
"$ref": "#/components/parameters/
|
|
7009
|
+
"$ref": "#/components/parameters/ApiTimestampSpecificPointInTime"
|
|
6926
7010
|
},
|
|
6927
7011
|
{
|
|
6928
7012
|
"$ref": "#/components/parameters/ApiComment"
|
|
@@ -6949,7 +7033,7 @@
|
|
|
6949
7033
|
"api_key": []
|
|
6950
7034
|
}
|
|
6951
7035
|
],
|
|
6952
|
-
"x-stability": "
|
|
7036
|
+
"x-stability": "Stable"
|
|
6953
7037
|
}
|
|
6954
7038
|
},
|
|
6955
7039
|
"/company/stock": {
|
|
@@ -6988,7 +7072,7 @@
|
|
|
6988
7072
|
"api_key": []
|
|
6989
7073
|
}
|
|
6990
7074
|
],
|
|
6991
|
-
"x-stability": "
|
|
7075
|
+
"x-stability": "Stable"
|
|
6992
7076
|
}
|
|
6993
7077
|
},
|
|
6994
7078
|
"/company/lookup": {
|
|
@@ -10230,7 +10314,7 @@
|
|
|
10230
10314
|
"api_key": []
|
|
10231
10315
|
}
|
|
10232
10316
|
],
|
|
10233
|
-
"x-stability": "
|
|
10317
|
+
"x-stability": "Stable"
|
|
10234
10318
|
}
|
|
10235
10319
|
},
|
|
10236
10320
|
"/torn/organizedcrimes": {
|
|
@@ -18224,6 +18308,226 @@
|
|
|
18224
18308
|
}
|
|
18225
18309
|
]
|
|
18226
18310
|
},
|
|
18311
|
+
"UserPerksResponse": {
|
|
18312
|
+
"required": [
|
|
18313
|
+
"perks"
|
|
18314
|
+
],
|
|
18315
|
+
"properties": {
|
|
18316
|
+
"perks": {
|
|
18317
|
+
"required": [
|
|
18318
|
+
"faction",
|
|
18319
|
+
"job",
|
|
18320
|
+
"property",
|
|
18321
|
+
"education",
|
|
18322
|
+
"enhancer",
|
|
18323
|
+
"book",
|
|
18324
|
+
"stock",
|
|
18325
|
+
"merit"
|
|
18326
|
+
],
|
|
18327
|
+
"properties": {
|
|
18328
|
+
"faction": {
|
|
18329
|
+
"type": "array",
|
|
18330
|
+
"items": {
|
|
18331
|
+
"type": "string"
|
|
18332
|
+
}
|
|
18333
|
+
},
|
|
18334
|
+
"job": {
|
|
18335
|
+
"type": "array",
|
|
18336
|
+
"items": {
|
|
18337
|
+
"type": "string"
|
|
18338
|
+
}
|
|
18339
|
+
},
|
|
18340
|
+
"property": {
|
|
18341
|
+
"type": "array",
|
|
18342
|
+
"items": {
|
|
18343
|
+
"type": "string"
|
|
18344
|
+
}
|
|
18345
|
+
},
|
|
18346
|
+
"education": {
|
|
18347
|
+
"type": "array",
|
|
18348
|
+
"items": {
|
|
18349
|
+
"type": "string"
|
|
18350
|
+
}
|
|
18351
|
+
},
|
|
18352
|
+
"enhancer": {
|
|
18353
|
+
"type": "array",
|
|
18354
|
+
"items": {
|
|
18355
|
+
"type": "string"
|
|
18356
|
+
}
|
|
18357
|
+
},
|
|
18358
|
+
"book": {
|
|
18359
|
+
"type": "array",
|
|
18360
|
+
"items": {
|
|
18361
|
+
"type": "string"
|
|
18362
|
+
}
|
|
18363
|
+
},
|
|
18364
|
+
"stock": {
|
|
18365
|
+
"type": "array",
|
|
18366
|
+
"items": {
|
|
18367
|
+
"type": "string"
|
|
18368
|
+
}
|
|
18369
|
+
},
|
|
18370
|
+
"merit": {
|
|
18371
|
+
"type": "array",
|
|
18372
|
+
"items": {
|
|
18373
|
+
"type": "string"
|
|
18374
|
+
}
|
|
18375
|
+
}
|
|
18376
|
+
},
|
|
18377
|
+
"type": "object"
|
|
18378
|
+
}
|
|
18379
|
+
},
|
|
18380
|
+
"type": "object"
|
|
18381
|
+
},
|
|
18382
|
+
"UserNetworthResponse": {
|
|
18383
|
+
"required": [
|
|
18384
|
+
"networth"
|
|
18385
|
+
],
|
|
18386
|
+
"properties": {
|
|
18387
|
+
"networth": {
|
|
18388
|
+
"required": [
|
|
18389
|
+
"money",
|
|
18390
|
+
"items",
|
|
18391
|
+
"assets",
|
|
18392
|
+
"points",
|
|
18393
|
+
"total",
|
|
18394
|
+
"timestamp"
|
|
18395
|
+
],
|
|
18396
|
+
"properties": {
|
|
18397
|
+
"money": {
|
|
18398
|
+
"required": [
|
|
18399
|
+
"pending",
|
|
18400
|
+
"wallet",
|
|
18401
|
+
"vault",
|
|
18402
|
+
"bookie",
|
|
18403
|
+
"city_bank",
|
|
18404
|
+
"cayman_bank",
|
|
18405
|
+
"piggy_bank",
|
|
18406
|
+
"loans",
|
|
18407
|
+
"unpaid_fees"
|
|
18408
|
+
],
|
|
18409
|
+
"properties": {
|
|
18410
|
+
"pending": {
|
|
18411
|
+
"type": "integer",
|
|
18412
|
+
"format": "int64"
|
|
18413
|
+
},
|
|
18414
|
+
"wallet": {
|
|
18415
|
+
"type": "integer",
|
|
18416
|
+
"format": "int64"
|
|
18417
|
+
},
|
|
18418
|
+
"vault": {
|
|
18419
|
+
"type": "integer",
|
|
18420
|
+
"format": "int64"
|
|
18421
|
+
},
|
|
18422
|
+
"bookie": {
|
|
18423
|
+
"type": "integer",
|
|
18424
|
+
"format": "int64"
|
|
18425
|
+
},
|
|
18426
|
+
"city_bank": {
|
|
18427
|
+
"type": "integer",
|
|
18428
|
+
"format": "int64"
|
|
18429
|
+
},
|
|
18430
|
+
"cayman_bank": {
|
|
18431
|
+
"type": "integer",
|
|
18432
|
+
"format": "int64"
|
|
18433
|
+
},
|
|
18434
|
+
"piggy_bank": {
|
|
18435
|
+
"type": "integer",
|
|
18436
|
+
"format": "int64"
|
|
18437
|
+
},
|
|
18438
|
+
"loans": {
|
|
18439
|
+
"type": "integer",
|
|
18440
|
+
"format": "int64"
|
|
18441
|
+
},
|
|
18442
|
+
"unpaid_fees": {
|
|
18443
|
+
"type": "integer",
|
|
18444
|
+
"format": "int64"
|
|
18445
|
+
}
|
|
18446
|
+
},
|
|
18447
|
+
"type": "object"
|
|
18448
|
+
},
|
|
18449
|
+
"items": {
|
|
18450
|
+
"required": [
|
|
18451
|
+
"inventory",
|
|
18452
|
+
"display_case",
|
|
18453
|
+
"bazaar",
|
|
18454
|
+
"trades",
|
|
18455
|
+
"item_market",
|
|
18456
|
+
"auction_house",
|
|
18457
|
+
"enlisted_cars"
|
|
18458
|
+
],
|
|
18459
|
+
"properties": {
|
|
18460
|
+
"inventory": {
|
|
18461
|
+
"type": "integer",
|
|
18462
|
+
"format": "int64"
|
|
18463
|
+
},
|
|
18464
|
+
"display_case": {
|
|
18465
|
+
"type": "integer",
|
|
18466
|
+
"format": "int64"
|
|
18467
|
+
},
|
|
18468
|
+
"bazaar": {
|
|
18469
|
+
"type": "integer",
|
|
18470
|
+
"format": "int64"
|
|
18471
|
+
},
|
|
18472
|
+
"trades": {
|
|
18473
|
+
"type": "integer",
|
|
18474
|
+
"format": "int64"
|
|
18475
|
+
},
|
|
18476
|
+
"item_market": {
|
|
18477
|
+
"type": "integer",
|
|
18478
|
+
"format": "int64"
|
|
18479
|
+
},
|
|
18480
|
+
"auction_house": {
|
|
18481
|
+
"type": "integer",
|
|
18482
|
+
"format": "int64"
|
|
18483
|
+
},
|
|
18484
|
+
"enlisted_cars": {
|
|
18485
|
+
"type": "integer",
|
|
18486
|
+
"format": "int64"
|
|
18487
|
+
}
|
|
18488
|
+
},
|
|
18489
|
+
"type": "object"
|
|
18490
|
+
},
|
|
18491
|
+
"assets": {
|
|
18492
|
+
"required": [
|
|
18493
|
+
"property",
|
|
18494
|
+
"stock_market",
|
|
18495
|
+
"company"
|
|
18496
|
+
],
|
|
18497
|
+
"properties": {
|
|
18498
|
+
"property": {
|
|
18499
|
+
"type": "integer",
|
|
18500
|
+
"format": "int64"
|
|
18501
|
+
},
|
|
18502
|
+
"stock_market": {
|
|
18503
|
+
"type": "integer",
|
|
18504
|
+
"format": "int64"
|
|
18505
|
+
},
|
|
18506
|
+
"company": {
|
|
18507
|
+
"type": "integer",
|
|
18508
|
+
"format": "int64"
|
|
18509
|
+
}
|
|
18510
|
+
},
|
|
18511
|
+
"type": "object"
|
|
18512
|
+
},
|
|
18513
|
+
"points": {
|
|
18514
|
+
"type": "integer",
|
|
18515
|
+
"format": "int64"
|
|
18516
|
+
},
|
|
18517
|
+
"total": {
|
|
18518
|
+
"type": "integer",
|
|
18519
|
+
"format": "int64"
|
|
18520
|
+
},
|
|
18521
|
+
"timestamp": {
|
|
18522
|
+
"type": "integer",
|
|
18523
|
+
"format": "int32"
|
|
18524
|
+
}
|
|
18525
|
+
},
|
|
18526
|
+
"type": "object"
|
|
18527
|
+
}
|
|
18528
|
+
},
|
|
18529
|
+
"type": "object"
|
|
18530
|
+
},
|
|
18227
18531
|
"UserItemMod": {
|
|
18228
18532
|
"required": [
|
|
18229
18533
|
"id",
|
|
@@ -22636,6 +22940,7 @@
|
|
|
22636
22940
|
"messages",
|
|
22637
22941
|
"missions",
|
|
22638
22942
|
"money",
|
|
22943
|
+
"networth",
|
|
22639
22944
|
"newevents",
|
|
22640
22945
|
"newmessages",
|
|
22641
22946
|
"notifications",
|
|
@@ -22664,7 +22969,6 @@
|
|
|
22664
22969
|
"display",
|
|
22665
22970
|
"education",
|
|
22666
22971
|
"gym",
|
|
22667
|
-
"networth",
|
|
22668
22972
|
"perks"
|
|
22669
22973
|
]
|
|
22670
22974
|
},
|
|
@@ -34502,7 +34806,24 @@
|
|
|
34502
34806
|
"ApiTimestamp": {
|
|
34503
34807
|
"name": "timestamp",
|
|
34504
34808
|
"in": "query",
|
|
34505
|
-
"description": "Timestamp to bypass cache
|
|
34809
|
+
"description": "Timestamp to bypass cache",
|
|
34810
|
+
"required": false,
|
|
34811
|
+
"schema": {
|
|
34812
|
+
"oneOf": [
|
|
34813
|
+
{
|
|
34814
|
+
"type": "integer",
|
|
34815
|
+
"format": "int32"
|
|
34816
|
+
},
|
|
34817
|
+
{
|
|
34818
|
+
"type": "string"
|
|
34819
|
+
}
|
|
34820
|
+
]
|
|
34821
|
+
}
|
|
34822
|
+
},
|
|
34823
|
+
"ApiTimestampSpecificPointInTime": {
|
|
34824
|
+
"name": "timestamp",
|
|
34825
|
+
"in": "query",
|
|
34826
|
+
"description": "Timestamp to get the data in specific point in time",
|
|
34506
34827
|
"required": false,
|
|
34507
34828
|
"schema": {
|
|
34508
34829
|
"oneOf": [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.5.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"url": "git+https://github.com/Torn-Playground/tornapi-typescript.git"
|
|
7
7
|
},
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"generate-types": "tsc && node build/index.js"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@scalar/openapi-types": "^0.9.
|
|
12
|
+
"@scalar/openapi-types": "^0.9.4",
|
|
13
13
|
"@types/node": "^25.9.5",
|
|
14
14
|
"prettier": "^3.9.6",
|
|
15
15
|
"typeconv": "^2.3.1",
|