tornapi-typescript 3.0.20 → 3.1.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 +3 -8
- package/dist/index.ts +3 -9
- package/dist/openapi.json +3 -75
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1660,9 +1660,6 @@ export interface FactionTerritoryWarOngoing {
|
|
|
1660
1660
|
target: number;
|
|
1661
1661
|
factions: FactionTerritoryWarOngoingFaction[];
|
|
1662
1662
|
}
|
|
1663
|
-
export interface FactionTerritoryWarsResponse {
|
|
1664
|
-
territorywars: FactionTerritoryWarOngoing[] | FactionTerritoryWarFinished[];
|
|
1665
|
-
}
|
|
1666
1663
|
export interface FactionTerritoryWarsHistoryResponse {
|
|
1667
1664
|
territorywars: FactionTerritoryWarFinished[];
|
|
1668
1665
|
}
|
|
@@ -2348,9 +2345,7 @@ export interface KeyInfoResponse {
|
|
|
2348
2345
|
level: number;
|
|
2349
2346
|
type: ApiKeyAccessTypeEnum;
|
|
2350
2347
|
faction: boolean;
|
|
2351
|
-
faction_id?: FactionId | null;
|
|
2352
2348
|
company: boolean;
|
|
2353
|
-
company_id?: CompanyId | null;
|
|
2354
2349
|
log: {
|
|
2355
2350
|
/** Shows if key has custom log permissions enabled. */
|
|
2356
2351
|
custom_permissions: boolean;
|
|
@@ -6500,7 +6495,7 @@ export interface FactionV2 extends BaseSchema {
|
|
|
6500
6495
|
};
|
|
6501
6496
|
rankedwars: {
|
|
6502
6497
|
response: FactionRankedWarResponse;
|
|
6503
|
-
params: "
|
|
6498
|
+
params: "from" | "to" | "sort" | "timestamp";
|
|
6504
6499
|
};
|
|
6505
6500
|
rankedwarreport: {
|
|
6506
6501
|
response: FactionRankedWarReportResponse;
|
|
@@ -6535,8 +6530,8 @@ export interface FactionV2 extends BaseSchema {
|
|
|
6535
6530
|
params: "offset" | "limit" | "timestamp";
|
|
6536
6531
|
};
|
|
6537
6532
|
territorywars: {
|
|
6538
|
-
response:
|
|
6539
|
-
params: "
|
|
6533
|
+
response: FactionTerritoryWarsHistoryResponse;
|
|
6534
|
+
params: "from" | "to" | "sort" | "limit" | "timestamp";
|
|
6540
6535
|
};
|
|
6541
6536
|
territorywarreport: {
|
|
6542
6537
|
response: FactionTerritoryWarReportResponse;
|
package/dist/index.ts
CHANGED
|
@@ -7059,10 +7059,6 @@ export interface FactionTerritoryWarOngoing {
|
|
|
7059
7059
|
factions: FactionTerritoryWarOngoingFaction[];
|
|
7060
7060
|
}
|
|
7061
7061
|
|
|
7062
|
-
export interface FactionTerritoryWarsResponse {
|
|
7063
|
-
territorywars: FactionTerritoryWarOngoing[] | FactionTerritoryWarFinished[];
|
|
7064
|
-
}
|
|
7065
|
-
|
|
7066
7062
|
export interface FactionTerritoryWarsHistoryResponse {
|
|
7067
7063
|
territorywars: FactionTerritoryWarFinished[];
|
|
7068
7064
|
}
|
|
@@ -7847,9 +7843,7 @@ export interface KeyInfoResponse {
|
|
|
7847
7843
|
level: number;
|
|
7848
7844
|
type: ApiKeyAccessTypeEnum;
|
|
7849
7845
|
faction: boolean;
|
|
7850
|
-
faction_id?: FactionId | null;
|
|
7851
7846
|
company: boolean;
|
|
7852
|
-
company_id?: CompanyId | null;
|
|
7853
7847
|
log: {
|
|
7854
7848
|
/** Shows if key has custom log permissions enabled. */
|
|
7855
7849
|
custom_permissions: boolean;
|
|
@@ -12208,7 +12202,7 @@ export interface FactionV2 extends BaseSchema {
|
|
|
12208
12202
|
};
|
|
12209
12203
|
rankedwars: {
|
|
12210
12204
|
response: FactionRankedWarResponse;
|
|
12211
|
-
params: "
|
|
12205
|
+
params: "from" | "to" | "sort" | "timestamp";
|
|
12212
12206
|
};
|
|
12213
12207
|
rankedwarreport: {
|
|
12214
12208
|
response: FactionRankedWarReportResponse;
|
|
@@ -12257,8 +12251,8 @@ export interface FactionV2 extends BaseSchema {
|
|
|
12257
12251
|
params: "offset" | "limit" | "timestamp";
|
|
12258
12252
|
};
|
|
12259
12253
|
territorywars: {
|
|
12260
|
-
response:
|
|
12261
|
-
params: "
|
|
12254
|
+
response: FactionTerritoryWarsHistoryResponse;
|
|
12255
|
+
params: "from" | "to" | "sort" | "limit" | "timestamp";
|
|
12262
12256
|
};
|
|
12263
12257
|
territorywarreport: {
|
|
12264
12258
|
response: FactionTerritoryWarReportResponse;
|
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
|
|
6
|
+
"version": "3.1.0"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -1773,7 +1773,7 @@
|
|
|
1773
1773
|
"User"
|
|
1774
1774
|
],
|
|
1775
1775
|
"summary": "Get your personal stats",
|
|
1776
|
-
"description": "Requires public access key. <br>\n * UserPersonalStatsFull is returned only when this selection is requested with Limited, Full or Custom key access key.\n * UserPersonalStatsFullPublic is returned when the requested category is 'all'.\n * UserPersonalStatsPopular is returned when the requested category is 'popular'. Please try to use UserPersonalStatsPopular over UserPersonalStatsFullPublic wherever possible in order to reduce the server load.\n * Otherwise, UserPersonalStatsCategory is returned for the matched category.\n *
|
|
1776
|
+
"description": "Requires public access key. <br>\n * UserPersonalStatsFull is returned only when this selection is requested with Limited, Full or Custom key access key.\n * UserPersonalStatsFullPublic is returned when the requested category is 'all'.\n * UserPersonalStatsPopular is returned when the requested category is 'popular'. Please try to use UserPersonalStatsPopular over UserPersonalStatsFullPublic wherever possible in order to reduce the server load.\n * Otherwise, UserPersonalStatsCategory is returned for the matched category.\n * Historical stats can be fetched via 'stat' query parameter. It's only possible to pass up to 10 historical stats at once (the rest is trimmed). When requesting historical stats the response will be of type UserPersonalStatsHistoric.\n * Use 'timestamp' query parameter to get historical stats at the certain point in time. It's possible some historical stats didn't exist at the given timestamp, and for such stats you will not receive anything back.",
|
|
1777
1777
|
"operationId": "388e8008ae1c2645819af76d71ef92a5",
|
|
1778
1778
|
"parameters": [
|
|
1779
1779
|
{
|
|
@@ -4107,16 +4107,6 @@
|
|
|
4107
4107
|
"description": "Requires public access key. <br>",
|
|
4108
4108
|
"operationId": "4f5d624a86e2d389a7a738b6b3ce8c9e",
|
|
4109
4109
|
"parameters": [
|
|
4110
|
-
{
|
|
4111
|
-
"name": "cat",
|
|
4112
|
-
"in": "query",
|
|
4113
|
-
"description": "This parameter is deprecated. The ranked wars list can now instead be fetched via 'faction' -> 'warfare' endpoint. This functionality will be removed on 1st of September 2025.",
|
|
4114
|
-
"required": false,
|
|
4115
|
-
"deprecated": true,
|
|
4116
|
-
"schema": {
|
|
4117
|
-
"$ref": "#/components/schemas/FactionRankedWarsCategoryEnum"
|
|
4118
|
-
}
|
|
4119
|
-
},
|
|
4120
4110
|
{
|
|
4121
4111
|
"$ref": "#/components/parameters/ApiFrom"
|
|
4122
4112
|
},
|
|
@@ -4660,16 +4650,6 @@
|
|
|
4660
4650
|
"description": "Requires public access key. <br>",
|
|
4661
4651
|
"operationId": "0258963246159d1e3e54547c32aac7c8",
|
|
4662
4652
|
"parameters": [
|
|
4663
|
-
{
|
|
4664
|
-
"name": "cat",
|
|
4665
|
-
"in": "query",
|
|
4666
|
-
"description": "This parameter is deprecated. The territory wars list can now instead be fetched via 'faction' -> 'warfare' endpoint. This functionality will be removed on 1st of September 2025.",
|
|
4667
|
-
"required": false,
|
|
4668
|
-
"deprecated": true,
|
|
4669
|
-
"schema": {
|
|
4670
|
-
"$ref": "#/components/schemas/FactionTerritoryWarsCategoryEnum"
|
|
4671
|
-
}
|
|
4672
|
-
},
|
|
4673
4653
|
{
|
|
4674
4654
|
"$ref": "#/components/parameters/ApiFrom"
|
|
4675
4655
|
},
|
|
@@ -4698,7 +4678,7 @@
|
|
|
4698
4678
|
"content": {
|
|
4699
4679
|
"application/json": {
|
|
4700
4680
|
"schema": {
|
|
4701
|
-
"$ref": "#/components/schemas/
|
|
4681
|
+
"$ref": "#/components/schemas/FactionTerritoryWarsHistoryResponse"
|
|
4702
4682
|
}
|
|
4703
4683
|
}
|
|
4704
4684
|
}
|
|
@@ -5307,9 +5287,6 @@
|
|
|
5307
5287
|
{
|
|
5308
5288
|
"$ref": "#/components/schemas/FactionStatsResponse"
|
|
5309
5289
|
},
|
|
5310
|
-
{
|
|
5311
|
-
"$ref": "#/components/schemas/FactionTerritoryWarsResponse"
|
|
5312
|
-
},
|
|
5313
5290
|
{
|
|
5314
5291
|
"$ref": "#/components/schemas/FactionContributorsResponse"
|
|
5315
5292
|
},
|
|
@@ -21529,31 +21506,6 @@
|
|
|
21529
21506
|
},
|
|
21530
21507
|
"type": "object"
|
|
21531
21508
|
},
|
|
21532
|
-
"FactionTerritoryWarsResponse": {
|
|
21533
|
-
"required": [
|
|
21534
|
-
"territorywars"
|
|
21535
|
-
],
|
|
21536
|
-
"properties": {
|
|
21537
|
-
"territorywars": {
|
|
21538
|
-
"description": "If the chosen category is 'ongoing' the response will be of 'FactionTerritoryWarOngoing' type, otherwise, the type will be 'FactionTerritoryWarFinished'.",
|
|
21539
|
-
"oneOf": [
|
|
21540
|
-
{
|
|
21541
|
-
"type": "array",
|
|
21542
|
-
"items": {
|
|
21543
|
-
"$ref": "#/components/schemas/FactionTerritoryWarOngoing"
|
|
21544
|
-
}
|
|
21545
|
-
},
|
|
21546
|
-
{
|
|
21547
|
-
"type": "array",
|
|
21548
|
-
"items": {
|
|
21549
|
-
"$ref": "#/components/schemas/FactionTerritoryWarFinished"
|
|
21550
|
-
}
|
|
21551
|
-
}
|
|
21552
|
-
]
|
|
21553
|
-
}
|
|
21554
|
-
},
|
|
21555
|
-
"type": "object"
|
|
21556
|
-
},
|
|
21557
21509
|
"FactionTerritoryWarsHistoryResponse": {
|
|
21558
21510
|
"required": [
|
|
21559
21511
|
"territorywars"
|
|
@@ -24816,33 +24768,9 @@
|
|
|
24816
24768
|
"faction": {
|
|
24817
24769
|
"type": "boolean"
|
|
24818
24770
|
},
|
|
24819
|
-
"faction_id": {
|
|
24820
|
-
"description": "This field is replaced with 'user'.'faction_id' field and will be removed on 1st of September 2025. Populated only if 'faction' field is true.",
|
|
24821
|
-
"deprecated": true,
|
|
24822
|
-
"oneOf": [
|
|
24823
|
-
{
|
|
24824
|
-
"$ref": "#/components/schemas/FactionId"
|
|
24825
|
-
},
|
|
24826
|
-
{
|
|
24827
|
-
"type": "null"
|
|
24828
|
-
}
|
|
24829
|
-
]
|
|
24830
|
-
},
|
|
24831
24771
|
"company": {
|
|
24832
24772
|
"type": "boolean"
|
|
24833
24773
|
},
|
|
24834
|
-
"company_id": {
|
|
24835
|
-
"description": "This field is replaced with 'user'.'company_id' field and will be removed on 1st of September 2025. Populated only if 'company' field is true.",
|
|
24836
|
-
"deprecated": true,
|
|
24837
|
-
"oneOf": [
|
|
24838
|
-
{
|
|
24839
|
-
"$ref": "#/components/schemas/CompanyId"
|
|
24840
|
-
},
|
|
24841
|
-
{
|
|
24842
|
-
"type": "null"
|
|
24843
|
-
}
|
|
24844
|
-
]
|
|
24845
|
-
},
|
|
24846
24774
|
"log": {
|
|
24847
24775
|
"required": [
|
|
24848
24776
|
"custom_permissions",
|