tornapi-typescript 5.4.1 → 5.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 CHANGED
@@ -81,6 +81,7 @@ export type TerritoryWarId = number;
81
81
  export type RaidWarId = number;
82
82
  export type ItemUid = number;
83
83
  export type UserId = number;
84
+ export type TradeId = number;
84
85
  export type StockId = number;
85
86
  export type DiscordId = string;
86
87
  export type UserDiscordPathId = UserId | DiscordId;
@@ -148,7 +149,7 @@ export type HonorTypeEnum = "attacking" | "camo" | "weapons" | "education" | "cr
148
149
  export type TornItemTypeEnum = "Alcohol" | "Armor" | "Artifact" | "Book" | "Booster" | "Candy" | "Car" | "Clothing" | "Collectible" | "Drug" | "Energy Drink" | "Enhancer" | "Flower" | "Jewelry" | "Material" | "Medical" | "Other" | "Plushie" | "Special" | "Supply Pack" | "Tool" | "Unused" | "Weapon";
149
150
  export type TornItemCategory = "All" | "Alcohol" | "Armor" | "Artifact" | "Book" | "Booster" | "Candy" | "Car" | "Clothing" | "Collectible" | "Defensive" | "Drug" | "Energy Drink" | "Enhancer" | "Flower" | "Jewelry" | "Material" | "Medical" | "Melee" | "Other" | "Plushie" | "Primary" | "Secondary" | "Special" | "Supply Pack" | "Temporary" | "Tool" | "Unused" | "Weapon";
150
151
  export type TornItemArmorCoveragePartEnum = "Full Body" | "Heart" | "Stomach" | "Chest" | "Arm" | "Groin" | "Leg" | "Throat" | "Hand" | "Foot" | "Head";
