tornapi-typescript 3.0.2 → 3.0.4
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 +39 -8
- package/dist/index.ts +43 -4
- package/dist/openapi.json +291 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export type ItemUid = number;
|
|
|
58
58
|
export type UserId = number;
|
|
59
59
|
export type ReviveId = number;
|
|
60
60
|
export type LogId = number;
|
|
61
|
+
export type UserLogId = string;
|
|
61
62
|
export type LogCategoryId = number;
|
|
62
63
|
export type FactionId = number;
|
|
63
64
|
export type CompanyId = number;
|
|
@@ -326,6 +327,23 @@ export interface ReportsResponse {
|
|
|
326
327
|
_metadata: RequestMetadataWithLinks;
|
|
327
328
|
}
|
|
328
329
|
export type SelectionCategoryEnum = ReportTypeEnum | UserListEnum | PersonalStatsCategoryEnum | RacingRaceTypeEnum;
|
|
330
|
+
export interface UserLog {
|
|
331
|
+
id: UserLogId;
|
|
332
|
+
timestamp: number;
|
|
333
|
+
details: {
|
|
334
|
+
id: LogId;
|
|
335
|
+
title: string;
|
|
336
|
+
category: string;
|
|
337
|
+
};
|
|
338
|
+
/** Dynamic key-value pairs related to the log. */
|
|
339
|
+
data: {};
|
|
340
|
+
/** Dynamic key-value pairs related to the log. */
|
|
341
|
+
params: {};
|
|
342
|
+
}
|
|
343
|
+
export interface UserLogsResponse {
|
|
344
|
+
log: UserLog[];
|
|
345
|
+
_metadata: RequestMetadataWithLinks;
|
|
346
|
+
}
|
|
329
347
|
export interface BasicUser {
|
|
330
348
|
id: UserId;
|
|
331
349
|
name: string;
|
|
@@ -2047,6 +2065,10 @@ export interface KeyLogResponse {
|
|
|
2047
2065
|
ip: string;
|
|
2048
2066
|
}[];
|
|
2049
2067
|
}
|
|
2068
|
+
export interface KeyInfoAvailableLog {
|
|
2069
|
+
category_id: LogCategoryId;
|
|
2070
|
+
log_ids: LogId[];
|
|
2071
|
+
}
|
|
2050
2072
|
export interface KeyInfoResponse {
|
|
2051
2073
|
info: {
|
|
2052
2074
|
selections: {
|
|
@@ -2072,6 +2094,11 @@ export interface KeyInfoResponse {
|
|
|
2072
2094
|
faction_id?: FactionId | null;
|
|
2073
2095
|
company: boolean;
|
|
2074
2096
|
company_id?: CompanyId | null;
|
|
2097
|
+
log: {
|
|
2098
|
+
/** Shows if key has custom log permissions enabled. */
|
|
2099
|
+
custom_permissions: boolean;
|
|
2100
|
+
available: KeyInfoAvailableLog[];
|
|
2101
|
+
};
|
|
2075
2102
|
};
|
|
2076
2103
|
};
|
|
2077
2104
|
}
|
|
@@ -5930,11 +5957,11 @@ export interface UserV2 extends BaseSchema {
|
|
|
5930
5957
|
selections: {
|
|
5931
5958
|
attacks: {
|
|
5932
5959
|
response: FactionAttacksResponse;
|
|
5933
|
-
params: "limit" | "sort" | "to" | "from" | "timestamp";
|
|
5960
|
+
params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
|
|
5934
5961
|
};
|
|
5935
5962
|
attacksfull: {
|
|
5936
5963
|
response: FactionAttacksFullResponse;
|
|
5937
|
-
params: "limit" | "sort" | "to" | "from" | "timestamp";
|
|
5964
|
+
params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
|
|
5938
5965
|
};
|
|
5939
5966
|
bounties: {
|
|
5940
5967
|
response: UserBountiesResponse;
|
|
@@ -5996,6 +6023,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
5996
6023
|
response: UserListResponse;
|
|
5997
6024
|
params: "cat" | "limit" | "offset" | "sort" | "timestamp";
|
|
5998
6025
|
};
|
|
6026
|
+
log: {
|
|
6027
|
+
response: UserLogsResponse;
|
|
6028
|
+
params: "log" | "cat" | "limit" | "to" | "from" | "timestamp";
|
|
6029
|
+
};
|
|
5999
6030
|
organizedcrime: {
|
|
6000
6031
|
response: UserOrganizedCrimeResponse;
|
|
6001
6032
|
params: "timestamp";
|
|
@@ -6026,11 +6057,11 @@ export interface UserV2 extends BaseSchema {
|
|
|
6026
6057
|
};
|
|
6027
6058
|
revives: {
|
|
6028
6059
|
response: RevivesResponse;
|
|
6029
|
-
params: "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
|
|
6060
|
+
params: "filters" | "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
|
|
6030
6061
|
};
|
|
6031
6062
|
revivesFull: {
|
|
6032
6063
|
response: RevivesFullResponse;
|
|
6033
|
-
params: "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
|
|
6064
|
+
params: "filters" | "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
|
|
6034
6065
|
};
|
|
6035
6066
|
lookup: {
|
|
6036
6067
|
response: UserLookupResponse;
|
|
@@ -6050,11 +6081,11 @@ export interface FactionV2 extends BaseSchema {
|
|
|
6050
6081
|
};
|
|
6051
6082
|
attacks: {
|
|
6052
6083
|
response: FactionAttacksResponse;
|
|
6053
|
-
params: "limit" | "sort" | "to" | "from" | "timestamp";
|
|
6084
|
+
params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
|
|
6054
6085
|
};
|
|
6055
6086
|
attacksfull: {
|
|
6056
6087
|
response: FactionAttacksFullResponse;
|
|
6057
|
-
params: "limit" | "sort" | "to" | "from" | "timestamp";
|
|
6088
|
+
params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
|
|
6058
6089
|
};
|
|
6059
6090
|
balance: {
|
|
6060
6091
|
response: FactionBalanceResponse;
|
|
@@ -6130,11 +6161,11 @@ export interface FactionV2 extends BaseSchema {
|
|
|
6130
6161
|
};
|
|
6131
6162
|
revives: {
|
|
6132
6163
|
response: RevivesResponse;
|
|
6133
|
-
params: "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
|
|
6164
|
+
params: "filters" | "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
|
|
6134
6165
|
};
|
|
6135
6166
|
revivesFull: {
|
|
6136
6167
|
response: RevivesFullResponse;
|
|
6137
|
-
params: "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
|
|
6168
|
+
params: "filters" | "limit" | "sort" | "to" | "from" | "striptags" | "timestamp";
|
|
6138
6169
|
};
|
|
6139
6170
|
search: {
|
|
6140
6171
|
response: FactionSearchResponse;
|
package/dist/index.ts
CHANGED
|
@@ -4590,6 +4590,8 @@ export type ReviveId = number;
|
|
|
4590
4590
|
|
|
4591
4591
|
export type LogId = number;
|
|
4592
4592
|
|
|
4593
|
+
export type UserLogId = string;
|
|
4594
|
+
|
|
4593
4595
|
export type LogCategoryId = number;
|
|
4594
4596
|
|
|
4595
4597
|
export type FactionId = number;
|
|
@@ -5078,6 +5080,25 @@ export type SelectionCategoryEnum =
|
|
|
5078
5080
|
| PersonalStatsCategoryEnum
|
|
5079
5081
|
| RacingRaceTypeEnum;
|
|
5080
5082
|
|
|
5083
|
+
export interface UserLog {
|
|
5084
|
+
id: UserLogId;
|
|
5085
|
+
timestamp: number;
|
|
5086
|
+
details: {
|
|
5087
|
+
id: LogId;
|
|
5088
|
+
title: string;
|
|
5089
|
+
category: string;
|
|
5090
|
+
};
|
|
5091
|
+
/** Dynamic key-value pairs related to the log. */
|
|
5092
|
+
data: {};
|
|
5093
|
+
/** Dynamic key-value pairs related to the log. */
|
|
5094
|
+
params: {};
|
|
5095
|
+
}
|
|
5096
|
+
|
|
5097
|
+
export interface UserLogsResponse {
|
|
5098
|
+
log: UserLog[];
|
|
5099
|
+
_metadata: RequestMetadataWithLinks;
|
|
5100
|
+
}
|
|
5101
|
+
|
|
5081
5102
|
export interface BasicUser {
|
|
5082
5103
|
id: UserId;
|
|
5083
5104
|
name: string;
|
|
@@ -7334,6 +7355,11 @@ export interface KeyLogResponse {
|
|
|
7334
7355
|
}[];
|
|
7335
7356
|
}
|
|
7336
7357
|
|
|
7358
|
+
export interface KeyInfoAvailableLog {
|
|
7359
|
+
category_id: LogCategoryId;
|
|
7360
|
+
log_ids: LogId[];
|
|
7361
|
+
}
|
|
7362
|
+
|
|
7337
7363
|
export interface KeyInfoResponse {
|
|
7338
7364
|
info: {
|
|
7339
7365
|
selections: {
|
|
@@ -7359,6 +7385,11 @@ export interface KeyInfoResponse {
|
|
|
7359
7385
|
faction_id?: FactionId | null;
|
|
7360
7386
|
company: boolean;
|
|
7361
7387
|
company_id?: CompanyId | null;
|
|
7388
|
+
log: {
|
|
7389
|
+
/** Shows if key has custom log permissions enabled. */
|
|
7390
|
+
custom_permissions: boolean;
|
|
7391
|
+
available: KeyInfoAvailableLog[];
|
|
7392
|
+
};
|
|
7362
7393
|
};
|
|
7363
7394
|
};
|
|
7364
7395
|
}
|
|
@@ -11386,11 +11417,11 @@ export interface UserV2 extends BaseSchema {
|
|
|
11386
11417
|
selections: {
|
|
11387
11418
|
attacks: {
|
|
11388
11419
|
response: FactionAttacksResponse;
|
|
11389
|
-
params: "limit" | "sort" | "to" | "from" | "timestamp";
|
|
11420
|
+
params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
|
|
11390
11421
|
};
|
|
11391
11422
|
attacksfull: {
|
|
11392
11423
|
response: FactionAttacksFullResponse;
|
|
11393
|
-
params: "limit" | "sort" | "to" | "from" | "timestamp";
|
|
11424
|
+
params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
|
|
11394
11425
|
};
|
|
11395
11426
|
bounties: {
|
|
11396
11427
|
response: UserBountiesResponse;
|
|
@@ -11458,6 +11489,10 @@ export interface UserV2 extends BaseSchema {
|
|
|
11458
11489
|
response: UserListResponse;
|
|
11459
11490
|
params: "cat" | "limit" | "offset" | "sort" | "timestamp";
|
|
11460
11491
|
};
|
|
11492
|
+
log: {
|
|
11493
|
+
response: UserLogsResponse;
|
|
11494
|
+
params: "log" | "cat" | "limit" | "to" | "from" | "timestamp";
|
|
11495
|
+
};
|
|
11461
11496
|
organizedcrime: {
|
|
11462
11497
|
response: UserOrganizedCrimeResponse;
|
|
11463
11498
|
params: "timestamp";
|
|
@@ -11489,6 +11524,7 @@ export interface UserV2 extends BaseSchema {
|
|
|
11489
11524
|
revives: {
|
|
11490
11525
|
response: RevivesResponse;
|
|
11491
11526
|
params:
|
|
11527
|
+
| "filters"
|
|
11492
11528
|
| "limit"
|
|
11493
11529
|
| "sort"
|
|
11494
11530
|
| "to"
|
|
@@ -11499,6 +11535,7 @@ export interface UserV2 extends BaseSchema {
|
|
|
11499
11535
|
revivesFull: {
|
|
11500
11536
|
response: RevivesFullResponse;
|
|
11501
11537
|
params:
|
|
11538
|
+
| "filters"
|
|
11502
11539
|
| "limit"
|
|
11503
11540
|
| "sort"
|
|
11504
11541
|
| "to"
|
|
@@ -11524,11 +11561,11 @@ export interface FactionV2 extends BaseSchema {
|
|
|
11524
11561
|
};
|
|
11525
11562
|
attacks: {
|
|
11526
11563
|
response: FactionAttacksResponse;
|
|
11527
|
-
params: "limit" | "sort" | "to" | "from" | "timestamp";
|
|
11564
|
+
params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
|
|
11528
11565
|
};
|
|
11529
11566
|
attacksfull: {
|
|
11530
11567
|
response: FactionAttacksFullResponse;
|
|
11531
|
-
params: "limit" | "sort" | "to" | "from" | "timestamp";
|
|
11568
|
+
params: "filters" | "limit" | "sort" | "to" | "from" | "timestamp";
|
|
11532
11569
|
};
|
|
11533
11570
|
balance: {
|
|
11534
11571
|
response: FactionBalanceResponse;
|
|
@@ -11619,6 +11656,7 @@ export interface FactionV2 extends BaseSchema {
|
|
|
11619
11656
|
revives: {
|
|
11620
11657
|
response: RevivesResponse;
|
|
11621
11658
|
params:
|
|
11659
|
+
| "filters"
|
|
11622
11660
|
| "limit"
|
|
11623
11661
|
| "sort"
|
|
11624
11662
|
| "to"
|
|
@@ -11629,6 +11667,7 @@ export interface FactionV2 extends BaseSchema {
|
|
|
11629
11667
|
revivesFull: {
|
|
11630
11668
|
response: RevivesFullResponse;
|
|
11631
11669
|
params:
|
|
11670
|
+
| "filters"
|
|
11632
11671
|
| "limit"
|
|
11633
11672
|
| "sort"
|
|
11634
11673
|
| "to"
|
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.0.4"
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
9
9
|
{
|
|
@@ -21,6 +21,19 @@
|
|
|
21
21
|
"description": "Requires limited access key. <br>",
|
|
22
22
|
"operationId": "3acc98a3016974b786cb01e04e1ced04",
|
|
23
23
|
"parameters": [
|
|
24
|
+
{
|
|
25
|
+
"name": "filters",
|
|
26
|
+
"in": "query",
|
|
27
|
+
"description": "It's possible to use this query parameter to only get incoming or outgoing attacks. If not specified, this selection will return both incoming and outgoing attacks.",
|
|
28
|
+
"required": false,
|
|
29
|
+
"schema": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"enum": [
|
|
32
|
+
"incoming",
|
|
33
|
+
"outgoing"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
24
37
|
{
|
|
25
38
|
"$ref": "#/components/parameters/ApiLimit100"
|
|
26
39
|
},
|
|
@@ -72,6 +85,19 @@
|
|
|
72
85
|
"description": "Requires limited access key. <br>Returns up to 1,000 rows. <br>",
|
|
73
86
|
"operationId": "e995691fd9845c8b4a91f065ac9c8420",
|
|
74
87
|
"parameters": [
|
|
88
|
+
{
|
|
89
|
+
"name": "filters",
|
|
90
|
+
"in": "query",
|
|
91
|
+
"description": "It's possible to use this query parameter to only get incoming or outgoing attacks. If not specified, this selection will return both incoming and outgoing attacks.",
|
|
92
|
+
"required": false,
|
|
93
|
+
"schema": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"enum": [
|
|
96
|
+
"incoming",
|
|
97
|
+
"outgoing"
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
},
|
|
75
101
|
{
|
|
76
102
|
"$ref": "#/components/parameters/ApiLimit1000"
|
|
77
103
|
},
|
|
@@ -975,6 +1001,77 @@
|
|
|
975
1001
|
"x-stability": "Stable"
|
|
976
1002
|
}
|
|
977
1003
|
},
|
|
1004
|
+
"/user/log": {
|
|
1005
|
+
"get": {
|
|
1006
|
+
"tags": [
|
|
1007
|
+
"User"
|
|
1008
|
+
],
|
|
1009
|
+
"summary": "Get your logs",
|
|
1010
|
+
"description": "Requires limited access key. <br> It's possible to pass a list of log ids or a log category id.<br>",
|
|
1011
|
+
"operationId": "f354f40bc5d6cbadf57fdecb453c976f",
|
|
1012
|
+
"parameters": [
|
|
1013
|
+
{
|
|
1014
|
+
"name": "log",
|
|
1015
|
+
"in": "query",
|
|
1016
|
+
"description": "Log ids, comma separated, e.g. 105,4900,4905",
|
|
1017
|
+
"required": false,
|
|
1018
|
+
"style": "form",
|
|
1019
|
+
"explode": false,
|
|
1020
|
+
"schema": {
|
|
1021
|
+
"type": "array",
|
|
1022
|
+
"items": {
|
|
1023
|
+
"$ref": "#/components/schemas/LogId"
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"name": "cat",
|
|
1029
|
+
"in": "query",
|
|
1030
|
+
"description": "Log category id",
|
|
1031
|
+
"required": false,
|
|
1032
|
+
"schema": {
|
|
1033
|
+
"$ref": "#/components/schemas/LogCategoryId"
|
|
1034
|
+
}
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"$ref": "#/components/parameters/ApiTo"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"$ref": "#/components/parameters/ApiFrom"
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
"$ref": "#/components/parameters/ApiTimestamp"
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"$ref": "#/components/parameters/ApiComment"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"$ref": "#/components/parameters/ApiKeyFull"
|
|
1053
|
+
}
|
|
1054
|
+
],
|
|
1055
|
+
"responses": {
|
|
1056
|
+
"200": {
|
|
1057
|
+
"description": "Successful operation",
|
|
1058
|
+
"content": {
|
|
1059
|
+
"application/json": {
|
|
1060
|
+
"schema": {
|
|
1061
|
+
"$ref": "#/components/schemas/UserLogsResponse"
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
"security": [
|
|
1068
|
+
{
|
|
1069
|
+
"api_key": []
|
|
1070
|
+
}
|
|
1071
|
+
],
|
|
1072
|
+
"x-stability": "Unstable"
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
978
1075
|
"/user/organizedcrime": {
|
|
979
1076
|
"get": {
|
|
980
1077
|
"tags": [
|
|
@@ -1518,6 +1615,19 @@
|
|
|
1518
1615
|
"description": "Requires limited access key. <br>",
|
|
1519
1616
|
"operationId": "3c847eb1325040798f37a7492108e094",
|
|
1520
1617
|
"parameters": [
|
|
1618
|
+
{
|
|
1619
|
+
"name": "filters",
|
|
1620
|
+
"in": "query",
|
|
1621
|
+
"description": "It's possible to use this query parameter to only get incoming or outgoing revives. If not specified, this selection will return both incoming and outgoing revives.",
|
|
1622
|
+
"required": false,
|
|
1623
|
+
"schema": {
|
|
1624
|
+
"type": "string",
|
|
1625
|
+
"enum": [
|
|
1626
|
+
"incoming",
|
|
1627
|
+
"outgoing"
|
|
1628
|
+
]
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1521
1631
|
{
|
|
1522
1632
|
"$ref": "#/components/parameters/ApiLimit100Default20"
|
|
1523
1633
|
},
|
|
@@ -1572,6 +1682,19 @@
|
|
|
1572
1682
|
"description": "Requires limited access key. <br>",
|
|
1573
1683
|
"operationId": "8820cd889afde899353037ca5a0f9a07",
|
|
1574
1684
|
"parameters": [
|
|
1685
|
+
{
|
|
1686
|
+
"name": "filters",
|
|
1687
|
+
"in": "query",
|
|
1688
|
+
"description": "It's possible to use this query parameter to only get incoming or outgoing revives. If not specified, this selection will return both incoming and outgoing revives.",
|
|
1689
|
+
"required": false,
|
|
1690
|
+
"schema": {
|
|
1691
|
+
"type": "string",
|
|
1692
|
+
"enum": [
|
|
1693
|
+
"incoming",
|
|
1694
|
+
"outgoing"
|
|
1695
|
+
]
|
|
1696
|
+
}
|
|
1697
|
+
},
|
|
1575
1698
|
{
|
|
1576
1699
|
"$ref": "#/components/parameters/ApiLimit1000Default20"
|
|
1577
1700
|
},
|
|
@@ -1948,6 +2071,19 @@
|
|
|
1948
2071
|
"description": "Requires limited access key with faction API access permissions. <br>",
|
|
1949
2072
|
"operationId": "cb5b38ba64c389e706526df8bc8af9b6",
|
|
1950
2073
|
"parameters": [
|
|
2074
|
+
{
|
|
2075
|
+
"name": "filters",
|
|
2076
|
+
"in": "query",
|
|
2077
|
+
"description": "It's possible to use this query parameter to only get incoming or outgoing attacks. If not specified, this selection will return both incoming and outgoing attacks.",
|
|
2078
|
+
"required": false,
|
|
2079
|
+
"schema": {
|
|
2080
|
+
"type": "string",
|
|
2081
|
+
"enum": [
|
|
2082
|
+
"incoming",
|
|
2083
|
+
"outgoing"
|
|
2084
|
+
]
|
|
2085
|
+
}
|
|
2086
|
+
},
|
|
1951
2087
|
{
|
|
1952
2088
|
"$ref": "#/components/parameters/ApiLimit100"
|
|
1953
2089
|
},
|
|
@@ -1999,6 +2135,19 @@
|
|
|
1999
2135
|
"description": "Requires limited access key with faction API access permissions. <br>",
|
|
2000
2136
|
"operationId": "8551280aaaf9819aa94be5c469a523de",
|
|
2001
2137
|
"parameters": [
|
|
2138
|
+
{
|
|
2139
|
+
"name": "filters",
|
|
2140
|
+
"in": "query",
|
|
2141
|
+
"description": "It's possible to use this query parameter to only get incoming or outgoing attacks. If not specified, this selection will return both incoming and outgoing attacks.",
|
|
2142
|
+
"required": false,
|
|
2143
|
+
"schema": {
|
|
2144
|
+
"type": "string",
|
|
2145
|
+
"enum": [
|
|
2146
|
+
"incoming",
|
|
2147
|
+
"outgoing"
|
|
2148
|
+
]
|
|
2149
|
+
}
|
|
2150
|
+
},
|
|
2002
2151
|
{
|
|
2003
2152
|
"$ref": "#/components/parameters/ApiLimit1000"
|
|
2004
2153
|
},
|
|
@@ -3337,6 +3486,19 @@
|
|
|
3337
3486
|
"description": "Requires limited access key with faction API access permissions. <br>",
|
|
3338
3487
|
"operationId": "486fcda26ed1aa6aba8ec7091080723b",
|
|
3339
3488
|
"parameters": [
|
|
3489
|
+
{
|
|
3490
|
+
"name": "filters",
|
|
3491
|
+
"in": "query",
|
|
3492
|
+
"description": "It's possible to use this query parameter to only get incoming or outgoing revives. If not specified, this selection will return both incoming and outgoing revives.",
|
|
3493
|
+
"required": false,
|
|
3494
|
+
"schema": {
|
|
3495
|
+
"type": "string",
|
|
3496
|
+
"enum": [
|
|
3497
|
+
"incoming",
|
|
3498
|
+
"outgoing"
|
|
3499
|
+
]
|
|
3500
|
+
}
|
|
3501
|
+
},
|
|
3340
3502
|
{
|
|
3341
3503
|
"$ref": "#/components/parameters/ApiLimit100"
|
|
3342
3504
|
},
|
|
@@ -3391,6 +3553,19 @@
|
|
|
3391
3553
|
"description": "Requires limited access key with faction API access permissions. <br>",
|
|
3392
3554
|
"operationId": "f17a4064779e8de5200238816c233c02",
|
|
3393
3555
|
"parameters": [
|
|
3556
|
+
{
|
|
3557
|
+
"name": "filters",
|
|
3558
|
+
"in": "query",
|
|
3559
|
+
"description": "It's possible to use this query parameter to only get incoming or outgoing revives. If not specified, this selection will return both incoming and outgoing revives.",
|
|
3560
|
+
"required": false,
|
|
3561
|
+
"schema": {
|
|
3562
|
+
"type": "string",
|
|
3563
|
+
"enum": [
|
|
3564
|
+
"incoming",
|
|
3565
|
+
"outgoing"
|
|
3566
|
+
]
|
|
3567
|
+
}
|
|
3568
|
+
},
|
|
3394
3569
|
{
|
|
3395
3570
|
"$ref": "#/components/parameters/ApiLimit1000"
|
|
3396
3571
|
},
|
|
@@ -11968,6 +12143,9 @@
|
|
|
11968
12143
|
"type": "integer",
|
|
11969
12144
|
"format": "int32"
|
|
11970
12145
|
},
|
|
12146
|
+
"UserLogId": {
|
|
12147
|
+
"type": "string"
|
|
12148
|
+
},
|
|
11971
12149
|
"LogCategoryId": {
|
|
11972
12150
|
"type": "integer",
|
|
11973
12151
|
"format": "int32"
|
|
@@ -13423,6 +13601,70 @@
|
|
|
13423
13601
|
}
|
|
13424
13602
|
]
|
|
13425
13603
|
},
|
|
13604
|
+
"UserLog": {
|
|
13605
|
+
"required": [
|
|
13606
|
+
"id",
|
|
13607
|
+
"timestamp",
|
|
13608
|
+
"details",
|
|
13609
|
+
"data",
|
|
13610
|
+
"params"
|
|
13611
|
+
],
|
|
13612
|
+
"properties": {
|
|
13613
|
+
"id": {
|
|
13614
|
+
"$ref": "#/components/schemas/UserLogId"
|
|
13615
|
+
},
|
|
13616
|
+
"timestamp": {
|
|
13617
|
+
"type": "integer",
|
|
13618
|
+
"format": "int32"
|
|
13619
|
+
},
|
|
13620
|
+
"details": {
|
|
13621
|
+
"required": [
|
|
13622
|
+
"id",
|
|
13623
|
+
"title",
|
|
13624
|
+
"category"
|
|
13625
|
+
],
|
|
13626
|
+
"properties": {
|
|
13627
|
+
"id": {
|
|
13628
|
+
"$ref": "#/components/schemas/LogId"
|
|
13629
|
+
},
|
|
13630
|
+
"title": {
|
|
13631
|
+
"type": "string"
|
|
13632
|
+
},
|
|
13633
|
+
"category": {
|
|
13634
|
+
"type": "string"
|
|
13635
|
+
}
|
|
13636
|
+
},
|
|
13637
|
+
"type": "object"
|
|
13638
|
+
},
|
|
13639
|
+
"data": {
|
|
13640
|
+
"description": "Dynamic key-value pairs related to the log.",
|
|
13641
|
+
"type": "object"
|
|
13642
|
+
},
|
|
13643
|
+
"params": {
|
|
13644
|
+
"description": "Dynamic key-value pairs related to the log.",
|
|
13645
|
+
"type": "object"
|
|
13646
|
+
}
|
|
13647
|
+
},
|
|
13648
|
+
"type": "object"
|
|
13649
|
+
},
|
|
13650
|
+
"UserLogsResponse": {
|
|
13651
|
+
"required": [
|
|
13652
|
+
"log",
|
|
13653
|
+
"_metadata"
|
|
13654
|
+
],
|
|
13655
|
+
"properties": {
|
|
13656
|
+
"log": {
|
|
13657
|
+
"type": "array",
|
|
13658
|
+
"items": {
|
|
13659
|
+
"$ref": "#/components/schemas/UserLog"
|
|
13660
|
+
}
|
|
13661
|
+
},
|
|
13662
|
+
"_metadata": {
|
|
13663
|
+
"$ref": "#/components/schemas/RequestMetadataWithLinks"
|
|
13664
|
+
}
|
|
13665
|
+
},
|
|
13666
|
+
"type": "object"
|
|
13667
|
+
},
|
|
13426
13668
|
"BasicUser": {
|
|
13427
13669
|
"required": [
|
|
13428
13670
|
"id",
|
|
@@ -21955,6 +22197,24 @@
|
|
|
21955
22197
|
},
|
|
21956
22198
|
"type": "object"
|
|
21957
22199
|
},
|
|
22200
|
+
"KeyInfoAvailableLog": {
|
|
22201
|
+
"required": [
|
|
22202
|
+
"category_id",
|
|
22203
|
+
"log_ids"
|
|
22204
|
+
],
|
|
22205
|
+
"properties": {
|
|
22206
|
+
"category_id": {
|
|
22207
|
+
"$ref": "#/components/schemas/LogCategoryId"
|
|
22208
|
+
},
|
|
22209
|
+
"log_ids": {
|
|
22210
|
+
"type": "array",
|
|
22211
|
+
"items": {
|
|
22212
|
+
"$ref": "#/components/schemas/LogId"
|
|
22213
|
+
}
|
|
22214
|
+
}
|
|
22215
|
+
},
|
|
22216
|
+
"type": "object"
|
|
22217
|
+
},
|
|
21958
22218
|
"KeyInfoResponse": {
|
|
21959
22219
|
"required": [
|
|
21960
22220
|
"info"
|
|
@@ -22077,7 +22337,8 @@
|
|
|
22077
22337
|
"level",
|
|
22078
22338
|
"type",
|
|
22079
22339
|
"faction",
|
|
22080
|
-
"company"
|
|
22340
|
+
"company",
|
|
22341
|
+
"log"
|
|
22081
22342
|
],
|
|
22082
22343
|
"properties": {
|
|
22083
22344
|
"level": {
|
|
@@ -22116,6 +22377,25 @@
|
|
|
22116
22377
|
"type": "null"
|
|
22117
22378
|
}
|
|
22118
22379
|
]
|
|
22380
|
+
},
|
|
22381
|
+
"log": {
|
|
22382
|
+
"required": [
|
|
22383
|
+
"custom_permissions",
|
|
22384
|
+
"available"
|
|
22385
|
+
],
|
|
22386
|
+
"properties": {
|
|
22387
|
+
"custom_permissions": {
|
|
22388
|
+
"description": "Shows if key has custom log permissions enabled.",
|
|
22389
|
+
"type": "boolean"
|
|
22390
|
+
},
|
|
22391
|
+
"available": {
|
|
22392
|
+
"type": "array",
|
|
22393
|
+
"items": {
|
|
22394
|
+
"$ref": "#/components/schemas/KeyInfoAvailableLog"
|
|
22395
|
+
}
|
|
22396
|
+
}
|
|
22397
|
+
},
|
|
22398
|
+
"type": "object"
|
|
22119
22399
|
}
|
|
22120
22400
|
},
|
|
22121
22401
|
"type": "object"
|
|
@@ -25225,6 +25505,15 @@
|
|
|
25225
25505
|
"type": "string"
|
|
25226
25506
|
}
|
|
25227
25507
|
},
|
|
25508
|
+
"ApiKeyFull": {
|
|
25509
|
+
"name": "key",
|
|
25510
|
+
"in": "query",
|
|
25511
|
+
"description": "API key (Full).<br>It's not required to use this parameter when passing the API key via the Authorization header.",
|
|
25512
|
+
"required": false,
|
|
25513
|
+
"schema": {
|
|
25514
|
+
"type": "string"
|
|
25515
|
+
}
|
|
25516
|
+
},
|
|
25228
25517
|
"ApiTimestamp": {
|
|
25229
25518
|
"name": "timestamp",
|
|
25230
25519
|
"in": "query",
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tornapi-typescript",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.4",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"generate-types": "tsc && node build/index.js"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"@scalar/openapi-types": "^0.3.
|
|
10
|
-
"@types/node": "^22.
|
|
9
|
+
"@scalar/openapi-types": "^0.3.7",
|
|
10
|
+
"@types/node": "^22.17.0",
|
|
11
11
|
"prettier": "^3.6.2",
|
|
12
12
|
"typeconv": "^2.3.1",
|
|
13
|
-
"typescript": "^5.
|
|
13
|
+
"typescript": "^5.9.2"
|
|
14
14
|
},
|
|
15
15
|
"main": "./dist/index.js",
|
|
16
16
|
"types": "./dist/index.d.ts",
|