@takaro/apiclient 0.0.0-dev.65bc64c → 0.0.0-dev.65f42f9
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/.source-hash +1 -1
- package/dist/generated/api.d.ts +7118 -2299
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +2358 -304
- package/dist/generated/api.js.map +1 -1
- package/dist/generated/base.d.ts.map +1 -1
- package/dist/generated/base.js.map +1 -1
- package/dist/generated/common.d.ts.map +1 -1
- package/dist/generated/common.js.map +1 -1
- package/dist/generated/configuration.d.ts.map +1 -1
- package/dist/generated/configuration.js.map +1 -1
- package/dist/generated-management/api.d.ts +9661 -5972
- package/dist/generated-management/api.d.ts.map +1 -1
- package/dist/generated-management/api.js +1428 -121
- package/dist/generated-management/api.js.map +1 -1
- package/dist/generated-management/base.d.ts.map +1 -1
- package/dist/generated-management/base.js.map +1 -1
- package/dist/generated-management/common.d.ts.map +1 -1
- package/dist/generated-management/common.js.map +1 -1
- package/dist/generated-management/configuration.d.ts.map +1 -1
- package/dist/generated-management/configuration.js.map +1 -1
- package/dist/lib/adminClient.d.ts +3 -1
- package/dist/lib/adminClient.d.ts.map +1 -1
- package/dist/lib/adminClient.js +7 -1
- package/dist/lib/adminClient.js.map +1 -1
- package/dist/lib/baseClient.d.ts.map +1 -1
- package/dist/lib/client.d.ts +3 -1
- package/dist/lib/client.d.ts.map +1 -1
- package/dist/lib/client.js +22 -11
- package/dist/lib/client.js.map +1 -1
- package/dist/lib/distributorClient.d.ts.map +1 -1
- package/dist/lib/staffClient.d.ts +3 -1
- package/dist/lib/staffClient.d.ts.map +1 -1
- package/dist/lib/staffClient.js +5 -1
- package/dist/lib/staffClient.js.map +1 -1
- package/dist/main.d.ts +3 -3
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/package.json +4 -3
package/dist/generated/api.js
CHANGED
|
@@ -59,6 +59,20 @@ export const ApiKeySearchInputDTOSortDirectionEnum = {
|
|
|
59
59
|
Asc: 'asc',
|
|
60
60
|
Desc: 'desc',
|
|
61
61
|
};
|
|
62
|
+
export const AreaGainDTOCauseEnum = {
|
|
63
|
+
Pickup: 'pickup',
|
|
64
|
+
Drop: 'drop',
|
|
65
|
+
Craft: 'craft',
|
|
66
|
+
Loot: 'loot',
|
|
67
|
+
Trade: 'trade',
|
|
68
|
+
Death: 'death',
|
|
69
|
+
Other: 'other',
|
|
70
|
+
Unknown: 'unknown',
|
|
71
|
+
};
|
|
72
|
+
export const AreaGainDTOPositionSourceEnum = {
|
|
73
|
+
Reported: 'reported',
|
|
74
|
+
Sampled: 'sampled',
|
|
75
|
+
};
|
|
62
76
|
export const BanSearchInputDTOExtendEnum = {
|
|
63
77
|
Player: 'player',
|
|
64
78
|
GameServer: 'gameServer',
|
|
@@ -201,11 +215,6 @@ export const CsmmExportSectionParamsSectionEnum = {
|
|
|
201
215
|
CustomHooks: 'customHooks',
|
|
202
216
|
CronJobs: 'cronJobs',
|
|
203
217
|
};
|
|
204
|
-
export const DistributorBackedDomainOutputDTOStateEnum = {
|
|
205
|
-
Active: 'ACTIVE',
|
|
206
|
-
Disabled: 'DISABLED',
|
|
207
|
-
Maintenance: 'MAINTENANCE',
|
|
208
|
-
};
|
|
209
218
|
export const DomainCreateInputDTOStateEnum = {
|
|
210
219
|
Active: 'ACTIVE',
|
|
211
220
|
Disabled: 'DISABLED',
|
|
@@ -272,6 +281,7 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
272
281
|
SettingsSet: 'settings-set',
|
|
273
282
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
274
283
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
284
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
275
285
|
ServerStatusChanged: 'server-status-changed',
|
|
276
286
|
ModuleCreated: 'module-created',
|
|
277
287
|
ModuleUpdated: 'module-updated',
|
|
@@ -286,8 +296,11 @@ export const EventCreateDTOEventNameEnum = {
|
|
|
286
296
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
287
297
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
288
298
|
PlayerLinked: 'player-linked',
|
|
299
|
+
PlayerUnlinked: 'player-unlinked',
|
|
300
|
+
PlayerMerged: 'player-merged',
|
|
289
301
|
GameserverCreated: 'gameserver-created',
|
|
290
302
|
GameserverUpdated: 'gameserver-updated',
|
|
303
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
291
304
|
GameserverDeleted: 'gameserver-deleted',
|
|
292
305
|
PlayerBanned: 'player-banned',
|
|
293
306
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -331,6 +344,7 @@ export const EventExploreFiltersDTOEventNameEnum = {
|
|
|
331
344
|
SettingsSet: 'settings-set',
|
|
332
345
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
333
346
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
347
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
334
348
|
ServerStatusChanged: 'server-status-changed',
|
|
335
349
|
ModuleCreated: 'module-created',
|
|
336
350
|
ModuleUpdated: 'module-updated',
|
|
@@ -345,8 +359,11 @@ export const EventExploreFiltersDTOEventNameEnum = {
|
|
|
345
359
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
346
360
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
347
361
|
PlayerLinked: 'player-linked',
|
|
362
|
+
PlayerUnlinked: 'player-unlinked',
|
|
363
|
+
PlayerMerged: 'player-merged',
|
|
348
364
|
GameserverCreated: 'gameserver-created',
|
|
349
365
|
GameserverUpdated: 'gameserver-updated',
|
|
366
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
350
367
|
GameserverDeleted: 'gameserver-deleted',
|
|
351
368
|
PlayerBanned: 'player-banned',
|
|
352
369
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -374,6 +391,15 @@ export const EventExploreFiltersDTOEventNameEnum = {
|
|
|
374
391
|
PlayerDeath: 'player-death',
|
|
375
392
|
EntityKilled: 'entity-killed',
|
|
376
393
|
};
|
|
394
|
+
export const EventInventoryChangedCauseEnum = {
|
|
395
|
+
Pickup: 'pickup',
|
|
396
|
+
Drop: 'drop',
|
|
397
|
+
Craft: 'craft',
|
|
398
|
+
Loot: 'loot',
|
|
399
|
+
Trade: 'trade',
|
|
400
|
+
Death: 'death',
|
|
401
|
+
Other: 'other',
|
|
402
|
+
};
|
|
377
403
|
export const EventOutputDTOEventNameEnum = {
|
|
378
404
|
RoleAssigned: 'role-assigned',
|
|
379
405
|
RoleRemoved: 'role-removed',
|
|
@@ -390,6 +416,7 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
390
416
|
SettingsSet: 'settings-set',
|
|
391
417
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
392
418
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
419
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
393
420
|
ServerStatusChanged: 'server-status-changed',
|
|
394
421
|
ModuleCreated: 'module-created',
|
|
395
422
|
ModuleUpdated: 'module-updated',
|
|
@@ -404,8 +431,11 @@ export const EventOutputDTOEventNameEnum = {
|
|
|
404
431
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
405
432
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
406
433
|
PlayerLinked: 'player-linked',
|
|
434
|
+
PlayerUnlinked: 'player-unlinked',
|
|
435
|
+
PlayerMerged: 'player-merged',
|
|
407
436
|
GameserverCreated: 'gameserver-created',
|
|
408
437
|
GameserverUpdated: 'gameserver-updated',
|
|
438
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
409
439
|
GameserverDeleted: 'gameserver-deleted',
|
|
410
440
|
PlayerBanned: 'player-banned',
|
|
411
441
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -449,6 +479,7 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
|
|
|
449
479
|
SettingsSet: 'settings-set',
|
|
450
480
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
451
481
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
482
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
452
483
|
ServerStatusChanged: 'server-status-changed',
|
|
453
484
|
ModuleCreated: 'module-created',
|
|
454
485
|
ModuleUpdated: 'module-updated',
|
|
@@ -463,8 +494,11 @@ export const EventSearchInputAllowedFiltersEventNameEnum = {
|
|
|
463
494
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
464
495
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
465
496
|
PlayerLinked: 'player-linked',
|
|
497
|
+
PlayerUnlinked: 'player-unlinked',
|
|
498
|
+
PlayerMerged: 'player-merged',
|
|
466
499
|
GameserverCreated: 'gameserver-created',
|
|
467
500
|
GameserverUpdated: 'gameserver-updated',
|
|
501
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
468
502
|
GameserverDeleted: 'gameserver-deleted',
|
|
469
503
|
PlayerBanned: 'player-banned',
|
|
470
504
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -527,12 +561,24 @@ export const GameServerCreateDTOTypeEnum = {
|
|
|
527
561
|
Generic: 'GENERIC',
|
|
528
562
|
Mock: 'MOCK',
|
|
529
563
|
};
|
|
564
|
+
export const GameServerCreateDTONameSourceEnum = {
|
|
565
|
+
Connector: 'connector',
|
|
566
|
+
Operator: 'operator',
|
|
567
|
+
};
|
|
568
|
+
export const GameServerIdentifyInputDTOProtocolVersionEnum = {
|
|
569
|
+
NUMBER_0: 0,
|
|
570
|
+
NUMBER_1: 1,
|
|
571
|
+
};
|
|
530
572
|
export const GameServerOutputDTOTypeEnum = {
|
|
531
573
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
532
574
|
Rust: 'RUST',
|
|
533
575
|
Generic: 'GENERIC',
|
|
534
576
|
Mock: 'MOCK',
|
|
535
577
|
};
|
|
578
|
+
export const GameServerOutputDTONameSourceEnum = {
|
|
579
|
+
Connector: 'connector',
|
|
580
|
+
Operator: 'operator',
|
|
581
|
+
};
|
|
536
582
|
export const GameServerSearchInputAllowedFiltersTypeEnum = {
|
|
537
583
|
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
538
584
|
Rust: 'RUST',
|
|
@@ -575,14 +621,17 @@ export const GetJobInputDTOTypeEnum = {
|
|
|
575
621
|
SyncItems: 'syncItems',
|
|
576
622
|
SyncEntities: 'syncEntities',
|
|
577
623
|
SyncBans: 'syncBans',
|
|
624
|
+
SyncLocations: 'syncLocations',
|
|
578
625
|
SyncMapImages: 'syncMapImages',
|
|
579
626
|
SyncMapUploads: 'syncMapUploads',
|
|
627
|
+
SyncGameIcons: 'syncGameIcons',
|
|
580
628
|
SyncSteam: 'syncSteam',
|
|
581
629
|
SyncDiscordRoles: 'syncDiscordRoles',
|
|
582
630
|
EmitRateLimitSummary: 'emitRateLimitSummary',
|
|
583
631
|
CleanRevokedApiKeys: 'cleanRevokedApiKeys',
|
|
584
632
|
CleanExecutionClaims: 'cleanExecutionClaims',
|
|
585
633
|
DeleteClickHouseEvents: 'deleteClickHouseEvents',
|
|
634
|
+
RepointClickHouseEvents: 'repointClickHouseEvents',
|
|
586
635
|
CleanConnectorMigrations: 'cleanConnectorMigrations',
|
|
587
636
|
};
|
|
588
637
|
export const GetSettingsInputKeysEnum = {
|
|
@@ -631,6 +680,7 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
631
680
|
SettingsSet: 'settings-set',
|
|
632
681
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
633
682
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
683
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
634
684
|
ServerStatusChanged: 'server-status-changed',
|
|
635
685
|
ModuleCreated: 'module-created',
|
|
636
686
|
ModuleUpdated: 'module-updated',
|
|
@@ -645,8 +695,11 @@ export const HookCreateDTOEventTypeEnum = {
|
|
|
645
695
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
646
696
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
647
697
|
PlayerLinked: 'player-linked',
|
|
698
|
+
PlayerUnlinked: 'player-unlinked',
|
|
699
|
+
PlayerMerged: 'player-merged',
|
|
648
700
|
GameserverCreated: 'gameserver-created',
|
|
649
701
|
GameserverUpdated: 'gameserver-updated',
|
|
702
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
650
703
|
GameserverDeleted: 'gameserver-deleted',
|
|
651
704
|
PlayerBanned: 'player-banned',
|
|
652
705
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -692,6 +745,7 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
692
745
|
SettingsSet: 'settings-set',
|
|
693
746
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
694
747
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
748
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
695
749
|
ServerStatusChanged: 'server-status-changed',
|
|
696
750
|
ModuleCreated: 'module-created',
|
|
697
751
|
ModuleUpdated: 'module-updated',
|
|
@@ -706,8 +760,11 @@ export const HookOutputDTOEventTypeEnum = {
|
|
|
706
760
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
707
761
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
708
762
|
PlayerLinked: 'player-linked',
|
|
763
|
+
PlayerUnlinked: 'player-unlinked',
|
|
764
|
+
PlayerMerged: 'player-merged',
|
|
709
765
|
GameserverCreated: 'gameserver-created',
|
|
710
766
|
GameserverUpdated: 'gameserver-updated',
|
|
767
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
711
768
|
GameserverDeleted: 'gameserver-deleted',
|
|
712
769
|
PlayerBanned: 'player-banned',
|
|
713
770
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -753,6 +810,7 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
|
|
|
753
810
|
SettingsSet: 'settings-set',
|
|
754
811
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
755
812
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
813
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
756
814
|
ServerStatusChanged: 'server-status-changed',
|
|
757
815
|
ModuleCreated: 'module-created',
|
|
758
816
|
ModuleUpdated: 'module-updated',
|
|
@@ -767,8 +825,11 @@ export const HookSearchInputAllowedFiltersEventTypeEnum = {
|
|
|
767
825
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
768
826
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
769
827
|
PlayerLinked: 'player-linked',
|
|
828
|
+
PlayerUnlinked: 'player-unlinked',
|
|
829
|
+
PlayerMerged: 'player-merged',
|
|
770
830
|
GameserverCreated: 'gameserver-created',
|
|
771
831
|
GameserverUpdated: 'gameserver-updated',
|
|
832
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
772
833
|
GameserverDeleted: 'gameserver-deleted',
|
|
773
834
|
PlayerBanned: 'player-banned',
|
|
774
835
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -822,6 +883,7 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
822
883
|
SettingsSet: 'settings-set',
|
|
823
884
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
824
885
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
886
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
825
887
|
ServerStatusChanged: 'server-status-changed',
|
|
826
888
|
ModuleCreated: 'module-created',
|
|
827
889
|
ModuleUpdated: 'module-updated',
|
|
@@ -836,8 +898,11 @@ export const HookTriggerDTOEventTypeEnum = {
|
|
|
836
898
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
837
899
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
838
900
|
PlayerLinked: 'player-linked',
|
|
901
|
+
PlayerUnlinked: 'player-unlinked',
|
|
902
|
+
PlayerMerged: 'player-merged',
|
|
839
903
|
GameserverCreated: 'gameserver-created',
|
|
840
904
|
GameserverUpdated: 'gameserver-updated',
|
|
905
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
841
906
|
GameserverDeleted: 'gameserver-deleted',
|
|
842
907
|
PlayerBanned: 'player-banned',
|
|
843
908
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -883,6 +948,7 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
883
948
|
SettingsSet: 'settings-set',
|
|
884
949
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
885
950
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
951
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
886
952
|
ServerStatusChanged: 'server-status-changed',
|
|
887
953
|
ModuleCreated: 'module-created',
|
|
888
954
|
ModuleUpdated: 'module-updated',
|
|
@@ -897,8 +963,11 @@ export const HookUpdateDTOEventTypeEnum = {
|
|
|
897
963
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
898
964
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
899
965
|
PlayerLinked: 'player-linked',
|
|
966
|
+
PlayerUnlinked: 'player-unlinked',
|
|
967
|
+
PlayerMerged: 'player-merged',
|
|
900
968
|
GameserverCreated: 'gameserver-created',
|
|
901
969
|
GameserverUpdated: 'gameserver-updated',
|
|
970
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
902
971
|
GameserverDeleted: 'gameserver-deleted',
|
|
903
972
|
PlayerBanned: 'player-banned',
|
|
904
973
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -949,6 +1018,7 @@ export const IHookEventTypeEnum = {
|
|
|
949
1018
|
SettingsSet: 'settings-set',
|
|
950
1019
|
PlayerNewIpDetected: 'player-new-ip-detected',
|
|
951
1020
|
PlayerNewNameDetected: 'player-new-name-detected',
|
|
1021
|
+
PlayerIdentityConflict: 'player-identity-conflict',
|
|
952
1022
|
ServerStatusChanged: 'server-status-changed',
|
|
953
1023
|
ModuleCreated: 'module-created',
|
|
954
1024
|
ModuleUpdated: 'module-updated',
|
|
@@ -963,8 +1033,11 @@ export const IHookEventTypeEnum = {
|
|
|
963
1033
|
ShopOrderStatusChanged: 'shop-order-status-changed',
|
|
964
1034
|
ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
|
|
965
1035
|
PlayerLinked: 'player-linked',
|
|
1036
|
+
PlayerUnlinked: 'player-unlinked',
|
|
1037
|
+
PlayerMerged: 'player-merged',
|
|
966
1038
|
GameserverCreated: 'gameserver-created',
|
|
967
1039
|
GameserverUpdated: 'gameserver-updated',
|
|
1040
|
+
GameserverVersionChanged: 'gameserver-version-changed',
|
|
968
1041
|
GameserverDeleted: 'gameserver-deleted',
|
|
969
1042
|
PlayerBanned: 'player-banned',
|
|
970
1043
|
PlayerUnbanned: 'player-unbanned',
|
|
@@ -991,6 +1064,29 @@ export const ITakaroQuerySortDirectionEnum = {
|
|
|
991
1064
|
Asc: 'asc',
|
|
992
1065
|
Desc: 'desc',
|
|
993
1066
|
};
|
|
1067
|
+
export const InventoryChangeCounterpartDTOKindEnum = {
|
|
1068
|
+
Container: 'container',
|
|
1069
|
+
Player: 'player',
|
|
1070
|
+
};
|
|
1071
|
+
export const InventoryChangeDTOChangeTypeEnum = {
|
|
1072
|
+
Added: 'added',
|
|
1073
|
+
Removed: 'removed',
|
|
1074
|
+
Changed: 'changed',
|
|
1075
|
+
};
|
|
1076
|
+
export const InventoryChangeDTOCauseEnum = {
|
|
1077
|
+
Pickup: 'pickup',
|
|
1078
|
+
Drop: 'drop',
|
|
1079
|
+
Craft: 'craft',
|
|
1080
|
+
Loot: 'loot',
|
|
1081
|
+
Trade: 'trade',
|
|
1082
|
+
Death: 'death',
|
|
1083
|
+
Other: 'other',
|
|
1084
|
+
Unknown: 'unknown',
|
|
1085
|
+
};
|
|
1086
|
+
export const InventoryCounterpartDTOKindEnum = {
|
|
1087
|
+
Container: 'container',
|
|
1088
|
+
Player: 'player',
|
|
1089
|
+
};
|
|
994
1090
|
export const InviteLinkCreateResultDTOStatusEnum = {
|
|
995
1091
|
Active: 'ACTIVE',
|
|
996
1092
|
Revoked: 'REVOKED',
|
|
@@ -1013,6 +1109,21 @@ export const InviteLinkSearchInputDTOSortDirectionEnum = {
|
|
|
1013
1109
|
Asc: 'asc',
|
|
1014
1110
|
Desc: 'desc',
|
|
1015
1111
|
};
|
|
1112
|
+
export const ItemHolderChangeDTOChangeTypeEnum = {
|
|
1113
|
+
Added: 'added',
|
|
1114
|
+
Removed: 'removed',
|
|
1115
|
+
Changed: 'changed',
|
|
1116
|
+
};
|
|
1117
|
+
export const ItemHolderChangeDTOCauseEnum = {
|
|
1118
|
+
Pickup: 'pickup',
|
|
1119
|
+
Drop: 'drop',
|
|
1120
|
+
Craft: 'craft',
|
|
1121
|
+
Loot: 'loot',
|
|
1122
|
+
Trade: 'trade',
|
|
1123
|
+
Death: 'death',
|
|
1124
|
+
Other: 'other',
|
|
1125
|
+
Unknown: 'unknown',
|
|
1126
|
+
};
|
|
1016
1127
|
export const ItemSearchInputDTOExtendEnum = {
|
|
1017
1128
|
Gameserver: 'gameserver',
|
|
1018
1129
|
};
|
|
@@ -1046,6 +1157,10 @@ export const JobStatusOutputDTOStatusEnum = {
|
|
|
1046
1157
|
Waiting: 'waiting',
|
|
1047
1158
|
WaitingChildren: 'waiting-children',
|
|
1048
1159
|
};
|
|
1160
|
+
export const LocationSearchInputDTOSortDirectionEnum = {
|
|
1161
|
+
Asc: 'asc',
|
|
1162
|
+
Desc: 'desc',
|
|
1163
|
+
};
|
|
1049
1164
|
export const LoginQueryParamsLocaleEnum = {
|
|
1050
1165
|
En: 'en',
|
|
1051
1166
|
Nl: 'nl',
|
|
@@ -1165,6 +1280,8 @@ export const PERMISSIONS = {
|
|
|
1165
1280
|
ViewDiscordInfo: 'VIEW_DISCORD_INFO',
|
|
1166
1281
|
SendDiscordMessage: 'SEND_DISCORD_MESSAGE',
|
|
1167
1282
|
ManageApiKeys: 'MANAGE_API_KEYS',
|
|
1283
|
+
ReadMap: 'READ_MAP',
|
|
1284
|
+
ReadTracking: 'READ_TRACKING',
|
|
1168
1285
|
};
|
|
1169
1286
|
export const ParamKeyKeyEnum = {
|
|
1170
1287
|
CommandPrefix: 'commandPrefix',
|
|
@@ -1180,6 +1297,39 @@ export const ParamKeyKeyEnum = {
|
|
|
1180
1297
|
UnknownCommandFeedbackMessage: 'unknownCommandFeedbackMessage',
|
|
1181
1298
|
TakaroAiEnabled: 'takaroAiEnabled',
|
|
1182
1299
|
};
|
|
1300
|
+
export const PlayerMergeGameServerDTOOutcomeEnum = {
|
|
1301
|
+
Moved: 'moved',
|
|
1302
|
+
Combined: 'combined',
|
|
1303
|
+
};
|
|
1304
|
+
export const PlayerMergeGameServerDTOKeptPogFromEnum = {
|
|
1305
|
+
Survivor: 'survivor',
|
|
1306
|
+
Absorbed: 'absorbed',
|
|
1307
|
+
};
|
|
1308
|
+
export const PlayerMergeGameServerDTOInventoryFromEnum = {
|
|
1309
|
+
Survivor: 'survivor',
|
|
1310
|
+
Absorbed: 'absorbed',
|
|
1311
|
+
};
|
|
1312
|
+
export const PlayerMergeIdentifierDTOIdentifierEnum = {
|
|
1313
|
+
SteamId: 'steamId',
|
|
1314
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1315
|
+
XboxLiveId: 'xboxLiveId',
|
|
1316
|
+
PlatformId: 'platformId',
|
|
1317
|
+
};
|
|
1318
|
+
export const PlayerMergeIdentifierDTOFromEnum = {
|
|
1319
|
+
Survivor: 'survivor',
|
|
1320
|
+
Absorbed: 'absorbed',
|
|
1321
|
+
};
|
|
1322
|
+
export const PlayerMergeRefusalDTOCodeEnum = {
|
|
1323
|
+
SamePlayer: 'same-player',
|
|
1324
|
+
IdentifierConflict: 'identifier-conflict',
|
|
1325
|
+
FixturePlayer: 'fixture-player',
|
|
1326
|
+
};
|
|
1327
|
+
export const PlayerMergeRefusalDTOIdentifierEnum = {
|
|
1328
|
+
SteamId: 'steamId',
|
|
1329
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1330
|
+
XboxLiveId: 'xboxLiveId',
|
|
1331
|
+
PlatformId: 'platformId',
|
|
1332
|
+
};
|
|
1183
1333
|
export const PlayerOnGameServerSearchInputDTOExtendEnum = {
|
|
1184
1334
|
GameServer: 'gameServer',
|
|
1185
1335
|
Player: 'player',
|
|
@@ -1188,6 +1338,24 @@ export const PlayerOnGameServerSearchInputDTOSortDirectionEnum = {
|
|
|
1188
1338
|
Asc: 'asc',
|
|
1189
1339
|
Desc: 'desc',
|
|
1190
1340
|
};
|
|
1341
|
+
export const PlayerPortalLinkCodeDTOStatusEnum = {
|
|
1342
|
+
Valid: 'valid',
|
|
1343
|
+
Expired: 'expired',
|
|
1344
|
+
Invalid: 'invalid',
|
|
1345
|
+
};
|
|
1346
|
+
export const PlayerPortalLinkDTOSourceEnum = {
|
|
1347
|
+
GameCode: 'game-code',
|
|
1348
|
+
WebCode: 'web-code',
|
|
1349
|
+
SteamAuto: 'steam-auto',
|
|
1350
|
+
Admin: 'admin',
|
|
1351
|
+
Unknown: 'unknown',
|
|
1352
|
+
};
|
|
1353
|
+
export const PlayerPortalServerDTOGameServerTypeEnum = {
|
|
1354
|
+
Sevendaystodie: 'SEVENDAYSTODIE',
|
|
1355
|
+
Rust: 'RUST',
|
|
1356
|
+
Generic: 'GENERIC',
|
|
1357
|
+
Mock: 'MOCK',
|
|
1358
|
+
};
|
|
1191
1359
|
export const PlayerSearchInputAllowedFiltersRoleAssignmentScopeEnum = {
|
|
1192
1360
|
Global: 'global',
|
|
1193
1361
|
GameServer: 'gameServer',
|
|
@@ -1202,6 +1370,11 @@ export const PlayerSearchInputDTOSortDirectionEnum = {
|
|
|
1202
1370
|
Asc: 'asc',
|
|
1203
1371
|
Desc: 'desc',
|
|
1204
1372
|
};
|
|
1373
|
+
export const PositionAreaShapeDTOTypeEnum = {
|
|
1374
|
+
Circle: 'circle',
|
|
1375
|
+
Rectangle: 'rectangle',
|
|
1376
|
+
Polygon: 'polygon',
|
|
1377
|
+
};
|
|
1205
1378
|
export const RecentOrderDTOStatusEnum = {
|
|
1206
1379
|
Completed: 'COMPLETED',
|
|
1207
1380
|
Paid: 'PAID',
|
|
@@ -1364,16 +1537,68 @@ export const TakaroEventDomainCreatedOriginEnum = {
|
|
|
1364
1537
|
Subscription: 'subscription',
|
|
1365
1538
|
AdminSecret: 'admin_secret',
|
|
1366
1539
|
};
|
|
1540
|
+
export const TakaroEventInventoryCounterpartKindEnum = {
|
|
1541
|
+
Container: 'container',
|
|
1542
|
+
Player: 'player',
|
|
1543
|
+
};
|
|
1367
1544
|
export const TakaroEventItemsGivenLineResultEnum = {
|
|
1368
1545
|
Delivered: 'DELIVERED',
|
|
1369
1546
|
Failed: 'FAILED',
|
|
1370
1547
|
Unknown: 'UNKNOWN',
|
|
1371
1548
|
};
|
|
1549
|
+
export const TakaroEventPlayerIdentityConflictUnwrittenIdentifiersEnum = {
|
|
1550
|
+
SteamId: 'steamId',
|
|
1551
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1552
|
+
XboxLiveId: 'xboxLiveId',
|
|
1553
|
+
PlatformId: 'platformId',
|
|
1554
|
+
};
|
|
1555
|
+
export const TakaroEventPlayerIdentityConflictMatchMatchedOnEnum = {
|
|
1556
|
+
SteamId: 'steamId',
|
|
1557
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1558
|
+
XboxLiveId: 'xboxLiveId',
|
|
1559
|
+
PlatformId: 'platformId',
|
|
1560
|
+
};
|
|
1372
1561
|
export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
|
|
1373
1562
|
Added: 'added',
|
|
1374
1563
|
Removed: 'removed',
|
|
1375
1564
|
Changed: 'changed',
|
|
1376
1565
|
};
|
|
1566
|
+
export const TakaroEventPlayerInventoryChangedCauseEnum = {
|
|
1567
|
+
Pickup: 'pickup',
|
|
1568
|
+
Drop: 'drop',
|
|
1569
|
+
Craft: 'craft',
|
|
1570
|
+
Loot: 'loot',
|
|
1571
|
+
Trade: 'trade',
|
|
1572
|
+
Death: 'death',
|
|
1573
|
+
Other: 'other',
|
|
1574
|
+
};
|
|
1575
|
+
export const TakaroEventPlayerLinkedSourceEnum = {
|
|
1576
|
+
GameCode: 'game-code',
|
|
1577
|
+
WebCode: 'web-code',
|
|
1578
|
+
SteamAuto: 'steam-auto',
|
|
1579
|
+
Admin: 'admin',
|
|
1580
|
+
Unknown: 'unknown',
|
|
1581
|
+
};
|
|
1582
|
+
export const TakaroEventPlayerMergedMovedIdentifiersEnum = {
|
|
1583
|
+
SteamId: 'steamId',
|
|
1584
|
+
EpicOnlineServicesId: 'epicOnlineServicesId',
|
|
1585
|
+
XboxLiveId: 'xboxLiveId',
|
|
1586
|
+
PlatformId: 'platformId',
|
|
1587
|
+
};
|
|
1588
|
+
export const TakaroEventPlayerMergedServerOutcomeEnum = {
|
|
1589
|
+
Moved: 'moved',
|
|
1590
|
+
Combined: 'combined',
|
|
1591
|
+
};
|
|
1592
|
+
export const TakaroEventPlayerMergedServerKeptPogFromEnum = {
|
|
1593
|
+
Survivor: 'survivor',
|
|
1594
|
+
Absorbed: 'absorbed',
|
|
1595
|
+
};
|
|
1596
|
+
export const TakaroEventPlayerUnlinkedReasonEnum = {
|
|
1597
|
+
Self: 'self',
|
|
1598
|
+
Admin: 'admin',
|
|
1599
|
+
Displaced: 'displaced',
|
|
1600
|
+
Merged: 'merged',
|
|
1601
|
+
};
|
|
1377
1602
|
export const TakaroEventRateLimitedScopeEnum = {
|
|
1378
1603
|
Server: 'server',
|
|
1379
1604
|
Domain: 'domain',
|
|
@@ -1509,6 +1734,16 @@ export const ThreadWithStepsOutputDTOOriginSurfaceEnum = {
|
|
|
1509
1734
|
EventFailure: 'eventFailure',
|
|
1510
1735
|
CsmmMigration: 'csmmMigration',
|
|
1511
1736
|
};
|
|
1737
|
+
export const TrackingEventDTOEventNameEnum = {
|
|
1738
|
+
PlayerDeath: 'player-death',
|
|
1739
|
+
EntityKilled: 'entity-killed',
|
|
1740
|
+
PlayerConnected: 'player-connected',
|
|
1741
|
+
PlayerDisconnected: 'player-disconnected',
|
|
1742
|
+
};
|
|
1743
|
+
export const TrackingEventDTOPositionSourceEnum = {
|
|
1744
|
+
Reported: 'reported',
|
|
1745
|
+
Sampled: 'sampled',
|
|
1746
|
+
};
|
|
1512
1747
|
export const TriggerJobInputDTOTypeEnum = {
|
|
1513
1748
|
SeedModules: 'seedModules',
|
|
1514
1749
|
CleanEvents: 'cleanEvents',
|
|
@@ -1518,11 +1753,27 @@ export const TriggerJobInputDTOTypeEnum = {
|
|
|
1518
1753
|
SyncItems: 'syncItems',
|
|
1519
1754
|
SyncEntities: 'syncEntities',
|
|
1520
1755
|
SyncBans: 'syncBans',
|
|
1756
|
+
SyncLocations: 'syncLocations',
|
|
1521
1757
|
SyncMapImages: 'syncMapImages',
|
|
1522
1758
|
SyncMapUploads: 'syncMapUploads',
|
|
1759
|
+
SyncGameIcons: 'syncGameIcons',
|
|
1523
1760
|
SyncSteam: 'syncSteam',
|
|
1524
1761
|
SyncDiscordRoles: 'syncDiscordRoles',
|
|
1525
1762
|
};
|
|
1763
|
+
export const UserOutputDTOPlayerLinkSourceEnum = {
|
|
1764
|
+
GameCode: 'game-code',
|
|
1765
|
+
WebCode: 'web-code',
|
|
1766
|
+
SteamAuto: 'steam-auto',
|
|
1767
|
+
Admin: 'admin',
|
|
1768
|
+
Unknown: 'unknown',
|
|
1769
|
+
};
|
|
1770
|
+
export const UserOutputWithRolesDTOPlayerLinkSourceEnum = {
|
|
1771
|
+
GameCode: 'game-code',
|
|
1772
|
+
WebCode: 'web-code',
|
|
1773
|
+
SteamAuto: 'steam-auto',
|
|
1774
|
+
Admin: 'admin',
|
|
1775
|
+
Unknown: 'unknown',
|
|
1776
|
+
};
|
|
1526
1777
|
export const UserSearchInputDTOExtendEnum = {
|
|
1527
1778
|
Roles: 'roles',
|
|
1528
1779
|
};
|
|
@@ -5951,7 +6202,7 @@ export const AuthControllerLoginLocaleEnum = {
|
|
|
5951
6202
|
export const CommandApiAxiosParamCreator = function (configuration) {
|
|
5952
6203
|
return {
|
|
5953
6204
|
/**
|
|
5954
|
-
*
|
|
6205
|
+
* The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
|
|
5955
6206
|
* @summary Create
|
|
5956
6207
|
* @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO
|
|
5957
6208
|
* @param {*} [options] Override http request option.
|
|
@@ -6219,7 +6470,7 @@ export const CommandApiAxiosParamCreator = function (configuration) {
|
|
|
6219
6470
|
};
|
|
6220
6471
|
},
|
|
6221
6472
|
/**
|
|
6222
|
-
*
|
|
6473
|
+
* The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. A command that already has it can still be edited. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerUpdate`
|
|
6223
6474
|
* @summary Update
|
|
6224
6475
|
* @param {string} id
|
|
6225
6476
|
* @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO
|
|
@@ -6298,7 +6549,7 @@ export const CommandApiFp = function (configuration) {
|
|
|
6298
6549
|
const localVarAxiosParamCreator = CommandApiAxiosParamCreator(configuration);
|
|
6299
6550
|
return {
|
|
6300
6551
|
/**
|
|
6301
|
-
*
|
|
6552
|
+
* The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
|
|
6302
6553
|
* @summary Create
|
|
6303
6554
|
* @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO
|
|
6304
6555
|
* @param {*} [options] Override http request option.
|
|
@@ -6405,7 +6656,7 @@ export const CommandApiFp = function (configuration) {
|
|
|
6405
6656
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6406
6657
|
},
|
|
6407
6658
|
/**
|
|
6408
|
-
*
|
|
6659
|
+
* The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. A command that already has it can still be edited. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerUpdate`
|
|
6409
6660
|
* @summary Update
|
|
6410
6661
|
* @param {string} id
|
|
6411
6662
|
* @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO
|
|
@@ -6442,7 +6693,7 @@ export const CommandApiFactory = function (configuration, basePath, axios) {
|
|
|
6442
6693
|
const localVarFp = CommandApiFp(configuration);
|
|
6443
6694
|
return {
|
|
6444
6695
|
/**
|
|
6445
|
-
*
|
|
6696
|
+
* The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
|
|
6446
6697
|
* @summary Create
|
|
6447
6698
|
* @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO
|
|
6448
6699
|
* @param {*} [options] Override http request option.
|
|
@@ -6533,7 +6784,7 @@ export const CommandApiFactory = function (configuration, basePath, axios) {
|
|
|
6533
6784
|
.then((request) => request(axios, basePath));
|
|
6534
6785
|
},
|
|
6535
6786
|
/**
|
|
6536
|
-
*
|
|
6787
|
+
* The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. A command that already has it can still be edited. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerUpdate`
|
|
6537
6788
|
* @summary Update
|
|
6538
6789
|
* @param {string} id
|
|
6539
6790
|
* @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO
|
|
@@ -6568,7 +6819,7 @@ export const CommandApiFactory = function (configuration, basePath, axios) {
|
|
|
6568
6819
|
*/
|
|
6569
6820
|
export class CommandApi extends BaseAPI {
|
|
6570
6821
|
/**
|
|
6571
|
-
*
|
|
6822
|
+
* The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerCreate`
|
|
6572
6823
|
* @summary Create
|
|
6573
6824
|
* @param {CommandCreateDTO} [commandCreateDTO] CommandCreateDTO
|
|
6574
6825
|
* @param {*} [options] Override http request option.
|
|
@@ -6675,7 +6926,7 @@ export class CommandApi extends BaseAPI {
|
|
|
6675
6926
|
.then((request) => request(this.axios, this.basePath));
|
|
6676
6927
|
}
|
|
6677
6928
|
/**
|
|
6678
|
-
*
|
|
6929
|
+
* The trigger `link` is reserved for the built-in `/link` command, which links players to their accounts, and is refused. A command that already has it can still be edited. Required permissions: `MANAGE_MODULES`<br> OperationId: `CommandControllerUpdate`
|
|
6679
6930
|
* @summary Update
|
|
6680
6931
|
* @param {string} id
|
|
6681
6932
|
* @param {CommandUpdateDTO} [commandUpdateDTO] CommandUpdateDTO
|
|
@@ -9897,7 +10148,7 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
|
|
|
9897
10148
|
};
|
|
9898
10149
|
},
|
|
9899
10150
|
/**
|
|
9900
|
-
* A map tile of one Dimension in the standard (zoom, x, y) layout, zoom 0 covering the Dimension\'s bounds. Returns the image bytes with their MIME type. A tile the game has not rendered yet is returned as a transparent image with header X-Takaro-Map-Tile: empty. Tiles of a tiled source are cached for a few minutes. Source precedence: the operator\'s uploaded image, then the game\'s tiled source, then the game\'s image; a source that is not built yet is skipped. The response header X-Takaro-Map-Source says which one answered (upload, tiled or image). An upload or image source is served from the tile pyramid Takaro cut: the response carries X-Takaro-Map-Revision, and when the optional query parameter v equals that revision the tile is cacheable for a day (immutable), otherwise for a minute. A v that names a stored pyramid of this Dimension pins that pyramid
|
|
10151
|
+
* A map tile of one Dimension in the standard (zoom, x, y) layout, zoom 0 covering the Dimension\'s bounds. Returns the image bytes with their MIME type. A tile the game has not rendered yet is returned as a transparent image with header X-Takaro-Map-Tile: empty. Tiles of a tiled source are cached for a few minutes. Source precedence: the operator\'s uploaded image, then the game\'s tiled source, then the game\'s image; a source that is not built yet is skipped. The response header X-Takaro-Map-Source says which one answered (upload, tiled or image). An upload or image source is served from the tile pyramid Takaro cut: the response carries X-Takaro-Map-Revision, and when the optional query parameter v equals that revision the tile is cacheable for a day (immutable), otherwise for a minute. A v that names a stored pyramid of this Dimension pins that pyramid. Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetDimensionMapTile`
|
|
9901
10152
|
* @summary Get dimension map tile
|
|
9902
10153
|
* @param {string} id
|
|
9903
10154
|
* @param {string} dimension
|
|
@@ -9949,6 +10200,42 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
|
|
|
9949
10200
|
options: localVarRequestOptions,
|
|
9950
10201
|
};
|
|
9951
10202
|
},
|
|
10203
|
+
/**
|
|
10204
|
+
* The game\'s icon from its Game Profile as a 128x128 WEBP image. 404 when the game server has no icon. When the optional query parameter v equals the stored revision (iconRevision on the game server) the response is cacheable for a day (immutable), otherwise for a minute.<br> OperationId: `GameServerControllerGetGameIcon`
|
|
10205
|
+
* @summary Get game icon
|
|
10206
|
+
* @param {string} id
|
|
10207
|
+
* @param {string} [v]
|
|
10208
|
+
* @param {*} [options] Override http request option.
|
|
10209
|
+
* @throws {RequiredError}
|
|
10210
|
+
*/
|
|
10211
|
+
gameServerControllerGetGameIcon: async (id, v, options = {}) => {
|
|
10212
|
+
// verify required parameter 'id' is not null or undefined
|
|
10213
|
+
assertParamExists('gameServerControllerGetGameIcon', 'id', id);
|
|
10214
|
+
const localVarPath = `/gameserver/{id}/icon`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10215
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10216
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10217
|
+
let baseOptions;
|
|
10218
|
+
if (configuration) {
|
|
10219
|
+
baseOptions = configuration.baseOptions;
|
|
10220
|
+
}
|
|
10221
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10222
|
+
const localVarHeaderParameter = {};
|
|
10223
|
+
const localVarQueryParameter = {};
|
|
10224
|
+
// authentication bearerAuth required
|
|
10225
|
+
// http bearer authentication required
|
|
10226
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10227
|
+
// authentication domainAuth required
|
|
10228
|
+
if (v !== undefined) {
|
|
10229
|
+
localVarQueryParameter['v'] = v;
|
|
10230
|
+
}
|
|
10231
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10232
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10233
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10234
|
+
return {
|
|
10235
|
+
url: toPathString(localVarUrlObj),
|
|
10236
|
+
options: localVarRequestOptions,
|
|
10237
|
+
};
|
|
10238
|
+
},
|
|
9952
10239
|
/**
|
|
9953
10240
|
* Fetch status of an import from CSMM. Deprecated: use `GameServerController.getJob` with the import job type instead. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGetImport`
|
|
9954
10241
|
* @summary Get import
|
|
@@ -10020,7 +10307,7 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
|
|
|
10020
10307
|
};
|
|
10021
10308
|
},
|
|
10022
10309
|
/**
|
|
10023
|
-
* The effective map of a game server: the Dimensions its `map` Capability declares, in declared order (the first is the default), followed by the Dimensions an operator defined by uploading a map image. `supported` is true when there is at least one Dimension; `declared` is true when the game itself declares a map. An operator\'s upload takes precedence over the game\'s map source. Positions are raw game coordinates; clients convert them with each Dimension\'s axes
|
|
10310
|
+
* The effective map of a game server: the Dimensions its `map` Capability declares, in declared order (the first is the default), followed by the Dimensions an operator defined by uploading a map image. `supported` is true when there is at least one Dimension; `declared` is true when the game itself declares a map. An operator\'s upload takes precedence over the game\'s map source. Positions are raw game coordinates; clients convert them with each Dimension\'s axes. Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetMap`
|
|
10024
10311
|
* @summary Get map
|
|
10025
10312
|
* @param {string} id
|
|
10026
10313
|
* @param {*} [options] Override http request option.
|
|
@@ -10052,7 +10339,7 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
|
|
|
10052
10339
|
};
|
|
10053
10340
|
},
|
|
10054
10341
|
/**
|
|
10055
|
-
* Get map metadata
|
|
10342
|
+
* Get map metadata Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetMapInfo`
|
|
10056
10343
|
* @summary Get map info
|
|
10057
10344
|
* @param {string} id
|
|
10058
10345
|
* @param {*} [options] Override http request option.
|
|
@@ -10084,7 +10371,39 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
|
|
|
10084
10371
|
};
|
|
10085
10372
|
},
|
|
10086
10373
|
/**
|
|
10087
|
-
*
|
|
10374
|
+
* Offline players of a game server at their last known Position, newest first, limited to the Domain\'s retention window and to 1000 players. Positions are raw game coordinates. Required permissions: `READ_MAP`, `READ_PLAYERS`<br> OperationId: `GameServerControllerGetMapOfflinePlayers`
|
|
10375
|
+
* @summary Get map offline players
|
|
10376
|
+
* @param {string} id
|
|
10377
|
+
* @param {*} [options] Override http request option.
|
|
10378
|
+
* @throws {RequiredError}
|
|
10379
|
+
*/
|
|
10380
|
+
gameServerControllerGetMapOfflinePlayers: async (id, options = {}) => {
|
|
10381
|
+
// verify required parameter 'id' is not null or undefined
|
|
10382
|
+
assertParamExists('gameServerControllerGetMapOfflinePlayers', 'id', id);
|
|
10383
|
+
const localVarPath = `/gameserver/{id}/map/offline-players`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10384
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10385
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10386
|
+
let baseOptions;
|
|
10387
|
+
if (configuration) {
|
|
10388
|
+
baseOptions = configuration.baseOptions;
|
|
10389
|
+
}
|
|
10390
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
10391
|
+
const localVarHeaderParameter = {};
|
|
10392
|
+
const localVarQueryParameter = {};
|
|
10393
|
+
// authentication bearerAuth required
|
|
10394
|
+
// http bearer authentication required
|
|
10395
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10396
|
+
// authentication domainAuth required
|
|
10397
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10398
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10399
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10400
|
+
return {
|
|
10401
|
+
url: toPathString(localVarUrlObj),
|
|
10402
|
+
options: localVarRequestOptions,
|
|
10403
|
+
};
|
|
10404
|
+
},
|
|
10405
|
+
/**
|
|
10406
|
+
* Get a map tile Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetMapTile`
|
|
10088
10407
|
* @summary Get map tile
|
|
10089
10408
|
* @param {string} id
|
|
10090
10409
|
* @param {string} x
|
|
@@ -10405,10 +10724,11 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
|
|
|
10405
10724
|
};
|
|
10406
10725
|
},
|
|
10407
10726
|
/**
|
|
10408
|
-
*
|
|
10727
|
+
* Deprecated: use `POST /location/search`, which reads the stored Locations and works while the server is offline. This asks the game live and requires the game server to be online and to declare `locations.list`; otherwise fails with GameProtocolError `unsupported`. Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerListLocations`
|
|
10409
10728
|
* @summary List locations
|
|
10410
10729
|
* @param {string} id
|
|
10411
10730
|
* @param {*} [options] Override http request option.
|
|
10731
|
+
* @deprecated
|
|
10412
10732
|
* @throws {RequiredError}
|
|
10413
10733
|
*/
|
|
10414
10734
|
gameServerControllerListLocations: async (id, options = {}) => {
|
|
@@ -10473,6 +10793,41 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
|
|
|
10473
10793
|
options: localVarRequestOptions,
|
|
10474
10794
|
};
|
|
10475
10795
|
},
|
|
10796
|
+
/**
|
|
10797
|
+
* Records what a connector-based game server reported when it identified: its Capability Manifest, game, connector and protocol version, and its name while the name follows the connector. Emits gameserver-version-changed when the connector, protocol version, game or game version changed, otherwise gameserver-updated when the name or Game Profile changed. Written by the connector; users normally never call it. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerRecordIdentify`
|
|
10798
|
+
* @summary Record identify
|
|
10799
|
+
* @param {string} id
|
|
10800
|
+
* @param {GameServerIdentifyInputDTO} [gameServerIdentifyInputDTO] GameServerIdentifyInputDTO
|
|
10801
|
+
* @param {*} [options] Override http request option.
|
|
10802
|
+
* @throws {RequiredError}
|
|
10803
|
+
*/
|
|
10804
|
+
gameServerControllerRecordIdentify: async (id, gameServerIdentifyInputDTO, options = {}) => {
|
|
10805
|
+
// verify required parameter 'id' is not null or undefined
|
|
10806
|
+
assertParamExists('gameServerControllerRecordIdentify', 'id', id);
|
|
10807
|
+
const localVarPath = `/gameserver/{id}/identify`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10808
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10809
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10810
|
+
let baseOptions;
|
|
10811
|
+
if (configuration) {
|
|
10812
|
+
baseOptions = configuration.baseOptions;
|
|
10813
|
+
}
|
|
10814
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
10815
|
+
const localVarHeaderParameter = {};
|
|
10816
|
+
const localVarQueryParameter = {};
|
|
10817
|
+
// authentication bearerAuth required
|
|
10818
|
+
// http bearer authentication required
|
|
10819
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10820
|
+
// authentication domainAuth required
|
|
10821
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10822
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10823
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10824
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10825
|
+
localVarRequestOptions.data = serializeDataIfNeeded(gameServerIdentifyInputDTO, localVarRequestOptions, configuration);
|
|
10826
|
+
return {
|
|
10827
|
+
url: toPathString(localVarUrlObj),
|
|
10828
|
+
options: localVarRequestOptions,
|
|
10829
|
+
};
|
|
10830
|
+
},
|
|
10476
10831
|
/**
|
|
10477
10832
|
* Regenerate the registration token for a gameserver. Careful, this will invalidate all existing connections. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerRegenerateRegistrationToken`
|
|
10478
10833
|
* @summary Regenerate registration token
|
|
@@ -10737,41 +11092,6 @@ export const GameServerApiAxiosParamCreator = function (configuration) {
|
|
|
10737
11092
|
options: localVarRequestOptions,
|
|
10738
11093
|
};
|
|
10739
11094
|
},
|
|
10740
|
-
/**
|
|
10741
|
-
* Records the game a connector-based game server reported at identify (e.g. \"7d2d\"). Written by the connector on handshake; users normally never call it. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerSetGame`
|
|
10742
|
-
* @summary Set game
|
|
10743
|
-
* @param {string} id
|
|
10744
|
-
* @param {GameServerGameInputDTO} [gameServerGameInputDTO] GameServerGameInputDTO
|
|
10745
|
-
* @param {*} [options] Override http request option.
|
|
10746
|
-
* @throws {RequiredError}
|
|
10747
|
-
*/
|
|
10748
|
-
gameServerControllerSetGame: async (id, gameServerGameInputDTO, options = {}) => {
|
|
10749
|
-
// verify required parameter 'id' is not null or undefined
|
|
10750
|
-
assertParamExists('gameServerControllerSetGame', 'id', id);
|
|
10751
|
-
const localVarPath = `/gameserver/{id}/game`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10752
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10753
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10754
|
-
let baseOptions;
|
|
10755
|
-
if (configuration) {
|
|
10756
|
-
baseOptions = configuration.baseOptions;
|
|
10757
|
-
}
|
|
10758
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
10759
|
-
const localVarHeaderParameter = {};
|
|
10760
|
-
const localVarQueryParameter = {};
|
|
10761
|
-
// authentication bearerAuth required
|
|
10762
|
-
// http bearer authentication required
|
|
10763
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
10764
|
-
// authentication domainAuth required
|
|
10765
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
10766
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10767
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10768
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
10769
|
-
localVarRequestOptions.data = serializeDataIfNeeded(gameServerGameInputDTO, localVarRequestOptions, configuration);
|
|
10770
|
-
return {
|
|
10771
|
-
url: toPathString(localVarUrlObj),
|
|
10772
|
-
options: localVarRequestOptions,
|
|
10773
|
-
};
|
|
10774
|
-
},
|
|
10775
11095
|
/**
|
|
10776
11096
|
* Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerShutdown`
|
|
10777
11097
|
* @summary Shutdown
|
|
@@ -11198,7 +11518,7 @@ export const GameServerApiFp = function (configuration) {
|
|
|
11198
11518
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11199
11519
|
},
|
|
11200
11520
|
/**
|
|
11201
|
-
* A map tile of one Dimension in the standard (zoom, x, y) layout, zoom 0 covering the Dimension\'s bounds. Returns the image bytes with their MIME type. A tile the game has not rendered yet is returned as a transparent image with header X-Takaro-Map-Tile: empty. Tiles of a tiled source are cached for a few minutes. Source precedence: the operator\'s uploaded image, then the game\'s tiled source, then the game\'s image; a source that is not built yet is skipped. The response header X-Takaro-Map-Source says which one answered (upload, tiled or image). An upload or image source is served from the tile pyramid Takaro cut: the response carries X-Takaro-Map-Revision, and when the optional query parameter v equals that revision the tile is cacheable for a day (immutable), otherwise for a minute. A v that names a stored pyramid of this Dimension pins that pyramid
|
|
11521
|
+
* A map tile of one Dimension in the standard (zoom, x, y) layout, zoom 0 covering the Dimension\'s bounds. Returns the image bytes with their MIME type. A tile the game has not rendered yet is returned as a transparent image with header X-Takaro-Map-Tile: empty. Tiles of a tiled source are cached for a few minutes. Source precedence: the operator\'s uploaded image, then the game\'s tiled source, then the game\'s image; a source that is not built yet is skipped. The response header X-Takaro-Map-Source says which one answered (upload, tiled or image). An upload or image source is served from the tile pyramid Takaro cut: the response carries X-Takaro-Map-Revision, and when the optional query parameter v equals that revision the tile is cacheable for a day (immutable), otherwise for a minute. A v that names a stored pyramid of this Dimension pins that pyramid. Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetDimensionMapTile`
|
|
11202
11522
|
* @summary Get dimension map tile
|
|
11203
11523
|
* @param {string} id
|
|
11204
11524
|
* @param {string} dimension
|
|
@@ -11216,6 +11536,20 @@ export const GameServerApiFp = function (configuration) {
|
|
|
11216
11536
|
?.url;
|
|
11217
11537
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11218
11538
|
},
|
|
11539
|
+
/**
|
|
11540
|
+
* The game\'s icon from its Game Profile as a 128x128 WEBP image. 404 when the game server has no icon. When the optional query parameter v equals the stored revision (iconRevision on the game server) the response is cacheable for a day (immutable), otherwise for a minute.<br> OperationId: `GameServerControllerGetGameIcon`
|
|
11541
|
+
* @summary Get game icon
|
|
11542
|
+
* @param {string} id
|
|
11543
|
+
* @param {string} [v]
|
|
11544
|
+
* @param {*} [options] Override http request option.
|
|
11545
|
+
* @throws {RequiredError}
|
|
11546
|
+
*/
|
|
11547
|
+
async gameServerControllerGetGameIcon(id, v, options) {
|
|
11548
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGetGameIcon(id, v, options);
|
|
11549
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11550
|
+
const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerGetGameIcon']?.[localVarOperationServerIndex]?.url;
|
|
11551
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11552
|
+
},
|
|
11219
11553
|
/**
|
|
11220
11554
|
* Fetch status of an import from CSMM. Deprecated: use `GameServerController.getJob` with the import job type instead. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGetImport`
|
|
11221
11555
|
* @summary Get import
|
|
@@ -11245,7 +11579,7 @@ export const GameServerApiFp = function (configuration) {
|
|
|
11245
11579
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11246
11580
|
},
|
|
11247
11581
|
/**
|
|
11248
|
-
* The effective map of a game server: the Dimensions its `map` Capability declares, in declared order (the first is the default), followed by the Dimensions an operator defined by uploading a map image. `supported` is true when there is at least one Dimension; `declared` is true when the game itself declares a map. An operator\'s upload takes precedence over the game\'s map source. Positions are raw game coordinates; clients convert them with each Dimension\'s axes
|
|
11582
|
+
* The effective map of a game server: the Dimensions its `map` Capability declares, in declared order (the first is the default), followed by the Dimensions an operator defined by uploading a map image. `supported` is true when there is at least one Dimension; `declared` is true when the game itself declares a map. An operator\'s upload takes precedence over the game\'s map source. Positions are raw game coordinates; clients convert them with each Dimension\'s axes. Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetMap`
|
|
11249
11583
|
* @summary Get map
|
|
11250
11584
|
* @param {string} id
|
|
11251
11585
|
* @param {*} [options] Override http request option.
|
|
@@ -11258,7 +11592,7 @@ export const GameServerApiFp = function (configuration) {
|
|
|
11258
11592
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11259
11593
|
},
|
|
11260
11594
|
/**
|
|
11261
|
-
* Get map metadata
|
|
11595
|
+
* Get map metadata Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetMapInfo`
|
|
11262
11596
|
* @summary Get map info
|
|
11263
11597
|
* @param {string} id
|
|
11264
11598
|
* @param {*} [options] Override http request option.
|
|
@@ -11271,7 +11605,21 @@ export const GameServerApiFp = function (configuration) {
|
|
|
11271
11605
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11272
11606
|
},
|
|
11273
11607
|
/**
|
|
11274
|
-
*
|
|
11608
|
+
* Offline players of a game server at their last known Position, newest first, limited to the Domain\'s retention window and to 1000 players. Positions are raw game coordinates. Required permissions: `READ_MAP`, `READ_PLAYERS`<br> OperationId: `GameServerControllerGetMapOfflinePlayers`
|
|
11609
|
+
* @summary Get map offline players
|
|
11610
|
+
* @param {string} id
|
|
11611
|
+
* @param {*} [options] Override http request option.
|
|
11612
|
+
* @throws {RequiredError}
|
|
11613
|
+
*/
|
|
11614
|
+
async gameServerControllerGetMapOfflinePlayers(id, options) {
|
|
11615
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerGetMapOfflinePlayers(id, options);
|
|
11616
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11617
|
+
const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerGetMapOfflinePlayers']?.[localVarOperationServerIndex]
|
|
11618
|
+
?.url;
|
|
11619
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11620
|
+
},
|
|
11621
|
+
/**
|
|
11622
|
+
* Get a map tile Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetMapTile`
|
|
11275
11623
|
* @summary Get map tile
|
|
11276
11624
|
* @param {string} id
|
|
11277
11625
|
* @param {string} x
|
|
@@ -11397,10 +11745,11 @@ export const GameServerApiFp = function (configuration) {
|
|
|
11397
11745
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11398
11746
|
},
|
|
11399
11747
|
/**
|
|
11400
|
-
*
|
|
11748
|
+
* Deprecated: use `POST /location/search`, which reads the stored Locations and works while the server is offline. This asks the game live and requires the game server to be online and to declare `locations.list`; otherwise fails with GameProtocolError `unsupported`. Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerListLocations`
|
|
11401
11749
|
* @summary List locations
|
|
11402
11750
|
* @param {string} id
|
|
11403
11751
|
* @param {*} [options] Override http request option.
|
|
11752
|
+
* @deprecated
|
|
11404
11753
|
* @throws {RequiredError}
|
|
11405
11754
|
*/
|
|
11406
11755
|
async gameServerControllerListLocations(id, options) {
|
|
@@ -11423,6 +11772,20 @@ export const GameServerApiFp = function (configuration) {
|
|
|
11423
11772
|
const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerPutMapUpload']?.[localVarOperationServerIndex]?.url;
|
|
11424
11773
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11425
11774
|
},
|
|
11775
|
+
/**
|
|
11776
|
+
* Records what a connector-based game server reported when it identified: its Capability Manifest, game, connector and protocol version, and its name while the name follows the connector. Emits gameserver-version-changed when the connector, protocol version, game or game version changed, otherwise gameserver-updated when the name or Game Profile changed. Written by the connector; users normally never call it. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerRecordIdentify`
|
|
11777
|
+
* @summary Record identify
|
|
11778
|
+
* @param {string} id
|
|
11779
|
+
* @param {GameServerIdentifyInputDTO} [gameServerIdentifyInputDTO] GameServerIdentifyInputDTO
|
|
11780
|
+
* @param {*} [options] Override http request option.
|
|
11781
|
+
* @throws {RequiredError}
|
|
11782
|
+
*/
|
|
11783
|
+
async gameServerControllerRecordIdentify(id, gameServerIdentifyInputDTO, options) {
|
|
11784
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerRecordIdentify(id, gameServerIdentifyInputDTO, options);
|
|
11785
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11786
|
+
const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerRecordIdentify']?.[localVarOperationServerIndex]?.url;
|
|
11787
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11788
|
+
},
|
|
11426
11789
|
/**
|
|
11427
11790
|
* Regenerate the registration token for a gameserver. Careful, this will invalidate all existing connections. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerRegenerateRegistrationToken`
|
|
11428
11791
|
* @summary Regenerate registration token
|
|
@@ -11530,20 +11893,6 @@ export const GameServerApiFp = function (configuration) {
|
|
|
11530
11893
|
const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerSetCapabilities']?.[localVarOperationServerIndex]?.url;
|
|
11531
11894
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11532
11895
|
},
|
|
11533
|
-
/**
|
|
11534
|
-
* Records the game a connector-based game server reported at identify (e.g. \"7d2d\"). Written by the connector on handshake; users normally never call it. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerSetGame`
|
|
11535
|
-
* @summary Set game
|
|
11536
|
-
* @param {string} id
|
|
11537
|
-
* @param {GameServerGameInputDTO} [gameServerGameInputDTO] GameServerGameInputDTO
|
|
11538
|
-
* @param {*} [options] Override http request option.
|
|
11539
|
-
* @throws {RequiredError}
|
|
11540
|
-
*/
|
|
11541
|
-
async gameServerControllerSetGame(id, gameServerGameInputDTO, options) {
|
|
11542
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.gameServerControllerSetGame(id, gameServerGameInputDTO, options);
|
|
11543
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
11544
|
-
const localVarOperationServerBasePath = operationServerMap['GameServerApi.gameServerControllerSetGame']?.[localVarOperationServerIndex]?.url;
|
|
11545
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11546
|
-
},
|
|
11547
11896
|
/**
|
|
11548
11897
|
* Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerShutdown`
|
|
11549
11898
|
* @summary Shutdown
|
|
@@ -11767,7 +12116,7 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
|
|
|
11767
12116
|
return localVarFp.gameServerControllerGetCapabilities(id, options).then((request) => request(axios, basePath));
|
|
11768
12117
|
},
|
|
11769
12118
|
/**
|
|
11770
|
-
* A map tile of one Dimension in the standard (zoom, x, y) layout, zoom 0 covering the Dimension\'s bounds. Returns the image bytes with their MIME type. A tile the game has not rendered yet is returned as a transparent image with header X-Takaro-Map-Tile: empty. Tiles of a tiled source are cached for a few minutes. Source precedence: the operator\'s uploaded image, then the game\'s tiled source, then the game\'s image; a source that is not built yet is skipped. The response header X-Takaro-Map-Source says which one answered (upload, tiled or image). An upload or image source is served from the tile pyramid Takaro cut: the response carries X-Takaro-Map-Revision, and when the optional query parameter v equals that revision the tile is cacheable for a day (immutable), otherwise for a minute. A v that names a stored pyramid of this Dimension pins that pyramid
|
|
12119
|
+
* A map tile of one Dimension in the standard (zoom, x, y) layout, zoom 0 covering the Dimension\'s bounds. Returns the image bytes with their MIME type. A tile the game has not rendered yet is returned as a transparent image with header X-Takaro-Map-Tile: empty. Tiles of a tiled source are cached for a few minutes. Source precedence: the operator\'s uploaded image, then the game\'s tiled source, then the game\'s image; a source that is not built yet is skipped. The response header X-Takaro-Map-Source says which one answered (upload, tiled or image). An upload or image source is served from the tile pyramid Takaro cut: the response carries X-Takaro-Map-Revision, and when the optional query parameter v equals that revision the tile is cacheable for a day (immutable), otherwise for a minute. A v that names a stored pyramid of this Dimension pins that pyramid. Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetDimensionMapTile`
|
|
11771
12120
|
* @summary Get dimension map tile
|
|
11772
12121
|
* @param {string} id
|
|
11773
12122
|
* @param {string} dimension
|
|
@@ -11783,6 +12132,17 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
|
|
|
11783
12132
|
.gameServerControllerGetDimensionMapTile(id, dimension, zoom, x, y, v, options)
|
|
11784
12133
|
.then((request) => request(axios, basePath));
|
|
11785
12134
|
},
|
|
12135
|
+
/**
|
|
12136
|
+
* The game\'s icon from its Game Profile as a 128x128 WEBP image. 404 when the game server has no icon. When the optional query parameter v equals the stored revision (iconRevision on the game server) the response is cacheable for a day (immutable), otherwise for a minute.<br> OperationId: `GameServerControllerGetGameIcon`
|
|
12137
|
+
* @summary Get game icon
|
|
12138
|
+
* @param {string} id
|
|
12139
|
+
* @param {string} [v]
|
|
12140
|
+
* @param {*} [options] Override http request option.
|
|
12141
|
+
* @throws {RequiredError}
|
|
12142
|
+
*/
|
|
12143
|
+
gameServerControllerGetGameIcon(id, v, options) {
|
|
12144
|
+
return localVarFp.gameServerControllerGetGameIcon(id, v, options).then((request) => request(axios, basePath));
|
|
12145
|
+
},
|
|
11786
12146
|
/**
|
|
11787
12147
|
* Fetch status of an import from CSMM. Deprecated: use `GameServerController.getJob` with the import job type instead. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGetImport`
|
|
11788
12148
|
* @summary Get import
|
|
@@ -11806,7 +12166,7 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
|
|
|
11806
12166
|
return localVarFp.gameServerControllerGetJob(type, id, options).then((request) => request(axios, basePath));
|
|
11807
12167
|
},
|
|
11808
12168
|
/**
|
|
11809
|
-
* The effective map of a game server: the Dimensions its `map` Capability declares, in declared order (the first is the default), followed by the Dimensions an operator defined by uploading a map image. `supported` is true when there is at least one Dimension; `declared` is true when the game itself declares a map. An operator\'s upload takes precedence over the game\'s map source. Positions are raw game coordinates; clients convert them with each Dimension\'s axes
|
|
12169
|
+
* The effective map of a game server: the Dimensions its `map` Capability declares, in declared order (the first is the default), followed by the Dimensions an operator defined by uploading a map image. `supported` is true when there is at least one Dimension; `declared` is true when the game itself declares a map. An operator\'s upload takes precedence over the game\'s map source. Positions are raw game coordinates; clients convert them with each Dimension\'s axes. Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetMap`
|
|
11810
12170
|
* @summary Get map
|
|
11811
12171
|
* @param {string} id
|
|
11812
12172
|
* @param {*} [options] Override http request option.
|
|
@@ -11816,7 +12176,7 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
|
|
|
11816
12176
|
return localVarFp.gameServerControllerGetMap(id, options).then((request) => request(axios, basePath));
|
|
11817
12177
|
},
|
|
11818
12178
|
/**
|
|
11819
|
-
* Get map metadata
|
|
12179
|
+
* Get map metadata Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetMapInfo`
|
|
11820
12180
|
* @summary Get map info
|
|
11821
12181
|
* @param {string} id
|
|
11822
12182
|
* @param {*} [options] Override http request option.
|
|
@@ -11826,7 +12186,19 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
|
|
|
11826
12186
|
return localVarFp.gameServerControllerGetMapInfo(id, options).then((request) => request(axios, basePath));
|
|
11827
12187
|
},
|
|
11828
12188
|
/**
|
|
11829
|
-
*
|
|
12189
|
+
* Offline players of a game server at their last known Position, newest first, limited to the Domain\'s retention window and to 1000 players. Positions are raw game coordinates. Required permissions: `READ_MAP`, `READ_PLAYERS`<br> OperationId: `GameServerControllerGetMapOfflinePlayers`
|
|
12190
|
+
* @summary Get map offline players
|
|
12191
|
+
* @param {string} id
|
|
12192
|
+
* @param {*} [options] Override http request option.
|
|
12193
|
+
* @throws {RequiredError}
|
|
12194
|
+
*/
|
|
12195
|
+
gameServerControllerGetMapOfflinePlayers(id, options) {
|
|
12196
|
+
return localVarFp
|
|
12197
|
+
.gameServerControllerGetMapOfflinePlayers(id, options)
|
|
12198
|
+
.then((request) => request(axios, basePath));
|
|
12199
|
+
},
|
|
12200
|
+
/**
|
|
12201
|
+
* Get a map tile Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetMapTile`
|
|
11830
12202
|
* @summary Get map tile
|
|
11831
12203
|
* @param {string} id
|
|
11832
12204
|
* @param {string} x
|
|
@@ -11933,10 +12305,11 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
|
|
|
11933
12305
|
return localVarFp.gameServerControllerListBans(id, options).then((request) => request(axios, basePath));
|
|
11934
12306
|
},
|
|
11935
12307
|
/**
|
|
11936
|
-
*
|
|
12308
|
+
* Deprecated: use `POST /location/search`, which reads the stored Locations and works while the server is offline. This asks the game live and requires the game server to be online and to declare `locations.list`; otherwise fails with GameProtocolError `unsupported`. Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerListLocations`
|
|
11937
12309
|
* @summary List locations
|
|
11938
12310
|
* @param {string} id
|
|
11939
12311
|
* @param {*} [options] Override http request option.
|
|
12312
|
+
* @deprecated
|
|
11940
12313
|
* @throws {RequiredError}
|
|
11941
12314
|
*/
|
|
11942
12315
|
gameServerControllerListLocations(id, options) {
|
|
@@ -11955,6 +12328,19 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
|
|
|
11955
12328
|
.gameServerControllerPutMapUpload(id, dimension, options)
|
|
11956
12329
|
.then((request) => request(axios, basePath));
|
|
11957
12330
|
},
|
|
12331
|
+
/**
|
|
12332
|
+
* Records what a connector-based game server reported when it identified: its Capability Manifest, game, connector and protocol version, and its name while the name follows the connector. Emits gameserver-version-changed when the connector, protocol version, game or game version changed, otherwise gameserver-updated when the name or Game Profile changed. Written by the connector; users normally never call it. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerRecordIdentify`
|
|
12333
|
+
* @summary Record identify
|
|
12334
|
+
* @param {string} id
|
|
12335
|
+
* @param {GameServerIdentifyInputDTO} [gameServerIdentifyInputDTO] GameServerIdentifyInputDTO
|
|
12336
|
+
* @param {*} [options] Override http request option.
|
|
12337
|
+
* @throws {RequiredError}
|
|
12338
|
+
*/
|
|
12339
|
+
gameServerControllerRecordIdentify(id, gameServerIdentifyInputDTO, options) {
|
|
12340
|
+
return localVarFp
|
|
12341
|
+
.gameServerControllerRecordIdentify(id, gameServerIdentifyInputDTO, options)
|
|
12342
|
+
.then((request) => request(axios, basePath));
|
|
12343
|
+
},
|
|
11958
12344
|
/**
|
|
11959
12345
|
* Regenerate the registration token for a gameserver. Careful, this will invalidate all existing connections. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerRegenerateRegistrationToken`
|
|
11960
12346
|
* @summary Regenerate registration token
|
|
@@ -12049,19 +12435,6 @@ export const GameServerApiFactory = function (configuration, basePath, axios) {
|
|
|
12049
12435
|
.gameServerControllerSetCapabilities(id, gameServerCapabilitiesInputDTO, options)
|
|
12050
12436
|
.then((request) => request(axios, basePath));
|
|
12051
12437
|
},
|
|
12052
|
-
/**
|
|
12053
|
-
* Records the game a connector-based game server reported at identify (e.g. \"7d2d\"). Written by the connector on handshake; users normally never call it. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerSetGame`
|
|
12054
|
-
* @summary Set game
|
|
12055
|
-
* @param {string} id
|
|
12056
|
-
* @param {GameServerGameInputDTO} [gameServerGameInputDTO] GameServerGameInputDTO
|
|
12057
|
-
* @param {*} [options] Override http request option.
|
|
12058
|
-
* @throws {RequiredError}
|
|
12059
|
-
*/
|
|
12060
|
-
gameServerControllerSetGame(id, gameServerGameInputDTO, options) {
|
|
12061
|
-
return localVarFp
|
|
12062
|
-
.gameServerControllerSetGame(id, gameServerGameInputDTO, options)
|
|
12063
|
-
.then((request) => request(axios, basePath));
|
|
12064
|
-
},
|
|
12065
12438
|
/**
|
|
12066
12439
|
* Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerShutdown`
|
|
12067
12440
|
* @summary Shutdown
|
|
@@ -12279,7 +12652,7 @@ export class GameServerApi extends BaseAPI {
|
|
|
12279
12652
|
.then((request) => request(this.axios, this.basePath));
|
|
12280
12653
|
}
|
|
12281
12654
|
/**
|
|
12282
|
-
* A map tile of one Dimension in the standard (zoom, x, y) layout, zoom 0 covering the Dimension\'s bounds. Returns the image bytes with their MIME type. A tile the game has not rendered yet is returned as a transparent image with header X-Takaro-Map-Tile: empty. Tiles of a tiled source are cached for a few minutes. Source precedence: the operator\'s uploaded image, then the game\'s tiled source, then the game\'s image; a source that is not built yet is skipped. The response header X-Takaro-Map-Source says which one answered (upload, tiled or image). An upload or image source is served from the tile pyramid Takaro cut: the response carries X-Takaro-Map-Revision, and when the optional query parameter v equals that revision the tile is cacheable for a day (immutable), otherwise for a minute. A v that names a stored pyramid of this Dimension pins that pyramid
|
|
12655
|
+
* A map tile of one Dimension in the standard (zoom, x, y) layout, zoom 0 covering the Dimension\'s bounds. Returns the image bytes with their MIME type. A tile the game has not rendered yet is returned as a transparent image with header X-Takaro-Map-Tile: empty. Tiles of a tiled source are cached for a few minutes. Source precedence: the operator\'s uploaded image, then the game\'s tiled source, then the game\'s image; a source that is not built yet is skipped. The response header X-Takaro-Map-Source says which one answered (upload, tiled or image). An upload or image source is served from the tile pyramid Takaro cut: the response carries X-Takaro-Map-Revision, and when the optional query parameter v equals that revision the tile is cacheable for a day (immutable), otherwise for a minute. A v that names a stored pyramid of this Dimension pins that pyramid. Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetDimensionMapTile`
|
|
12283
12656
|
* @summary Get dimension map tile
|
|
12284
12657
|
* @param {string} id
|
|
12285
12658
|
* @param {string} dimension
|
|
@@ -12296,6 +12669,20 @@ export class GameServerApi extends BaseAPI {
|
|
|
12296
12669
|
.gameServerControllerGetDimensionMapTile(id, dimension, zoom, x, y, v, options)
|
|
12297
12670
|
.then((request) => request(this.axios, this.basePath));
|
|
12298
12671
|
}
|
|
12672
|
+
/**
|
|
12673
|
+
* The game\'s icon from its Game Profile as a 128x128 WEBP image. 404 when the game server has no icon. When the optional query parameter v equals the stored revision (iconRevision on the game server) the response is cacheable for a day (immutable), otherwise for a minute.<br> OperationId: `GameServerControllerGetGameIcon`
|
|
12674
|
+
* @summary Get game icon
|
|
12675
|
+
* @param {string} id
|
|
12676
|
+
* @param {string} [v]
|
|
12677
|
+
* @param {*} [options] Override http request option.
|
|
12678
|
+
* @throws {RequiredError}
|
|
12679
|
+
* @memberof GameServerApi
|
|
12680
|
+
*/
|
|
12681
|
+
gameServerControllerGetGameIcon(id, v, options) {
|
|
12682
|
+
return GameServerApiFp(this.configuration)
|
|
12683
|
+
.gameServerControllerGetGameIcon(id, v, options)
|
|
12684
|
+
.then((request) => request(this.axios, this.basePath));
|
|
12685
|
+
}
|
|
12299
12686
|
/**
|
|
12300
12687
|
* Fetch status of an import from CSMM. Deprecated: use `GameServerController.getJob` with the import job type instead. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerGetImport`
|
|
12301
12688
|
* @summary Get import
|
|
@@ -12325,7 +12712,7 @@ export class GameServerApi extends BaseAPI {
|
|
|
12325
12712
|
.then((request) => request(this.axios, this.basePath));
|
|
12326
12713
|
}
|
|
12327
12714
|
/**
|
|
12328
|
-
* The effective map of a game server: the Dimensions its `map` Capability declares, in declared order (the first is the default), followed by the Dimensions an operator defined by uploading a map image. `supported` is true when there is at least one Dimension; `declared` is true when the game itself declares a map. An operator\'s upload takes precedence over the game\'s map source. Positions are raw game coordinates; clients convert them with each Dimension\'s axes
|
|
12715
|
+
* The effective map of a game server: the Dimensions its `map` Capability declares, in declared order (the first is the default), followed by the Dimensions an operator defined by uploading a map image. `supported` is true when there is at least one Dimension; `declared` is true when the game itself declares a map. An operator\'s upload takes precedence over the game\'s map source. Positions are raw game coordinates; clients convert them with each Dimension\'s axes. Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetMap`
|
|
12329
12716
|
* @summary Get map
|
|
12330
12717
|
* @param {string} id
|
|
12331
12718
|
* @param {*} [options] Override http request option.
|
|
@@ -12338,7 +12725,7 @@ export class GameServerApi extends BaseAPI {
|
|
|
12338
12725
|
.then((request) => request(this.axios, this.basePath));
|
|
12339
12726
|
}
|
|
12340
12727
|
/**
|
|
12341
|
-
* Get map metadata
|
|
12728
|
+
* Get map metadata Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetMapInfo`
|
|
12342
12729
|
* @summary Get map info
|
|
12343
12730
|
* @param {string} id
|
|
12344
12731
|
* @param {*} [options] Override http request option.
|
|
@@ -12351,7 +12738,20 @@ export class GameServerApi extends BaseAPI {
|
|
|
12351
12738
|
.then((request) => request(this.axios, this.basePath));
|
|
12352
12739
|
}
|
|
12353
12740
|
/**
|
|
12354
|
-
*
|
|
12741
|
+
* Offline players of a game server at their last known Position, newest first, limited to the Domain\'s retention window and to 1000 players. Positions are raw game coordinates. Required permissions: `READ_MAP`, `READ_PLAYERS`<br> OperationId: `GameServerControllerGetMapOfflinePlayers`
|
|
12742
|
+
* @summary Get map offline players
|
|
12743
|
+
* @param {string} id
|
|
12744
|
+
* @param {*} [options] Override http request option.
|
|
12745
|
+
* @throws {RequiredError}
|
|
12746
|
+
* @memberof GameServerApi
|
|
12747
|
+
*/
|
|
12748
|
+
gameServerControllerGetMapOfflinePlayers(id, options) {
|
|
12749
|
+
return GameServerApiFp(this.configuration)
|
|
12750
|
+
.gameServerControllerGetMapOfflinePlayers(id, options)
|
|
12751
|
+
.then((request) => request(this.axios, this.basePath));
|
|
12752
|
+
}
|
|
12753
|
+
/**
|
|
12754
|
+
* Get a map tile Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerGetMapTile`
|
|
12355
12755
|
* @summary Get map tile
|
|
12356
12756
|
* @param {string} id
|
|
12357
12757
|
* @param {string} x
|
|
@@ -12477,10 +12877,11 @@ export class GameServerApi extends BaseAPI {
|
|
|
12477
12877
|
.then((request) => request(this.axios, this.basePath));
|
|
12478
12878
|
}
|
|
12479
12879
|
/**
|
|
12480
|
-
*
|
|
12880
|
+
* Deprecated: use `POST /location/search`, which reads the stored Locations and works while the server is offline. This asks the game live and requires the game server to be online and to declare `locations.list`; otherwise fails with GameProtocolError `unsupported`. Required permissions: `READ_MAP`<br> OperationId: `GameServerControllerListLocations`
|
|
12481
12881
|
* @summary List locations
|
|
12482
12882
|
* @param {string} id
|
|
12483
12883
|
* @param {*} [options] Override http request option.
|
|
12884
|
+
* @deprecated
|
|
12484
12885
|
* @throws {RequiredError}
|
|
12485
12886
|
* @memberof GameServerApi
|
|
12486
12887
|
*/
|
|
@@ -12504,7 +12905,21 @@ export class GameServerApi extends BaseAPI {
|
|
|
12504
12905
|
.then((request) => request(this.axios, this.basePath));
|
|
12505
12906
|
}
|
|
12506
12907
|
/**
|
|
12507
|
-
*
|
|
12908
|
+
* Records what a connector-based game server reported when it identified: its Capability Manifest, game, connector and protocol version, and its name while the name follows the connector. Emits gameserver-version-changed when the connector, protocol version, game or game version changed, otherwise gameserver-updated when the name or Game Profile changed. Written by the connector; users normally never call it. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerRecordIdentify`
|
|
12909
|
+
* @summary Record identify
|
|
12910
|
+
* @param {string} id
|
|
12911
|
+
* @param {GameServerIdentifyInputDTO} [gameServerIdentifyInputDTO] GameServerIdentifyInputDTO
|
|
12912
|
+
* @param {*} [options] Override http request option.
|
|
12913
|
+
* @throws {RequiredError}
|
|
12914
|
+
* @memberof GameServerApi
|
|
12915
|
+
*/
|
|
12916
|
+
gameServerControllerRecordIdentify(id, gameServerIdentifyInputDTO, options) {
|
|
12917
|
+
return GameServerApiFp(this.configuration)
|
|
12918
|
+
.gameServerControllerRecordIdentify(id, gameServerIdentifyInputDTO, options)
|
|
12919
|
+
.then((request) => request(this.axios, this.basePath));
|
|
12920
|
+
}
|
|
12921
|
+
/**
|
|
12922
|
+
* Regenerate the registration token for a gameserver. Careful, this will invalidate all existing connections. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerRegenerateRegistrationToken`
|
|
12508
12923
|
* @summary Regenerate registration token
|
|
12509
12924
|
* @param {*} [options] Override http request option.
|
|
12510
12925
|
* @throws {RequiredError}
|
|
@@ -12609,20 +13024,6 @@ export class GameServerApi extends BaseAPI {
|
|
|
12609
13024
|
.gameServerControllerSetCapabilities(id, gameServerCapabilitiesInputDTO, options)
|
|
12610
13025
|
.then((request) => request(this.axios, this.basePath));
|
|
12611
13026
|
}
|
|
12612
|
-
/**
|
|
12613
|
-
* Records the game a connector-based game server reported at identify (e.g. \"7d2d\"). Written by the connector on handshake; users normally never call it. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerSetGame`
|
|
12614
|
-
* @summary Set game
|
|
12615
|
-
* @param {string} id
|
|
12616
|
-
* @param {GameServerGameInputDTO} [gameServerGameInputDTO] GameServerGameInputDTO
|
|
12617
|
-
* @param {*} [options] Override http request option.
|
|
12618
|
-
* @throws {RequiredError}
|
|
12619
|
-
* @memberof GameServerApi
|
|
12620
|
-
*/
|
|
12621
|
-
gameServerControllerSetGame(id, gameServerGameInputDTO, options) {
|
|
12622
|
-
return GameServerApiFp(this.configuration)
|
|
12623
|
-
.gameServerControllerSetGame(id, gameServerGameInputDTO, options)
|
|
12624
|
-
.then((request) => request(this.axios, this.basePath));
|
|
12625
|
-
}
|
|
12626
13027
|
/**
|
|
12627
13028
|
* Shuts down the gameserver. This is a \'soft\' shutdown, meaning the gameserver will be stopped gracefully. If the gameserver is not reachable, this will have no effect. Note that most hosting providers will automatically restart the gameserver after a shutdown, which makes this operation act as a \'restart\' instead. Required permissions: `MANAGE_GAMESERVERS`<br> OperationId: `GameServerControllerShutdown`
|
|
12628
13029
|
* @summary Shutdown
|
|
@@ -14290,6 +14691,110 @@ export class ItemSetApi extends BaseAPI {
|
|
|
14290
14691
|
.then((request) => request(this.axios, this.basePath));
|
|
14291
14692
|
}
|
|
14292
14693
|
}
|
|
14694
|
+
/**
|
|
14695
|
+
* LocationApi - axios parameter creator
|
|
14696
|
+
* @export
|
|
14697
|
+
*/
|
|
14698
|
+
export const LocationApiAxiosParamCreator = function (configuration) {
|
|
14699
|
+
return {
|
|
14700
|
+
/**
|
|
14701
|
+
* Search the Locations stored for game servers, as the game last reported them. They stay available while the game server is offline. A Location the game reported without a Dimension is stored under the game server\'s default Dimension. Filterable by category, a free-form string the game chooses. Required permissions: `READ_MAP`<br> OperationId: `LocationControllerSearch`
|
|
14702
|
+
* @summary Search
|
|
14703
|
+
* @param {LocationSearchInputDTO} [locationSearchInputDTO] LocationSearchInputDTO
|
|
14704
|
+
* @param {*} [options] Override http request option.
|
|
14705
|
+
* @throws {RequiredError}
|
|
14706
|
+
*/
|
|
14707
|
+
locationControllerSearch: async (locationSearchInputDTO, options = {}) => {
|
|
14708
|
+
const localVarPath = `/location/search`;
|
|
14709
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14710
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14711
|
+
let baseOptions;
|
|
14712
|
+
if (configuration) {
|
|
14713
|
+
baseOptions = configuration.baseOptions;
|
|
14714
|
+
}
|
|
14715
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
14716
|
+
const localVarHeaderParameter = {};
|
|
14717
|
+
const localVarQueryParameter = {};
|
|
14718
|
+
// authentication bearerAuth required
|
|
14719
|
+
// http bearer authentication required
|
|
14720
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14721
|
+
// authentication domainAuth required
|
|
14722
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14723
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14724
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14725
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
14726
|
+
localVarRequestOptions.data = serializeDataIfNeeded(locationSearchInputDTO, localVarRequestOptions, configuration);
|
|
14727
|
+
return {
|
|
14728
|
+
url: toPathString(localVarUrlObj),
|
|
14729
|
+
options: localVarRequestOptions,
|
|
14730
|
+
};
|
|
14731
|
+
},
|
|
14732
|
+
};
|
|
14733
|
+
};
|
|
14734
|
+
/**
|
|
14735
|
+
* LocationApi - functional programming interface
|
|
14736
|
+
* @export
|
|
14737
|
+
*/
|
|
14738
|
+
export const LocationApiFp = function (configuration) {
|
|
14739
|
+
const localVarAxiosParamCreator = LocationApiAxiosParamCreator(configuration);
|
|
14740
|
+
return {
|
|
14741
|
+
/**
|
|
14742
|
+
* Search the Locations stored for game servers, as the game last reported them. They stay available while the game server is offline. A Location the game reported without a Dimension is stored under the game server\'s default Dimension. Filterable by category, a free-form string the game chooses. Required permissions: `READ_MAP`<br> OperationId: `LocationControllerSearch`
|
|
14743
|
+
* @summary Search
|
|
14744
|
+
* @param {LocationSearchInputDTO} [locationSearchInputDTO] LocationSearchInputDTO
|
|
14745
|
+
* @param {*} [options] Override http request option.
|
|
14746
|
+
* @throws {RequiredError}
|
|
14747
|
+
*/
|
|
14748
|
+
async locationControllerSearch(locationSearchInputDTO, options) {
|
|
14749
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.locationControllerSearch(locationSearchInputDTO, options);
|
|
14750
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14751
|
+
const localVarOperationServerBasePath = operationServerMap['LocationApi.locationControllerSearch']?.[localVarOperationServerIndex]?.url;
|
|
14752
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14753
|
+
},
|
|
14754
|
+
};
|
|
14755
|
+
};
|
|
14756
|
+
/**
|
|
14757
|
+
* LocationApi - factory interface
|
|
14758
|
+
* @export
|
|
14759
|
+
*/
|
|
14760
|
+
export const LocationApiFactory = function (configuration, basePath, axios) {
|
|
14761
|
+
const localVarFp = LocationApiFp(configuration);
|
|
14762
|
+
return {
|
|
14763
|
+
/**
|
|
14764
|
+
* Search the Locations stored for game servers, as the game last reported them. They stay available while the game server is offline. A Location the game reported without a Dimension is stored under the game server\'s default Dimension. Filterable by category, a free-form string the game chooses. Required permissions: `READ_MAP`<br> OperationId: `LocationControllerSearch`
|
|
14765
|
+
* @summary Search
|
|
14766
|
+
* @param {LocationSearchInputDTO} [locationSearchInputDTO] LocationSearchInputDTO
|
|
14767
|
+
* @param {*} [options] Override http request option.
|
|
14768
|
+
* @throws {RequiredError}
|
|
14769
|
+
*/
|
|
14770
|
+
locationControllerSearch(locationSearchInputDTO, options) {
|
|
14771
|
+
return localVarFp
|
|
14772
|
+
.locationControllerSearch(locationSearchInputDTO, options)
|
|
14773
|
+
.then((request) => request(axios, basePath));
|
|
14774
|
+
},
|
|
14775
|
+
};
|
|
14776
|
+
};
|
|
14777
|
+
/**
|
|
14778
|
+
* LocationApi - object-oriented interface
|
|
14779
|
+
* @export
|
|
14780
|
+
* @class LocationApi
|
|
14781
|
+
* @extends {BaseAPI}
|
|
14782
|
+
*/
|
|
14783
|
+
export class LocationApi extends BaseAPI {
|
|
14784
|
+
/**
|
|
14785
|
+
* Search the Locations stored for game servers, as the game last reported them. They stay available while the game server is offline. A Location the game reported without a Dimension is stored under the game server\'s default Dimension. Filterable by category, a free-form string the game chooses. Required permissions: `READ_MAP`<br> OperationId: `LocationControllerSearch`
|
|
14786
|
+
* @summary Search
|
|
14787
|
+
* @param {LocationSearchInputDTO} [locationSearchInputDTO] LocationSearchInputDTO
|
|
14788
|
+
* @param {*} [options] Override http request option.
|
|
14789
|
+
* @throws {RequiredError}
|
|
14790
|
+
* @memberof LocationApi
|
|
14791
|
+
*/
|
|
14792
|
+
locationControllerSearch(locationSearchInputDTO, options) {
|
|
14793
|
+
return LocationApiFp(this.configuration)
|
|
14794
|
+
.locationControllerSearch(locationSearchInputDTO, options)
|
|
14795
|
+
.then((request) => request(this.axios, this.basePath));
|
|
14796
|
+
}
|
|
14797
|
+
}
|
|
14293
14798
|
/**
|
|
14294
14799
|
* MetaApi - axios parameter creator
|
|
14295
14800
|
* @export
|
|
@@ -14809,6 +15314,41 @@ export const ModuleApiAxiosParamCreator = function (configuration) {
|
|
|
14809
15314
|
options: localVarRequestOptions,
|
|
14810
15315
|
};
|
|
14811
15316
|
},
|
|
15317
|
+
/**
|
|
15318
|
+
* Adds the tagged versions of an export to this custom module. Tags the module already has with identical content are skipped; a tag with different content refuses the whole import. The exported latest draft is ignored. Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerImportVersions`
|
|
15319
|
+
* @summary Import versions into an existing module
|
|
15320
|
+
* @param {string} id
|
|
15321
|
+
* @param {any} [body]
|
|
15322
|
+
* @param {*} [options] Override http request option.
|
|
15323
|
+
* @throws {RequiredError}
|
|
15324
|
+
*/
|
|
15325
|
+
moduleControllerImportVersions: async (id, body, options = {}) => {
|
|
15326
|
+
// verify required parameter 'id' is not null or undefined
|
|
15327
|
+
assertParamExists('moduleControllerImportVersions', 'id', id);
|
|
15328
|
+
const localVarPath = `/module/{id}/import`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
15329
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15330
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15331
|
+
let baseOptions;
|
|
15332
|
+
if (configuration) {
|
|
15333
|
+
baseOptions = configuration.baseOptions;
|
|
15334
|
+
}
|
|
15335
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
15336
|
+
const localVarHeaderParameter = {};
|
|
15337
|
+
const localVarQueryParameter = {};
|
|
15338
|
+
// authentication bearerAuth required
|
|
15339
|
+
// http bearer authentication required
|
|
15340
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
15341
|
+
// authentication domainAuth required
|
|
15342
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15343
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15344
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15345
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
15346
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
15347
|
+
return {
|
|
15348
|
+
url: toPathString(localVarUrlObj),
|
|
15349
|
+
options: localVarRequestOptions,
|
|
15350
|
+
};
|
|
15351
|
+
},
|
|
14812
15352
|
/**
|
|
14813
15353
|
* Removes a module, including all versions and config Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerRemove`
|
|
14814
15354
|
* @summary Remove a module
|
|
@@ -15204,6 +15744,20 @@ export const ModuleApiFp = function (configuration) {
|
|
|
15204
15744
|
const localVarOperationServerBasePath = operationServerMap['ModuleApi.moduleControllerImport']?.[localVarOperationServerIndex]?.url;
|
|
15205
15745
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15206
15746
|
},
|
|
15747
|
+
/**
|
|
15748
|
+
* Adds the tagged versions of an export to this custom module. Tags the module already has with identical content are skipped; a tag with different content refuses the whole import. The exported latest draft is ignored. Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerImportVersions`
|
|
15749
|
+
* @summary Import versions into an existing module
|
|
15750
|
+
* @param {string} id
|
|
15751
|
+
* @param {any} [body]
|
|
15752
|
+
* @param {*} [options] Override http request option.
|
|
15753
|
+
* @throws {RequiredError}
|
|
15754
|
+
*/
|
|
15755
|
+
async moduleControllerImportVersions(id, body, options) {
|
|
15756
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.moduleControllerImportVersions(id, body, options);
|
|
15757
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
15758
|
+
const localVarOperationServerBasePath = operationServerMap['ModuleApi.moduleControllerImportVersions']?.[localVarOperationServerIndex]?.url;
|
|
15759
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15760
|
+
},
|
|
15207
15761
|
/**
|
|
15208
15762
|
* Removes a module, including all versions and config Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerRemove`
|
|
15209
15763
|
* @summary Remove a module
|
|
@@ -15391,6 +15945,17 @@ export const ModuleApiFactory = function (configuration, basePath, axios) {
|
|
|
15391
15945
|
moduleControllerImport(body, options) {
|
|
15392
15946
|
return localVarFp.moduleControllerImport(body, options).then((request) => request(axios, basePath));
|
|
15393
15947
|
},
|
|
15948
|
+
/**
|
|
15949
|
+
* Adds the tagged versions of an export to this custom module. Tags the module already has with identical content are skipped; a tag with different content refuses the whole import. The exported latest draft is ignored. Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerImportVersions`
|
|
15950
|
+
* @summary Import versions into an existing module
|
|
15951
|
+
* @param {string} id
|
|
15952
|
+
* @param {any} [body]
|
|
15953
|
+
* @param {*} [options] Override http request option.
|
|
15954
|
+
* @throws {RequiredError}
|
|
15955
|
+
*/
|
|
15956
|
+
moduleControllerImportVersions(id, body, options) {
|
|
15957
|
+
return localVarFp.moduleControllerImportVersions(id, body, options).then((request) => request(axios, basePath));
|
|
15958
|
+
},
|
|
15394
15959
|
/**
|
|
15395
15960
|
* Removes a module, including all versions and config Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerRemove`
|
|
15396
15961
|
* @summary Remove a module
|
|
@@ -15574,6 +16139,20 @@ export class ModuleApi extends BaseAPI {
|
|
|
15574
16139
|
.moduleControllerImport(body, options)
|
|
15575
16140
|
.then((request) => request(this.axios, this.basePath));
|
|
15576
16141
|
}
|
|
16142
|
+
/**
|
|
16143
|
+
* Adds the tagged versions of an export to this custom module. Tags the module already has with identical content are skipped; a tag with different content refuses the whole import. The exported latest draft is ignored. Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerImportVersions`
|
|
16144
|
+
* @summary Import versions into an existing module
|
|
16145
|
+
* @param {string} id
|
|
16146
|
+
* @param {any} [body]
|
|
16147
|
+
* @param {*} [options] Override http request option.
|
|
16148
|
+
* @throws {RequiredError}
|
|
16149
|
+
* @memberof ModuleApi
|
|
16150
|
+
*/
|
|
16151
|
+
moduleControllerImportVersions(id, body, options) {
|
|
16152
|
+
return ModuleApiFp(this.configuration)
|
|
16153
|
+
.moduleControllerImportVersions(id, body, options)
|
|
16154
|
+
.then((request) => request(this.axios, this.basePath));
|
|
16155
|
+
}
|
|
15577
16156
|
/**
|
|
15578
16157
|
* Removes a module, including all versions and config Required permissions: `MANAGE_MODULES`<br> OperationId: `ModuleControllerRemove`
|
|
15579
16158
|
* @summary Remove a module
|
|
@@ -16077,6 +16656,111 @@ export const PlayerApiAxiosParamCreator = function (configuration) {
|
|
|
16077
16656
|
options: localVarRequestOptions,
|
|
16078
16657
|
};
|
|
16079
16658
|
},
|
|
16659
|
+
/**
|
|
16660
|
+
* Link a player to a user in this domain, replacing any existing link on either side. Records source `admin` and the acting user. Emits player-linked, and player-unlinked (reason `displaced`) for each link it replaces. Linking a player to the user it is already linked to changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerLinkUser`
|
|
16661
|
+
* @summary Link a player to a user
|
|
16662
|
+
* @param {string} id
|
|
16663
|
+
* @param {PlayerLinkUserInputDTO} [playerLinkUserInputDTO] PlayerLinkUserInputDTO
|
|
16664
|
+
* @param {*} [options] Override http request option.
|
|
16665
|
+
* @throws {RequiredError}
|
|
16666
|
+
*/
|
|
16667
|
+
playerControllerLinkUser: async (id, playerLinkUserInputDTO, options = {}) => {
|
|
16668
|
+
// verify required parameter 'id' is not null or undefined
|
|
16669
|
+
assertParamExists('playerControllerLinkUser', 'id', id);
|
|
16670
|
+
const localVarPath = `/player/{id}/link`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
16671
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16672
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16673
|
+
let baseOptions;
|
|
16674
|
+
if (configuration) {
|
|
16675
|
+
baseOptions = configuration.baseOptions;
|
|
16676
|
+
}
|
|
16677
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
16678
|
+
const localVarHeaderParameter = {};
|
|
16679
|
+
const localVarQueryParameter = {};
|
|
16680
|
+
// authentication bearerAuth required
|
|
16681
|
+
// http bearer authentication required
|
|
16682
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16683
|
+
// authentication domainAuth required
|
|
16684
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16685
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16686
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16687
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
16688
|
+
localVarRequestOptions.data = serializeDataIfNeeded(playerLinkUserInputDTO, localVarRequestOptions, configuration);
|
|
16689
|
+
return {
|
|
16690
|
+
url: toPathString(localVarUrlObj),
|
|
16691
|
+
options: localVarRequestOptions,
|
|
16692
|
+
};
|
|
16693
|
+
},
|
|
16694
|
+
/**
|
|
16695
|
+
* Merges this player into `intoPlayerId` and deletes it. This cannot be undone. Its game servers, roles, bans, variables, shop orders, name and IP history and events move to the surviving player (event search reflects the move within a minute); on a game server both played on, the most recently seen record is kept and currency and playtime are summed. When both players are linked to a user, `keepUserId` names the user that stays linked and the other is unlinked (player-unlinked, reason `merged`). Emits player-merged. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMerge`
|
|
16696
|
+
* @summary Merge a player into another
|
|
16697
|
+
* @param {string} id
|
|
16698
|
+
* @param {PlayerMergeExecuteInputDTO} [playerMergeExecuteInputDTO] PlayerMergeExecuteInputDTO
|
|
16699
|
+
* @param {*} [options] Override http request option.
|
|
16700
|
+
* @throws {RequiredError}
|
|
16701
|
+
*/
|
|
16702
|
+
playerControllerMerge: async (id, playerMergeExecuteInputDTO, options = {}) => {
|
|
16703
|
+
// verify required parameter 'id' is not null or undefined
|
|
16704
|
+
assertParamExists('playerControllerMerge', 'id', id);
|
|
16705
|
+
const localVarPath = `/player/{id}/merge`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
16706
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16707
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16708
|
+
let baseOptions;
|
|
16709
|
+
if (configuration) {
|
|
16710
|
+
baseOptions = configuration.baseOptions;
|
|
16711
|
+
}
|
|
16712
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
16713
|
+
const localVarHeaderParameter = {};
|
|
16714
|
+
const localVarQueryParameter = {};
|
|
16715
|
+
// authentication bearerAuth required
|
|
16716
|
+
// http bearer authentication required
|
|
16717
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16718
|
+
// authentication domainAuth required
|
|
16719
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16720
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16721
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16722
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
16723
|
+
localVarRequestOptions.data = serializeDataIfNeeded(playerMergeExecuteInputDTO, localVarRequestOptions, configuration);
|
|
16724
|
+
return {
|
|
16725
|
+
url: toPathString(localVarUrlObj),
|
|
16726
|
+
options: localVarRequestOptions,
|
|
16727
|
+
};
|
|
16728
|
+
},
|
|
16729
|
+
/**
|
|
16730
|
+
* Shows what merging this player into `intoPlayerId` would do: the game servers moved or combined (currency and playtime summed), the identifiers that move, the roles, bans and variables that move or are dropped as duplicates, and any refusal. Changes nothing. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMergePreview`
|
|
16731
|
+
* @summary Preview merging a player into another
|
|
16732
|
+
* @param {string} id
|
|
16733
|
+
* @param {PlayerMergeInputDTO} [playerMergeInputDTO] PlayerMergeInputDTO
|
|
16734
|
+
* @param {*} [options] Override http request option.
|
|
16735
|
+
* @throws {RequiredError}
|
|
16736
|
+
*/
|
|
16737
|
+
playerControllerMergePreview: async (id, playerMergeInputDTO, options = {}) => {
|
|
16738
|
+
// verify required parameter 'id' is not null or undefined
|
|
16739
|
+
assertParamExists('playerControllerMergePreview', 'id', id);
|
|
16740
|
+
const localVarPath = `/player/{id}/merge/preview`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
16741
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16742
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16743
|
+
let baseOptions;
|
|
16744
|
+
if (configuration) {
|
|
16745
|
+
baseOptions = configuration.baseOptions;
|
|
16746
|
+
}
|
|
16747
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
16748
|
+
const localVarHeaderParameter = {};
|
|
16749
|
+
const localVarQueryParameter = {};
|
|
16750
|
+
// authentication bearerAuth required
|
|
16751
|
+
// http bearer authentication required
|
|
16752
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16753
|
+
// authentication domainAuth required
|
|
16754
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16755
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16756
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16757
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
16758
|
+
localVarRequestOptions.data = serializeDataIfNeeded(playerMergeInputDTO, localVarRequestOptions, configuration);
|
|
16759
|
+
return {
|
|
16760
|
+
url: toPathString(localVarUrlObj),
|
|
16761
|
+
options: localVarRequestOptions,
|
|
16762
|
+
};
|
|
16763
|
+
},
|
|
16080
16764
|
/**
|
|
16081
16765
|
* Takes a role away from a player, revoking the permissions it granted them. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerRemoveRole`
|
|
16082
16766
|
* @summary Remove a role from a player
|
|
@@ -16149,31 +16833,63 @@ export const PlayerApiAxiosParamCreator = function (configuration) {
|
|
|
16149
16833
|
options: localVarRequestOptions,
|
|
16150
16834
|
};
|
|
16151
16835
|
},
|
|
16152
|
-
};
|
|
16153
|
-
};
|
|
16154
|
-
/**
|
|
16155
|
-
* PlayerApi - functional programming interface
|
|
16156
|
-
* @export
|
|
16157
|
-
*/
|
|
16158
|
-
export const PlayerApiFp = function (configuration) {
|
|
16159
|
-
const localVarAxiosParamCreator = PlayerApiAxiosParamCreator(configuration);
|
|
16160
|
-
return {
|
|
16161
|
-
/**
|
|
16162
|
-
* Ban a player from one game server, or from every game server in the domain with `isGlobal`. Creating a ban via the API always makes it Takaro managed. Replaces the deprecated `GameServerController.banPlayer`. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `BanControllerCreate`
|
|
16163
|
-
* @summary Ban a player from a game server
|
|
16164
|
-
* @param {BanCreateDTO} [banCreateDTO] BanCreateDTO
|
|
16165
|
-
* @param {*} [options] Override http request option.
|
|
16166
|
-
* @throws {RequiredError}
|
|
16167
|
-
*/
|
|
16168
|
-
async banControllerCreate(banCreateDTO, options) {
|
|
16169
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.banControllerCreate(banCreateDTO, options);
|
|
16170
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16171
|
-
const localVarOperationServerBasePath = operationServerMap['PlayerApi.banControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
16172
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16173
|
-
},
|
|
16174
16836
|
/**
|
|
16175
|
-
*
|
|
16176
|
-
* @summary
|
|
16837
|
+
* End the link between a player and its user. Both are kept. Emits player-unlinked (reason `admin`). Unlinking a player that has no linked user changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerUnlinkUser`
|
|
16838
|
+
* @summary Unlink a player from its user
|
|
16839
|
+
* @param {string} id
|
|
16840
|
+
* @param {*} [options] Override http request option.
|
|
16841
|
+
* @throws {RequiredError}
|
|
16842
|
+
*/
|
|
16843
|
+
playerControllerUnlinkUser: async (id, options = {}) => {
|
|
16844
|
+
// verify required parameter 'id' is not null or undefined
|
|
16845
|
+
assertParamExists('playerControllerUnlinkUser', 'id', id);
|
|
16846
|
+
const localVarPath = `/player/{id}/link`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
16847
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16848
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16849
|
+
let baseOptions;
|
|
16850
|
+
if (configuration) {
|
|
16851
|
+
baseOptions = configuration.baseOptions;
|
|
16852
|
+
}
|
|
16853
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
16854
|
+
const localVarHeaderParameter = {};
|
|
16855
|
+
const localVarQueryParameter = {};
|
|
16856
|
+
// authentication bearerAuth required
|
|
16857
|
+
// http bearer authentication required
|
|
16858
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16859
|
+
// authentication domainAuth required
|
|
16860
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16861
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16862
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
16863
|
+
return {
|
|
16864
|
+
url: toPathString(localVarUrlObj),
|
|
16865
|
+
options: localVarRequestOptions,
|
|
16866
|
+
};
|
|
16867
|
+
},
|
|
16868
|
+
};
|
|
16869
|
+
};
|
|
16870
|
+
/**
|
|
16871
|
+
* PlayerApi - functional programming interface
|
|
16872
|
+
* @export
|
|
16873
|
+
*/
|
|
16874
|
+
export const PlayerApiFp = function (configuration) {
|
|
16875
|
+
const localVarAxiosParamCreator = PlayerApiAxiosParamCreator(configuration);
|
|
16876
|
+
return {
|
|
16877
|
+
/**
|
|
16878
|
+
* Ban a player from one game server, or from every game server in the domain with `isGlobal`. Creating a ban via the API always makes it Takaro managed. Replaces the deprecated `GameServerController.banPlayer`. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `BanControllerCreate`
|
|
16879
|
+
* @summary Ban a player from a game server
|
|
16880
|
+
* @param {BanCreateDTO} [banCreateDTO] BanCreateDTO
|
|
16881
|
+
* @param {*} [options] Override http request option.
|
|
16882
|
+
* @throws {RequiredError}
|
|
16883
|
+
*/
|
|
16884
|
+
async banControllerCreate(banCreateDTO, options) {
|
|
16885
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.banControllerCreate(banCreateDTO, options);
|
|
16886
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16887
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerApi.banControllerCreate']?.[localVarOperationServerIndex]?.url;
|
|
16888
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16889
|
+
},
|
|
16890
|
+
/**
|
|
16891
|
+
* Unban a player: removes the ban from Takaro and from the game server(s) it applied to. Replaces the deprecated `GameServerController.unbanPlayer`. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `BanControllerDelete`
|
|
16892
|
+
* @summary Unban a player
|
|
16177
16893
|
* @param {string} id
|
|
16178
16894
|
* @param {*} [options] Override http request option.
|
|
16179
16895
|
* @throws {RequiredError}
|
|
@@ -16304,6 +17020,48 @@ export const PlayerApiFp = function (configuration) {
|
|
|
16304
17020
|
const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerGetOne']?.[localVarOperationServerIndex]?.url;
|
|
16305
17021
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16306
17022
|
},
|
|
17023
|
+
/**
|
|
17024
|
+
* Link a player to a user in this domain, replacing any existing link on either side. Records source `admin` and the acting user. Emits player-linked, and player-unlinked (reason `displaced`) for each link it replaces. Linking a player to the user it is already linked to changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerLinkUser`
|
|
17025
|
+
* @summary Link a player to a user
|
|
17026
|
+
* @param {string} id
|
|
17027
|
+
* @param {PlayerLinkUserInputDTO} [playerLinkUserInputDTO] PlayerLinkUserInputDTO
|
|
17028
|
+
* @param {*} [options] Override http request option.
|
|
17029
|
+
* @throws {RequiredError}
|
|
17030
|
+
*/
|
|
17031
|
+
async playerControllerLinkUser(id, playerLinkUserInputDTO, options) {
|
|
17032
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerLinkUser(id, playerLinkUserInputDTO, options);
|
|
17033
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17034
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerLinkUser']?.[localVarOperationServerIndex]?.url;
|
|
17035
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17036
|
+
},
|
|
17037
|
+
/**
|
|
17038
|
+
* Merges this player into `intoPlayerId` and deletes it. This cannot be undone. Its game servers, roles, bans, variables, shop orders, name and IP history and events move to the surviving player (event search reflects the move within a minute); on a game server both played on, the most recently seen record is kept and currency and playtime are summed. When both players are linked to a user, `keepUserId` names the user that stays linked and the other is unlinked (player-unlinked, reason `merged`). Emits player-merged. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMerge`
|
|
17039
|
+
* @summary Merge a player into another
|
|
17040
|
+
* @param {string} id
|
|
17041
|
+
* @param {PlayerMergeExecuteInputDTO} [playerMergeExecuteInputDTO] PlayerMergeExecuteInputDTO
|
|
17042
|
+
* @param {*} [options] Override http request option.
|
|
17043
|
+
* @throws {RequiredError}
|
|
17044
|
+
*/
|
|
17045
|
+
async playerControllerMerge(id, playerMergeExecuteInputDTO, options) {
|
|
17046
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerMerge(id, playerMergeExecuteInputDTO, options);
|
|
17047
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17048
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerMerge']?.[localVarOperationServerIndex]?.url;
|
|
17049
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17050
|
+
},
|
|
17051
|
+
/**
|
|
17052
|
+
* Shows what merging this player into `intoPlayerId` would do: the game servers moved or combined (currency and playtime summed), the identifiers that move, the roles, bans and variables that move or are dropped as duplicates, and any refusal. Changes nothing. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMergePreview`
|
|
17053
|
+
* @summary Preview merging a player into another
|
|
17054
|
+
* @param {string} id
|
|
17055
|
+
* @param {PlayerMergeInputDTO} [playerMergeInputDTO] PlayerMergeInputDTO
|
|
17056
|
+
* @param {*} [options] Override http request option.
|
|
17057
|
+
* @throws {RequiredError}
|
|
17058
|
+
*/
|
|
17059
|
+
async playerControllerMergePreview(id, playerMergeInputDTO, options) {
|
|
17060
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerMergePreview(id, playerMergeInputDTO, options);
|
|
17061
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17062
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerMergePreview']?.[localVarOperationServerIndex]?.url;
|
|
17063
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17064
|
+
},
|
|
16307
17065
|
/**
|
|
16308
17066
|
* Takes a role away from a player, revoking the permissions it granted them. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerRemoveRole`
|
|
16309
17067
|
* @summary Remove a role from a player
|
|
@@ -16332,6 +17090,19 @@ export const PlayerApiFp = function (configuration) {
|
|
|
16332
17090
|
const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerSearch']?.[localVarOperationServerIndex]?.url;
|
|
16333
17091
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16334
17092
|
},
|
|
17093
|
+
/**
|
|
17094
|
+
* End the link between a player and its user. Both are kept. Emits player-unlinked (reason `admin`). Unlinking a player that has no linked user changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerUnlinkUser`
|
|
17095
|
+
* @summary Unlink a player from its user
|
|
17096
|
+
* @param {string} id
|
|
17097
|
+
* @param {*} [options] Override http request option.
|
|
17098
|
+
* @throws {RequiredError}
|
|
17099
|
+
*/
|
|
17100
|
+
async playerControllerUnlinkUser(id, options) {
|
|
17101
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerControllerUnlinkUser(id, options);
|
|
17102
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17103
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerApi.playerControllerUnlinkUser']?.[localVarOperationServerIndex]?.url;
|
|
17104
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17105
|
+
},
|
|
16335
17106
|
};
|
|
16336
17107
|
};
|
|
16337
17108
|
/**
|
|
@@ -16460,6 +17231,45 @@ export const PlayerApiFactory = function (configuration, basePath, axios) {
|
|
|
16460
17231
|
playerControllerGetOne(id, options) {
|
|
16461
17232
|
return localVarFp.playerControllerGetOne(id, options).then((request) => request(axios, basePath));
|
|
16462
17233
|
},
|
|
17234
|
+
/**
|
|
17235
|
+
* Link a player to a user in this domain, replacing any existing link on either side. Records source `admin` and the acting user. Emits player-linked, and player-unlinked (reason `displaced`) for each link it replaces. Linking a player to the user it is already linked to changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerLinkUser`
|
|
17236
|
+
* @summary Link a player to a user
|
|
17237
|
+
* @param {string} id
|
|
17238
|
+
* @param {PlayerLinkUserInputDTO} [playerLinkUserInputDTO] PlayerLinkUserInputDTO
|
|
17239
|
+
* @param {*} [options] Override http request option.
|
|
17240
|
+
* @throws {RequiredError}
|
|
17241
|
+
*/
|
|
17242
|
+
playerControllerLinkUser(id, playerLinkUserInputDTO, options) {
|
|
17243
|
+
return localVarFp
|
|
17244
|
+
.playerControllerLinkUser(id, playerLinkUserInputDTO, options)
|
|
17245
|
+
.then((request) => request(axios, basePath));
|
|
17246
|
+
},
|
|
17247
|
+
/**
|
|
17248
|
+
* Merges this player into `intoPlayerId` and deletes it. This cannot be undone. Its game servers, roles, bans, variables, shop orders, name and IP history and events move to the surviving player (event search reflects the move within a minute); on a game server both played on, the most recently seen record is kept and currency and playtime are summed. When both players are linked to a user, `keepUserId` names the user that stays linked and the other is unlinked (player-unlinked, reason `merged`). Emits player-merged. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMerge`
|
|
17249
|
+
* @summary Merge a player into another
|
|
17250
|
+
* @param {string} id
|
|
17251
|
+
* @param {PlayerMergeExecuteInputDTO} [playerMergeExecuteInputDTO] PlayerMergeExecuteInputDTO
|
|
17252
|
+
* @param {*} [options] Override http request option.
|
|
17253
|
+
* @throws {RequiredError}
|
|
17254
|
+
*/
|
|
17255
|
+
playerControllerMerge(id, playerMergeExecuteInputDTO, options) {
|
|
17256
|
+
return localVarFp
|
|
17257
|
+
.playerControllerMerge(id, playerMergeExecuteInputDTO, options)
|
|
17258
|
+
.then((request) => request(axios, basePath));
|
|
17259
|
+
},
|
|
17260
|
+
/**
|
|
17261
|
+
* Shows what merging this player into `intoPlayerId` would do: the game servers moved or combined (currency and playtime summed), the identifiers that move, the roles, bans and variables that move or are dropped as duplicates, and any refusal. Changes nothing. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMergePreview`
|
|
17262
|
+
* @summary Preview merging a player into another
|
|
17263
|
+
* @param {string} id
|
|
17264
|
+
* @param {PlayerMergeInputDTO} [playerMergeInputDTO] PlayerMergeInputDTO
|
|
17265
|
+
* @param {*} [options] Override http request option.
|
|
17266
|
+
* @throws {RequiredError}
|
|
17267
|
+
*/
|
|
17268
|
+
playerControllerMergePreview(id, playerMergeInputDTO, options) {
|
|
17269
|
+
return localVarFp
|
|
17270
|
+
.playerControllerMergePreview(id, playerMergeInputDTO, options)
|
|
17271
|
+
.then((request) => request(axios, basePath));
|
|
17272
|
+
},
|
|
16463
17273
|
/**
|
|
16464
17274
|
* Takes a role away from a player, revoking the permissions it granted them. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerRemoveRole`
|
|
16465
17275
|
* @summary Remove a role from a player
|
|
@@ -16486,6 +17296,16 @@ export const PlayerApiFactory = function (configuration, basePath, axios) {
|
|
|
16486
17296
|
.playerControllerSearch(playerSearchInputDTO, options)
|
|
16487
17297
|
.then((request) => request(axios, basePath));
|
|
16488
17298
|
},
|
|
17299
|
+
/**
|
|
17300
|
+
* End the link between a player and its user. Both are kept. Emits player-unlinked (reason `admin`). Unlinking a player that has no linked user changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerUnlinkUser`
|
|
17301
|
+
* @summary Unlink a player from its user
|
|
17302
|
+
* @param {string} id
|
|
17303
|
+
* @param {*} [options] Override http request option.
|
|
17304
|
+
* @throws {RequiredError}
|
|
17305
|
+
*/
|
|
17306
|
+
playerControllerUnlinkUser(id, options) {
|
|
17307
|
+
return localVarFp.playerControllerUnlinkUser(id, options).then((request) => request(axios, basePath));
|
|
17308
|
+
},
|
|
16489
17309
|
};
|
|
16490
17310
|
};
|
|
16491
17311
|
/**
|
|
@@ -16641,6 +17461,48 @@ export class PlayerApi extends BaseAPI {
|
|
|
16641
17461
|
.playerControllerGetOne(id, options)
|
|
16642
17462
|
.then((request) => request(this.axios, this.basePath));
|
|
16643
17463
|
}
|
|
17464
|
+
/**
|
|
17465
|
+
* Link a player to a user in this domain, replacing any existing link on either side. Records source `admin` and the acting user. Emits player-linked, and player-unlinked (reason `displaced`) for each link it replaces. Linking a player to the user it is already linked to changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerLinkUser`
|
|
17466
|
+
* @summary Link a player to a user
|
|
17467
|
+
* @param {string} id
|
|
17468
|
+
* @param {PlayerLinkUserInputDTO} [playerLinkUserInputDTO] PlayerLinkUserInputDTO
|
|
17469
|
+
* @param {*} [options] Override http request option.
|
|
17470
|
+
* @throws {RequiredError}
|
|
17471
|
+
* @memberof PlayerApi
|
|
17472
|
+
*/
|
|
17473
|
+
playerControllerLinkUser(id, playerLinkUserInputDTO, options) {
|
|
17474
|
+
return PlayerApiFp(this.configuration)
|
|
17475
|
+
.playerControllerLinkUser(id, playerLinkUserInputDTO, options)
|
|
17476
|
+
.then((request) => request(this.axios, this.basePath));
|
|
17477
|
+
}
|
|
17478
|
+
/**
|
|
17479
|
+
* Merges this player into `intoPlayerId` and deletes it. This cannot be undone. Its game servers, roles, bans, variables, shop orders, name and IP history and events move to the surviving player (event search reflects the move within a minute); on a game server both played on, the most recently seen record is kept and currency and playtime are summed. When both players are linked to a user, `keepUserId` names the user that stays linked and the other is unlinked (player-unlinked, reason `merged`). Emits player-merged. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMerge`
|
|
17480
|
+
* @summary Merge a player into another
|
|
17481
|
+
* @param {string} id
|
|
17482
|
+
* @param {PlayerMergeExecuteInputDTO} [playerMergeExecuteInputDTO] PlayerMergeExecuteInputDTO
|
|
17483
|
+
* @param {*} [options] Override http request option.
|
|
17484
|
+
* @throws {RequiredError}
|
|
17485
|
+
* @memberof PlayerApi
|
|
17486
|
+
*/
|
|
17487
|
+
playerControllerMerge(id, playerMergeExecuteInputDTO, options) {
|
|
17488
|
+
return PlayerApiFp(this.configuration)
|
|
17489
|
+
.playerControllerMerge(id, playerMergeExecuteInputDTO, options)
|
|
17490
|
+
.then((request) => request(this.axios, this.basePath));
|
|
17491
|
+
}
|
|
17492
|
+
/**
|
|
17493
|
+
* Shows what merging this player into `intoPlayerId` would do: the game servers moved or combined (currency and playtime summed), the identifiers that move, the roles, bans and variables that move or are dropped as duplicates, and any refusal. Changes nothing. Refused when both players hold different values for the same platform identifier (Steam, EOS, Xbox Live, platform id), when both ids name the same player, or when either player was created by Fixture History. MANAGE_USERS is also required when the player being merged away is linked to a user, and MANAGE_VARIABLES when it holds variables. Required permissions: `MANAGE_PLAYERS`<br> OperationId: `PlayerControllerMergePreview`
|
|
17494
|
+
* @summary Preview merging a player into another
|
|
17495
|
+
* @param {string} id
|
|
17496
|
+
* @param {PlayerMergeInputDTO} [playerMergeInputDTO] PlayerMergeInputDTO
|
|
17497
|
+
* @param {*} [options] Override http request option.
|
|
17498
|
+
* @throws {RequiredError}
|
|
17499
|
+
* @memberof PlayerApi
|
|
17500
|
+
*/
|
|
17501
|
+
playerControllerMergePreview(id, playerMergeInputDTO, options) {
|
|
17502
|
+
return PlayerApiFp(this.configuration)
|
|
17503
|
+
.playerControllerMergePreview(id, playerMergeInputDTO, options)
|
|
17504
|
+
.then((request) => request(this.axios, this.basePath));
|
|
17505
|
+
}
|
|
16644
17506
|
/**
|
|
16645
17507
|
* Takes a role away from a player, revoking the permissions it granted them. Required permissions: `MANAGE_PLAYERS`, `MANAGE_ROLES`<br> OperationId: `PlayerControllerRemoveRole`
|
|
16646
17508
|
* @summary Remove a role from a player
|
|
@@ -16669,6 +17531,19 @@ export class PlayerApi extends BaseAPI {
|
|
|
16669
17531
|
.playerControllerSearch(playerSearchInputDTO, options)
|
|
16670
17532
|
.then((request) => request(this.axios, this.basePath));
|
|
16671
17533
|
}
|
|
17534
|
+
/**
|
|
17535
|
+
* End the link between a player and its user. Both are kept. Emits player-unlinked (reason `admin`). Unlinking a player that has no linked user changes nothing. Required permissions: `MANAGE_PLAYERS`, `MANAGE_USERS`<br> OperationId: `PlayerControllerUnlinkUser`
|
|
17536
|
+
* @summary Unlink a player from its user
|
|
17537
|
+
* @param {string} id
|
|
17538
|
+
* @param {*} [options] Override http request option.
|
|
17539
|
+
* @throws {RequiredError}
|
|
17540
|
+
* @memberof PlayerApi
|
|
17541
|
+
*/
|
|
17542
|
+
playerControllerUnlinkUser(id, options) {
|
|
17543
|
+
return PlayerApiFp(this.configuration)
|
|
17544
|
+
.playerControllerUnlinkUser(id, options)
|
|
17545
|
+
.then((request) => request(this.axios, this.basePath));
|
|
17546
|
+
}
|
|
16672
17547
|
}
|
|
16673
17548
|
/**
|
|
16674
17549
|
* PlayerOnGameServerApi - axios parameter creator
|
|
@@ -17429,61 +18304,61 @@ export class PlayerOnGameServerApi extends BaseAPI {
|
|
|
17429
18304
|
}
|
|
17430
18305
|
}
|
|
17431
18306
|
/**
|
|
17432
|
-
*
|
|
18307
|
+
* PlayerPortalApi - axios parameter creator
|
|
17433
18308
|
* @export
|
|
17434
18309
|
*/
|
|
17435
|
-
export const
|
|
18310
|
+
export const PlayerPortalApiAxiosParamCreator = function (configuration) {
|
|
17436
18311
|
return {
|
|
17437
18312
|
/**
|
|
17438
|
-
*
|
|
17439
|
-
* @summary
|
|
17440
|
-
* @param {string}
|
|
17441
|
-
* @param {RegistryInstallBody} [registryInstallBody] RegistryInstallBody
|
|
18313
|
+
* Dismisses the signed-in User\'s pending notice that another account\'s link replaced theirs, and returns the Player Portal state. Idempotent. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerDismissDisplacedNotice`
|
|
18314
|
+
* @summary Dismiss the displaced notice
|
|
18315
|
+
* @param {string} domainId
|
|
17442
18316
|
* @param {*} [options] Override http request option.
|
|
17443
18317
|
* @throws {RequiredError}
|
|
17444
18318
|
*/
|
|
17445
|
-
|
|
17446
|
-
// verify required parameter '
|
|
17447
|
-
assertParamExists('
|
|
17448
|
-
const localVarPath = `/
|
|
18319
|
+
playerPortalControllerDismissDisplacedNotice: async (domainId, options = {}) => {
|
|
18320
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
18321
|
+
assertParamExists('playerPortalControllerDismissDisplacedNotice', 'domainId', domainId);
|
|
18322
|
+
const localVarPath = `/player-portal/{domainId}/displaced-notice`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
17449
18323
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17450
18324
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17451
18325
|
let baseOptions;
|
|
17452
18326
|
if (configuration) {
|
|
17453
18327
|
baseOptions = configuration.baseOptions;
|
|
17454
18328
|
}
|
|
17455
|
-
const localVarRequestOptions = { method: '
|
|
18329
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
17456
18330
|
const localVarHeaderParameter = {};
|
|
17457
18331
|
const localVarQueryParameter = {};
|
|
17458
18332
|
// authentication bearerAuth required
|
|
17459
18333
|
// http bearer authentication required
|
|
17460
18334
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
17461
18335
|
// authentication domainAuth required
|
|
17462
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17463
18336
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17464
18337
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17465
18338
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
17466
|
-
localVarRequestOptions.data = serializeDataIfNeeded(registryInstallBody, localVarRequestOptions, configuration);
|
|
17467
18339
|
return {
|
|
17468
18340
|
url: toPathString(localVarUrlObj),
|
|
17469
18341
|
options: localVarRequestOptions,
|
|
17470
18342
|
};
|
|
17471
18343
|
},
|
|
17472
18344
|
/**
|
|
17473
|
-
*
|
|
17474
|
-
* @summary
|
|
18345
|
+
* Signs the current Identity into the Player Portal of the Domain in the path and returns the Portal state. When the Identity has no User in that Domain, an unlinked Player User is created: it is not a dashboard user, is not billed and does not inherit the `User` role. Idempotent. Never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerEnter`
|
|
18346
|
+
* @summary Enter a Domain\'s Player Portal
|
|
18347
|
+
* @param {string} domainId
|
|
17475
18348
|
* @param {*} [options] Override http request option.
|
|
17476
18349
|
* @throws {RequiredError}
|
|
17477
18350
|
*/
|
|
17478
|
-
|
|
17479
|
-
|
|
18351
|
+
playerPortalControllerEnter: async (domainId, options = {}) => {
|
|
18352
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
18353
|
+
assertParamExists('playerPortalControllerEnter', 'domainId', domainId);
|
|
18354
|
+
const localVarPath = `/player-portal/{domainId}/enter`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
17480
18355
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17481
18356
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17482
18357
|
let baseOptions;
|
|
17483
18358
|
if (configuration) {
|
|
17484
18359
|
baseOptions = configuration.baseOptions;
|
|
17485
18360
|
}
|
|
17486
|
-
const localVarRequestOptions = { method: '
|
|
18361
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
17487
18362
|
const localVarHeaderParameter = {};
|
|
17488
18363
|
const localVarQueryParameter = {};
|
|
17489
18364
|
// authentication bearerAuth required
|
|
@@ -17499,16 +18374,17 @@ export const RegistryApiAxiosParamCreator = function (configuration) {
|
|
|
17499
18374
|
};
|
|
17500
18375
|
},
|
|
17501
18376
|
/**
|
|
17502
|
-
*
|
|
17503
|
-
* @summary
|
|
17504
|
-
* @param {string}
|
|
18377
|
+
* Whether a Link Code from `/link` in game is valid, expired or invalid in the Domain in the path. A valid code names its Player and the seconds until it expires. Another Domain\'s codes read as invalid. Signed-in Player Portal only; rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerInspectLinkCode`
|
|
18378
|
+
* @summary Inspect a game-issued Link Code
|
|
18379
|
+
* @param {string} domainId
|
|
18380
|
+
* @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
|
|
17505
18381
|
* @param {*} [options] Override http request option.
|
|
17506
18382
|
* @throws {RequiredError}
|
|
17507
18383
|
*/
|
|
17508
|
-
|
|
17509
|
-
// verify required parameter '
|
|
17510
|
-
assertParamExists('
|
|
17511
|
-
const localVarPath = `/
|
|
18384
|
+
playerPortalControllerInspectLinkCode: async (domainId, playerPortalLinkCodeInputDTO, options = {}) => {
|
|
18385
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
18386
|
+
assertParamExists('playerPortalControllerInspectLinkCode', 'domainId', domainId);
|
|
18387
|
+
const localVarPath = `/player-portal/{domainId}/link-code/inspect`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
17512
18388
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17513
18389
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17514
18390
|
let baseOptions;
|
|
@@ -17522,23 +18398,28 @@ export const RegistryApiAxiosParamCreator = function (configuration) {
|
|
|
17522
18398
|
// http bearer authentication required
|
|
17523
18399
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
17524
18400
|
// authentication domainAuth required
|
|
18401
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17525
18402
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17526
18403
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17527
18404
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
18405
|
+
localVarRequestOptions.data = serializeDataIfNeeded(playerPortalLinkCodeInputDTO, localVarRequestOptions, configuration);
|
|
17528
18406
|
return {
|
|
17529
18407
|
url: toPathString(localVarUrlObj),
|
|
17530
18408
|
options: localVarRequestOptions,
|
|
17531
18409
|
};
|
|
17532
18410
|
},
|
|
17533
18411
|
/**
|
|
17534
|
-
*
|
|
17535
|
-
* @summary
|
|
17536
|
-
* @param {
|
|
18412
|
+
* Returns the signed-in User\'s live Portal-issued Link Code, minting one when there is none; `renew: true` replaces it. Signed-in Player Portal only; one live code per User. The code is 6 digits, valid for 10 minutes, unique within the Domain and works once. Typing `/link <code>` in game links the speaking Player to this User (source `web-code`), replacing an existing link on either side (`player-unlinked`, reason `displaced`). Never reads or sets the `takaro-domain` cookie, and refuses API keys. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerIssuePortalLinkCode`
|
|
18413
|
+
* @summary Get a Link Code to type in game
|
|
18414
|
+
* @param {string} domainId
|
|
18415
|
+
* @param {PlayerPortalIssueLinkCodeInputDTO} [playerPortalIssueLinkCodeInputDTO] PlayerPortalIssueLinkCodeInputDTO
|
|
17537
18416
|
* @param {*} [options] Override http request option.
|
|
17538
18417
|
* @throws {RequiredError}
|
|
17539
18418
|
*/
|
|
17540
|
-
|
|
17541
|
-
|
|
18419
|
+
playerPortalControllerIssuePortalLinkCode: async (domainId, playerPortalIssueLinkCodeInputDTO, options = {}) => {
|
|
18420
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
18421
|
+
assertParamExists('playerPortalControllerIssuePortalLinkCode', 'domainId', domainId);
|
|
18422
|
+
const localVarPath = `/player-portal/{domainId}/portal-link-code`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
17542
18423
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17543
18424
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17544
18425
|
let baseOptions;
|
|
@@ -17556,84 +18437,697 @@ export const RegistryApiAxiosParamCreator = function (configuration) {
|
|
|
17556
18437
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17557
18438
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17558
18439
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
17559
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
18440
|
+
localVarRequestOptions.data = serializeDataIfNeeded(playerPortalIssueLinkCodeInputDTO, localVarRequestOptions, configuration);
|
|
17560
18441
|
return {
|
|
17561
18442
|
url: toPathString(localVarUrlObj),
|
|
17562
18443
|
options: localVarRequestOptions,
|
|
17563
18444
|
};
|
|
17564
18445
|
},
|
|
17565
18446
|
/**
|
|
17566
|
-
*
|
|
17567
|
-
* @summary
|
|
17568
|
-
* @param {string}
|
|
18447
|
+
* Links the code\'s Player to the signed-in User and returns the Player Portal state. Takes no email and creates no account. The code works once. An existing link on either side is replaced, emitting `player-unlinked` (reason `displaced`) and then `player-linked` (source `game-code`). Never reads or sets the `takaro-domain` cookie. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerRedeemLinkCode`
|
|
18448
|
+
* @summary Redeem a game-issued Link Code
|
|
18449
|
+
* @param {string} domainId
|
|
18450
|
+
* @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
|
|
17569
18451
|
* @param {*} [options] Override http request option.
|
|
17570
18452
|
* @throws {RequiredError}
|
|
17571
18453
|
*/
|
|
17572
|
-
|
|
17573
|
-
// verify required parameter '
|
|
17574
|
-
assertParamExists('
|
|
17575
|
-
const localVarPath = `/
|
|
18454
|
+
playerPortalControllerRedeemLinkCode: async (domainId, playerPortalLinkCodeInputDTO, options = {}) => {
|
|
18455
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
18456
|
+
assertParamExists('playerPortalControllerRedeemLinkCode', 'domainId', domainId);
|
|
18457
|
+
const localVarPath = `/player-portal/{domainId}/link-code/redeem`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
17576
18458
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17577
18459
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17578
18460
|
let baseOptions;
|
|
17579
18461
|
if (configuration) {
|
|
17580
18462
|
baseOptions = configuration.baseOptions;
|
|
17581
18463
|
}
|
|
17582
|
-
const localVarRequestOptions = { method: '
|
|
18464
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
17583
18465
|
const localVarHeaderParameter = {};
|
|
17584
18466
|
const localVarQueryParameter = {};
|
|
17585
18467
|
// authentication bearerAuth required
|
|
17586
18468
|
// http bearer authentication required
|
|
17587
18469
|
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
17588
18470
|
// authentication domainAuth required
|
|
18471
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17589
18472
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17590
18473
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17591
18474
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
18475
|
+
localVarRequestOptions.data = serializeDataIfNeeded(playerPortalLinkCodeInputDTO, localVarRequestOptions, configuration);
|
|
17592
18476
|
return {
|
|
17593
18477
|
url: toPathString(localVarUrlObj),
|
|
17594
18478
|
options: localVarRequestOptions,
|
|
17595
18479
|
};
|
|
17596
18480
|
},
|
|
17597
|
-
};
|
|
17598
|
-
};
|
|
17599
|
-
/**
|
|
17600
|
-
* RegistryApi - functional programming interface
|
|
17601
|
-
* @export
|
|
17602
|
-
*/
|
|
17603
|
-
export const RegistryApiFp = function (configuration) {
|
|
17604
|
-
const localVarAxiosParamCreator = RegistryApiAxiosParamCreator(configuration);
|
|
17605
|
-
return {
|
|
17606
18481
|
/**
|
|
17607
|
-
*
|
|
17608
|
-
* @summary
|
|
17609
|
-
* @param {
|
|
17610
|
-
* @param {RegistryInstallBody} [registryInstallBody] RegistryInstallBody
|
|
18482
|
+
* Public, for old `/link?code=` URLs: returns the Player Portal URL of the Domain a valid or recently expired Link Code belongs to, and nothing else. 404 for an unknown code. Rate-limited per client IP.<br> OperationId: `PlayerPortalControllerResolveLinkCode`
|
|
18483
|
+
* @summary Find a game-issued Link Code\'s Player Portal
|
|
18484
|
+
* @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
|
|
17611
18485
|
* @param {*} [options] Override http request option.
|
|
17612
18486
|
* @throws {RequiredError}
|
|
17613
18487
|
*/
|
|
17614
|
-
async
|
|
17615
|
-
const
|
|
17616
|
-
|
|
17617
|
-
const
|
|
17618
|
-
|
|
18488
|
+
playerPortalControllerResolveLinkCode: async (playerPortalLinkCodeInputDTO, options = {}) => {
|
|
18489
|
+
const localVarPath = `/player-portal/link-code/resolve`;
|
|
18490
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18491
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18492
|
+
let baseOptions;
|
|
18493
|
+
if (configuration) {
|
|
18494
|
+
baseOptions = configuration.baseOptions;
|
|
18495
|
+
}
|
|
18496
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
18497
|
+
const localVarHeaderParameter = {};
|
|
18498
|
+
const localVarQueryParameter = {};
|
|
18499
|
+
// authentication bearerAuth required
|
|
18500
|
+
// http bearer authentication required
|
|
18501
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
18502
|
+
// authentication domainAuth required
|
|
18503
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18504
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18505
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18506
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
18507
|
+
localVarRequestOptions.data = serializeDataIfNeeded(playerPortalLinkCodeInputDTO, localVarRequestOptions, configuration);
|
|
18508
|
+
return {
|
|
18509
|
+
url: toPathString(localVarUrlObj),
|
|
18510
|
+
options: localVarRequestOptions,
|
|
18511
|
+
};
|
|
17619
18512
|
},
|
|
17620
18513
|
/**
|
|
17621
|
-
*
|
|
17622
|
-
* @summary
|
|
18514
|
+
* The Player Portal state of the Domain in the path for the current Identity. 404 until the Identity has entered the Portal (`POST /player-portal/{domainId}/enter`). Never reads or sets the `takaro-domain` cookie.<br> OperationId: `PlayerPortalControllerState`
|
|
18515
|
+
* @summary Get a Domain\'s Player Portal state
|
|
18516
|
+
* @param {string} domainId
|
|
17623
18517
|
* @param {*} [options] Override http request option.
|
|
17624
18518
|
* @throws {RequiredError}
|
|
17625
18519
|
*/
|
|
17626
|
-
async
|
|
17627
|
-
|
|
17628
|
-
|
|
17629
|
-
const
|
|
17630
|
-
|
|
17631
|
-
|
|
17632
|
-
|
|
17633
|
-
|
|
17634
|
-
|
|
17635
|
-
|
|
17636
|
-
|
|
18520
|
+
playerPortalControllerState: async (domainId, options = {}) => {
|
|
18521
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
18522
|
+
assertParamExists('playerPortalControllerState', 'domainId', domainId);
|
|
18523
|
+
const localVarPath = `/player-portal/{domainId}`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
|
|
18524
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18525
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18526
|
+
let baseOptions;
|
|
18527
|
+
if (configuration) {
|
|
18528
|
+
baseOptions = configuration.baseOptions;
|
|
18529
|
+
}
|
|
18530
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
18531
|
+
const localVarHeaderParameter = {};
|
|
18532
|
+
const localVarQueryParameter = {};
|
|
18533
|
+
// authentication bearerAuth required
|
|
18534
|
+
// http bearer authentication required
|
|
18535
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
18536
|
+
// authentication domainAuth required
|
|
18537
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18538
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18539
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
18540
|
+
return {
|
|
18541
|
+
url: toPathString(localVarUrlObj),
|
|
18542
|
+
options: localVarRequestOptions,
|
|
18543
|
+
};
|
|
18544
|
+
},
|
|
18545
|
+
/**
|
|
18546
|
+
* Ends the signed-in User\'s own Player-User Link to the Player in the path and returns the Player Portal state. Both the Player and the User are kept. Emits `player-unlinked` (reason `self`). Steam sign-in will not link this Player to this User again until a Link Code or an admin links them. Unlinking a Player you are not linked to changes nothing; 400 when you are linked to a different Player. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerUnlinkSelf`
|
|
18547
|
+
* @summary Unlink your own Player
|
|
18548
|
+
* @param {string} domainId
|
|
18549
|
+
* @param {string} playerId
|
|
18550
|
+
* @param {*} [options] Override http request option.
|
|
18551
|
+
* @throws {RequiredError}
|
|
18552
|
+
*/
|
|
18553
|
+
playerPortalControllerUnlinkSelf: async (domainId, playerId, options = {}) => {
|
|
18554
|
+
// verify required parameter 'domainId' is not null or undefined
|
|
18555
|
+
assertParamExists('playerPortalControllerUnlinkSelf', 'domainId', domainId);
|
|
18556
|
+
// verify required parameter 'playerId' is not null or undefined
|
|
18557
|
+
assertParamExists('playerPortalControllerUnlinkSelf', 'playerId', playerId);
|
|
18558
|
+
const localVarPath = `/player-portal/{domainId}/link/{playerId}`
|
|
18559
|
+
.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
|
|
18560
|
+
.replace(`{${'playerId'}}`, encodeURIComponent(String(playerId)));
|
|
18561
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18562
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18563
|
+
let baseOptions;
|
|
18564
|
+
if (configuration) {
|
|
18565
|
+
baseOptions = configuration.baseOptions;
|
|
18566
|
+
}
|
|
18567
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
18568
|
+
const localVarHeaderParameter = {};
|
|
18569
|
+
const localVarQueryParameter = {};
|
|
18570
|
+
// authentication bearerAuth required
|
|
18571
|
+
// http bearer authentication required
|
|
18572
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
18573
|
+
// authentication domainAuth required
|
|
18574
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18575
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18576
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
18577
|
+
return {
|
|
18578
|
+
url: toPathString(localVarUrlObj),
|
|
18579
|
+
options: localVarRequestOptions,
|
|
18580
|
+
};
|
|
18581
|
+
},
|
|
18582
|
+
};
|
|
18583
|
+
};
|
|
18584
|
+
/**
|
|
18585
|
+
* PlayerPortalApi - functional programming interface
|
|
18586
|
+
* @export
|
|
18587
|
+
*/
|
|
18588
|
+
export const PlayerPortalApiFp = function (configuration) {
|
|
18589
|
+
const localVarAxiosParamCreator = PlayerPortalApiAxiosParamCreator(configuration);
|
|
18590
|
+
return {
|
|
18591
|
+
/**
|
|
18592
|
+
* Dismisses the signed-in User\'s pending notice that another account\'s link replaced theirs, and returns the Player Portal state. Idempotent. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerDismissDisplacedNotice`
|
|
18593
|
+
* @summary Dismiss the displaced notice
|
|
18594
|
+
* @param {string} domainId
|
|
18595
|
+
* @param {*} [options] Override http request option.
|
|
18596
|
+
* @throws {RequiredError}
|
|
18597
|
+
*/
|
|
18598
|
+
async playerPortalControllerDismissDisplacedNotice(domainId, options) {
|
|
18599
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerDismissDisplacedNotice(domainId, options);
|
|
18600
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18601
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerDismissDisplacedNotice']?.[localVarOperationServerIndex]?.url;
|
|
18602
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18603
|
+
},
|
|
18604
|
+
/**
|
|
18605
|
+
* Signs the current Identity into the Player Portal of the Domain in the path and returns the Portal state. When the Identity has no User in that Domain, an unlinked Player User is created: it is not a dashboard user, is not billed and does not inherit the `User` role. Idempotent. Never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerEnter`
|
|
18606
|
+
* @summary Enter a Domain\'s Player Portal
|
|
18607
|
+
* @param {string} domainId
|
|
18608
|
+
* @param {*} [options] Override http request option.
|
|
18609
|
+
* @throws {RequiredError}
|
|
18610
|
+
*/
|
|
18611
|
+
async playerPortalControllerEnter(domainId, options) {
|
|
18612
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerEnter(domainId, options);
|
|
18613
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18614
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerEnter']?.[localVarOperationServerIndex]?.url;
|
|
18615
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18616
|
+
},
|
|
18617
|
+
/**
|
|
18618
|
+
* Whether a Link Code from `/link` in game is valid, expired or invalid in the Domain in the path. A valid code names its Player and the seconds until it expires. Another Domain\'s codes read as invalid. Signed-in Player Portal only; rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerInspectLinkCode`
|
|
18619
|
+
* @summary Inspect a game-issued Link Code
|
|
18620
|
+
* @param {string} domainId
|
|
18621
|
+
* @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
|
|
18622
|
+
* @param {*} [options] Override http request option.
|
|
18623
|
+
* @throws {RequiredError}
|
|
18624
|
+
*/
|
|
18625
|
+
async playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
|
|
18626
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options);
|
|
18627
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18628
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerInspectLinkCode']?.[localVarOperationServerIndex]
|
|
18629
|
+
?.url;
|
|
18630
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18631
|
+
},
|
|
18632
|
+
/**
|
|
18633
|
+
* Returns the signed-in User\'s live Portal-issued Link Code, minting one when there is none; `renew: true` replaces it. Signed-in Player Portal only; one live code per User. The code is 6 digits, valid for 10 minutes, unique within the Domain and works once. Typing `/link <code>` in game links the speaking Player to this User (source `web-code`), replacing an existing link on either side (`player-unlinked`, reason `displaced`). Never reads or sets the `takaro-domain` cookie, and refuses API keys. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerIssuePortalLinkCode`
|
|
18634
|
+
* @summary Get a Link Code to type in game
|
|
18635
|
+
* @param {string} domainId
|
|
18636
|
+
* @param {PlayerPortalIssueLinkCodeInputDTO} [playerPortalIssueLinkCodeInputDTO] PlayerPortalIssueLinkCodeInputDTO
|
|
18637
|
+
* @param {*} [options] Override http request option.
|
|
18638
|
+
* @throws {RequiredError}
|
|
18639
|
+
*/
|
|
18640
|
+
async playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options) {
|
|
18641
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options);
|
|
18642
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18643
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerIssuePortalLinkCode']?.[localVarOperationServerIndex]
|
|
18644
|
+
?.url;
|
|
18645
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18646
|
+
},
|
|
18647
|
+
/**
|
|
18648
|
+
* Links the code\'s Player to the signed-in User and returns the Player Portal state. Takes no email and creates no account. The code works once. An existing link on either side is replaced, emitting `player-unlinked` (reason `displaced`) and then `player-linked` (source `game-code`). Never reads or sets the `takaro-domain` cookie. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerRedeemLinkCode`
|
|
18649
|
+
* @summary Redeem a game-issued Link Code
|
|
18650
|
+
* @param {string} domainId
|
|
18651
|
+
* @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
|
|
18652
|
+
* @param {*} [options] Override http request option.
|
|
18653
|
+
* @throws {RequiredError}
|
|
18654
|
+
*/
|
|
18655
|
+
async playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
|
|
18656
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options);
|
|
18657
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18658
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerRedeemLinkCode']?.[localVarOperationServerIndex]?.url;
|
|
18659
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18660
|
+
},
|
|
18661
|
+
/**
|
|
18662
|
+
* Public, for old `/link?code=` URLs: returns the Player Portal URL of the Domain a valid or recently expired Link Code belongs to, and nothing else. 404 for an unknown code. Rate-limited per client IP.<br> OperationId: `PlayerPortalControllerResolveLinkCode`
|
|
18663
|
+
* @summary Find a game-issued Link Code\'s Player Portal
|
|
18664
|
+
* @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
|
|
18665
|
+
* @param {*} [options] Override http request option.
|
|
18666
|
+
* @throws {RequiredError}
|
|
18667
|
+
*/
|
|
18668
|
+
async playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options) {
|
|
18669
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options);
|
|
18670
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18671
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerResolveLinkCode']?.[localVarOperationServerIndex]
|
|
18672
|
+
?.url;
|
|
18673
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18674
|
+
},
|
|
18675
|
+
/**
|
|
18676
|
+
* The Player Portal state of the Domain in the path for the current Identity. 404 until the Identity has entered the Portal (`POST /player-portal/{domainId}/enter`). Never reads or sets the `takaro-domain` cookie.<br> OperationId: `PlayerPortalControllerState`
|
|
18677
|
+
* @summary Get a Domain\'s Player Portal state
|
|
18678
|
+
* @param {string} domainId
|
|
18679
|
+
* @param {*} [options] Override http request option.
|
|
18680
|
+
* @throws {RequiredError}
|
|
18681
|
+
*/
|
|
18682
|
+
async playerPortalControllerState(domainId, options) {
|
|
18683
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerState(domainId, options);
|
|
18684
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18685
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerState']?.[localVarOperationServerIndex]?.url;
|
|
18686
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18687
|
+
},
|
|
18688
|
+
/**
|
|
18689
|
+
* Ends the signed-in User\'s own Player-User Link to the Player in the path and returns the Player Portal state. Both the Player and the User are kept. Emits `player-unlinked` (reason `self`). Steam sign-in will not link this Player to this User again until a Link Code or an admin links them. Unlinking a Player you are not linked to changes nothing; 400 when you are linked to a different Player. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerUnlinkSelf`
|
|
18690
|
+
* @summary Unlink your own Player
|
|
18691
|
+
* @param {string} domainId
|
|
18692
|
+
* @param {string} playerId
|
|
18693
|
+
* @param {*} [options] Override http request option.
|
|
18694
|
+
* @throws {RequiredError}
|
|
18695
|
+
*/
|
|
18696
|
+
async playerPortalControllerUnlinkSelf(domainId, playerId, options) {
|
|
18697
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.playerPortalControllerUnlinkSelf(domainId, playerId, options);
|
|
18698
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
18699
|
+
const localVarOperationServerBasePath = operationServerMap['PlayerPortalApi.playerPortalControllerUnlinkSelf']?.[localVarOperationServerIndex]?.url;
|
|
18700
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
18701
|
+
},
|
|
18702
|
+
};
|
|
18703
|
+
};
|
|
18704
|
+
/**
|
|
18705
|
+
* PlayerPortalApi - factory interface
|
|
18706
|
+
* @export
|
|
18707
|
+
*/
|
|
18708
|
+
export const PlayerPortalApiFactory = function (configuration, basePath, axios) {
|
|
18709
|
+
const localVarFp = PlayerPortalApiFp(configuration);
|
|
18710
|
+
return {
|
|
18711
|
+
/**
|
|
18712
|
+
* Dismisses the signed-in User\'s pending notice that another account\'s link replaced theirs, and returns the Player Portal state. Idempotent. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerDismissDisplacedNotice`
|
|
18713
|
+
* @summary Dismiss the displaced notice
|
|
18714
|
+
* @param {string} domainId
|
|
18715
|
+
* @param {*} [options] Override http request option.
|
|
18716
|
+
* @throws {RequiredError}
|
|
18717
|
+
*/
|
|
18718
|
+
playerPortalControllerDismissDisplacedNotice(domainId, options) {
|
|
18719
|
+
return localVarFp
|
|
18720
|
+
.playerPortalControllerDismissDisplacedNotice(domainId, options)
|
|
18721
|
+
.then((request) => request(axios, basePath));
|
|
18722
|
+
},
|
|
18723
|
+
/**
|
|
18724
|
+
* Signs the current Identity into the Player Portal of the Domain in the path and returns the Portal state. When the Identity has no User in that Domain, an unlinked Player User is created: it is not a dashboard user, is not billed and does not inherit the `User` role. Idempotent. Never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerEnter`
|
|
18725
|
+
* @summary Enter a Domain\'s Player Portal
|
|
18726
|
+
* @param {string} domainId
|
|
18727
|
+
* @param {*} [options] Override http request option.
|
|
18728
|
+
* @throws {RequiredError}
|
|
18729
|
+
*/
|
|
18730
|
+
playerPortalControllerEnter(domainId, options) {
|
|
18731
|
+
return localVarFp.playerPortalControllerEnter(domainId, options).then((request) => request(axios, basePath));
|
|
18732
|
+
},
|
|
18733
|
+
/**
|
|
18734
|
+
* Whether a Link Code from `/link` in game is valid, expired or invalid in the Domain in the path. A valid code names its Player and the seconds until it expires. Another Domain\'s codes read as invalid. Signed-in Player Portal only; rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerInspectLinkCode`
|
|
18735
|
+
* @summary Inspect a game-issued Link Code
|
|
18736
|
+
* @param {string} domainId
|
|
18737
|
+
* @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
|
|
18738
|
+
* @param {*} [options] Override http request option.
|
|
18739
|
+
* @throws {RequiredError}
|
|
18740
|
+
*/
|
|
18741
|
+
playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
|
|
18742
|
+
return localVarFp
|
|
18743
|
+
.playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options)
|
|
18744
|
+
.then((request) => request(axios, basePath));
|
|
18745
|
+
},
|
|
18746
|
+
/**
|
|
18747
|
+
* Returns the signed-in User\'s live Portal-issued Link Code, minting one when there is none; `renew: true` replaces it. Signed-in Player Portal only; one live code per User. The code is 6 digits, valid for 10 minutes, unique within the Domain and works once. Typing `/link <code>` in game links the speaking Player to this User (source `web-code`), replacing an existing link on either side (`player-unlinked`, reason `displaced`). Never reads or sets the `takaro-domain` cookie, and refuses API keys. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerIssuePortalLinkCode`
|
|
18748
|
+
* @summary Get a Link Code to type in game
|
|
18749
|
+
* @param {string} domainId
|
|
18750
|
+
* @param {PlayerPortalIssueLinkCodeInputDTO} [playerPortalIssueLinkCodeInputDTO] PlayerPortalIssueLinkCodeInputDTO
|
|
18751
|
+
* @param {*} [options] Override http request option.
|
|
18752
|
+
* @throws {RequiredError}
|
|
18753
|
+
*/
|
|
18754
|
+
playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options) {
|
|
18755
|
+
return localVarFp
|
|
18756
|
+
.playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options)
|
|
18757
|
+
.then((request) => request(axios, basePath));
|
|
18758
|
+
},
|
|
18759
|
+
/**
|
|
18760
|
+
* Links the code\'s Player to the signed-in User and returns the Player Portal state. Takes no email and creates no account. The code works once. An existing link on either side is replaced, emitting `player-unlinked` (reason `displaced`) and then `player-linked` (source `game-code`). Never reads or sets the `takaro-domain` cookie. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerRedeemLinkCode`
|
|
18761
|
+
* @summary Redeem a game-issued Link Code
|
|
18762
|
+
* @param {string} domainId
|
|
18763
|
+
* @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
|
|
18764
|
+
* @param {*} [options] Override http request option.
|
|
18765
|
+
* @throws {RequiredError}
|
|
18766
|
+
*/
|
|
18767
|
+
playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
|
|
18768
|
+
return localVarFp
|
|
18769
|
+
.playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options)
|
|
18770
|
+
.then((request) => request(axios, basePath));
|
|
18771
|
+
},
|
|
18772
|
+
/**
|
|
18773
|
+
* Public, for old `/link?code=` URLs: returns the Player Portal URL of the Domain a valid or recently expired Link Code belongs to, and nothing else. 404 for an unknown code. Rate-limited per client IP.<br> OperationId: `PlayerPortalControllerResolveLinkCode`
|
|
18774
|
+
* @summary Find a game-issued Link Code\'s Player Portal
|
|
18775
|
+
* @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
|
|
18776
|
+
* @param {*} [options] Override http request option.
|
|
18777
|
+
* @throws {RequiredError}
|
|
18778
|
+
*/
|
|
18779
|
+
playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options) {
|
|
18780
|
+
return localVarFp
|
|
18781
|
+
.playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options)
|
|
18782
|
+
.then((request) => request(axios, basePath));
|
|
18783
|
+
},
|
|
18784
|
+
/**
|
|
18785
|
+
* The Player Portal state of the Domain in the path for the current Identity. 404 until the Identity has entered the Portal (`POST /player-portal/{domainId}/enter`). Never reads or sets the `takaro-domain` cookie.<br> OperationId: `PlayerPortalControllerState`
|
|
18786
|
+
* @summary Get a Domain\'s Player Portal state
|
|
18787
|
+
* @param {string} domainId
|
|
18788
|
+
* @param {*} [options] Override http request option.
|
|
18789
|
+
* @throws {RequiredError}
|
|
18790
|
+
*/
|
|
18791
|
+
playerPortalControllerState(domainId, options) {
|
|
18792
|
+
return localVarFp.playerPortalControllerState(domainId, options).then((request) => request(axios, basePath));
|
|
18793
|
+
},
|
|
18794
|
+
/**
|
|
18795
|
+
* Ends the signed-in User\'s own Player-User Link to the Player in the path and returns the Player Portal state. Both the Player and the User are kept. Emits `player-unlinked` (reason `self`). Steam sign-in will not link this Player to this User again until a Link Code or an admin links them. Unlinking a Player you are not linked to changes nothing; 400 when you are linked to a different Player. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerUnlinkSelf`
|
|
18796
|
+
* @summary Unlink your own Player
|
|
18797
|
+
* @param {string} domainId
|
|
18798
|
+
* @param {string} playerId
|
|
18799
|
+
* @param {*} [options] Override http request option.
|
|
18800
|
+
* @throws {RequiredError}
|
|
18801
|
+
*/
|
|
18802
|
+
playerPortalControllerUnlinkSelf(domainId, playerId, options) {
|
|
18803
|
+
return localVarFp
|
|
18804
|
+
.playerPortalControllerUnlinkSelf(domainId, playerId, options)
|
|
18805
|
+
.then((request) => request(axios, basePath));
|
|
18806
|
+
},
|
|
18807
|
+
};
|
|
18808
|
+
};
|
|
18809
|
+
/**
|
|
18810
|
+
* PlayerPortalApi - object-oriented interface
|
|
18811
|
+
* @export
|
|
18812
|
+
* @class PlayerPortalApi
|
|
18813
|
+
* @extends {BaseAPI}
|
|
18814
|
+
*/
|
|
18815
|
+
export class PlayerPortalApi extends BaseAPI {
|
|
18816
|
+
/**
|
|
18817
|
+
* Dismisses the signed-in User\'s pending notice that another account\'s link replaced theirs, and returns the Player Portal state. Idempotent. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerDismissDisplacedNotice`
|
|
18818
|
+
* @summary Dismiss the displaced notice
|
|
18819
|
+
* @param {string} domainId
|
|
18820
|
+
* @param {*} [options] Override http request option.
|
|
18821
|
+
* @throws {RequiredError}
|
|
18822
|
+
* @memberof PlayerPortalApi
|
|
18823
|
+
*/
|
|
18824
|
+
playerPortalControllerDismissDisplacedNotice(domainId, options) {
|
|
18825
|
+
return PlayerPortalApiFp(this.configuration)
|
|
18826
|
+
.playerPortalControllerDismissDisplacedNotice(domainId, options)
|
|
18827
|
+
.then((request) => request(this.axios, this.basePath));
|
|
18828
|
+
}
|
|
18829
|
+
/**
|
|
18830
|
+
* Signs the current Identity into the Player Portal of the Domain in the path and returns the Portal state. When the Identity has no User in that Domain, an unlinked Player User is created: it is not a dashboard user, is not billed and does not inherit the `User` role. Idempotent. Never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerEnter`
|
|
18831
|
+
* @summary Enter a Domain\'s Player Portal
|
|
18832
|
+
* @param {string} domainId
|
|
18833
|
+
* @param {*} [options] Override http request option.
|
|
18834
|
+
* @throws {RequiredError}
|
|
18835
|
+
* @memberof PlayerPortalApi
|
|
18836
|
+
*/
|
|
18837
|
+
playerPortalControllerEnter(domainId, options) {
|
|
18838
|
+
return PlayerPortalApiFp(this.configuration)
|
|
18839
|
+
.playerPortalControllerEnter(domainId, options)
|
|
18840
|
+
.then((request) => request(this.axios, this.basePath));
|
|
18841
|
+
}
|
|
18842
|
+
/**
|
|
18843
|
+
* Whether a Link Code from `/link` in game is valid, expired or invalid in the Domain in the path. A valid code names its Player and the seconds until it expires. Another Domain\'s codes read as invalid. Signed-in Player Portal only; rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerInspectLinkCode`
|
|
18844
|
+
* @summary Inspect a game-issued Link Code
|
|
18845
|
+
* @param {string} domainId
|
|
18846
|
+
* @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
|
|
18847
|
+
* @param {*} [options] Override http request option.
|
|
18848
|
+
* @throws {RequiredError}
|
|
18849
|
+
* @memberof PlayerPortalApi
|
|
18850
|
+
*/
|
|
18851
|
+
playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
|
|
18852
|
+
return PlayerPortalApiFp(this.configuration)
|
|
18853
|
+
.playerPortalControllerInspectLinkCode(domainId, playerPortalLinkCodeInputDTO, options)
|
|
18854
|
+
.then((request) => request(this.axios, this.basePath));
|
|
18855
|
+
}
|
|
18856
|
+
/**
|
|
18857
|
+
* Returns the signed-in User\'s live Portal-issued Link Code, minting one when there is none; `renew: true` replaces it. Signed-in Player Portal only; one live code per User. The code is 6 digits, valid for 10 minutes, unique within the Domain and works once. Typing `/link <code>` in game links the speaking Player to this User (source `web-code`), replacing an existing link on either side (`player-unlinked`, reason `displaced`). Never reads or sets the `takaro-domain` cookie, and refuses API keys. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerIssuePortalLinkCode`
|
|
18858
|
+
* @summary Get a Link Code to type in game
|
|
18859
|
+
* @param {string} domainId
|
|
18860
|
+
* @param {PlayerPortalIssueLinkCodeInputDTO} [playerPortalIssueLinkCodeInputDTO] PlayerPortalIssueLinkCodeInputDTO
|
|
18861
|
+
* @param {*} [options] Override http request option.
|
|
18862
|
+
* @throws {RequiredError}
|
|
18863
|
+
* @memberof PlayerPortalApi
|
|
18864
|
+
*/
|
|
18865
|
+
playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options) {
|
|
18866
|
+
return PlayerPortalApiFp(this.configuration)
|
|
18867
|
+
.playerPortalControllerIssuePortalLinkCode(domainId, playerPortalIssueLinkCodeInputDTO, options)
|
|
18868
|
+
.then((request) => request(this.axios, this.basePath));
|
|
18869
|
+
}
|
|
18870
|
+
/**
|
|
18871
|
+
* Links the code\'s Player to the signed-in User and returns the Player Portal state. Takes no email and creates no account. The code works once. An existing link on either side is replaced, emitting `player-unlinked` (reason `displaced`) and then `player-linked` (source `game-code`). Never reads or sets the `takaro-domain` cookie. Rate-limited per User and per client IP.<br> OperationId: `PlayerPortalControllerRedeemLinkCode`
|
|
18872
|
+
* @summary Redeem a game-issued Link Code
|
|
18873
|
+
* @param {string} domainId
|
|
18874
|
+
* @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
|
|
18875
|
+
* @param {*} [options] Override http request option.
|
|
18876
|
+
* @throws {RequiredError}
|
|
18877
|
+
* @memberof PlayerPortalApi
|
|
18878
|
+
*/
|
|
18879
|
+
playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options) {
|
|
18880
|
+
return PlayerPortalApiFp(this.configuration)
|
|
18881
|
+
.playerPortalControllerRedeemLinkCode(domainId, playerPortalLinkCodeInputDTO, options)
|
|
18882
|
+
.then((request) => request(this.axios, this.basePath));
|
|
18883
|
+
}
|
|
18884
|
+
/**
|
|
18885
|
+
* Public, for old `/link?code=` URLs: returns the Player Portal URL of the Domain a valid or recently expired Link Code belongs to, and nothing else. 404 for an unknown code. Rate-limited per client IP.<br> OperationId: `PlayerPortalControllerResolveLinkCode`
|
|
18886
|
+
* @summary Find a game-issued Link Code\'s Player Portal
|
|
18887
|
+
* @param {PlayerPortalLinkCodeInputDTO} [playerPortalLinkCodeInputDTO] PlayerPortalLinkCodeInputDTO
|
|
18888
|
+
* @param {*} [options] Override http request option.
|
|
18889
|
+
* @throws {RequiredError}
|
|
18890
|
+
* @memberof PlayerPortalApi
|
|
18891
|
+
*/
|
|
18892
|
+
playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options) {
|
|
18893
|
+
return PlayerPortalApiFp(this.configuration)
|
|
18894
|
+
.playerPortalControllerResolveLinkCode(playerPortalLinkCodeInputDTO, options)
|
|
18895
|
+
.then((request) => request(this.axios, this.basePath));
|
|
18896
|
+
}
|
|
18897
|
+
/**
|
|
18898
|
+
* The Player Portal state of the Domain in the path for the current Identity. 404 until the Identity has entered the Portal (`POST /player-portal/{domainId}/enter`). Never reads or sets the `takaro-domain` cookie.<br> OperationId: `PlayerPortalControllerState`
|
|
18899
|
+
* @summary Get a Domain\'s Player Portal state
|
|
18900
|
+
* @param {string} domainId
|
|
18901
|
+
* @param {*} [options] Override http request option.
|
|
18902
|
+
* @throws {RequiredError}
|
|
18903
|
+
* @memberof PlayerPortalApi
|
|
18904
|
+
*/
|
|
18905
|
+
playerPortalControllerState(domainId, options) {
|
|
18906
|
+
return PlayerPortalApiFp(this.configuration)
|
|
18907
|
+
.playerPortalControllerState(domainId, options)
|
|
18908
|
+
.then((request) => request(this.axios, this.basePath));
|
|
18909
|
+
}
|
|
18910
|
+
/**
|
|
18911
|
+
* Ends the signed-in User\'s own Player-User Link to the Player in the path and returns the Player Portal state. Both the Player and the User are kept. Emits `player-unlinked` (reason `self`). Steam sign-in will not link this Player to this User again until a Link Code or an admin links them. Unlinking a Player you are not linked to changes nothing; 400 when you are linked to a different Player. Signed-in Player Portal only; never reads or sets the `takaro-domain` cookie, and refuses API keys.<br> OperationId: `PlayerPortalControllerUnlinkSelf`
|
|
18912
|
+
* @summary Unlink your own Player
|
|
18913
|
+
* @param {string} domainId
|
|
18914
|
+
* @param {string} playerId
|
|
18915
|
+
* @param {*} [options] Override http request option.
|
|
18916
|
+
* @throws {RequiredError}
|
|
18917
|
+
* @memberof PlayerPortalApi
|
|
18918
|
+
*/
|
|
18919
|
+
playerPortalControllerUnlinkSelf(domainId, playerId, options) {
|
|
18920
|
+
return PlayerPortalApiFp(this.configuration)
|
|
18921
|
+
.playerPortalControllerUnlinkSelf(domainId, playerId, options)
|
|
18922
|
+
.then((request) => request(this.axios, this.basePath));
|
|
18923
|
+
}
|
|
18924
|
+
}
|
|
18925
|
+
/**
|
|
18926
|
+
* RegistryApi - axios parameter creator
|
|
18927
|
+
* @export
|
|
18928
|
+
*/
|
|
18929
|
+
export const RegistryApiAxiosParamCreator = function (configuration) {
|
|
18930
|
+
return {
|
|
18931
|
+
/**
|
|
18932
|
+
* Fetch a specific module version from the registry and install it into the domain Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerInstall`
|
|
18933
|
+
* @summary Install a module from a registry
|
|
18934
|
+
* @param {string} id
|
|
18935
|
+
* @param {RegistryInstallBody} [registryInstallBody] RegistryInstallBody
|
|
18936
|
+
* @param {*} [options] Override http request option.
|
|
18937
|
+
* @throws {RequiredError}
|
|
18938
|
+
*/
|
|
18939
|
+
registryControllerInstall: async (id, registryInstallBody, options = {}) => {
|
|
18940
|
+
// verify required parameter 'id' is not null or undefined
|
|
18941
|
+
assertParamExists('registryControllerInstall', 'id', id);
|
|
18942
|
+
const localVarPath = `/registry/{id}/install`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
18943
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18944
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18945
|
+
let baseOptions;
|
|
18946
|
+
if (configuration) {
|
|
18947
|
+
baseOptions = configuration.baseOptions;
|
|
18948
|
+
}
|
|
18949
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
18950
|
+
const localVarHeaderParameter = {};
|
|
18951
|
+
const localVarQueryParameter = {};
|
|
18952
|
+
// authentication bearerAuth required
|
|
18953
|
+
// http bearer authentication required
|
|
18954
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
18955
|
+
// authentication domainAuth required
|
|
18956
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
18957
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18958
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18959
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
18960
|
+
localVarRequestOptions.data = serializeDataIfNeeded(registryInstallBody, localVarRequestOptions, configuration);
|
|
18961
|
+
return {
|
|
18962
|
+
url: toPathString(localVarUrlObj),
|
|
18963
|
+
options: localVarRequestOptions,
|
|
18964
|
+
};
|
|
18965
|
+
},
|
|
18966
|
+
/**
|
|
18967
|
+
* List all subscribed registries with their cached module manifests Required permissions: `READ_MODULES`<br> OperationId: `RegistryControllerList`
|
|
18968
|
+
* @summary List subscribed registries
|
|
18969
|
+
* @param {*} [options] Override http request option.
|
|
18970
|
+
* @throws {RequiredError}
|
|
18971
|
+
*/
|
|
18972
|
+
registryControllerList: async (options = {}) => {
|
|
18973
|
+
const localVarPath = `/registry`;
|
|
18974
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
18975
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
18976
|
+
let baseOptions;
|
|
18977
|
+
if (configuration) {
|
|
18978
|
+
baseOptions = configuration.baseOptions;
|
|
18979
|
+
}
|
|
18980
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
18981
|
+
const localVarHeaderParameter = {};
|
|
18982
|
+
const localVarQueryParameter = {};
|
|
18983
|
+
// authentication bearerAuth required
|
|
18984
|
+
// http bearer authentication required
|
|
18985
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
18986
|
+
// authentication domainAuth required
|
|
18987
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
18988
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
18989
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
18990
|
+
return {
|
|
18991
|
+
url: toPathString(localVarUrlObj),
|
|
18992
|
+
options: localVarRequestOptions,
|
|
18993
|
+
};
|
|
18994
|
+
},
|
|
18995
|
+
/**
|
|
18996
|
+
* Bust the manifest cache and re-fetch from the registry URL. Requires MANAGE_MODULES permission. Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerRefresh`
|
|
18997
|
+
* @summary Refresh registry manifest
|
|
18998
|
+
* @param {string} id
|
|
18999
|
+
* @param {*} [options] Override http request option.
|
|
19000
|
+
* @throws {RequiredError}
|
|
19001
|
+
*/
|
|
19002
|
+
registryControllerRefresh: async (id, options = {}) => {
|
|
19003
|
+
// verify required parameter 'id' is not null or undefined
|
|
19004
|
+
assertParamExists('registryControllerRefresh', 'id', id);
|
|
19005
|
+
const localVarPath = `/registry/{id}/refresh`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
19006
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19007
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19008
|
+
let baseOptions;
|
|
19009
|
+
if (configuration) {
|
|
19010
|
+
baseOptions = configuration.baseOptions;
|
|
19011
|
+
}
|
|
19012
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
19013
|
+
const localVarHeaderParameter = {};
|
|
19014
|
+
const localVarQueryParameter = {};
|
|
19015
|
+
// authentication bearerAuth required
|
|
19016
|
+
// http bearer authentication required
|
|
19017
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
19018
|
+
// authentication domainAuth required
|
|
19019
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19020
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19021
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
19022
|
+
return {
|
|
19023
|
+
url: toPathString(localVarUrlObj),
|
|
19024
|
+
options: localVarRequestOptions,
|
|
19025
|
+
};
|
|
19026
|
+
},
|
|
19027
|
+
/**
|
|
19028
|
+
* Subscribe to a module registry by URL. The URL must serve a valid registry.json manifest. Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerSubscribe`
|
|
19029
|
+
* @summary Subscribe to a registry
|
|
19030
|
+
* @param {RegistrySubscribeBody} [registrySubscribeBody] RegistrySubscribeBody
|
|
19031
|
+
* @param {*} [options] Override http request option.
|
|
19032
|
+
* @throws {RequiredError}
|
|
19033
|
+
*/
|
|
19034
|
+
registryControllerSubscribe: async (registrySubscribeBody, options = {}) => {
|
|
19035
|
+
const localVarPath = `/registry`;
|
|
19036
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19037
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19038
|
+
let baseOptions;
|
|
19039
|
+
if (configuration) {
|
|
19040
|
+
baseOptions = configuration.baseOptions;
|
|
19041
|
+
}
|
|
19042
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
19043
|
+
const localVarHeaderParameter = {};
|
|
19044
|
+
const localVarQueryParameter = {};
|
|
19045
|
+
// authentication bearerAuth required
|
|
19046
|
+
// http bearer authentication required
|
|
19047
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
19048
|
+
// authentication domainAuth required
|
|
19049
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19050
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19051
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19052
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
19053
|
+
localVarRequestOptions.data = serializeDataIfNeeded(registrySubscribeBody, localVarRequestOptions, configuration);
|
|
19054
|
+
return {
|
|
19055
|
+
url: toPathString(localVarUrlObj),
|
|
19056
|
+
options: localVarRequestOptions,
|
|
19057
|
+
};
|
|
19058
|
+
},
|
|
19059
|
+
/**
|
|
19060
|
+
* Unsubscribe from a registry. Installed modules from this registry will be orphaned (registry_id set to null). Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerUnsubscribe`
|
|
19061
|
+
* @summary Unsubscribe from a registry
|
|
19062
|
+
* @param {string} id
|
|
19063
|
+
* @param {*} [options] Override http request option.
|
|
19064
|
+
* @throws {RequiredError}
|
|
19065
|
+
*/
|
|
19066
|
+
registryControllerUnsubscribe: async (id, options = {}) => {
|
|
19067
|
+
// verify required parameter 'id' is not null or undefined
|
|
19068
|
+
assertParamExists('registryControllerUnsubscribe', 'id', id);
|
|
19069
|
+
const localVarPath = `/registry/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
19070
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19071
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19072
|
+
let baseOptions;
|
|
19073
|
+
if (configuration) {
|
|
19074
|
+
baseOptions = configuration.baseOptions;
|
|
19075
|
+
}
|
|
19076
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
19077
|
+
const localVarHeaderParameter = {};
|
|
19078
|
+
const localVarQueryParameter = {};
|
|
19079
|
+
// authentication bearerAuth required
|
|
19080
|
+
// http bearer authentication required
|
|
19081
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
19082
|
+
// authentication domainAuth required
|
|
19083
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19084
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19085
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
19086
|
+
return {
|
|
19087
|
+
url: toPathString(localVarUrlObj),
|
|
19088
|
+
options: localVarRequestOptions,
|
|
19089
|
+
};
|
|
19090
|
+
},
|
|
19091
|
+
};
|
|
19092
|
+
};
|
|
19093
|
+
/**
|
|
19094
|
+
* RegistryApi - functional programming interface
|
|
19095
|
+
* @export
|
|
19096
|
+
*/
|
|
19097
|
+
export const RegistryApiFp = function (configuration) {
|
|
19098
|
+
const localVarAxiosParamCreator = RegistryApiAxiosParamCreator(configuration);
|
|
19099
|
+
return {
|
|
19100
|
+
/**
|
|
19101
|
+
* Fetch a specific module version from the registry and install it into the domain Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerInstall`
|
|
19102
|
+
* @summary Install a module from a registry
|
|
19103
|
+
* @param {string} id
|
|
19104
|
+
* @param {RegistryInstallBody} [registryInstallBody] RegistryInstallBody
|
|
19105
|
+
* @param {*} [options] Override http request option.
|
|
19106
|
+
* @throws {RequiredError}
|
|
19107
|
+
*/
|
|
19108
|
+
async registryControllerInstall(id, registryInstallBody, options) {
|
|
19109
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.registryControllerInstall(id, registryInstallBody, options);
|
|
19110
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19111
|
+
const localVarOperationServerBasePath = operationServerMap['RegistryApi.registryControllerInstall']?.[localVarOperationServerIndex]?.url;
|
|
19112
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19113
|
+
},
|
|
19114
|
+
/**
|
|
19115
|
+
* List all subscribed registries with their cached module manifests Required permissions: `READ_MODULES`<br> OperationId: `RegistryControllerList`
|
|
19116
|
+
* @summary List subscribed registries
|
|
19117
|
+
* @param {*} [options] Override http request option.
|
|
19118
|
+
* @throws {RequiredError}
|
|
19119
|
+
*/
|
|
19120
|
+
async registryControllerList(options) {
|
|
19121
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.registryControllerList(options);
|
|
19122
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19123
|
+
const localVarOperationServerBasePath = operationServerMap['RegistryApi.registryControllerList']?.[localVarOperationServerIndex]?.url;
|
|
19124
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19125
|
+
},
|
|
19126
|
+
/**
|
|
19127
|
+
* Bust the manifest cache and re-fetch from the registry URL. Requires MANAGE_MODULES permission. Required permissions: `MANAGE_MODULES`<br> OperationId: `RegistryControllerRefresh`
|
|
19128
|
+
* @summary Refresh registry manifest
|
|
19129
|
+
* @param {string} id
|
|
19130
|
+
* @param {*} [options] Override http request option.
|
|
17637
19131
|
* @throws {RequiredError}
|
|
17638
19132
|
*/
|
|
17639
19133
|
async registryControllerRefresh(id, options) {
|
|
@@ -22300,7 +23794,7 @@ export class ThreadApi extends BaseAPI {
|
|
|
22300
23794
|
export const TrackingApiAxiosParamCreator = function (configuration) {
|
|
22301
23795
|
return {
|
|
22302
23796
|
/**
|
|
22303
|
-
* Find all players within a 3D rectangular volume at a specific time Required permissions: `READ_PLAYERS`<br> OperationId: `TrackingControllerGetBoundingBoxPlayers`
|
|
23797
|
+
* Find all players within a 3D rectangular volume at a specific time Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetBoundingBoxPlayers`
|
|
22304
23798
|
* @summary Get bounding box players
|
|
22305
23799
|
* @param {BoundingBoxSearchInputDTO} [boundingBoxSearchInputDTO] BoundingBoxSearchInputDTO
|
|
22306
23800
|
* @param {*} [options] Override http request option.
|
|
@@ -22332,7 +23826,103 @@ export const TrackingApiAxiosParamCreator = function (configuration) {
|
|
|
22332
23826
|
};
|
|
22333
23827
|
},
|
|
22334
23828
|
/**
|
|
22335
|
-
*
|
|
23829
|
+
* A player\'s inventory on a game server at a moment, reconstructed from their latest inventory snapshot at or before the moment (within 31 days) plus the changes after it. snapshotTime is absent when no snapshot exists, meaning the inventory is not known. At most 1000 items; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetInventoryAt`
|
|
23830
|
+
* @summary Get inventory at
|
|
23831
|
+
* @param {InventoryAtInputDTO} [inventoryAtInputDTO] InventoryAtInputDTO
|
|
23832
|
+
* @param {*} [options] Override http request option.
|
|
23833
|
+
* @throws {RequiredError}
|
|
23834
|
+
*/
|
|
23835
|
+
trackingControllerGetInventoryAt: async (inventoryAtInputDTO, options = {}) => {
|
|
23836
|
+
const localVarPath = `/tracking/inventory/at`;
|
|
23837
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23838
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
23839
|
+
let baseOptions;
|
|
23840
|
+
if (configuration) {
|
|
23841
|
+
baseOptions = configuration.baseOptions;
|
|
23842
|
+
}
|
|
23843
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
23844
|
+
const localVarHeaderParameter = {};
|
|
23845
|
+
const localVarQueryParameter = {};
|
|
23846
|
+
// authentication bearerAuth required
|
|
23847
|
+
// http bearer authentication required
|
|
23848
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
23849
|
+
// authentication domainAuth required
|
|
23850
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
23851
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23852
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23853
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
23854
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inventoryAtInputDTO, localVarRequestOptions, configuration);
|
|
23855
|
+
return {
|
|
23856
|
+
url: toPathString(localVarUrlObj),
|
|
23857
|
+
options: localVarRequestOptions,
|
|
23858
|
+
};
|
|
23859
|
+
},
|
|
23860
|
+
/**
|
|
23861
|
+
* A player\'s inventory changes on a game server in a time range (at most 31 days), in time order, with cause, Position and counterpart where the game reported them. Cause `unknown` marks a correction found by an hourly snapshot. At most 5000 changes; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetInventoryChanges`
|
|
23862
|
+
* @summary Get inventory changes
|
|
23863
|
+
* @param {InventoryChangesInputDTO} [inventoryChangesInputDTO] InventoryChangesInputDTO
|
|
23864
|
+
* @param {*} [options] Override http request option.
|
|
23865
|
+
* @throws {RequiredError}
|
|
23866
|
+
*/
|
|
23867
|
+
trackingControllerGetInventoryChanges: async (inventoryChangesInputDTO, options = {}) => {
|
|
23868
|
+
const localVarPath = `/tracking/inventory/changes`;
|
|
23869
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23870
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
23871
|
+
let baseOptions;
|
|
23872
|
+
if (configuration) {
|
|
23873
|
+
baseOptions = configuration.baseOptions;
|
|
23874
|
+
}
|
|
23875
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
23876
|
+
const localVarHeaderParameter = {};
|
|
23877
|
+
const localVarQueryParameter = {};
|
|
23878
|
+
// authentication bearerAuth required
|
|
23879
|
+
// http bearer authentication required
|
|
23880
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
23881
|
+
// authentication domainAuth required
|
|
23882
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
23883
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23884
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23885
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
23886
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inventoryChangesInputDTO, localVarRequestOptions, configuration);
|
|
23887
|
+
return {
|
|
23888
|
+
url: toPathString(localVarUrlObj),
|
|
23889
|
+
options: localVarRequestOptions,
|
|
23890
|
+
};
|
|
23891
|
+
},
|
|
23892
|
+
/**
|
|
23893
|
+
* Who held an item of a game server during a time range (at most 31 days): per player, the periods they held it, reconstructed from inventory snapshots and changes, plus each gain and loss of the item in time order with cause, Position and counterpart where reported. A period with heldAtStart began before the range; one without end lasted past it. At most 5000 changes; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetItemHolders`
|
|
23894
|
+
* @summary Get item holders
|
|
23895
|
+
* @param {ItemHoldersInputDTO} [itemHoldersInputDTO] ItemHoldersInputDTO
|
|
23896
|
+
* @param {*} [options] Override http request option.
|
|
23897
|
+
* @throws {RequiredError}
|
|
23898
|
+
*/
|
|
23899
|
+
trackingControllerGetItemHolders: async (itemHoldersInputDTO, options = {}) => {
|
|
23900
|
+
const localVarPath = `/tracking/items/holders`;
|
|
23901
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23902
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
23903
|
+
let baseOptions;
|
|
23904
|
+
if (configuration) {
|
|
23905
|
+
baseOptions = configuration.baseOptions;
|
|
23906
|
+
}
|
|
23907
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
23908
|
+
const localVarHeaderParameter = {};
|
|
23909
|
+
const localVarQueryParameter = {};
|
|
23910
|
+
// authentication bearerAuth required
|
|
23911
|
+
// http bearer authentication required
|
|
23912
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
23913
|
+
// authentication domainAuth required
|
|
23914
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
23915
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
23916
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23917
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
23918
|
+
localVarRequestOptions.data = serializeDataIfNeeded(itemHoldersInputDTO, localVarRequestOptions, configuration);
|
|
23919
|
+
return {
|
|
23920
|
+
url: toPathString(localVarUrlObj),
|
|
23921
|
+
options: localVarRequestOptions,
|
|
23922
|
+
};
|
|
23923
|
+
},
|
|
23924
|
+
/**
|
|
23925
|
+
* Get inventory changes for a player between two timestamps Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetPlayerInventoryHistory`
|
|
22336
23926
|
* @summary Get player inventory history
|
|
22337
23927
|
* @param {PlayerInventoryHistoryInputDTO} [playerInventoryHistoryInputDTO] PlayerInventoryHistoryInputDTO
|
|
22338
23928
|
* @param {*} [options] Override http request option.
|
|
@@ -22364,7 +23954,7 @@ export const TrackingApiAxiosParamCreator = function (configuration) {
|
|
|
22364
23954
|
};
|
|
22365
23955
|
},
|
|
22366
23956
|
/**
|
|
22367
|
-
* Get movement history for players within date bounds Required permissions: `READ_PLAYERS`<br> OperationId: `TrackingControllerGetPlayerMovementHistory`
|
|
23957
|
+
* Get movement history for players within date bounds Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetPlayerMovementHistory`
|
|
22368
23958
|
* @summary Get player movement history
|
|
22369
23959
|
* @param {PlayerMovementHistoryInputDTO} [playerMovementHistoryInputDTO] PlayerMovementHistoryInputDTO
|
|
22370
23960
|
* @param {*} [options] Override http request option.
|
|
@@ -22396,14 +23986,206 @@ export const TrackingApiAxiosParamCreator = function (configuration) {
|
|
|
22396
23986
|
};
|
|
22397
23987
|
},
|
|
22398
23988
|
/**
|
|
22399
|
-
* Find all players who have had a specific item in their inventory Required permissions: `READ_PLAYERS`<br> OperationId: `TrackingControllerGetPlayersByItem`
|
|
22400
|
-
* @summary Get players by item
|
|
22401
|
-
* @param {PlayersByItemInputDTO} [playersByItemInputDTO] PlayersByItemInputDTO
|
|
23989
|
+
* Find all players who have had a specific item in their inventory Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetPlayersByItem`
|
|
23990
|
+
* @summary Get players by item
|
|
23991
|
+
* @param {PlayersByItemInputDTO} [playersByItemInputDTO] PlayersByItemInputDTO
|
|
23992
|
+
* @param {*} [options] Override http request option.
|
|
23993
|
+
* @throws {RequiredError}
|
|
23994
|
+
*/
|
|
23995
|
+
trackingControllerGetPlayersByItem: async (playersByItemInputDTO, options = {}) => {
|
|
23996
|
+
const localVarPath = `/tracking/inventory/item`;
|
|
23997
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23998
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
23999
|
+
let baseOptions;
|
|
24000
|
+
if (configuration) {
|
|
24001
|
+
baseOptions = configuration.baseOptions;
|
|
24002
|
+
}
|
|
24003
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
24004
|
+
const localVarHeaderParameter = {};
|
|
24005
|
+
const localVarQueryParameter = {};
|
|
24006
|
+
// authentication bearerAuth required
|
|
24007
|
+
// http bearer authentication required
|
|
24008
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
24009
|
+
// authentication domainAuth required
|
|
24010
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24011
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24012
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24013
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
24014
|
+
localVarRequestOptions.data = serializeDataIfNeeded(playersByItemInputDTO, localVarRequestOptions, configuration);
|
|
24015
|
+
return {
|
|
24016
|
+
url: toPathString(localVarUrlObj),
|
|
24017
|
+
options: localVarRequestOptions,
|
|
24018
|
+
};
|
|
24019
|
+
},
|
|
24020
|
+
/**
|
|
24021
|
+
* The Position samples inside an area, in time order, optionally for chosen players. Same input as the area search, within 31 days. At most 10000 samples; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetPositionAreaSamples`
|
|
24022
|
+
* @summary Get position area samples
|
|
24023
|
+
* @param {PositionAreaInputDTO} [positionAreaInputDTO] PositionAreaInputDTO
|
|
24024
|
+
* @param {*} [options] Override http request option.
|
|
24025
|
+
* @throws {RequiredError}
|
|
24026
|
+
*/
|
|
24027
|
+
trackingControllerGetPositionAreaSamples: async (positionAreaInputDTO, options = {}) => {
|
|
24028
|
+
const localVarPath = `/tracking/positions/area/samples`;
|
|
24029
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24030
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24031
|
+
let baseOptions;
|
|
24032
|
+
if (configuration) {
|
|
24033
|
+
baseOptions = configuration.baseOptions;
|
|
24034
|
+
}
|
|
24035
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
24036
|
+
const localVarHeaderParameter = {};
|
|
24037
|
+
const localVarQueryParameter = {};
|
|
24038
|
+
// authentication bearerAuth required
|
|
24039
|
+
// http bearer authentication required
|
|
24040
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
24041
|
+
// authentication domainAuth required
|
|
24042
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24043
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24044
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24045
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
24046
|
+
localVarRequestOptions.data = serializeDataIfNeeded(positionAreaInputDTO, localVarRequestOptions, configuration);
|
|
24047
|
+
return {
|
|
24048
|
+
url: toPathString(localVarUrlObj),
|
|
24049
|
+
options: localVarRequestOptions,
|
|
24050
|
+
};
|
|
24051
|
+
},
|
|
24052
|
+
/**
|
|
24053
|
+
* Where every player of a game server was at a moment, in one Dimension: each player\'s last Position sample at or before the moment, omitting players with no sample in the two minutes before it. At most 1000 players; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetPositionSnapshot`
|
|
24054
|
+
* @summary Get position snapshot
|
|
24055
|
+
* @param {PositionSnapshotInputDTO} [positionSnapshotInputDTO] PositionSnapshotInputDTO
|
|
24056
|
+
* @param {*} [options] Override http request option.
|
|
24057
|
+
* @throws {RequiredError}
|
|
24058
|
+
*/
|
|
24059
|
+
trackingControllerGetPositionSnapshot: async (positionSnapshotInputDTO, options = {}) => {
|
|
24060
|
+
const localVarPath = `/tracking/positions/snapshot`;
|
|
24061
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24062
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24063
|
+
let baseOptions;
|
|
24064
|
+
if (configuration) {
|
|
24065
|
+
baseOptions = configuration.baseOptions;
|
|
24066
|
+
}
|
|
24067
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
24068
|
+
const localVarHeaderParameter = {};
|
|
24069
|
+
const localVarQueryParameter = {};
|
|
24070
|
+
// authentication bearerAuth required
|
|
24071
|
+
// http bearer authentication required
|
|
24072
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
24073
|
+
// authentication domainAuth required
|
|
24074
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24075
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24076
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24077
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
24078
|
+
localVarRequestOptions.data = serializeDataIfNeeded(positionSnapshotInputDTO, localVarRequestOptions, configuration);
|
|
24079
|
+
return {
|
|
24080
|
+
url: toPathString(localVarUrlObj),
|
|
24081
|
+
options: localVarRequestOptions,
|
|
24082
|
+
};
|
|
24083
|
+
},
|
|
24084
|
+
/**
|
|
24085
|
+
* Position samples per player for a game server, Dimension and time range (at most 31 days), optionally for chosen players. Downsampled on the server: one sample per player per bucket, where bucketMs grows with the range. At most 100000 samples in all; `truncated` is true when whole players were left out to stay within that. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetPositionTracks`
|
|
24086
|
+
* @summary Get position tracks
|
|
24087
|
+
* @param {PositionTracksInputDTO} [positionTracksInputDTO] PositionTracksInputDTO
|
|
24088
|
+
* @param {*} [options] Override http request option.
|
|
24089
|
+
* @throws {RequiredError}
|
|
24090
|
+
*/
|
|
24091
|
+
trackingControllerGetPositionTracks: async (positionTracksInputDTO, options = {}) => {
|
|
24092
|
+
const localVarPath = `/tracking/positions/tracks`;
|
|
24093
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24094
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24095
|
+
let baseOptions;
|
|
24096
|
+
if (configuration) {
|
|
24097
|
+
baseOptions = configuration.baseOptions;
|
|
24098
|
+
}
|
|
24099
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
24100
|
+
const localVarHeaderParameter = {};
|
|
24101
|
+
const localVarQueryParameter = {};
|
|
24102
|
+
// authentication bearerAuth required
|
|
24103
|
+
// http bearer authentication required
|
|
24104
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
24105
|
+
// authentication domainAuth required
|
|
24106
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24107
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24108
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24109
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
24110
|
+
localVarRequestOptions.data = serializeDataIfNeeded(positionTracksInputDTO, localVarRequestOptions, configuration);
|
|
24111
|
+
return {
|
|
24112
|
+
url: toPathString(localVarUrlObj),
|
|
24113
|
+
options: localVarRequestOptions,
|
|
24114
|
+
};
|
|
24115
|
+
},
|
|
24116
|
+
/**
|
|
24117
|
+
* Find all players within a spherical area from a center point Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetRadiusPlayers`
|
|
24118
|
+
* @summary Get radius players
|
|
24119
|
+
* @param {RadiusSearchInputDTO} [radiusSearchInputDTO] RadiusSearchInputDTO
|
|
24120
|
+
* @param {*} [options] Override http request option.
|
|
24121
|
+
* @throws {RequiredError}
|
|
24122
|
+
*/
|
|
24123
|
+
trackingControllerGetRadiusPlayers: async (radiusSearchInputDTO, options = {}) => {
|
|
24124
|
+
const localVarPath = `/tracking/location/radius`;
|
|
24125
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24126
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24127
|
+
let baseOptions;
|
|
24128
|
+
if (configuration) {
|
|
24129
|
+
baseOptions = configuration.baseOptions;
|
|
24130
|
+
}
|
|
24131
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
24132
|
+
const localVarHeaderParameter = {};
|
|
24133
|
+
const localVarQueryParameter = {};
|
|
24134
|
+
// authentication bearerAuth required
|
|
24135
|
+
// http bearer authentication required
|
|
24136
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
24137
|
+
// authentication domainAuth required
|
|
24138
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24139
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24140
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24141
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
24142
|
+
localVarRequestOptions.data = serializeDataIfNeeded(radiusSearchInputDTO, localVarRequestOptions, configuration);
|
|
24143
|
+
return {
|
|
24144
|
+
url: toPathString(localVarUrlObj),
|
|
24145
|
+
options: localVarRequestOptions,
|
|
24146
|
+
};
|
|
24147
|
+
},
|
|
24148
|
+
/**
|
|
24149
|
+
* Inventory gains on a game server during a time range (at most 7 days) by players whose Position at the moment of the gain was inside a shape (circle, rectangle or polygon) in a Dimension, with an optional height range. The Position is the one the game reported with the change, else the player\'s last Position sample at most 2 minutes earlier; `positionSource` says which. In time order, with cause and counterpart where reported. This is evidence, not proof of theft. At most 5000 gains; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerSearchAreaGains`
|
|
24150
|
+
* @summary Search area gains
|
|
24151
|
+
* @param {PositionAreaInputDTO} [positionAreaInputDTO] PositionAreaInputDTO
|
|
24152
|
+
* @param {*} [options] Override http request option.
|
|
24153
|
+
* @throws {RequiredError}
|
|
24154
|
+
*/
|
|
24155
|
+
trackingControllerSearchAreaGains: async (positionAreaInputDTO, options = {}) => {
|
|
24156
|
+
const localVarPath = `/tracking/inventory/area-gains`;
|
|
24157
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24158
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24159
|
+
let baseOptions;
|
|
24160
|
+
if (configuration) {
|
|
24161
|
+
baseOptions = configuration.baseOptions;
|
|
24162
|
+
}
|
|
24163
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
24164
|
+
const localVarHeaderParameter = {};
|
|
24165
|
+
const localVarQueryParameter = {};
|
|
24166
|
+
// authentication bearerAuth required
|
|
24167
|
+
// http bearer authentication required
|
|
24168
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
24169
|
+
// authentication domainAuth required
|
|
24170
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
24171
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24172
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24173
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
24174
|
+
localVarRequestOptions.data = serializeDataIfNeeded(positionAreaInputDTO, localVarRequestOptions, configuration);
|
|
24175
|
+
return {
|
|
24176
|
+
url: toPathString(localVarUrlObj),
|
|
24177
|
+
options: localVarRequestOptions,
|
|
24178
|
+
};
|
|
24179
|
+
},
|
|
24180
|
+
/**
|
|
24181
|
+
* Deaths, kills, connects and disconnects of a game server during a time range (at most 31 days), in time order, each with a Position: the one the game reported with the event, else the player\'s nearest Position sample within 2 minutes before or after (positionSource \'sampled\', approximate), else none. At most 2000 events; truncated is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`, `READ_EVENTS`<br> OperationId: `TrackingControllerSearchEvents`
|
|
24182
|
+
* @summary Search events
|
|
24183
|
+
* @param {TrackingEventsInputDTO} [trackingEventsInputDTO] TrackingEventsInputDTO
|
|
22402
24184
|
* @param {*} [options] Override http request option.
|
|
22403
24185
|
* @throws {RequiredError}
|
|
22404
24186
|
*/
|
|
22405
|
-
|
|
22406
|
-
const localVarPath = `/tracking/
|
|
24187
|
+
trackingControllerSearchEvents: async (trackingEventsInputDTO, options = {}) => {
|
|
24188
|
+
const localVarPath = `/tracking/events`;
|
|
22407
24189
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22408
24190
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22409
24191
|
let baseOptions;
|
|
@@ -22421,21 +24203,21 @@ export const TrackingApiAxiosParamCreator = function (configuration) {
|
|
|
22421
24203
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22422
24204
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22423
24205
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
22424
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
24206
|
+
localVarRequestOptions.data = serializeDataIfNeeded(trackingEventsInputDTO, localVarRequestOptions, configuration);
|
|
22425
24207
|
return {
|
|
22426
24208
|
url: toPathString(localVarUrlObj),
|
|
22427
24209
|
options: localVarRequestOptions,
|
|
22428
24210
|
};
|
|
22429
24211
|
},
|
|
22430
24212
|
/**
|
|
22431
|
-
*
|
|
22432
|
-
* @summary
|
|
22433
|
-
* @param {
|
|
24213
|
+
* Who was inside an area of a game server\'s Dimension during a time range (at most 31 days): per player, first seen, last seen and sample count. The shape (circle, rectangle or polygon) is given in game coordinates on the Dimension\'s two map axes; height (the third axis) is ignored unless minHeight or maxHeight is given. At most 1000 players; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerSearchPositionArea`
|
|
24214
|
+
* @summary Search position area
|
|
24215
|
+
* @param {PositionAreaInputDTO} [positionAreaInputDTO] PositionAreaInputDTO
|
|
22434
24216
|
* @param {*} [options] Override http request option.
|
|
22435
24217
|
* @throws {RequiredError}
|
|
22436
24218
|
*/
|
|
22437
|
-
|
|
22438
|
-
const localVarPath = `/tracking/
|
|
24219
|
+
trackingControllerSearchPositionArea: async (positionAreaInputDTO, options = {}) => {
|
|
24220
|
+
const localVarPath = `/tracking/positions/area`;
|
|
22439
24221
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22440
24222
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22441
24223
|
let baseOptions;
|
|
@@ -22453,7 +24235,7 @@ export const TrackingApiAxiosParamCreator = function (configuration) {
|
|
|
22453
24235
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22454
24236
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22455
24237
|
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
22456
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
24238
|
+
localVarRequestOptions.data = serializeDataIfNeeded(positionAreaInputDTO, localVarRequestOptions, configuration);
|
|
22457
24239
|
return {
|
|
22458
24240
|
url: toPathString(localVarUrlObj),
|
|
22459
24241
|
options: localVarRequestOptions,
|
|
@@ -22469,7 +24251,7 @@ export const TrackingApiFp = function (configuration) {
|
|
|
22469
24251
|
const localVarAxiosParamCreator = TrackingApiAxiosParamCreator(configuration);
|
|
22470
24252
|
return {
|
|
22471
24253
|
/**
|
|
22472
|
-
* Find all players within a 3D rectangular volume at a specific time Required permissions: `READ_PLAYERS`<br> OperationId: `TrackingControllerGetBoundingBoxPlayers`
|
|
24254
|
+
* Find all players within a 3D rectangular volume at a specific time Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetBoundingBoxPlayers`
|
|
22473
24255
|
* @summary Get bounding box players
|
|
22474
24256
|
* @param {BoundingBoxSearchInputDTO} [boundingBoxSearchInputDTO] BoundingBoxSearchInputDTO
|
|
22475
24257
|
* @param {*} [options] Override http request option.
|
|
@@ -22482,7 +24264,46 @@ export const TrackingApiFp = function (configuration) {
|
|
|
22482
24264
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22483
24265
|
},
|
|
22484
24266
|
/**
|
|
22485
|
-
*
|
|
24267
|
+
* A player\'s inventory on a game server at a moment, reconstructed from their latest inventory snapshot at or before the moment (within 31 days) plus the changes after it. snapshotTime is absent when no snapshot exists, meaning the inventory is not known. At most 1000 items; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetInventoryAt`
|
|
24268
|
+
* @summary Get inventory at
|
|
24269
|
+
* @param {InventoryAtInputDTO} [inventoryAtInputDTO] InventoryAtInputDTO
|
|
24270
|
+
* @param {*} [options] Override http request option.
|
|
24271
|
+
* @throws {RequiredError}
|
|
24272
|
+
*/
|
|
24273
|
+
async trackingControllerGetInventoryAt(inventoryAtInputDTO, options) {
|
|
24274
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.trackingControllerGetInventoryAt(inventoryAtInputDTO, options);
|
|
24275
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24276
|
+
const localVarOperationServerBasePath = operationServerMap['TrackingApi.trackingControllerGetInventoryAt']?.[localVarOperationServerIndex]?.url;
|
|
24277
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24278
|
+
},
|
|
24279
|
+
/**
|
|
24280
|
+
* A player\'s inventory changes on a game server in a time range (at most 31 days), in time order, with cause, Position and counterpart where the game reported them. Cause `unknown` marks a correction found by an hourly snapshot. At most 5000 changes; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetInventoryChanges`
|
|
24281
|
+
* @summary Get inventory changes
|
|
24282
|
+
* @param {InventoryChangesInputDTO} [inventoryChangesInputDTO] InventoryChangesInputDTO
|
|
24283
|
+
* @param {*} [options] Override http request option.
|
|
24284
|
+
* @throws {RequiredError}
|
|
24285
|
+
*/
|
|
24286
|
+
async trackingControllerGetInventoryChanges(inventoryChangesInputDTO, options) {
|
|
24287
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.trackingControllerGetInventoryChanges(inventoryChangesInputDTO, options);
|
|
24288
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24289
|
+
const localVarOperationServerBasePath = operationServerMap['TrackingApi.trackingControllerGetInventoryChanges']?.[localVarOperationServerIndex]?.url;
|
|
24290
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24291
|
+
},
|
|
24292
|
+
/**
|
|
24293
|
+
* Who held an item of a game server during a time range (at most 31 days): per player, the periods they held it, reconstructed from inventory snapshots and changes, plus each gain and loss of the item in time order with cause, Position and counterpart where reported. A period with heldAtStart began before the range; one without end lasted past it. At most 5000 changes; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetItemHolders`
|
|
24294
|
+
* @summary Get item holders
|
|
24295
|
+
* @param {ItemHoldersInputDTO} [itemHoldersInputDTO] ItemHoldersInputDTO
|
|
24296
|
+
* @param {*} [options] Override http request option.
|
|
24297
|
+
* @throws {RequiredError}
|
|
24298
|
+
*/
|
|
24299
|
+
async trackingControllerGetItemHolders(itemHoldersInputDTO, options) {
|
|
24300
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.trackingControllerGetItemHolders(itemHoldersInputDTO, options);
|
|
24301
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24302
|
+
const localVarOperationServerBasePath = operationServerMap['TrackingApi.trackingControllerGetItemHolders']?.[localVarOperationServerIndex]?.url;
|
|
24303
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24304
|
+
},
|
|
24305
|
+
/**
|
|
24306
|
+
* Get inventory changes for a player between two timestamps Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetPlayerInventoryHistory`
|
|
22486
24307
|
* @summary Get player inventory history
|
|
22487
24308
|
* @param {PlayerInventoryHistoryInputDTO} [playerInventoryHistoryInputDTO] PlayerInventoryHistoryInputDTO
|
|
22488
24309
|
* @param {*} [options] Override http request option.
|
|
@@ -22496,7 +24317,7 @@ export const TrackingApiFp = function (configuration) {
|
|
|
22496
24317
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22497
24318
|
},
|
|
22498
24319
|
/**
|
|
22499
|
-
* Get movement history for players within date bounds Required permissions: `READ_PLAYERS`<br> OperationId: `TrackingControllerGetPlayerMovementHistory`
|
|
24320
|
+
* Get movement history for players within date bounds Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetPlayerMovementHistory`
|
|
22500
24321
|
* @summary Get player movement history
|
|
22501
24322
|
* @param {PlayerMovementHistoryInputDTO} [playerMovementHistoryInputDTO] PlayerMovementHistoryInputDTO
|
|
22502
24323
|
* @param {*} [options] Override http request option.
|
|
@@ -22510,7 +24331,7 @@ export const TrackingApiFp = function (configuration) {
|
|
|
22510
24331
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22511
24332
|
},
|
|
22512
24333
|
/**
|
|
22513
|
-
* Find all players who have had a specific item in their inventory Required permissions: `READ_PLAYERS`<br> OperationId: `TrackingControllerGetPlayersByItem`
|
|
24334
|
+
* Find all players who have had a specific item in their inventory Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetPlayersByItem`
|
|
22514
24335
|
* @summary Get players by item
|
|
22515
24336
|
* @param {PlayersByItemInputDTO} [playersByItemInputDTO] PlayersByItemInputDTO
|
|
22516
24337
|
* @param {*} [options] Override http request option.
|
|
@@ -22523,7 +24344,46 @@ export const TrackingApiFp = function (configuration) {
|
|
|
22523
24344
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22524
24345
|
},
|
|
22525
24346
|
/**
|
|
22526
|
-
*
|
|
24347
|
+
* The Position samples inside an area, in time order, optionally for chosen players. Same input as the area search, within 31 days. At most 10000 samples; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetPositionAreaSamples`
|
|
24348
|
+
* @summary Get position area samples
|
|
24349
|
+
* @param {PositionAreaInputDTO} [positionAreaInputDTO] PositionAreaInputDTO
|
|
24350
|
+
* @param {*} [options] Override http request option.
|
|
24351
|
+
* @throws {RequiredError}
|
|
24352
|
+
*/
|
|
24353
|
+
async trackingControllerGetPositionAreaSamples(positionAreaInputDTO, options) {
|
|
24354
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.trackingControllerGetPositionAreaSamples(positionAreaInputDTO, options);
|
|
24355
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24356
|
+
const localVarOperationServerBasePath = operationServerMap['TrackingApi.trackingControllerGetPositionAreaSamples']?.[localVarOperationServerIndex]?.url;
|
|
24357
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24358
|
+
},
|
|
24359
|
+
/**
|
|
24360
|
+
* Where every player of a game server was at a moment, in one Dimension: each player\'s last Position sample at or before the moment, omitting players with no sample in the two minutes before it. At most 1000 players; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetPositionSnapshot`
|
|
24361
|
+
* @summary Get position snapshot
|
|
24362
|
+
* @param {PositionSnapshotInputDTO} [positionSnapshotInputDTO] PositionSnapshotInputDTO
|
|
24363
|
+
* @param {*} [options] Override http request option.
|
|
24364
|
+
* @throws {RequiredError}
|
|
24365
|
+
*/
|
|
24366
|
+
async trackingControllerGetPositionSnapshot(positionSnapshotInputDTO, options) {
|
|
24367
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.trackingControllerGetPositionSnapshot(positionSnapshotInputDTO, options);
|
|
24368
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24369
|
+
const localVarOperationServerBasePath = operationServerMap['TrackingApi.trackingControllerGetPositionSnapshot']?.[localVarOperationServerIndex]?.url;
|
|
24370
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24371
|
+
},
|
|
24372
|
+
/**
|
|
24373
|
+
* Position samples per player for a game server, Dimension and time range (at most 31 days), optionally for chosen players. Downsampled on the server: one sample per player per bucket, where bucketMs grows with the range. At most 100000 samples in all; `truncated` is true when whole players were left out to stay within that. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetPositionTracks`
|
|
24374
|
+
* @summary Get position tracks
|
|
24375
|
+
* @param {PositionTracksInputDTO} [positionTracksInputDTO] PositionTracksInputDTO
|
|
24376
|
+
* @param {*} [options] Override http request option.
|
|
24377
|
+
* @throws {RequiredError}
|
|
24378
|
+
*/
|
|
24379
|
+
async trackingControllerGetPositionTracks(positionTracksInputDTO, options) {
|
|
24380
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.trackingControllerGetPositionTracks(positionTracksInputDTO, options);
|
|
24381
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24382
|
+
const localVarOperationServerBasePath = operationServerMap['TrackingApi.trackingControllerGetPositionTracks']?.[localVarOperationServerIndex]?.url;
|
|
24383
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24384
|
+
},
|
|
24385
|
+
/**
|
|
24386
|
+
* Find all players within a spherical area from a center point Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetRadiusPlayers`
|
|
22527
24387
|
* @summary Get radius players
|
|
22528
24388
|
* @param {RadiusSearchInputDTO} [radiusSearchInputDTO] RadiusSearchInputDTO
|
|
22529
24389
|
* @param {*} [options] Override http request option.
|
|
@@ -22535,6 +24395,45 @@ export const TrackingApiFp = function (configuration) {
|
|
|
22535
24395
|
const localVarOperationServerBasePath = operationServerMap['TrackingApi.trackingControllerGetRadiusPlayers']?.[localVarOperationServerIndex]?.url;
|
|
22536
24396
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22537
24397
|
},
|
|
24398
|
+
/**
|
|
24399
|
+
* Inventory gains on a game server during a time range (at most 7 days) by players whose Position at the moment of the gain was inside a shape (circle, rectangle or polygon) in a Dimension, with an optional height range. The Position is the one the game reported with the change, else the player\'s last Position sample at most 2 minutes earlier; `positionSource` says which. In time order, with cause and counterpart where reported. This is evidence, not proof of theft. At most 5000 gains; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerSearchAreaGains`
|
|
24400
|
+
* @summary Search area gains
|
|
24401
|
+
* @param {PositionAreaInputDTO} [positionAreaInputDTO] PositionAreaInputDTO
|
|
24402
|
+
* @param {*} [options] Override http request option.
|
|
24403
|
+
* @throws {RequiredError}
|
|
24404
|
+
*/
|
|
24405
|
+
async trackingControllerSearchAreaGains(positionAreaInputDTO, options) {
|
|
24406
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.trackingControllerSearchAreaGains(positionAreaInputDTO, options);
|
|
24407
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24408
|
+
const localVarOperationServerBasePath = operationServerMap['TrackingApi.trackingControllerSearchAreaGains']?.[localVarOperationServerIndex]?.url;
|
|
24409
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24410
|
+
},
|
|
24411
|
+
/**
|
|
24412
|
+
* Deaths, kills, connects and disconnects of a game server during a time range (at most 31 days), in time order, each with a Position: the one the game reported with the event, else the player\'s nearest Position sample within 2 minutes before or after (positionSource \'sampled\', approximate), else none. At most 2000 events; truncated is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`, `READ_EVENTS`<br> OperationId: `TrackingControllerSearchEvents`
|
|
24413
|
+
* @summary Search events
|
|
24414
|
+
* @param {TrackingEventsInputDTO} [trackingEventsInputDTO] TrackingEventsInputDTO
|
|
24415
|
+
* @param {*} [options] Override http request option.
|
|
24416
|
+
* @throws {RequiredError}
|
|
24417
|
+
*/
|
|
24418
|
+
async trackingControllerSearchEvents(trackingEventsInputDTO, options) {
|
|
24419
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.trackingControllerSearchEvents(trackingEventsInputDTO, options);
|
|
24420
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24421
|
+
const localVarOperationServerBasePath = operationServerMap['TrackingApi.trackingControllerSearchEvents']?.[localVarOperationServerIndex]?.url;
|
|
24422
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24423
|
+
},
|
|
24424
|
+
/**
|
|
24425
|
+
* Who was inside an area of a game server\'s Dimension during a time range (at most 31 days): per player, first seen, last seen and sample count. The shape (circle, rectangle or polygon) is given in game coordinates on the Dimension\'s two map axes; height (the third axis) is ignored unless minHeight or maxHeight is given. At most 1000 players; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerSearchPositionArea`
|
|
24426
|
+
* @summary Search position area
|
|
24427
|
+
* @param {PositionAreaInputDTO} [positionAreaInputDTO] PositionAreaInputDTO
|
|
24428
|
+
* @param {*} [options] Override http request option.
|
|
24429
|
+
* @throws {RequiredError}
|
|
24430
|
+
*/
|
|
24431
|
+
async trackingControllerSearchPositionArea(positionAreaInputDTO, options) {
|
|
24432
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.trackingControllerSearchPositionArea(positionAreaInputDTO, options);
|
|
24433
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
24434
|
+
const localVarOperationServerBasePath = operationServerMap['TrackingApi.trackingControllerSearchPositionArea']?.[localVarOperationServerIndex]?.url;
|
|
24435
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24436
|
+
},
|
|
22538
24437
|
};
|
|
22539
24438
|
};
|
|
22540
24439
|
/**
|
|
@@ -22545,7 +24444,7 @@ export const TrackingApiFactory = function (configuration, basePath, axios) {
|
|
|
22545
24444
|
const localVarFp = TrackingApiFp(configuration);
|
|
22546
24445
|
return {
|
|
22547
24446
|
/**
|
|
22548
|
-
* Find all players within a 3D rectangular volume at a specific time Required permissions: `READ_PLAYERS`<br> OperationId: `TrackingControllerGetBoundingBoxPlayers`
|
|
24447
|
+
* Find all players within a 3D rectangular volume at a specific time Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetBoundingBoxPlayers`
|
|
22549
24448
|
* @summary Get bounding box players
|
|
22550
24449
|
* @param {BoundingBoxSearchInputDTO} [boundingBoxSearchInputDTO] BoundingBoxSearchInputDTO
|
|
22551
24450
|
* @param {*} [options] Override http request option.
|
|
@@ -22557,7 +24456,43 @@ export const TrackingApiFactory = function (configuration, basePath, axios) {
|
|
|
22557
24456
|
.then((request) => request(axios, basePath));
|
|
22558
24457
|
},
|
|
22559
24458
|
/**
|
|
22560
|
-
*
|
|
24459
|
+
* A player\'s inventory on a game server at a moment, reconstructed from their latest inventory snapshot at or before the moment (within 31 days) plus the changes after it. snapshotTime is absent when no snapshot exists, meaning the inventory is not known. At most 1000 items; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetInventoryAt`
|
|
24460
|
+
* @summary Get inventory at
|
|
24461
|
+
* @param {InventoryAtInputDTO} [inventoryAtInputDTO] InventoryAtInputDTO
|
|
24462
|
+
* @param {*} [options] Override http request option.
|
|
24463
|
+
* @throws {RequiredError}
|
|
24464
|
+
*/
|
|
24465
|
+
trackingControllerGetInventoryAt(inventoryAtInputDTO, options) {
|
|
24466
|
+
return localVarFp
|
|
24467
|
+
.trackingControllerGetInventoryAt(inventoryAtInputDTO, options)
|
|
24468
|
+
.then((request) => request(axios, basePath));
|
|
24469
|
+
},
|
|
24470
|
+
/**
|
|
24471
|
+
* A player\'s inventory changes on a game server in a time range (at most 31 days), in time order, with cause, Position and counterpart where the game reported them. Cause `unknown` marks a correction found by an hourly snapshot. At most 5000 changes; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetInventoryChanges`
|
|
24472
|
+
* @summary Get inventory changes
|
|
24473
|
+
* @param {InventoryChangesInputDTO} [inventoryChangesInputDTO] InventoryChangesInputDTO
|
|
24474
|
+
* @param {*} [options] Override http request option.
|
|
24475
|
+
* @throws {RequiredError}
|
|
24476
|
+
*/
|
|
24477
|
+
trackingControllerGetInventoryChanges(inventoryChangesInputDTO, options) {
|
|
24478
|
+
return localVarFp
|
|
24479
|
+
.trackingControllerGetInventoryChanges(inventoryChangesInputDTO, options)
|
|
24480
|
+
.then((request) => request(axios, basePath));
|
|
24481
|
+
},
|
|
24482
|
+
/**
|
|
24483
|
+
* Who held an item of a game server during a time range (at most 31 days): per player, the periods they held it, reconstructed from inventory snapshots and changes, plus each gain and loss of the item in time order with cause, Position and counterpart where reported. A period with heldAtStart began before the range; one without end lasted past it. At most 5000 changes; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetItemHolders`
|
|
24484
|
+
* @summary Get item holders
|
|
24485
|
+
* @param {ItemHoldersInputDTO} [itemHoldersInputDTO] ItemHoldersInputDTO
|
|
24486
|
+
* @param {*} [options] Override http request option.
|
|
24487
|
+
* @throws {RequiredError}
|
|
24488
|
+
*/
|
|
24489
|
+
trackingControllerGetItemHolders(itemHoldersInputDTO, options) {
|
|
24490
|
+
return localVarFp
|
|
24491
|
+
.trackingControllerGetItemHolders(itemHoldersInputDTO, options)
|
|
24492
|
+
.then((request) => request(axios, basePath));
|
|
24493
|
+
},
|
|
24494
|
+
/**
|
|
24495
|
+
* Get inventory changes for a player between two timestamps Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetPlayerInventoryHistory`
|
|
22561
24496
|
* @summary Get player inventory history
|
|
22562
24497
|
* @param {PlayerInventoryHistoryInputDTO} [playerInventoryHistoryInputDTO] PlayerInventoryHistoryInputDTO
|
|
22563
24498
|
* @param {*} [options] Override http request option.
|
|
@@ -22569,7 +24504,7 @@ export const TrackingApiFactory = function (configuration, basePath, axios) {
|
|
|
22569
24504
|
.then((request) => request(axios, basePath));
|
|
22570
24505
|
},
|
|
22571
24506
|
/**
|
|
22572
|
-
* Get movement history for players within date bounds Required permissions: `READ_PLAYERS`<br> OperationId: `TrackingControllerGetPlayerMovementHistory`
|
|
24507
|
+
* Get movement history for players within date bounds Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetPlayerMovementHistory`
|
|
22573
24508
|
* @summary Get player movement history
|
|
22574
24509
|
* @param {PlayerMovementHistoryInputDTO} [playerMovementHistoryInputDTO] PlayerMovementHistoryInputDTO
|
|
22575
24510
|
* @param {*} [options] Override http request option.
|
|
@@ -22581,7 +24516,7 @@ export const TrackingApiFactory = function (configuration, basePath, axios) {
|
|
|
22581
24516
|
.then((request) => request(axios, basePath));
|
|
22582
24517
|
},
|
|
22583
24518
|
/**
|
|
22584
|
-
* Find all players who have had a specific item in their inventory Required permissions: `READ_PLAYERS`<br> OperationId: `TrackingControllerGetPlayersByItem`
|
|
24519
|
+
* Find all players who have had a specific item in their inventory Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetPlayersByItem`
|
|
22585
24520
|
* @summary Get players by item
|
|
22586
24521
|
* @param {PlayersByItemInputDTO} [playersByItemInputDTO] PlayersByItemInputDTO
|
|
22587
24522
|
* @param {*} [options] Override http request option.
|
|
@@ -22593,7 +24528,43 @@ export const TrackingApiFactory = function (configuration, basePath, axios) {
|
|
|
22593
24528
|
.then((request) => request(axios, basePath));
|
|
22594
24529
|
},
|
|
22595
24530
|
/**
|
|
22596
|
-
*
|
|
24531
|
+
* The Position samples inside an area, in time order, optionally for chosen players. Same input as the area search, within 31 days. At most 10000 samples; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetPositionAreaSamples`
|
|
24532
|
+
* @summary Get position area samples
|
|
24533
|
+
* @param {PositionAreaInputDTO} [positionAreaInputDTO] PositionAreaInputDTO
|
|
24534
|
+
* @param {*} [options] Override http request option.
|
|
24535
|
+
* @throws {RequiredError}
|
|
24536
|
+
*/
|
|
24537
|
+
trackingControllerGetPositionAreaSamples(positionAreaInputDTO, options) {
|
|
24538
|
+
return localVarFp
|
|
24539
|
+
.trackingControllerGetPositionAreaSamples(positionAreaInputDTO, options)
|
|
24540
|
+
.then((request) => request(axios, basePath));
|
|
24541
|
+
},
|
|
24542
|
+
/**
|
|
24543
|
+
* Where every player of a game server was at a moment, in one Dimension: each player\'s last Position sample at or before the moment, omitting players with no sample in the two minutes before it. At most 1000 players; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetPositionSnapshot`
|
|
24544
|
+
* @summary Get position snapshot
|
|
24545
|
+
* @param {PositionSnapshotInputDTO} [positionSnapshotInputDTO] PositionSnapshotInputDTO
|
|
24546
|
+
* @param {*} [options] Override http request option.
|
|
24547
|
+
* @throws {RequiredError}
|
|
24548
|
+
*/
|
|
24549
|
+
trackingControllerGetPositionSnapshot(positionSnapshotInputDTO, options) {
|
|
24550
|
+
return localVarFp
|
|
24551
|
+
.trackingControllerGetPositionSnapshot(positionSnapshotInputDTO, options)
|
|
24552
|
+
.then((request) => request(axios, basePath));
|
|
24553
|
+
},
|
|
24554
|
+
/**
|
|
24555
|
+
* Position samples per player for a game server, Dimension and time range (at most 31 days), optionally for chosen players. Downsampled on the server: one sample per player per bucket, where bucketMs grows with the range. At most 100000 samples in all; `truncated` is true when whole players were left out to stay within that. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetPositionTracks`
|
|
24556
|
+
* @summary Get position tracks
|
|
24557
|
+
* @param {PositionTracksInputDTO} [positionTracksInputDTO] PositionTracksInputDTO
|
|
24558
|
+
* @param {*} [options] Override http request option.
|
|
24559
|
+
* @throws {RequiredError}
|
|
24560
|
+
*/
|
|
24561
|
+
trackingControllerGetPositionTracks(positionTracksInputDTO, options) {
|
|
24562
|
+
return localVarFp
|
|
24563
|
+
.trackingControllerGetPositionTracks(positionTracksInputDTO, options)
|
|
24564
|
+
.then((request) => request(axios, basePath));
|
|
24565
|
+
},
|
|
24566
|
+
/**
|
|
24567
|
+
* Find all players within a spherical area from a center point Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetRadiusPlayers`
|
|
22597
24568
|
* @summary Get radius players
|
|
22598
24569
|
* @param {RadiusSearchInputDTO} [radiusSearchInputDTO] RadiusSearchInputDTO
|
|
22599
24570
|
* @param {*} [options] Override http request option.
|
|
@@ -22604,6 +24575,42 @@ export const TrackingApiFactory = function (configuration, basePath, axios) {
|
|
|
22604
24575
|
.trackingControllerGetRadiusPlayers(radiusSearchInputDTO, options)
|
|
22605
24576
|
.then((request) => request(axios, basePath));
|
|
22606
24577
|
},
|
|
24578
|
+
/**
|
|
24579
|
+
* Inventory gains on a game server during a time range (at most 7 days) by players whose Position at the moment of the gain was inside a shape (circle, rectangle or polygon) in a Dimension, with an optional height range. The Position is the one the game reported with the change, else the player\'s last Position sample at most 2 minutes earlier; `positionSource` says which. In time order, with cause and counterpart where reported. This is evidence, not proof of theft. At most 5000 gains; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerSearchAreaGains`
|
|
24580
|
+
* @summary Search area gains
|
|
24581
|
+
* @param {PositionAreaInputDTO} [positionAreaInputDTO] PositionAreaInputDTO
|
|
24582
|
+
* @param {*} [options] Override http request option.
|
|
24583
|
+
* @throws {RequiredError}
|
|
24584
|
+
*/
|
|
24585
|
+
trackingControllerSearchAreaGains(positionAreaInputDTO, options) {
|
|
24586
|
+
return localVarFp
|
|
24587
|
+
.trackingControllerSearchAreaGains(positionAreaInputDTO, options)
|
|
24588
|
+
.then((request) => request(axios, basePath));
|
|
24589
|
+
},
|
|
24590
|
+
/**
|
|
24591
|
+
* Deaths, kills, connects and disconnects of a game server during a time range (at most 31 days), in time order, each with a Position: the one the game reported with the event, else the player\'s nearest Position sample within 2 minutes before or after (positionSource \'sampled\', approximate), else none. At most 2000 events; truncated is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`, `READ_EVENTS`<br> OperationId: `TrackingControllerSearchEvents`
|
|
24592
|
+
* @summary Search events
|
|
24593
|
+
* @param {TrackingEventsInputDTO} [trackingEventsInputDTO] TrackingEventsInputDTO
|
|
24594
|
+
* @param {*} [options] Override http request option.
|
|
24595
|
+
* @throws {RequiredError}
|
|
24596
|
+
*/
|
|
24597
|
+
trackingControllerSearchEvents(trackingEventsInputDTO, options) {
|
|
24598
|
+
return localVarFp
|
|
24599
|
+
.trackingControllerSearchEvents(trackingEventsInputDTO, options)
|
|
24600
|
+
.then((request) => request(axios, basePath));
|
|
24601
|
+
},
|
|
24602
|
+
/**
|
|
24603
|
+
* Who was inside an area of a game server\'s Dimension during a time range (at most 31 days): per player, first seen, last seen and sample count. The shape (circle, rectangle or polygon) is given in game coordinates on the Dimension\'s two map axes; height (the third axis) is ignored unless minHeight or maxHeight is given. At most 1000 players; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerSearchPositionArea`
|
|
24604
|
+
* @summary Search position area
|
|
24605
|
+
* @param {PositionAreaInputDTO} [positionAreaInputDTO] PositionAreaInputDTO
|
|
24606
|
+
* @param {*} [options] Override http request option.
|
|
24607
|
+
* @throws {RequiredError}
|
|
24608
|
+
*/
|
|
24609
|
+
trackingControllerSearchPositionArea(positionAreaInputDTO, options) {
|
|
24610
|
+
return localVarFp
|
|
24611
|
+
.trackingControllerSearchPositionArea(positionAreaInputDTO, options)
|
|
24612
|
+
.then((request) => request(axios, basePath));
|
|
24613
|
+
},
|
|
22607
24614
|
};
|
|
22608
24615
|
};
|
|
22609
24616
|
/**
|
|
@@ -22614,7 +24621,7 @@ export const TrackingApiFactory = function (configuration, basePath, axios) {
|
|
|
22614
24621
|
*/
|
|
22615
24622
|
export class TrackingApi extends BaseAPI {
|
|
22616
24623
|
/**
|
|
22617
|
-
* Find all players within a 3D rectangular volume at a specific time Required permissions: `READ_PLAYERS`<br> OperationId: `TrackingControllerGetBoundingBoxPlayers`
|
|
24624
|
+
* Find all players within a 3D rectangular volume at a specific time Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetBoundingBoxPlayers`
|
|
22618
24625
|
* @summary Get bounding box players
|
|
22619
24626
|
* @param {BoundingBoxSearchInputDTO} [boundingBoxSearchInputDTO] BoundingBoxSearchInputDTO
|
|
22620
24627
|
* @param {*} [options] Override http request option.
|
|
@@ -22627,7 +24634,46 @@ export class TrackingApi extends BaseAPI {
|
|
|
22627
24634
|
.then((request) => request(this.axios, this.basePath));
|
|
22628
24635
|
}
|
|
22629
24636
|
/**
|
|
22630
|
-
*
|
|
24637
|
+
* A player\'s inventory on a game server at a moment, reconstructed from their latest inventory snapshot at or before the moment (within 31 days) plus the changes after it. snapshotTime is absent when no snapshot exists, meaning the inventory is not known. At most 1000 items; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetInventoryAt`
|
|
24638
|
+
* @summary Get inventory at
|
|
24639
|
+
* @param {InventoryAtInputDTO} [inventoryAtInputDTO] InventoryAtInputDTO
|
|
24640
|
+
* @param {*} [options] Override http request option.
|
|
24641
|
+
* @throws {RequiredError}
|
|
24642
|
+
* @memberof TrackingApi
|
|
24643
|
+
*/
|
|
24644
|
+
trackingControllerGetInventoryAt(inventoryAtInputDTO, options) {
|
|
24645
|
+
return TrackingApiFp(this.configuration)
|
|
24646
|
+
.trackingControllerGetInventoryAt(inventoryAtInputDTO, options)
|
|
24647
|
+
.then((request) => request(this.axios, this.basePath));
|
|
24648
|
+
}
|
|
24649
|
+
/**
|
|
24650
|
+
* A player\'s inventory changes on a game server in a time range (at most 31 days), in time order, with cause, Position and counterpart where the game reported them. Cause `unknown` marks a correction found by an hourly snapshot. At most 5000 changes; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetInventoryChanges`
|
|
24651
|
+
* @summary Get inventory changes
|
|
24652
|
+
* @param {InventoryChangesInputDTO} [inventoryChangesInputDTO] InventoryChangesInputDTO
|
|
24653
|
+
* @param {*} [options] Override http request option.
|
|
24654
|
+
* @throws {RequiredError}
|
|
24655
|
+
* @memberof TrackingApi
|
|
24656
|
+
*/
|
|
24657
|
+
trackingControllerGetInventoryChanges(inventoryChangesInputDTO, options) {
|
|
24658
|
+
return TrackingApiFp(this.configuration)
|
|
24659
|
+
.trackingControllerGetInventoryChanges(inventoryChangesInputDTO, options)
|
|
24660
|
+
.then((request) => request(this.axios, this.basePath));
|
|
24661
|
+
}
|
|
24662
|
+
/**
|
|
24663
|
+
* Who held an item of a game server during a time range (at most 31 days): per player, the periods they held it, reconstructed from inventory snapshots and changes, plus each gain and loss of the item in time order with cause, Position and counterpart where reported. A period with heldAtStart began before the range; one without end lasted past it. At most 5000 changes; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetItemHolders`
|
|
24664
|
+
* @summary Get item holders
|
|
24665
|
+
* @param {ItemHoldersInputDTO} [itemHoldersInputDTO] ItemHoldersInputDTO
|
|
24666
|
+
* @param {*} [options] Override http request option.
|
|
24667
|
+
* @throws {RequiredError}
|
|
24668
|
+
* @memberof TrackingApi
|
|
24669
|
+
*/
|
|
24670
|
+
trackingControllerGetItemHolders(itemHoldersInputDTO, options) {
|
|
24671
|
+
return TrackingApiFp(this.configuration)
|
|
24672
|
+
.trackingControllerGetItemHolders(itemHoldersInputDTO, options)
|
|
24673
|
+
.then((request) => request(this.axios, this.basePath));
|
|
24674
|
+
}
|
|
24675
|
+
/**
|
|
24676
|
+
* Get inventory changes for a player between two timestamps Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetPlayerInventoryHistory`
|
|
22631
24677
|
* @summary Get player inventory history
|
|
22632
24678
|
* @param {PlayerInventoryHistoryInputDTO} [playerInventoryHistoryInputDTO] PlayerInventoryHistoryInputDTO
|
|
22633
24679
|
* @param {*} [options] Override http request option.
|
|
@@ -22640,7 +24686,7 @@ export class TrackingApi extends BaseAPI {
|
|
|
22640
24686
|
.then((request) => request(this.axios, this.basePath));
|
|
22641
24687
|
}
|
|
22642
24688
|
/**
|
|
22643
|
-
* Get movement history for players within date bounds Required permissions: `READ_PLAYERS`<br> OperationId: `TrackingControllerGetPlayerMovementHistory`
|
|
24689
|
+
* Get movement history for players within date bounds Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetPlayerMovementHistory`
|
|
22644
24690
|
* @summary Get player movement history
|
|
22645
24691
|
* @param {PlayerMovementHistoryInputDTO} [playerMovementHistoryInputDTO] PlayerMovementHistoryInputDTO
|
|
22646
24692
|
* @param {*} [options] Override http request option.
|
|
@@ -22653,7 +24699,7 @@ export class TrackingApi extends BaseAPI {
|
|
|
22653
24699
|
.then((request) => request(this.axios, this.basePath));
|
|
22654
24700
|
}
|
|
22655
24701
|
/**
|
|
22656
|
-
* Find all players who have had a specific item in their inventory Required permissions: `READ_PLAYERS`<br> OperationId: `TrackingControllerGetPlayersByItem`
|
|
24702
|
+
* Find all players who have had a specific item in their inventory Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetPlayersByItem`
|
|
22657
24703
|
* @summary Get players by item
|
|
22658
24704
|
* @param {PlayersByItemInputDTO} [playersByItemInputDTO] PlayersByItemInputDTO
|
|
22659
24705
|
* @param {*} [options] Override http request option.
|
|
@@ -22666,7 +24712,46 @@ export class TrackingApi extends BaseAPI {
|
|
|
22666
24712
|
.then((request) => request(this.axios, this.basePath));
|
|
22667
24713
|
}
|
|
22668
24714
|
/**
|
|
22669
|
-
*
|
|
24715
|
+
* The Position samples inside an area, in time order, optionally for chosen players. Same input as the area search, within 31 days. At most 10000 samples; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetPositionAreaSamples`
|
|
24716
|
+
* @summary Get position area samples
|
|
24717
|
+
* @param {PositionAreaInputDTO} [positionAreaInputDTO] PositionAreaInputDTO
|
|
24718
|
+
* @param {*} [options] Override http request option.
|
|
24719
|
+
* @throws {RequiredError}
|
|
24720
|
+
* @memberof TrackingApi
|
|
24721
|
+
*/
|
|
24722
|
+
trackingControllerGetPositionAreaSamples(positionAreaInputDTO, options) {
|
|
24723
|
+
return TrackingApiFp(this.configuration)
|
|
24724
|
+
.trackingControllerGetPositionAreaSamples(positionAreaInputDTO, options)
|
|
24725
|
+
.then((request) => request(this.axios, this.basePath));
|
|
24726
|
+
}
|
|
24727
|
+
/**
|
|
24728
|
+
* Where every player of a game server was at a moment, in one Dimension: each player\'s last Position sample at or before the moment, omitting players with no sample in the two minutes before it. At most 1000 players; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetPositionSnapshot`
|
|
24729
|
+
* @summary Get position snapshot
|
|
24730
|
+
* @param {PositionSnapshotInputDTO} [positionSnapshotInputDTO] PositionSnapshotInputDTO
|
|
24731
|
+
* @param {*} [options] Override http request option.
|
|
24732
|
+
* @throws {RequiredError}
|
|
24733
|
+
* @memberof TrackingApi
|
|
24734
|
+
*/
|
|
24735
|
+
trackingControllerGetPositionSnapshot(positionSnapshotInputDTO, options) {
|
|
24736
|
+
return TrackingApiFp(this.configuration)
|
|
24737
|
+
.trackingControllerGetPositionSnapshot(positionSnapshotInputDTO, options)
|
|
24738
|
+
.then((request) => request(this.axios, this.basePath));
|
|
24739
|
+
}
|
|
24740
|
+
/**
|
|
24741
|
+
* Position samples per player for a game server, Dimension and time range (at most 31 days), optionally for chosen players. Downsampled on the server: one sample per player per bucket, where bucketMs grows with the range. At most 100000 samples in all; `truncated` is true when whole players were left out to stay within that. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerGetPositionTracks`
|
|
24742
|
+
* @summary Get position tracks
|
|
24743
|
+
* @param {PositionTracksInputDTO} [positionTracksInputDTO] PositionTracksInputDTO
|
|
24744
|
+
* @param {*} [options] Override http request option.
|
|
24745
|
+
* @throws {RequiredError}
|
|
24746
|
+
* @memberof TrackingApi
|
|
24747
|
+
*/
|
|
24748
|
+
trackingControllerGetPositionTracks(positionTracksInputDTO, options) {
|
|
24749
|
+
return TrackingApiFp(this.configuration)
|
|
24750
|
+
.trackingControllerGetPositionTracks(positionTracksInputDTO, options)
|
|
24751
|
+
.then((request) => request(this.axios, this.basePath));
|
|
24752
|
+
}
|
|
24753
|
+
/**
|
|
24754
|
+
* Find all players within a spherical area from a center point Required permissions: `READ_PLAYERS`, `READ_TRACKING`<br> OperationId: `TrackingControllerGetRadiusPlayers`
|
|
22670
24755
|
* @summary Get radius players
|
|
22671
24756
|
* @param {RadiusSearchInputDTO} [radiusSearchInputDTO] RadiusSearchInputDTO
|
|
22672
24757
|
* @param {*} [options] Override http request option.
|
|
@@ -22678,6 +24763,45 @@ export class TrackingApi extends BaseAPI {
|
|
|
22678
24763
|
.trackingControllerGetRadiusPlayers(radiusSearchInputDTO, options)
|
|
22679
24764
|
.then((request) => request(this.axios, this.basePath));
|
|
22680
24765
|
}
|
|
24766
|
+
/**
|
|
24767
|
+
* Inventory gains on a game server during a time range (at most 7 days) by players whose Position at the moment of the gain was inside a shape (circle, rectangle or polygon) in a Dimension, with an optional height range. The Position is the one the game reported with the change, else the player\'s last Position sample at most 2 minutes earlier; `positionSource` says which. In time order, with cause and counterpart where reported. This is evidence, not proof of theft. At most 5000 gains; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerSearchAreaGains`
|
|
24768
|
+
* @summary Search area gains
|
|
24769
|
+
* @param {PositionAreaInputDTO} [positionAreaInputDTO] PositionAreaInputDTO
|
|
24770
|
+
* @param {*} [options] Override http request option.
|
|
24771
|
+
* @throws {RequiredError}
|
|
24772
|
+
* @memberof TrackingApi
|
|
24773
|
+
*/
|
|
24774
|
+
trackingControllerSearchAreaGains(positionAreaInputDTO, options) {
|
|
24775
|
+
return TrackingApiFp(this.configuration)
|
|
24776
|
+
.trackingControllerSearchAreaGains(positionAreaInputDTO, options)
|
|
24777
|
+
.then((request) => request(this.axios, this.basePath));
|
|
24778
|
+
}
|
|
24779
|
+
/**
|
|
24780
|
+
* Deaths, kills, connects and disconnects of a game server during a time range (at most 31 days), in time order, each with a Position: the one the game reported with the event, else the player\'s nearest Position sample within 2 minutes before or after (positionSource \'sampled\', approximate), else none. At most 2000 events; truncated is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`, `READ_EVENTS`<br> OperationId: `TrackingControllerSearchEvents`
|
|
24781
|
+
* @summary Search events
|
|
24782
|
+
* @param {TrackingEventsInputDTO} [trackingEventsInputDTO] TrackingEventsInputDTO
|
|
24783
|
+
* @param {*} [options] Override http request option.
|
|
24784
|
+
* @throws {RequiredError}
|
|
24785
|
+
* @memberof TrackingApi
|
|
24786
|
+
*/
|
|
24787
|
+
trackingControllerSearchEvents(trackingEventsInputDTO, options) {
|
|
24788
|
+
return TrackingApiFp(this.configuration)
|
|
24789
|
+
.trackingControllerSearchEvents(trackingEventsInputDTO, options)
|
|
24790
|
+
.then((request) => request(this.axios, this.basePath));
|
|
24791
|
+
}
|
|
24792
|
+
/**
|
|
24793
|
+
* Who was inside an area of a game server\'s Dimension during a time range (at most 31 days): per player, first seen, last seen and sample count. The shape (circle, rectangle or polygon) is given in game coordinates on the Dimension\'s two map axes; height (the third axis) is ignored unless minHeight or maxHeight is given. At most 1000 players; `truncated` is true when there were more. Read from Tracking history; 503 when history is unavailable. Required permissions: `READ_TRACKING`<br> OperationId: `TrackingControllerSearchPositionArea`
|
|
24794
|
+
* @summary Search position area
|
|
24795
|
+
* @param {PositionAreaInputDTO} [positionAreaInputDTO] PositionAreaInputDTO
|
|
24796
|
+
* @param {*} [options] Override http request option.
|
|
24797
|
+
* @throws {RequiredError}
|
|
24798
|
+
* @memberof TrackingApi
|
|
24799
|
+
*/
|
|
24800
|
+
trackingControllerSearchPositionArea(positionAreaInputDTO, options) {
|
|
24801
|
+
return TrackingApiFp(this.configuration)
|
|
24802
|
+
.trackingControllerSearchPositionArea(positionAreaInputDTO, options)
|
|
24803
|
+
.then((request) => request(this.axios, this.basePath));
|
|
24804
|
+
}
|
|
22681
24805
|
}
|
|
22682
24806
|
/**
|
|
22683
24807
|
* UserApi - axios parameter creator
|
|
@@ -22912,38 +25036,6 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
22912
25036
|
options: localVarRequestOptions,
|
|
22913
25037
|
};
|
|
22914
25038
|
},
|
|
22915
|
-
/**
|
|
22916
|
-
* Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game.<br> OperationId: `UserControllerLinkPlayerProfile`
|
|
22917
|
-
* @summary Link player profile
|
|
22918
|
-
* @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO
|
|
22919
|
-
* @param {*} [options] Override http request option.
|
|
22920
|
-
* @throws {RequiredError}
|
|
22921
|
-
*/
|
|
22922
|
-
userControllerLinkPlayerProfile: async (linkPlayerUnauthedInputDTO, options = {}) => {
|
|
22923
|
-
const localVarPath = `/user/player`;
|
|
22924
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22925
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22926
|
-
let baseOptions;
|
|
22927
|
-
if (configuration) {
|
|
22928
|
-
baseOptions = configuration.baseOptions;
|
|
22929
|
-
}
|
|
22930
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
22931
|
-
const localVarHeaderParameter = {};
|
|
22932
|
-
const localVarQueryParameter = {};
|
|
22933
|
-
// authentication bearerAuth required
|
|
22934
|
-
// http bearer authentication required
|
|
22935
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
22936
|
-
// authentication domainAuth required
|
|
22937
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22938
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22939
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22940
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
22941
|
-
localVarRequestOptions.data = serializeDataIfNeeded(linkPlayerUnauthedInputDTO, localVarRequestOptions, configuration);
|
|
22942
|
-
return {
|
|
22943
|
-
url: toPathString(localVarUrlObj),
|
|
22944
|
-
options: localVarRequestOptions,
|
|
22945
|
-
};
|
|
22946
|
-
},
|
|
22947
25039
|
/**
|
|
22948
25040
|
* Exchanges a username and password for a token through Keycloak\'s resource-owner password grant. This route exists for the hosted browser login page and nothing else. Scripts, bots, CI and integrations authenticate with an API Key sent as `Authorization: Bearer takaro_...` (create one with `POST /apikey`) — see docs/api/authentication.md. The route is not being removed and existing callers keep working.<br> OperationId: `UserControllerLogin`
|
|
22949
25041
|
* @summary Log in with a username and password
|
|
@@ -23303,19 +25395,6 @@ export const UserApiFp = function (configuration) {
|
|
|
23303
25395
|
const localVarOperationServerBasePath = operationServerMap['UserApi.userControllerInvite']?.[localVarOperationServerIndex]?.url;
|
|
23304
25396
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23305
25397
|
},
|
|
23306
|
-
/**
|
|
23307
|
-
* Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game.<br> OperationId: `UserControllerLinkPlayerProfile`
|
|
23308
|
-
* @summary Link player profile
|
|
23309
|
-
* @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO
|
|
23310
|
-
* @param {*} [options] Override http request option.
|
|
23311
|
-
* @throws {RequiredError}
|
|
23312
|
-
*/
|
|
23313
|
-
async userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options) {
|
|
23314
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options);
|
|
23315
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
23316
|
-
const localVarOperationServerBasePath = operationServerMap['UserApi.userControllerLinkPlayerProfile']?.[localVarOperationServerIndex]?.url;
|
|
23317
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23318
|
-
},
|
|
23319
25398
|
/**
|
|
23320
25399
|
* Exchanges a username and password for a token through Keycloak\'s resource-owner password grant. This route exists for the hosted browser login page and nothing else. Scripts, bots, CI and integrations authenticate with an API Key sent as `Authorization: Bearer takaro_...` (create one with `POST /apikey`) — see docs/api/authentication.md. The route is not being removed and existing callers keep working.<br> OperationId: `UserControllerLogin`
|
|
23321
25400
|
* @summary Log in with a username and password
|
|
@@ -23504,18 +25583,6 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
23504
25583
|
userControllerInvite(inviteCreateDTO, options) {
|
|
23505
25584
|
return localVarFp.userControllerInvite(inviteCreateDTO, options).then((request) => request(axios, basePath));
|
|
23506
25585
|
},
|
|
23507
|
-
/**
|
|
23508
|
-
* Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game.<br> OperationId: `UserControllerLinkPlayerProfile`
|
|
23509
|
-
* @summary Link player profile
|
|
23510
|
-
* @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO
|
|
23511
|
-
* @param {*} [options] Override http request option.
|
|
23512
|
-
* @throws {RequiredError}
|
|
23513
|
-
*/
|
|
23514
|
-
userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options) {
|
|
23515
|
-
return localVarFp
|
|
23516
|
-
.userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options)
|
|
23517
|
-
.then((request) => request(axios, basePath));
|
|
23518
|
-
},
|
|
23519
25586
|
/**
|
|
23520
25587
|
* Exchanges a username and password for a token through Keycloak\'s resource-owner password grant. This route exists for the hosted browser login page and nothing else. Scripts, bots, CI and integrations authenticate with an API Key sent as `Authorization: Bearer takaro_...` (create one with `POST /apikey`) — see docs/api/authentication.md. The route is not being removed and existing callers keep working.<br> OperationId: `UserControllerLogin`
|
|
23521
25588
|
* @summary Log in with a username and password
|
|
@@ -23697,19 +25764,6 @@ export class UserApi extends BaseAPI {
|
|
|
23697
25764
|
.userControllerInvite(inviteCreateDTO, options)
|
|
23698
25765
|
.then((request) => request(this.axios, this.basePath));
|
|
23699
25766
|
}
|
|
23700
|
-
/**
|
|
23701
|
-
* Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game.<br> OperationId: `UserControllerLinkPlayerProfile`
|
|
23702
|
-
* @summary Link player profile
|
|
23703
|
-
* @param {LinkPlayerUnauthedInputDTO} [linkPlayerUnauthedInputDTO] LinkPlayerUnauthedInputDTO
|
|
23704
|
-
* @param {*} [options] Override http request option.
|
|
23705
|
-
* @throws {RequiredError}
|
|
23706
|
-
* @memberof UserApi
|
|
23707
|
-
*/
|
|
23708
|
-
userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options) {
|
|
23709
|
-
return UserApiFp(this.configuration)
|
|
23710
|
-
.userControllerLinkPlayerProfile(linkPlayerUnauthedInputDTO, options)
|
|
23711
|
-
.then((request) => request(this.axios, this.basePath));
|
|
23712
|
-
}
|
|
23713
25767
|
/**
|
|
23714
25768
|
* Exchanges a username and password for a token through Keycloak\'s resource-owner password grant. This route exists for the hosted browser login page and nothing else. Scripts, bots, CI and integrations authenticate with an API Key sent as `Authorization: Bearer takaro_...` (create one with `POST /apikey`) — see docs/api/authentication.md. The route is not being removed and existing callers keep working.<br> OperationId: `UserControllerLogin`
|
|
23715
25769
|
* @summary Log in with a username and password
|