151
- export interface AttackPlayerFaction {
152
+ export interface UserFactionBasic {
152
153
  id: FactionId;
153
154
  name: string;
154
155
  }
@@ -156,7 +157,7 @@ export interface AttackPlayer {
156
157
  id: UserId;
157
158
  name: string;
158
159
  level: number;
159
- faction: AttackPlayerFaction | null;
160
+ faction: UserFactionBasic | null;
160
161
  }
161
162
  export interface AttackPlayerSimplified {
162
163
  id: UserId;
@@ -486,6 +487,78 @@ export interface ErrorCategorySelectionUnavailableForInteractionLogs {
486
487
  error: string;
487
488
  }
488
489
  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;
490
+ export interface UserTradesResponse {
491
+ trades: UserTrade[];
492
+ _metadata: RequestMetadataWithLinks;
493
+ }
494
+ export interface UserTradeResponse {
495
+ trade: UserTradeDetailed;
496
+ }
497
+ export interface UserTrade {
498
+ id: TradeId;
499
+ timestamp: number;
500
+ user: UserTradeParticipant;
501
+ trader: UserTradeParticipant;
502
+ }
503
+ export interface UserTradeParticipant {
504
+ id: UserId;
505
+ name: string;
506
+ summary: string[];
507
+ }
508
+ export interface UserTradeDetailed extends UserTrade {
509
+ items: TradeItem[];
510
+ }
511
+ export interface TradeItemNap {
512
+ user_id: UserId;
513
+ type: "NAP";
514
+ details: {
515
+ days: number;
516
+ factions: UserFactionBasic[];
517
+ };
518
+ }
519
+ export interface TradeItemMoney {
520
+ user_id: UserId;
521
+ type: "Money";
522
+ details: {
523
+ amount: number;
524
+ };
525
+ }
526
+ export interface TradeItemFaction {
527
+ user_id: UserId;
528
+ type: "Faction";
529
+ details: {
530
+ id: FactionId;
531
+ name: string;
532
+ respect: number;
533
+ };
534
+ }
535
+ export interface TradeItemProperty {
536
+ user_id: UserId;
537
+ type: "Property";
538
+ details: {
539
+ id: PropertyId;
540
+ happiness: number;
541
+ };
542
+ }
543
+ export interface TradeItemCompany {
544
+ user_id: UserId;
545
+ type: "Company";
546
+ details: {
547
+ id: CompanyId;
548
+ name: string;
549
+ value: string;
550
+ };
551
+ }
552
+ export interface TradeItemItem {
553
+ user_id: UserId;
554
+ type: "Item";
555
+ details: {
556
+ id: ItemId;
557
+ uid: ItemUid | null;
558
+ amount: number;
559
+ };
560
+ }
561
+ export type TradeItem = TradeItemMoney | TradeItemItem | TradeItemFaction | TradeItemCompany | TradeItemProperty | TradeItemNap;
489
562
  export interface UserStockTransaction {
490
563
  id: number;
491
564
  shares: number;
@@ -6945,6 +7018,14 @@ export interface UserV2 extends BaseSchema {
6945
7018
  response: UserStocksResponse;
6946
7019
  params: "timestamp";
6947
7020
  };
7021
+ trades: {
7022
+ response: UserTradesResponse;
7023
+ params: "striptags" | "limit" | "sort" | "to" | "from" | "timestamp";
7024
+ };
7025
+ trade: {
7026
+ response: UserTradeResponse;
7027
+ params: "id" | "striptags" | "timestamp";
7028
+ };
6948
7029
  travel: {
6949
7030
  response: UserTravelResponse;
6950
7031
  params: "timestamp";
package/dist/index.ts CHANGED
@@ -4779,6 +4779,8 @@ export type ItemUid = number;
4779
4779
 
4780
4780
  export type UserId = number;
4781
4781
 
4782
+ export type TradeId = number;
4783
+
4782
4784
  export type StockId = number;
4783
4785
 
4784
4786
  export type DiscordId = string;
@@ -5075,7 +5077,7 @@ export type TornItemArmorCoveragePartEnum =
5075
5077
  | "Foot"
5076
5078
  | "Head";
5077
5079
 
5078
- export interface AttackPlayerFaction {
5080
+ export interface UserFactionBasic {
5079
5081
  id: FactionId;
5080
5082
  name: string;
5081
5083
  }
@@ -5084,7 +5086,7 @@ export interface AttackPlayer {
5084
5086
  id: UserId;
5085
5087
  name: string;
5086
5088
  level: number;
5087
- faction: AttackPlayerFaction | null;
5089
+ faction: UserFactionBasic | null;
5088
5090
  }
5089
5091
 
5090
5092
  export interface AttackPlayerSimplified {
@@ -5517,6 +5519,96 @@ export type ApiError =
5517
5519
  | ErrorIncorrectLogId
5518
5520
  | ErrorCategorySelectionUnavailableForInteractionLogs;
5519
5521
 
5522
+ export interface UserTradesResponse {
5523
+ trades: UserTrade[];
5524
+ _metadata: RequestMetadataWithLinks;
5525
+ }
5526
+
5527
+ export interface UserTradeResponse {
5528
+ trade: UserTradeDetailed;
5529
+ }
5530
+
5531
+ export interface UserTrade {
5532
+ id: TradeId;
5533
+ timestamp: number;
5534
+ user: UserTradeParticipant;
5535
+ trader: UserTradeParticipant;
5536
+ }
5537
+
5538
+ export interface UserTradeParticipant {
5539
+ id: UserId;
5540
+ name: string;
5541
+ summary: string[];
5542
+ }
5543
+
5544
+ export interface UserTradeDetailed extends UserTrade {
5545
+ items: TradeItem[];
5546
+ }
5547
+
5548
+ export interface TradeItemNap {
5549
+ user_id: UserId;
5550
+ type: "NAP";
5551
+ details: {
5552
+ days: number;
5553
+ factions: UserFactionBasic[];
5554
+ };
5555
+ }
5556
+
5557
+ export interface TradeItemMoney {
5558
+ user_id: UserId;
5559
+ type: "Money";
5560
+ details: {
5561
+ amount: number;
5562
+ };
5563
+ }
5564
+
5565
+ export interface TradeItemFaction {
5566
+ user_id: UserId;
5567
+ type: "Faction";
5568
+ details: {
5569
+ id: FactionId;
5570
+ name: string;
5571
+ respect: number;
5572
+ };
5573
+ }
5574
+
5575
+ export interface TradeItemProperty {
5576
+ user_id: UserId;
5577
+ type: "Property";
5578
+ details: {
5579
+ id: PropertyId;
5580
+ happiness: number;
5581
+ };
5582
+ }
5583
+
5584
+ export interface TradeItemCompany {
5585
+ user_id: UserId;
5586
+ type: "Company";
5587
+ details: {
5588
+ id: CompanyId;
5589
+ name: string;
5590
+ value: string;
5591
+ };
5592
+ }
5593
+
5594
+ export interface TradeItemItem {
5595
+ user_id: UserId;
5596
+ type: "Item";
5597
+ details: {
5598
+ id: ItemId;
5599
+ uid: ItemUid | null;
5600
+ amount: number;
5601
+ };
5602
+ }
5603
+
5604
+ export type TradeItem =
5605
+ | TradeItemMoney
5606
+ | TradeItemItem
5607
+ | TradeItemFaction
5608
+ | TradeItemCompany
5609
+ | TradeItemProperty
5610
+ | TradeItemNap;
5611
+
5520
5612
  export interface UserStockTransaction {
5521
5613
  id: number;
5522
5614
  shares: number;
@@ -12818,6 +12910,20 @@ export interface UserV2 extends BaseSchema {
12818
12910
  response: UserStocksResponse;
12819
12911
  params: "timestamp";
12820
12912
  };
12913
+ trades: {
12914
+ response: UserTradesResponse;
12915
+ params:
12916
+ | "striptags"
12917
+ | "limit"
12918
+ | "sort"
12919
+ | "to"
12920
+ | "from"
12921
+ | "timestamp";
12922
+ };
12923
+ trade: {
12924
+ response: UserTradeResponse;
12925
+ params: "id" | "striptags" | "timestamp";
12926
+ };
12821
12927
  travel: {
12822
12928
  response: UserTravelResponse;
12823
12929
  params: "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": "5.4.1"
6
+ "version": "5.5.0"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -3110,6 +3110,111 @@
3110
3110
  "x-stability": "Unstable"
3111
3111
  }
3112
3112
  },
3113
+ "/user/trades": {
3114
+ "get": {
3115
+ "tags": [
3116
+ "User"
3117
+ ],
3118
+ "summary": "Get your trades",
3119
+ "description": "Requires limited access key. <br>",
3120
+ "operationId": "getMyTrades",
3121
+ "parameters": [
3122
+ {
3123
+ "$ref": "#/components/parameters/ApiStripTagsTrue"
3124
+ },
3125
+ {
3126
+ "$ref": "#/components/parameters/ApiLimit100"
3127
+ },
3128
+ {
3129
+ "$ref": "#/components/parameters/ApiSortDesc"
3130
+ },
3131
+ {
3132
+ "$ref": "#/components/parameters/ApiTo"
3133
+ },
3134
+ {
3135
+ "$ref": "#/components/parameters/ApiFrom"
3136
+ },
3137
+ {
3138
+ "$ref": "#/components/parameters/ApiTimestamp"
3139
+ },
3140
+ {
3141
+ "$ref": "#/components/parameters/ApiComment"
3142
+ },
3143
+ {
3144
+ "$ref": "#/components/parameters/ApiKeyLimited"
3145
+ }
3146
+ ],
3147
+ "responses": {
3148
+ "200": {
3149
+ "description": "Successful operation",
3150
+ "content": {
3151
+ "application/json": {
3152
+ "schema": {
3153
+ "$ref": "#/components/schemas/UserTradesResponse"
3154
+ }
3155
+ }
3156
+ }
3157
+ }
3158
+ },
3159
+ "security": [
3160
+ {
3161
+ "api_key": []
3162
+ }
3163
+ ],
3164
+ "x-stability": "Unstable"
3165
+ }
3166
+ },
3167
+ "/user/{tradeId}/trade": {
3168
+ "get": {
3169
+ "tags": [
3170
+ "User"
3171
+ ],
3172
+ "summary": "Get your detailed trade",
3173
+ "description": "Requires limited access key. <br>Only possible to get trades you participated in.",
3174
+ "operationId": "getMyDetailedTrade",
3175
+ "parameters": [
3176
+ {
3177
+ "name": "id",
3178
+ "in": "path",
3179
+ "description": "Trade id",
3180
+ "required": true,
3181
+ "schema": {
3182
+ "$ref": "#/components/schemas/TradeId"
3183
+ }
3184
+ },
3185
+ {
3186
+ "$ref": "#/components/parameters/ApiStripTagsTrue"
3187
+ },
3188
+ {
3189
+ "$ref": "#/components/parameters/ApiTimestamp"
3190
+ },
3191
+ {
3192
+ "$ref": "#/components/parameters/ApiComment"
3193
+ },
3194
+ {
3195
+ "$ref": "#/components/parameters/ApiKeyLimited"
3196
+ }
3197
+ ],
3198
+ "responses": {
3199
+ "200": {
3200
+ "description": "Successful operation",
3201
+ "content": {
3202
+ "application/json": {
3203
+ "schema": {
3204
+ "$ref": "#/components/schemas/UserTradeResponse"
3205
+ }
3206
+ }
3207
+ }
3208
+ }
3209
+ },
3210
+ "security": [
3211
+ {
3212
+ "api_key": []
3213
+ }
3214
+ ],
3215
+ "x-stability": "Unstable"
3216
+ }
3217
+ },
3113
3218
  "/user/travel": {
3114
3219
  "get": {
3115
3220
  "tags": [
@@ -3380,6 +3485,9 @@
3380
3485
  {
3381
3486
  "$ref": "#/components/schemas/TornCrimeId"
3382
3487
  },
3488
+ {
3489
+ "$ref": "#/components/schemas/TradeId"
3490
+ },
3383
3491
  {
3384
3492
  "type": "string"
3385
3493
  }
@@ -3630,6 +3738,12 @@
3630
3738
  {
3631
3739
  "$ref": "#/components/schemas/UserBattleStatsResponse"
3632
3740
  },
3741
+ {
3742
+ "$ref": "#/components/schemas/UserTradeResponse"
3743
+ },
3744
+ {
3745
+ "$ref": "#/components/schemas/UserTradesResponse"
3746
+ },
3633
3747
  {
3634
3748
  "$ref": "#/components/schemas/UserNewEventsResponse"
3635
3749
  },
@@ -14784,6 +14898,10 @@
14784
14898
  "type": "integer",
14785
14899
  "format": "int32"
14786
14900
  },
14901
+ "TradeId": {
14902
+ "type": "integer",
14903
+ "format": "int64"
14904
+ },
14787
14905
  "StockId": {
14788
14906
  "type": "integer",
14789
14907
  "format": "int32"
@@ -15253,7 +15371,7 @@
15253
15371
  "Head"
15254
15372
  ]
15255
15373
  },
15256
- "AttackPlayerFaction": {
15374
+ "UserFactionBasic": {
15257
15375
  "required": [
15258
15376
  "id",
15259
15377
  "name"
@@ -15289,7 +15407,7 @@
15289
15407
  "faction": {
15290
15408
  "oneOf": [
15291
15409
  {
15292
- "$ref": "#/components/schemas/AttackPlayerFaction"
15410
+ "$ref": "#/components/schemas/UserFactionBasic"
15293
15411
  },
15294
15412
  {
15295
15413
  "type": "null"
@@ -17016,6 +17134,352 @@
17016
17134
  }
17017
17135
  ]
17018
17136
  },
17137
+ "UserTradesResponse": {
17138
+ "required": [
17139
+ "trades",
17140
+ "_metadata"
17141
+ ],
17142
+ "properties": {
17143
+ "trades": {
17144
+ "type": "array",
17145
+ "items": {
17146
+ "$ref": "#/components/schemas/UserTrade"
17147
+ }
17148
+ },
17149
+ "_metadata": {
17150
+ "$ref": "#/components/schemas/RequestMetadataWithLinks"
17151
+ }
17152
+ },
17153
+ "type": "object"
17154
+ },
17155
+ "UserTradeResponse": {
17156
+ "required": [
17157
+ "trade"
17158
+ ],
17159
+ "properties": {
17160
+ "trade": {
17161
+ "$ref": "#/components/schemas/UserTradeDetailed"
17162
+ }
17163
+ },
17164
+ "type": "object"
17165
+ },
17166
+ "UserTrade": {
17167
+ "required": [
17168
+ "id",
17169
+ "timestamp",
17170
+ "user",
17171
+ "trader",
17172
+ "items"
17173
+ ],
17174
+ "properties": {
17175
+ "id": {
17176
+ "$ref": "#/components/schemas/TradeId"
17177
+ },
17178
+ "timestamp": {
17179
+ "type": "integer",
17180
+ "format": "int32"
17181
+ },
17182
+ "user": {
17183
+ "$ref": "#/components/schemas/UserTradeParticipant"
17184
+ },
17185
+ "trader": {
17186
+ "$ref": "#/components/schemas/UserTradeParticipant"
17187
+ }
17188
+ },
17189
+ "type": "object"
17190
+ },
17191
+ "UserTradeParticipant": {
17192
+ "required": [
17193
+ "id",
17194
+ "name",
17195
+ "summary"
17196
+ ],
17197
+ "properties": {
17198
+ "id": {
17199
+ "$ref": "#/components/schemas/UserId"
17200
+ },
17201
+ "name": {
17202
+ "type": "string"
17203
+ },
17204
+ "summary": {
17205
+ "type": "array",
17206
+ "items": {
17207
+ "type": "string"
17208
+ }
17209
+ }
17210
+ },
17211
+ "type": "object"
17212
+ },
17213
+ "UserTradeDetailed": {
17214
+ "allOf": [
17215
+ {
17216
+ "$ref": "#/components/schemas/UserTrade"
17217
+ },
17218
+ {
17219
+ "required": [
17220
+ "items"
17221
+ ],
17222
+ "properties": {
17223
+ "items": {
17224
+ "type": "array",
17225
+ "items": {
17226
+ "$ref": "#/components/schemas/TradeItem"
17227
+ }
17228
+ }
17229
+ },
17230
+ "type": "object"
17231
+ }
17232
+ ]
17233
+ },
17234
+ "TradeItemNap": {
17235
+ "required": [
17236
+ "user_id",
17237
+ "type",
17238
+ "details"
17239
+ ],
17240
+ "properties": {
17241
+ "user_id": {
17242
+ "$ref": "#/components/schemas/UserId"
17243
+ },
17244
+ "type": {
17245
+ "type": "string",
17246
+ "enum": [
17247
+ "NAP"
17248
+ ]
17249
+ },
17250
+ "details": {
17251
+ "required": [
17252
+ "days",
17253
+ "factions"
17254
+ ],
17255
+ "properties": {
17256
+ "days": {
17257
+ "type": "integer",
17258
+ "format": "int32"
17259
+ },
17260
+ "factions": {
17261
+ "type": "array",
17262
+ "items": {
17263
+ "$ref": "#/components/schemas/UserFactionBasic"
17264
+ }
17265
+ }
17266
+ },
17267
+ "type": "object"
17268
+ }
17269
+ },
17270
+ "type": "object"
17271
+ },
17272
+ "TradeItemMoney": {
17273
+ "required": [
17274
+ "user_id",
17275
+ "type",
17276
+ "details"
17277
+ ],
17278
+ "properties": {
17279
+ "user_id": {
17280
+ "$ref": "#/components/schemas/UserId"
17281
+ },
17282
+ "type": {
17283
+ "type": "string",
17284
+ "enum": [
17285
+ "Money"
17286
+ ]
17287
+ },
17288
+ "details": {
17289
+ "required": [
17290
+ "amount"
17291
+ ],
17292
+ "properties": {
17293
+ "amount": {
17294
+ "type": "integer",
17295
+ "format": "int64"
17296
+ }
17297
+ },
17298
+ "type": "object"
17299
+ }
17300
+ },
17301
+ "type": "object"
17302
+ },
17303
+ "TradeItemFaction": {
17304
+ "required": [
17305
+ "user_id",
17306
+ "type",
17307
+ "details"
17308
+ ],
17309
+ "properties": {
17310
+ "user_id": {
17311
+ "$ref": "#/components/schemas/UserId"
17312
+ },
17313
+ "type": {
17314
+ "type": "string",
17315
+ "enum": [
17316
+ "Faction"
17317
+ ]
17318
+ },
17319
+ "details": {
17320
+ "required": [
17321
+ "id",
17322
+ "name",
17323
+ "respect"
17324
+ ],
17325
+ "properties": {
17326
+ "id": {
17327
+ "$ref": "#/components/schemas/FactionId"
17328
+ },
17329
+ "name": {
17330
+ "type": "string"
17331
+ },
17332
+ "respect": {
17333
+ "type": "integer",
17334
+ "format": "int32"
17335
+ }
17336
+ },
17337
+ "type": "object"
17338
+ }
17339
+ },
17340
+ "type": "object"
17341
+ },
17342
+ "TradeItemProperty": {
17343
+ "required": [
17344
+ "user_id",
17345
+ "type",
17346
+ "details"
17347
+ ],
17348
+ "properties": {
17349
+ "user_id": {
17350
+ "$ref": "#/components/schemas/UserId"
17351
+ },
17352
+ "type": {
17353
+ "type": "string",
17354
+ "enum": [
17355
+ "Property"
17356
+ ]
17357
+ },
17358
+ "details": {
17359
+ "required": [
17360
+ "id",
17361
+ "happiness"
17362
+ ],
17363
+ "properties": {
17364
+ "id": {
17365
+ "$ref": "#/components/schemas/PropertyId"
17366
+ },
17367
+ "happiness": {
17368
+ "type": "integer",
17369
+ "format": "int32"
17370
+ }
17371
+ },
17372
+ "type": "object"
17373
+ }
17374
+ },
17375
+ "type": "object"
17376
+ },
17377
+ "TradeItemCompany": {
17378
+ "required": [
17379
+ "user_id",
17380
+ "type",
17381
+ "details"
17382
+ ],
17383
+ "properties": {
17384
+ "user_id": {
17385
+ "$ref": "#/components/schemas/UserId"
17386
+ },
17387
+ "type": {
17388
+ "type": "string",
17389
+ "enum": [
17390
+ "Company"
17391
+ ]
17392
+ },
17393
+ "details": {
17394
+ "required": [
17395
+ "id",
17396
+ "name",
17397
+ "value"
17398
+ ],
17399
+ "properties": {
17400
+ "id": {
17401
+ "$ref": "#/components/schemas/CompanyId"
17402
+ },
17403
+ "name": {
17404
+ "type": "string"
17405
+ },
17406
+ "value": {
17407
+ "type": "string"
17408
+ }
17409
+ },
17410
+ "type": "object"
17411
+ }
17412
+ },
17413
+ "type": "object"
17414
+ },
17415
+ "TradeItemItem": {
17416
+ "required": [
17417
+ "user_id",
17418
+ "type",
17419
+ "details"
17420
+ ],
17421
+ "properties": {
17422
+ "user_id": {
17423
+ "$ref": "#/components/schemas/UserId"
17424
+ },
17425
+ "type": {
17426
+ "type": "string",
17427
+ "enum": [
17428
+ "Item"
17429
+ ]
17430
+ },
17431
+ "details": {
17432
+ "required": [
17433
+ "id",
17434
+ "uid",
17435
+ "amount"
17436
+ ],
17437
+ "properties": {
17438
+ "id": {
17439
+ "$ref": "#/components/schemas/ItemId"
17440
+ },
17441
+ "uid": {
17442
+ "oneOf": [
17443
+ {
17444
+ "$ref": "#/components/schemas/ItemUid"
17445
+ },
17446
+ {
17447
+ "type": "null"
17448
+ }
17449
+ ]
17450
+ },
17451
+ "amount": {
17452
+ "type": "integer",
17453
+ "format": "int64"
17454
+ }
17455
+ },
17456
+ "type": "object"
17457
+ }
17458
+ },
17459
+ "type": "object"
17460
+ },
17461
+ "TradeItem": {
17462
+ "oneOf": [
17463
+ {
17464
+ "$ref": "#/components/schemas/TradeItemMoney"
17465
+ },
17466
+ {
17467
+ "$ref": "#/components/schemas/TradeItemItem"
17468
+ },
17469
+ {
17470
+ "$ref": "#/components/schemas/TradeItemFaction"
17471
+ },
17472
+ {
17473
+ "$ref": "#/components/schemas/TradeItemCompany"
17474
+ },
17475
+ {
17476
+ "$ref": "#/components/schemas/TradeItemProperty"
17477
+ },
17478
+ {
17479
+ "$ref": "#/components/schemas/TradeItemNap"
17480
+ }
17481
+ ]
17482
+ },
17019
17483
  "UserStockTransaction": {
17020
17484
  "required": [
17021
17485
  "id",
@@ -20835,8 +21299,10 @@
20835
21299
  "revivesfull",
20836
21300
  "skills",
20837
21301
  "stocks",
20838
- "timestamp",
21302
+ "trades",
21303
+ "trade",
20839
21304
  "travel",
21305
+ "timestamp",
20840
21306
  "weaponexp",
20841
21307
  "workstats",
20842
21308
  "bazaar",
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "tornapi-typescript",
3
3
  "type": "module",
4
- "version": "5.4.1",
4
+ "version": "5.5.0",
5
5
  "scripts": {
6
6
  "generate-types": "tsc && node build/index.js"
7
7
  },
8
8
  "devDependencies": {
9
- "@scalar/openapi-types": "^0.5.3",
10
- "@types/node": "^24.10.13",
9
+ "@scalar/openapi-types": "^0.6.0",
10
+ "@types/node": "^24.12.0",
11
11
  "prettier": "^3.8.1",
12
12
  "typeconv": "^2.3.1",
13
13
  "typescript": "^5.9.3"