@takaro/apiclient 0.0.0-dev.56b1587 → 0.0.0-dev.573074e

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.
Files changed (42) hide show
  1. package/dist/.source-hash +1 -1
  2. package/dist/generated/api.d.ts +15031 -9187
  3. package/dist/generated/api.d.ts.map +1 -1
  4. package/dist/generated/api.js +9267 -5911
  5. package/dist/generated/api.js.map +1 -1
  6. package/dist/generated/common.d.ts +1 -1
  7. package/dist/generated/common.d.ts.map +1 -1
  8. package/dist/generated-management/api.d.ts +12874 -6698
  9. package/dist/generated-management/api.d.ts.map +1 -1
  10. package/dist/generated-management/api.js +3104 -427
  11. package/dist/generated-management/api.js.map +1 -1
  12. package/dist/generated-management/common.d.ts +1 -1
  13. package/dist/generated-management/common.d.ts.map +1 -1
  14. package/dist/lib/adminClient.d.ts +6 -1
  15. package/dist/lib/adminClient.d.ts.map +1 -1
  16. package/dist/lib/adminClient.js +16 -1
  17. package/dist/lib/adminClient.js.map +1 -1
  18. package/dist/lib/apiKey.d.ts +0 -15
  19. package/dist/lib/apiKey.d.ts.map +1 -1
  20. package/dist/lib/apiKey.js +2 -19
  21. package/dist/lib/apiKey.js.map +1 -1
  22. package/dist/lib/baseClient.d.ts +1 -27
  23. package/dist/lib/baseClient.d.ts.map +1 -1
  24. package/dist/lib/baseClient.js +3 -18
  25. package/dist/lib/baseClient.js.map +1 -1
  26. package/dist/lib/client.d.ts +9 -23
  27. package/dist/lib/client.d.ts.map +1 -1
  28. package/dist/lib/client.js +27 -23
  29. package/dist/lib/client.js.map +1 -1
  30. package/dist/lib/distributorClient.d.ts +0 -6
  31. package/dist/lib/distributorClient.d.ts.map +1 -1
  32. package/dist/lib/distributorClient.js +1 -7
  33. package/dist/lib/distributorClient.js.map +1 -1
  34. package/dist/lib/staffClient.d.ts +5 -12
  35. package/dist/lib/staffClient.d.ts.map +1 -1
  36. package/dist/lib/staffClient.js +11 -12
  37. package/dist/lib/staffClient.js.map +1 -1
  38. package/dist/main.d.ts +2 -2
  39. package/dist/main.d.ts.map +1 -1
  40. package/dist/main.js +3 -5
  41. package/dist/main.js.map +1 -1
  42. package/package.json +3 -3
@@ -47,14 +47,17 @@ export const ApiKeySearchInputDTOSortDirectionEnum = {
47
47
  Asc: 'asc',
48
48
  Desc: 'desc',
49
49
  };
