tornapi-typescript 4.2.0 → 4.2.1
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 +8 -8
- package/dist/index.ts +8 -8
- package/dist/openapi.json +81 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6355,14 +6355,14 @@ export interface UserV2 extends BaseSchema {
|
|
|
6355
6355
|
response: UserBasicResponse;
|
|
6356
6356
|
params: "striptags" | "timestamp";
|
|
6357
6357
|
};
|
|
6358
|
-
bounties: {
|
|
6359
|
-
response: UserBountiesResponse;
|
|
6360
|
-
params: "timestamp";
|
|
6361
|
-
};
|
|
6362
6358
|
battlestats: {
|
|
6363
6359
|
response: UserBattleStatsResponse;
|
|
6364
6360
|
params: "timestamp";
|
|
6365
6361
|
};
|
|
6362
|
+
bounties: {
|
|
6363
|
+
response: UserBountiesResponse;
|
|
6364
|
+
params: "timestamp";
|
|
6365
|
+
};
|
|
6366
6366
|
calendar: {
|
|
6367
6367
|
response: UserCalendarResponse;
|
|
6368
6368
|
params: "timestamp";
|
|
@@ -6625,11 +6625,11 @@ export interface FactionV2 extends BaseSchema {
|
|
|
6625
6625
|
};
|
|
6626
6626
|
raids: {
|
|
6627
6627
|
response: FactionRaidsResponse;
|
|
6628
|
-
params: "from" | "to" | "sort" | "timestamp";
|
|
6628
|
+
params: "from" | "to" | "sort" | "limit" | "timestamp";
|
|
6629
6629
|
};
|
|
6630
6630
|
rankedwars: {
|
|
6631
6631
|
response: FactionRankedWarResponse;
|
|
6632
|
-
params: "from" | "to" | "sort" | "timestamp";
|
|
6632
|
+
params: "offset" | "limit" | "from" | "to" | "sort" | "timestamp";
|
|
6633
6633
|
};
|
|
6634
6634
|
rankedwarreport: {
|
|
6635
6635
|
response: FactionRankedWarReportResponse;
|
|
@@ -6741,7 +6741,7 @@ export interface MarketV2 extends BaseSchema {
|
|
|
6741
6741
|
};
|
|
6742
6742
|
itemmarket: {
|
|
6743
6743
|
response: MarketItemMarketResponse;
|
|
6744
|
-
params: "id" | "bonus" | "offset" | "timestamp";
|
|
6744
|
+
params: "id" | "bonus" | "limit" | "offset" | "timestamp";
|
|
6745
6745
|
};
|
|
6746
6746
|
properties: {
|
|
6747
6747
|
response: MarketPropertiesResponse;
|
|
@@ -6845,7 +6845,7 @@ export interface TornV2 extends BaseSchema {
|
|
|
6845
6845
|
};
|
|
6846
6846
|
honors: {
|
|
6847
6847
|
response: TornHonorsResponse;
|
|
6848
|
-
params: "timestamp";
|
|
6848
|
+
params: "limit" | "offset" | "sort" | "timestamp";
|
|
6849
6849
|
};
|
|
6850
6850
|
hof: {
|
|
6851
6851
|
response: TornHofResponse;
|
package/dist/index.ts
CHANGED
|
@@ -12067,14 +12067,14 @@ export interface UserV2 extends BaseSchema {
|
|
|
12067
12067
|
response: UserBasicResponse;
|
|
12068
12068
|
params: "striptags" | "timestamp";
|
|
12069
12069
|
};
|
|
12070
|
-
bounties: {
|
|
12071
|
-
response: UserBountiesResponse;
|
|
12072
|
-
params: "timestamp";
|
|
12073
|
-
};
|
|
12074
12070
|
battlestats: {
|
|
12075
12071
|
response: UserBattleStatsResponse;
|
|
12076
12072
|
params: "timestamp";
|
|
12077
12073
|
};
|
|
12074
|
+
bounties: {
|
|
12075
|
+
response: UserBountiesResponse;
|
|
12076
|
+
params: "timestamp";
|
|
12077
|
+
};
|
|
12078
12078
|
calendar: {
|
|
12079
12079
|
response: UserCalendarResponse;
|
|
12080
12080
|
params: "timestamp";
|
|
@@ -12377,11 +12377,11 @@ export interface FactionV2 extends BaseSchema {
|
|
|
12377
12377
|
};
|
|
12378
12378
|
raids: {
|
|
12379
12379
|
response: FactionRaidsResponse;
|
|
12380
|
-
params: "from" | "to" | "sort" | "timestamp";
|
|
12380
|
+
params: "from" | "to" | "sort" | "limit" | "timestamp";
|
|
12381
12381
|
};
|
|
12382
12382
|
rankedwars: {
|
|
12383
12383
|
response: FactionRankedWarResponse;
|
|
12384
|
-
params: "from" | "to" | "sort" | "timestamp";
|
|
12384
|
+
params: "offset" | "limit" | "from" | "to" | "sort" | "timestamp";
|
|
12385
12385
|
};
|
|
12386
12386
|
rankedwarreport: {
|
|
12387
12387
|
response: FactionRankedWarReportResponse;
|
|
@@ -12514,7 +12514,7 @@ export interface MarketV2 extends BaseSchema {
|
|
|
12514
12514
|
};
|
|
12515
12515
|
itemmarket: {
|
|
12516
12516
|
response: MarketItemMarketResponse;
|
|
12517
|
-
params: "id" | "bonus" | "offset" | "timestamp";
|
|
12517
|
+
params: "id" | "bonus" | "limit" | "offset" | "timestamp";
|
|
12518
12518
|
};
|
|
12519
12519
|
properties: {
|
|
12520
12520
|
response: MarketPropertiesResponse;
|
|
@@ -12628,7 +12628,7 @@ export interface TornV2 extends BaseSchema {
|
|
|
12628
12628
|
};
|
|
12629
12629
|
honors: {
|
|
12630
12630
|
response: TornHonorsResponse;
|
|
12631
|
-
params: "timestamp";
|
|
12631
|
+
params: "limit" | "offset" | "sort" | "timestamp";
|
|
12632
12632
|
};
|
|
12633
12633
|
hof: {
|
|
12634
12634
|
response: TornHofResponse;
|
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": "4.2.
|
|
6
|
+
"version": "4.2.1"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -252,14 +252,14 @@
|
|
|
252
252
|
"x-stability": "Stable"
|
|
253
253
|
}
|
|
254
254
|
},
|
|
255
|
-
"/user/
|
|
255
|
+
"/user/battlestats": {
|
|
256
256
|
"get": {
|
|
257
257
|
"tags": [
|
|
258
258
|
"User"
|
|
259
259
|
],
|
|
260
|
-
"summary": "Get
|
|
261
|
-
"description": "Requires
|
|
262
|
-
"operationId": "
|
|
260
|
+
"summary": "Get your battlestats",
|
|
261
|
+
"description": "Requires limited access key. <br>",
|
|
262
|
+
"operationId": "b2395a36b6f5668ade16f460a593b236",
|
|
263
263
|
"parameters": [
|
|
264
264
|
{
|
|
265
265
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
"content": {
|
|
278
278
|
"application/json": {
|
|
279
279
|
"schema": {
|
|
280
|
-
"$ref": "#/components/schemas/
|
|
280
|
+
"$ref": "#/components/schemas/UserBattleStatsResponse"
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
}
|
|
@@ -291,14 +291,14 @@
|
|
|
291
291
|
"x-stability": "Stable"
|
|
292
292
|
}
|
|
293
293
|
},
|
|
294
|
-
"/user/
|
|
294
|
+
"/user/bounties": {
|
|
295
295
|
"get": {
|
|
296
296
|
"tags": [
|
|
297
297
|
"User"
|
|
298
298
|
],
|
|
299
|
-
"summary": "Get
|
|
300
|
-
"description": "Requires
|
|
301
|
-
"operationId": "
|
|
299
|
+
"summary": "Get bounties placed on you",
|
|
300
|
+
"description": "Requires public access key. <br>",
|
|
301
|
+
"operationId": "c85fd102a25aaec3aa98611d0da6c219",
|
|
302
302
|
"parameters": [
|
|
303
303
|
{
|
|
304
304
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
"content": {
|
|
317
317
|
"application/json": {
|
|
318
318
|
"schema": {
|
|
319
|
-
"$ref": "#/components/schemas/
|
|
319
|
+
"$ref": "#/components/schemas/UserBountiesResponse"
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
}
|
|
@@ -4484,6 +4484,9 @@
|
|
|
4484
4484
|
{
|
|
4485
4485
|
"$ref": "#/components/parameters/ApiSortDesc"
|
|
4486
4486
|
},
|
|
4487
|
+
{
|
|
4488
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
4489
|
+
},
|
|
4487
4490
|
{
|
|
4488
4491
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
4489
4492
|
},
|
|
@@ -4532,6 +4535,18 @@
|
|
|
4532
4535
|
"$ref": "#/components/schemas/FactionId"
|
|
4533
4536
|
}
|
|
4534
4537
|
},
|
|
4538
|
+
{
|
|
4539
|
+
"$ref": "#/components/parameters/ApiFrom"
|
|
4540
|
+
},
|
|
4541
|
+
{
|
|
4542
|
+
"$ref": "#/components/parameters/ApiTo"
|
|
4543
|
+
},
|
|
4544
|
+
{
|
|
4545
|
+
"$ref": "#/components/parameters/ApiSortDesc"
|
|
4546
|
+
},
|
|
4547
|
+
{
|
|
4548
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
4549
|
+
},
|
|
4535
4550
|
{
|
|
4536
4551
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
4537
4552
|
},
|
|
@@ -4568,17 +4583,26 @@
|
|
|
4568
4583
|
"Faction"
|
|
4569
4584
|
],
|
|
4570
4585
|
"summary": "Get ranked wars history for your faction",
|
|
4571
|
-
"description": "Requires public access key. <br>",
|
|
4586
|
+
"description": "Requires public access key. <br> Use offset to get older results which are always ordered descending.",
|
|
4572
4587
|
"operationId": "4f5d624a86e2d389a7a738b6b3ce8c9e",
|
|
4573
4588
|
"parameters": [
|
|
4574
4589
|
{
|
|
4575
|
-
"$ref": "#/components/parameters/
|
|
4590
|
+
"$ref": "#/components/parameters/ApiOffset"
|
|
4576
4591
|
},
|
|
4577
4592
|
{
|
|
4578
|
-
"$ref": "#/components/parameters/
|
|
4593
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
4579
4594
|
},
|
|
4580
4595
|
{
|
|
4581
|
-
"$ref": "#/components/parameters/
|
|
4596
|
+
"$ref": "#/components/parameters/ApiFrom",
|
|
4597
|
+
"description": "No longer has any impact on results."
|
|
4598
|
+
},
|
|
4599
|
+
{
|
|
4600
|
+
"$ref": "#/components/parameters/ApiTo",
|
|
4601
|
+
"description": "No longer has any impact on results."
|
|
4602
|
+
},
|
|
4603
|
+
{
|
|
4604
|
+
"$ref": "#/components/parameters/ApiSortDesc",
|
|
4605
|
+
"description": "No longer has any impact on results."
|
|
4582
4606
|
},
|
|
4583
4607
|
{
|
|
4584
4608
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
@@ -4616,7 +4640,7 @@
|
|
|
4616
4640
|
"Faction"
|
|
4617
4641
|
],
|
|
4618
4642
|
"summary": "Get a faction's ranked wars history",
|
|
4619
|
-
"description": "Requires public access key. <br> ",
|
|
4643
|
+
"description": "Requires public access key. <br> Use offset to get older results which are always ordered descending.",
|
|
4620
4644
|
"operationId": "5b6646714e5ae1cc397bdec877f55691",
|
|
4621
4645
|
"parameters": [
|
|
4622
4646
|
{
|
|
@@ -4628,6 +4652,12 @@
|
|
|
4628
4652
|
"$ref": "#/components/schemas/FactionId"
|
|
4629
4653
|
}
|
|
4630
4654
|
},
|
|
4655
|
+
{
|
|
4656
|
+
"$ref": "#/components/parameters/ApiOffset"
|
|
4657
|
+
},
|
|
4658
|
+
{
|
|
4659
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
4660
|
+
},
|
|
4631
4661
|
{
|
|
4632
4662
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
4633
4663
|
},
|
|
@@ -5174,6 +5204,18 @@
|
|
|
5174
5204
|
"$ref": "#/components/schemas/FactionId"
|
|
5175
5205
|
}
|
|
5176
5206
|
},
|
|
5207
|
+
{
|
|
5208
|
+
"$ref": "#/components/parameters/ApiFrom"
|
|
5209
|
+
},
|
|
5210
|
+
{
|
|
5211
|
+
"$ref": "#/components/parameters/ApiTo"
|
|
5212
|
+
},
|
|
5213
|
+
{
|
|
5214
|
+
"$ref": "#/components/parameters/ApiSortDesc"
|
|
5215
|
+
},
|
|
5216
|
+
{
|
|
5217
|
+
"$ref": "#/components/parameters/ApiLimit100"
|
|
5218
|
+
},
|
|
5177
5219
|
{
|
|
5178
5220
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
5179
5221
|
},
|
|
@@ -6519,6 +6561,9 @@
|
|
|
6519
6561
|
"$ref": "#/components/schemas/WeaponBonusEnum"
|
|
6520
6562
|
}
|
|
6521
6563
|
},
|
|
6564
|
+
{
|
|
6565
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
6566
|
+
},
|
|
6522
6567
|
{
|
|
6523
6568
|
"$ref": "#/components/parameters/ApiOffset"
|
|
6524
6569
|
},
|
|
@@ -7890,6 +7935,15 @@
|
|
|
7890
7935
|
"description": "Requires public access key. <br>",
|
|
7891
7936
|
"operationId": "4b7322594732b4e263f2e612f648e6a4",
|
|
7892
7937
|
"parameters": [
|
|
7938
|
+
{
|
|
7939
|
+
"$ref": "#/components/parameters/ApiLimitDefault20"
|
|
7940
|
+
},
|
|
7941
|
+
{
|
|
7942
|
+
"$ref": "#/components/parameters/ApiOffset"
|
|
7943
|
+
},
|
|
7944
|
+
{
|
|
7945
|
+
"$ref": "#/components/parameters/ApiSort"
|
|
7946
|
+
},
|
|
7893
7947
|
{
|
|
7894
7948
|
"$ref": "#/components/parameters/ApiTimestamp"
|
|
7895
7949
|
},
|
|
@@ -29254,6 +29308,17 @@
|
|
|
29254
29308
|
"minimum": 1
|
|
29255
29309
|
}
|
|
29256
29310
|
},
|
|
29311
|
+
"ApiLimitDefault20": {
|
|
29312
|
+
"name": "limit",
|
|
29313
|
+
"in": "query",
|
|
29314
|
+
"required": false,
|
|
29315
|
+
"schema": {
|
|
29316
|
+
"type": "integer",
|
|
29317
|
+
"format": "int32",
|
|
29318
|
+
"default": 20,
|
|
29319
|
+
"minimum": 1
|
|
29320
|
+
}
|
|
29321
|
+
},
|
|
29257
29322
|
"ApiTarget": {
|
|
29258
29323
|
"name": "target",
|
|
29259
29324
|
"in": "query",
|