tornapi-typescript 3.0.8 → 3.0.10

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/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": "3.0.8"
6
+ "version": "3.0.10"
7
7
  },
8
8
  "servers": [
9
9
  {
@@ -976,6 +976,45 @@
976
976
  "x-stability": "Stable"
977
977
  }
978
978
  },
979
+ "/user/honors": {
980
+ "get": {
981
+ "tags": [
982
+ "User"
983
+ ],
984
+ "summary": "Get your achieved honors",
985
+ "description": "Requires minimal access key. <br>",
986
+ "operationId": "03bcd69dc16d287da5a5c1239b1e35ae",
987
+ "parameters": [
988
+ {
989
+ "$ref": "#/components/parameters/ApiTimestamp"
990
+ },
991
+ {
992
+ "$ref": "#/components/parameters/ApiComment"
993
+ },
994
+ {
995
+ "$ref": "#/components/parameters/ApiKeyPublic"
996
+ }
997
+ ],
998
+ "responses": {
999
+ "200": {
1000
+ "description": "Successful operation",
1001
+ "content": {
1002
+ "application/json": {
1003
+ "schema": {
1004
+ "$ref": "#/components/schemas/UserHonorsResponse"
1005
+ }
1006
+ }
1007
+ }
1008
+ }
1009
+ },
1010
+ "security": [
1011
+ {
1012
+ "api_key": []
1013
+ }
1014
+ ],
1015
+ "x-stability": "Stable"
1016
+ }
1017
+ },
979
1018
  "/user/itemmarket": {
980
1019
  "get": {
981
1020
  "tags": [
@@ -1224,6 +1263,84 @@
1224
1263
  "x-stability": "Unstable"
1225
1264
  }
1226
1265
  },
1266
+ "/user/medals": {
1267
+ "get": {
1268
+ "tags": [
1269
+ "User"
1270
+ ],
1271
+ "summary": "Get your achieved medals",
1272
+ "description": "Requires minimal access key. <br>",
1273
+ "operationId": "5c1d150273feb0c553f6cfb96071bf1b",
1274
+ "parameters": [
1275
+ {
1276
+ "$ref": "#/components/parameters/ApiTimestamp"
1277
+ },
1278
+ {
1279
+ "$ref": "#/components/parameters/ApiComment"
1280
+ },
1281
+ {
1282
+ "$ref": "#/components/parameters/ApiKeyPublic"
1283
+ }
1284
+ ],
1285
+ "responses": {
1286
+ "200": {
1287
+ "description": "Successful operation",
1288
+ "content": {
1289
+ "application/json": {
1290
+ "schema": {
1291
+ "$ref": "#/components/schemas/UserMedalsResponse"
1292
+ }
1293
+ }
1294
+ }
1295
+ }
1296
+ },
1297
+ "security": [
1298
+ {
1299
+ "api_key": []
1300
+ }
1301
+ ],
1302
+ "x-stability": "Stable"
1303
+ }
1304
+ },
1305
+ "/user/merits": {
1306
+ "get": {
1307
+ "tags": [
1308
+ "User"
1309
+ ],
1310
+ "summary": "Get your merits",
1311
+ "description": "Requires minimal access key. <br>",
1312
+ "operationId": "af17d832a1ff8c1d327f262886b39fec",
1313
+ "parameters": [
1314
+ {
1315
+ "$ref": "#/components/parameters/ApiTimestamp"
1316
+ },
1317
+ {
1318
+ "$ref": "#/components/parameters/ApiComment"
1319
+ },
1320
+ {
1321
+ "$ref": "#/components/parameters/ApiKeyPublic"
1322
+ }
1323
+ ],
1324
+ "responses": {
1325
+ "200": {
1326
+ "description": "Successful operation",
1327
+ "content": {
1328
+ "application/json": {
1329
+ "schema": {
1330
+ "$ref": "#/components/schemas/UserMeritsResponse"
1331
+ }
1332
+ }
1333
+ }
1334
+ }
1335
+ },
1336
+ "security": [
1337
+ {
1338
+ "api_key": []
1339
+ }
1340
+ ],
1341
+ "x-stability": "Stable"
1342
+ }
1343
+ },
1227
1344
  "/user/money": {
1228
1345
  "get": {
1229
1346
  "tags": [
@@ -1458,6 +1575,9 @@
1458
1575
  "description": "Requires public access key. <br>Extended responses are available when requesting the data with Limited or higher access keys.",
1459
1576
  "operationId": "574a416ca46717830f03a2f685955b87",
1460
1577
  "parameters": [
1578
+ {
1579
+ "$ref": "#/components/parameters/ApiFiltersUserProperties"
1580
+ },
1461
1581
  {
1462
1582
  "$ref": "#/components/parameters/ApiOffset"
1463
1583
  },
@@ -1512,6 +1632,9 @@
1512
1632
  "$ref": "#/components/schemas/UserId"
1513
1633
  }
1514
1634
  },
1635
+ {
1636
+ "$ref": "#/components/parameters/ApiFiltersUserProperties"
1637
+ },
1515
1638
  {
1516
1639
  "$ref": "#/components/parameters/ApiOffset"
1517
1640
  },
@@ -2158,7 +2281,7 @@
2158
2281
  }
2159
2282
  },
2160
2283
  {
2161
- "$ref": "#/components/parameters/ApiFiltersIncomingOutgoing"
2284
+ "$ref": "#/components/parameters/ApiFiltersUser"
2162
2285
  },
2163
2286
  {
2164
2287
  "$ref": "#/components/parameters/ApiStripTags"
@@ -4796,14 +4919,23 @@
4796
4919
  "Forum"
4797
4920
  ],
4798
4921
  "summary": "Get specific forum thread posts",
4799
- "description": "Requires public access key. <br>Returns 20 posts per page for a specific thread.",
4922
+ "description": "Requires public access key. <br>Returns 20 posts per page for a specific thread. <br> By default, it uses 'offset', but it's possible to filter posts with 'from' & 'to' parameters.",
4800
4923
  "operationId": "9c5eeb1aebb102b7c62fab11974c359a",
4801
4924
  "parameters": [
4925
+ {
4926
+ "$ref": "#/components/parameters/ApiStripTagsTrue"
4927
+ },
4802
4928
  {
4803
4929
  "$ref": "#/components/parameters/ApiOffsetNoDefault"
4804
4930
  },
4805
4931
  {
4806
- "$ref": "#/components/parameters/ApiStripTagsTrue"
4932
+ "$ref": "#/components/parameters/ApiSort"
4933
+ },
4934
+ {
4935
+ "$ref": "#/components/parameters/ApiFrom"
4936
+ },
4937
+ {
4938
+ "$ref": "#/components/parameters/ApiTo"
4807
4939
  },
4808
4940
  {
4809
4941
  "name": "threadId",
@@ -6815,6 +6947,98 @@
6815
6947
  "x-stability": "Unstable"
6816
6948
  }
6817
6949
  },
6950
+ "/torn/honors": {
6951
+ "get": {
6952
+ "tags": [
6953
+ "Torn"
6954
+ ],
6955
+ "summary": "Get all honors",
6956
+ "description": "Requires public access key. <br>",
6957
+ "operationId": "4b7322594732b4e263f2e612f648e6a4",
6958
+ "parameters": [
6959
+ {
6960
+ "$ref": "#/components/parameters/ApiTimestamp"
6961
+ },
6962
+ {
6963
+ "$ref": "#/components/parameters/ApiComment"
6964
+ },
6965
+ {
6966
+ "$ref": "#/components/parameters/ApiKeyPublic"
6967
+ }
6968
+ ],
6969
+ "responses": {
6970
+ "200": {
6971
+ "description": "Successful operation",
6972
+ "content": {
6973
+ "application/json": {
6974
+ "schema": {
6975
+ "$ref": "#/components/schemas/TornHonorsResponse"
6976
+ }
6977
+ }
6978
+ }
6979
+ }
6980
+ },
6981
+ "security": [
6982
+ {
6983
+ "api_key": []
6984
+ }
6985
+ ],
6986
+ "x-stability": "Stable"
6987
+ }
6988
+ },
6989
+ "/torn/{ids}/honors": {
6990
+ "get": {
6991
+ "tags": [
6992
+ "Torn"
6993
+ ],
6994
+ "summary": "Get specific honors",
6995
+ "description": "Requires public access key. <br>",
6996
+ "operationId": "bdbbefa4dc1cd7f146f500816ccbec1a",
6997
+ "parameters": [
6998
+ {
6999
+ "name": "ids",
7000
+ "in": "path",
7001
+ "description": "Honor id or a list of honor ids (comma separated)",
7002
+ "required": true,
7003
+ "style": "form",
7004
+ "explode": false,
7005
+ "schema": {
7006
+ "type": "array",
7007
+ "items": {
7008
+ "$ref": "#/components/schemas/HonorId"
7009
+ }
7010
+ }
7011
+ },
7012
+ {
7013
+ "$ref": "#/components/parameters/ApiTimestamp"
7014
+ },
7015
+ {
7016
+ "$ref": "#/components/parameters/ApiComment"
7017
+ },
7018
+ {
7019
+ "$ref": "#/components/parameters/ApiKeyPublic"
7020
+ }
7021
+ ],
7022
+ "responses": {
7023
+ "200": {
7024
+ "description": "Successful operation",
7025
+ "content": {
7026
+ "application/json": {
7027
+ "schema": {
7028
+ "$ref": "#/components/schemas/TornHonorsResponse"
7029
+ }
7030
+ }
7031
+ }
7032
+ }
7033
+ },
7034
+ "security": [
7035
+ {
7036
+ "api_key": []
7037
+ }
7038
+ ],
7039
+ "x-stability": "Stable"
7040
+ }
7041
+ },
6818
7042
  "/torn/hof": {
6819
7043
  "get": {
6820
7044
  "tags": [
@@ -7180,6 +7404,137 @@
7180
7404
  "x-stability": "Stable"
7181
7405
  }
7182
7406
  },
7407
+ "/torn/medals": {
7408
+ "get": {
7409
+ "tags": [
7410
+ "Torn"
7411
+ ],
7412
+ "summary": "Get all medals",
7413
+ "description": "Requires public access key. <br>",
7414
+ "operationId": "c6e00a242c309a53a98852b225de5e0b",
7415
+ "parameters": [
7416
+ {
7417
+ "$ref": "#/components/parameters/ApiTimestamp"
7418
+ },
7419
+ {
7420
+ "$ref": "#/components/parameters/ApiComment"
7421
+ },
7422
+ {
7423
+ "$ref": "#/components/parameters/ApiKeyPublic"
7424
+ }
7425
+ ],
7426
+ "responses": {
7427
+ "200": {
7428
+ "description": "Successful operation",
7429
+ "content": {
7430
+ "application/json": {
7431
+ "schema": {
7432
+ "$ref": "#/components/schemas/TornMedalsResponse"
7433
+ }
7434
+ }
7435
+ }
7436
+ }
7437
+ },
7438
+ "security": [
7439
+ {
7440
+ "api_key": []
7441
+ }
7442
+ ],
7443
+ "x-stability": "Stable"
7444
+ }
7445
+ },
7446
+ "/torn/{ids}/medals": {
7447
+ "get": {
7448
+ "tags": [
7449
+ "Torn"
7450
+ ],
7451
+ "summary": "Get specific medals",
7452
+ "description": "Requires public access key. <br>",
7453
+ "operationId": "a2f817c8fb95707aa71a7b28bed08a56",
7454
+ "parameters": [
7455
+ {
7456
+ "name": "ids",
7457
+ "in": "path",
7458
+ "description": "Medal id or a list of medal ids (comma separated)",
7459
+ "required": true,
7460
+ "style": "form",
7461
+ "explode": false,
7462
+ "schema": {
7463
+ "type": "array",
7464
+ "items": {
7465
+ "$ref": "#/components/schemas/MedalId"
7466
+ }
7467
+ }
7468
+ },
7469
+ {
7470
+ "$ref": "#/components/parameters/ApiTimestamp"
7471
+ },
7472
+ {
7473
+ "$ref": "#/components/parameters/ApiComment"
7474
+ },
7475
+ {
7476
+ "$ref": "#/components/parameters/ApiKeyPublic"
7477
+ }
7478
+ ],
7479
+ "responses": {
7480
+ "200": {
7481
+ "description": "Successful operation",
7482
+ "content": {
7483
+ "application/json": {
7484
+ "schema": {
7485
+ "$ref": "#/components/schemas/TornMedalsResponse"
7486
+ }
7487
+ }
7488
+ }
7489
+ }
7490
+ },
7491
+ "security": [
7492
+ {
7493
+ "api_key": []
7494
+ }
7495
+ ],
7496
+ "x-stability": "Stable"
7497
+ }
7498
+ },
7499
+ "/torn/merits": {
7500
+ "get": {
7501
+ "tags": [
7502
+ "Torn"
7503
+ ],
7504
+ "summary": "Get all merits",
7505
+ "description": "Requires public access key. <br>",
7506
+ "operationId": "06198712e3cfdee6b3d5ea11fb6754ef",
7507
+ "parameters": [
7508
+ {
7509
+ "$ref": "#/components/parameters/ApiTimestamp"
7510
+ },
7511
+ {
7512
+ "$ref": "#/components/parameters/ApiComment"
7513
+ },
7514
+ {
7515
+ "$ref": "#/components/parameters/ApiKeyPublic"
7516
+ }
7517
+ ],
7518
+ "responses": {
7519
+ "200": {
7520
+ "description": "Successful operation",
7521
+ "content": {
7522
+ "application/json": {
7523
+ "schema": {
7524
+ "$ref": "#/components/schemas/TornMeritsResponse"
7525
+ }
7526
+ }
7527
+ }
7528
+ }
7529
+ },
7530
+ "security": [
7531
+ {
7532
+ "api_key": []
7533
+ }
7534
+ ],
7535
+ "x-stability": "Stable"
7536
+ }
7537
+ },
7183
7538
  "/torn/organizedcrimes": {
7184
7539
  "get": {
7185
7540
  "tags": [
@@ -12343,6 +12698,18 @@
12343
12698
  "type": "integer",
12344
12699
  "format": "int32"
12345
12700
  },
12701
+ "HonorId": {
12702
+ "type": "integer",
12703
+ "format": "int32"
12704
+ },
12705
+ "MedalId": {
12706
+ "type": "integer",
12707
+ "format": "int32"
12708
+ },
12709
+ "MeritId": {
12710
+ "type": "integer",
12711
+ "format": "int32"
12712
+ },
12346
12713
  "OrganizedCrimeName": {
12347
12714
  "type": "string"
12348
12715
  },
@@ -12558,6 +12925,19 @@
12558
12925
  "Enby"
12559
12926
  ]
12560
12927
  },
12928
+ "HonorRarityEnum": {
12929
+ "type": "string",
12930
+ "enum": [
12931
+ "Extremely Rare",
12932
+ "Very Rare",
12933
+ "Rare",
12934
+ "Limited",
12935
+ "Uncommon",
12936
+ "Common",
12937
+ "Very Common",
12938
+ "Unknown"
12939
+ ]
12940
+ },
12561
12941
  "Parameters": {
12562
12942
  "oneOf": [
12563
12943
  {
@@ -12703,6 +13083,42 @@
12703
13083
  "Temporary"
12704
13084
  ]
12705
13085
  },
13086
+ "MedalTypeEnum": {
13087
+ "type": "string",
13088
+ "enum": [
13089
+ "combat",
13090
+ "commitment",
13091
+ "crime",
13092
+ "level",
13093
+ "miscellaneous",
13094
+ "networth",
13095
+ "rank"
13096
+ ]
13097
+ },
13098
+ "HonorTypeEnum": {
13099
+ "type": "string",
13100
+ "enum": [
13101
+ "attacking",
13102
+ "camo",
13103
+ "weapons",
13104
+ "education",
13105
+ "crimes",
13106
+ "drugs",
13107
+ "jail",
13108
+ "hospital",
13109
+ "travel",
13110
+ "gym",
13111
+ "level",
13112
+ "competitions",
13113
+ "money",
13114
+ "items",
13115
+ "commitment",
13116
+ "casino",
13117
+ "missions",
13118
+ "misc",
13119
+ "default"
13120
+ ]
13121
+ },
12706
13122
  "TornItemTypeEnum": {
12707
13123
  "type": "string",
12708
13124
  "enum": [
@@ -14493,7 +14909,8 @@
14493
14909
  "cost",
14494
14910
  "cost_per_day",
14495
14911
  "rental_period",
14496
- "rental_period_remaining"
14912
+ "rental_period_remaining",
14913
+ "lease_extension"
14497
14914
  ],
14498
14915
  "properties": {
14499
14916
  "used_by": {
@@ -14526,6 +14943,35 @@
14526
14943
  },
14527
14944
  "rented_by": {
14528
14945
  "$ref": "#/components/schemas/BasicUser"
14946
+ },
14947
+ "lease_extension": {
14948
+ "oneOf": [
14949
+ {
14950
+ "required": [
14951
+ "cost",
14952
+ "period",
14953
+ "created_at"
14954
+ ],
14955
+ "properties": {
14956
+ "cost": {
14957
+ "type": "integer",
14958
+ "format": "int64"
14959
+ },
14960
+ "period": {
14961
+ "type": "integer",
14962
+ "format": "int32"
14963
+ },
14964
+ "created_at": {
14965
+ "type": "integer",
14966
+ "format": "int32"
14967
+ }
14968
+ },
14969
+ "type": "object"
14970
+ },
14971
+ {
14972
+ "type": "null"
14973
+ }
14974
+ ]
14529
14975
  }
14530
14976
  },
14531
14977
  "type": "object"
@@ -16058,7 +16504,7 @@
16058
16504
  "UserSelectionName": {
16059
16505
  "oneOf": [
16060
16506
  {
16061
- "description": "The following selections will fallback to API v1 and may change at any time: 'ammo','bars','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','honors','icons','inventory','log','medals','merits','messages','missions','networth','newevents','newmessages','notifications','perks','profile','refills','stocks','travel','weaponexp'.",
16507
+ "description": "The following selections will fallback to API v1 and may change at any time: 'ammo','bars','bazaar','cooldowns','criminalrecord','discord','display','education','equipment','events','gym','icons','inventory','messages','missions','networth','newevents','newmessages','notifications','perks','profile','refills','stocks','travel','weaponexp'.",
16062
16508
  "type": "string",
16063
16509
  "enum": [
16064
16510
  "attacks",
@@ -16076,11 +16522,15 @@
16076
16522
  "forumsubscribedthreads",
16077
16523
  "forumthreads",
16078
16524
  "hof",
16525
+ "honors",
16079
16526
  "itemmarket",
16080
16527
  "jobpoints",
16081
16528
  "jobranks",
16082
16529
  "list",
16530
+ "log",
16083
16531
  "lookup",
16532
+ "medals",
16533
+ "merits",
16084
16534
  "money",
16085
16535
  "organizedcrime",
16086
16536
  "personalstats",
@@ -16105,12 +16555,8 @@
16105
16555
  "equipment",
16106
16556
  "events",
16107
16557
  "gym",
16108
- "honors",
16109
16558
  "icons",
16110
16559
  "inventory",
16111
- "log",
16112
- "medals",
16113
- "merits",
16114
16560
  "messages",
16115
16561
  "missions",
16116
16562
  "networth",
@@ -16144,6 +16590,127 @@
16144
16590
  },
16145
16591
  "type": "object"
16146
16592
  },
16593
+ "UserHonor": {
16594
+ "required": [
16595
+ "id",
16596
+ "timestamp"
16597
+ ],
16598
+ "properties": {
16599
+ "id": {
16600
+ "$ref": "#/components/schemas/HonorId"
16601
+ },
16602
+ "timestamp": {
16603
+ "type": "integer",
16604
+ "format": "int32"
16605
+ }
16606
+ },
16607
+ "type": "object"
16608
+ },
16609
+ "UserHonorsResponse": {
16610
+ "required": [
16611
+ "honors"
16612
+ ],
16613
+ "properties": {
16614
+ "honors": {
16615
+ "type": "array",
16616
+ "items": {
16617
+ "$ref": "#/components/schemas/UserHonor"
16618
+ }
16619
+ }
16620
+ },
16621
+ "type": "object"
16622
+ },
16623
+ "UserMedal": {
16624
+ "required": [
16625
+ "id",
16626
+ "timestamp"
16627
+ ],
16628
+ "properties": {
16629
+ "id": {
16630
+ "$ref": "#/components/schemas/MedalId"
16631
+ },
16632
+ "timestamp": {
16633
+ "type": "integer",
16634
+ "format": "int32"
16635
+ }
16636
+ },
16637
+ "type": "object"
16638
+ },
16639
+ "UserMedalsResponse": {
16640
+ "required": [
16641
+ "medals"
16642
+ ],
16643
+ "properties": {
16644
+ "medals": {
16645
+ "type": "array",
16646
+ "items": {
16647
+ "$ref": "#/components/schemas/UserMedal"
16648
+ }
16649
+ }
16650
+ },
16651
+ "type": "object"
16652
+ },
16653
+ "UserMeritUpgrade": {
16654
+ "required": [
16655
+ "id",
16656
+ "level"
16657
+ ],
16658
+ "properties": {
16659
+ "id": {
16660
+ "$ref": "#/components/schemas/MeritId"
16661
+ },
16662
+ "level": {
16663
+ "type": "integer",
16664
+ "format": "int32"
16665
+ }
16666
+ },
16667
+ "type": "object"
16668
+ },
16669
+ "UserMerits": {
16670
+ "required": [
16671
+ "upgrades",
16672
+ "available",
16673
+ "used",
16674
+ "medals",
16675
+ "honors"
16676
+ ],
16677
+ "properties": {
16678
+ "upgrades": {
16679
+ "type": "array",
16680
+ "items": {
16681
+ "$ref": "#/components/schemas/UserMeritUpgrade"
16682
+ }
16683
+ },
16684
+ "available": {
16685
+ "type": "integer",
16686
+ "format": "int32"
16687
+ },
16688
+ "used": {
16689
+ "type": "integer",
16690
+ "format": "int32"
16691
+ },
16692
+ "medals": {
16693
+ "type": "integer",
16694
+ "format": "int32"
16695
+ },
16696
+ "honors": {
16697
+ "type": "integer",
16698
+ "format": "int32"
16699
+ }
16700
+ },
16701
+ "type": "object"
16702
+ },
16703
+ "UserMeritsResponse": {
16704
+ "required": [
16705
+ "merits"
16706
+ ],
16707
+ "properties": {
16708
+ "merits": {
16709
+ "$ref": "#/components/schemas/UserMerits"
16710
+ }
16711
+ },
16712
+ "type": "object"
16713
+ },
16147
16714
  "PersonalStatsOther": {
16148
16715
  "required": [
16149
16716
  "other"
@@ -24453,6 +25020,160 @@
24453
25020
  },
24454
25021
  "type": "object"
24455
25022
  },
25023
+ "TornMerit": {
25024
+ "required": [
25025
+ "id",
25026
+ "name",
25027
+ "description"
25028
+ ],
25029
+ "properties": {
25030
+ "id": {
25031
+ "$ref": "#/components/schemas/MeritId"
25032
+ },
25033
+ "name": {
25034
+ "type": "string"
25035
+ },
25036
+ "description": {
25037
+ "type": "string"
25038
+ }
25039
+ },
25040
+ "type": "object"
25041
+ },
25042
+ "TornMeritsResponse": {
25043
+ "required": [
25044
+ "merits"
25045
+ ],
25046
+ "properties": {
25047
+ "merits": {
25048
+ "type": "array",
25049
+ "items": {
25050
+ "$ref": "#/components/schemas/TornMerit"
25051
+ }
25052
+ }
25053
+ },
25054
+ "type": "object"
25055
+ },
25056
+ "TornHonor": {
25057
+ "description": "Properties 'circulation', 'equipped' & 'rarity' are only populated for honors which do not have type.id value 1.",
25058
+ "required": [
25059
+ "id",
25060
+ "name",
25061
+ "description",
25062
+ "type"
25063
+ ],
25064
+ "properties": {
25065
+ "id": {
25066
+ "$ref": "#/components/schemas/HonorId"
25067
+ },
25068
+ "name": {
25069
+ "type": "string"
25070
+ },
25071
+ "description": {
25072
+ "type": "string"
25073
+ },
25074
+ "type": {
25075
+ "required": [
25076
+ "id",
25077
+ "title"
25078
+ ],
25079
+ "properties": {
25080
+ "id": {
25081
+ "type": "integer",
25082
+ "format": "int32"
25083
+ },
25084
+ "title": {
25085
+ "$ref": "#/components/schemas/HonorTypeEnum"
25086
+ }
25087
+ },
25088
+ "type": "object"
25089
+ },
25090
+ "circulation": {
25091
+ "type": "integer",
25092
+ "format": "int32"
25093
+ },
25094
+ "equipped": {
25095
+ "type": "integer",
25096
+ "format": "int32"
25097
+ },
25098
+ "rarity": {
25099
+ "$ref": "#/components/schemas/HonorRarityEnum"
25100
+ }
25101
+ },
25102
+ "type": "object"
25103
+ },
25104
+ "TornHonorsResponse": {
25105
+ "required": [
25106
+ "honors"
25107
+ ],
25108
+ "properties": {
25109
+ "honors": {
25110
+ "type": "array",
25111
+ "items": {
25112
+ "$ref": "#/components/schemas/TornHonor"
25113
+ }
25114
+ }
25115
+ },
25116
+ "type": "object"
25117
+ },
25118
+ "TornMedal": {
25119
+ "required": [
25120
+ "id",
25121
+ "name",
25122
+ "description",
25123
+ "type",
25124
+ "circulation",
25125
+ "equipped",
25126
+ "rarity"
25127
+ ],
25128
+ "properties": {
25129
+ "id": {
25130
+ "$ref": "#/components/schemas/MedalId"
25131
+ },
25132
+ "name": {
25133
+ "type": "string"
25134
+ },
25135
+ "description": {
25136
+ "type": "string"
25137
+ },
25138
+ "type": {
25139
+ "required": [
25140
+ "id",
25141
+ "title"
25142
+ ],
25143
+ "properties": {
25144
+ "id": {
25145
+ "type": "string"
25146
+ },
25147
+ "title": {
25148
+ "$ref": "#/components/schemas/MedalTypeEnum"
25149
+ }
25150
+ },
25151
+ "type": "object"
25152
+ },
25153
+ "circulation": {
25154
+ "type": "integer",
25155
+ "format": "int32"
25156
+ },
25157
+ "rarity": {
25158
+ "$ref": "#/components/schemas/HonorRarityEnum"
25159
+ }
25160
+ },
25161
+ "type": "object"
25162
+ },
25163
+ "TornMedalsResponse": {
25164
+ "required": [
25165
+ "medals"
25166
+ ],
25167
+ "properties": {
25168
+ "medals": {
25169
+ "type": "array",
25170
+ "items": {
25171
+ "$ref": "#/components/schemas/TornMedal"
25172
+ }
25173
+ }
25174
+ },
25175
+ "type": "object"
25176
+ },
24456
25177
  "TornOrganizedCrimeResponse": {
24457
25178
  "required": [
24458
25179
  "organizedcrimes"
@@ -26106,7 +26827,7 @@
26106
26827
  "TornSelectionName": {
26107
26828
  "oneOf": [
26108
26829
  {
26109
- "description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','gyms','honors','itemdetails','itemstats','medals','organisedcrimes','pawnshop','pokertables','rockpaperscissors','searchforcash','shoplifting','stats','stocks'.\n * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.",
26830
+ "description": "The following selections will fallback to API v1 and may change at any time: 'bank','cards','cityshops','companies','competition','gyms','itemdetails','itemstats','organisedcrimes','pawnshop','pokertables','rockpaperscissors','searchforcash','shoplifting','stats','stocks'.\n * The following selections are not available in API v2: 'dirtybombs','raidreport','raids', 'chainreport', 'rackets', 'rankedwarreport', 'rankedwars', 'territorynames', 'territorywarreport', 'territorywars'.",
26110
26831
  "type": "string",
26111
26832
  "enum": [
26112
26833
  "attacklog",
@@ -26117,12 +26838,15 @@
26117
26838
  "factionhof",
26118
26839
  "factiontree",
26119
26840
  "hof",
26841
+ "honors",
26120
26842
  "itemammo",
26121
26843
  "itemmods",
26122
26844
  "items",
26123
26845
  "logcategories",
26124
26846
  "logtypes",
26125
26847
  "lookup",
26848
+ "medals",
26849
+ "merits",
26126
26850
  "organizedcrimes",
26127
26851
  "properties",
26128
26852
  "subcrimes",
@@ -26134,10 +26858,8 @@
26134
26858
  "companies",
26135
26859
  "competition",
26136
26860
  "gyms",
26137
- "honors",
26138
26861
  "itemdetails",
26139
26862
  "itemstats",
26140
- "medals",
26141
26863
  "organisedcrimes",
26142
26864
  "pawnshop",
26143
26865
  "pokertables",
@@ -26227,6 +26949,34 @@
26227
26949
  ]
26228
26950
  }
26229
26951
  },
26952
+ "ApiFiltersUser": {
26953
+ "name": "filters",
26954
+ "in": "query",
26955
+ "description": "It's possible to use this query parameter to only get incoming or outgoing attacks / revives. If not specified, this selection will return both incoming and outgoing attacks / revives.",
26956
+ "required": false,
26957
+ "schema": {
26958
+ "type": "string",
26959
+ "enum": [
26960
+ "incoming",
26961
+ "outgoing",
26962
+ "ownedByUser",
26963
+ "ownedBySpouse"
26964
+ ]
26965
+ }
26966
+ },
26967
+ "ApiFiltersUserProperties": {
26968
+ "name": "filters",
26969
+ "in": "query",
26970
+ "description": "It's possible to use this query parameter to filter properties by the key owner or their spouse.",
26971
+ "required": false,
26972
+ "schema": {
26973
+ "type": "string",
26974
+ "enum": [
26975
+ "ownedByUser",
26976
+ "ownedBySpouse"
26977
+ ]
26978
+ }
26979
+ },
26230
26980
  "ApiFactionSearchFilter": {
26231
26981
  "name": "filters",
26232
26982
  "in": "query",