50
- export const DistributorBackedDomainOutputDTOStateEnum = {
51
- Active: 'ACTIVE',
52
- Disabled: 'DISABLED',
53
- Maintenance: 'MAINTENANCE',
50
+ export const ConnectorMigrationOutputDTOStatusEnum = {
51
+ Pending: 'pending',
52
+ Completed: 'completed',
53
+ Cancelled: 'cancelled',
54
+ Reverted: 'reverted',
54
55
  };
55
- export const DistributorBackedDomainSearchInputDTOSortDirectionEnum = {
56
- Asc: 'asc',
57
- Desc: 'desc',
56
+ export const ConnectorMigrationOutputDTOLegacyTypeEnum = {
57
+ Sevendaystodie: 'SEVENDAYSTODIE',
58
+ Rust: 'RUST',
59
+ Generic: 'GENERIC',
60
+ Mock: 'MOCK',
58
61
  };
59
62
  export const DistributorDomainSearchInputAllowedFiltersStateEnum = {
60
63
  Active: 'ACTIVE',
@@ -86,6 +89,21 @@ export const DomainCreateInputDTOStateEnum = {
86
89
  Disabled: 'DISABLED',
87
90
  Maintenance: 'MAINTENANCE',
88
91
  };
92
+ export const DomainLimitOutputDTOSourceEnum = {
93
+ Plan: 'plan',
94
+ Override: 'override',
95
+ Adoption: 'adoption',
96
+ Unmanaged: 'unmanaged',
97
+ };
98
+ export const DomainLimitOverrideChangeOutputDTOActionEnum = {
99
+ Set: 'set',
100
+ Clear: 'clear',
101
+ };
102
+ export const DomainLimitOverrideChangeOutputDTOActorKindEnum = {
103
+ StaffSession: 'staffSession',
104
+ AdminSecret: 'adminSecret',
105
+ System: 'system',
106
+ };
89
107
  export const DomainOutputDTOStateEnum = {
90
108
  Active: 'ACTIVE',
91
109
  Disabled: 'DISABLED',
@@ -183,6 +201,12 @@ export const EventCreateDTOEventNameEnum = {
183
201
  DomainCreated: 'domain-created',
184
202
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
185
203
  DomainPlanChanged: 'domain-plan-changed',
204
+ ConnectorMigrationStarted: 'connector-migration-started',
205
+ ConnectorMigrationCompleted: 'connector-migration-completed',
206
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
207
+ ConnectorMigrationReverted: 'connector-migration-reverted',
208
+ DiscordGuildEnabled: 'discord-guild-enabled',
209
+ ItemsGiven: 'items-given',
186
210
  PlayerConnected: 'player-connected',
187
211
  PlayerDisconnected: 'player-disconnected',
188
212
  ChatMessage: 'chat-message',
@@ -236,12 +260,43 @@ export const EventOutputDTOEventNameEnum = {
236
260
  DomainCreated: 'domain-created',
237
261
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
238
262
  DomainPlanChanged: 'domain-plan-changed',
263
+ ConnectorMigrationStarted: 'connector-migration-started',
264
+ ConnectorMigrationCompleted: 'connector-migration-completed',
265
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
266
+ ConnectorMigrationReverted: 'connector-migration-reverted',
267
+ DiscordGuildEnabled: 'discord-guild-enabled',
268
+ ItemsGiven: 'items-given',
239
269
  PlayerConnected: 'player-connected',
240
270
  PlayerDisconnected: 'player-disconnected',
241
271
  ChatMessage: 'chat-message',
242
272
  PlayerDeath: 'player-death',
243
273
  EntityKilled: 'entity-killed',
244
274
  };
275
+ export const FixtureHistoryConflictDTOKindEnum = {
276
+ TakaroPlayer: 'takaro-player',
277
+ TakaroPog: 'takaro-pog',
278
+ };
279
+ export const FixtureHistoryDeleteInputDTOStoreEnum = {
280
+ Analytics: 'analytics',
281
+ Postgres: 'postgres',
282
+ };
283
+ export const FixtureHistoryEventDTOEventNameEnum = {
284
+ PlayerConnected: 'player-connected',
285
+ PlayerDisconnected: 'player-disconnected',
286
+ PlayerSyncSnapshot: 'player-sync-snapshot',
287
+ ChatMessage: 'chat-message',
288
+ CurrencyAdded: 'currency-added',
289
+ CurrencyDeducted: 'currency-deducted',
290
+ ShopOrderCreated: 'shop-order-created',
291
+ ShopOrderStatusChanged: 'shop-order-status-changed',
292
+ };
293
+ export const FixtureHistoryListingConflictDTOKindEnum = {
294
+ TakaroListing: 'takaro-listing',
295
+ };
296
+ export const FixtureHistoryOrderDTOStatusEnum = {
297
+ Completed: 'COMPLETED',
298
+ Canceled: 'CANCELED',
299
+ };
245
300
  export const GameServerCreateDTOTypeEnum = {
246
301
  Sevendaystodie: 'SEVENDAYSTODIE',
247
302
  Rust: 'RUST',
@@ -266,6 +321,26 @@ export const GameServerUpdateDTOTypeEnum = {
266
321
  Generic: 'GENERIC',
267
322
  Mock: 'MOCK',
268
323
  };
324
+ export const GetJobInputDTOTypeEnum = {
325
+ CsmmImport: 'csmmImport',
326
+ SeedModules: 'seedModules',
327
+ CleanEvents: 'cleanEvents',
328
+ CleanExpiringVariables: 'cleanExpiringVariables',
329
+ EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
330
+ DeleteGameServers: 'deleteGameServers',
331
+ SyncItems: 'syncItems',
332
+ SyncEntities: 'syncEntities',
333
+ SyncBans: 'syncBans',
334
+ SyncMapImages: 'syncMapImages',
335
+ SyncMapUploads: 'syncMapUploads',
336
+ SyncSteam: 'syncSteam',
337
+ SyncDiscordRoles: 'syncDiscordRoles',
338
+ EmitRateLimitSummary: 'emitRateLimitSummary',
339
+ CleanRevokedApiKeys: 'cleanRevokedApiKeys',
340
+ CleanExecutionClaims: 'cleanExecutionClaims',
341
+ DeleteClickHouseEvents: 'deleteClickHouseEvents',
342
+ CleanConnectorMigrations: 'cleanConnectorMigrations',
343
+ };
269
344
  export const HookCreateDTOEventTypeEnum = {
270
345
  Log: 'log',
271
346
  PlayerConnected: 'player-connected',
@@ -320,6 +395,12 @@ export const HookCreateDTOEventTypeEnum = {
320
395
  DomainCreated: 'domain-created',
321
396
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
322
397
  DomainPlanChanged: 'domain-plan-changed',
398
+ ConnectorMigrationStarted: 'connector-migration-started',
399
+ ConnectorMigrationCompleted: 'connector-migration-completed',
400
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
401
+ ConnectorMigrationReverted: 'connector-migration-reverted',
402
+ DiscordGuildEnabled: 'discord-guild-enabled',
403
+ ItemsGiven: 'items-given',
323
404
  };
324
405
  export const HookOutputDTOEventTypeEnum = {
325
406
  Log: 'log',
@@ -375,6 +456,12 @@ export const HookOutputDTOEventTypeEnum = {
375
456
  DomainCreated: 'domain-created',
376
457
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
377
458
  DomainPlanChanged: 'domain-plan-changed',
459
+ ConnectorMigrationStarted: 'connector-migration-started',
460
+ ConnectorMigrationCompleted: 'connector-migration-completed',
461
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
462
+ ConnectorMigrationReverted: 'connector-migration-reverted',
463
+ DiscordGuildEnabled: 'discord-guild-enabled',
464
+ ItemsGiven: 'items-given',
378
465
  };
379
466
  export const HookTriggerDTOEventTypeEnum = {
380
467
  Log: 'log',
@@ -430,6 +517,12 @@ export const HookTriggerDTOEventTypeEnum = {
430
517
  DomainCreated: 'domain-created',
431
518
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
432
519
  DomainPlanChanged: 'domain-plan-changed',
520
+ ConnectorMigrationStarted: 'connector-migration-started',
521
+ ConnectorMigrationCompleted: 'connector-migration-completed',
522
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
523
+ ConnectorMigrationReverted: 'connector-migration-reverted',
524
+ DiscordGuildEnabled: 'discord-guild-enabled',
525
+ ItemsGiven: 'items-given',
433
526
  };
434
527
  export const HookUpdateDTOEventTypeEnum = {
435
528
  Log: 'log',
@@ -485,6 +578,12 @@ export const HookUpdateDTOEventTypeEnum = {
485
578
  DomainCreated: 'domain-created',
486
579
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
487
580
  DomainPlanChanged: 'domain-plan-changed',
581
+ ConnectorMigrationStarted: 'connector-migration-started',
582
+ ConnectorMigrationCompleted: 'connector-migration-completed',
583
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
584
+ ConnectorMigrationReverted: 'connector-migration-reverted',
585
+ DiscordGuildEnabled: 'discord-guild-enabled',
586
+ ItemsGiven: 'items-given',
488
587
  };
489
588
  export const IEntityDTOTypeEnum = {
490
589
  Hostile: 'hostile',
@@ -545,6 +644,12 @@ export const IHookEventTypeEnum = {
545
644
  DomainCreated: 'domain-created',
546
645
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
547
646
  DomainPlanChanged: 'domain-plan-changed',
647
+ ConnectorMigrationStarted: 'connector-migration-started',
648
+ ConnectorMigrationCompleted: 'connector-migration-completed',
649
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
650
+ ConnectorMigrationReverted: 'connector-migration-reverted',
651
+ DiscordGuildEnabled: 'discord-guild-enabled',
652
+ ItemsGiven: 'items-given',
548
653
  };
549
654
  export const ITakaroQuerySortDirectionEnum = {
550
655
  Asc: 'asc',
@@ -592,6 +697,33 @@ export const ManagementDomainOutputDTOCustomDomainStateEnum = {
592
697
  Verified: 'VERIFIED',
593
698
  Failed: 'FAILED',
594
699
  };
700
+ export const MapHorizontalAxisDTOFieldEnum = {
701
+ X: 'x',
702
+ Y: 'y',
703
+ Z: 'z',
704
+ };
705
+ export const MapHorizontalAxisDTODirectionEnum = {
706
+ Right: 'right',
707
+ Left: 'left',
708
+ };
709
+ export const MapPyramidDTOOriginEnum = {
710
+ Game: 'game',
711
+ Upload: 'upload',
712
+ };
713
+ export const MapSourceDTOTypeEnum = {
714
+ None: 'none',
715
+ Tiled: 'tiled',
716
+ Image: 'image',
717
+ };
718
+ export const MapVerticalAxisDTOFieldEnum = {
719
+ X: 'x',
720
+ Y: 'y',
721
+ Z: 'z',
722
+ };
723
+ export const MapVerticalAxisDTODirectionEnum = {
724
+ Up: 'up',
725
+ Down: 'down',
726
+ };
595
727
  export const OrderStatusCountDTOStatusEnum = {
596
728
  Completed: 'COMPLETED',
597
729
  Paid: 'PAID',
@@ -629,11 +761,15 @@ export const PERMISSIONS = {
629
761
  SendDiscordMessage: 'SEND_DISCORD_MESSAGE',
630
762
  ManageApiKeys: 'MANAGE_API_KEYS',
631
763
  };
632
- export const PlanPriceDTOIntervalEnum = {
633
- Day: 'day',
634
- Week: 'week',
635
- Month: 'month',
636
- Year: 'year',
764
+ export const PlanChangeOutputDTOActionEnum = {
765
+ Create: 'create',
766
+ Update: 'update',
767
+ Archive: 'archive',
768
+ };
769
+ export const PlanChangeOutputDTOActorKindEnum = {
770
+ StaffSession: 'staffSession',
771
+ AdminSecret: 'adminSecret',
772
+ System: 'system',
637
773
  };
638
774
  export const PlayerOnGameServerSearchInputDTOExtendEnum = {
639
775
  GameServer: 'gameServer',
@@ -674,6 +810,7 @@ export const SettingsOutputDTOKeyEnum = {
674
810
  DiscordRoleSyncPreferDiscord: 'discordRoleSyncPreferDiscord',
675
811
  UnknownCommandFeedbackEnabled: 'unknownCommandFeedbackEnabled',
676
812
  UnknownCommandFeedbackMessage: 'unknownCommandFeedbackMessage',
813
+ TakaroAiEnabled: 'takaroAiEnabled',
677
814
  };
678
815
  export const SettingsOutputDTOTypeEnum = {
679
816
  Override: 'override',
@@ -751,11 +888,24 @@ export const ShopListingUpdateDTORequiredVariableOperatorEnum = {
751
888
  Gt: 'gt',
752
889
  Lt: 'lt',
753
890
  };
891
+ export const ShopOrderDeliveryItemDTOResultEnum = {
892
+ Delivered: 'DELIVERED',
893
+ Failed: 'FAILED',
894
+ Unknown: 'UNKNOWN',
895
+ };
754
896
  export const ShopOrderOutputDTOStatusEnum = {
755
897
  Completed: 'COMPLETED',
756
898
  Paid: 'PAID',
757
899
  Canceled: 'CANCELED',
758
900
  };
901
+ export const ShopOrderOutputDTODeliveryStatusEnum = {
902
+ NotApplicable: 'NOT_APPLICABLE',
903
+ NotAttempted: 'NOT_ATTEMPTED',
904
+ InProgress: 'IN_PROGRESS',
905
+ Delivered: 'DELIVERED',
906
+ Failed: 'FAILED',
907
+ Unknown: 'UNKNOWN',
908
+ };
759
909
  export const ShopOrderUpdateDTOStatusEnum = {
760
910
  Completed: 'COMPLETED',
761
911
  Paid: 'PAID',
@@ -771,6 +921,55 @@ export const StorefrontDomainOutputDTOCustomDomainStateEnum = {
771
921
  Verified: 'VERIFIED',
772
922
  Failed: 'FAILED',
773
923
  };
924
+ export const StripePriceDTOIntervalEnum = {
925
+ Day: 'day',
926
+ Week: 'week',
927
+ Month: 'month',
928
+ Year: 'year',
929
+ };
930
+ export const TakaroAiDomainOutputDTOOverrideStateEnum = {
931
+ None: 'none',
932
+ Active: 'active',
933
+ Expired: 'expired',
934
+ };
935
+ export const TakaroAiDomainOutputDTOStatusEnum = {
936
+ Available: 'available',
937
+ Grace: 'grace',
938
+ DailyLimitReached: 'dailyLimitReached',
939
+ LimitReached: 'limitReached',
940
+ Disabled: 'disabled',
941
+ NoAllowance: 'noAllowance',
942
+ NeedsGameServer: 'needsGameServer',
943
+ };
944
+ export const TakaroAiStaffChangeOutputDTOSubjectEnum = {
945
+ GlobalMultiplier: 'globalMultiplier',
946
+ DomainOverride: 'domainOverride',
947
+ MigrationCap: 'migrationCap',
948
+ };
949
+ export const TakaroAiStaffChangeOutputDTOActorKindEnum = {
950
+ StaffSession: 'staffSession',
951
+ AdminSecret: 'adminSecret',
952
+ };
953
+ export const TakaroAiUsageOutputDTOStatusEnum = {
954
+ Available: 'available',
955
+ Grace: 'grace',
956
+ DailyLimitReached: 'dailyLimitReached',
957
+ LimitReached: 'limitReached',
958
+ Disabled: 'disabled',
959
+ NoAllowance: 'noAllowance',
960
+ NeedsGameServer: 'needsGameServer',
961
+ };
962
+ export const TakaroEventDomainCreatedOriginEnum = {
963
+ Distributor: 'distributor',
964
+ Staff: 'staff',
965
+ Subscription: 'subscription',
966
+ AdminSecret: 'admin_secret',
967
+ };
968
+ export const TakaroEventItemsGivenLineResultEnum = {
969
+ Delivered: 'DELIVERED',
970
+ Failed: 'FAILED',
971
+ Unknown: 'UNKNOWN',
972
+ };
774
973
  export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
775
974
  Added: 'added',
776
975
  Removed: 'removed',
@@ -781,6 +980,150 @@ export const TakaroEventRateLimitedScopeEnum = {
781
980
  Domain: 'domain',
782
981
  Global: 'global',
783
982
  };
983
+ export const ThreadApprovalDecisionInputDTOOutcomeEnum = {
984
+ Approved: 'approved',
985
+ Denied: 'denied',
986
+ };
987
+ export const ThreadContextInputDTOTypeEnum = {
988
+ Player: 'player',
989
+ GameServer: 'gameServer',
990
+ Module: 'module',
991
+ ModuleVersion: 'moduleVersion',
992
+ Event: 'event',
993
+ CsmmImport: 'csmmImport',
994
+ };
995
+ export const ThreadCreateInputDTOOriginSurfaceEnum = {
996
+ CommandPalette: 'commandPalette',
997
+ PlayerSummary: 'playerSummary',
998
+ Modules: 'modules',
999
+ GameServerModules: 'gameServerModules',
1000
+ GameServerOverview: 'gameServerOverview',
1001
+ GameServerConsole: 'gameServerConsole',
1002
+ DashboardBriefing: 'dashboardBriefing',
1003
+ EventsFilter: 'eventsFilter',
1004
+ RoleBuilder: 'roleBuilder',
1005
+ ModuleConfig: 'moduleConfig',
1006
+ GameServerShop: 'gameServerShop',
1007
+ ModuleOverview: 'moduleOverview',
1008
+ ModuleBuilder: 'moduleBuilder',
1009
+ EventFailure: 'eventFailure',
1010
+ CsmmMigration: 'csmmMigration',
1011
+ };
1012
+ export const ThreadOutputDTOStatusEnum = {
1013
+ Idle: 'idle',
1014
+ Working: 'working',
1015
+ Stopping: 'stopping',
1016
+ Failed: 'failed',
1017
+ AwaitingApproval: 'awaitingApproval',
1018
+ AwaitingReply: 'awaitingReply',
1019
+ };
1020
+ export const ThreadOutputDTOOriginSurfaceEnum = {
1021
+ CommandPalette: 'commandPalette',
1022
+ PlayerSummary: 'playerSummary',
1023
+ Modules: 'modules',
1024
+ GameServerModules: 'gameServerModules',
1025
+ GameServerOverview: 'gameServerOverview',
1026
+ GameServerConsole: 'gameServerConsole',
1027
+ DashboardBriefing: 'dashboardBriefing',
1028
+ EventsFilter: 'eventsFilter',
1029
+ RoleBuilder: 'roleBuilder',
1030
+ ModuleConfig: 'moduleConfig',
1031
+ GameServerShop: 'gameServerShop',
1032
+ ModuleOverview: 'moduleOverview',
1033
+ ModuleBuilder: 'moduleBuilder',
1034
+ EventFailure: 'eventFailure',
1035
+ CsmmMigration: 'csmmMigration',
1036
+ };
1037
+ export const ThreadSearchInputAllowedFiltersStatusEnum = {
1038
+ Idle: 'idle',
1039
+ Working: 'working',
1040
+ Stopping: 'stopping',
1041
+ Failed: 'failed',
1042
+ AwaitingApproval: 'awaitingApproval',
1043
+ AwaitingReply: 'awaitingReply',
1044
+ };
1045
+ export const ThreadSearchInputAllowedFiltersOriginSurfaceEnum = {
1046
+ CommandPalette: 'commandPalette',
1047
+ PlayerSummary: 'playerSummary',
1048
+ Modules: 'modules',
1049
+ GameServerModules: 'gameServerModules',
1050
+ GameServerOverview: 'gameServerOverview',
1051
+ GameServerConsole: 'gameServerConsole',
1052
+ DashboardBriefing: 'dashboardBriefing',
1053
+ EventsFilter: 'eventsFilter',
1054
+ RoleBuilder: 'roleBuilder',
1055
+ ModuleConfig: 'moduleConfig',
1056
+ GameServerShop: 'gameServerShop',
1057
+ ModuleOverview: 'moduleOverview',
1058
+ ModuleBuilder: 'moduleBuilder',
1059
+ EventFailure: 'eventFailure',
1060
+ CsmmMigration: 'csmmMigration',
1061
+ };
1062
+ export const ThreadSearchInputDTOSortDirectionEnum = {
1063
+ Asc: 'asc',
1064
+ Desc: 'desc',
1065
+ };
1066
+ export const ThreadStepApprovalDTOOutcomeEnum = {
1067
+ Approved: 'approved',
1068
+ Denied: 'denied',
1069
+ AutoAllowed: 'autoAllowed',
1070
+ Cancelled: 'cancelled',
1071
+ };
1072
+ export const ThreadStepOutputDTOKindEnum = {
1073
+ UserMessage: 'userMessage',
1074
+ ModelMessage: 'modelMessage',
1075
+ ToolCall: 'toolCall',
1076
+ ToolResult: 'toolResult',
1077
+ ApprovalRequest: 'approvalRequest',
1078
+ ApprovalOutcome: 'approvalOutcome',
1079
+ };
1080
+ export const ThreadStepReferenceDTOTypeEnum = {
1081
+ Player: 'player',
1082
+ GameServer: 'gameServer',
1083
+ Module: 'module',
1084
+ ModuleVersion: 'moduleVersion',
1085
+ Event: 'event',
1086
+ CsmmImport: 'csmmImport',
1087
+ };
1088
+ export const ThreadWithStepsOutputDTOStatusEnum = {
1089
+ Idle: 'idle',
1090
+ Working: 'working',
1091
+ Stopping: 'stopping',
1092
+ Failed: 'failed',
1093
+ AwaitingApproval: 'awaitingApproval',
1094
+ AwaitingReply: 'awaitingReply',
1095
+ };
1096
+ export const ThreadWithStepsOutputDTOOriginSurfaceEnum = {
1097
+ CommandPalette: 'commandPalette',
1098
+ PlayerSummary: 'playerSummary',
1099
+ Modules: 'modules',
1100
+ GameServerModules: 'gameServerModules',
1101
+ GameServerOverview: 'gameServerOverview',
1102
+ GameServerConsole: 'gameServerConsole',
1103
+ DashboardBriefing: 'dashboardBriefing',
1104
+ EventsFilter: 'eventsFilter',
1105
+ RoleBuilder: 'roleBuilder',
1106
+ ModuleConfig: 'moduleConfig',
1107
+ GameServerShop: 'gameServerShop',
1108
+ ModuleOverview: 'moduleOverview',
1109
+ ModuleBuilder: 'moduleBuilder',
1110
+ EventFailure: 'eventFailure',
1111
+ CsmmMigration: 'csmmMigration',
1112
+ };
1113
+ export const TriggerJobInputDTOTypeEnum = {
1114
+ SeedModules: 'seedModules',
1115
+ CleanEvents: 'cleanEvents',
1116
+ CleanExpiringVariables: 'cleanExpiringVariables',
1117
+ EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
1118
+ DeleteGameServers: 'deleteGameServers',
1119
+ SyncItems: 'syncItems',
1120
+ SyncEntities: 'syncEntities',
1121
+ SyncBans: 'syncBans',
1122
+ SyncMapImages: 'syncMapImages',
1123
+ SyncMapUploads: 'syncMapUploads',
1124
+ SyncSteam: 'syncSteam',
1125
+ SyncDiscordRoles: 'syncDiscordRoles',
1126
+ };
784
1127
  export const UserSearchInputDTOExtendEnum = {
785
1128
  Roles: 'roles',
786
1129
  };
@@ -1545,7 +1888,7 @@ export class DistributorApi extends BaseAPI {
1545
1888
  export const DistributorSelfServiceApiAxiosParamCreator = function (configuration) {
1546
1889
  return {
1547
1890
  /**
1548
- * Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan, applied by the billing reconciler within seconds; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
1891
+ * Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan and apply at creation; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
1549
1892
  * @summary Create a domain
1550
1893
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
1551
1894
  * @param {*} [options] Override http request option.
@@ -1855,7 +2198,7 @@ export const DistributorSelfServiceApiAxiosParamCreator = function (configuratio
1855
2198
  };
1856
2199
  },
1857
2200
  /**
1858
- * Moves the domain onto another of the Plans allowed for the calling distributor and enqueues the reconciliation that writes the Plan’s limits onto the domain, normally within seconds. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-runs the reconciliation and writes nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
2201
+ * Moves the domain onto another of the Plans allowed for the calling distributor; the Plan’s limits apply before the response. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-applies its limits and records nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
1859
2202
  * @summary Change one of my domains’ Plan
1860
2203
  * @param {string} id
1861
2204
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -1898,7 +2241,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
1898
2241
  const localVarAxiosParamCreator = DistributorSelfServiceApiAxiosParamCreator(configuration);
1899
2242
  return {
1900
2243
  /**
1901
- * Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan, applied by the billing reconciler within seconds; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
2244
+ * Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan and apply at creation; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
1902
2245
  * @summary Create a domain
1903
2246
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
1904
2247
  * @param {*} [options] Override http request option.
@@ -2028,7 +2371,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
2028
2371
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2029
2372
  },
2030
2373
  /**
2031
- * Moves the domain onto another of the Plans allowed for the calling distributor and enqueues the reconciliation that writes the Plan’s limits onto the domain, normally within seconds. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-runs the reconciliation and writes nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
2374
+ * Moves the domain onto another of the Plans allowed for the calling distributor; the Plan’s limits apply before the response. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-applies its limits and records nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
2032
2375
  * @summary Change one of my domains’ Plan
2033
2376
  * @param {string} id
2034
2377
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -2051,7 +2394,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
2051
2394
  const localVarFp = DistributorSelfServiceApiFp(configuration);
2052
2395
  return {
2053
2396
  /**
2054
- * Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan, applied by the billing reconciler within seconds; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
2397
+ * Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan and apply at creation; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
2055
2398
  * @summary Create a domain
2056
2399
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
2057
2400
  * @param {*} [options] Override http request option.
@@ -2169,7 +2512,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
2169
2512
  .then((request) => request(axios, basePath));
2170
2513
  },
2171
2514
  /**
2172
- * Moves the domain onto another of the Plans allowed for the calling distributor and enqueues the reconciliation that writes the Plan’s limits onto the domain, normally within seconds. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-runs the reconciliation and writes nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
2515
+ * Moves the domain onto another of the Plans allowed for the calling distributor; the Plan’s limits apply before the response. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-applies its limits and records nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
2173
2516
  * @summary Change one of my domains’ Plan
2174
2517
  * @param {string} id
2175
2518
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -2191,7 +2534,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
2191
2534
  */
2192
2535
  export class DistributorSelfServiceApi extends BaseAPI {
2193
2536
  /**
2194
- * Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan, applied by the billing reconciler within seconds; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
2537
+ * Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan and apply at creation; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
2195
2538
  * @summary Create a domain
2196
2539
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
2197
2540
  * @param {*} [options] Override http request option.
@@ -2321,7 +2664,7 @@ export class DistributorSelfServiceApi extends BaseAPI {
2321
2664
  .then((request) => request(this.axios, this.basePath));
2322
2665
  }
2323
2666
  /**
2324
- * Moves the domain onto another of the Plans allowed for the calling distributor and enqueues the reconciliation that writes the Plan’s limits onto the domain, normally within seconds. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-runs the reconciliation and writes nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
2667
+ * Moves the domain onto another of the Plans allowed for the calling distributor; the Plan’s limits apply before the response. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-applies its limits and records nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
2325
2668
  * @summary Change one of my domains’ Plan
2326
2669
  * @param {string} id
2327
2670
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -2633,21 +2976,24 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2633
2976
  };
2634
2977
  },
2635
2978
  /**
2636
- * The domains attributed to a distributor, with the Plan their limits come from. This is the billing reconciler’s read: it never returns a subscription-backed domain, which is what makes it a reconciler sweep rather than a domain listing.<br> OperationId: `DomainControllerSearchDistributorBacked`
2637
- * @summary Search distributor-backed domains
2638
- * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
2979
+ * Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set variable, module, function, concurrency and rate limits that differ from the Plan are kept as overrides. Refused for a distributor-backed domain.<br> OperationId: `DomainControllerSetPlan`
2980
+ * @summary Put a subscription-backed domain on a Plan
2981
+ * @param {string} id
2982
+ * @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
2639
2983
  * @param {*} [options] Override http request option.
2640
2984
  * @throws {RequiredError}
2641
2985
  */
2642
- domainControllerSearchDistributorBacked: async (distributorBackedDomainSearchInputDTO, options = {}) => {
2643
- const localVarPath = `/domain/distributor-backed/search`;
2986
+ domainControllerSetPlan: async (id, domainPlanInputDTO, options = {}) => {
2987
+ // verify required parameter 'id' is not null or undefined
2988
+ assertParamExists('domainControllerSetPlan', 'id', id);
2989
+ const localVarPath = `/domain/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2644
2990
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2645
2991
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2646
2992
  let baseOptions;
2647
2993
  if (configuration) {
2648
2994
  baseOptions = configuration.baseOptions;
2649
2995
  }
2650
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2996
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
2651
2997
  const localVarHeaderParameter = {};
2652
2998
  const localVarQueryParameter = {};
2653
2999
  // authentication staffSession required
@@ -2657,7 +3003,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2657
3003
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2658
3004
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2659
3005
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2660
- localVarRequestOptions.data = serializeDataIfNeeded(distributorBackedDomainSearchInputDTO, localVarRequestOptions, configuration);
3006
+ localVarRequestOptions.data = serializeDataIfNeeded(domainPlanInputDTO, localVarRequestOptions, configuration);
2661
3007
  return {
2662
3008
  url: toPathString(localVarUrlObj),
2663
3009
  options: localVarRequestOptions,
@@ -2827,16 +3173,17 @@ export const DomainApiFp = function (configuration) {
2827
3173
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2828
3174
  },
2829
3175
  /**
2830
- * The domains attributed to a distributor, with the Plan their limits come from. This is the billing reconciler’s read: it never returns a subscription-backed domain, which is what makes it a reconciler sweep rather than a domain listing.<br> OperationId: `DomainControllerSearchDistributorBacked`
2831
- * @summary Search distributor-backed domains
2832
- * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
3176
+ * Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set variable, module, function, concurrency and rate limits that differ from the Plan are kept as overrides. Refused for a distributor-backed domain.<br> OperationId: `DomainControllerSetPlan`
3177
+ * @summary Put a subscription-backed domain on a Plan
3178
+ * @param {string} id
3179
+ * @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
2833
3180
  * @param {*} [options] Override http request option.
2834
3181
  * @throws {RequiredError}
2835
3182
  */
2836
- async domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
2837
- const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options);
3183
+ async domainControllerSetPlan(id, domainPlanInputDTO, options) {
3184
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlan(id, domainPlanInputDTO, options);
2838
3185
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2839
- const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSearchDistributorBacked']?.[localVarOperationServerIndex]?.url;
3186
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlan']?.[localVarOperationServerIndex]?.url;
2840
3187
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2841
3188
  },
2842
3189
  /**
@@ -2966,15 +3313,16 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
2966
3313
  .then((request) => request(axios, basePath));
2967
3314
  },
2968
3315
  /**
2969
- * The domains attributed to a distributor, with the Plan their limits come from. This is the billing reconciler’s read: it never returns a subscription-backed domain, which is what makes it a reconciler sweep rather than a domain listing.<br> OperationId: `DomainControllerSearchDistributorBacked`
2970
- * @summary Search distributor-backed domains
2971
- * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
3316
+ * Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set variable, module, function, concurrency and rate limits that differ from the Plan are kept as overrides. Refused for a distributor-backed domain.<br> OperationId: `DomainControllerSetPlan`
3317
+ * @summary Put a subscription-backed domain on a Plan
3318
+ * @param {string} id
3319
+ * @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
2972
3320
  * @param {*} [options] Override http request option.
2973
3321
  * @throws {RequiredError}
2974
3322
  */
2975
- domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
3323
+ domainControllerSetPlan(id, domainPlanInputDTO, options) {
2976
3324
  return localVarFp
2977
- .domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options)
3325
+ .domainControllerSetPlan(id, domainPlanInputDTO, options)
2978
3326
  .then((request) => request(axios, basePath));
2979
3327
  },
2980
3328
  /**
@@ -3120,16 +3468,17 @@ export class DomainApi extends BaseAPI {
3120
3468
  .then((request) => request(this.axios, this.basePath));
3121
3469
  }
3122
3470
  /**
3123
- * The domains attributed to a distributor, with the Plan their limits come from. This is the billing reconciler’s read: it never returns a subscription-backed domain, which is what makes it a reconciler sweep rather than a domain listing.<br> OperationId: `DomainControllerSearchDistributorBacked`
3124
- * @summary Search distributor-backed domains
3125
- * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
3471
+ * Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set variable, module, function, concurrency and rate limits that differ from the Plan are kept as overrides. Refused for a distributor-backed domain.<br> OperationId: `DomainControllerSetPlan`
3472
+ * @summary Put a subscription-backed domain on a Plan
3473
+ * @param {string} id
3474
+ * @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
3126
3475
  * @param {*} [options] Override http request option.
3127
3476
  * @throws {RequiredError}
3128
3477
  * @memberof DomainApi
3129
3478
  */
3130
- domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
3479
+ domainControllerSetPlan(id, domainPlanInputDTO, options) {
3131
3480
  return DomainApiFp(this.configuration)
3132
- .domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options)
3481
+ .domainControllerSetPlan(id, domainPlanInputDTO, options)
3133
3482
  .then((request) => request(this.axios, this.basePath));
3134
3483
  }
3135
3484
  /**
@@ -3148,69 +3497,88 @@ export class DomainApi extends BaseAPI {
3148
3497
  }
3149
3498
  }
3150
3499
  /**
3151
- * MetaApi - axios parameter creator
3500
+ * FixtureHistoryApi - axios parameter creator
3152
3501
  * @export
3153
3502
  */
3154
- export const MetaApiAxiosParamCreator = function (configuration) {
3503
+ export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
3155
3504
  return {
3156
3505
  /**
3157
- * <br> OperationId: `MetaGetHealth`
3158
- * @summary Get health
3506
+ * <br> OperationId: `FixtureHistoryControllerActivity`
3507
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
3508
+ * @param {string} domainId
3509
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
3159
3510
  * @param {*} [options] Override http request option.
3160
3511
  * @throws {RequiredError}
3161
3512
  */
3162
- metaGetHealth: async (options = {}) => {
3163
- const localVarPath = `/healthz`;
3513
+ fixtureHistoryControllerActivity: async (domainId, fixtureHistoryActivityInputDTO, options = {}) => {
3514
+ // verify required parameter 'domainId' is not null or undefined
3515
+ assertParamExists('fixtureHistoryControllerActivity', 'domainId', domainId);
3516
+ const localVarPath = `/fixture-history/domains/{domainId}/activity`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3164
3517
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3165
3518
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3166
3519
  let baseOptions;
3167
3520
  if (configuration) {
3168
3521
  baseOptions = configuration.baseOptions;
3169
3522
  }
3170
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3523
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3171
3524
  const localVarHeaderParameter = {};
3172
3525
  const localVarQueryParameter = {};
3526
+ // authentication adminAuth required
3527
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3528
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3173
3529
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3174
3530
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3175
3531
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3532
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryActivityInputDTO, localVarRequestOptions, configuration);
3176
3533
  return {
3177
3534
  url: toPathString(localVarUrlObj),
3178
3535
  options: localVarRequestOptions,
3179
3536
  };
3180
3537
  },
3181
3538
  /**
3182
- * <br> OperationId: `MetaGetLiveness`
3183
- * @summary Get liveness
3539
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
3540
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
3541
+ * @param {string} domainId
3542
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
3184
3543
  * @param {*} [options] Override http request option.
3185
3544
  * @throws {RequiredError}
3186
3545
  */
3187
- metaGetLiveness: async (options = {}) => {
3188
- const localVarPath = `/livez`;
3546
+ fixtureHistoryControllerAnalytics: async (domainId, fixtureHistoryAnalyticsInputDTO, options = {}) => {
3547
+ // verify required parameter 'domainId' is not null or undefined
3548
+ assertParamExists('fixtureHistoryControllerAnalytics', 'domainId', domainId);
3549
+ const localVarPath = `/fixture-history/domains/{domainId}/analytics`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3189
3550
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3190
3551
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3191
3552
  let baseOptions;
3192
3553
  if (configuration) {
3193
3554
  baseOptions = configuration.baseOptions;
3194
3555
  }
3195
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3556
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3196
3557
  const localVarHeaderParameter = {};
3197
3558
  const localVarQueryParameter = {};
3559
+ // authentication adminAuth required
3560
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3561
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3198
3562
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3199
3563
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3200
3564
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3565
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryAnalyticsInputDTO, localVarRequestOptions, configuration);
3201
3566
  return {
3202
3567
  url: toPathString(localVarUrlObj),
3203
3568
  options: localVarRequestOptions,
3204
3569
  };
3205
3570
  },
3206
3571
  /**
3207
- * <br> OperationId: `MetaGetMetrics`
3208
- * @summary Get metrics
3572
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
3573
+ * @summary What the writer can do for this domain, and the domain\'s event retention
3574
+ * @param {string} domainId
3209
3575
  * @param {*} [options] Override http request option.
3210
3576
  * @throws {RequiredError}
3211
3577
  */
3212
- metaGetMetrics: async (options = {}) => {
3213
- const localVarPath = `/metrics`;
3578
+ fixtureHistoryControllerCapabilities: async (domainId, options = {}) => {
3579
+ // verify required parameter 'domainId' is not null or undefined
3580
+ assertParamExists('fixtureHistoryControllerCapabilities', 'domainId', domainId);
3581
+ const localVarPath = `/fixture-history/domains/{domainId}/capabilities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3214
3582
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3215
3583
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3216
3584
  let baseOptions;
@@ -3220,6 +3588,8 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3220
3588
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3221
3589
  const localVarHeaderParameter = {};
3222
3590
  const localVarQueryParameter = {};
3591
+ // authentication adminAuth required
3592
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3223
3593
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3224
3594
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3225
3595
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3229,379 +3599,1976 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3229
3599
  };
3230
3600
  },
3231
3601
  /**
3232
- * <br> OperationId: `MetaGetOpenApi`
3233
- * @summary Get open api
3602
+ * <br> OperationId: `FixtureHistoryControllerDelete`
3603
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
3604
+ * @param {string} domainId
3605
+ * @param {string} fixtureDatasetId
3606
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
3234
3607
  * @param {*} [options] Override http request option.
3235
3608
  * @throws {RequiredError}
3236
3609
  */
3237
- metaGetOpenApi: async (options = {}) => {
3238
- const localVarPath = `/openapi.json`;
3610
+ fixtureHistoryControllerDelete: async (domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options = {}) => {
3611
+ // verify required parameter 'domainId' is not null or undefined
3612
+ assertParamExists('fixtureHistoryControllerDelete', 'domainId', domainId);
3613
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3614
+ assertParamExists('fixtureHistoryControllerDelete', 'fixtureDatasetId', fixtureDatasetId);
3615
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/delete`
3616
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3617
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3239
3618
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3240
3619
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3241
3620
  let baseOptions;
3242
3621
  if (configuration) {
3243
3622
  baseOptions = configuration.baseOptions;
3244
3623
  }
3245
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3624
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3246
3625
  const localVarHeaderParameter = {};
3247
3626
  const localVarQueryParameter = {};
3627
+ // authentication adminAuth required
3628
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3629
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3248
3630
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3249
3631
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3250
3632
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3633
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryDeleteInputDTO, localVarRequestOptions, configuration);
3251
3634
  return {
3252
3635
  url: toPathString(localVarUrlObj),
3253
3636
  options: localVarRequestOptions,
3254
3637
  };
3255
3638
  },
3256
3639
  /**
3257
- * <br> OperationId: `MetaGetOpenApiHtml`
3258
- * @summary Get open api html
3640
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
3641
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
3642
+ * @param {string} domainId
3643
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
3259
3644
  * @param {*} [options] Override http request option.
3260
3645
  * @throws {RequiredError}
3261
3646
  */
3262
- metaGetOpenApiHtml: async (options = {}) => {
3263
- const localVarPath = `/api.html`;
3647
+ fixtureHistoryControllerEconomyReadiness: async (domainId, fixtureHistoryEconomyReadinessInputDTO, options = {}) => {
3648
+ // verify required parameter 'domainId' is not null or undefined
3649
+ assertParamExists('fixtureHistoryControllerEconomyReadiness', 'domainId', domainId);
3650
+ const localVarPath = `/fixture-history/domains/{domainId}/economy-readiness`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3264
3651
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3265
3652
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3266
3653
  let baseOptions;
3267
3654
  if (configuration) {
3268
3655
  baseOptions = configuration.baseOptions;
3269
3656
  }
3270
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3657
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3271
3658
  const localVarHeaderParameter = {};
3272
3659
  const localVarQueryParameter = {};
3660
+ // authentication adminAuth required
3661
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3662
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3273
3663
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3274
3664
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3275
3665
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3666
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryEconomyReadinessInputDTO, localVarRequestOptions, configuration);
3276
3667
  return {
3277
3668
  url: toPathString(localVarUrlObj),
3278
3669
  options: localVarRequestOptions,
3279
3670
  };
3280
3671
  },
3281
3672
  /**
3282
- * <br> OperationId: `MetaGetReadiness`
3283
- * @summary Get readiness
3673
+ * One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
3674
+ * @summary Write owned, back-dated players and players-on-gameserver
3675
+ * @param {string} domainId
3676
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
3284
3677
  * @param {*} [options] Override http request option.
3285
3678
  * @throws {RequiredError}
3286
3679
  */
3287
- metaGetReadiness: async (options = {}) => {
3288
- const localVarPath = `/readyz`;
3680
+ fixtureHistoryControllerIdentities: async (domainId, fixtureHistoryIdentitiesInputDTO, options = {}) => {
3681
+ // verify required parameter 'domainId' is not null or undefined
3682
+ assertParamExists('fixtureHistoryControllerIdentities', 'domainId', domainId);
3683
+ const localVarPath = `/fixture-history/domains/{domainId}/identities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3289
3684
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3290
3685
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3291
3686
  let baseOptions;
3292
3687
  if (configuration) {
3293
3688
  baseOptions = configuration.baseOptions;
3294
3689
  }
3295
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3690
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3296
3691
  const localVarHeaderParameter = {};
3297
3692
  const localVarQueryParameter = {};
3693
+ // authentication adminAuth required
3694
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3695
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3298
3696
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3299
3697
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3300
3698
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3699
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryIdentitiesInputDTO, localVarRequestOptions, configuration);
3301
3700
  return {
3302
3701
  url: toPathString(localVarUrlObj),
3303
3702
  options: localVarRequestOptions,
3304
3703
  };
3305
3704
  },
3306
3705
  /**
3307
- * <br> OperationId: `MetaGetRoot`
3308
- * @summary Get root
3706
+ * <br> OperationId: `FixtureHistoryControllerInventory`
3707
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
3708
+ * @param {string} domainId
3709
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
3309
3710
  * @param {*} [options] Override http request option.
3310
3711
  * @throws {RequiredError}
3311
3712
  */
3312
- metaGetRoot: async (options = {}) => {
3313
- const localVarPath = `/`;
3713
+ fixtureHistoryControllerInventory: async (domainId, fixtureHistoryInventoryInputDTO, options = {}) => {
3714
+ // verify required parameter 'domainId' is not null or undefined
3715
+ assertParamExists('fixtureHistoryControllerInventory', 'domainId', domainId);
3716
+ const localVarPath = `/fixture-history/domains/{domainId}/inventory`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3314
3717
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3315
3718
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3316
3719
  let baseOptions;
3317
3720
  if (configuration) {
3318
3721
  baseOptions = configuration.baseOptions;
3319
3722
  }
3320
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3723
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3321
3724
  const localVarHeaderParameter = {};
3322
3725
  const localVarQueryParameter = {};
3726
+ // authentication adminAuth required
3727
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3728
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3323
3729
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3324
3730
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3325
3731
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3732
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryInventoryInputDTO, localVarRequestOptions, configuration);
3326
3733
  return {
3327
3734
  url: toPathString(localVarUrlObj),
3328
3735
  options: localVarRequestOptions,
3329
3736
  };
3330
3737
  },
3331
- };
3332
- };
3333
- /**
3334
- * MetaApi - functional programming interface
3335
- * @export
3336
- */
3337
- export const MetaApiFp = function (configuration) {
3338
- const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration);
3339
- return {
3340
3738
  /**
3341
- * <br> OperationId: `MetaGetHealth`
3342
- * @summary Get health
3739
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
3740
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
3741
+ * @param {string} domainId
3742
+ * @param {string} fixtureDatasetId
3743
+ * @param {string} [cursor]
3343
3744
  * @param {*} [options] Override http request option.
3344
3745
  * @throws {RequiredError}
3345
3746
  */
3346
- async metaGetHealth(options) {
3347
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetHealth(options);
3348
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3349
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetHealth']?.[localVarOperationServerIndex]?.url;
3350
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3747
+ fixtureHistoryControllerInventoryPage: async (domainId, fixtureDatasetId, cursor, options = {}) => {
3748
+ // verify required parameter 'domainId' is not null or undefined
3749
+ assertParamExists('fixtureHistoryControllerInventoryPage', 'domainId', domainId);
3750
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3751
+ assertParamExists('fixtureHistoryControllerInventoryPage', 'fixtureDatasetId', fixtureDatasetId);
3752
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/inventory`
3753
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3754
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3755
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3756
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3757
+ let baseOptions;
3758
+ if (configuration) {
3759
+ baseOptions = configuration.baseOptions;
3760
+ }
3761
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3762
+ const localVarHeaderParameter = {};
3763
+ const localVarQueryParameter = {};
3764
+ // authentication adminAuth required
3765
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3766
+ if (cursor !== undefined) {
3767
+ localVarQueryParameter['cursor'] = cursor;
3768
+ }
3769
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3770
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3771
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3772
+ return {
3773
+ url: toPathString(localVarUrlObj),
3774
+ options: localVarRequestOptions,
3775
+ };
3351
3776
  },
3352
3777
  /**
3353
- * <br> OperationId: `MetaGetLiveness`
3354
- * @summary Get liveness
3778
+ * One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
3779
+ * @summary Write owned, back-dated shop listings
3780
+ * @param {string} domainId
3781
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
3355
3782
  * @param {*} [options] Override http request option.
3356
3783
  * @throws {RequiredError}
3357
3784
  */
3358
- async metaGetLiveness(options) {
3359
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetLiveness(options);
3360
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3361
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
3362
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3785
+ fixtureHistoryControllerListings: async (domainId, fixtureHistoryListingsInputDTO, options = {}) => {
3786
+ // verify required parameter 'domainId' is not null or undefined
3787
+ assertParamExists('fixtureHistoryControllerListings', 'domainId', domainId);
3788
+ const localVarPath = `/fixture-history/domains/{domainId}/listings`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3789
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3790
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3791
+ let baseOptions;
3792
+ if (configuration) {
3793
+ baseOptions = configuration.baseOptions;
3794
+ }
3795
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3796
+ const localVarHeaderParameter = {};
3797
+ const localVarQueryParameter = {};
3798
+ // authentication adminAuth required
3799
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3800
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3801
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3802
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3803
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3804
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryListingsInputDTO, localVarRequestOptions, configuration);
3805
+ return {
3806
+ url: toPathString(localVarUrlObj),
3807
+ options: localVarRequestOptions,
3808
+ };
3363
3809
  },
3364
3810
  /**
3365
- * <br> OperationId: `MetaGetMetrics`
3366
- * @summary Get metrics
3811
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
3812
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
3813
+ * @param {string} domainId
3814
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
3367
3815
  * @param {*} [options] Override http request option.
3368
3816
  * @throws {RequiredError}
3369
3817
  */
3370
- async metaGetMetrics(options) {
3371
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetMetrics(options);
3372
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3373
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetMetrics']?.[localVarOperationServerIndex]?.url;
3374
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3818
+ fixtureHistoryControllerOrders: async (domainId, fixtureHistoryOrdersInputDTO, options = {}) => {
3819
+ // verify required parameter 'domainId' is not null or undefined
3820
+ assertParamExists('fixtureHistoryControllerOrders', 'domainId', domainId);
3821
+ const localVarPath = `/fixture-history/domains/{domainId}/orders`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3822
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3823
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3824
+ let baseOptions;
3825
+ if (configuration) {
3826
+ baseOptions = configuration.baseOptions;
3827
+ }
3828
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3829
+ const localVarHeaderParameter = {};
3830
+ const localVarQueryParameter = {};
3831
+ // authentication adminAuth required
3832
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3833
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3834
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3835
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3836
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3837
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryOrdersInputDTO, localVarRequestOptions, configuration);
3838
+ return {
3839
+ url: toPathString(localVarUrlObj),
3840
+ options: localVarRequestOptions,
3841
+ };
3375
3842
  },
3376
3843
  /**
3377
- * <br> OperationId: `MetaGetOpenApi`
3378
- * @summary Get open api
3844
+ * <br> OperationId: `FixtureHistoryControllerSummary`
3845
+ * @summary Owned row counts per store, and unowned events naming owned players
3846
+ * @param {string} domainId
3847
+ * @param {string} fixtureDatasetId
3848
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
3379
3849
  * @param {*} [options] Override http request option.
3380
3850
  * @throws {RequiredError}
3381
3851
  */
3382
- async metaGetOpenApi(options) {
3383
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options);
3384
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3852
+ fixtureHistoryControllerSummary: async (domainId, fixtureDatasetId, since, options = {}) => {
3853
+ // verify required parameter 'domainId' is not null or undefined
3854
+ assertParamExists('fixtureHistoryControllerSummary', 'domainId', domainId);
3855
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3856
+ assertParamExists('fixtureHistoryControllerSummary', 'fixtureDatasetId', fixtureDatasetId);
3857
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/summary`
3858
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3859
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3860
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3861
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3862
+ let baseOptions;
3863
+ if (configuration) {
3864
+ baseOptions = configuration.baseOptions;
3865
+ }
3866
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3867
+ const localVarHeaderParameter = {};
3868
+ const localVarQueryParameter = {};
3869
+ // authentication adminAuth required
3870
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3871
+ if (since !== undefined) {
3872
+ for (const [key, value] of Object.entries(since)) {
3873
+ localVarQueryParameter[key] = value;
3874
+ }
3875
+ }
3876
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3877
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3878
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3879
+ return {
3880
+ url: toPathString(localVarUrlObj),
3881
+ options: localVarRequestOptions,
3882
+ };
3883
+ },
3884
+ /**
3885
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
3886
+ * @summary Set the offline terminal state of owned players-on-gameserver
3887
+ * @param {string} domainId
3888
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
3889
+ * @param {*} [options] Override http request option.
3890
+ * @throws {RequiredError}
3891
+ */
3892
+ fixtureHistoryControllerTerminal: async (domainId, fixtureHistoryTerminalInputDTO, options = {}) => {
3893
+ // verify required parameter 'domainId' is not null or undefined
3894
+ assertParamExists('fixtureHistoryControllerTerminal', 'domainId', domainId);
3895
+ const localVarPath = `/fixture-history/domains/{domainId}/terminal-state`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3896
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3897
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3898
+ let baseOptions;
3899
+ if (configuration) {
3900
+ baseOptions = configuration.baseOptions;
3901
+ }
3902
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3903
+ const localVarHeaderParameter = {};
3904
+ const localVarQueryParameter = {};
3905
+ // authentication adminAuth required
3906
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3907
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3908
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3909
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3910
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3911
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTerminalInputDTO, localVarRequestOptions, configuration);
3912
+ return {
3913
+ url: toPathString(localVarUrlObj),
3914
+ options: localVarRequestOptions,
3915
+ };
3916
+ },
3917
+ /**
3918
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
3919
+ * @summary Page through the terminal state of owned players-on-gameserver
3920
+ * @param {string} domainId
3921
+ * @param {string} fixtureDatasetId
3922
+ * @param {string} [cursor]
3923
+ * @param {*} [options] Override http request option.
3924
+ * @throws {RequiredError}
3925
+ */
3926
+ fixtureHistoryControllerTerminalState: async (domainId, fixtureDatasetId, cursor, options = {}) => {
3927
+ // verify required parameter 'domainId' is not null or undefined
3928
+ assertParamExists('fixtureHistoryControllerTerminalState', 'domainId', domainId);
3929
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3930
+ assertParamExists('fixtureHistoryControllerTerminalState', 'fixtureDatasetId', fixtureDatasetId);
3931
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/terminal-state`
3932
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3933
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3934
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3935
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3936
+ let baseOptions;
3937
+ if (configuration) {
3938
+ baseOptions = configuration.baseOptions;
3939
+ }
3940
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3941
+ const localVarHeaderParameter = {};
3942
+ const localVarQueryParameter = {};
3943
+ // authentication adminAuth required
3944
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3945
+ if (cursor !== undefined) {
3946
+ localVarQueryParameter['cursor'] = cursor;
3947
+ }
3948
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3949
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3950
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3951
+ return {
3952
+ url: toPathString(localVarUrlObj),
3953
+ options: localVarRequestOptions,
3954
+ };
3955
+ },
3956
+ };
3957
+ };
3958
+ /**
3959
+ * FixtureHistoryApi - functional programming interface
3960
+ * @export
3961
+ */
3962
+ export const FixtureHistoryApiFp = function (configuration) {
3963
+ const localVarAxiosParamCreator = FixtureHistoryApiAxiosParamCreator(configuration);
3964
+ return {
3965
+ /**
3966
+ * <br> OperationId: `FixtureHistoryControllerActivity`
3967
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
3968
+ * @param {string} domainId
3969
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
3970
+ * @param {*} [options] Override http request option.
3971
+ * @throws {RequiredError}
3972
+ */
3973
+ async fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
3974
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options);
3975
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3976
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerActivity']?.[localVarOperationServerIndex]?.url;
3977
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3978
+ },
3979
+ /**
3980
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
3981
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
3982
+ * @param {string} domainId
3983
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
3984
+ * @param {*} [options] Override http request option.
3985
+ * @throws {RequiredError}
3986
+ */
3987
+ async fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
3988
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options);
3989
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3990
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerAnalytics']?.[localVarOperationServerIndex]?.url;
3991
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3992
+ },
3993
+ /**
3994
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
3995
+ * @summary What the writer can do for this domain, and the domain\'s event retention
3996
+ * @param {string} domainId
3997
+ * @param {*} [options] Override http request option.
3998
+ * @throws {RequiredError}
3999
+ */
4000
+ async fixtureHistoryControllerCapabilities(domainId, options) {
4001
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerCapabilities(domainId, options);
4002
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4003
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerCapabilities']?.[localVarOperationServerIndex]
4004
+ ?.url;
4005
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4006
+ },
4007
+ /**
4008
+ * <br> OperationId: `FixtureHistoryControllerDelete`
4009
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
4010
+ * @param {string} domainId
4011
+ * @param {string} fixtureDatasetId
4012
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
4013
+ * @param {*} [options] Override http request option.
4014
+ * @throws {RequiredError}
4015
+ */
4016
+ async fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
4017
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options);
4018
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4019
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerDelete']?.[localVarOperationServerIndex]?.url;
4020
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4021
+ },
4022
+ /**
4023
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4024
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4025
+ * @param {string} domainId
4026
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4027
+ * @param {*} [options] Override http request option.
4028
+ * @throws {RequiredError}
4029
+ */
4030
+ async fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4031
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options);
4032
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4033
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerEconomyReadiness']?.[localVarOperationServerIndex]
4034
+ ?.url;
4035
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4036
+ },
4037
+ /**
4038
+ * One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
4039
+ * @summary Write owned, back-dated players and players-on-gameserver
4040
+ * @param {string} domainId
4041
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4042
+ * @param {*} [options] Override http request option.
4043
+ * @throws {RequiredError}
4044
+ */
4045
+ async fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4046
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options);
4047
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4048
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerIdentities']?.[localVarOperationServerIndex]?.url;
4049
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4050
+ },
4051
+ /**
4052
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4053
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4054
+ * @param {string} domainId
4055
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4056
+ * @param {*} [options] Override http request option.
4057
+ * @throws {RequiredError}
4058
+ */
4059
+ async fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4060
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options);
4061
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4062
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventory']?.[localVarOperationServerIndex]?.url;
4063
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4064
+ },
4065
+ /**
4066
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4067
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4068
+ * @param {string} domainId
4069
+ * @param {string} fixtureDatasetId
4070
+ * @param {string} [cursor]
4071
+ * @param {*} [options] Override http request option.
4072
+ * @throws {RequiredError}
4073
+ */
4074
+ async fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4075
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options);
4076
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4077
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventoryPage']?.[localVarOperationServerIndex]
4078
+ ?.url;
4079
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4080
+ },
4081
+ /**
4082
+ * One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
4083
+ * @summary Write owned, back-dated shop listings
4084
+ * @param {string} domainId
4085
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4086
+ * @param {*} [options] Override http request option.
4087
+ * @throws {RequiredError}
4088
+ */
4089
+ async fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4090
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options);
4091
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4092
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerListings']?.[localVarOperationServerIndex]?.url;
4093
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4094
+ },
4095
+ /**
4096
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4097
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4098
+ * @param {string} domainId
4099
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4100
+ * @param {*} [options] Override http request option.
4101
+ * @throws {RequiredError}
4102
+ */
4103
+ async fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4104
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options);
4105
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4106
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerOrders']?.[localVarOperationServerIndex]?.url;
4107
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4108
+ },
4109
+ /**
4110
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4111
+ * @summary Owned row counts per store, and unowned events naming owned players
4112
+ * @param {string} domainId
4113
+ * @param {string} fixtureDatasetId
4114
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4115
+ * @param {*} [options] Override http request option.
4116
+ * @throws {RequiredError}
4117
+ */
4118
+ async fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4119
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options);
4120
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4121
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerSummary']?.[localVarOperationServerIndex]?.url;
4122
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4123
+ },
4124
+ /**
4125
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4126
+ * @summary Set the offline terminal state of owned players-on-gameserver
4127
+ * @param {string} domainId
4128
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4129
+ * @param {*} [options] Override http request option.
4130
+ * @throws {RequiredError}
4131
+ */
4132
+ async fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4133
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options);
4134
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4135
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminal']?.[localVarOperationServerIndex]?.url;
4136
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4137
+ },
4138
+ /**
4139
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4140
+ * @summary Page through the terminal state of owned players-on-gameserver
4141
+ * @param {string} domainId
4142
+ * @param {string} fixtureDatasetId
4143
+ * @param {string} [cursor]
4144
+ * @param {*} [options] Override http request option.
4145
+ * @throws {RequiredError}
4146
+ */
4147
+ async fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4148
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options);
4149
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4150
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminalState']?.[localVarOperationServerIndex]
4151
+ ?.url;
4152
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4153
+ },
4154
+ };
4155
+ };
4156
+ /**
4157
+ * FixtureHistoryApi - factory interface
4158
+ * @export
4159
+ */
4160
+ export const FixtureHistoryApiFactory = function (configuration, basePath, axios) {
4161
+ const localVarFp = FixtureHistoryApiFp(configuration);
4162
+ return {
4163
+ /**
4164
+ * <br> OperationId: `FixtureHistoryControllerActivity`
4165
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
4166
+ * @param {string} domainId
4167
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
4168
+ * @param {*} [options] Override http request option.
4169
+ * @throws {RequiredError}
4170
+ */
4171
+ fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
4172
+ return localVarFp
4173
+ .fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
4174
+ .then((request) => request(axios, basePath));
4175
+ },
4176
+ /**
4177
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
4178
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
4179
+ * @param {string} domainId
4180
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
4181
+ * @param {*} [options] Override http request option.
4182
+ * @throws {RequiredError}
4183
+ */
4184
+ fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
4185
+ return localVarFp
4186
+ .fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
4187
+ .then((request) => request(axios, basePath));
4188
+ },
4189
+ /**
4190
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
4191
+ * @summary What the writer can do for this domain, and the domain\'s event retention
4192
+ * @param {string} domainId
4193
+ * @param {*} [options] Override http request option.
4194
+ * @throws {RequiredError}
4195
+ */
4196
+ fixtureHistoryControllerCapabilities(domainId, options) {
4197
+ return localVarFp
4198
+ .fixtureHistoryControllerCapabilities(domainId, options)
4199
+ .then((request) => request(axios, basePath));
4200
+ },
4201
+ /**
4202
+ * <br> OperationId: `FixtureHistoryControllerDelete`
4203
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
4204
+ * @param {string} domainId
4205
+ * @param {string} fixtureDatasetId
4206
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
4207
+ * @param {*} [options] Override http request option.
4208
+ * @throws {RequiredError}
4209
+ */
4210
+ fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
4211
+ return localVarFp
4212
+ .fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
4213
+ .then((request) => request(axios, basePath));
4214
+ },
4215
+ /**
4216
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4217
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4218
+ * @param {string} domainId
4219
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4220
+ * @param {*} [options] Override http request option.
4221
+ * @throws {RequiredError}
4222
+ */
4223
+ fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4224
+ return localVarFp
4225
+ .fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
4226
+ .then((request) => request(axios, basePath));
4227
+ },
4228
+ /**
4229
+ * One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
4230
+ * @summary Write owned, back-dated players and players-on-gameserver
4231
+ * @param {string} domainId
4232
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4233
+ * @param {*} [options] Override http request option.
4234
+ * @throws {RequiredError}
4235
+ */
4236
+ fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4237
+ return localVarFp
4238
+ .fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
4239
+ .then((request) => request(axios, basePath));
4240
+ },
4241
+ /**
4242
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4243
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4244
+ * @param {string} domainId
4245
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4246
+ * @param {*} [options] Override http request option.
4247
+ * @throws {RequiredError}
4248
+ */
4249
+ fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4250
+ return localVarFp
4251
+ .fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
4252
+ .then((request) => request(axios, basePath));
4253
+ },
4254
+ /**
4255
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4256
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4257
+ * @param {string} domainId
4258
+ * @param {string} fixtureDatasetId
4259
+ * @param {string} [cursor]
4260
+ * @param {*} [options] Override http request option.
4261
+ * @throws {RequiredError}
4262
+ */
4263
+ fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4264
+ return localVarFp
4265
+ .fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
4266
+ .then((request) => request(axios, basePath));
4267
+ },
4268
+ /**
4269
+ * One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
4270
+ * @summary Write owned, back-dated shop listings
4271
+ * @param {string} domainId
4272
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4273
+ * @param {*} [options] Override http request option.
4274
+ * @throws {RequiredError}
4275
+ */
4276
+ fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4277
+ return localVarFp
4278
+ .fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
4279
+ .then((request) => request(axios, basePath));
4280
+ },
4281
+ /**
4282
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4283
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4284
+ * @param {string} domainId
4285
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4286
+ * @param {*} [options] Override http request option.
4287
+ * @throws {RequiredError}
4288
+ */
4289
+ fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4290
+ return localVarFp
4291
+ .fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
4292
+ .then((request) => request(axios, basePath));
4293
+ },
4294
+ /**
4295
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4296
+ * @summary Owned row counts per store, and unowned events naming owned players
4297
+ * @param {string} domainId
4298
+ * @param {string} fixtureDatasetId
4299
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4300
+ * @param {*} [options] Override http request option.
4301
+ * @throws {RequiredError}
4302
+ */
4303
+ fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4304
+ return localVarFp
4305
+ .fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
4306
+ .then((request) => request(axios, basePath));
4307
+ },
4308
+ /**
4309
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4310
+ * @summary Set the offline terminal state of owned players-on-gameserver
4311
+ * @param {string} domainId
4312
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4313
+ * @param {*} [options] Override http request option.
4314
+ * @throws {RequiredError}
4315
+ */
4316
+ fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4317
+ return localVarFp
4318
+ .fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
4319
+ .then((request) => request(axios, basePath));
4320
+ },
4321
+ /**
4322
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4323
+ * @summary Page through the terminal state of owned players-on-gameserver
4324
+ * @param {string} domainId
4325
+ * @param {string} fixtureDatasetId
4326
+ * @param {string} [cursor]
4327
+ * @param {*} [options] Override http request option.
4328
+ * @throws {RequiredError}
4329
+ */
4330
+ fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4331
+ return localVarFp
4332
+ .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4333
+ .then((request) => request(axios, basePath));
4334
+ },
4335
+ };
4336
+ };
4337
+ /**
4338
+ * FixtureHistoryApi - object-oriented interface
4339
+ * @export
4340
+ * @class FixtureHistoryApi
4341
+ * @extends {BaseAPI}
4342
+ */
4343
+ export class FixtureHistoryApi extends BaseAPI {
4344
+ /**
4345
+ * <br> OperationId: `FixtureHistoryControllerActivity`
4346
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
4347
+ * @param {string} domainId
4348
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
4349
+ * @param {*} [options] Override http request option.
4350
+ * @throws {RequiredError}
4351
+ * @memberof FixtureHistoryApi
4352
+ */
4353
+ fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
4354
+ return FixtureHistoryApiFp(this.configuration)
4355
+ .fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
4356
+ .then((request) => request(this.axios, this.basePath));
4357
+ }
4358
+ /**
4359
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
4360
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
4361
+ * @param {string} domainId
4362
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
4363
+ * @param {*} [options] Override http request option.
4364
+ * @throws {RequiredError}
4365
+ * @memberof FixtureHistoryApi
4366
+ */
4367
+ fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
4368
+ return FixtureHistoryApiFp(this.configuration)
4369
+ .fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
4370
+ .then((request) => request(this.axios, this.basePath));
4371
+ }
4372
+ /**
4373
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
4374
+ * @summary What the writer can do for this domain, and the domain\'s event retention
4375
+ * @param {string} domainId
4376
+ * @param {*} [options] Override http request option.
4377
+ * @throws {RequiredError}
4378
+ * @memberof FixtureHistoryApi
4379
+ */
4380
+ fixtureHistoryControllerCapabilities(domainId, options) {
4381
+ return FixtureHistoryApiFp(this.configuration)
4382
+ .fixtureHistoryControllerCapabilities(domainId, options)
4383
+ .then((request) => request(this.axios, this.basePath));
4384
+ }
4385
+ /**
4386
+ * <br> OperationId: `FixtureHistoryControllerDelete`
4387
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
4388
+ * @param {string} domainId
4389
+ * @param {string} fixtureDatasetId
4390
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
4391
+ * @param {*} [options] Override http request option.
4392
+ * @throws {RequiredError}
4393
+ * @memberof FixtureHistoryApi
4394
+ */
4395
+ fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
4396
+ return FixtureHistoryApiFp(this.configuration)
4397
+ .fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
4398
+ .then((request) => request(this.axios, this.basePath));
4399
+ }
4400
+ /**
4401
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4402
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4403
+ * @param {string} domainId
4404
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4405
+ * @param {*} [options] Override http request option.
4406
+ * @throws {RequiredError}
4407
+ * @memberof FixtureHistoryApi
4408
+ */
4409
+ fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4410
+ return FixtureHistoryApiFp(this.configuration)
4411
+ .fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
4412
+ .then((request) => request(this.axios, this.basePath));
4413
+ }
4414
+ /**
4415
+ * One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
4416
+ * @summary Write owned, back-dated players and players-on-gameserver
4417
+ * @param {string} domainId
4418
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4419
+ * @param {*} [options] Override http request option.
4420
+ * @throws {RequiredError}
4421
+ * @memberof FixtureHistoryApi
4422
+ */
4423
+ fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4424
+ return FixtureHistoryApiFp(this.configuration)
4425
+ .fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
4426
+ .then((request) => request(this.axios, this.basePath));
4427
+ }
4428
+ /**
4429
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4430
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4431
+ * @param {string} domainId
4432
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4433
+ * @param {*} [options] Override http request option.
4434
+ * @throws {RequiredError}
4435
+ * @memberof FixtureHistoryApi
4436
+ */
4437
+ fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4438
+ return FixtureHistoryApiFp(this.configuration)
4439
+ .fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
4440
+ .then((request) => request(this.axios, this.basePath));
4441
+ }
4442
+ /**
4443
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4444
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4445
+ * @param {string} domainId
4446
+ * @param {string} fixtureDatasetId
4447
+ * @param {string} [cursor]
4448
+ * @param {*} [options] Override http request option.
4449
+ * @throws {RequiredError}
4450
+ * @memberof FixtureHistoryApi
4451
+ */
4452
+ fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4453
+ return FixtureHistoryApiFp(this.configuration)
4454
+ .fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
4455
+ .then((request) => request(this.axios, this.basePath));
4456
+ }
4457
+ /**
4458
+ * One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
4459
+ * @summary Write owned, back-dated shop listings
4460
+ * @param {string} domainId
4461
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4462
+ * @param {*} [options] Override http request option.
4463
+ * @throws {RequiredError}
4464
+ * @memberof FixtureHistoryApi
4465
+ */
4466
+ fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4467
+ return FixtureHistoryApiFp(this.configuration)
4468
+ .fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
4469
+ .then((request) => request(this.axios, this.basePath));
4470
+ }
4471
+ /**
4472
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4473
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4474
+ * @param {string} domainId
4475
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4476
+ * @param {*} [options] Override http request option.
4477
+ * @throws {RequiredError}
4478
+ * @memberof FixtureHistoryApi
4479
+ */
4480
+ fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4481
+ return FixtureHistoryApiFp(this.configuration)
4482
+ .fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
4483
+ .then((request) => request(this.axios, this.basePath));
4484
+ }
4485
+ /**
4486
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4487
+ * @summary Owned row counts per store, and unowned events naming owned players
4488
+ * @param {string} domainId
4489
+ * @param {string} fixtureDatasetId
4490
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4491
+ * @param {*} [options] Override http request option.
4492
+ * @throws {RequiredError}
4493
+ * @memberof FixtureHistoryApi
4494
+ */
4495
+ fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4496
+ return FixtureHistoryApiFp(this.configuration)
4497
+ .fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
4498
+ .then((request) => request(this.axios, this.basePath));
4499
+ }
4500
+ /**
4501
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4502
+ * @summary Set the offline terminal state of owned players-on-gameserver
4503
+ * @param {string} domainId
4504
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4505
+ * @param {*} [options] Override http request option.
4506
+ * @throws {RequiredError}
4507
+ * @memberof FixtureHistoryApi
4508
+ */
4509
+ fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4510
+ return FixtureHistoryApiFp(this.configuration)
4511
+ .fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
4512
+ .then((request) => request(this.axios, this.basePath));
4513
+ }
4514
+ /**
4515
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4516
+ * @summary Page through the terminal state of owned players-on-gameserver
4517
+ * @param {string} domainId
4518
+ * @param {string} fixtureDatasetId
4519
+ * @param {string} [cursor]
4520
+ * @param {*} [options] Override http request option.
4521
+ * @throws {RequiredError}
4522
+ * @memberof FixtureHistoryApi
4523
+ */
4524
+ fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4525
+ return FixtureHistoryApiFp(this.configuration)
4526
+ .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4527
+ .then((request) => request(this.axios, this.basePath));
4528
+ }
4529
+ }
4530
+ /**
4531
+ * MetaApi - axios parameter creator
4532
+ * @export
4533
+ */
4534
+ export const MetaApiAxiosParamCreator = function (configuration) {
4535
+ return {
4536
+ /**
4537
+ * <br> OperationId: `MetaGetHealth`
4538
+ * @summary Get health
4539
+ * @param {*} [options] Override http request option.
4540
+ * @throws {RequiredError}
4541
+ */
4542
+ metaGetHealth: async (options = {}) => {
4543
+ const localVarPath = `/healthz`;
4544
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4545
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4546
+ let baseOptions;
4547
+ if (configuration) {
4548
+ baseOptions = configuration.baseOptions;
4549
+ }
4550
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4551
+ const localVarHeaderParameter = {};
4552
+ const localVarQueryParameter = {};
4553
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4554
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4555
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4556
+ return {
4557
+ url: toPathString(localVarUrlObj),
4558
+ options: localVarRequestOptions,
4559
+ };
4560
+ },
4561
+ /**
4562
+ * <br> OperationId: `MetaGetLiveness`
4563
+ * @summary Get liveness
4564
+ * @param {*} [options] Override http request option.
4565
+ * @throws {RequiredError}
4566
+ */
4567
+ metaGetLiveness: async (options = {}) => {
4568
+ const localVarPath = `/livez`;
4569
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4570
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4571
+ let baseOptions;
4572
+ if (configuration) {
4573
+ baseOptions = configuration.baseOptions;
4574
+ }
4575
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4576
+ const localVarHeaderParameter = {};
4577
+ const localVarQueryParameter = {};
4578
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4579
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4580
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4581
+ return {
4582
+ url: toPathString(localVarUrlObj),
4583
+ options: localVarRequestOptions,
4584
+ };
4585
+ },
4586
+ /**
4587
+ * <br> OperationId: `MetaGetOpenApi`
4588
+ * @summary Get open api
4589
+ * @param {*} [options] Override http request option.
4590
+ * @throws {RequiredError}
4591
+ */
4592
+ metaGetOpenApi: async (options = {}) => {
4593
+ const localVarPath = `/openapi.json`;
4594
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4595
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4596
+ let baseOptions;
4597
+ if (configuration) {
4598
+ baseOptions = configuration.baseOptions;
4599
+ }
4600
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4601
+ const localVarHeaderParameter = {};
4602
+ const localVarQueryParameter = {};
4603
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4604
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4605
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4606
+ return {
4607
+ url: toPathString(localVarUrlObj),
4608
+ options: localVarRequestOptions,
4609
+ };
4610
+ },
4611
+ /**
4612
+ * <br> OperationId: `MetaGetOpenApiHtml`
4613
+ * @summary Get open api html
4614
+ * @param {*} [options] Override http request option.
4615
+ * @throws {RequiredError}
4616
+ */
4617
+ metaGetOpenApiHtml: async (options = {}) => {
4618
+ const localVarPath = `/api.html`;
4619
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4620
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4621
+ let baseOptions;
4622
+ if (configuration) {
4623
+ baseOptions = configuration.baseOptions;
4624
+ }
4625
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4626
+ const localVarHeaderParameter = {};
4627
+ const localVarQueryParameter = {};
4628
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4629
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4630
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4631
+ return {
4632
+ url: toPathString(localVarUrlObj),
4633
+ options: localVarRequestOptions,
4634
+ };
4635
+ },
4636
+ /**
4637
+ * <br> OperationId: `MetaGetReadiness`
4638
+ * @summary Get readiness
4639
+ * @param {*} [options] Override http request option.
4640
+ * @throws {RequiredError}
4641
+ */
4642
+ metaGetReadiness: async (options = {}) => {
4643
+ const localVarPath = `/readyz`;
4644
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4645
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4646
+ let baseOptions;
4647
+ if (configuration) {
4648
+ baseOptions = configuration.baseOptions;
4649
+ }
4650
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4651
+ const localVarHeaderParameter = {};
4652
+ const localVarQueryParameter = {};
4653
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4654
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4655
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4656
+ return {
4657
+ url: toPathString(localVarUrlObj),
4658
+ options: localVarRequestOptions,
4659
+ };
4660
+ },
4661
+ /**
4662
+ * <br> OperationId: `MetaGetRoot`
4663
+ * @summary Get root
4664
+ * @param {*} [options] Override http request option.
4665
+ * @throws {RequiredError}
4666
+ */
4667
+ metaGetRoot: async (options = {}) => {
4668
+ const localVarPath = `/`;
4669
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4670
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4671
+ let baseOptions;
4672
+ if (configuration) {
4673
+ baseOptions = configuration.baseOptions;
4674
+ }
4675
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4676
+ const localVarHeaderParameter = {};
4677
+ const localVarQueryParameter = {};
4678
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4679
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4680
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4681
+ return {
4682
+ url: toPathString(localVarUrlObj),
4683
+ options: localVarRequestOptions,
4684
+ };
4685
+ },
4686
+ };
4687
+ };
4688
+ /**
4689
+ * MetaApi - functional programming interface
4690
+ * @export
4691
+ */
4692
+ export const MetaApiFp = function (configuration) {
4693
+ const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration);
4694
+ return {
4695
+ /**
4696
+ * <br> OperationId: `MetaGetHealth`
4697
+ * @summary Get health
4698
+ * @param {*} [options] Override http request option.
4699
+ * @throws {RequiredError}
4700
+ */
4701
+ async metaGetHealth(options) {
4702
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetHealth(options);
4703
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4704
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetHealth']?.[localVarOperationServerIndex]?.url;
4705
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4706
+ },
4707
+ /**
4708
+ * <br> OperationId: `MetaGetLiveness`
4709
+ * @summary Get liveness
4710
+ * @param {*} [options] Override http request option.
4711
+ * @throws {RequiredError}
4712
+ */
4713
+ async metaGetLiveness(options) {
4714
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetLiveness(options);
4715
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4716
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
4717
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4718
+ },
4719
+ /**
4720
+ * <br> OperationId: `MetaGetOpenApi`
4721
+ * @summary Get open api
4722
+ * @param {*} [options] Override http request option.
4723
+ * @throws {RequiredError}
4724
+ */
4725
+ async metaGetOpenApi(options) {
4726
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options);
4727
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3385
4728
  const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[localVarOperationServerIndex]?.url;
3386
4729
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3387
4730
  },
3388
4731
  /**
3389
- * <br> OperationId: `MetaGetOpenApiHtml`
3390
- * @summary Get open api html
4732
+ * <br> OperationId: `MetaGetOpenApiHtml`
4733
+ * @summary Get open api html
4734
+ * @param {*} [options] Override http request option.
4735
+ * @throws {RequiredError}
4736
+ */
4737
+ async metaGetOpenApiHtml(options) {
4738
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApiHtml(options);
4739
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4740
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApiHtml']?.[localVarOperationServerIndex]?.url;
4741
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4742
+ },
4743
+ /**
4744
+ * <br> OperationId: `MetaGetReadiness`
4745
+ * @summary Get readiness
4746
+ * @param {*} [options] Override http request option.
4747
+ * @throws {RequiredError}
4748
+ */
4749
+ async metaGetReadiness(options) {
4750
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetReadiness(options);
4751
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4752
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetReadiness']?.[localVarOperationServerIndex]?.url;
4753
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4754
+ },
4755
+ /**
4756
+ * <br> OperationId: `MetaGetRoot`
4757
+ * @summary Get root
4758
+ * @param {*} [options] Override http request option.
4759
+ * @throws {RequiredError}
4760
+ */
4761
+ async metaGetRoot(options) {
4762
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetRoot(options);
4763
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4764
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetRoot']?.[localVarOperationServerIndex]?.url;
4765
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4766
+ },
4767
+ };
4768
+ };
4769
+ /**
4770
+ * MetaApi - factory interface
4771
+ * @export
4772
+ */
4773
+ export const MetaApiFactory = function (configuration, basePath, axios) {
4774
+ const localVarFp = MetaApiFp(configuration);
4775
+ return {
4776
+ /**
4777
+ * <br> OperationId: `MetaGetHealth`
4778
+ * @summary Get health
4779
+ * @param {*} [options] Override http request option.
4780
+ * @throws {RequiredError}
4781
+ */
4782
+ metaGetHealth(options) {
4783
+ return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath));
4784
+ },
4785
+ /**
4786
+ * <br> OperationId: `MetaGetLiveness`
4787
+ * @summary Get liveness
4788
+ * @param {*} [options] Override http request option.
4789
+ * @throws {RequiredError}
4790
+ */
4791
+ metaGetLiveness(options) {
4792
+ return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
4793
+ },
4794
+ /**
4795
+ * <br> OperationId: `MetaGetOpenApi`
4796
+ * @summary Get open api
4797
+ * @param {*} [options] Override http request option.
4798
+ * @throws {RequiredError}
4799
+ */
4800
+ metaGetOpenApi(options) {
4801
+ return localVarFp.metaGetOpenApi(options).then((request) => request(axios, basePath));
4802
+ },
4803
+ /**
4804
+ * <br> OperationId: `MetaGetOpenApiHtml`
4805
+ * @summary Get open api html
4806
+ * @param {*} [options] Override http request option.
4807
+ * @throws {RequiredError}
4808
+ */
4809
+ metaGetOpenApiHtml(options) {
4810
+ return localVarFp.metaGetOpenApiHtml(options).then((request) => request(axios, basePath));
4811
+ },
4812
+ /**
4813
+ * <br> OperationId: `MetaGetReadiness`
4814
+ * @summary Get readiness
4815
+ * @param {*} [options] Override http request option.
4816
+ * @throws {RequiredError}
4817
+ */
4818
+ metaGetReadiness(options) {
4819
+ return localVarFp.metaGetReadiness(options).then((request) => request(axios, basePath));
4820
+ },
4821
+ /**
4822
+ * <br> OperationId: `MetaGetRoot`
4823
+ * @summary Get root
4824
+ * @param {*} [options] Override http request option.
4825
+ * @throws {RequiredError}
4826
+ */
4827
+ metaGetRoot(options) {
4828
+ return localVarFp.metaGetRoot(options).then((request) => request(axios, basePath));
4829
+ },
4830
+ };
4831
+ };
4832
+ /**
4833
+ * MetaApi - object-oriented interface
4834
+ * @export
4835
+ * @class MetaApi
4836
+ * @extends {BaseAPI}
4837
+ */
4838
+ export class MetaApi extends BaseAPI {
4839
+ /**
4840
+ * <br> OperationId: `MetaGetHealth`
4841
+ * @summary Get health
4842
+ * @param {*} [options] Override http request option.
4843
+ * @throws {RequiredError}
4844
+ * @memberof MetaApi
4845
+ */
4846
+ metaGetHealth(options) {
4847
+ return MetaApiFp(this.configuration)
4848
+ .metaGetHealth(options)
4849
+ .then((request) => request(this.axios, this.basePath));
4850
+ }
4851
+ /**
4852
+ * <br> OperationId: `MetaGetLiveness`
4853
+ * @summary Get liveness
4854
+ * @param {*} [options] Override http request option.
4855
+ * @throws {RequiredError}
4856
+ * @memberof MetaApi
4857
+ */
4858
+ metaGetLiveness(options) {
4859
+ return MetaApiFp(this.configuration)
4860
+ .metaGetLiveness(options)
4861
+ .then((request) => request(this.axios, this.basePath));
4862
+ }
4863
+ /**
4864
+ * <br> OperationId: `MetaGetOpenApi`
4865
+ * @summary Get open api
4866
+ * @param {*} [options] Override http request option.
4867
+ * @throws {RequiredError}
4868
+ * @memberof MetaApi
4869
+ */
4870
+ metaGetOpenApi(options) {
4871
+ return MetaApiFp(this.configuration)
4872
+ .metaGetOpenApi(options)
4873
+ .then((request) => request(this.axios, this.basePath));
4874
+ }
4875
+ /**
4876
+ * <br> OperationId: `MetaGetOpenApiHtml`
4877
+ * @summary Get open api html
4878
+ * @param {*} [options] Override http request option.
4879
+ * @throws {RequiredError}
4880
+ * @memberof MetaApi
4881
+ */
4882
+ metaGetOpenApiHtml(options) {
4883
+ return MetaApiFp(this.configuration)
4884
+ .metaGetOpenApiHtml(options)
4885
+ .then((request) => request(this.axios, this.basePath));
4886
+ }
4887
+ /**
4888
+ * <br> OperationId: `MetaGetReadiness`
4889
+ * @summary Get readiness
4890
+ * @param {*} [options] Override http request option.
4891
+ * @throws {RequiredError}
4892
+ * @memberof MetaApi
4893
+ */
4894
+ metaGetReadiness(options) {
4895
+ return MetaApiFp(this.configuration)
4896
+ .metaGetReadiness(options)
4897
+ .then((request) => request(this.axios, this.basePath));
4898
+ }
4899
+ /**
4900
+ * <br> OperationId: `MetaGetRoot`
4901
+ * @summary Get root
4902
+ * @param {*} [options] Override http request option.
4903
+ * @throws {RequiredError}
4904
+ * @memberof MetaApi
4905
+ */
4906
+ metaGetRoot(options) {
4907
+ return MetaApiFp(this.configuration)
4908
+ .metaGetRoot(options)
4909
+ .then((request) => request(this.axios, this.basePath));
4910
+ }
4911
+ }
4912
+ /**
4913
+ * PlatformStatsApi - axios parameter creator
4914
+ * @export
4915
+ */
4916
+ export const PlatformStatsApiAxiosParamCreator = function (configuration) {
4917
+ return {
4918
+ /**
4919
+ * Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
4920
+ * @summary Platform-wide Domain statistics
4921
+ * @param {number} [weeks]
4922
+ * @param {*} [options] Override http request option.
4923
+ * @throws {RequiredError}
4924
+ */
4925
+ platformStatsControllerDomains: async (weeks, options = {}) => {
4926
+ const localVarPath = `/staff/stats/domains`;
4927
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4928
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4929
+ let baseOptions;
4930
+ if (configuration) {
4931
+ baseOptions = configuration.baseOptions;
4932
+ }
4933
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4934
+ const localVarHeaderParameter = {};
4935
+ const localVarQueryParameter = {};
4936
+ // authentication staffSession required
4937
+ // authentication adminAuth required
4938
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
4939
+ if (weeks !== undefined) {
4940
+ localVarQueryParameter['weeks'] = weeks;
4941
+ }
4942
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4943
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4944
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4945
+ return {
4946
+ url: toPathString(localVarUrlObj),
4947
+ options: localVarRequestOptions,
4948
+ };
4949
+ },
4950
+ };
4951
+ };
4952
+ /**
4953
+ * PlatformStatsApi - functional programming interface
4954
+ * @export
4955
+ */
4956
+ export const PlatformStatsApiFp = function (configuration) {
4957
+ const localVarAxiosParamCreator = PlatformStatsApiAxiosParamCreator(configuration);
4958
+ return {
4959
+ /**
4960
+ * Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
4961
+ * @summary Platform-wide Domain statistics
4962
+ * @param {number} [weeks]
4963
+ * @param {*} [options] Override http request option.
4964
+ * @throws {RequiredError}
4965
+ */
4966
+ async platformStatsControllerDomains(weeks, options) {
4967
+ const localVarAxiosArgs = await localVarAxiosParamCreator.platformStatsControllerDomains(weeks, options);
4968
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4969
+ const localVarOperationServerBasePath = operationServerMap['PlatformStatsApi.platformStatsControllerDomains']?.[localVarOperationServerIndex]?.url;
4970
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4971
+ },
4972
+ };
4973
+ };
4974
+ /**
4975
+ * PlatformStatsApi - factory interface
4976
+ * @export
4977
+ */
4978
+ export const PlatformStatsApiFactory = function (configuration, basePath, axios) {
4979
+ const localVarFp = PlatformStatsApiFp(configuration);
4980
+ return {
4981
+ /**
4982
+ * Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
4983
+ * @summary Platform-wide Domain statistics
4984
+ * @param {number} [weeks]
4985
+ * @param {*} [options] Override http request option.
4986
+ * @throws {RequiredError}
4987
+ */
4988
+ platformStatsControllerDomains(weeks, options) {
4989
+ return localVarFp.platformStatsControllerDomains(weeks, options).then((request) => request(axios, basePath));
4990
+ },
4991
+ };
4992
+ };
4993
+ /**
4994
+ * PlatformStatsApi - object-oriented interface
4995
+ * @export
4996
+ * @class PlatformStatsApi
4997
+ * @extends {BaseAPI}
4998
+ */
4999
+ export class PlatformStatsApi extends BaseAPI {
5000
+ /**
5001
+ * Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
5002
+ * @summary Platform-wide Domain statistics
5003
+ * @param {number} [weeks]
5004
+ * @param {*} [options] Override http request option.
5005
+ * @throws {RequiredError}
5006
+ * @memberof PlatformStatsApi
5007
+ */
5008
+ platformStatsControllerDomains(weeks, options) {
5009
+ return PlatformStatsApiFp(this.configuration)
5010
+ .platformStatsControllerDomains(weeks, options)
5011
+ .then((request) => request(this.axios, this.basePath));
5012
+ }
5013
+ }
5014
+ /**
5015
+ * StaffAuthApi - axios parameter creator
5016
+ * @export
5017
+ */
5018
+ export const StaffAuthApiAxiosParamCreator = function (configuration) {
5019
+ return {
5020
+ /**
5021
+ * <br> OperationId: `StaffAuthControllerCallback`
5022
+ * @summary Callback
5023
+ * @param {*} [options] Override http request option.
5024
+ * @throws {RequiredError}
5025
+ */
5026
+ staffAuthControllerCallback: async (options = {}) => {
5027
+ const localVarPath = `/auth/callback`;
5028
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5029
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5030
+ let baseOptions;
5031
+ if (configuration) {
5032
+ baseOptions = configuration.baseOptions;
5033
+ }
5034
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5035
+ const localVarHeaderParameter = {};
5036
+ const localVarQueryParameter = {};
5037
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5038
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5039
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5040
+ return {
5041
+ url: toPathString(localVarUrlObj),
5042
+ options: localVarRequestOptions,
5043
+ };
5044
+ },
5045
+ /**
5046
+ * <br> OperationId: `StaffAuthControllerLogin`
5047
+ * @summary Login
5048
+ * @param {*} [options] Override http request option.
5049
+ * @throws {RequiredError}
5050
+ */
5051
+ staffAuthControllerLogin: async (options = {}) => {
5052
+ const localVarPath = `/auth/login`;
5053
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5054
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5055
+ let baseOptions;
5056
+ if (configuration) {
5057
+ baseOptions = configuration.baseOptions;
5058
+ }
5059
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5060
+ const localVarHeaderParameter = {};
5061
+ const localVarQueryParameter = {};
5062
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5063
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5064
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5065
+ return {
5066
+ url: toPathString(localVarUrlObj),
5067
+ options: localVarRequestOptions,
5068
+ };
5069
+ },
5070
+ /**
5071
+ * <br> OperationId: `StaffAuthControllerLogout`
5072
+ * @summary Logout
5073
+ * @param {*} [options] Override http request option.
5074
+ * @throws {RequiredError}
5075
+ */
5076
+ staffAuthControllerLogout: async (options = {}) => {
5077
+ const localVarPath = `/auth/logout`;
5078
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5079
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5080
+ let baseOptions;
5081
+ if (configuration) {
5082
+ baseOptions = configuration.baseOptions;
5083
+ }
5084
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5085
+ const localVarHeaderParameter = {};
5086
+ const localVarQueryParameter = {};
5087
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5088
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5089
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5090
+ return {
5091
+ url: toPathString(localVarUrlObj),
5092
+ options: localVarRequestOptions,
5093
+ };
5094
+ },
5095
+ };
5096
+ };
5097
+ /**
5098
+ * StaffAuthApi - functional programming interface
5099
+ * @export
5100
+ */
5101
+ export const StaffAuthApiFp = function (configuration) {
5102
+ const localVarAxiosParamCreator = StaffAuthApiAxiosParamCreator(configuration);
5103
+ return {
5104
+ /**
5105
+ * <br> OperationId: `StaffAuthControllerCallback`
5106
+ * @summary Callback
5107
+ * @param {*} [options] Override http request option.
5108
+ * @throws {RequiredError}
5109
+ */
5110
+ async staffAuthControllerCallback(options) {
5111
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerCallback(options);
5112
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5113
+ const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerCallback']?.[localVarOperationServerIndex]?.url;
5114
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5115
+ },
5116
+ /**
5117
+ * <br> OperationId: `StaffAuthControllerLogin`
5118
+ * @summary Login
5119
+ * @param {*} [options] Override http request option.
5120
+ * @throws {RequiredError}
5121
+ */
5122
+ async staffAuthControllerLogin(options) {
5123
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogin(options);
5124
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5125
+ const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogin']?.[localVarOperationServerIndex]?.url;
5126
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5127
+ },
5128
+ /**
5129
+ * <br> OperationId: `StaffAuthControllerLogout`
5130
+ * @summary Logout
5131
+ * @param {*} [options] Override http request option.
5132
+ * @throws {RequiredError}
5133
+ */
5134
+ async staffAuthControllerLogout(options) {
5135
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogout(options);
5136
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5137
+ const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogout']?.[localVarOperationServerIndex]?.url;
5138
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5139
+ },
5140
+ };
5141
+ };
5142
+ /**
5143
+ * StaffAuthApi - factory interface
5144
+ * @export
5145
+ */
5146
+ export const StaffAuthApiFactory = function (configuration, basePath, axios) {
5147
+ const localVarFp = StaffAuthApiFp(configuration);
5148
+ return {
5149
+ /**
5150
+ * <br> OperationId: `StaffAuthControllerCallback`
5151
+ * @summary Callback
5152
+ * @param {*} [options] Override http request option.
5153
+ * @throws {RequiredError}
5154
+ */
5155
+ staffAuthControllerCallback(options) {
5156
+ return localVarFp.staffAuthControllerCallback(options).then((request) => request(axios, basePath));
5157
+ },
5158
+ /**
5159
+ * <br> OperationId: `StaffAuthControllerLogin`
5160
+ * @summary Login
5161
+ * @param {*} [options] Override http request option.
5162
+ * @throws {RequiredError}
5163
+ */
5164
+ staffAuthControllerLogin(options) {
5165
+ return localVarFp.staffAuthControllerLogin(options).then((request) => request(axios, basePath));
5166
+ },
5167
+ /**
5168
+ * <br> OperationId: `StaffAuthControllerLogout`
5169
+ * @summary Logout
5170
+ * @param {*} [options] Override http request option.
5171
+ * @throws {RequiredError}
5172
+ */
5173
+ staffAuthControllerLogout(options) {
5174
+ return localVarFp.staffAuthControllerLogout(options).then((request) => request(axios, basePath));
5175
+ },
5176
+ };
5177
+ };
5178
+ /**
5179
+ * StaffAuthApi - object-oriented interface
5180
+ * @export
5181
+ * @class StaffAuthApi
5182
+ * @extends {BaseAPI}
5183
+ */
5184
+ export class StaffAuthApi extends BaseAPI {
5185
+ /**
5186
+ * <br> OperationId: `StaffAuthControllerCallback`
5187
+ * @summary Callback
5188
+ * @param {*} [options] Override http request option.
5189
+ * @throws {RequiredError}
5190
+ * @memberof StaffAuthApi
5191
+ */
5192
+ staffAuthControllerCallback(options) {
5193
+ return StaffAuthApiFp(this.configuration)
5194
+ .staffAuthControllerCallback(options)
5195
+ .then((request) => request(this.axios, this.basePath));
5196
+ }
5197
+ /**
5198
+ * <br> OperationId: `StaffAuthControllerLogin`
5199
+ * @summary Login
5200
+ * @param {*} [options] Override http request option.
5201
+ * @throws {RequiredError}
5202
+ * @memberof StaffAuthApi
5203
+ */
5204
+ staffAuthControllerLogin(options) {
5205
+ return StaffAuthApiFp(this.configuration)
5206
+ .staffAuthControllerLogin(options)
5207
+ .then((request) => request(this.axios, this.basePath));
5208
+ }
5209
+ /**
5210
+ * <br> OperationId: `StaffAuthControllerLogout`
5211
+ * @summary Logout
5212
+ * @param {*} [options] Override http request option.
5213
+ * @throws {RequiredError}
5214
+ * @memberof StaffAuthApi
5215
+ */
5216
+ staffAuthControllerLogout(options) {
5217
+ return StaffAuthApiFp(this.configuration)
5218
+ .staffAuthControllerLogout(options)
5219
+ .then((request) => request(this.axios, this.basePath));
5220
+ }
5221
+ }
5222
+ /**
5223
+ * StaffDomainLimitsApi - axios parameter creator
5224
+ * @export
5225
+ */
5226
+ export const StaffDomainLimitsApiAxiosParamCreator = function (configuration) {
5227
+ return {
5228
+ /**
5229
+ * The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
5230
+ * @summary Clear a limit override of a Domain
5231
+ * @param {string} id
5232
+ * @param {string} limitKey
5233
+ * @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
5234
+ * @param {*} [options] Override http request option.
5235
+ * @throws {RequiredError}
5236
+ */
5237
+ staffDomainLimitsControllerClear: async (id, limitKey, domainLimitOverrideClearInputDTO, options = {}) => {
5238
+ // verify required parameter 'id' is not null or undefined
5239
+ assertParamExists('staffDomainLimitsControllerClear', 'id', id);
5240
+ // verify required parameter 'limitKey' is not null or undefined
5241
+ assertParamExists('staffDomainLimitsControllerClear', 'limitKey', limitKey);
5242
+ const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
5243
+ .replace(`{${'id'}}`, encodeURIComponent(String(id)))
5244
+ .replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
5245
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5246
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5247
+ let baseOptions;
5248
+ if (configuration) {
5249
+ baseOptions = configuration.baseOptions;
5250
+ }
5251
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
5252
+ const localVarHeaderParameter = {};
5253
+ const localVarQueryParameter = {};
5254
+ // authentication staffSession required
5255
+ // authentication adminAuth required
5256
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5257
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5258
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5259
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5260
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5261
+ localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideClearInputDTO, localVarRequestOptions, configuration);
5262
+ return {
5263
+ url: toPathString(localVarUrlObj),
5264
+ options: localVarRequestOptions,
5265
+ };
5266
+ },
5267
+ /**
5268
+ * Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
5269
+ * @summary Effective limits of a Domain
5270
+ * @param {string} id
3391
5271
  * @param {*} [options] Override http request option.
3392
5272
  * @throws {RequiredError}
3393
5273
  */
3394
- async metaGetOpenApiHtml(options) {
3395
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApiHtml(options);
3396
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3397
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApiHtml']?.[localVarOperationServerIndex]?.url;
3398
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5274
+ staffDomainLimitsControllerGet: async (id, options = {}) => {
5275
+ // verify required parameter 'id' is not null or undefined
5276
+ assertParamExists('staffDomainLimitsControllerGet', 'id', id);
5277
+ const localVarPath = `/staff/domains/{id}/limits`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5278
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5279
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5280
+ let baseOptions;
5281
+ if (configuration) {
5282
+ baseOptions = configuration.baseOptions;
5283
+ }
5284
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5285
+ const localVarHeaderParameter = {};
5286
+ const localVarQueryParameter = {};
5287
+ // authentication staffSession required
5288
+ // authentication adminAuth required
5289
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5290
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5291
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5292
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5293
+ return {
5294
+ url: toPathString(localVarUrlObj),
5295
+ options: localVarRequestOptions,
5296
+ };
3399
5297
  },
3400
5298
  /**
3401
- * <br> OperationId: `MetaGetReadiness`
3402
- * @summary Get readiness
5299
+ * Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
5300
+ * @summary Limit override history of a Domain
5301
+ * @param {string} id
3403
5302
  * @param {*} [options] Override http request option.
3404
5303
  * @throws {RequiredError}
3405
5304
  */
3406
- async metaGetReadiness(options) {
3407
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetReadiness(options);
3408
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3409
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetReadiness']?.[localVarOperationServerIndex]?.url;
3410
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5305
+ staffDomainLimitsControllerHistory: async (id, options = {}) => {
5306
+ // verify required parameter 'id' is not null or undefined
5307
+ assertParamExists('staffDomainLimitsControllerHistory', 'id', id);
5308
+ const localVarPath = `/staff/domains/{id}/limits/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5309
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5310
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5311
+ let baseOptions;
5312
+ if (configuration) {
5313
+ baseOptions = configuration.baseOptions;
5314
+ }
5315
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5316
+ const localVarHeaderParameter = {};
5317
+ const localVarQueryParameter = {};
5318
+ // authentication staffSession required
5319
+ // authentication adminAuth required
5320
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5321
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5322
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5323
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5324
+ return {
5325
+ url: toPathString(localVarUrlObj),
5326
+ options: localVarRequestOptions,
5327
+ };
3411
5328
  },
3412
5329
  /**
3413
- * <br> OperationId: `MetaGetRoot`
3414
- * @summary Get root
5330
+ * Applies at once and survives Plan changes, until it expires or is cleared. Only for a Domain on a Plan. Shrinking `maxGameservers` disables the newest excess servers. An expired override reads as the Plan value at once, but the enforced limit follows at the next hourly sweep, so up to an hour later.<br> OperationId: `StaffDomainLimitsControllerSet`
5331
+ * @summary Override one limit of a Domain
5332
+ * @param {string} id
5333
+ * @param {string} limitKey
5334
+ * @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
3415
5335
  * @param {*} [options] Override http request option.
3416
5336
  * @throws {RequiredError}
3417
5337
  */
3418
- async metaGetRoot(options) {
3419
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetRoot(options);
3420
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3421
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetRoot']?.[localVarOperationServerIndex]?.url;
3422
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5338
+ staffDomainLimitsControllerSet: async (id, limitKey, domainLimitOverrideInputDTO, options = {}) => {
5339
+ // verify required parameter 'id' is not null or undefined
5340
+ assertParamExists('staffDomainLimitsControllerSet', 'id', id);
5341
+ // verify required parameter 'limitKey' is not null or undefined
5342
+ assertParamExists('staffDomainLimitsControllerSet', 'limitKey', limitKey);
5343
+ const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
5344
+ .replace(`{${'id'}}`, encodeURIComponent(String(id)))
5345
+ .replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
5346
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5347
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5348
+ let baseOptions;
5349
+ if (configuration) {
5350
+ baseOptions = configuration.baseOptions;
5351
+ }
5352
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
5353
+ const localVarHeaderParameter = {};
5354
+ const localVarQueryParameter = {};
5355
+ // authentication staffSession required
5356
+ // authentication adminAuth required
5357
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5358
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5359
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5360
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5361
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5362
+ localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideInputDTO, localVarRequestOptions, configuration);
5363
+ return {
5364
+ url: toPathString(localVarUrlObj),
5365
+ options: localVarRequestOptions,
5366
+ };
3423
5367
  },
3424
5368
  };
3425
5369
  };
3426
5370
  /**
3427
- * MetaApi - factory interface
5371
+ * StaffDomainLimitsApi - functional programming interface
3428
5372
  * @export
3429
5373
  */
3430
- export const MetaApiFactory = function (configuration, basePath, axios) {
3431
- const localVarFp = MetaApiFp(configuration);
5374
+ export const StaffDomainLimitsApiFp = function (configuration) {
5375
+ const localVarAxiosParamCreator = StaffDomainLimitsApiAxiosParamCreator(configuration);
3432
5376
  return {
3433
5377
  /**
3434
- * <br> OperationId: `MetaGetHealth`
3435
- * @summary Get health
5378
+ * The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
5379
+ * @summary Clear a limit override of a Domain
5380
+ * @param {string} id
5381
+ * @param {string} limitKey
5382
+ * @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
3436
5383
  * @param {*} [options] Override http request option.
3437
5384
  * @throws {RequiredError}
3438
5385
  */
3439
- metaGetHealth(options) {
3440
- return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath));
5386
+ async staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
5387
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options);
5388
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5389
+ const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerClear']?.[localVarOperationServerIndex]
5390
+ ?.url;
5391
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3441
5392
  },
3442
5393
  /**
3443
- * <br> OperationId: `MetaGetLiveness`
3444
- * @summary Get liveness
5394
+ * Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
5395
+ * @summary Effective limits of a Domain
5396
+ * @param {string} id
3445
5397
  * @param {*} [options] Override http request option.
3446
5398
  * @throws {RequiredError}
3447
5399
  */
3448
- metaGetLiveness(options) {
3449
- return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
5400
+ async staffDomainLimitsControllerGet(id, options) {
5401
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerGet(id, options);
5402
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5403
+ const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerGet']?.[localVarOperationServerIndex]?.url;
5404
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3450
5405
  },
3451
5406
  /**
3452
- * <br> OperationId: `MetaGetMetrics`
3453
- * @summary Get metrics
5407
+ * Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
5408
+ * @summary Limit override history of a Domain
5409
+ * @param {string} id
3454
5410
  * @param {*} [options] Override http request option.
3455
5411
  * @throws {RequiredError}
3456
5412
  */
3457
- metaGetMetrics(options) {
3458
- return localVarFp.metaGetMetrics(options).then((request) => request(axios, basePath));
5413
+ async staffDomainLimitsControllerHistory(id, options) {
5414
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerHistory(id, options);
5415
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5416
+ const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerHistory']?.[localVarOperationServerIndex]
5417
+ ?.url;
5418
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3459
5419
  },
3460
5420
  /**
3461
- * <br> OperationId: `MetaGetOpenApi`
3462
- * @summary Get open api
5421
+ * Applies at once and survives Plan changes, until it expires or is cleared. Only for a Domain on a Plan. Shrinking `maxGameservers` disables the newest excess servers. An expired override reads as the Plan value at once, but the enforced limit follows at the next hourly sweep, so up to an hour later.<br> OperationId: `StaffDomainLimitsControllerSet`
5422
+ * @summary Override one limit of a Domain
5423
+ * @param {string} id
5424
+ * @param {string} limitKey
5425
+ * @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
3463
5426
  * @param {*} [options] Override http request option.
3464
5427
  * @throws {RequiredError}
3465
5428
  */
3466
- metaGetOpenApi(options) {
3467
- return localVarFp.metaGetOpenApi(options).then((request) => request(axios, basePath));
5429
+ async staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
5430
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options);
5431
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5432
+ const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerSet']?.[localVarOperationServerIndex]?.url;
5433
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3468
5434
  },
5435
+ };
5436
+ };
5437
+ /**
5438
+ * StaffDomainLimitsApi - factory interface
5439
+ * @export
5440
+ */
5441
+ export const StaffDomainLimitsApiFactory = function (configuration, basePath, axios) {
5442
+ const localVarFp = StaffDomainLimitsApiFp(configuration);
5443
+ return {
3469
5444
  /**
3470
- * <br> OperationId: `MetaGetOpenApiHtml`
3471
- * @summary Get open api html
5445
+ * The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
5446
+ * @summary Clear a limit override of a Domain
5447
+ * @param {string} id
5448
+ * @param {string} limitKey
5449
+ * @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
3472
5450
  * @param {*} [options] Override http request option.
3473
5451
  * @throws {RequiredError}
3474
5452
  */
3475
- metaGetOpenApiHtml(options) {
3476
- return localVarFp.metaGetOpenApiHtml(options).then((request) => request(axios, basePath));
5453
+ staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
5454
+ return localVarFp
5455
+ .staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
5456
+ .then((request) => request(axios, basePath));
3477
5457
  },
3478
5458
  /**
3479
- * <br> OperationId: `MetaGetReadiness`
3480
- * @summary Get readiness
5459
+ * Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
5460
+ * @summary Effective limits of a Domain
5461
+ * @param {string} id
3481
5462
  * @param {*} [options] Override http request option.
3482
5463
  * @throws {RequiredError}
3483
5464
  */
3484
- metaGetReadiness(options) {
3485
- return localVarFp.metaGetReadiness(options).then((request) => request(axios, basePath));
5465
+ staffDomainLimitsControllerGet(id, options) {
5466
+ return localVarFp.staffDomainLimitsControllerGet(id, options).then((request) => request(axios, basePath));
3486
5467
  },
3487
5468
  /**
3488
- * <br> OperationId: `MetaGetRoot`
3489
- * @summary Get root
5469
+ * Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
5470
+ * @summary Limit override history of a Domain
5471
+ * @param {string} id
3490
5472
  * @param {*} [options] Override http request option.
3491
5473
  * @throws {RequiredError}
3492
5474
  */
3493
- metaGetRoot(options) {
3494
- return localVarFp.metaGetRoot(options).then((request) => request(axios, basePath));
5475
+ staffDomainLimitsControllerHistory(id, options) {
5476
+ return localVarFp.staffDomainLimitsControllerHistory(id, options).then((request) => request(axios, basePath));
5477
+ },
5478
+ /**
5479
+ * Applies at once and survives Plan changes, until it expires or is cleared. Only for a Domain on a Plan. Shrinking `maxGameservers` disables the newest excess servers. An expired override reads as the Plan value at once, but the enforced limit follows at the next hourly sweep, so up to an hour later.<br> OperationId: `StaffDomainLimitsControllerSet`
5480
+ * @summary Override one limit of a Domain
5481
+ * @param {string} id
5482
+ * @param {string} limitKey
5483
+ * @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
5484
+ * @param {*} [options] Override http request option.
5485
+ * @throws {RequiredError}
5486
+ */
5487
+ staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
5488
+ return localVarFp
5489
+ .staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
5490
+ .then((request) => request(axios, basePath));
3495
5491
  },
3496
5492
  };
3497
5493
  };
3498
5494
  /**
3499
- * MetaApi - object-oriented interface
5495
+ * StaffDomainLimitsApi - object-oriented interface
3500
5496
  * @export
3501
- * @class MetaApi
5497
+ * @class StaffDomainLimitsApi
3502
5498
  * @extends {BaseAPI}
3503
5499
  */
3504
- export class MetaApi extends BaseAPI {
3505
- /**
3506
- * <br> OperationId: `MetaGetHealth`
3507
- * @summary Get health
3508
- * @param {*} [options] Override http request option.
3509
- * @throws {RequiredError}
3510
- * @memberof MetaApi
3511
- */
3512
- metaGetHealth(options) {
3513
- return MetaApiFp(this.configuration)
3514
- .metaGetHealth(options)
3515
- .then((request) => request(this.axios, this.basePath));
3516
- }
3517
- /**
3518
- * <br> OperationId: `MetaGetLiveness`
3519
- * @summary Get liveness
3520
- * @param {*} [options] Override http request option.
3521
- * @throws {RequiredError}
3522
- * @memberof MetaApi
3523
- */
3524
- metaGetLiveness(options) {
3525
- return MetaApiFp(this.configuration)
3526
- .metaGetLiveness(options)
3527
- .then((request) => request(this.axios, this.basePath));
3528
- }
3529
- /**
3530
- * <br> OperationId: `MetaGetMetrics`
3531
- * @summary Get metrics
3532
- * @param {*} [options] Override http request option.
3533
- * @throws {RequiredError}
3534
- * @memberof MetaApi
3535
- */
3536
- metaGetMetrics(options) {
3537
- return MetaApiFp(this.configuration)
3538
- .metaGetMetrics(options)
3539
- .then((request) => request(this.axios, this.basePath));
3540
- }
5500
+ export class StaffDomainLimitsApi extends BaseAPI {
3541
5501
  /**
3542
- * <br> OperationId: `MetaGetOpenApi`
3543
- * @summary Get open api
5502
+ * The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
5503
+ * @summary Clear a limit override of a Domain
5504
+ * @param {string} id
5505
+ * @param {string} limitKey
5506
+ * @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
3544
5507
  * @param {*} [options] Override http request option.
3545
5508
  * @throws {RequiredError}
3546
- * @memberof MetaApi
5509
+ * @memberof StaffDomainLimitsApi
3547
5510
  */
3548
- metaGetOpenApi(options) {
3549
- return MetaApiFp(this.configuration)
3550
- .metaGetOpenApi(options)
5511
+ staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
5512
+ return StaffDomainLimitsApiFp(this.configuration)
5513
+ .staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
3551
5514
  .then((request) => request(this.axios, this.basePath));
3552
5515
  }
3553
5516
  /**
3554
- * <br> OperationId: `MetaGetOpenApiHtml`
3555
- * @summary Get open api html
5517
+ * Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
5518
+ * @summary Effective limits of a Domain
5519
+ * @param {string} id
3556
5520
  * @param {*} [options] Override http request option.
3557
5521
  * @throws {RequiredError}
3558
- * @memberof MetaApi
5522
+ * @memberof StaffDomainLimitsApi
3559
5523
  */
3560
- metaGetOpenApiHtml(options) {
3561
- return MetaApiFp(this.configuration)
3562
- .metaGetOpenApiHtml(options)
5524
+ staffDomainLimitsControllerGet(id, options) {
5525
+ return StaffDomainLimitsApiFp(this.configuration)
5526
+ .staffDomainLimitsControllerGet(id, options)
3563
5527
  .then((request) => request(this.axios, this.basePath));
3564
5528
  }
3565
5529
  /**
3566
- * <br> OperationId: `MetaGetReadiness`
3567
- * @summary Get readiness
5530
+ * Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
5531
+ * @summary Limit override history of a Domain
5532
+ * @param {string} id
3568
5533
  * @param {*} [options] Override http request option.
3569
5534
  * @throws {RequiredError}
3570
- * @memberof MetaApi
5535
+ * @memberof StaffDomainLimitsApi
3571
5536
  */
3572
- metaGetReadiness(options) {
3573
- return MetaApiFp(this.configuration)
3574
- .metaGetReadiness(options)
5537
+ staffDomainLimitsControllerHistory(id, options) {
5538
+ return StaffDomainLimitsApiFp(this.configuration)
5539
+ .staffDomainLimitsControllerHistory(id, options)
3575
5540
  .then((request) => request(this.axios, this.basePath));
3576
5541
  }
3577
5542
  /**
3578
- * <br> OperationId: `MetaGetRoot`
3579
- * @summary Get root
5543
+ * Applies at once and survives Plan changes, until it expires or is cleared. Only for a Domain on a Plan. Shrinking `maxGameservers` disables the newest excess servers. An expired override reads as the Plan value at once, but the enforced limit follows at the next hourly sweep, so up to an hour later.<br> OperationId: `StaffDomainLimitsControllerSet`
5544
+ * @summary Override one limit of a Domain
5545
+ * @param {string} id
5546
+ * @param {string} limitKey
5547
+ * @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
3580
5548
  * @param {*} [options] Override http request option.
3581
5549
  * @throws {RequiredError}
3582
- * @memberof MetaApi
5550
+ * @memberof StaffDomainLimitsApi
3583
5551
  */
3584
- metaGetRoot(options) {
3585
- return MetaApiFp(this.configuration)
3586
- .metaGetRoot(options)
5552
+ staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
5553
+ return StaffDomainLimitsApiFp(this.configuration)
5554
+ .staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
3587
5555
  .then((request) => request(this.axios, this.basePath));
3588
5556
  }
3589
5557
  }
3590
5558
  /**
3591
- * PlatformStatsApi - axios parameter creator
5559
+ * StaffMeApi - axios parameter creator
3592
5560
  * @export
3593
5561
  */
3594
- export const PlatformStatsApiAxiosParamCreator = function (configuration) {
5562
+ export const StaffMeApiAxiosParamCreator = function (configuration) {
3595
5563
  return {
3596
5564
  /**
3597
- * Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
3598
- * @summary Platform-wide Domain statistics
3599
- * @param {number} [weeks]
5565
+ * The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
5566
+ * @summary Who this Staff session belongs to
3600
5567
  * @param {*} [options] Override http request option.
3601
5568
  * @throws {RequiredError}
3602
5569
  */
3603
- platformStatsControllerDomains: async (weeks, options = {}) => {
3604
- const localVarPath = `/staff/stats/domains`;
5570
+ staffMeControllerMe: async (options = {}) => {
5571
+ const localVarPath = `/staff/me`;
3605
5572
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3606
5573
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3607
5574
  let baseOptions;
@@ -3614,9 +5581,6 @@ export const PlatformStatsApiAxiosParamCreator = function (configuration) {
3614
5581
  // authentication staffSession required
3615
5582
  // authentication adminAuth required
3616
5583
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3617
- if (weeks !== undefined) {
3618
- localVarQueryParameter['weeks'] = weeks;
3619
- }
3620
5584
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3621
5585
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3622
5586
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3628,81 +5592,146 @@ export const PlatformStatsApiAxiosParamCreator = function (configuration) {
3628
5592
  };
3629
5593
  };
3630
5594
  /**
3631
- * PlatformStatsApi - functional programming interface
5595
+ * StaffMeApi - functional programming interface
3632
5596
  * @export
3633
5597
  */
3634
- export const PlatformStatsApiFp = function (configuration) {
3635
- const localVarAxiosParamCreator = PlatformStatsApiAxiosParamCreator(configuration);
5598
+ export const StaffMeApiFp = function (configuration) {
5599
+ const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
3636
5600
  return {
3637
5601
  /**
3638
- * Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
3639
- * @summary Platform-wide Domain statistics
3640
- * @param {number} [weeks]
5602
+ * The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
5603
+ * @summary Who this Staff session belongs to
3641
5604
  * @param {*} [options] Override http request option.
3642
5605
  * @throws {RequiredError}
3643
5606
  */
3644
- async platformStatsControllerDomains(weeks, options) {
3645
- const localVarAxiosArgs = await localVarAxiosParamCreator.platformStatsControllerDomains(weeks, options);
5607
+ async staffMeControllerMe(options) {
5608
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
3646
5609
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3647
- const localVarOperationServerBasePath = operationServerMap['PlatformStatsApi.platformStatsControllerDomains']?.[localVarOperationServerIndex]?.url;
5610
+ const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
3648
5611
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3649
5612
  },
3650
5613
  };
3651
5614
  };
3652
5615
  /**
3653
- * PlatformStatsApi - factory interface
5616
+ * StaffMeApi - factory interface
3654
5617
  * @export
3655
5618
  */
3656
- export const PlatformStatsApiFactory = function (configuration, basePath, axios) {
3657
- const localVarFp = PlatformStatsApiFp(configuration);
5619
+ export const StaffMeApiFactory = function (configuration, basePath, axios) {
5620
+ const localVarFp = StaffMeApiFp(configuration);
3658
5621
  return {
3659
5622
  /**
3660
- * Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
3661
- * @summary Platform-wide Domain statistics
3662
- * @param {number} [weeks]
5623
+ * The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
5624
+ * @summary Who this Staff session belongs to
3663
5625
  * @param {*} [options] Override http request option.
3664
5626
  * @throws {RequiredError}
3665
5627
  */
3666
- platformStatsControllerDomains(weeks, options) {
3667
- return localVarFp.platformStatsControllerDomains(weeks, options).then((request) => request(axios, basePath));
5628
+ staffMeControllerMe(options) {
5629
+ return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
3668
5630
  },
3669
5631
  };
3670
5632
  };
3671
5633
  /**
3672
- * PlatformStatsApi - object-oriented interface
5634
+ * StaffMeApi - object-oriented interface
3673
5635
  * @export
3674
- * @class PlatformStatsApi
5636
+ * @class StaffMeApi
3675
5637
  * @extends {BaseAPI}
3676
5638
  */
3677
- export class PlatformStatsApi extends BaseAPI {
5639
+ export class StaffMeApi extends BaseAPI {
3678
5640
  /**
3679
- * Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
3680
- * @summary Platform-wide Domain statistics
3681
- * @param {number} [weeks]
5641
+ * The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
5642
+ * @summary Who this Staff session belongs to
3682
5643
  * @param {*} [options] Override http request option.
3683
5644
  * @throws {RequiredError}
3684
- * @memberof PlatformStatsApi
5645
+ * @memberof StaffMeApi
3685
5646
  */
3686
- platformStatsControllerDomains(weeks, options) {
3687
- return PlatformStatsApiFp(this.configuration)
3688
- .platformStatsControllerDomains(weeks, options)
5647
+ staffMeControllerMe(options) {
5648
+ return StaffMeApiFp(this.configuration)
5649
+ .staffMeControllerMe(options)
3689
5650
  .then((request) => request(this.axios, this.basePath));
3690
5651
  }
3691
5652
  }
3692
5653
  /**
3693
- * StaffAuthApi - axios parameter creator
5654
+ * StaffPlanApi - axios parameter creator
3694
5655
  * @export
3695
5656
  */
3696
- export const StaffAuthApiAxiosParamCreator = function (configuration) {
5657
+ export const StaffPlanApiAxiosParamCreator = function (configuration) {
3697
5658
  return {
3698
5659
  /**
3699
- * <br> OperationId: `StaffAuthControllerCallback`
3700
- * @summary Callback
5660
+ * Refused while any Domain is on the Plan or any Distributor allows it. Frees its billing-provider product for another Plan; the history keeps the old link. Idempotent.<br> OperationId: `StaffPlanControllerArchive`
5661
+ * @summary Archive a Plan
5662
+ * @param {string} id
5663
+ * @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
3701
5664
  * @param {*} [options] Override http request option.
3702
5665
  * @throws {RequiredError}
3703
5666
  */
3704
- staffAuthControllerCallback: async (options = {}) => {
3705
- const localVarPath = `/auth/callback`;
5667
+ staffPlanControllerArchive: async (id, planArchiveInputDTO, options = {}) => {
5668
+ // verify required parameter 'id' is not null or undefined
5669
+ assertParamExists('staffPlanControllerArchive', 'id', id);
5670
+ const localVarPath = `/staff/plans/{id}/archive`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5671
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5672
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5673
+ let baseOptions;
5674
+ if (configuration) {
5675
+ baseOptions = configuration.baseOptions;
5676
+ }
5677
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
5678
+ const localVarHeaderParameter = {};
5679
+ const localVarQueryParameter = {};
5680
+ // authentication staffSession required
5681
+ // authentication adminAuth required
5682
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5683
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5684
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5685
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5686
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5687
+ localVarRequestOptions.data = serializeDataIfNeeded(planArchiveInputDTO, localVarRequestOptions, configuration);
5688
+ return {
5689
+ url: toPathString(localVarUrlObj),
5690
+ options: localVarRequestOptions,
5691
+ };
5692
+ },
5693
+ /**
5694
+ * Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
5695
+ * @summary Create a Plan
5696
+ * @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
5697
+ * @param {*} [options] Override http request option.
5698
+ * @throws {RequiredError}
5699
+ */
5700
+ staffPlanControllerCreate: async (planCreateInputDTO, options = {}) => {
5701
+ const localVarPath = `/staff/plans`;
5702
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5703
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5704
+ let baseOptions;
5705
+ if (configuration) {
5706
+ baseOptions = configuration.baseOptions;
5707
+ }
5708
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
5709
+ const localVarHeaderParameter = {};
5710
+ const localVarQueryParameter = {};
5711
+ // authentication staffSession required
5712
+ // authentication adminAuth required
5713
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5714
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5715
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5716
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5717
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5718
+ localVarRequestOptions.data = serializeDataIfNeeded(planCreateInputDTO, localVarRequestOptions, configuration);
5719
+ return {
5720
+ url: toPathString(localVarUrlObj),
5721
+ options: localVarRequestOptions,
5722
+ };
5723
+ },
5724
+ /**
5725
+ * Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
5726
+ * @summary Change history of a Plan
5727
+ * @param {string} id
5728
+ * @param {*} [options] Override http request option.
5729
+ * @throws {RequiredError}
5730
+ */
5731
+ staffPlanControllerHistory: async (id, options = {}) => {
5732
+ // verify required parameter 'id' is not null or undefined
5733
+ assertParamExists('staffPlanControllerHistory', 'id', id);
5734
+ const localVarPath = `/staff/plans/{id}/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3706
5735
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3707
5736
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3708
5737
  let baseOptions;
@@ -3712,6 +5741,9 @@ export const StaffAuthApiAxiosParamCreator = function (configuration) {
3712
5741
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3713
5742
  const localVarHeaderParameter = {};
3714
5743
  const localVarQueryParameter = {};
5744
+ // authentication staffSession required
5745
+ // authentication adminAuth required
5746
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3715
5747
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3716
5748
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3717
5749
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3721,13 +5753,106 @@ export const StaffAuthApiAxiosParamCreator = function (configuration) {
3721
5753
  };
3722
5754
  },
3723
5755
  /**
3724
- * <br> OperationId: `StaffAuthControllerLogin`
3725
- * @summary Login
5756
+ * Creates a Plan per billing-provider product in one transaction; a no-op once any import was recorded. Domains and Distributors still on a legacy product id move to its Plan, and a Domain that predates Plans keeps its hand-set limits as overrides. A product already linked to a Plan maps to that Plan instead.<br> OperationId: `StaffPlanControllerImport`
5757
+ * @summary Import Plans from the billing provider
5758
+ * @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
3726
5759
  * @param {*} [options] Override http request option.
3727
5760
  * @throws {RequiredError}
3728
5761
  */
3729
- staffAuthControllerLogin: async (options = {}) => {
3730
- const localVarPath = `/auth/login`;
5762
+ staffPlanControllerImport: async (planImportInputDTO, options = {}) => {
5763
+ const localVarPath = `/staff/plans/import`;
5764
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5765
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5766
+ let baseOptions;
5767
+ if (configuration) {
5768
+ baseOptions = configuration.baseOptions;
5769
+ }
5770
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
5771
+ const localVarHeaderParameter = {};
5772
+ const localVarQueryParameter = {};
5773
+ // authentication staffSession required
5774
+ // authentication adminAuth required
5775
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5776
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5777
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5778
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5779
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5780
+ localVarRequestOptions.data = serializeDataIfNeeded(planImportInputDTO, localVarRequestOptions, configuration);
5781
+ return {
5782
+ url: toPathString(localVarUrlObj),
5783
+ options: localVarRequestOptions,
5784
+ };
5785
+ },
5786
+ /**
5787
+ * True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
5788
+ * @summary Whether the billing-provider import ran
5789
+ * @param {*} [options] Override http request option.
5790
+ * @throws {RequiredError}
5791
+ */
5792
+ staffPlanControllerImportStatus: async (options = {}) => {
5793
+ const localVarPath = `/staff/plans/import`;
5794
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5795
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5796
+ let baseOptions;
5797
+ if (configuration) {
5798
+ baseOptions = configuration.baseOptions;
5799
+ }
5800
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5801
+ const localVarHeaderParameter = {};
5802
+ const localVarQueryParameter = {};
5803
+ // authentication staffSession required
5804
+ // authentication adminAuth required
5805
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5806
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5807
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5808
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5809
+ return {
5810
+ url: toPathString(localVarUrlObj),
5811
+ options: localVarRequestOptions,
5812
+ };
5813
+ },
5814
+ /**
5815
+ * Every Takaro Plan, oldest first. Archived Plans only with `includeArchived=true`. The ids here are what a Distributor’s allowedPlans and a Domain’s planId hold.<br> OperationId: `StaffPlanControllerList`
5816
+ * @summary List Plans
5817
+ * @param {any} [includeArchived]
5818
+ * @param {*} [options] Override http request option.
5819
+ * @throws {RequiredError}
5820
+ */
5821
+ staffPlanControllerList: async (includeArchived, options = {}) => {
5822
+ const localVarPath = `/staff/plans`;
5823
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5824
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5825
+ let baseOptions;
5826
+ if (configuration) {
5827
+ baseOptions = configuration.baseOptions;
5828
+ }
5829
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5830
+ const localVarHeaderParameter = {};
5831
+ const localVarQueryParameter = {};
5832
+ // authentication staffSession required
5833
+ // authentication adminAuth required
5834
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5835
+ if (includeArchived !== undefined) {
5836
+ for (const [key, value] of Object.entries(includeArchived)) {
5837
+ localVarQueryParameter[key] = value;
5838
+ }
5839
+ }
5840
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5841
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5842
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5843
+ return {
5844
+ url: toPathString(localVarUrlObj),
5845
+ options: localVarRequestOptions,
5846
+ };
5847
+ },
5848
+ /**
5849
+ * Every product the billing provider knows about, with its prices, unfiltered by storefront lookup keys. A Plan’s stripeProductId is one of these ids.<br> OperationId: `StaffPlanControllerListStripeProducts`
5850
+ * @summary The billing provider’s products
5851
+ * @param {*} [options] Override http request option.
5852
+ * @throws {RequiredError}
5853
+ */
5854
+ staffPlanControllerListStripeProducts: async (options = {}) => {
5855
+ const localVarPath = `/staff/stripe-products`;
3731
5856
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3732
5857
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3733
5858
  let baseOptions;
@@ -3737,34 +5862,80 @@ export const StaffAuthApiAxiosParamCreator = function (configuration) {
3737
5862
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3738
5863
  const localVarHeaderParameter = {};
3739
5864
  const localVarQueryParameter = {};
5865
+ // authentication staffSession required
5866
+ // authentication adminAuth required
5867
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5868
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5869
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5870
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5871
+ return {
5872
+ url: toPathString(localVarUrlObj),
5873
+ options: localVarRequestOptions,
5874
+ };
5875
+ },
5876
+ /**
5877
+ * A dry run of the proposed limits: how many Domains change, how many game servers would be disabled, and how many Domains would be over their user or role limits. Overrides are taken into account.<br> OperationId: `StaffPlanControllerPreview`
5878
+ * @summary Preview a Plan edit
5879
+ * @param {string} id
5880
+ * @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
5881
+ * @param {*} [options] Override http request option.
5882
+ * @throws {RequiredError}
5883
+ */
5884
+ staffPlanControllerPreview: async (id, planPreviewInputDTO, options = {}) => {
5885
+ // verify required parameter 'id' is not null or undefined
5886
+ assertParamExists('staffPlanControllerPreview', 'id', id);
5887
+ const localVarPath = `/staff/plans/{id}/preview`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5888
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5889
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5890
+ let baseOptions;
5891
+ if (configuration) {
5892
+ baseOptions = configuration.baseOptions;
5893
+ }
5894
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
5895
+ const localVarHeaderParameter = {};
5896
+ const localVarQueryParameter = {};
5897
+ // authentication staffSession required
5898
+ // authentication adminAuth required
5899
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5900
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3740
5901
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3741
5902
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3742
5903
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5904
+ localVarRequestOptions.data = serializeDataIfNeeded(planPreviewInputDTO, localVarRequestOptions, configuration);
3743
5905
  return {
3744
5906
  url: toPathString(localVarUrlObj),
3745
5907
  options: localVarRequestOptions,
3746
5908
  };
3747
5909
  },
3748
5910
  /**
3749
- * <br> OperationId: `StaffAuthControllerLogout`
3750
- * @summary Logout
5911
+ * Changed limits reach every Domain on the Plan shortly after, through a queued job. A shrink of `maxGameservers` disables the newest excess servers; preview it first. Changing or removing the billing-provider product is refused with a 409 while a subscription-backed Domain is on the Plan.<br> OperationId: `StaffPlanControllerUpdate`
5912
+ * @summary Update a Plan
5913
+ * @param {string} id
5914
+ * @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
3751
5915
  * @param {*} [options] Override http request option.
3752
5916
  * @throws {RequiredError}
3753
5917
  */
3754
- staffAuthControllerLogout: async (options = {}) => {
3755
- const localVarPath = `/auth/logout`;
5918
+ staffPlanControllerUpdate: async (id, planUpdateInputDTO, options = {}) => {
5919
+ // verify required parameter 'id' is not null or undefined
5920
+ assertParamExists('staffPlanControllerUpdate', 'id', id);
5921
+ const localVarPath = `/staff/plans/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3756
5922
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3757
5923
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3758
5924
  let baseOptions;
3759
5925
  if (configuration) {
3760
5926
  baseOptions = configuration.baseOptions;
3761
5927
  }
3762
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5928
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3763
5929
  const localVarHeaderParameter = {};
3764
5930
  const localVarQueryParameter = {};
5931
+ // authentication staffSession required
5932
+ // authentication adminAuth required
5933
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5934
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3765
5935
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3766
5936
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3767
5937
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5938
+ localVarRequestOptions.data = serializeDataIfNeeded(planUpdateInputDTO, localVarRequestOptions, configuration);
3768
5939
  return {
3769
5940
  url: toPathString(localVarUrlObj),
3770
5941
  options: localVarRequestOptions,
@@ -3773,144 +5944,447 @@ export const StaffAuthApiAxiosParamCreator = function (configuration) {
3773
5944
  };
3774
5945
  };
3775
5946
  /**
3776
- * StaffAuthApi - functional programming interface
5947
+ * StaffPlanApi - functional programming interface
3777
5948
  * @export
3778
5949
  */
3779
- export const StaffAuthApiFp = function (configuration) {
3780
- const localVarAxiosParamCreator = StaffAuthApiAxiosParamCreator(configuration);
5950
+ export const StaffPlanApiFp = function (configuration) {
5951
+ const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
3781
5952
  return {
3782
5953
  /**
3783
- * <br> OperationId: `StaffAuthControllerCallback`
3784
- * @summary Callback
5954
+ * Refused while any Domain is on the Plan or any Distributor allows it. Frees its billing-provider product for another Plan; the history keeps the old link. Idempotent.<br> OperationId: `StaffPlanControllerArchive`
5955
+ * @summary Archive a Plan
5956
+ * @param {string} id
5957
+ * @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
3785
5958
  * @param {*} [options] Override http request option.
3786
5959
  * @throws {RequiredError}
3787
5960
  */
3788
- async staffAuthControllerCallback(options) {
3789
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerCallback(options);
5961
+ async staffPlanControllerArchive(id, planArchiveInputDTO, options) {
5962
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerArchive(id, planArchiveInputDTO, options);
3790
5963
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3791
- const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerCallback']?.[localVarOperationServerIndex]?.url;
5964
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerArchive']?.[localVarOperationServerIndex]?.url;
3792
5965
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3793
5966
  },
3794
5967
  /**
3795
- * <br> OperationId: `StaffAuthControllerLogin`
3796
- * @summary Login
5968
+ * Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
5969
+ * @summary Create a Plan
5970
+ * @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
3797
5971
  * @param {*} [options] Override http request option.
3798
5972
  * @throws {RequiredError}
3799
5973
  */
3800
- async staffAuthControllerLogin(options) {
3801
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogin(options);
5974
+ async staffPlanControllerCreate(planCreateInputDTO, options) {
5975
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerCreate(planCreateInputDTO, options);
3802
5976
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3803
- const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogin']?.[localVarOperationServerIndex]?.url;
5977
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerCreate']?.[localVarOperationServerIndex]?.url;
3804
5978
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3805
5979
  },
3806
5980
  /**
3807
- * <br> OperationId: `StaffAuthControllerLogout`
3808
- * @summary Logout
5981
+ * Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
5982
+ * @summary Change history of a Plan
5983
+ * @param {string} id
3809
5984
  * @param {*} [options] Override http request option.
3810
5985
  * @throws {RequiredError}
3811
5986
  */
3812
- async staffAuthControllerLogout(options) {
3813
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogout(options);
5987
+ async staffPlanControllerHistory(id, options) {
5988
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerHistory(id, options);
3814
5989
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3815
- const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogout']?.[localVarOperationServerIndex]?.url;
5990
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerHistory']?.[localVarOperationServerIndex]?.url;
5991
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5992
+ },
5993
+ /**
5994
+ * Creates a Plan per billing-provider product in one transaction; a no-op once any import was recorded. Domains and Distributors still on a legacy product id move to its Plan, and a Domain that predates Plans keeps its hand-set limits as overrides. A product already linked to a Plan maps to that Plan instead.<br> OperationId: `StaffPlanControllerImport`
5995
+ * @summary Import Plans from the billing provider
5996
+ * @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
5997
+ * @param {*} [options] Override http request option.
5998
+ * @throws {RequiredError}
5999
+ */
6000
+ async staffPlanControllerImport(planImportInputDTO, options) {
6001
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImport(planImportInputDTO, options);
6002
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6003
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImport']?.[localVarOperationServerIndex]?.url;
6004
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6005
+ },
6006
+ /**
6007
+ * True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
6008
+ * @summary Whether the billing-provider import ran
6009
+ * @param {*} [options] Override http request option.
6010
+ * @throws {RequiredError}
6011
+ */
6012
+ async staffPlanControllerImportStatus(options) {
6013
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImportStatus(options);
6014
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6015
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImportStatus']?.[localVarOperationServerIndex]?.url;
6016
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6017
+ },
6018
+ /**
6019
+ * Every Takaro Plan, oldest first. Archived Plans only with `includeArchived=true`. The ids here are what a Distributor’s allowedPlans and a Domain’s planId hold.<br> OperationId: `StaffPlanControllerList`
6020
+ * @summary List Plans
6021
+ * @param {any} [includeArchived]
6022
+ * @param {*} [options] Override http request option.
6023
+ * @throws {RequiredError}
6024
+ */
6025
+ async staffPlanControllerList(includeArchived, options) {
6026
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(includeArchived, options);
6027
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6028
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
6029
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6030
+ },
6031
+ /**
6032
+ * Every product the billing provider knows about, with its prices, unfiltered by storefront lookup keys. A Plan’s stripeProductId is one of these ids.<br> OperationId: `StaffPlanControllerListStripeProducts`
6033
+ * @summary The billing provider’s products
6034
+ * @param {*} [options] Override http request option.
6035
+ * @throws {RequiredError}
6036
+ */
6037
+ async staffPlanControllerListStripeProducts(options) {
6038
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerListStripeProducts(options);
6039
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6040
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerListStripeProducts']?.[localVarOperationServerIndex]?.url;
6041
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6042
+ },
6043
+ /**
6044
+ * A dry run of the proposed limits: how many Domains change, how many game servers would be disabled, and how many Domains would be over their user or role limits. Overrides are taken into account.<br> OperationId: `StaffPlanControllerPreview`
6045
+ * @summary Preview a Plan edit
6046
+ * @param {string} id
6047
+ * @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
6048
+ * @param {*} [options] Override http request option.
6049
+ * @throws {RequiredError}
6050
+ */
6051
+ async staffPlanControllerPreview(id, planPreviewInputDTO, options) {
6052
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerPreview(id, planPreviewInputDTO, options);
6053
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6054
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerPreview']?.[localVarOperationServerIndex]?.url;
6055
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6056
+ },
6057
+ /**
6058
+ * Changed limits reach every Domain on the Plan shortly after, through a queued job. A shrink of `maxGameservers` disables the newest excess servers; preview it first. Changing or removing the billing-provider product is refused with a 409 while a subscription-backed Domain is on the Plan.<br> OperationId: `StaffPlanControllerUpdate`
6059
+ * @summary Update a Plan
6060
+ * @param {string} id
6061
+ * @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
6062
+ * @param {*} [options] Override http request option.
6063
+ * @throws {RequiredError}
6064
+ */
6065
+ async staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
6066
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerUpdate(id, planUpdateInputDTO, options);
6067
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6068
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerUpdate']?.[localVarOperationServerIndex]?.url;
3816
6069
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3817
6070
  },
3818
6071
  };
3819
6072
  };
3820
6073
  /**
3821
- * StaffAuthApi - factory interface
6074
+ * StaffPlanApi - factory interface
3822
6075
  * @export
3823
6076
  */
3824
- export const StaffAuthApiFactory = function (configuration, basePath, axios) {
3825
- const localVarFp = StaffAuthApiFp(configuration);
6077
+ export const StaffPlanApiFactory = function (configuration, basePath, axios) {
6078
+ const localVarFp = StaffPlanApiFp(configuration);
3826
6079
  return {
3827
6080
  /**
3828
- * <br> OperationId: `StaffAuthControllerCallback`
3829
- * @summary Callback
6081
+ * Refused while any Domain is on the Plan or any Distributor allows it. Frees its billing-provider product for another Plan; the history keeps the old link. Idempotent.<br> OperationId: `StaffPlanControllerArchive`
6082
+ * @summary Archive a Plan
6083
+ * @param {string} id
6084
+ * @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
3830
6085
  * @param {*} [options] Override http request option.
3831
6086
  * @throws {RequiredError}
3832
6087
  */
3833
- staffAuthControllerCallback(options) {
3834
- return localVarFp.staffAuthControllerCallback(options).then((request) => request(axios, basePath));
6088
+ staffPlanControllerArchive(id, planArchiveInputDTO, options) {
6089
+ return localVarFp
6090
+ .staffPlanControllerArchive(id, planArchiveInputDTO, options)
6091
+ .then((request) => request(axios, basePath));
3835
6092
  },
3836
6093
  /**
3837
- * <br> OperationId: `StaffAuthControllerLogin`
3838
- * @summary Login
6094
+ * Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
6095
+ * @summary Create a Plan
6096
+ * @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
3839
6097
  * @param {*} [options] Override http request option.
3840
6098
  * @throws {RequiredError}
3841
6099
  */
3842
- staffAuthControllerLogin(options) {
3843
- return localVarFp.staffAuthControllerLogin(options).then((request) => request(axios, basePath));
6100
+ staffPlanControllerCreate(planCreateInputDTO, options) {
6101
+ return localVarFp
6102
+ .staffPlanControllerCreate(planCreateInputDTO, options)
6103
+ .then((request) => request(axios, basePath));
3844
6104
  },
3845
6105
  /**
3846
- * <br> OperationId: `StaffAuthControllerLogout`
3847
- * @summary Logout
6106
+ * Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
6107
+ * @summary Change history of a Plan
6108
+ * @param {string} id
3848
6109
  * @param {*} [options] Override http request option.
3849
6110
  * @throws {RequiredError}
3850
6111
  */
3851
- staffAuthControllerLogout(options) {
3852
- return localVarFp.staffAuthControllerLogout(options).then((request) => request(axios, basePath));
6112
+ staffPlanControllerHistory(id, options) {
6113
+ return localVarFp.staffPlanControllerHistory(id, options).then((request) => request(axios, basePath));
6114
+ },
6115
+ /**
6116
+ * Creates a Plan per billing-provider product in one transaction; a no-op once any import was recorded. Domains and Distributors still on a legacy product id move to its Plan, and a Domain that predates Plans keeps its hand-set limits as overrides. A product already linked to a Plan maps to that Plan instead.<br> OperationId: `StaffPlanControllerImport`
6117
+ * @summary Import Plans from the billing provider
6118
+ * @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
6119
+ * @param {*} [options] Override http request option.
6120
+ * @throws {RequiredError}
6121
+ */
6122
+ staffPlanControllerImport(planImportInputDTO, options) {
6123
+ return localVarFp
6124
+ .staffPlanControllerImport(planImportInputDTO, options)
6125
+ .then((request) => request(axios, basePath));
6126
+ },
6127
+ /**
6128
+ * True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
6129
+ * @summary Whether the billing-provider import ran
6130
+ * @param {*} [options] Override http request option.
6131
+ * @throws {RequiredError}
6132
+ */
6133
+ staffPlanControllerImportStatus(options) {
6134
+ return localVarFp.staffPlanControllerImportStatus(options).then((request) => request(axios, basePath));
6135
+ },
6136
+ /**
6137
+ * Every Takaro Plan, oldest first. Archived Plans only with `includeArchived=true`. The ids here are what a Distributor’s allowedPlans and a Domain’s planId hold.<br> OperationId: `StaffPlanControllerList`
6138
+ * @summary List Plans
6139
+ * @param {any} [includeArchived]
6140
+ * @param {*} [options] Override http request option.
6141
+ * @throws {RequiredError}
6142
+ */
6143
+ staffPlanControllerList(includeArchived, options) {
6144
+ return localVarFp.staffPlanControllerList(includeArchived, options).then((request) => request(axios, basePath));
6145
+ },
6146
+ /**
6147
+ * Every product the billing provider knows about, with its prices, unfiltered by storefront lookup keys. A Plan’s stripeProductId is one of these ids.<br> OperationId: `StaffPlanControllerListStripeProducts`
6148
+ * @summary The billing provider’s products
6149
+ * @param {*} [options] Override http request option.
6150
+ * @throws {RequiredError}
6151
+ */
6152
+ staffPlanControllerListStripeProducts(options) {
6153
+ return localVarFp.staffPlanControllerListStripeProducts(options).then((request) => request(axios, basePath));
6154
+ },
6155
+ /**
6156
+ * A dry run of the proposed limits: how many Domains change, how many game servers would be disabled, and how many Domains would be over their user or role limits. Overrides are taken into account.<br> OperationId: `StaffPlanControllerPreview`
6157
+ * @summary Preview a Plan edit
6158
+ * @param {string} id
6159
+ * @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
6160
+ * @param {*} [options] Override http request option.
6161
+ * @throws {RequiredError}
6162
+ */
6163
+ staffPlanControllerPreview(id, planPreviewInputDTO, options) {
6164
+ return localVarFp
6165
+ .staffPlanControllerPreview(id, planPreviewInputDTO, options)
6166
+ .then((request) => request(axios, basePath));
6167
+ },
6168
+ /**
6169
+ * Changed limits reach every Domain on the Plan shortly after, through a queued job. A shrink of `maxGameservers` disables the newest excess servers; preview it first. Changing or removing the billing-provider product is refused with a 409 while a subscription-backed Domain is on the Plan.<br> OperationId: `StaffPlanControllerUpdate`
6170
+ * @summary Update a Plan
6171
+ * @param {string} id
6172
+ * @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
6173
+ * @param {*} [options] Override http request option.
6174
+ * @throws {RequiredError}
6175
+ */
6176
+ staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
6177
+ return localVarFp
6178
+ .staffPlanControllerUpdate(id, planUpdateInputDTO, options)
6179
+ .then((request) => request(axios, basePath));
3853
6180
  },
3854
6181
  };
3855
6182
  };
3856
6183
  /**
3857
- * StaffAuthApi - object-oriented interface
6184
+ * StaffPlanApi - object-oriented interface
3858
6185
  * @export
3859
- * @class StaffAuthApi
6186
+ * @class StaffPlanApi
3860
6187
  * @extends {BaseAPI}
3861
6188
  */
3862
- export class StaffAuthApi extends BaseAPI {
6189
+ export class StaffPlanApi extends BaseAPI {
3863
6190
  /**
3864
- * <br> OperationId: `StaffAuthControllerCallback`
3865
- * @summary Callback
6191
+ * Refused while any Domain is on the Plan or any Distributor allows it. Frees its billing-provider product for another Plan; the history keeps the old link. Idempotent.<br> OperationId: `StaffPlanControllerArchive`
6192
+ * @summary Archive a Plan
6193
+ * @param {string} id
6194
+ * @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
3866
6195
  * @param {*} [options] Override http request option.
3867
6196
  * @throws {RequiredError}
3868
- * @memberof StaffAuthApi
6197
+ * @memberof StaffPlanApi
3869
6198
  */
3870
- staffAuthControllerCallback(options) {
3871
- return StaffAuthApiFp(this.configuration)
3872
- .staffAuthControllerCallback(options)
6199
+ staffPlanControllerArchive(id, planArchiveInputDTO, options) {
6200
+ return StaffPlanApiFp(this.configuration)
6201
+ .staffPlanControllerArchive(id, planArchiveInputDTO, options)
3873
6202
  .then((request) => request(this.axios, this.basePath));
3874
6203
  }
3875
6204
  /**
3876
- * <br> OperationId: `StaffAuthControllerLogin`
3877
- * @summary Login
6205
+ * Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
6206
+ * @summary Create a Plan
6207
+ * @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
3878
6208
  * @param {*} [options] Override http request option.
3879
6209
  * @throws {RequiredError}
3880
- * @memberof StaffAuthApi
6210
+ * @memberof StaffPlanApi
3881
6211
  */
3882
- staffAuthControllerLogin(options) {
3883
- return StaffAuthApiFp(this.configuration)
3884
- .staffAuthControllerLogin(options)
6212
+ staffPlanControllerCreate(planCreateInputDTO, options) {
6213
+ return StaffPlanApiFp(this.configuration)
6214
+ .staffPlanControllerCreate(planCreateInputDTO, options)
3885
6215
  .then((request) => request(this.axios, this.basePath));
3886
6216
  }
3887
6217
  /**
3888
- * <br> OperationId: `StaffAuthControllerLogout`
3889
- * @summary Logout
6218
+ * Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
6219
+ * @summary Change history of a Plan
6220
+ * @param {string} id
3890
6221
  * @param {*} [options] Override http request option.
3891
6222
  * @throws {RequiredError}
3892
- * @memberof StaffAuthApi
6223
+ * @memberof StaffPlanApi
3893
6224
  */
3894
- staffAuthControllerLogout(options) {
3895
- return StaffAuthApiFp(this.configuration)
3896
- .staffAuthControllerLogout(options)
6225
+ staffPlanControllerHistory(id, options) {
6226
+ return StaffPlanApiFp(this.configuration)
6227
+ .staffPlanControllerHistory(id, options)
6228
+ .then((request) => request(this.axios, this.basePath));
6229
+ }
6230
+ /**
6231
+ * Creates a Plan per billing-provider product in one transaction; a no-op once any import was recorded. Domains and Distributors still on a legacy product id move to its Plan, and a Domain that predates Plans keeps its hand-set limits as overrides. A product already linked to a Plan maps to that Plan instead.<br> OperationId: `StaffPlanControllerImport`
6232
+ * @summary Import Plans from the billing provider
6233
+ * @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
6234
+ * @param {*} [options] Override http request option.
6235
+ * @throws {RequiredError}
6236
+ * @memberof StaffPlanApi
6237
+ */
6238
+ staffPlanControllerImport(planImportInputDTO, options) {
6239
+ return StaffPlanApiFp(this.configuration)
6240
+ .staffPlanControllerImport(planImportInputDTO, options)
6241
+ .then((request) => request(this.axios, this.basePath));
6242
+ }
6243
+ /**
6244
+ * True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
6245
+ * @summary Whether the billing-provider import ran
6246
+ * @param {*} [options] Override http request option.
6247
+ * @throws {RequiredError}
6248
+ * @memberof StaffPlanApi
6249
+ */
6250
+ staffPlanControllerImportStatus(options) {
6251
+ return StaffPlanApiFp(this.configuration)
6252
+ .staffPlanControllerImportStatus(options)
6253
+ .then((request) => request(this.axios, this.basePath));
6254
+ }
6255
+ /**
6256
+ * Every Takaro Plan, oldest first. Archived Plans only with `includeArchived=true`. The ids here are what a Distributor’s allowedPlans and a Domain’s planId hold.<br> OperationId: `StaffPlanControllerList`
6257
+ * @summary List Plans
6258
+ * @param {any} [includeArchived]
6259
+ * @param {*} [options] Override http request option.
6260
+ * @throws {RequiredError}
6261
+ * @memberof StaffPlanApi
6262
+ */
6263
+ staffPlanControllerList(includeArchived, options) {
6264
+ return StaffPlanApiFp(this.configuration)
6265
+ .staffPlanControllerList(includeArchived, options)
6266
+ .then((request) => request(this.axios, this.basePath));
6267
+ }
6268
+ /**
6269
+ * Every product the billing provider knows about, with its prices, unfiltered by storefront lookup keys. A Plan’s stripeProductId is one of these ids.<br> OperationId: `StaffPlanControllerListStripeProducts`
6270
+ * @summary The billing provider’s products
6271
+ * @param {*} [options] Override http request option.
6272
+ * @throws {RequiredError}
6273
+ * @memberof StaffPlanApi
6274
+ */
6275
+ staffPlanControllerListStripeProducts(options) {
6276
+ return StaffPlanApiFp(this.configuration)
6277
+ .staffPlanControllerListStripeProducts(options)
6278
+ .then((request) => request(this.axios, this.basePath));
6279
+ }
6280
+ /**
6281
+ * A dry run of the proposed limits: how many Domains change, how many game servers would be disabled, and how many Domains would be over their user or role limits. Overrides are taken into account.<br> OperationId: `StaffPlanControllerPreview`
6282
+ * @summary Preview a Plan edit
6283
+ * @param {string} id
6284
+ * @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
6285
+ * @param {*} [options] Override http request option.
6286
+ * @throws {RequiredError}
6287
+ * @memberof StaffPlanApi
6288
+ */
6289
+ staffPlanControllerPreview(id, planPreviewInputDTO, options) {
6290
+ return StaffPlanApiFp(this.configuration)
6291
+ .staffPlanControllerPreview(id, planPreviewInputDTO, options)
6292
+ .then((request) => request(this.axios, this.basePath));
6293
+ }
6294
+ /**
6295
+ * Changed limits reach every Domain on the Plan shortly after, through a queued job. A shrink of `maxGameservers` disables the newest excess servers; preview it first. Changing or removing the billing-provider product is refused with a 409 while a subscription-backed Domain is on the Plan.<br> OperationId: `StaffPlanControllerUpdate`
6296
+ * @summary Update a Plan
6297
+ * @param {string} id
6298
+ * @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
6299
+ * @param {*} [options] Override http request option.
6300
+ * @throws {RequiredError}
6301
+ * @memberof StaffPlanApi
6302
+ */
6303
+ staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
6304
+ return StaffPlanApiFp(this.configuration)
6305
+ .staffPlanControllerUpdate(id, planUpdateInputDTO, options)
3897
6306
  .then((request) => request(this.axios, this.basePath));
3898
6307
  }
3899
6308
  }
3900
6309
  /**
3901
- * StaffMeApi - axios parameter creator
6310
+ * StaffTakaroAiApi - axios parameter creator
3902
6311
  * @export
3903
6312
  */
3904
- export const StaffMeApiAxiosParamCreator = function (configuration) {
6313
+ export const StaffTakaroAiApiAxiosParamCreator = function (configuration) {
3905
6314
  return {
3906
6315
  /**
3907
- * The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
3908
- * @summary Who this Staff session belongs to
6316
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
6317
+ * @summary Clear the Takaro AI override of a Domain
6318
+ * @param {string} id
6319
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
6320
+ * @param {*} [options] Override http request option.
6321
+ * @throws {RequiredError}
6322
+ */
6323
+ staffTakaroAiControllerClearDomainOverride: async (id, takaroAiOverrideClearInputDTO, options = {}) => {
6324
+ // verify required parameter 'id' is not null or undefined
6325
+ assertParamExists('staffTakaroAiControllerClearDomainOverride', 'id', id);
6326
+ const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6327
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6328
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6329
+ let baseOptions;
6330
+ if (configuration) {
6331
+ baseOptions = configuration.baseOptions;
6332
+ }
6333
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
6334
+ const localVarHeaderParameter = {};
6335
+ const localVarQueryParameter = {};
6336
+ // authentication staffSession required
6337
+ // authentication adminAuth required
6338
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6339
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6340
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6341
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6342
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6343
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiOverrideClearInputDTO, localVarRequestOptions, configuration);
6344
+ return {
6345
+ url: toPathString(localVarUrlObj),
6346
+ options: localVarRequestOptions,
6347
+ };
6348
+ },
6349
+ /**
6350
+ * Staff only. Amounts are integer microdollars: Plan base, the effective monthly allowance, usage and total spend, plus the override and its change history.<br> OperationId: `StaffTakaroAiControllerGetDomain`
6351
+ * @summary Takaro AI allowance, override and spend of a Domain
6352
+ * @param {string} id
6353
+ * @param {*} [options] Override http request option.
6354
+ * @throws {RequiredError}
6355
+ */
6356
+ staffTakaroAiControllerGetDomain: async (id, options = {}) => {
6357
+ // verify required parameter 'id' is not null or undefined
6358
+ assertParamExists('staffTakaroAiControllerGetDomain', 'id', id);
6359
+ const localVarPath = `/staff/takaro-ai/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6360
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6361
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6362
+ let baseOptions;
6363
+ if (configuration) {
6364
+ baseOptions = configuration.baseOptions;
6365
+ }
6366
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6367
+ const localVarHeaderParameter = {};
6368
+ const localVarQueryParameter = {};
6369
+ // authentication staffSession required
6370
+ // authentication adminAuth required
6371
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6374
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6375
+ return {
6376
+ url: toPathString(localVarUrlObj),
6377
+ options: localVarRequestOptions,
6378
+ };
6379
+ },
6380
+ /**
6381
+ * Staff only. Amounts are integer microdollars: platform spend this month, today and in the spend alert window, the top Domains by spend, the global multiplier and its history, and the spend alerts.<br> OperationId: `StaffTakaroAiControllerGetPlatform`
6382
+ * @summary Takaro AI platform spend and global multiplier
3909
6383
  * @param {*} [options] Override http request option.
3910
6384
  * @throws {RequiredError}
3911
6385
  */
3912
- staffMeControllerMe: async (options = {}) => {
3913
- const localVarPath = `/staff/me`;
6386
+ staffTakaroAiControllerGetPlatform: async (options = {}) => {
6387
+ const localVarPath = `/staff/takaro-ai`;
3914
6388
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3915
6389
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3916
6390
  let baseOptions;
@@ -3931,96 +6405,100 @@ export const StaffMeApiAxiosParamCreator = function (configuration) {
3931
6405
  options: localVarRequestOptions,
3932
6406
  };
3933
6407
  },
3934
- };
3935
- };
3936
- /**
3937
- * StaffMeApi - functional programming interface
3938
- * @export
3939
- */
3940
- export const StaffMeApiFp = function (configuration) {
3941
- const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
3942
- return {
3943
6408
  /**
3944
- * The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
3945
- * @summary Who this Staff session belongs to
6409
+ * Staff only. A factor on the Domain’s allowance, 0 to 1000, with an optional expiry in the future. 0 switches Takaro AI off for the Domain. The billing reconciler never writes it.<br> OperationId: `StaffTakaroAiControllerSetDomainOverride`
6410
+ * @summary Set the Takaro AI override of a Domain
6411
+ * @param {string} id
6412
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
3946
6413
  * @param {*} [options] Override http request option.
3947
6414
  * @throws {RequiredError}
3948
6415
  */
3949
- async staffMeControllerMe(options) {
3950
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
3951
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3952
- const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
3953
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6416
+ staffTakaroAiControllerSetDomainOverride: async (id, takaroAiDomainOverrideInputDTO, options = {}) => {
6417
+ // verify required parameter 'id' is not null or undefined
6418
+ assertParamExists('staffTakaroAiControllerSetDomainOverride', 'id', id);
6419
+ const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6420
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6421
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6422
+ let baseOptions;
6423
+ if (configuration) {
6424
+ baseOptions = configuration.baseOptions;
6425
+ }
6426
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
6427
+ const localVarHeaderParameter = {};
6428
+ const localVarQueryParameter = {};
6429
+ // authentication staffSession required
6430
+ // authentication adminAuth required
6431
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6432
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6433
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6434
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6435
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6436
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiDomainOverrideInputDTO, localVarRequestOptions, configuration);
6437
+ return {
6438
+ url: toPathString(localVarUrlObj),
6439
+ options: localVarRequestOptions,
6440
+ };
3954
6441
  },
3955
- };
3956
- };
3957
- /**
3958
- * StaffMeApi - factory interface
3959
- * @export
3960
- */
3961
- export const StaffMeApiFactory = function (configuration, basePath, axios) {
3962
- const localVarFp = StaffMeApiFp(configuration);
3963
- return {
3964
6442
  /**
3965
- * The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
3966
- * @summary Who this Staff session belongs to
6443
+ * Staff only. A factor on every Domain’s monthly allowance, 0 to 10. Applies from the next usage evaluation; needs no restart. Recorded with who, when and the reason.<br> OperationId: `StaffTakaroAiControllerSetGlobalMultiplier`
6444
+ * @summary Set the Takaro AI global multiplier
6445
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
3967
6446
  * @param {*} [options] Override http request option.
3968
6447
  * @throws {RequiredError}
3969
6448
  */
3970
- staffMeControllerMe(options) {
3971
- return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
6449
+ staffTakaroAiControllerSetGlobalMultiplier: async (takaroAiGlobalMultiplierInputDTO, options = {}) => {
6450
+ const localVarPath = `/staff/takaro-ai/global-multiplier`;
6451
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6452
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6453
+ let baseOptions;
6454
+ if (configuration) {
6455
+ baseOptions = configuration.baseOptions;
6456
+ }
6457
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
6458
+ const localVarHeaderParameter = {};
6459
+ const localVarQueryParameter = {};
6460
+ // authentication staffSession required
6461
+ // authentication adminAuth required
6462
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6463
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6464
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6465
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6466
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6467
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiGlobalMultiplierInputDTO, localVarRequestOptions, configuration);
6468
+ return {
6469
+ url: toPathString(localVarUrlObj),
6470
+ options: localVarRequestOptions,
6471
+ };
3972
6472
  },
3973
- };
3974
- };
3975
- /**
3976
- * StaffMeApi - object-oriented interface
3977
- * @export
3978
- * @class StaffMeApi
3979
- * @extends {BaseAPI}
3980
- */
3981
- export class StaffMeApi extends BaseAPI {
3982
- /**
3983
- * The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
3984
- * @summary Who this Staff session belongs to
3985
- * @param {*} [options] Override http request option.
3986
- * @throws {RequiredError}
3987
- * @memberof StaffMeApi
3988
- */
3989
- staffMeControllerMe(options) {
3990
- return StaffMeApiFp(this.configuration)
3991
- .staffMeControllerMe(options)
3992
- .then((request) => request(this.axios, this.basePath));
3993
- }
3994
- }
3995
- /**
3996
- * StaffPlanApi - axios parameter creator
3997
- * @export
3998
- */
3999
- export const StaffPlanApiAxiosParamCreator = function (configuration) {
4000
- return {
4001
6473
  /**
4002
- * Every Plan the billing provider knows about, unfiltered by storefront lookup keys — the ids here are exactly what a Distributor’s allowedPlans accepts. A Viewer sees no prices; Operator and Owner do.<br> OperationId: `StaffPlanControllerList`
4003
- * @summary The Plan catalogue
6474
+ * Staff only. What the Domain may spend in CSMM Migration Threads over its lifetime, in integer microdollars. Those Threads do not count against the allowance, so this cap is their only bound. `null` goes back to the configured default. Applies from the next message.<br> OperationId: `StaffTakaroAiControllerSetMigrationCap`
6475
+ * @summary Set the CSMM Migration cap of a Domain
6476
+ * @param {string} id
6477
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
4004
6478
  * @param {*} [options] Override http request option.
4005
6479
  * @throws {RequiredError}
4006
6480
  */
4007
- staffPlanControllerList: async (options = {}) => {
4008
- const localVarPath = `/staff/plans`;
6481
+ staffTakaroAiControllerSetMigrationCap: async (id, takaroAiMigrationCapInputDTO, options = {}) => {
6482
+ // verify required parameter 'id' is not null or undefined
6483
+ assertParamExists('staffTakaroAiControllerSetMigrationCap', 'id', id);
6484
+ const localVarPath = `/staff/takaro-ai/domain/{id}/migration-cap`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4009
6485
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4010
6486
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4011
6487
  let baseOptions;
4012
6488
  if (configuration) {
4013
6489
  baseOptions = configuration.baseOptions;
4014
6490
  }
4015
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6491
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
4016
6492
  const localVarHeaderParameter = {};
4017
6493
  const localVarQueryParameter = {};
4018
6494
  // authentication staffSession required
4019
6495
  // authentication adminAuth required
4020
6496
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6497
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4021
6498
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4022
6499
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4023
6500
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6501
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiMigrationCapInputDTO, localVarRequestOptions, configuration);
4024
6502
  return {
4025
6503
  url: toPathString(localVarUrlObj),
4026
6504
  options: localVarRequestOptions,
@@ -4029,61 +6507,260 @@ export const StaffPlanApiAxiosParamCreator = function (configuration) {
4029
6507
  };
4030
6508
  };
4031
6509
  /**
4032
- * StaffPlanApi - functional programming interface
6510
+ * StaffTakaroAiApi - functional programming interface
4033
6511
  * @export
4034
6512
  */
4035
- export const StaffPlanApiFp = function (configuration) {
4036
- const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
6513
+ export const StaffTakaroAiApiFp = function (configuration) {
6514
+ const localVarAxiosParamCreator = StaffTakaroAiApiAxiosParamCreator(configuration);
4037
6515
  return {
4038
6516
  /**
4039
- * Every Plan the billing provider knows about, unfiltered by storefront lookup keys — the ids here are exactly what a Distributor’s allowedPlans accepts. A Viewer sees no prices; Operator and Owner do.<br> OperationId: `StaffPlanControllerList`
4040
- * @summary The Plan catalogue
6517
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
6518
+ * @summary Clear the Takaro AI override of a Domain
6519
+ * @param {string} id
6520
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
4041
6521
  * @param {*} [options] Override http request option.
4042
6522
  * @throws {RequiredError}
4043
6523
  */
4044
- async staffPlanControllerList(options) {
4045
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(options);
6524
+ async staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
6525
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options);
4046
6526
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4047
- const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
6527
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerClearDomainOverride']?.[localVarOperationServerIndex]?.url;
6528
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6529
+ },
6530
+ /**
6531
+ * Staff only. Amounts are integer microdollars: Plan base, the effective monthly allowance, usage and total spend, plus the override and its change history.<br> OperationId: `StaffTakaroAiControllerGetDomain`
6532
+ * @summary Takaro AI allowance, override and spend of a Domain
6533
+ * @param {string} id
6534
+ * @param {*} [options] Override http request option.
6535
+ * @throws {RequiredError}
6536
+ */
6537
+ async staffTakaroAiControllerGetDomain(id, options) {
6538
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetDomain(id, options);
6539
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6540
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetDomain']?.[localVarOperationServerIndex]?.url;
6541
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6542
+ },
6543
+ /**
6544
+ * Staff only. Amounts are integer microdollars: platform spend this month, today and in the spend alert window, the top Domains by spend, the global multiplier and its history, and the spend alerts.<br> OperationId: `StaffTakaroAiControllerGetPlatform`
6545
+ * @summary Takaro AI platform spend and global multiplier
6546
+ * @param {*} [options] Override http request option.
6547
+ * @throws {RequiredError}
6548
+ */
6549
+ async staffTakaroAiControllerGetPlatform(options) {
6550
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetPlatform(options);
6551
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6552
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetPlatform']?.[localVarOperationServerIndex]?.url;
6553
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6554
+ },
6555
+ /**
6556
+ * Staff only. A factor on the Domain’s allowance, 0 to 1000, with an optional expiry in the future. 0 switches Takaro AI off for the Domain. The billing reconciler never writes it.<br> OperationId: `StaffTakaroAiControllerSetDomainOverride`
6557
+ * @summary Set the Takaro AI override of a Domain
6558
+ * @param {string} id
6559
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
6560
+ * @param {*} [options] Override http request option.
6561
+ * @throws {RequiredError}
6562
+ */
6563
+ async staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
6564
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options);
6565
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6566
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetDomainOverride']?.[localVarOperationServerIndex]
6567
+ ?.url;
6568
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6569
+ },
6570
+ /**
6571
+ * Staff only. A factor on every Domain’s monthly allowance, 0 to 10. Applies from the next usage evaluation; needs no restart. Recorded with who, when and the reason.<br> OperationId: `StaffTakaroAiControllerSetGlobalMultiplier`
6572
+ * @summary Set the Takaro AI global multiplier
6573
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
6574
+ * @param {*} [options] Override http request option.
6575
+ * @throws {RequiredError}
6576
+ */
6577
+ async staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
6578
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options);
6579
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6580
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetGlobalMultiplier']?.[localVarOperationServerIndex]?.url;
6581
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6582
+ },
6583
+ /**
6584
+ * Staff only. What the Domain may spend in CSMM Migration Threads over its lifetime, in integer microdollars. Those Threads do not count against the allowance, so this cap is their only bound. `null` goes back to the configured default. Applies from the next message.<br> OperationId: `StaffTakaroAiControllerSetMigrationCap`
6585
+ * @summary Set the CSMM Migration cap of a Domain
6586
+ * @param {string} id
6587
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
6588
+ * @param {*} [options] Override http request option.
6589
+ * @throws {RequiredError}
6590
+ */
6591
+ async staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
6592
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options);
6593
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6594
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetMigrationCap']?.[localVarOperationServerIndex]
6595
+ ?.url;
4048
6596
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4049
6597
  },
4050
6598
  };
4051
6599
  };
4052
6600
  /**
4053
- * StaffPlanApi - factory interface
6601
+ * StaffTakaroAiApi - factory interface
4054
6602
  * @export
4055
6603
  */
4056
- export const StaffPlanApiFactory = function (configuration, basePath, axios) {
4057
- const localVarFp = StaffPlanApiFp(configuration);
6604
+ export const StaffTakaroAiApiFactory = function (configuration, basePath, axios) {
6605
+ const localVarFp = StaffTakaroAiApiFp(configuration);
4058
6606
  return {
4059
6607
  /**
4060
- * Every Plan the billing provider knows about, unfiltered by storefront lookup keys — the ids here are exactly what a Distributor’s allowedPlans accepts. A Viewer sees no prices; Operator and Owner do.<br> OperationId: `StaffPlanControllerList`
4061
- * @summary The Plan catalogue
6608
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
6609
+ * @summary Clear the Takaro AI override of a Domain
6610
+ * @param {string} id
6611
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
6612
+ * @param {*} [options] Override http request option.
6613
+ * @throws {RequiredError}
6614
+ */
6615
+ staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
6616
+ return localVarFp
6617
+ .staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
6618
+ .then((request) => request(axios, basePath));
6619
+ },
6620
+ /**
6621
+ * Staff only. Amounts are integer microdollars: Plan base, the effective monthly allowance, usage and total spend, plus the override and its change history.<br> OperationId: `StaffTakaroAiControllerGetDomain`
6622
+ * @summary Takaro AI allowance, override and spend of a Domain
6623
+ * @param {string} id
6624
+ * @param {*} [options] Override http request option.
6625
+ * @throws {RequiredError}
6626
+ */
6627
+ staffTakaroAiControllerGetDomain(id, options) {
6628
+ return localVarFp.staffTakaroAiControllerGetDomain(id, options).then((request) => request(axios, basePath));
6629
+ },
6630
+ /**
6631
+ * Staff only. Amounts are integer microdollars: platform spend this month, today and in the spend alert window, the top Domains by spend, the global multiplier and its history, and the spend alerts.<br> OperationId: `StaffTakaroAiControllerGetPlatform`
6632
+ * @summary Takaro AI platform spend and global multiplier
6633
+ * @param {*} [options] Override http request option.
6634
+ * @throws {RequiredError}
6635
+ */
6636
+ staffTakaroAiControllerGetPlatform(options) {
6637
+ return localVarFp.staffTakaroAiControllerGetPlatform(options).then((request) => request(axios, basePath));
6638
+ },
6639
+ /**
6640
+ * Staff only. A factor on the Domain’s allowance, 0 to 1000, with an optional expiry in the future. 0 switches Takaro AI off for the Domain. The billing reconciler never writes it.<br> OperationId: `StaffTakaroAiControllerSetDomainOverride`
6641
+ * @summary Set the Takaro AI override of a Domain
6642
+ * @param {string} id
6643
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
6644
+ * @param {*} [options] Override http request option.
6645
+ * @throws {RequiredError}
6646
+ */
6647
+ staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
6648
+ return localVarFp
6649
+ .staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
6650
+ .then((request) => request(axios, basePath));
6651
+ },
6652
+ /**
6653
+ * Staff only. A factor on every Domain’s monthly allowance, 0 to 10. Applies from the next usage evaluation; needs no restart. Recorded with who, when and the reason.<br> OperationId: `StaffTakaroAiControllerSetGlobalMultiplier`
6654
+ * @summary Set the Takaro AI global multiplier
6655
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
6656
+ * @param {*} [options] Override http request option.
6657
+ * @throws {RequiredError}
6658
+ */
6659
+ staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
6660
+ return localVarFp
6661
+ .staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
6662
+ .then((request) => request(axios, basePath));
6663
+ },
6664
+ /**
6665
+ * Staff only. What the Domain may spend in CSMM Migration Threads over its lifetime, in integer microdollars. Those Threads do not count against the allowance, so this cap is their only bound. `null` goes back to the configured default. Applies from the next message.<br> OperationId: `StaffTakaroAiControllerSetMigrationCap`
6666
+ * @summary Set the CSMM Migration cap of a Domain
6667
+ * @param {string} id
6668
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
4062
6669
  * @param {*} [options] Override http request option.
4063
6670
  * @throws {RequiredError}
4064
6671
  */
4065
- staffPlanControllerList(options) {
4066
- return localVarFp.staffPlanControllerList(options).then((request) => request(axios, basePath));
6672
+ staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
6673
+ return localVarFp
6674
+ .staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
6675
+ .then((request) => request(axios, basePath));
4067
6676
  },
4068
6677
  };
4069
6678
  };
4070
6679
  /**
4071
- * StaffPlanApi - object-oriented interface
6680
+ * StaffTakaroAiApi - object-oriented interface
4072
6681
  * @export
4073
- * @class StaffPlanApi
6682
+ * @class StaffTakaroAiApi
4074
6683
  * @extends {BaseAPI}
4075
6684
  */
4076
- export class StaffPlanApi extends BaseAPI {
6685
+ export class StaffTakaroAiApi extends BaseAPI {
4077
6686
  /**
4078
- * Every Plan the billing provider knows about, unfiltered by storefront lookup keys — the ids here are exactly what a Distributor’s allowedPlans accepts. A Viewer sees no prices; Operator and Owner do.<br> OperationId: `StaffPlanControllerList`
4079
- * @summary The Plan catalogue
6687
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
6688
+ * @summary Clear the Takaro AI override of a Domain
6689
+ * @param {string} id
6690
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
4080
6691
  * @param {*} [options] Override http request option.
4081
6692
  * @throws {RequiredError}
4082
- * @memberof StaffPlanApi
6693
+ * @memberof StaffTakaroAiApi
4083
6694
  */
4084
- staffPlanControllerList(options) {
4085
- return StaffPlanApiFp(this.configuration)
4086
- .staffPlanControllerList(options)
6695
+ staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
6696
+ return StaffTakaroAiApiFp(this.configuration)
6697
+ .staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
6698
+ .then((request) => request(this.axios, this.basePath));
6699
+ }
6700
+ /**
6701
+ * Staff only. Amounts are integer microdollars: Plan base, the effective monthly allowance, usage and total spend, plus the override and its change history.<br> OperationId: `StaffTakaroAiControllerGetDomain`
6702
+ * @summary Takaro AI allowance, override and spend of a Domain
6703
+ * @param {string} id
6704
+ * @param {*} [options] Override http request option.
6705
+ * @throws {RequiredError}
6706
+ * @memberof StaffTakaroAiApi
6707
+ */
6708
+ staffTakaroAiControllerGetDomain(id, options) {
6709
+ return StaffTakaroAiApiFp(this.configuration)
6710
+ .staffTakaroAiControllerGetDomain(id, options)
6711
+ .then((request) => request(this.axios, this.basePath));
6712
+ }
6713
+ /**
6714
+ * Staff only. Amounts are integer microdollars: platform spend this month, today and in the spend alert window, the top Domains by spend, the global multiplier and its history, and the spend alerts.<br> OperationId: `StaffTakaroAiControllerGetPlatform`
6715
+ * @summary Takaro AI platform spend and global multiplier
6716
+ * @param {*} [options] Override http request option.
6717
+ * @throws {RequiredError}
6718
+ * @memberof StaffTakaroAiApi
6719
+ */
6720
+ staffTakaroAiControllerGetPlatform(options) {
6721
+ return StaffTakaroAiApiFp(this.configuration)
6722
+ .staffTakaroAiControllerGetPlatform(options)
6723
+ .then((request) => request(this.axios, this.basePath));
6724
+ }
6725
+ /**
6726
+ * Staff only. A factor on the Domain’s allowance, 0 to 1000, with an optional expiry in the future. 0 switches Takaro AI off for the Domain. The billing reconciler never writes it.<br> OperationId: `StaffTakaroAiControllerSetDomainOverride`
6727
+ * @summary Set the Takaro AI override of a Domain
6728
+ * @param {string} id
6729
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
6730
+ * @param {*} [options] Override http request option.
6731
+ * @throws {RequiredError}
6732
+ * @memberof StaffTakaroAiApi
6733
+ */
6734
+ staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
6735
+ return StaffTakaroAiApiFp(this.configuration)
6736
+ .staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
6737
+ .then((request) => request(this.axios, this.basePath));
6738
+ }
6739
+ /**
6740
+ * Staff only. A factor on every Domain’s monthly allowance, 0 to 10. Applies from the next usage evaluation; needs no restart. Recorded with who, when and the reason.<br> OperationId: `StaffTakaroAiControllerSetGlobalMultiplier`
6741
+ * @summary Set the Takaro AI global multiplier
6742
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
6743
+ * @param {*} [options] Override http request option.
6744
+ * @throws {RequiredError}
6745
+ * @memberof StaffTakaroAiApi
6746
+ */
6747
+ staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
6748
+ return StaffTakaroAiApiFp(this.configuration)
6749
+ .staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
6750
+ .then((request) => request(this.axios, this.basePath));
6751
+ }
6752
+ /**
6753
+ * Staff only. What the Domain may spend in CSMM Migration Threads over its lifetime, in integer microdollars. Those Threads do not count against the allowance, so this cap is their only bound. `null` goes back to the configured default. Applies from the next message.<br> OperationId: `StaffTakaroAiControllerSetMigrationCap`
6754
+ * @summary Set the CSMM Migration cap of a Domain
6755
+ * @param {string} id
6756
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
6757
+ * @param {*} [options] Override http request option.
6758
+ * @throws {RequiredError}
6759
+ * @memberof StaffTakaroAiApi
6760
+ */
6761
+ staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
6762
+ return StaffTakaroAiApiFp(this.configuration)
6763
+ .staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
4087
6764
  .then((request) => request(this.axios, this.basePath));
4088
6765
  }
4089
6766
  }