@takaro/apiclient 0.0.0-dev.1d5aab5 → 0.0.0-dev.1e8ffdc

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 (52) hide show
  1. package/dist/.source-hash +1 -0
  2. package/dist/generated/api.d.ts +17614 -9323
  3. package/dist/generated/api.d.ts.map +1 -1
  4. package/dist/generated/api.js +10232 -5723
  5. package/dist/generated/api.js.map +1 -1
  6. package/dist/generated/base.d.ts.map +1 -1
  7. package/dist/generated/base.js.map +1 -1
  8. package/dist/generated/common.d.ts +1 -1
  9. package/dist/generated/common.d.ts.map +1 -1
  10. package/dist/generated/common.js.map +1 -1
  11. package/dist/generated/configuration.d.ts.map +1 -1
  12. package/dist/generated/configuration.js.map +1 -1
  13. package/dist/generated-management/api.d.ts +13896 -6856
  14. package/dist/generated-management/api.d.ts.map +1 -1
  15. package/dist/generated-management/api.js +3285 -437
  16. package/dist/generated-management/api.js.map +1 -1
  17. package/dist/generated-management/base.d.ts.map +1 -1
  18. package/dist/generated-management/base.js.map +1 -1
  19. package/dist/generated-management/common.d.ts +1 -1
  20. package/dist/generated-management/common.d.ts.map +1 -1
  21. package/dist/generated-management/common.js.map +1 -1
  22. package/dist/generated-management/configuration.d.ts.map +1 -1
  23. package/dist/generated-management/configuration.js.map +1 -1
  24. package/dist/lib/adminClient.d.ts +6 -1
  25. package/dist/lib/adminClient.d.ts.map +1 -1
  26. package/dist/lib/adminClient.js +16 -1
  27. package/dist/lib/adminClient.js.map +1 -1
  28. package/dist/lib/apiKey.d.ts +0 -15
  29. package/dist/lib/apiKey.d.ts.map +1 -1
  30. package/dist/lib/apiKey.js +2 -19
  31. package/dist/lib/apiKey.js.map +1 -1
  32. package/dist/lib/baseClient.d.ts +1 -27
  33. package/dist/lib/baseClient.d.ts.map +1 -1
  34. package/dist/lib/baseClient.js +3 -18
  35. package/dist/lib/baseClient.js.map +1 -1
  36. package/dist/lib/client.d.ts +10 -23
  37. package/dist/lib/client.d.ts.map +1 -1
  38. package/dist/lib/client.js +43 -33
  39. package/dist/lib/client.js.map +1 -1
  40. package/dist/lib/distributorClient.d.ts +0 -6
  41. package/dist/lib/distributorClient.d.ts.map +1 -1
  42. package/dist/lib/distributorClient.js +1 -7
  43. package/dist/lib/distributorClient.js.map +1 -1
  44. package/dist/lib/staffClient.d.ts +5 -12
  45. package/dist/lib/staffClient.d.ts.map +1 -1
  46. package/dist/lib/staffClient.js +11 -12
  47. package/dist/lib/staffClient.js.map +1 -1
  48. package/dist/main.d.ts +3 -3
  49. package/dist/main.d.ts.map +1 -1
  50. package/dist/main.js +3 -5
  51. package/dist/main.js.map +1 -1
  52. package/package.json +5 -4
@@ -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',
@@ -152,6 +170,7 @@ export const EventCreateDTOEventNameEnum = {
152
170
  SettingsSet: 'settings-set',
153
171
  PlayerNewIpDetected: 'player-new-ip-detected',
154
172
  PlayerNewNameDetected: 'player-new-name-detected',
173
+ PlayerIdentityConflict: 'player-identity-conflict',
155
174
  ServerStatusChanged: 'server-status-changed',
156
175
  ModuleCreated: 'module-created',
157
176
  ModuleUpdated: 'module-updated',
@@ -166,8 +185,11 @@ export const EventCreateDTOEventNameEnum = {
166
185
  ShopOrderStatusChanged: 'shop-order-status-changed',
167
186
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
168
187
  PlayerLinked: 'player-linked',
188
+ PlayerUnlinked: 'player-unlinked',
189
+ PlayerMerged: 'player-merged',
169
190
  GameserverCreated: 'gameserver-created',
170
191
  GameserverUpdated: 'gameserver-updated',
192
+ GameserverVersionChanged: 'gameserver-version-changed',
171
193
  GameserverDeleted: 'gameserver-deleted',
172
194
  PlayerBanned: 'player-banned',
173
195
  PlayerUnbanned: 'player-unbanned',
@@ -183,6 +205,12 @@ export const EventCreateDTOEventNameEnum = {
183
205
  DomainCreated: 'domain-created',
184
206
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
185
207
  DomainPlanChanged: 'domain-plan-changed',
208
+ ConnectorMigrationStarted: 'connector-migration-started',
209
+ ConnectorMigrationCompleted: 'connector-migration-completed',
210
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
211
+ ConnectorMigrationReverted: 'connector-migration-reverted',
212
+ DiscordGuildEnabled: 'discord-guild-enabled',
213
+ ItemsGiven: 'items-given',
186
214
  PlayerConnected: 'player-connected',
187
215
  PlayerDisconnected: 'player-disconnected',
188
216
  ChatMessage: 'chat-message',
@@ -205,6 +233,7 @@ export const EventOutputDTOEventNameEnum = {
205
233
  SettingsSet: 'settings-set',
206
234
  PlayerNewIpDetected: 'player-new-ip-detected',
207
235
  PlayerNewNameDetected: 'player-new-name-detected',
236
+ PlayerIdentityConflict: 'player-identity-conflict',
208
237
  ServerStatusChanged: 'server-status-changed',
209
238
  ModuleCreated: 'module-created',
210
239
  ModuleUpdated: 'module-updated',
@@ -219,8 +248,11 @@ export const EventOutputDTOEventNameEnum = {
219
248
  ShopOrderStatusChanged: 'shop-order-status-changed',
220
249
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
221
250
  PlayerLinked: 'player-linked',
251
+ PlayerUnlinked: 'player-unlinked',
252
+ PlayerMerged: 'player-merged',
222
253
  GameserverCreated: 'gameserver-created',
223
254
  GameserverUpdated: 'gameserver-updated',
255
+ GameserverVersionChanged: 'gameserver-version-changed',
224
256
  GameserverDeleted: 'gameserver-deleted',
225
257
  PlayerBanned: 'player-banned',
226
258
  PlayerUnbanned: 'player-unbanned',
@@ -236,24 +268,67 @@ export const EventOutputDTOEventNameEnum = {
236
268
  DomainCreated: 'domain-created',
237
269
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
238
270
  DomainPlanChanged: 'domain-plan-changed',
271
+ ConnectorMigrationStarted: 'connector-migration-started',
272
+ ConnectorMigrationCompleted: 'connector-migration-completed',
273
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
274
+ ConnectorMigrationReverted: 'connector-migration-reverted',
275
+ DiscordGuildEnabled: 'discord-guild-enabled',
276
+ ItemsGiven: 'items-given',
239
277
  PlayerConnected: 'player-connected',
240
278
  PlayerDisconnected: 'player-disconnected',
241
279
  ChatMessage: 'chat-message',
242
280
  PlayerDeath: 'player-death',
243
281
  EntityKilled: 'entity-killed',
244
282
  };
283
+ export const FixtureHistoryConflictDTOKindEnum = {
284
+ TakaroPlayer: 'takaro-player',
285
+ TakaroPog: 'takaro-pog',
286
+ };
287
+ export const FixtureHistoryDeleteInputDTOStoreEnum = {
288
+ Analytics: 'analytics',
289
+ Postgres: 'postgres',
290
+ };
291
+ export const FixtureHistoryEventDTOEventNameEnum = {
292
+ PlayerConnected: 'player-connected',
293
+ PlayerDisconnected: 'player-disconnected',
294
+ PlayerSyncSnapshot: 'player-sync-snapshot',
295
+ ChatMessage: 'chat-message',
296
+ CurrencyAdded: 'currency-added',
297
+ CurrencyDeducted: 'currency-deducted',
298
+ ShopOrderCreated: 'shop-order-created',
299
+ ShopOrderStatusChanged: 'shop-order-status-changed',
300
+ };
301
+ export const FixtureHistoryListingConflictDTOKindEnum = {
302
+ TakaroListing: 'takaro-listing',
303
+ };
304
+ export const FixtureHistoryOrderDTOStatusEnum = {
305
+ Completed: 'COMPLETED',
306
+ Canceled: 'CANCELED',
307
+ };
245
308
  export const GameServerCreateDTOTypeEnum = {
246
309
  Sevendaystodie: 'SEVENDAYSTODIE',
247
310
  Rust: 'RUST',
248
311
  Generic: 'GENERIC',
249
312
  Mock: 'MOCK',
250
313
  };
314
+ export const GameServerCreateDTONameSourceEnum = {
315
+ Connector: 'connector',
316
+ Operator: 'operator',
317
+ };
318
+ export const GameServerIdentifyInputDTOProtocolVersionEnum = {
319
+ NUMBER_0: 0,
320
+ NUMBER_1: 1,
321
+ };
251
322
  export const GameServerOutputDTOTypeEnum = {
252
323
  Sevendaystodie: 'SEVENDAYSTODIE',
253
324
  Rust: 'RUST',
254
325
  Generic: 'GENERIC',
255
326
  Mock: 'MOCK',
256
327
  };
328
+ export const GameServerOutputDTONameSourceEnum = {
329
+ Connector: 'connector',
330
+ Operator: 'operator',
331
+ };
257
332
  export const GameServerTypesOutputDTOTypeEnum = {
258
333
  Sevendaystodie: 'SEVENDAYSTODIE',
259
334
  Rust: 'RUST',
@@ -266,6 +341,28 @@ export const GameServerUpdateDTOTypeEnum = {
266
341
  Generic: 'GENERIC',
267
342
  Mock: 'MOCK',
268
343
  };
344
+ export const GetJobInputDTOTypeEnum = {
345
+ CsmmImport: 'csmmImport',
346
+ SeedModules: 'seedModules',
347
+ CleanEvents: 'cleanEvents',
348
+ CleanExpiringVariables: 'cleanExpiringVariables',
349
+ EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
350
+ DeleteGameServers: 'deleteGameServers',
351
+ SyncItems: 'syncItems',
352
+ SyncEntities: 'syncEntities',
353
+ SyncBans: 'syncBans',
354
+ SyncMapImages: 'syncMapImages',
355
+ SyncMapUploads: 'syncMapUploads',
356
+ SyncGameIcons: 'syncGameIcons',
357
+ SyncSteam: 'syncSteam',
358
+ SyncDiscordRoles: 'syncDiscordRoles',
359
+ EmitRateLimitSummary: 'emitRateLimitSummary',
360
+ CleanRevokedApiKeys: 'cleanRevokedApiKeys',
361
+ CleanExecutionClaims: 'cleanExecutionClaims',
362
+ DeleteClickHouseEvents: 'deleteClickHouseEvents',
363
+ RepointClickHouseEvents: 'repointClickHouseEvents',
364
+ CleanConnectorMigrations: 'cleanConnectorMigrations',
365
+ };
269
366
  export const HookCreateDTOEventTypeEnum = {
270
367
  Log: 'log',
271
368
  PlayerConnected: 'player-connected',
@@ -289,6 +386,7 @@ export const HookCreateDTOEventTypeEnum = {
289
386
  SettingsSet: 'settings-set',
290
387
  PlayerNewIpDetected: 'player-new-ip-detected',
291
388
  PlayerNewNameDetected: 'player-new-name-detected',
389
+ PlayerIdentityConflict: 'player-identity-conflict',
292
390
  ServerStatusChanged: 'server-status-changed',
293
391
  ModuleCreated: 'module-created',
294
392
  ModuleUpdated: 'module-updated',
@@ -303,8 +401,11 @@ export const HookCreateDTOEventTypeEnum = {
303
401
  ShopOrderStatusChanged: 'shop-order-status-changed',
304
402
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
305
403
  PlayerLinked: 'player-linked',
404
+ PlayerUnlinked: 'player-unlinked',
405
+ PlayerMerged: 'player-merged',
306
406
  GameserverCreated: 'gameserver-created',
307
407
  GameserverUpdated: 'gameserver-updated',
408
+ GameserverVersionChanged: 'gameserver-version-changed',
308
409
  GameserverDeleted: 'gameserver-deleted',
309
410
  PlayerBanned: 'player-banned',
310
411
  PlayerUnbanned: 'player-unbanned',
@@ -320,6 +421,12 @@ export const HookCreateDTOEventTypeEnum = {
320
421
  DomainCreated: 'domain-created',
321
422
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
322
423
  DomainPlanChanged: 'domain-plan-changed',
424
+ ConnectorMigrationStarted: 'connector-migration-started',
425
+ ConnectorMigrationCompleted: 'connector-migration-completed',
426
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
427
+ ConnectorMigrationReverted: 'connector-migration-reverted',
428
+ DiscordGuildEnabled: 'discord-guild-enabled',
429
+ ItemsGiven: 'items-given',
323
430
  };
324
431
  export const HookOutputDTOEventTypeEnum = {
325
432
  Log: 'log',
@@ -344,6 +451,7 @@ export const HookOutputDTOEventTypeEnum = {
344
451
  SettingsSet: 'settings-set',
345
452
  PlayerNewIpDetected: 'player-new-ip-detected',
346
453
  PlayerNewNameDetected: 'player-new-name-detected',
454
+ PlayerIdentityConflict: 'player-identity-conflict',
347
455
  ServerStatusChanged: 'server-status-changed',
348
456
  ModuleCreated: 'module-created',
349
457
  ModuleUpdated: 'module-updated',
@@ -358,8 +466,11 @@ export const HookOutputDTOEventTypeEnum = {
358
466
  ShopOrderStatusChanged: 'shop-order-status-changed',
359
467
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
360
468
  PlayerLinked: 'player-linked',
469
+ PlayerUnlinked: 'player-unlinked',
470
+ PlayerMerged: 'player-merged',
361
471
  GameserverCreated: 'gameserver-created',
362
472
  GameserverUpdated: 'gameserver-updated',
473
+ GameserverVersionChanged: 'gameserver-version-changed',
363
474
  GameserverDeleted: 'gameserver-deleted',
364
475
  PlayerBanned: 'player-banned',
365
476
  PlayerUnbanned: 'player-unbanned',
@@ -375,6 +486,12 @@ export const HookOutputDTOEventTypeEnum = {
375
486
  DomainCreated: 'domain-created',
376
487
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
377
488
  DomainPlanChanged: 'domain-plan-changed',
489
+ ConnectorMigrationStarted: 'connector-migration-started',
490
+ ConnectorMigrationCompleted: 'connector-migration-completed',
491
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
492
+ ConnectorMigrationReverted: 'connector-migration-reverted',
493
+ DiscordGuildEnabled: 'discord-guild-enabled',
494
+ ItemsGiven: 'items-given',
378
495
  };
379
496
  export const HookTriggerDTOEventTypeEnum = {
380
497
  Log: 'log',
@@ -399,6 +516,7 @@ export const HookTriggerDTOEventTypeEnum = {
399
516
  SettingsSet: 'settings-set',
400
517
  PlayerNewIpDetected: 'player-new-ip-detected',
401
518
  PlayerNewNameDetected: 'player-new-name-detected',
519
+ PlayerIdentityConflict: 'player-identity-conflict',
402
520
  ServerStatusChanged: 'server-status-changed',
403
521
  ModuleCreated: 'module-created',
404
522
  ModuleUpdated: 'module-updated',
@@ -413,8 +531,11 @@ export const HookTriggerDTOEventTypeEnum = {
413
531
  ShopOrderStatusChanged: 'shop-order-status-changed',
414
532
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
415
533
  PlayerLinked: 'player-linked',
534
+ PlayerUnlinked: 'player-unlinked',
535
+ PlayerMerged: 'player-merged',
416
536
  GameserverCreated: 'gameserver-created',
417
537
  GameserverUpdated: 'gameserver-updated',
538
+ GameserverVersionChanged: 'gameserver-version-changed',
418
539
  GameserverDeleted: 'gameserver-deleted',
419
540
  PlayerBanned: 'player-banned',
420
541
  PlayerUnbanned: 'player-unbanned',
@@ -430,6 +551,12 @@ export const HookTriggerDTOEventTypeEnum = {
430
551
  DomainCreated: 'domain-created',
431
552
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
432
553
  DomainPlanChanged: 'domain-plan-changed',
554
+ ConnectorMigrationStarted: 'connector-migration-started',
555
+ ConnectorMigrationCompleted: 'connector-migration-completed',
556
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
557
+ ConnectorMigrationReverted: 'connector-migration-reverted',
558
+ DiscordGuildEnabled: 'discord-guild-enabled',
559
+ ItemsGiven: 'items-given',
433
560
  };
434
561
  export const HookUpdateDTOEventTypeEnum = {
435
562
  Log: 'log',
@@ -454,6 +581,7 @@ export const HookUpdateDTOEventTypeEnum = {
454
581
  SettingsSet: 'settings-set',
455
582
  PlayerNewIpDetected: 'player-new-ip-detected',
456
583
  PlayerNewNameDetected: 'player-new-name-detected',
584
+ PlayerIdentityConflict: 'player-identity-conflict',
457
585
  ServerStatusChanged: 'server-status-changed',
458
586
  ModuleCreated: 'module-created',
459
587
  ModuleUpdated: 'module-updated',
@@ -468,8 +596,11 @@ export const HookUpdateDTOEventTypeEnum = {
468
596
  ShopOrderStatusChanged: 'shop-order-status-changed',
469
597
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
470
598
  PlayerLinked: 'player-linked',
599
+ PlayerUnlinked: 'player-unlinked',
600
+ PlayerMerged: 'player-merged',
471
601
  GameserverCreated: 'gameserver-created',
472
602
  GameserverUpdated: 'gameserver-updated',
603
+ GameserverVersionChanged: 'gameserver-version-changed',
473
604
  GameserverDeleted: 'gameserver-deleted',
474
605
  PlayerBanned: 'player-banned',
475
606
  PlayerUnbanned: 'player-unbanned',
@@ -485,6 +616,12 @@ export const HookUpdateDTOEventTypeEnum = {
485
616
  DomainCreated: 'domain-created',
486
617
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
487
618
  DomainPlanChanged: 'domain-plan-changed',
619
+ ConnectorMigrationStarted: 'connector-migration-started',
620
+ ConnectorMigrationCompleted: 'connector-migration-completed',
621
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
622
+ ConnectorMigrationReverted: 'connector-migration-reverted',
623
+ DiscordGuildEnabled: 'discord-guild-enabled',
624
+ ItemsGiven: 'items-given',
488
625
  };
489
626
  export const IEntityDTOTypeEnum = {
490
627
  Hostile: 'hostile',
@@ -514,6 +651,7 @@ export const IHookEventTypeEnum = {
514
651
  SettingsSet: 'settings-set',
515
652
  PlayerNewIpDetected: 'player-new-ip-detected',
516
653
  PlayerNewNameDetected: 'player-new-name-detected',
654
+ PlayerIdentityConflict: 'player-identity-conflict',
517
655
  ServerStatusChanged: 'server-status-changed',
518
656
  ModuleCreated: 'module-created',
519
657
  ModuleUpdated: 'module-updated',
@@ -528,8 +666,11 @@ export const IHookEventTypeEnum = {
528
666
  ShopOrderStatusChanged: 'shop-order-status-changed',
529
667
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
530
668
  PlayerLinked: 'player-linked',
669
+ PlayerUnlinked: 'player-unlinked',
670
+ PlayerMerged: 'player-merged',
531
671
  GameserverCreated: 'gameserver-created',
532
672
  GameserverUpdated: 'gameserver-updated',
673
+ GameserverVersionChanged: 'gameserver-version-changed',
533
674
  GameserverDeleted: 'gameserver-deleted',
534
675
  PlayerBanned: 'player-banned',
535
676
  PlayerUnbanned: 'player-unbanned',
@@ -545,6 +686,12 @@ export const IHookEventTypeEnum = {
545
686
  DomainCreated: 'domain-created',
546
687
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
547
688
  DomainPlanChanged: 'domain-plan-changed',
689
+ ConnectorMigrationStarted: 'connector-migration-started',
690
+ ConnectorMigrationCompleted: 'connector-migration-completed',
691
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
692
+ ConnectorMigrationReverted: 'connector-migration-reverted',
693
+ DiscordGuildEnabled: 'discord-guild-enabled',
694
+ ItemsGiven: 'items-given',
548
695
  };
549
696
  export const ITakaroQuerySortDirectionEnum = {
550
697
  Asc: 'asc',
@@ -592,6 +739,33 @@ export const ManagementDomainOutputDTOCustomDomainStateEnum = {
592
739
  Verified: 'VERIFIED',
593
740
  Failed: 'FAILED',
594
741
  };
742
+ export const MapHorizontalAxisDTOFieldEnum = {
743
+ X: 'x',
744
+ Y: 'y',
745
+ Z: 'z',
746
+ };
747
+ export const MapHorizontalAxisDTODirectionEnum = {
748
+ Right: 'right',
749
+ Left: 'left',
750
+ };
751
+ export const MapPyramidDTOOriginEnum = {
752
+ Game: 'game',
753
+ Upload: 'upload',
754
+ };
755
+ export const MapSourceDTOTypeEnum = {
756
+ None: 'none',
757
+ Tiled: 'tiled',
758
+ Image: 'image',
759
+ };
760
+ export const MapVerticalAxisDTOFieldEnum = {
761
+ X: 'x',
762
+ Y: 'y',
763
+ Z: 'z',
764
+ };
765
+ export const MapVerticalAxisDTODirectionEnum = {
766
+ Up: 'up',
767
+ Down: 'down',
768
+ };
595
769
  export const OrderStatusCountDTOStatusEnum = {
596
770
  Completed: 'COMPLETED',
597
771
  Paid: 'PAID',
@@ -629,11 +803,15 @@ export const PERMISSIONS = {
629
803
  SendDiscordMessage: 'SEND_DISCORD_MESSAGE',
630
804
  ManageApiKeys: 'MANAGE_API_KEYS',
631
805
  };
632
- export const PlanPriceDTOIntervalEnum = {
633
- Day: 'day',
634
- Week: 'week',
635
- Month: 'month',
636
- Year: 'year',
806
+ export const PlanChangeOutputDTOActionEnum = {
807
+ Create: 'create',
808
+ Update: 'update',
809
+ Archive: 'archive',
810
+ };
811
+ export const PlanChangeOutputDTOActorKindEnum = {
812
+ StaffSession: 'staffSession',
813
+ AdminSecret: 'adminSecret',
814
+ System: 'system',
637
815
  };
638
816
  export const PlayerOnGameServerSearchInputDTOExtendEnum = {
639
817
  GameServer: 'gameServer',
@@ -674,6 +852,7 @@ export const SettingsOutputDTOKeyEnum = {
674
852
  DiscordRoleSyncPreferDiscord: 'discordRoleSyncPreferDiscord',
675
853
  UnknownCommandFeedbackEnabled: 'unknownCommandFeedbackEnabled',
676
854
  UnknownCommandFeedbackMessage: 'unknownCommandFeedbackMessage',
855
+ TakaroAiEnabled: 'takaroAiEnabled',
677
856
  };
678
857
  export const SettingsOutputDTOTypeEnum = {
679
858
  Override: 'override',
@@ -751,11 +930,24 @@ export const ShopListingUpdateDTORequiredVariableOperatorEnum = {
751
930
  Gt: 'gt',
752
931
  Lt: 'lt',
753
932
  };
933
+ export const ShopOrderDeliveryItemDTOResultEnum = {
934
+ Delivered: 'DELIVERED',
935
+ Failed: 'FAILED',
936
+ Unknown: 'UNKNOWN',
937
+ };
754
938
  export const ShopOrderOutputDTOStatusEnum = {
755
939
  Completed: 'COMPLETED',
756
940
  Paid: 'PAID',
757
941
  Canceled: 'CANCELED',
758
942
  };
943
+ export const ShopOrderOutputDTODeliveryStatusEnum = {
944
+ NotApplicable: 'NOT_APPLICABLE',
945
+ NotAttempted: 'NOT_ATTEMPTED',
946
+ InProgress: 'IN_PROGRESS',
947
+ Delivered: 'DELIVERED',
948
+ Failed: 'FAILED',
949
+ Unknown: 'UNKNOWN',
950
+ };
759
951
  export const ShopOrderUpdateDTOStatusEnum = {
760
952
  Completed: 'COMPLETED',
761
953
  Paid: 'PAID',
@@ -771,16 +963,263 @@ export const StorefrontDomainOutputDTOCustomDomainStateEnum = {
771
963
  Verified: 'VERIFIED',
772
964
  Failed: 'FAILED',
773
965
  };
966
+ export const StripePriceDTOIntervalEnum = {
967
+ Day: 'day',
968
+ Week: 'week',
969
+ Month: 'month',
970
+ Year: 'year',
971
+ };
972
+ export const TakaroAiDomainOutputDTOOverrideStateEnum = {
973
+ None: 'none',
974
+ Active: 'active',
975
+ Expired: 'expired',
976
+ };
977
+ export const TakaroAiDomainOutputDTOStatusEnum = {
978
+ Available: 'available',
979
+ Grace: 'grace',
980
+ DailyLimitReached: 'dailyLimitReached',
981
+ LimitReached: 'limitReached',
982
+ Disabled: 'disabled',
983
+ NoAllowance: 'noAllowance',
984
+ NeedsGameServer: 'needsGameServer',
985
+ };
986
+ export const TakaroAiStaffChangeOutputDTOSubjectEnum = {
987
+ GlobalMultiplier: 'globalMultiplier',
988
+ DomainOverride: 'domainOverride',
989
+ MigrationCap: 'migrationCap',
990
+ };
991
+ export const TakaroAiStaffChangeOutputDTOActorKindEnum = {
992
+ StaffSession: 'staffSession',
993
+ AdminSecret: 'adminSecret',
994
+ };
995
+ export const TakaroAiUsageOutputDTOStatusEnum = {
996
+ Available: 'available',
997
+ Grace: 'grace',
998
+ DailyLimitReached: 'dailyLimitReached',
999
+ LimitReached: 'limitReached',
1000
+ Disabled: 'disabled',
1001
+ NoAllowance: 'noAllowance',
1002
+ NeedsGameServer: 'needsGameServer',
1003
+ };
1004
+ export const TakaroEventDomainCreatedOriginEnum = {
1005
+ Distributor: 'distributor',
1006
+ Staff: 'staff',
1007
+ Subscription: 'subscription',
1008
+ AdminSecret: 'admin_secret',
1009
+ };
1010
+ export const TakaroEventItemsGivenLineResultEnum = {
1011
+ Delivered: 'DELIVERED',
1012
+ Failed: 'FAILED',
1013
+ Unknown: 'UNKNOWN',
1014
+ };
1015
+ export const TakaroEventPlayerIdentityConflictUnwrittenIdentifiersEnum = {
1016
+ SteamId: 'steamId',
1017
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1018
+ XboxLiveId: 'xboxLiveId',
1019
+ PlatformId: 'platformId',
1020
+ };
1021
+ export const TakaroEventPlayerIdentityConflictMatchMatchedOnEnum = {
1022
+ SteamId: 'steamId',
1023
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1024
+ XboxLiveId: 'xboxLiveId',
1025
+ PlatformId: 'platformId',
1026
+ };
774
1027
  export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
775
1028
  Added: 'added',
776
1029
  Removed: 'removed',
777
1030
  Changed: 'changed',
778
1031
  };
1032
+ export const TakaroEventPlayerLinkedSourceEnum = {
1033
+ GameCode: 'game-code',
1034
+ WebCode: 'web-code',
1035
+ SteamAuto: 'steam-auto',
1036
+ Admin: 'admin',
1037
+ Unknown: 'unknown',
1038
+ };
1039
+ export const TakaroEventPlayerMergedMovedIdentifiersEnum = {
1040
+ SteamId: 'steamId',
1041
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1042
+ XboxLiveId: 'xboxLiveId',
1043
+ PlatformId: 'platformId',
1044
+ };
1045
+ export const TakaroEventPlayerMergedServerOutcomeEnum = {
1046
+ Moved: 'moved',
1047
+ Combined: 'combined',
1048
+ };
1049
+ export const TakaroEventPlayerMergedServerKeptPogFromEnum = {
1050
+ Survivor: 'survivor',
1051
+ Absorbed: 'absorbed',
1052
+ };
1053
+ export const TakaroEventPlayerUnlinkedReasonEnum = {
1054
+ Self: 'self',
1055
+ Admin: 'admin',
1056
+ Displaced: 'displaced',
1057
+ Merged: 'merged',
1058
+ };
779
1059
  export const TakaroEventRateLimitedScopeEnum = {
780
1060
  Server: 'server',
781
1061
  Domain: 'domain',
782
1062
  Global: 'global',
783
1063
  };
1064
+ export const ThreadApprovalDecisionInputDTOOutcomeEnum = {
1065
+ Approved: 'approved',
1066
+ Denied: 'denied',
1067
+ };
1068
+ export const ThreadContextInputDTOTypeEnum = {
1069
+ Player: 'player',
1070
+ GameServer: 'gameServer',
1071
+ Module: 'module',
1072
+ ModuleVersion: 'moduleVersion',
1073
+ Event: 'event',
1074
+ CsmmImport: 'csmmImport',
1075
+ };
1076
+ export const ThreadCreateInputDTOOriginSurfaceEnum = {
1077
+ CommandPalette: 'commandPalette',
1078
+ PlayerSummary: 'playerSummary',
1079
+ Modules: 'modules',
1080
+ GameServerModules: 'gameServerModules',
1081
+ GameServerOverview: 'gameServerOverview',
1082
+ GameServerConsole: 'gameServerConsole',
1083
+ DashboardBriefing: 'dashboardBriefing',
1084
+ EventsFilter: 'eventsFilter',
1085
+ RoleBuilder: 'roleBuilder',
1086
+ ModuleConfig: 'moduleConfig',
1087
+ GameServerShop: 'gameServerShop',
1088
+ ModuleOverview: 'moduleOverview',
1089
+ ModuleBuilder: 'moduleBuilder',
1090
+ EventFailure: 'eventFailure',
1091
+ CsmmMigration: 'csmmMigration',
1092
+ };
1093
+ export const ThreadOutputDTOStatusEnum = {
1094
+ Idle: 'idle',
1095
+ Working: 'working',
1096
+ Stopping: 'stopping',
1097
+ Failed: 'failed',
1098
+ AwaitingApproval: 'awaitingApproval',
1099
+ AwaitingReply: 'awaitingReply',
1100
+ };
1101
+ export const ThreadOutputDTOOriginSurfaceEnum = {
1102
+ CommandPalette: 'commandPalette',
1103
+ PlayerSummary: 'playerSummary',
1104
+ Modules: 'modules',
1105
+ GameServerModules: 'gameServerModules',
1106
+ GameServerOverview: 'gameServerOverview',
1107
+ GameServerConsole: 'gameServerConsole',
1108
+ DashboardBriefing: 'dashboardBriefing',
1109
+ EventsFilter: 'eventsFilter',
1110
+ RoleBuilder: 'roleBuilder',
1111
+ ModuleConfig: 'moduleConfig',
1112
+ GameServerShop: 'gameServerShop',
1113
+ ModuleOverview: 'moduleOverview',
1114
+ ModuleBuilder: 'moduleBuilder',
1115
+ EventFailure: 'eventFailure',
1116
+ CsmmMigration: 'csmmMigration',
1117
+ };
1118
+ export const ThreadSearchInputAllowedFiltersStatusEnum = {
1119
+ Idle: 'idle',
1120
+ Working: 'working',
1121
+ Stopping: 'stopping',
1122
+ Failed: 'failed',
1123
+ AwaitingApproval: 'awaitingApproval',
1124
+ AwaitingReply: 'awaitingReply',
1125
+ };
1126
+ export const ThreadSearchInputAllowedFiltersOriginSurfaceEnum = {
1127
+ CommandPalette: 'commandPalette',
1128
+ PlayerSummary: 'playerSummary',
1129
+ Modules: 'modules',
1130
+ GameServerModules: 'gameServerModules',
1131
+ GameServerOverview: 'gameServerOverview',
1132
+ GameServerConsole: 'gameServerConsole',
1133
+ DashboardBriefing: 'dashboardBriefing',
1134
+ EventsFilter: 'eventsFilter',
1135
+ RoleBuilder: 'roleBuilder',
1136
+ ModuleConfig: 'moduleConfig',
1137
+ GameServerShop: 'gameServerShop',
1138
+ ModuleOverview: 'moduleOverview',
1139
+ ModuleBuilder: 'moduleBuilder',
1140
+ EventFailure: 'eventFailure',
1141
+ CsmmMigration: 'csmmMigration',
1142
+ };
1143
+ export const ThreadSearchInputDTOSortDirectionEnum = {
1144
+ Asc: 'asc',
1145
+ Desc: 'desc',
1146
+ };
1147
+ export const ThreadStepApprovalDTOOutcomeEnum = {
1148
+ Approved: 'approved',
1149
+ Denied: 'denied',
1150
+ AutoAllowed: 'autoAllowed',
1151
+ Cancelled: 'cancelled',
1152
+ };
1153
+ export const ThreadStepOutputDTOKindEnum = {
1154
+ UserMessage: 'userMessage',
1155
+ ModelMessage: 'modelMessage',
1156
+ ToolCall: 'toolCall',
1157
+ ToolResult: 'toolResult',
1158
+ ApprovalRequest: 'approvalRequest',
1159
+ ApprovalOutcome: 'approvalOutcome',
1160
+ };
1161
+ export const ThreadStepReferenceDTOTypeEnum = {
1162
+ Player: 'player',
1163
+ GameServer: 'gameServer',
1164
+ Module: 'module',
1165
+ ModuleVersion: 'moduleVersion',
1166
+ Event: 'event',
1167
+ CsmmImport: 'csmmImport',
1168
+ };
1169
+ export const ThreadWithStepsOutputDTOStatusEnum = {
1170
+ Idle: 'idle',
1171
+ Working: 'working',
1172
+ Stopping: 'stopping',
1173
+ Failed: 'failed',
1174
+ AwaitingApproval: 'awaitingApproval',
1175
+ AwaitingReply: 'awaitingReply',
1176
+ };
1177
+ export const ThreadWithStepsOutputDTOOriginSurfaceEnum = {
1178
+ CommandPalette: 'commandPalette',
1179
+ PlayerSummary: 'playerSummary',
1180
+ Modules: 'modules',
1181
+ GameServerModules: 'gameServerModules',
1182
+ GameServerOverview: 'gameServerOverview',
1183
+ GameServerConsole: 'gameServerConsole',
1184
+ DashboardBriefing: 'dashboardBriefing',
1185
+ EventsFilter: 'eventsFilter',
1186
+ RoleBuilder: 'roleBuilder',
1187
+ ModuleConfig: 'moduleConfig',
1188
+ GameServerShop: 'gameServerShop',
1189
+ ModuleOverview: 'moduleOverview',
1190
+ ModuleBuilder: 'moduleBuilder',
1191
+ EventFailure: 'eventFailure',
1192
+ CsmmMigration: 'csmmMigration',
1193
+ };
1194
+ export const TriggerJobInputDTOTypeEnum = {
1195
+ SeedModules: 'seedModules',
1196
+ CleanEvents: 'cleanEvents',
1197
+ CleanExpiringVariables: 'cleanExpiringVariables',
1198
+ EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
1199
+ DeleteGameServers: 'deleteGameServers',
1200
+ SyncItems: 'syncItems',
1201
+ SyncEntities: 'syncEntities',
1202
+ SyncBans: 'syncBans',
1203
+ SyncMapImages: 'syncMapImages',
1204
+ SyncMapUploads: 'syncMapUploads',
1205
+ SyncGameIcons: 'syncGameIcons',
1206
+ SyncSteam: 'syncSteam',
1207
+ SyncDiscordRoles: 'syncDiscordRoles',
1208
+ };
1209
+ export const UserOutputDTOPlayerLinkSourceEnum = {
1210
+ GameCode: 'game-code',
1211
+ WebCode: 'web-code',
1212
+ SteamAuto: 'steam-auto',
1213
+ Admin: 'admin',
1214
+ Unknown: 'unknown',
1215
+ };
1216
+ export const UserOutputWithRolesDTOPlayerLinkSourceEnum = {
1217
+ GameCode: 'game-code',
1218
+ WebCode: 'web-code',
1219
+ SteamAuto: 'steam-auto',
1220
+ Admin: 'admin',
1221
+ Unknown: 'unknown',
1222
+ };
784
1223
  export const UserSearchInputDTOExtendEnum = {
785
1224
  Roles: 'roles',
786
1225
  };
@@ -1545,7 +1984,7 @@ export class DistributorApi extends BaseAPI {
1545
1984
  export const DistributorSelfServiceApiAxiosParamCreator = function (configuration) {
1546
1985
  return {
1547
1986
  /**
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`
1987
+ * 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
1988
  * @summary Create a domain
1550
1989
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
1551
1990
  * @param {*} [options] Override http request option.
@@ -1855,7 +2294,7 @@ export const DistributorSelfServiceApiAxiosParamCreator = function (configuratio
1855
2294
  };
1856
2295
  },
1857
2296
  /**
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`
2297
+ * 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
2298
  * @summary Change one of my domains’ Plan
1860
2299
  * @param {string} id
1861
2300
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -1898,7 +2337,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
1898
2337
  const localVarAxiosParamCreator = DistributorSelfServiceApiAxiosParamCreator(configuration);
1899
2338
  return {
1900
2339
  /**
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`
2340
+ * 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
2341
  * @summary Create a domain
1903
2342
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
1904
2343
  * @param {*} [options] Override http request option.
@@ -2028,7 +2467,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
2028
2467
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2029
2468
  },
2030
2469
  /**
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`
2470
+ * 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
2471
  * @summary Change one of my domains’ Plan
2033
2472
  * @param {string} id
2034
2473
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -2051,7 +2490,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
2051
2490
  const localVarFp = DistributorSelfServiceApiFp(configuration);
2052
2491
  return {
2053
2492
  /**
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`
2493
+ * 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
2494
  * @summary Create a domain
2056
2495
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
2057
2496
  * @param {*} [options] Override http request option.
@@ -2169,7 +2608,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
2169
2608
  .then((request) => request(axios, basePath));
2170
2609
  },
2171
2610
  /**
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`
2611
+ * 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
2612
  * @summary Change one of my domains’ Plan
2174
2613
  * @param {string} id
2175
2614
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -2191,7 +2630,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
2191
2630
  */
2192
2631
  export class DistributorSelfServiceApi extends BaseAPI {
2193
2632
  /**
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`
2633
+ * 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
2634
  * @summary Create a domain
2196
2635
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
2197
2636
  * @param {*} [options] Override http request option.
@@ -2321,7 +2760,7 @@ export class DistributorSelfServiceApi extends BaseAPI {
2321
2760
  .then((request) => request(this.axios, this.basePath));
2322
2761
  }
2323
2762
  /**
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`
2763
+ * 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
2764
  * @summary Change one of my domains’ Plan
2326
2765
  * @param {string} id
2327
2766
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -2633,21 +3072,58 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2633
3072
  };
2634
3073
  },
2635
3074
  /**
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
3075
+ * 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`
3076
+ * @summary Put a subscription-backed domain on a Plan
3077
+ * @param {string} id
3078
+ * @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
2639
3079
  * @param {*} [options] Override http request option.
2640
3080
  * @throws {RequiredError}
2641
3081
  */
2642
- domainControllerSearchDistributorBacked: async (distributorBackedDomainSearchInputDTO, options = {}) => {
2643
- const localVarPath = `/domain/distributor-backed/search`;
3082
+ domainControllerSetPlan: async (id, domainPlanInputDTO, options = {}) => {
3083
+ // verify required parameter 'id' is not null or undefined
3084
+ assertParamExists('domainControllerSetPlan', 'id', id);
3085
+ const localVarPath = `/domain/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2644
3086
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2645
3087
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2646
3088
  let baseOptions;
2647
3089
  if (configuration) {
2648
3090
  baseOptions = configuration.baseOptions;
2649
3091
  }
2650
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3092
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3093
+ const localVarHeaderParameter = {};
3094
+ const localVarQueryParameter = {};
3095
+ // authentication staffSession required
3096
+ // authentication adminAuth required
3097
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3098
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3099
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3100
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3101
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3102
+ localVarRequestOptions.data = serializeDataIfNeeded(domainPlanInputDTO, localVarRequestOptions, configuration);
3103
+ return {
3104
+ url: toPathString(localVarUrlObj),
3105
+ options: localVarRequestOptions,
3106
+ };
3107
+ },
3108
+ /**
3109
+ * For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
3110
+ * @summary Put an Unbacked domain on a Plan
3111
+ * @param {string} id
3112
+ * @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
3113
+ * @param {*} [options] Override http request option.
3114
+ * @throws {RequiredError}
3115
+ */
3116
+ domainControllerSetPlanByStaff: async (id, staffDomainPlanInputDTO, options = {}) => {
3117
+ // verify required parameter 'id' is not null or undefined
3118
+ assertParamExists('domainControllerSetPlanByStaff', 'id', id);
3119
+ const localVarPath = `/staff/domains/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3120
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3121
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3122
+ let baseOptions;
3123
+ if (configuration) {
3124
+ baseOptions = configuration.baseOptions;
3125
+ }
3126
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
2651
3127
  const localVarHeaderParameter = {};
2652
3128
  const localVarQueryParameter = {};
2653
3129
  // authentication staffSession required
@@ -2657,7 +3133,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2657
3133
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2658
3134
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2659
3135
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2660
- localVarRequestOptions.data = serializeDataIfNeeded(distributorBackedDomainSearchInputDTO, localVarRequestOptions, configuration);
3136
+ localVarRequestOptions.data = serializeDataIfNeeded(staffDomainPlanInputDTO, localVarRequestOptions, configuration);
2661
3137
  return {
2662
3138
  url: toPathString(localVarUrlObj),
2663
3139
  options: localVarRequestOptions,
@@ -2827,16 +3303,31 @@ export const DomainApiFp = function (configuration) {
2827
3303
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2828
3304
  },
2829
3305
  /**
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
3306
+ * 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`
3307
+ * @summary Put a subscription-backed domain on a Plan
3308
+ * @param {string} id
3309
+ * @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
3310
+ * @param {*} [options] Override http request option.
3311
+ * @throws {RequiredError}
3312
+ */
3313
+ async domainControllerSetPlan(id, domainPlanInputDTO, options) {
3314
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlan(id, domainPlanInputDTO, options);
3315
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3316
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlan']?.[localVarOperationServerIndex]?.url;
3317
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3318
+ },
3319
+ /**
3320
+ * For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
3321
+ * @summary Put an Unbacked domain on a Plan
3322
+ * @param {string} id
3323
+ * @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
2833
3324
  * @param {*} [options] Override http request option.
2834
3325
  * @throws {RequiredError}
2835
3326
  */
2836
- async domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
2837
- const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options);
3327
+ async domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
3328
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options);
2838
3329
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2839
- const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSearchDistributorBacked']?.[localVarOperationServerIndex]?.url;
3330
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlanByStaff']?.[localVarOperationServerIndex]?.url;
2840
3331
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2841
3332
  },
2842
3333
  /**
@@ -2966,15 +3457,29 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
2966
3457
  .then((request) => request(axios, basePath));
2967
3458
  },
2968
3459
  /**
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
3460
+ * 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`
3461
+ * @summary Put a subscription-backed domain on a Plan
3462
+ * @param {string} id
3463
+ * @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
3464
+ * @param {*} [options] Override http request option.
3465
+ * @throws {RequiredError}
3466
+ */
3467
+ domainControllerSetPlan(id, domainPlanInputDTO, options) {
3468
+ return localVarFp
3469
+ .domainControllerSetPlan(id, domainPlanInputDTO, options)
3470
+ .then((request) => request(axios, basePath));
3471
+ },
3472
+ /**
3473
+ * For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
3474
+ * @summary Put an Unbacked domain on a Plan
3475
+ * @param {string} id
3476
+ * @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
2972
3477
  * @param {*} [options] Override http request option.
2973
3478
  * @throws {RequiredError}
2974
3479
  */
2975
- domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
3480
+ domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
2976
3481
  return localVarFp
2977
- .domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options)
3482
+ .domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
2978
3483
  .then((request) => request(axios, basePath));
2979
3484
  },
2980
3485
  /**
@@ -3120,16 +3625,31 @@ export class DomainApi extends BaseAPI {
3120
3625
  .then((request) => request(this.axios, this.basePath));
3121
3626
  }
3122
3627
  /**
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
3628
+ * 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`
3629
+ * @summary Put a subscription-backed domain on a Plan
3630
+ * @param {string} id
3631
+ * @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
3632
+ * @param {*} [options] Override http request option.
3633
+ * @throws {RequiredError}
3634
+ * @memberof DomainApi
3635
+ */
3636
+ domainControllerSetPlan(id, domainPlanInputDTO, options) {
3637
+ return DomainApiFp(this.configuration)
3638
+ .domainControllerSetPlan(id, domainPlanInputDTO, options)
3639
+ .then((request) => request(this.axios, this.basePath));
3640
+ }
3641
+ /**
3642
+ * For a domain with neither a Subscription nor a Distributor; refused for either, since Stripe or the Distributor chooses those Plans. Applies the Plan’s limits at once, keeping any limit override. On the first assignment of a domain that predates Plans, its hand-set limits that differ from the Plan are kept as overrides.<br> OperationId: `DomainControllerSetPlanByStaff`
3643
+ * @summary Put an Unbacked domain on a Plan
3644
+ * @param {string} id
3645
+ * @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
3126
3646
  * @param {*} [options] Override http request option.
3127
3647
  * @throws {RequiredError}
3128
3648
  * @memberof DomainApi
3129
3649
  */
3130
- domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
3650
+ domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
3131
3651
  return DomainApiFp(this.configuration)
3132
- .domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options)
3652
+ .domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
3133
3653
  .then((request) => request(this.axios, this.basePath));
3134
3654
  }
3135
3655
  /**
@@ -3148,69 +3668,88 @@ export class DomainApi extends BaseAPI {
3148
3668
  }
3149
3669
  }
3150
3670
  /**
3151
- * MetaApi - axios parameter creator
3671
+ * FixtureHistoryApi - axios parameter creator
3152
3672
  * @export
3153
3673
  */
3154
- export const MetaApiAxiosParamCreator = function (configuration) {
3674
+ export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
3155
3675
  return {
3156
3676
  /**
3157
- * <br> OperationId: `MetaGetHealth`
3158
- * @summary Get health
3677
+ * <br> OperationId: `FixtureHistoryControllerActivity`
3678
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
3679
+ * @param {string} domainId
3680
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
3159
3681
  * @param {*} [options] Override http request option.
3160
3682
  * @throws {RequiredError}
3161
3683
  */
3162
- metaGetHealth: async (options = {}) => {
3163
- const localVarPath = `/healthz`;
3684
+ fixtureHistoryControllerActivity: async (domainId, fixtureHistoryActivityInputDTO, options = {}) => {
3685
+ // verify required parameter 'domainId' is not null or undefined
3686
+ assertParamExists('fixtureHistoryControllerActivity', 'domainId', domainId);
3687
+ const localVarPath = `/fixture-history/domains/{domainId}/activity`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3164
3688
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3165
3689
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3166
3690
  let baseOptions;
3167
3691
  if (configuration) {
3168
3692
  baseOptions = configuration.baseOptions;
3169
3693
  }
3170
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3694
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3171
3695
  const localVarHeaderParameter = {};
3172
3696
  const localVarQueryParameter = {};
3697
+ // authentication adminAuth required
3698
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3699
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3173
3700
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3174
3701
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3175
3702
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3703
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryActivityInputDTO, localVarRequestOptions, configuration);
3176
3704
  return {
3177
3705
  url: toPathString(localVarUrlObj),
3178
3706
  options: localVarRequestOptions,
3179
3707
  };
3180
3708
  },
3181
3709
  /**
3182
- * <br> OperationId: `MetaGetLiveness`
3183
- * @summary Get liveness
3710
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
3711
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
3712
+ * @param {string} domainId
3713
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
3184
3714
  * @param {*} [options] Override http request option.
3185
3715
  * @throws {RequiredError}
3186
3716
  */
3187
- metaGetLiveness: async (options = {}) => {
3188
- const localVarPath = `/livez`;
3717
+ fixtureHistoryControllerAnalytics: async (domainId, fixtureHistoryAnalyticsInputDTO, options = {}) => {
3718
+ // verify required parameter 'domainId' is not null or undefined
3719
+ assertParamExists('fixtureHistoryControllerAnalytics', 'domainId', domainId);
3720
+ const localVarPath = `/fixture-history/domains/{domainId}/analytics`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3189
3721
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3190
3722
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3191
3723
  let baseOptions;
3192
3724
  if (configuration) {
3193
3725
  baseOptions = configuration.baseOptions;
3194
3726
  }
3195
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3727
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3196
3728
  const localVarHeaderParameter = {};
3197
3729
  const localVarQueryParameter = {};
3730
+ // authentication adminAuth required
3731
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3732
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3198
3733
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3199
3734
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3200
3735
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3736
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryAnalyticsInputDTO, localVarRequestOptions, configuration);
3201
3737
  return {
3202
3738
  url: toPathString(localVarUrlObj),
3203
3739
  options: localVarRequestOptions,
3204
3740
  };
3205
3741
  },
3206
3742
  /**
3207
- * <br> OperationId: `MetaGetMetrics`
3208
- * @summary Get metrics
3743
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
3744
+ * @summary What the writer can do for this domain, and the domain\'s event retention
3745
+ * @param {string} domainId
3209
3746
  * @param {*} [options] Override http request option.
3210
3747
  * @throws {RequiredError}
3211
3748
  */
3212
- metaGetMetrics: async (options = {}) => {
3213
- const localVarPath = `/metrics`;
3749
+ fixtureHistoryControllerCapabilities: async (domainId, options = {}) => {
3750
+ // verify required parameter 'domainId' is not null or undefined
3751
+ assertParamExists('fixtureHistoryControllerCapabilities', 'domainId', domainId);
3752
+ const localVarPath = `/fixture-history/domains/{domainId}/capabilities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3214
3753
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3215
3754
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3216
3755
  let baseOptions;
@@ -3220,6 +3759,8 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3220
3759
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3221
3760
  const localVarHeaderParameter = {};
3222
3761
  const localVarQueryParameter = {};
3762
+ // authentication adminAuth required
3763
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3223
3764
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3224
3765
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3225
3766
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3229,379 +3770,1976 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3229
3770
  };
3230
3771
  },
3231
3772
  /**
3232
- * <br> OperationId: `MetaGetOpenApi`
3233
- * @summary Get open api
3773
+ * <br> OperationId: `FixtureHistoryControllerDelete`
3774
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
3775
+ * @param {string} domainId
3776
+ * @param {string} fixtureDatasetId
3777
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
3234
3778
  * @param {*} [options] Override http request option.
3235
3779
  * @throws {RequiredError}
3236
3780
  */
3237
- metaGetOpenApi: async (options = {}) => {
3238
- const localVarPath = `/openapi.json`;
3781
+ fixtureHistoryControllerDelete: async (domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options = {}) => {
3782
+ // verify required parameter 'domainId' is not null or undefined
3783
+ assertParamExists('fixtureHistoryControllerDelete', 'domainId', domainId);
3784
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3785
+ assertParamExists('fixtureHistoryControllerDelete', 'fixtureDatasetId', fixtureDatasetId);
3786
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/delete`
3787
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3788
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3239
3789
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3240
3790
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3241
3791
  let baseOptions;
3242
3792
  if (configuration) {
3243
3793
  baseOptions = configuration.baseOptions;
3244
3794
  }
3245
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3795
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3246
3796
  const localVarHeaderParameter = {};
3247
3797
  const localVarQueryParameter = {};
3798
+ // authentication adminAuth required
3799
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3800
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3248
3801
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3249
3802
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3250
3803
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3804
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryDeleteInputDTO, localVarRequestOptions, configuration);
3251
3805
  return {
3252
3806
  url: toPathString(localVarUrlObj),
3253
3807
  options: localVarRequestOptions,
3254
3808
  };
3255
3809
  },
3256
3810
  /**
3257
- * <br> OperationId: `MetaGetOpenApiHtml`
3258
- * @summary Get open api html
3811
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
3812
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
3813
+ * @param {string} domainId
3814
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
3259
3815
  * @param {*} [options] Override http request option.
3260
3816
  * @throws {RequiredError}
3261
3817
  */
3262
- metaGetOpenApiHtml: async (options = {}) => {
3263
- const localVarPath = `/api.html`;
3818
+ fixtureHistoryControllerEconomyReadiness: async (domainId, fixtureHistoryEconomyReadinessInputDTO, options = {}) => {
3819
+ // verify required parameter 'domainId' is not null or undefined
3820
+ assertParamExists('fixtureHistoryControllerEconomyReadiness', 'domainId', domainId);
3821
+ const localVarPath = `/fixture-history/domains/{domainId}/economy-readiness`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3264
3822
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3265
3823
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3266
3824
  let baseOptions;
3267
3825
  if (configuration) {
3268
3826
  baseOptions = configuration.baseOptions;
3269
3827
  }
3270
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3828
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3271
3829
  const localVarHeaderParameter = {};
3272
3830
  const localVarQueryParameter = {};
3831
+ // authentication adminAuth required
3832
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3833
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3273
3834
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3274
3835
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3275
3836
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3837
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryEconomyReadinessInputDTO, localVarRequestOptions, configuration);
3276
3838
  return {
3277
3839
  url: toPathString(localVarUrlObj),
3278
3840
  options: localVarRequestOptions,
3279
3841
  };
3280
3842
  },
3281
3843
  /**
3282
- * <br> OperationId: `MetaGetReadiness`
3283
- * @summary Get readiness
3844
+ * 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`
3845
+ * @summary Write owned, back-dated players and players-on-gameserver
3846
+ * @param {string} domainId
3847
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
3284
3848
  * @param {*} [options] Override http request option.
3285
3849
  * @throws {RequiredError}
3286
3850
  */
3287
- metaGetReadiness: async (options = {}) => {
3288
- const localVarPath = `/readyz`;
3851
+ fixtureHistoryControllerIdentities: async (domainId, fixtureHistoryIdentitiesInputDTO, options = {}) => {
3852
+ // verify required parameter 'domainId' is not null or undefined
3853
+ assertParamExists('fixtureHistoryControllerIdentities', 'domainId', domainId);
3854
+ const localVarPath = `/fixture-history/domains/{domainId}/identities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3289
3855
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3290
3856
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3291
3857
  let baseOptions;
3292
3858
  if (configuration) {
3293
3859
  baseOptions = configuration.baseOptions;
3294
3860
  }
3295
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3861
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3296
3862
  const localVarHeaderParameter = {};
3297
3863
  const localVarQueryParameter = {};
3864
+ // authentication adminAuth required
3865
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3866
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3298
3867
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3299
3868
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3300
3869
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3870
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryIdentitiesInputDTO, localVarRequestOptions, configuration);
3301
3871
  return {
3302
3872
  url: toPathString(localVarUrlObj),
3303
3873
  options: localVarRequestOptions,
3304
3874
  };
3305
3875
  },
3306
3876
  /**
3307
- * <br> OperationId: `MetaGetRoot`
3308
- * @summary Get root
3877
+ * <br> OperationId: `FixtureHistoryControllerInventory`
3878
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
3879
+ * @param {string} domainId
3880
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
3309
3881
  * @param {*} [options] Override http request option.
3310
3882
  * @throws {RequiredError}
3311
3883
  */
3312
- metaGetRoot: async (options = {}) => {
3313
- const localVarPath = `/`;
3884
+ fixtureHistoryControllerInventory: async (domainId, fixtureHistoryInventoryInputDTO, options = {}) => {
3885
+ // verify required parameter 'domainId' is not null or undefined
3886
+ assertParamExists('fixtureHistoryControllerInventory', 'domainId', domainId);
3887
+ const localVarPath = `/fixture-history/domains/{domainId}/inventory`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3314
3888
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3315
3889
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3316
3890
  let baseOptions;
3317
3891
  if (configuration) {
3318
3892
  baseOptions = configuration.baseOptions;
3319
3893
  }
3320
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3894
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3321
3895
  const localVarHeaderParameter = {};
3322
3896
  const localVarQueryParameter = {};
3897
+ // authentication adminAuth required
3898
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3899
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3323
3900
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3324
3901
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3325
3902
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3903
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryInventoryInputDTO, localVarRequestOptions, configuration);
3326
3904
  return {
3327
3905
  url: toPathString(localVarUrlObj),
3328
3906
  options: localVarRequestOptions,
3329
3907
  };
3330
3908
  },
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
- /**
3341
- * <br> OperationId: `MetaGetHealth`
3342
- * @summary Get health
3343
- * @param {*} [options] Override http request option.
3344
- * @throws {RequiredError}
3345
- */
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);
3351
- },
3352
3909
  /**
3353
- * <br> OperationId: `MetaGetLiveness`
3354
- * @summary Get liveness
3910
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
3911
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
3912
+ * @param {string} domainId
3913
+ * @param {string} fixtureDatasetId
3914
+ * @param {string} [cursor]
3355
3915
  * @param {*} [options] Override http request option.
3356
3916
  * @throws {RequiredError}
3357
3917
  */
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;
3918
+ fixtureHistoryControllerInventoryPage: async (domainId, fixtureDatasetId, cursor, options = {}) => {
3919
+ // verify required parameter 'domainId' is not null or undefined
3920
+ assertParamExists('fixtureHistoryControllerInventoryPage', 'domainId', domainId);
3921
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3922
+ assertParamExists('fixtureHistoryControllerInventoryPage', 'fixtureDatasetId', fixtureDatasetId);
3923
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/inventory`
3924
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3925
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3926
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3927
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3928
+ let baseOptions;
3929
+ if (configuration) {
3930
+ baseOptions = configuration.baseOptions;
3931
+ }
3932
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3933
+ const localVarHeaderParameter = {};
3934
+ const localVarQueryParameter = {};
3935
+ // authentication adminAuth required
3936
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3937
+ if (cursor !== undefined) {
3938
+ localVarQueryParameter['cursor'] = cursor;
3939
+ }
3940
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3941
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3942
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3943
+ return {
3944
+ url: toPathString(localVarUrlObj),
3945
+ options: localVarRequestOptions,
3946
+ };
3947
+ },
3948
+ /**
3949
+ * 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`
3950
+ * @summary Write owned, back-dated shop listings
3951
+ * @param {string} domainId
3952
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
3953
+ * @param {*} [options] Override http request option.
3954
+ * @throws {RequiredError}
3955
+ */
3956
+ fixtureHistoryControllerListings: async (domainId, fixtureHistoryListingsInputDTO, options = {}) => {
3957
+ // verify required parameter 'domainId' is not null or undefined
3958
+ assertParamExists('fixtureHistoryControllerListings', 'domainId', domainId);
3959
+ const localVarPath = `/fixture-history/domains/{domainId}/listings`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3960
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3961
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3962
+ let baseOptions;
3963
+ if (configuration) {
3964
+ baseOptions = configuration.baseOptions;
3965
+ }
3966
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3967
+ const localVarHeaderParameter = {};
3968
+ const localVarQueryParameter = {};
3969
+ // authentication adminAuth required
3970
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3971
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3972
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3973
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3974
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3975
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryListingsInputDTO, localVarRequestOptions, configuration);
3976
+ return {
3977
+ url: toPathString(localVarUrlObj),
3978
+ options: localVarRequestOptions,
3979
+ };
3980
+ },
3981
+ /**
3982
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
3983
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
3984
+ * @param {string} domainId
3985
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
3986
+ * @param {*} [options] Override http request option.
3987
+ * @throws {RequiredError}
3988
+ */
3989
+ fixtureHistoryControllerOrders: async (domainId, fixtureHistoryOrdersInputDTO, options = {}) => {
3990
+ // verify required parameter 'domainId' is not null or undefined
3991
+ assertParamExists('fixtureHistoryControllerOrders', 'domainId', domainId);
3992
+ const localVarPath = `/fixture-history/domains/{domainId}/orders`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3993
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3994
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3995
+ let baseOptions;
3996
+ if (configuration) {
3997
+ baseOptions = configuration.baseOptions;
3998
+ }
3999
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4000
+ const localVarHeaderParameter = {};
4001
+ const localVarQueryParameter = {};
4002
+ // authentication adminAuth required
4003
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
4004
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4005
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4006
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4007
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4008
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryOrdersInputDTO, localVarRequestOptions, configuration);
4009
+ return {
4010
+ url: toPathString(localVarUrlObj),
4011
+ options: localVarRequestOptions,
4012
+ };
4013
+ },
4014
+ /**
4015
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4016
+ * @summary Owned row counts per store, and unowned events naming owned players
4017
+ * @param {string} domainId
4018
+ * @param {string} fixtureDatasetId
4019
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4020
+ * @param {*} [options] Override http request option.
4021
+ * @throws {RequiredError}
4022
+ */
4023
+ fixtureHistoryControllerSummary: async (domainId, fixtureDatasetId, since, options = {}) => {
4024
+ // verify required parameter 'domainId' is not null or undefined
4025
+ assertParamExists('fixtureHistoryControllerSummary', 'domainId', domainId);
4026
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
4027
+ assertParamExists('fixtureHistoryControllerSummary', 'fixtureDatasetId', fixtureDatasetId);
4028
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/summary`
4029
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
4030
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
4031
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4032
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4033
+ let baseOptions;
4034
+ if (configuration) {
4035
+ baseOptions = configuration.baseOptions;
4036
+ }
4037
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4038
+ const localVarHeaderParameter = {};
4039
+ const localVarQueryParameter = {};
4040
+ // authentication adminAuth required
4041
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
4042
+ if (since !== undefined) {
4043
+ for (const [key, value] of Object.entries(since)) {
4044
+ localVarQueryParameter[key] = value;
4045
+ }
4046
+ }
4047
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4048
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4049
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4050
+ return {
4051
+ url: toPathString(localVarUrlObj),
4052
+ options: localVarRequestOptions,
4053
+ };
4054
+ },
4055
+ /**
4056
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4057
+ * @summary Set the offline terminal state of owned players-on-gameserver
4058
+ * @param {string} domainId
4059
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4060
+ * @param {*} [options] Override http request option.
4061
+ * @throws {RequiredError}
4062
+ */
4063
+ fixtureHistoryControllerTerminal: async (domainId, fixtureHistoryTerminalInputDTO, options = {}) => {
4064
+ // verify required parameter 'domainId' is not null or undefined
4065
+ assertParamExists('fixtureHistoryControllerTerminal', 'domainId', domainId);
4066
+ const localVarPath = `/fixture-history/domains/{domainId}/terminal-state`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
4067
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4068
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4069
+ let baseOptions;
4070
+ if (configuration) {
4071
+ baseOptions = configuration.baseOptions;
4072
+ }
4073
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4074
+ const localVarHeaderParameter = {};
4075
+ const localVarQueryParameter = {};
4076
+ // authentication adminAuth required
4077
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
4078
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4079
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4080
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4081
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4082
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTerminalInputDTO, localVarRequestOptions, configuration);
4083
+ return {
4084
+ url: toPathString(localVarUrlObj),
4085
+ options: localVarRequestOptions,
4086
+ };
4087
+ },
4088
+ /**
4089
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4090
+ * @summary Page through the terminal state of owned players-on-gameserver
4091
+ * @param {string} domainId
4092
+ * @param {string} fixtureDatasetId
4093
+ * @param {string} [cursor]
4094
+ * @param {*} [options] Override http request option.
4095
+ * @throws {RequiredError}
4096
+ */
4097
+ fixtureHistoryControllerTerminalState: async (domainId, fixtureDatasetId, cursor, options = {}) => {
4098
+ // verify required parameter 'domainId' is not null or undefined
4099
+ assertParamExists('fixtureHistoryControllerTerminalState', 'domainId', domainId);
4100
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
4101
+ assertParamExists('fixtureHistoryControllerTerminalState', 'fixtureDatasetId', fixtureDatasetId);
4102
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/terminal-state`
4103
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
4104
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
4105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4107
+ let baseOptions;
4108
+ if (configuration) {
4109
+ baseOptions = configuration.baseOptions;
4110
+ }
4111
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4112
+ const localVarHeaderParameter = {};
4113
+ const localVarQueryParameter = {};
4114
+ // authentication adminAuth required
4115
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
4116
+ if (cursor !== undefined) {
4117
+ localVarQueryParameter['cursor'] = cursor;
4118
+ }
4119
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4120
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4121
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4122
+ return {
4123
+ url: toPathString(localVarUrlObj),
4124
+ options: localVarRequestOptions,
4125
+ };
4126
+ },
4127
+ };
4128
+ };
4129
+ /**
4130
+ * FixtureHistoryApi - functional programming interface
4131
+ * @export
4132
+ */
4133
+ export const FixtureHistoryApiFp = function (configuration) {
4134
+ const localVarAxiosParamCreator = FixtureHistoryApiAxiosParamCreator(configuration);
4135
+ return {
4136
+ /**
4137
+ * <br> OperationId: `FixtureHistoryControllerActivity`
4138
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
4139
+ * @param {string} domainId
4140
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
4141
+ * @param {*} [options] Override http request option.
4142
+ * @throws {RequiredError}
4143
+ */
4144
+ async fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
4145
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options);
4146
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4147
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerActivity']?.[localVarOperationServerIndex]?.url;
4148
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4149
+ },
4150
+ /**
4151
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
4152
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
4153
+ * @param {string} domainId
4154
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
4155
+ * @param {*} [options] Override http request option.
4156
+ * @throws {RequiredError}
4157
+ */
4158
+ async fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
4159
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options);
4160
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4161
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerAnalytics']?.[localVarOperationServerIndex]?.url;
4162
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4163
+ },
4164
+ /**
4165
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
4166
+ * @summary What the writer can do for this domain, and the domain\'s event retention
4167
+ * @param {string} domainId
4168
+ * @param {*} [options] Override http request option.
4169
+ * @throws {RequiredError}
4170
+ */
4171
+ async fixtureHistoryControllerCapabilities(domainId, options) {
4172
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerCapabilities(domainId, options);
4173
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4174
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerCapabilities']?.[localVarOperationServerIndex]
4175
+ ?.url;
4176
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4177
+ },
4178
+ /**
4179
+ * <br> OperationId: `FixtureHistoryControllerDelete`
4180
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
4181
+ * @param {string} domainId
4182
+ * @param {string} fixtureDatasetId
4183
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
4184
+ * @param {*} [options] Override http request option.
4185
+ * @throws {RequiredError}
4186
+ */
4187
+ async fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
4188
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options);
4189
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4190
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerDelete']?.[localVarOperationServerIndex]?.url;
4191
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4192
+ },
4193
+ /**
4194
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4195
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4196
+ * @param {string} domainId
4197
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4198
+ * @param {*} [options] Override http request option.
4199
+ * @throws {RequiredError}
4200
+ */
4201
+ async fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4202
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options);
4203
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4204
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerEconomyReadiness']?.[localVarOperationServerIndex]
4205
+ ?.url;
4206
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4207
+ },
4208
+ /**
4209
+ * 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`
4210
+ * @summary Write owned, back-dated players and players-on-gameserver
4211
+ * @param {string} domainId
4212
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4213
+ * @param {*} [options] Override http request option.
4214
+ * @throws {RequiredError}
4215
+ */
4216
+ async fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4217
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options);
4218
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4219
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerIdentities']?.[localVarOperationServerIndex]?.url;
4220
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4221
+ },
4222
+ /**
4223
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4224
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4225
+ * @param {string} domainId
4226
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4227
+ * @param {*} [options] Override http request option.
4228
+ * @throws {RequiredError}
4229
+ */
4230
+ async fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4231
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options);
4232
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4233
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventory']?.[localVarOperationServerIndex]?.url;
4234
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4235
+ },
4236
+ /**
4237
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4238
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4239
+ * @param {string} domainId
4240
+ * @param {string} fixtureDatasetId
4241
+ * @param {string} [cursor]
4242
+ * @param {*} [options] Override http request option.
4243
+ * @throws {RequiredError}
4244
+ */
4245
+ async fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4246
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options);
4247
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4248
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventoryPage']?.[localVarOperationServerIndex]
4249
+ ?.url;
4250
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4251
+ },
4252
+ /**
4253
+ * 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`
4254
+ * @summary Write owned, back-dated shop listings
4255
+ * @param {string} domainId
4256
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4257
+ * @param {*} [options] Override http request option.
4258
+ * @throws {RequiredError}
4259
+ */
4260
+ async fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4261
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options);
4262
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4263
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerListings']?.[localVarOperationServerIndex]?.url;
4264
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4265
+ },
4266
+ /**
4267
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4268
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4269
+ * @param {string} domainId
4270
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4271
+ * @param {*} [options] Override http request option.
4272
+ * @throws {RequiredError}
4273
+ */
4274
+ async fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4275
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options);
4276
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4277
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerOrders']?.[localVarOperationServerIndex]?.url;
4278
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4279
+ },
4280
+ /**
4281
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4282
+ * @summary Owned row counts per store, and unowned events naming owned players
4283
+ * @param {string} domainId
4284
+ * @param {string} fixtureDatasetId
4285
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4286
+ * @param {*} [options] Override http request option.
4287
+ * @throws {RequiredError}
4288
+ */
4289
+ async fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4290
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options);
4291
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4292
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerSummary']?.[localVarOperationServerIndex]?.url;
4293
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4294
+ },
4295
+ /**
4296
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4297
+ * @summary Set the offline terminal state of owned players-on-gameserver
4298
+ * @param {string} domainId
4299
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4300
+ * @param {*} [options] Override http request option.
4301
+ * @throws {RequiredError}
4302
+ */
4303
+ async fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4304
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options);
4305
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4306
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminal']?.[localVarOperationServerIndex]?.url;
4307
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4308
+ },
4309
+ /**
4310
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4311
+ * @summary Page through the terminal state of owned players-on-gameserver
4312
+ * @param {string} domainId
4313
+ * @param {string} fixtureDatasetId
4314
+ * @param {string} [cursor]
4315
+ * @param {*} [options] Override http request option.
4316
+ * @throws {RequiredError}
4317
+ */
4318
+ async fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4319
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options);
4320
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4321
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminalState']?.[localVarOperationServerIndex]
4322
+ ?.url;
4323
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4324
+ },
4325
+ };
4326
+ };
4327
+ /**
4328
+ * FixtureHistoryApi - factory interface
4329
+ * @export
4330
+ */
4331
+ export const FixtureHistoryApiFactory = function (configuration, basePath, axios) {
4332
+ const localVarFp = FixtureHistoryApiFp(configuration);
4333
+ return {
4334
+ /**
4335
+ * <br> OperationId: `FixtureHistoryControllerActivity`
4336
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
4337
+ * @param {string} domainId
4338
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
4339
+ * @param {*} [options] Override http request option.
4340
+ * @throws {RequiredError}
4341
+ */
4342
+ fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
4343
+ return localVarFp
4344
+ .fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
4345
+ .then((request) => request(axios, basePath));
4346
+ },
4347
+ /**
4348
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
4349
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
4350
+ * @param {string} domainId
4351
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
4352
+ * @param {*} [options] Override http request option.
4353
+ * @throws {RequiredError}
4354
+ */
4355
+ fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
4356
+ return localVarFp
4357
+ .fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
4358
+ .then((request) => request(axios, basePath));
4359
+ },
4360
+ /**
4361
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
4362
+ * @summary What the writer can do for this domain, and the domain\'s event retention
4363
+ * @param {string} domainId
4364
+ * @param {*} [options] Override http request option.
4365
+ * @throws {RequiredError}
4366
+ */
4367
+ fixtureHistoryControllerCapabilities(domainId, options) {
4368
+ return localVarFp
4369
+ .fixtureHistoryControllerCapabilities(domainId, options)
4370
+ .then((request) => request(axios, basePath));
4371
+ },
4372
+ /**
4373
+ * <br> OperationId: `FixtureHistoryControllerDelete`
4374
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
4375
+ * @param {string} domainId
4376
+ * @param {string} fixtureDatasetId
4377
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
4378
+ * @param {*} [options] Override http request option.
4379
+ * @throws {RequiredError}
4380
+ */
4381
+ fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
4382
+ return localVarFp
4383
+ .fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
4384
+ .then((request) => request(axios, basePath));
4385
+ },
4386
+ /**
4387
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4388
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4389
+ * @param {string} domainId
4390
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4391
+ * @param {*} [options] Override http request option.
4392
+ * @throws {RequiredError}
4393
+ */
4394
+ fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4395
+ return localVarFp
4396
+ .fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
4397
+ .then((request) => request(axios, basePath));
4398
+ },
4399
+ /**
4400
+ * 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`
4401
+ * @summary Write owned, back-dated players and players-on-gameserver
4402
+ * @param {string} domainId
4403
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4404
+ * @param {*} [options] Override http request option.
4405
+ * @throws {RequiredError}
4406
+ */
4407
+ fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4408
+ return localVarFp
4409
+ .fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
4410
+ .then((request) => request(axios, basePath));
4411
+ },
4412
+ /**
4413
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4414
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4415
+ * @param {string} domainId
4416
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4417
+ * @param {*} [options] Override http request option.
4418
+ * @throws {RequiredError}
4419
+ */
4420
+ fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4421
+ return localVarFp
4422
+ .fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
4423
+ .then((request) => request(axios, basePath));
4424
+ },
4425
+ /**
4426
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4427
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4428
+ * @param {string} domainId
4429
+ * @param {string} fixtureDatasetId
4430
+ * @param {string} [cursor]
4431
+ * @param {*} [options] Override http request option.
4432
+ * @throws {RequiredError}
4433
+ */
4434
+ fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4435
+ return localVarFp
4436
+ .fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
4437
+ .then((request) => request(axios, basePath));
4438
+ },
4439
+ /**
4440
+ * 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`
4441
+ * @summary Write owned, back-dated shop listings
4442
+ * @param {string} domainId
4443
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4444
+ * @param {*} [options] Override http request option.
4445
+ * @throws {RequiredError}
4446
+ */
4447
+ fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4448
+ return localVarFp
4449
+ .fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
4450
+ .then((request) => request(axios, basePath));
4451
+ },
4452
+ /**
4453
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4454
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4455
+ * @param {string} domainId
4456
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4457
+ * @param {*} [options] Override http request option.
4458
+ * @throws {RequiredError}
4459
+ */
4460
+ fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4461
+ return localVarFp
4462
+ .fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
4463
+ .then((request) => request(axios, basePath));
4464
+ },
4465
+ /**
4466
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4467
+ * @summary Owned row counts per store, and unowned events naming owned players
4468
+ * @param {string} domainId
4469
+ * @param {string} fixtureDatasetId
4470
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4471
+ * @param {*} [options] Override http request option.
4472
+ * @throws {RequiredError}
4473
+ */
4474
+ fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4475
+ return localVarFp
4476
+ .fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
4477
+ .then((request) => request(axios, basePath));
4478
+ },
4479
+ /**
4480
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4481
+ * @summary Set the offline terminal state of owned players-on-gameserver
4482
+ * @param {string} domainId
4483
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4484
+ * @param {*} [options] Override http request option.
4485
+ * @throws {RequiredError}
4486
+ */
4487
+ fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4488
+ return localVarFp
4489
+ .fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
4490
+ .then((request) => request(axios, basePath));
4491
+ },
4492
+ /**
4493
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4494
+ * @summary Page through the terminal state of owned players-on-gameserver
4495
+ * @param {string} domainId
4496
+ * @param {string} fixtureDatasetId
4497
+ * @param {string} [cursor]
4498
+ * @param {*} [options] Override http request option.
4499
+ * @throws {RequiredError}
4500
+ */
4501
+ fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4502
+ return localVarFp
4503
+ .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4504
+ .then((request) => request(axios, basePath));
4505
+ },
4506
+ };
4507
+ };
4508
+ /**
4509
+ * FixtureHistoryApi - object-oriented interface
4510
+ * @export
4511
+ * @class FixtureHistoryApi
4512
+ * @extends {BaseAPI}
4513
+ */
4514
+ export class FixtureHistoryApi extends BaseAPI {
4515
+ /**
4516
+ * <br> OperationId: `FixtureHistoryControllerActivity`
4517
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
4518
+ * @param {string} domainId
4519
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
4520
+ * @param {*} [options] Override http request option.
4521
+ * @throws {RequiredError}
4522
+ * @memberof FixtureHistoryApi
4523
+ */
4524
+ fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
4525
+ return FixtureHistoryApiFp(this.configuration)
4526
+ .fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
4527
+ .then((request) => request(this.axios, this.basePath));
4528
+ }
4529
+ /**
4530
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
4531
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
4532
+ * @param {string} domainId
4533
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
4534
+ * @param {*} [options] Override http request option.
4535
+ * @throws {RequiredError}
4536
+ * @memberof FixtureHistoryApi
4537
+ */
4538
+ fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
4539
+ return FixtureHistoryApiFp(this.configuration)
4540
+ .fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
4541
+ .then((request) => request(this.axios, this.basePath));
4542
+ }
4543
+ /**
4544
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
4545
+ * @summary What the writer can do for this domain, and the domain\'s event retention
4546
+ * @param {string} domainId
4547
+ * @param {*} [options] Override http request option.
4548
+ * @throws {RequiredError}
4549
+ * @memberof FixtureHistoryApi
4550
+ */
4551
+ fixtureHistoryControllerCapabilities(domainId, options) {
4552
+ return FixtureHistoryApiFp(this.configuration)
4553
+ .fixtureHistoryControllerCapabilities(domainId, options)
4554
+ .then((request) => request(this.axios, this.basePath));
4555
+ }
4556
+ /**
4557
+ * <br> OperationId: `FixtureHistoryControllerDelete`
4558
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
4559
+ * @param {string} domainId
4560
+ * @param {string} fixtureDatasetId
4561
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
4562
+ * @param {*} [options] Override http request option.
4563
+ * @throws {RequiredError}
4564
+ * @memberof FixtureHistoryApi
4565
+ */
4566
+ fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
4567
+ return FixtureHistoryApiFp(this.configuration)
4568
+ .fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
4569
+ .then((request) => request(this.axios, this.basePath));
4570
+ }
4571
+ /**
4572
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4573
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4574
+ * @param {string} domainId
4575
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4576
+ * @param {*} [options] Override http request option.
4577
+ * @throws {RequiredError}
4578
+ * @memberof FixtureHistoryApi
4579
+ */
4580
+ fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4581
+ return FixtureHistoryApiFp(this.configuration)
4582
+ .fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
4583
+ .then((request) => request(this.axios, this.basePath));
4584
+ }
4585
+ /**
4586
+ * 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`
4587
+ * @summary Write owned, back-dated players and players-on-gameserver
4588
+ * @param {string} domainId
4589
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4590
+ * @param {*} [options] Override http request option.
4591
+ * @throws {RequiredError}
4592
+ * @memberof FixtureHistoryApi
4593
+ */
4594
+ fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4595
+ return FixtureHistoryApiFp(this.configuration)
4596
+ .fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
4597
+ .then((request) => request(this.axios, this.basePath));
4598
+ }
4599
+ /**
4600
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4601
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4602
+ * @param {string} domainId
4603
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4604
+ * @param {*} [options] Override http request option.
4605
+ * @throws {RequiredError}
4606
+ * @memberof FixtureHistoryApi
4607
+ */
4608
+ fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4609
+ return FixtureHistoryApiFp(this.configuration)
4610
+ .fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
4611
+ .then((request) => request(this.axios, this.basePath));
4612
+ }
4613
+ /**
4614
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4615
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4616
+ * @param {string} domainId
4617
+ * @param {string} fixtureDatasetId
4618
+ * @param {string} [cursor]
4619
+ * @param {*} [options] Override http request option.
4620
+ * @throws {RequiredError}
4621
+ * @memberof FixtureHistoryApi
4622
+ */
4623
+ fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4624
+ return FixtureHistoryApiFp(this.configuration)
4625
+ .fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
4626
+ .then((request) => request(this.axios, this.basePath));
4627
+ }
4628
+ /**
4629
+ * 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`
4630
+ * @summary Write owned, back-dated shop listings
4631
+ * @param {string} domainId
4632
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4633
+ * @param {*} [options] Override http request option.
4634
+ * @throws {RequiredError}
4635
+ * @memberof FixtureHistoryApi
4636
+ */
4637
+ fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4638
+ return FixtureHistoryApiFp(this.configuration)
4639
+ .fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
4640
+ .then((request) => request(this.axios, this.basePath));
4641
+ }
4642
+ /**
4643
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4644
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4645
+ * @param {string} domainId
4646
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4647
+ * @param {*} [options] Override http request option.
4648
+ * @throws {RequiredError}
4649
+ * @memberof FixtureHistoryApi
4650
+ */
4651
+ fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4652
+ return FixtureHistoryApiFp(this.configuration)
4653
+ .fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
4654
+ .then((request) => request(this.axios, this.basePath));
4655
+ }
4656
+ /**
4657
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4658
+ * @summary Owned row counts per store, and unowned events naming owned players
4659
+ * @param {string} domainId
4660
+ * @param {string} fixtureDatasetId
4661
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4662
+ * @param {*} [options] Override http request option.
4663
+ * @throws {RequiredError}
4664
+ * @memberof FixtureHistoryApi
4665
+ */
4666
+ fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4667
+ return FixtureHistoryApiFp(this.configuration)
4668
+ .fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
4669
+ .then((request) => request(this.axios, this.basePath));
4670
+ }
4671
+ /**
4672
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4673
+ * @summary Set the offline terminal state of owned players-on-gameserver
4674
+ * @param {string} domainId
4675
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4676
+ * @param {*} [options] Override http request option.
4677
+ * @throws {RequiredError}
4678
+ * @memberof FixtureHistoryApi
4679
+ */
4680
+ fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4681
+ return FixtureHistoryApiFp(this.configuration)
4682
+ .fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
4683
+ .then((request) => request(this.axios, this.basePath));
4684
+ }
4685
+ /**
4686
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4687
+ * @summary Page through the terminal state of owned players-on-gameserver
4688
+ * @param {string} domainId
4689
+ * @param {string} fixtureDatasetId
4690
+ * @param {string} [cursor]
4691
+ * @param {*} [options] Override http request option.
4692
+ * @throws {RequiredError}
4693
+ * @memberof FixtureHistoryApi
4694
+ */
4695
+ fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4696
+ return FixtureHistoryApiFp(this.configuration)
4697
+ .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4698
+ .then((request) => request(this.axios, this.basePath));
4699
+ }
4700
+ }
4701
+ /**
4702
+ * MetaApi - axios parameter creator
4703
+ * @export
4704
+ */
4705
+ export const MetaApiAxiosParamCreator = function (configuration) {
4706
+ return {
4707
+ /**
4708
+ * <br> OperationId: `MetaGetHealth`
4709
+ * @summary Get health
4710
+ * @param {*} [options] Override http request option.
4711
+ * @throws {RequiredError}
4712
+ */
4713
+ metaGetHealth: async (options = {}) => {
4714
+ const localVarPath = `/healthz`;
4715
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4716
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4717
+ let baseOptions;
4718
+ if (configuration) {
4719
+ baseOptions = configuration.baseOptions;
4720
+ }
4721
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4722
+ const localVarHeaderParameter = {};
4723
+ const localVarQueryParameter = {};
4724
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4725
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4726
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4727
+ return {
4728
+ url: toPathString(localVarUrlObj),
4729
+ options: localVarRequestOptions,
4730
+ };
4731
+ },
4732
+ /**
4733
+ * <br> OperationId: `MetaGetLiveness`
4734
+ * @summary Get liveness
4735
+ * @param {*} [options] Override http request option.
4736
+ * @throws {RequiredError}
4737
+ */
4738
+ metaGetLiveness: async (options = {}) => {
4739
+ const localVarPath = `/livez`;
4740
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4741
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4742
+ let baseOptions;
4743
+ if (configuration) {
4744
+ baseOptions = configuration.baseOptions;
4745
+ }
4746
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4747
+ const localVarHeaderParameter = {};
4748
+ const localVarQueryParameter = {};
4749
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4750
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4751
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4752
+ return {
4753
+ url: toPathString(localVarUrlObj),
4754
+ options: localVarRequestOptions,
4755
+ };
4756
+ },
4757
+ /**
4758
+ * <br> OperationId: `MetaGetOpenApi`
4759
+ * @summary Get open api
4760
+ * @param {*} [options] Override http request option.
4761
+ * @throws {RequiredError}
4762
+ */
4763
+ metaGetOpenApi: async (options = {}) => {
4764
+ const localVarPath = `/openapi.json`;
4765
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4766
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4767
+ let baseOptions;
4768
+ if (configuration) {
4769
+ baseOptions = configuration.baseOptions;
4770
+ }
4771
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4772
+ const localVarHeaderParameter = {};
4773
+ const localVarQueryParameter = {};
4774
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4775
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4776
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4777
+ return {
4778
+ url: toPathString(localVarUrlObj),
4779
+ options: localVarRequestOptions,
4780
+ };
4781
+ },
4782
+ /**
4783
+ * <br> OperationId: `MetaGetOpenApiHtml`
4784
+ * @summary Get open api html
4785
+ * @param {*} [options] Override http request option.
4786
+ * @throws {RequiredError}
4787
+ */
4788
+ metaGetOpenApiHtml: async (options = {}) => {
4789
+ const localVarPath = `/api.html`;
4790
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4791
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4792
+ let baseOptions;
4793
+ if (configuration) {
4794
+ baseOptions = configuration.baseOptions;
4795
+ }
4796
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4797
+ const localVarHeaderParameter = {};
4798
+ const localVarQueryParameter = {};
4799
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4800
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4801
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4802
+ return {
4803
+ url: toPathString(localVarUrlObj),
4804
+ options: localVarRequestOptions,
4805
+ };
4806
+ },
4807
+ /**
4808
+ * <br> OperationId: `MetaGetReadiness`
4809
+ * @summary Get readiness
4810
+ * @param {*} [options] Override http request option.
4811
+ * @throws {RequiredError}
4812
+ */
4813
+ metaGetReadiness: async (options = {}) => {
4814
+ const localVarPath = `/readyz`;
4815
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4816
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4817
+ let baseOptions;
4818
+ if (configuration) {
4819
+ baseOptions = configuration.baseOptions;
4820
+ }
4821
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4822
+ const localVarHeaderParameter = {};
4823
+ const localVarQueryParameter = {};
4824
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4825
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4826
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4827
+ return {
4828
+ url: toPathString(localVarUrlObj),
4829
+ options: localVarRequestOptions,
4830
+ };
4831
+ },
4832
+ /**
4833
+ * <br> OperationId: `MetaGetRoot`
4834
+ * @summary Get root
4835
+ * @param {*} [options] Override http request option.
4836
+ * @throws {RequiredError}
4837
+ */
4838
+ metaGetRoot: async (options = {}) => {
4839
+ const localVarPath = `/`;
4840
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4841
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4842
+ let baseOptions;
4843
+ if (configuration) {
4844
+ baseOptions = configuration.baseOptions;
4845
+ }
4846
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4847
+ const localVarHeaderParameter = {};
4848
+ const localVarQueryParameter = {};
4849
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4850
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4851
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4852
+ return {
4853
+ url: toPathString(localVarUrlObj),
4854
+ options: localVarRequestOptions,
4855
+ };
4856
+ },
4857
+ };
4858
+ };
4859
+ /**
4860
+ * MetaApi - functional programming interface
4861
+ * @export
4862
+ */
4863
+ export const MetaApiFp = function (configuration) {
4864
+ const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration);
4865
+ return {
4866
+ /**
4867
+ * <br> OperationId: `MetaGetHealth`
4868
+ * @summary Get health
4869
+ * @param {*} [options] Override http request option.
4870
+ * @throws {RequiredError}
4871
+ */
4872
+ async metaGetHealth(options) {
4873
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetHealth(options);
4874
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4875
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetHealth']?.[localVarOperationServerIndex]?.url;
4876
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4877
+ },
4878
+ /**
4879
+ * <br> OperationId: `MetaGetLiveness`
4880
+ * @summary Get liveness
4881
+ * @param {*} [options] Override http request option.
4882
+ * @throws {RequiredError}
4883
+ */
4884
+ async metaGetLiveness(options) {
4885
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetLiveness(options);
4886
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4887
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
4888
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4889
+ },
4890
+ /**
4891
+ * <br> OperationId: `MetaGetOpenApi`
4892
+ * @summary Get open api
4893
+ * @param {*} [options] Override http request option.
4894
+ * @throws {RequiredError}
4895
+ */
4896
+ async metaGetOpenApi(options) {
4897
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options);
4898
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4899
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[localVarOperationServerIndex]?.url;
4900
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4901
+ },
4902
+ /**
4903
+ * <br> OperationId: `MetaGetOpenApiHtml`
4904
+ * @summary Get open api html
4905
+ * @param {*} [options] Override http request option.
4906
+ * @throws {RequiredError}
4907
+ */
4908
+ async metaGetOpenApiHtml(options) {
4909
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApiHtml(options);
4910
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4911
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApiHtml']?.[localVarOperationServerIndex]?.url;
4912
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4913
+ },
4914
+ /**
4915
+ * <br> OperationId: `MetaGetReadiness`
4916
+ * @summary Get readiness
4917
+ * @param {*} [options] Override http request option.
4918
+ * @throws {RequiredError}
4919
+ */
4920
+ async metaGetReadiness(options) {
4921
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetReadiness(options);
4922
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4923
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetReadiness']?.[localVarOperationServerIndex]?.url;
4924
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4925
+ },
4926
+ /**
4927
+ * <br> OperationId: `MetaGetRoot`
4928
+ * @summary Get root
4929
+ * @param {*} [options] Override http request option.
4930
+ * @throws {RequiredError}
4931
+ */
4932
+ async metaGetRoot(options) {
4933
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetRoot(options);
4934
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4935
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetRoot']?.[localVarOperationServerIndex]?.url;
4936
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4937
+ },
4938
+ };
4939
+ };
4940
+ /**
4941
+ * MetaApi - factory interface
4942
+ * @export
4943
+ */
4944
+ export const MetaApiFactory = function (configuration, basePath, axios) {
4945
+ const localVarFp = MetaApiFp(configuration);
4946
+ return {
4947
+ /**
4948
+ * <br> OperationId: `MetaGetHealth`
4949
+ * @summary Get health
4950
+ * @param {*} [options] Override http request option.
4951
+ * @throws {RequiredError}
4952
+ */
4953
+ metaGetHealth(options) {
4954
+ return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath));
4955
+ },
4956
+ /**
4957
+ * <br> OperationId: `MetaGetLiveness`
4958
+ * @summary Get liveness
4959
+ * @param {*} [options] Override http request option.
4960
+ * @throws {RequiredError}
4961
+ */
4962
+ metaGetLiveness(options) {
4963
+ return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
4964
+ },
4965
+ /**
4966
+ * <br> OperationId: `MetaGetOpenApi`
4967
+ * @summary Get open api
4968
+ * @param {*} [options] Override http request option.
4969
+ * @throws {RequiredError}
4970
+ */
4971
+ metaGetOpenApi(options) {
4972
+ return localVarFp.metaGetOpenApi(options).then((request) => request(axios, basePath));
4973
+ },
4974
+ /**
4975
+ * <br> OperationId: `MetaGetOpenApiHtml`
4976
+ * @summary Get open api html
4977
+ * @param {*} [options] Override http request option.
4978
+ * @throws {RequiredError}
4979
+ */
4980
+ metaGetOpenApiHtml(options) {
4981
+ return localVarFp.metaGetOpenApiHtml(options).then((request) => request(axios, basePath));
4982
+ },
4983
+ /**
4984
+ * <br> OperationId: `MetaGetReadiness`
4985
+ * @summary Get readiness
4986
+ * @param {*} [options] Override http request option.
4987
+ * @throws {RequiredError}
4988
+ */
4989
+ metaGetReadiness(options) {
4990
+ return localVarFp.metaGetReadiness(options).then((request) => request(axios, basePath));
4991
+ },
4992
+ /**
4993
+ * <br> OperationId: `MetaGetRoot`
4994
+ * @summary Get root
4995
+ * @param {*} [options] Override http request option.
4996
+ * @throws {RequiredError}
4997
+ */
4998
+ metaGetRoot(options) {
4999
+ return localVarFp.metaGetRoot(options).then((request) => request(axios, basePath));
5000
+ },
5001
+ };
5002
+ };
5003
+ /**
5004
+ * MetaApi - object-oriented interface
5005
+ * @export
5006
+ * @class MetaApi
5007
+ * @extends {BaseAPI}
5008
+ */
5009
+ export class MetaApi extends BaseAPI {
5010
+ /**
5011
+ * <br> OperationId: `MetaGetHealth`
5012
+ * @summary Get health
5013
+ * @param {*} [options] Override http request option.
5014
+ * @throws {RequiredError}
5015
+ * @memberof MetaApi
5016
+ */
5017
+ metaGetHealth(options) {
5018
+ return MetaApiFp(this.configuration)
5019
+ .metaGetHealth(options)
5020
+ .then((request) => request(this.axios, this.basePath));
5021
+ }
5022
+ /**
5023
+ * <br> OperationId: `MetaGetLiveness`
5024
+ * @summary Get liveness
5025
+ * @param {*} [options] Override http request option.
5026
+ * @throws {RequiredError}
5027
+ * @memberof MetaApi
5028
+ */
5029
+ metaGetLiveness(options) {
5030
+ return MetaApiFp(this.configuration)
5031
+ .metaGetLiveness(options)
5032
+ .then((request) => request(this.axios, this.basePath));
5033
+ }
5034
+ /**
5035
+ * <br> OperationId: `MetaGetOpenApi`
5036
+ * @summary Get open api
5037
+ * @param {*} [options] Override http request option.
5038
+ * @throws {RequiredError}
5039
+ * @memberof MetaApi
5040
+ */
5041
+ metaGetOpenApi(options) {
5042
+ return MetaApiFp(this.configuration)
5043
+ .metaGetOpenApi(options)
5044
+ .then((request) => request(this.axios, this.basePath));
5045
+ }
5046
+ /**
5047
+ * <br> OperationId: `MetaGetOpenApiHtml`
5048
+ * @summary Get open api html
5049
+ * @param {*} [options] Override http request option.
5050
+ * @throws {RequiredError}
5051
+ * @memberof MetaApi
5052
+ */
5053
+ metaGetOpenApiHtml(options) {
5054
+ return MetaApiFp(this.configuration)
5055
+ .metaGetOpenApiHtml(options)
5056
+ .then((request) => request(this.axios, this.basePath));
5057
+ }
5058
+ /**
5059
+ * <br> OperationId: `MetaGetReadiness`
5060
+ * @summary Get readiness
5061
+ * @param {*} [options] Override http request option.
5062
+ * @throws {RequiredError}
5063
+ * @memberof MetaApi
5064
+ */
5065
+ metaGetReadiness(options) {
5066
+ return MetaApiFp(this.configuration)
5067
+ .metaGetReadiness(options)
5068
+ .then((request) => request(this.axios, this.basePath));
5069
+ }
5070
+ /**
5071
+ * <br> OperationId: `MetaGetRoot`
5072
+ * @summary Get root
5073
+ * @param {*} [options] Override http request option.
5074
+ * @throws {RequiredError}
5075
+ * @memberof MetaApi
5076
+ */
5077
+ metaGetRoot(options) {
5078
+ return MetaApiFp(this.configuration)
5079
+ .metaGetRoot(options)
5080
+ .then((request) => request(this.axios, this.basePath));
5081
+ }
5082
+ }
5083
+ /**
5084
+ * PlatformStatsApi - axios parameter creator
5085
+ * @export
5086
+ */
5087
+ export const PlatformStatsApiAxiosParamCreator = function (configuration) {
5088
+ return {
5089
+ /**
5090
+ * 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`
5091
+ * @summary Platform-wide Domain statistics
5092
+ * @param {number} [weeks]
5093
+ * @param {*} [options] Override http request option.
5094
+ * @throws {RequiredError}
5095
+ */
5096
+ platformStatsControllerDomains: async (weeks, options = {}) => {
5097
+ const localVarPath = `/staff/stats/domains`;
5098
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5099
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5100
+ let baseOptions;
5101
+ if (configuration) {
5102
+ baseOptions = configuration.baseOptions;
5103
+ }
5104
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5105
+ const localVarHeaderParameter = {};
5106
+ const localVarQueryParameter = {};
5107
+ // authentication staffSession required
5108
+ // authentication adminAuth required
5109
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5110
+ if (weeks !== undefined) {
5111
+ localVarQueryParameter['weeks'] = weeks;
5112
+ }
5113
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5114
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5115
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5116
+ return {
5117
+ url: toPathString(localVarUrlObj),
5118
+ options: localVarRequestOptions,
5119
+ };
5120
+ },
5121
+ };
5122
+ };
5123
+ /**
5124
+ * PlatformStatsApi - functional programming interface
5125
+ * @export
5126
+ */
5127
+ export const PlatformStatsApiFp = function (configuration) {
5128
+ const localVarAxiosParamCreator = PlatformStatsApiAxiosParamCreator(configuration);
5129
+ return {
5130
+ /**
5131
+ * 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`
5132
+ * @summary Platform-wide Domain statistics
5133
+ * @param {number} [weeks]
5134
+ * @param {*} [options] Override http request option.
5135
+ * @throws {RequiredError}
5136
+ */
5137
+ async platformStatsControllerDomains(weeks, options) {
5138
+ const localVarAxiosArgs = await localVarAxiosParamCreator.platformStatsControllerDomains(weeks, options);
5139
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5140
+ const localVarOperationServerBasePath = operationServerMap['PlatformStatsApi.platformStatsControllerDomains']?.[localVarOperationServerIndex]?.url;
5141
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5142
+ },
5143
+ };
5144
+ };
5145
+ /**
5146
+ * PlatformStatsApi - factory interface
5147
+ * @export
5148
+ */
5149
+ export const PlatformStatsApiFactory = function (configuration, basePath, axios) {
5150
+ const localVarFp = PlatformStatsApiFp(configuration);
5151
+ return {
5152
+ /**
5153
+ * 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`
5154
+ * @summary Platform-wide Domain statistics
5155
+ * @param {number} [weeks]
5156
+ * @param {*} [options] Override http request option.
5157
+ * @throws {RequiredError}
5158
+ */
5159
+ platformStatsControllerDomains(weeks, options) {
5160
+ return localVarFp.platformStatsControllerDomains(weeks, options).then((request) => request(axios, basePath));
5161
+ },
5162
+ };
5163
+ };
5164
+ /**
5165
+ * PlatformStatsApi - object-oriented interface
5166
+ * @export
5167
+ * @class PlatformStatsApi
5168
+ * @extends {BaseAPI}
5169
+ */
5170
+ export class PlatformStatsApi extends BaseAPI {
5171
+ /**
5172
+ * 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`
5173
+ * @summary Platform-wide Domain statistics
5174
+ * @param {number} [weeks]
5175
+ * @param {*} [options] Override http request option.
5176
+ * @throws {RequiredError}
5177
+ * @memberof PlatformStatsApi
5178
+ */
5179
+ platformStatsControllerDomains(weeks, options) {
5180
+ return PlatformStatsApiFp(this.configuration)
5181
+ .platformStatsControllerDomains(weeks, options)
5182
+ .then((request) => request(this.axios, this.basePath));
5183
+ }
5184
+ }
5185
+ /**
5186
+ * StaffAuthApi - axios parameter creator
5187
+ * @export
5188
+ */
5189
+ export const StaffAuthApiAxiosParamCreator = function (configuration) {
5190
+ return {
5191
+ /**
5192
+ * <br> OperationId: `StaffAuthControllerCallback`
5193
+ * @summary Callback
5194
+ * @param {*} [options] Override http request option.
5195
+ * @throws {RequiredError}
5196
+ */
5197
+ staffAuthControllerCallback: async (options = {}) => {
5198
+ const localVarPath = `/auth/callback`;
5199
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5200
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5201
+ let baseOptions;
5202
+ if (configuration) {
5203
+ baseOptions = configuration.baseOptions;
5204
+ }
5205
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5206
+ const localVarHeaderParameter = {};
5207
+ const localVarQueryParameter = {};
5208
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5209
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5210
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5211
+ return {
5212
+ url: toPathString(localVarUrlObj),
5213
+ options: localVarRequestOptions,
5214
+ };
5215
+ },
5216
+ /**
5217
+ * <br> OperationId: `StaffAuthControllerLogin`
5218
+ * @summary Login
5219
+ * @param {*} [options] Override http request option.
5220
+ * @throws {RequiredError}
5221
+ */
5222
+ staffAuthControllerLogin: async (options = {}) => {
5223
+ const localVarPath = `/auth/login`;
5224
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5225
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5226
+ let baseOptions;
5227
+ if (configuration) {
5228
+ baseOptions = configuration.baseOptions;
5229
+ }
5230
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5231
+ const localVarHeaderParameter = {};
5232
+ const localVarQueryParameter = {};
5233
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5234
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5235
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5236
+ return {
5237
+ url: toPathString(localVarUrlObj),
5238
+ options: localVarRequestOptions,
5239
+ };
5240
+ },
5241
+ /**
5242
+ * <br> OperationId: `StaffAuthControllerLogout`
5243
+ * @summary Logout
5244
+ * @param {*} [options] Override http request option.
5245
+ * @throws {RequiredError}
5246
+ */
5247
+ staffAuthControllerLogout: async (options = {}) => {
5248
+ const localVarPath = `/auth/logout`;
5249
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5250
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5251
+ let baseOptions;
5252
+ if (configuration) {
5253
+ baseOptions = configuration.baseOptions;
5254
+ }
5255
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5256
+ const localVarHeaderParameter = {};
5257
+ const localVarQueryParameter = {};
5258
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5259
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5260
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5261
+ return {
5262
+ url: toPathString(localVarUrlObj),
5263
+ options: localVarRequestOptions,
5264
+ };
5265
+ },
5266
+ };
5267
+ };
5268
+ /**
5269
+ * StaffAuthApi - functional programming interface
5270
+ * @export
5271
+ */
5272
+ export const StaffAuthApiFp = function (configuration) {
5273
+ const localVarAxiosParamCreator = StaffAuthApiAxiosParamCreator(configuration);
5274
+ return {
5275
+ /**
5276
+ * <br> OperationId: `StaffAuthControllerCallback`
5277
+ * @summary Callback
5278
+ * @param {*} [options] Override http request option.
5279
+ * @throws {RequiredError}
5280
+ */
5281
+ async staffAuthControllerCallback(options) {
5282
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerCallback(options);
5283
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5284
+ const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerCallback']?.[localVarOperationServerIndex]?.url;
5285
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5286
+ },
5287
+ /**
5288
+ * <br> OperationId: `StaffAuthControllerLogin`
5289
+ * @summary Login
5290
+ * @param {*} [options] Override http request option.
5291
+ * @throws {RequiredError}
5292
+ */
5293
+ async staffAuthControllerLogin(options) {
5294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogin(options);
5295
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5296
+ const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogin']?.[localVarOperationServerIndex]?.url;
5297
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5298
+ },
5299
+ /**
5300
+ * <br> OperationId: `StaffAuthControllerLogout`
5301
+ * @summary Logout
5302
+ * @param {*} [options] Override http request option.
5303
+ * @throws {RequiredError}
5304
+ */
5305
+ async staffAuthControllerLogout(options) {
5306
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogout(options);
5307
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5308
+ const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogout']?.[localVarOperationServerIndex]?.url;
3362
5309
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3363
5310
  },
5311
+ };
5312
+ };
5313
+ /**
5314
+ * StaffAuthApi - factory interface
5315
+ * @export
5316
+ */
5317
+ export const StaffAuthApiFactory = function (configuration, basePath, axios) {
5318
+ const localVarFp = StaffAuthApiFp(configuration);
5319
+ return {
5320
+ /**
5321
+ * <br> OperationId: `StaffAuthControllerCallback`
5322
+ * @summary Callback
5323
+ * @param {*} [options] Override http request option.
5324
+ * @throws {RequiredError}
5325
+ */
5326
+ staffAuthControllerCallback(options) {
5327
+ return localVarFp.staffAuthControllerCallback(options).then((request) => request(axios, basePath));
5328
+ },
5329
+ /**
5330
+ * <br> OperationId: `StaffAuthControllerLogin`
5331
+ * @summary Login
5332
+ * @param {*} [options] Override http request option.
5333
+ * @throws {RequiredError}
5334
+ */
5335
+ staffAuthControllerLogin(options) {
5336
+ return localVarFp.staffAuthControllerLogin(options).then((request) => request(axios, basePath));
5337
+ },
5338
+ /**
5339
+ * <br> OperationId: `StaffAuthControllerLogout`
5340
+ * @summary Logout
5341
+ * @param {*} [options] Override http request option.
5342
+ * @throws {RequiredError}
5343
+ */
5344
+ staffAuthControllerLogout(options) {
5345
+ return localVarFp.staffAuthControllerLogout(options).then((request) => request(axios, basePath));
5346
+ },
5347
+ };
5348
+ };
5349
+ /**
5350
+ * StaffAuthApi - object-oriented interface
5351
+ * @export
5352
+ * @class StaffAuthApi
5353
+ * @extends {BaseAPI}
5354
+ */
5355
+ export class StaffAuthApi extends BaseAPI {
5356
+ /**
5357
+ * <br> OperationId: `StaffAuthControllerCallback`
5358
+ * @summary Callback
5359
+ * @param {*} [options] Override http request option.
5360
+ * @throws {RequiredError}
5361
+ * @memberof StaffAuthApi
5362
+ */
5363
+ staffAuthControllerCallback(options) {
5364
+ return StaffAuthApiFp(this.configuration)
5365
+ .staffAuthControllerCallback(options)
5366
+ .then((request) => request(this.axios, this.basePath));
5367
+ }
5368
+ /**
5369
+ * <br> OperationId: `StaffAuthControllerLogin`
5370
+ * @summary Login
5371
+ * @param {*} [options] Override http request option.
5372
+ * @throws {RequiredError}
5373
+ * @memberof StaffAuthApi
5374
+ */
5375
+ staffAuthControllerLogin(options) {
5376
+ return StaffAuthApiFp(this.configuration)
5377
+ .staffAuthControllerLogin(options)
5378
+ .then((request) => request(this.axios, this.basePath));
5379
+ }
5380
+ /**
5381
+ * <br> OperationId: `StaffAuthControllerLogout`
5382
+ * @summary Logout
5383
+ * @param {*} [options] Override http request option.
5384
+ * @throws {RequiredError}
5385
+ * @memberof StaffAuthApi
5386
+ */
5387
+ staffAuthControllerLogout(options) {
5388
+ return StaffAuthApiFp(this.configuration)
5389
+ .staffAuthControllerLogout(options)
5390
+ .then((request) => request(this.axios, this.basePath));
5391
+ }
5392
+ }
5393
+ /**
5394
+ * StaffDomainLimitsApi - axios parameter creator
5395
+ * @export
5396
+ */
5397
+ export const StaffDomainLimitsApiAxiosParamCreator = function (configuration) {
5398
+ return {
3364
5399
  /**
3365
- * <br> OperationId: `MetaGetMetrics`
3366
- * @summary Get metrics
5400
+ * The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
5401
+ * @summary Clear a limit override of a Domain
5402
+ * @param {string} id
5403
+ * @param {string} limitKey
5404
+ * @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
3367
5405
  * @param {*} [options] Override http request option.
3368
5406
  * @throws {RequiredError}
3369
5407
  */
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);
5408
+ staffDomainLimitsControllerClear: async (id, limitKey, domainLimitOverrideClearInputDTO, options = {}) => {
5409
+ // verify required parameter 'id' is not null or undefined
5410
+ assertParamExists('staffDomainLimitsControllerClear', 'id', id);
5411
+ // verify required parameter 'limitKey' is not null or undefined
5412
+ assertParamExists('staffDomainLimitsControllerClear', 'limitKey', limitKey);
5413
+ const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
5414
+ .replace(`{${'id'}}`, encodeURIComponent(String(id)))
5415
+ .replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
5416
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5417
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5418
+ let baseOptions;
5419
+ if (configuration) {
5420
+ baseOptions = configuration.baseOptions;
5421
+ }
5422
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
5423
+ const localVarHeaderParameter = {};
5424
+ const localVarQueryParameter = {};
5425
+ // authentication staffSession required
5426
+ // authentication adminAuth required
5427
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5428
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5429
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5430
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5431
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5432
+ localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideClearInputDTO, localVarRequestOptions, configuration);
5433
+ return {
5434
+ url: toPathString(localVarUrlObj),
5435
+ options: localVarRequestOptions,
5436
+ };
3375
5437
  },
3376
5438
  /**
3377
- * <br> OperationId: `MetaGetOpenApi`
3378
- * @summary Get open api
5439
+ * Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
5440
+ * @summary Effective limits of a Domain
5441
+ * @param {string} id
3379
5442
  * @param {*} [options] Override http request option.
3380
5443
  * @throws {RequiredError}
3381
5444
  */
3382
- async metaGetOpenApi(options) {
3383
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options);
3384
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3385
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[localVarOperationServerIndex]?.url;
3386
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5445
+ staffDomainLimitsControllerGet: async (id, options = {}) => {
5446
+ // verify required parameter 'id' is not null or undefined
5447
+ assertParamExists('staffDomainLimitsControllerGet', 'id', id);
5448
+ const localVarPath = `/staff/domains/{id}/limits`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5449
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5450
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5451
+ let baseOptions;
5452
+ if (configuration) {
5453
+ baseOptions = configuration.baseOptions;
5454
+ }
5455
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5456
+ const localVarHeaderParameter = {};
5457
+ const localVarQueryParameter = {};
5458
+ // authentication staffSession required
5459
+ // authentication adminAuth required
5460
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5461
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5462
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5463
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5464
+ return {
5465
+ url: toPathString(localVarUrlObj),
5466
+ options: localVarRequestOptions,
5467
+ };
3387
5468
  },
3388
5469
  /**
3389
- * <br> OperationId: `MetaGetOpenApiHtml`
3390
- * @summary Get open api html
5470
+ * Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
5471
+ * @summary Limit override history of a Domain
5472
+ * @param {string} id
3391
5473
  * @param {*} [options] Override http request option.
3392
5474
  * @throws {RequiredError}
3393
5475
  */
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);
5476
+ staffDomainLimitsControllerHistory: async (id, options = {}) => {
5477
+ // verify required parameter 'id' is not null or undefined
5478
+ assertParamExists('staffDomainLimitsControllerHistory', 'id', id);
5479
+ const localVarPath = `/staff/domains/{id}/limits/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5480
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5481
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5482
+ let baseOptions;
5483
+ if (configuration) {
5484
+ baseOptions = configuration.baseOptions;
5485
+ }
5486
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5487
+ const localVarHeaderParameter = {};
5488
+ const localVarQueryParameter = {};
5489
+ // authentication staffSession required
5490
+ // authentication adminAuth required
5491
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5492
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5493
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5494
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5495
+ return {
5496
+ url: toPathString(localVarUrlObj),
5497
+ options: localVarRequestOptions,
5498
+ };
3399
5499
  },
3400
5500
  /**
3401
- * <br> OperationId: `MetaGetReadiness`
3402
- * @summary Get readiness
5501
+ * 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`
5502
+ * @summary Override one limit of a Domain
5503
+ * @param {string} id
5504
+ * @param {string} limitKey
5505
+ * @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
3403
5506
  * @param {*} [options] Override http request option.
3404
5507
  * @throws {RequiredError}
3405
5508
  */
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);
5509
+ staffDomainLimitsControllerSet: async (id, limitKey, domainLimitOverrideInputDTO, options = {}) => {
5510
+ // verify required parameter 'id' is not null or undefined
5511
+ assertParamExists('staffDomainLimitsControllerSet', 'id', id);
5512
+ // verify required parameter 'limitKey' is not null or undefined
5513
+ assertParamExists('staffDomainLimitsControllerSet', 'limitKey', limitKey);
5514
+ const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
5515
+ .replace(`{${'id'}}`, encodeURIComponent(String(id)))
5516
+ .replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
5517
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5518
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5519
+ let baseOptions;
5520
+ if (configuration) {
5521
+ baseOptions = configuration.baseOptions;
5522
+ }
5523
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
5524
+ const localVarHeaderParameter = {};
5525
+ const localVarQueryParameter = {};
5526
+ // authentication staffSession required
5527
+ // authentication adminAuth required
5528
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5529
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5530
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5531
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5532
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5533
+ localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideInputDTO, localVarRequestOptions, configuration);
5534
+ return {
5535
+ url: toPathString(localVarUrlObj),
5536
+ options: localVarRequestOptions,
5537
+ };
3411
5538
  },
5539
+ };
5540
+ };
5541
+ /**
5542
+ * StaffDomainLimitsApi - functional programming interface
5543
+ * @export
5544
+ */
5545
+ export const StaffDomainLimitsApiFp = function (configuration) {
5546
+ const localVarAxiosParamCreator = StaffDomainLimitsApiAxiosParamCreator(configuration);
5547
+ return {
3412
5548
  /**
3413
- * <br> OperationId: `MetaGetRoot`
3414
- * @summary Get root
5549
+ * The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
5550
+ * @summary Clear a limit override of a Domain
5551
+ * @param {string} id
5552
+ * @param {string} limitKey
5553
+ * @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
3415
5554
  * @param {*} [options] Override http request option.
3416
5555
  * @throws {RequiredError}
3417
5556
  */
3418
- async metaGetRoot(options) {
3419
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetRoot(options);
5557
+ async staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
5558
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options);
3420
5559
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3421
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetRoot']?.[localVarOperationServerIndex]?.url;
5560
+ const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerClear']?.[localVarOperationServerIndex]
5561
+ ?.url;
3422
5562
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3423
5563
  },
3424
- };
3425
- };
3426
- /**
3427
- * MetaApi - factory interface
3428
- * @export
3429
- */
3430
- export const MetaApiFactory = function (configuration, basePath, axios) {
3431
- const localVarFp = MetaApiFp(configuration);
3432
- return {
3433
5564
  /**
3434
- * <br> OperationId: `MetaGetHealth`
3435
- * @summary Get health
5565
+ * Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
5566
+ * @summary Effective limits of a Domain
5567
+ * @param {string} id
3436
5568
  * @param {*} [options] Override http request option.
3437
5569
  * @throws {RequiredError}
3438
5570
  */
3439
- metaGetHealth(options) {
3440
- return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath));
5571
+ async staffDomainLimitsControllerGet(id, options) {
5572
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerGet(id, options);
5573
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5574
+ const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerGet']?.[localVarOperationServerIndex]?.url;
5575
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3441
5576
  },
3442
5577
  /**
3443
- * <br> OperationId: `MetaGetLiveness`
3444
- * @summary Get liveness
5578
+ * Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
5579
+ * @summary Limit override history of a Domain
5580
+ * @param {string} id
3445
5581
  * @param {*} [options] Override http request option.
3446
5582
  * @throws {RequiredError}
3447
5583
  */
3448
- metaGetLiveness(options) {
3449
- return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
5584
+ async staffDomainLimitsControllerHistory(id, options) {
5585
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerHistory(id, options);
5586
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5587
+ const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerHistory']?.[localVarOperationServerIndex]
5588
+ ?.url;
5589
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3450
5590
  },
3451
5591
  /**
3452
- * <br> OperationId: `MetaGetMetrics`
3453
- * @summary Get metrics
5592
+ * 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`
5593
+ * @summary Override one limit of a Domain
5594
+ * @param {string} id
5595
+ * @param {string} limitKey
5596
+ * @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
3454
5597
  * @param {*} [options] Override http request option.
3455
5598
  * @throws {RequiredError}
3456
5599
  */
3457
- metaGetMetrics(options) {
3458
- return localVarFp.metaGetMetrics(options).then((request) => request(axios, basePath));
5600
+ async staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
5601
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options);
5602
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5603
+ const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerSet']?.[localVarOperationServerIndex]?.url;
5604
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3459
5605
  },
5606
+ };
5607
+ };
5608
+ /**
5609
+ * StaffDomainLimitsApi - factory interface
5610
+ * @export
5611
+ */
5612
+ export const StaffDomainLimitsApiFactory = function (configuration, basePath, axios) {
5613
+ const localVarFp = StaffDomainLimitsApiFp(configuration);
5614
+ return {
3460
5615
  /**
3461
- * <br> OperationId: `MetaGetOpenApi`
3462
- * @summary Get open api
5616
+ * The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
5617
+ * @summary Clear a limit override of a Domain
5618
+ * @param {string} id
5619
+ * @param {string} limitKey
5620
+ * @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
3463
5621
  * @param {*} [options] Override http request option.
3464
5622
  * @throws {RequiredError}
3465
5623
  */
3466
- metaGetOpenApi(options) {
3467
- return localVarFp.metaGetOpenApi(options).then((request) => request(axios, basePath));
5624
+ staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
5625
+ return localVarFp
5626
+ .staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
5627
+ .then((request) => request(axios, basePath));
3468
5628
  },
3469
5629
  /**
3470
- * <br> OperationId: `MetaGetOpenApiHtml`
3471
- * @summary Get open api html
5630
+ * Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
5631
+ * @summary Effective limits of a Domain
5632
+ * @param {string} id
3472
5633
  * @param {*} [options] Override http request option.
3473
5634
  * @throws {RequiredError}
3474
5635
  */
3475
- metaGetOpenApiHtml(options) {
3476
- return localVarFp.metaGetOpenApiHtml(options).then((request) => request(axios, basePath));
5636
+ staffDomainLimitsControllerGet(id, options) {
5637
+ return localVarFp.staffDomainLimitsControllerGet(id, options).then((request) => request(axios, basePath));
3477
5638
  },
3478
5639
  /**
3479
- * <br> OperationId: `MetaGetReadiness`
3480
- * @summary Get readiness
5640
+ * Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
5641
+ * @summary Limit override history of a Domain
5642
+ * @param {string} id
3481
5643
  * @param {*} [options] Override http request option.
3482
5644
  * @throws {RequiredError}
3483
5645
  */
3484
- metaGetReadiness(options) {
3485
- return localVarFp.metaGetReadiness(options).then((request) => request(axios, basePath));
5646
+ staffDomainLimitsControllerHistory(id, options) {
5647
+ return localVarFp.staffDomainLimitsControllerHistory(id, options).then((request) => request(axios, basePath));
3486
5648
  },
3487
5649
  /**
3488
- * <br> OperationId: `MetaGetRoot`
3489
- * @summary Get root
5650
+ * 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`
5651
+ * @summary Override one limit of a Domain
5652
+ * @param {string} id
5653
+ * @param {string} limitKey
5654
+ * @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
3490
5655
  * @param {*} [options] Override http request option.
3491
5656
  * @throws {RequiredError}
3492
5657
  */
3493
- metaGetRoot(options) {
3494
- return localVarFp.metaGetRoot(options).then((request) => request(axios, basePath));
5658
+ staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
5659
+ return localVarFp
5660
+ .staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
5661
+ .then((request) => request(axios, basePath));
3495
5662
  },
3496
5663
  };
3497
5664
  };
3498
5665
  /**
3499
- * MetaApi - object-oriented interface
5666
+ * StaffDomainLimitsApi - object-oriented interface
3500
5667
  * @export
3501
- * @class MetaApi
5668
+ * @class StaffDomainLimitsApi
3502
5669
  * @extends {BaseAPI}
3503
5670
  */
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
- }
5671
+ export class StaffDomainLimitsApi extends BaseAPI {
3541
5672
  /**
3542
- * <br> OperationId: `MetaGetOpenApi`
3543
- * @summary Get open api
5673
+ * The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
5674
+ * @summary Clear a limit override of a Domain
5675
+ * @param {string} id
5676
+ * @param {string} limitKey
5677
+ * @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
3544
5678
  * @param {*} [options] Override http request option.
3545
5679
  * @throws {RequiredError}
3546
- * @memberof MetaApi
5680
+ * @memberof StaffDomainLimitsApi
3547
5681
  */
3548
- metaGetOpenApi(options) {
3549
- return MetaApiFp(this.configuration)
3550
- .metaGetOpenApi(options)
5682
+ staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
5683
+ return StaffDomainLimitsApiFp(this.configuration)
5684
+ .staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
3551
5685
  .then((request) => request(this.axios, this.basePath));
3552
5686
  }
3553
5687
  /**
3554
- * <br> OperationId: `MetaGetOpenApiHtml`
3555
- * @summary Get open api html
5688
+ * Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
5689
+ * @summary Effective limits of a Domain
5690
+ * @param {string} id
3556
5691
  * @param {*} [options] Override http request option.
3557
5692
  * @throws {RequiredError}
3558
- * @memberof MetaApi
5693
+ * @memberof StaffDomainLimitsApi
3559
5694
  */
3560
- metaGetOpenApiHtml(options) {
3561
- return MetaApiFp(this.configuration)
3562
- .metaGetOpenApiHtml(options)
5695
+ staffDomainLimitsControllerGet(id, options) {
5696
+ return StaffDomainLimitsApiFp(this.configuration)
5697
+ .staffDomainLimitsControllerGet(id, options)
3563
5698
  .then((request) => request(this.axios, this.basePath));
3564
5699
  }
3565
5700
  /**
3566
- * <br> OperationId: `MetaGetReadiness`
3567
- * @summary Get readiness
5701
+ * Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
5702
+ * @summary Limit override history of a Domain
5703
+ * @param {string} id
3568
5704
  * @param {*} [options] Override http request option.
3569
5705
  * @throws {RequiredError}
3570
- * @memberof MetaApi
5706
+ * @memberof StaffDomainLimitsApi
3571
5707
  */
3572
- metaGetReadiness(options) {
3573
- return MetaApiFp(this.configuration)
3574
- .metaGetReadiness(options)
5708
+ staffDomainLimitsControllerHistory(id, options) {
5709
+ return StaffDomainLimitsApiFp(this.configuration)
5710
+ .staffDomainLimitsControllerHistory(id, options)
3575
5711
  .then((request) => request(this.axios, this.basePath));
3576
5712
  }
3577
5713
  /**
3578
- * <br> OperationId: `MetaGetRoot`
3579
- * @summary Get root
5714
+ * 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`
5715
+ * @summary Override one limit of a Domain
5716
+ * @param {string} id
5717
+ * @param {string} limitKey
5718
+ * @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
3580
5719
  * @param {*} [options] Override http request option.
3581
5720
  * @throws {RequiredError}
3582
- * @memberof MetaApi
5721
+ * @memberof StaffDomainLimitsApi
3583
5722
  */
3584
- metaGetRoot(options) {
3585
- return MetaApiFp(this.configuration)
3586
- .metaGetRoot(options)
5723
+ staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
5724
+ return StaffDomainLimitsApiFp(this.configuration)
5725
+ .staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
3587
5726
  .then((request) => request(this.axios, this.basePath));
3588
5727
  }
3589
5728
  }
3590
5729
  /**
3591
- * PlatformStatsApi - axios parameter creator
5730
+ * StaffMeApi - axios parameter creator
3592
5731
  * @export
3593
5732
  */
3594
- export const PlatformStatsApiAxiosParamCreator = function (configuration) {
5733
+ export const StaffMeApiAxiosParamCreator = function (configuration) {
3595
5734
  return {
3596
5735
  /**
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]
5736
+ * 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`
5737
+ * @summary Who this Staff session belongs to
3600
5738
  * @param {*} [options] Override http request option.
3601
5739
  * @throws {RequiredError}
3602
5740
  */
3603
- platformStatsControllerDomains: async (weeks, options = {}) => {
3604
- const localVarPath = `/staff/stats/domains`;
5741
+ staffMeControllerMe: async (options = {}) => {
5742
+ const localVarPath = `/staff/me`;
3605
5743
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3606
5744
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3607
5745
  let baseOptions;
@@ -3614,9 +5752,6 @@ export const PlatformStatsApiAxiosParamCreator = function (configuration) {
3614
5752
  // authentication staffSession required
3615
5753
  // authentication adminAuth required
3616
5754
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3617
- if (weeks !== undefined) {
3618
- localVarQueryParameter['weeks'] = weeks;
3619
- }
3620
5755
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3621
5756
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3622
5757
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3628,81 +5763,146 @@ export const PlatformStatsApiAxiosParamCreator = function (configuration) {
3628
5763
  };
3629
5764
  };
3630
5765
  /**
3631
- * PlatformStatsApi - functional programming interface
5766
+ * StaffMeApi - functional programming interface
3632
5767
  * @export
3633
5768
  */
3634
- export const PlatformStatsApiFp = function (configuration) {
3635
- const localVarAxiosParamCreator = PlatformStatsApiAxiosParamCreator(configuration);
5769
+ export const StaffMeApiFp = function (configuration) {
5770
+ const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
3636
5771
  return {
3637
5772
  /**
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]
5773
+ * 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`
5774
+ * @summary Who this Staff session belongs to
3641
5775
  * @param {*} [options] Override http request option.
3642
5776
  * @throws {RequiredError}
3643
5777
  */
3644
- async platformStatsControllerDomains(weeks, options) {
3645
- const localVarAxiosArgs = await localVarAxiosParamCreator.platformStatsControllerDomains(weeks, options);
5778
+ async staffMeControllerMe(options) {
5779
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
3646
5780
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3647
- const localVarOperationServerBasePath = operationServerMap['PlatformStatsApi.platformStatsControllerDomains']?.[localVarOperationServerIndex]?.url;
5781
+ const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
3648
5782
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3649
5783
  },
3650
5784
  };
3651
5785
  };
3652
5786
  /**
3653
- * PlatformStatsApi - factory interface
5787
+ * StaffMeApi - factory interface
3654
5788
  * @export
3655
5789
  */
3656
- export const PlatformStatsApiFactory = function (configuration, basePath, axios) {
3657
- const localVarFp = PlatformStatsApiFp(configuration);
5790
+ export const StaffMeApiFactory = function (configuration, basePath, axios) {
5791
+ const localVarFp = StaffMeApiFp(configuration);
3658
5792
  return {
3659
5793
  /**
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]
5794
+ * 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`
5795
+ * @summary Who this Staff session belongs to
3663
5796
  * @param {*} [options] Override http request option.
3664
5797
  * @throws {RequiredError}
3665
5798
  */
3666
- platformStatsControllerDomains(weeks, options) {
3667
- return localVarFp.platformStatsControllerDomains(weeks, options).then((request) => request(axios, basePath));
5799
+ staffMeControllerMe(options) {
5800
+ return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
3668
5801
  },
3669
5802
  };
3670
5803
  };
3671
5804
  /**
3672
- * PlatformStatsApi - object-oriented interface
5805
+ * StaffMeApi - object-oriented interface
3673
5806
  * @export
3674
- * @class PlatformStatsApi
5807
+ * @class StaffMeApi
3675
5808
  * @extends {BaseAPI}
3676
5809
  */
3677
- export class PlatformStatsApi extends BaseAPI {
5810
+ export class StaffMeApi extends BaseAPI {
3678
5811
  /**
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]
5812
+ * 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`
5813
+ * @summary Who this Staff session belongs to
3682
5814
  * @param {*} [options] Override http request option.
3683
5815
  * @throws {RequiredError}
3684
- * @memberof PlatformStatsApi
5816
+ * @memberof StaffMeApi
3685
5817
  */
3686
- platformStatsControllerDomains(weeks, options) {
3687
- return PlatformStatsApiFp(this.configuration)
3688
- .platformStatsControllerDomains(weeks, options)
5818
+ staffMeControllerMe(options) {
5819
+ return StaffMeApiFp(this.configuration)
5820
+ .staffMeControllerMe(options)
3689
5821
  .then((request) => request(this.axios, this.basePath));
3690
5822
  }
3691
5823
  }
3692
5824
  /**
3693
- * StaffAuthApi - axios parameter creator
5825
+ * StaffPlanApi - axios parameter creator
3694
5826
  * @export
3695
5827
  */
3696
- export const StaffAuthApiAxiosParamCreator = function (configuration) {
5828
+ export const StaffPlanApiAxiosParamCreator = function (configuration) {
3697
5829
  return {
3698
5830
  /**
3699
- * <br> OperationId: `StaffAuthControllerCallback`
3700
- * @summary Callback
5831
+ * 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`
5832
+ * @summary Archive a Plan
5833
+ * @param {string} id
5834
+ * @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
3701
5835
  * @param {*} [options] Override http request option.
3702
5836
  * @throws {RequiredError}
3703
5837
  */
3704
- staffAuthControllerCallback: async (options = {}) => {
3705
- const localVarPath = `/auth/callback`;
5838
+ staffPlanControllerArchive: async (id, planArchiveInputDTO, options = {}) => {
5839
+ // verify required parameter 'id' is not null or undefined
5840
+ assertParamExists('staffPlanControllerArchive', 'id', id);
5841
+ const localVarPath = `/staff/plans/{id}/archive`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5842
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5843
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5844
+ let baseOptions;
5845
+ if (configuration) {
5846
+ baseOptions = configuration.baseOptions;
5847
+ }
5848
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
5849
+ const localVarHeaderParameter = {};
5850
+ const localVarQueryParameter = {};
5851
+ // authentication staffSession required
5852
+ // authentication adminAuth required
5853
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5854
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5855
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5856
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5857
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5858
+ localVarRequestOptions.data = serializeDataIfNeeded(planArchiveInputDTO, localVarRequestOptions, configuration);
5859
+ return {
5860
+ url: toPathString(localVarUrlObj),
5861
+ options: localVarRequestOptions,
5862
+ };
5863
+ },
5864
+ /**
5865
+ * Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
5866
+ * @summary Create a Plan
5867
+ * @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
5868
+ * @param {*} [options] Override http request option.
5869
+ * @throws {RequiredError}
5870
+ */
5871
+ staffPlanControllerCreate: async (planCreateInputDTO, options = {}) => {
5872
+ const localVarPath = `/staff/plans`;
5873
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5874
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5875
+ let baseOptions;
5876
+ if (configuration) {
5877
+ baseOptions = configuration.baseOptions;
5878
+ }
5879
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
5880
+ const localVarHeaderParameter = {};
5881
+ const localVarQueryParameter = {};
5882
+ // authentication staffSession required
5883
+ // authentication adminAuth required
5884
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5885
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5886
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5887
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5888
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5889
+ localVarRequestOptions.data = serializeDataIfNeeded(planCreateInputDTO, localVarRequestOptions, configuration);
5890
+ return {
5891
+ url: toPathString(localVarUrlObj),
5892
+ options: localVarRequestOptions,
5893
+ };
5894
+ },
5895
+ /**
5896
+ * Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
5897
+ * @summary Change history of a Plan
5898
+ * @param {string} id
5899
+ * @param {*} [options] Override http request option.
5900
+ * @throws {RequiredError}
5901
+ */
5902
+ staffPlanControllerHistory: async (id, options = {}) => {
5903
+ // verify required parameter 'id' is not null or undefined
5904
+ assertParamExists('staffPlanControllerHistory', 'id', id);
5905
+ const localVarPath = `/staff/plans/{id}/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3706
5906
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3707
5907
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3708
5908
  let baseOptions;
@@ -3712,6 +5912,9 @@ export const StaffAuthApiAxiosParamCreator = function (configuration) {
3712
5912
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3713
5913
  const localVarHeaderParameter = {};
3714
5914
  const localVarQueryParameter = {};
5915
+ // authentication staffSession required
5916
+ // authentication adminAuth required
5917
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3715
5918
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3716
5919
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3717
5920
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3721,13 +5924,106 @@ export const StaffAuthApiAxiosParamCreator = function (configuration) {
3721
5924
  };
3722
5925
  },
3723
5926
  /**
3724
- * <br> OperationId: `StaffAuthControllerLogin`
3725
- * @summary Login
5927
+ * 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`
5928
+ * @summary Import Plans from the billing provider
5929
+ * @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
3726
5930
  * @param {*} [options] Override http request option.
3727
5931
  * @throws {RequiredError}
3728
5932
  */
3729
- staffAuthControllerLogin: async (options = {}) => {
3730
- const localVarPath = `/auth/login`;
5933
+ staffPlanControllerImport: async (planImportInputDTO, options = {}) => {
5934
+ const localVarPath = `/staff/plans/import`;
5935
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5936
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5937
+ let baseOptions;
5938
+ if (configuration) {
5939
+ baseOptions = configuration.baseOptions;
5940
+ }
5941
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
5942
+ const localVarHeaderParameter = {};
5943
+ const localVarQueryParameter = {};
5944
+ // authentication staffSession required
5945
+ // authentication adminAuth required
5946
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5947
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5948
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5949
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5950
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5951
+ localVarRequestOptions.data = serializeDataIfNeeded(planImportInputDTO, localVarRequestOptions, configuration);
5952
+ return {
5953
+ url: toPathString(localVarUrlObj),
5954
+ options: localVarRequestOptions,
5955
+ };
5956
+ },
5957
+ /**
5958
+ * True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
5959
+ * @summary Whether the billing-provider import ran
5960
+ * @param {*} [options] Override http request option.
5961
+ * @throws {RequiredError}
5962
+ */
5963
+ staffPlanControllerImportStatus: async (options = {}) => {
5964
+ const localVarPath = `/staff/plans/import`;
5965
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5966
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5967
+ let baseOptions;
5968
+ if (configuration) {
5969
+ baseOptions = configuration.baseOptions;
5970
+ }
5971
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5972
+ const localVarHeaderParameter = {};
5973
+ const localVarQueryParameter = {};
5974
+ // authentication staffSession required
5975
+ // authentication adminAuth required
5976
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5977
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5978
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5979
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5980
+ return {
5981
+ url: toPathString(localVarUrlObj),
5982
+ options: localVarRequestOptions,
5983
+ };
5984
+ },
5985
+ /**
5986
+ * 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`
5987
+ * @summary List Plans
5988
+ * @param {any} [includeArchived]
5989
+ * @param {*} [options] Override http request option.
5990
+ * @throws {RequiredError}
5991
+ */
5992
+ staffPlanControllerList: async (includeArchived, options = {}) => {
5993
+ const localVarPath = `/staff/plans`;
5994
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5995
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5996
+ let baseOptions;
5997
+ if (configuration) {
5998
+ baseOptions = configuration.baseOptions;
5999
+ }
6000
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6001
+ const localVarHeaderParameter = {};
6002
+ const localVarQueryParameter = {};
6003
+ // authentication staffSession required
6004
+ // authentication adminAuth required
6005
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6006
+ if (includeArchived !== undefined) {
6007
+ for (const [key, value] of Object.entries(includeArchived)) {
6008
+ localVarQueryParameter[key] = value;
6009
+ }
6010
+ }
6011
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6012
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6013
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6014
+ return {
6015
+ url: toPathString(localVarUrlObj),
6016
+ options: localVarRequestOptions,
6017
+ };
6018
+ },
6019
+ /**
6020
+ * 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`
6021
+ * @summary The billing provider’s products
6022
+ * @param {*} [options] Override http request option.
6023
+ * @throws {RequiredError}
6024
+ */
6025
+ staffPlanControllerListStripeProducts: async (options = {}) => {
6026
+ const localVarPath = `/staff/stripe-products`;
3731
6027
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3732
6028
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3733
6029
  let baseOptions;
@@ -3737,34 +6033,80 @@ export const StaffAuthApiAxiosParamCreator = function (configuration) {
3737
6033
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3738
6034
  const localVarHeaderParameter = {};
3739
6035
  const localVarQueryParameter = {};
6036
+ // authentication staffSession required
6037
+ // authentication adminAuth required
6038
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6039
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6040
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6041
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6042
+ return {
6043
+ url: toPathString(localVarUrlObj),
6044
+ options: localVarRequestOptions,
6045
+ };
6046
+ },
6047
+ /**
6048
+ * 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`
6049
+ * @summary Preview a Plan edit
6050
+ * @param {string} id
6051
+ * @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
6052
+ * @param {*} [options] Override http request option.
6053
+ * @throws {RequiredError}
6054
+ */
6055
+ staffPlanControllerPreview: async (id, planPreviewInputDTO, options = {}) => {
6056
+ // verify required parameter 'id' is not null or undefined
6057
+ assertParamExists('staffPlanControllerPreview', 'id', id);
6058
+ const localVarPath = `/staff/plans/{id}/preview`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6059
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6060
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6061
+ let baseOptions;
6062
+ if (configuration) {
6063
+ baseOptions = configuration.baseOptions;
6064
+ }
6065
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6066
+ const localVarHeaderParameter = {};
6067
+ const localVarQueryParameter = {};
6068
+ // authentication staffSession required
6069
+ // authentication adminAuth required
6070
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6071
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3740
6072
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3741
6073
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3742
6074
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6075
+ localVarRequestOptions.data = serializeDataIfNeeded(planPreviewInputDTO, localVarRequestOptions, configuration);
3743
6076
  return {
3744
6077
  url: toPathString(localVarUrlObj),
3745
6078
  options: localVarRequestOptions,
3746
6079
  };
3747
6080
  },
3748
6081
  /**
3749
- * <br> OperationId: `StaffAuthControllerLogout`
3750
- * @summary Logout
6082
+ * 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`
6083
+ * @summary Update a Plan
6084
+ * @param {string} id
6085
+ * @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
3751
6086
  * @param {*} [options] Override http request option.
3752
6087
  * @throws {RequiredError}
3753
6088
  */
3754
- staffAuthControllerLogout: async (options = {}) => {
3755
- const localVarPath = `/auth/logout`;
6089
+ staffPlanControllerUpdate: async (id, planUpdateInputDTO, options = {}) => {
6090
+ // verify required parameter 'id' is not null or undefined
6091
+ assertParamExists('staffPlanControllerUpdate', 'id', id);
6092
+ const localVarPath = `/staff/plans/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3756
6093
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3757
6094
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3758
6095
  let baseOptions;
3759
6096
  if (configuration) {
3760
6097
  baseOptions = configuration.baseOptions;
3761
6098
  }
3762
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6099
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3763
6100
  const localVarHeaderParameter = {};
3764
6101
  const localVarQueryParameter = {};
6102
+ // authentication staffSession required
6103
+ // authentication adminAuth required
6104
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6105
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3765
6106
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3766
6107
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3767
6108
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6109
+ localVarRequestOptions.data = serializeDataIfNeeded(planUpdateInputDTO, localVarRequestOptions, configuration);
3768
6110
  return {
3769
6111
  url: toPathString(localVarUrlObj),
3770
6112
  options: localVarRequestOptions,
@@ -3773,144 +6115,447 @@ export const StaffAuthApiAxiosParamCreator = function (configuration) {
3773
6115
  };
3774
6116
  };
3775
6117
  /**
3776
- * StaffAuthApi - functional programming interface
6118
+ * StaffPlanApi - functional programming interface
3777
6119
  * @export
3778
6120
  */
3779
- export const StaffAuthApiFp = function (configuration) {
3780
- const localVarAxiosParamCreator = StaffAuthApiAxiosParamCreator(configuration);
6121
+ export const StaffPlanApiFp = function (configuration) {
6122
+ const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
3781
6123
  return {
3782
6124
  /**
3783
- * <br> OperationId: `StaffAuthControllerCallback`
3784
- * @summary Callback
6125
+ * 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`
6126
+ * @summary Archive a Plan
6127
+ * @param {string} id
6128
+ * @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
3785
6129
  * @param {*} [options] Override http request option.
3786
6130
  * @throws {RequiredError}
3787
6131
  */
3788
- async staffAuthControllerCallback(options) {
3789
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerCallback(options);
6132
+ async staffPlanControllerArchive(id, planArchiveInputDTO, options) {
6133
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerArchive(id, planArchiveInputDTO, options);
3790
6134
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3791
- const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerCallback']?.[localVarOperationServerIndex]?.url;
6135
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerArchive']?.[localVarOperationServerIndex]?.url;
3792
6136
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3793
6137
  },
3794
6138
  /**
3795
- * <br> OperationId: `StaffAuthControllerLogin`
3796
- * @summary Login
6139
+ * Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
6140
+ * @summary Create a Plan
6141
+ * @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
3797
6142
  * @param {*} [options] Override http request option.
3798
6143
  * @throws {RequiredError}
3799
6144
  */
3800
- async staffAuthControllerLogin(options) {
3801
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogin(options);
6145
+ async staffPlanControllerCreate(planCreateInputDTO, options) {
6146
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerCreate(planCreateInputDTO, options);
3802
6147
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3803
- const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogin']?.[localVarOperationServerIndex]?.url;
6148
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerCreate']?.[localVarOperationServerIndex]?.url;
3804
6149
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3805
6150
  },
3806
6151
  /**
3807
- * <br> OperationId: `StaffAuthControllerLogout`
3808
- * @summary Logout
6152
+ * Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
6153
+ * @summary Change history of a Plan
6154
+ * @param {string} id
3809
6155
  * @param {*} [options] Override http request option.
3810
6156
  * @throws {RequiredError}
3811
6157
  */
3812
- async staffAuthControllerLogout(options) {
3813
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogout(options);
6158
+ async staffPlanControllerHistory(id, options) {
6159
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerHistory(id, options);
3814
6160
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3815
- const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogout']?.[localVarOperationServerIndex]?.url;
6161
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerHistory']?.[localVarOperationServerIndex]?.url;
6162
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6163
+ },
6164
+ /**
6165
+ * 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`
6166
+ * @summary Import Plans from the billing provider
6167
+ * @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
6168
+ * @param {*} [options] Override http request option.
6169
+ * @throws {RequiredError}
6170
+ */
6171
+ async staffPlanControllerImport(planImportInputDTO, options) {
6172
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImport(planImportInputDTO, options);
6173
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6174
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImport']?.[localVarOperationServerIndex]?.url;
6175
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6176
+ },
6177
+ /**
6178
+ * True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
6179
+ * @summary Whether the billing-provider import ran
6180
+ * @param {*} [options] Override http request option.
6181
+ * @throws {RequiredError}
6182
+ */
6183
+ async staffPlanControllerImportStatus(options) {
6184
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImportStatus(options);
6185
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6186
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImportStatus']?.[localVarOperationServerIndex]?.url;
6187
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6188
+ },
6189
+ /**
6190
+ * 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`
6191
+ * @summary List Plans
6192
+ * @param {any} [includeArchived]
6193
+ * @param {*} [options] Override http request option.
6194
+ * @throws {RequiredError}
6195
+ */
6196
+ async staffPlanControllerList(includeArchived, options) {
6197
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(includeArchived, options);
6198
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6199
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
6200
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6201
+ },
6202
+ /**
6203
+ * 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`
6204
+ * @summary The billing provider’s products
6205
+ * @param {*} [options] Override http request option.
6206
+ * @throws {RequiredError}
6207
+ */
6208
+ async staffPlanControllerListStripeProducts(options) {
6209
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerListStripeProducts(options);
6210
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6211
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerListStripeProducts']?.[localVarOperationServerIndex]?.url;
6212
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6213
+ },
6214
+ /**
6215
+ * 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`
6216
+ * @summary Preview a Plan edit
6217
+ * @param {string} id
6218
+ * @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
6219
+ * @param {*} [options] Override http request option.
6220
+ * @throws {RequiredError}
6221
+ */
6222
+ async staffPlanControllerPreview(id, planPreviewInputDTO, options) {
6223
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerPreview(id, planPreviewInputDTO, options);
6224
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6225
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerPreview']?.[localVarOperationServerIndex]?.url;
6226
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6227
+ },
6228
+ /**
6229
+ * 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`
6230
+ * @summary Update a Plan
6231
+ * @param {string} id
6232
+ * @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
6233
+ * @param {*} [options] Override http request option.
6234
+ * @throws {RequiredError}
6235
+ */
6236
+ async staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
6237
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerUpdate(id, planUpdateInputDTO, options);
6238
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6239
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerUpdate']?.[localVarOperationServerIndex]?.url;
3816
6240
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3817
6241
  },
3818
6242
  };
3819
6243
  };
3820
6244
  /**
3821
- * StaffAuthApi - factory interface
6245
+ * StaffPlanApi - factory interface
3822
6246
  * @export
3823
6247
  */
3824
- export const StaffAuthApiFactory = function (configuration, basePath, axios) {
3825
- const localVarFp = StaffAuthApiFp(configuration);
6248
+ export const StaffPlanApiFactory = function (configuration, basePath, axios) {
6249
+ const localVarFp = StaffPlanApiFp(configuration);
3826
6250
  return {
3827
6251
  /**
3828
- * <br> OperationId: `StaffAuthControllerCallback`
3829
- * @summary Callback
6252
+ * 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`
6253
+ * @summary Archive a Plan
6254
+ * @param {string} id
6255
+ * @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
3830
6256
  * @param {*} [options] Override http request option.
3831
6257
  * @throws {RequiredError}
3832
6258
  */
3833
- staffAuthControllerCallback(options) {
3834
- return localVarFp.staffAuthControllerCallback(options).then((request) => request(axios, basePath));
6259
+ staffPlanControllerArchive(id, planArchiveInputDTO, options) {
6260
+ return localVarFp
6261
+ .staffPlanControllerArchive(id, planArchiveInputDTO, options)
6262
+ .then((request) => request(axios, basePath));
3835
6263
  },
3836
6264
  /**
3837
- * <br> OperationId: `StaffAuthControllerLogin`
3838
- * @summary Login
6265
+ * Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
6266
+ * @summary Create a Plan
6267
+ * @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
3839
6268
  * @param {*} [options] Override http request option.
3840
6269
  * @throws {RequiredError}
3841
6270
  */
3842
- staffAuthControllerLogin(options) {
3843
- return localVarFp.staffAuthControllerLogin(options).then((request) => request(axios, basePath));
6271
+ staffPlanControllerCreate(planCreateInputDTO, options) {
6272
+ return localVarFp
6273
+ .staffPlanControllerCreate(planCreateInputDTO, options)
6274
+ .then((request) => request(axios, basePath));
3844
6275
  },
3845
6276
  /**
3846
- * <br> OperationId: `StaffAuthControllerLogout`
3847
- * @summary Logout
6277
+ * Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
6278
+ * @summary Change history of a Plan
6279
+ * @param {string} id
3848
6280
  * @param {*} [options] Override http request option.
3849
6281
  * @throws {RequiredError}
3850
6282
  */
3851
- staffAuthControllerLogout(options) {
3852
- return localVarFp.staffAuthControllerLogout(options).then((request) => request(axios, basePath));
6283
+ staffPlanControllerHistory(id, options) {
6284
+ return localVarFp.staffPlanControllerHistory(id, options).then((request) => request(axios, basePath));
6285
+ },
6286
+ /**
6287
+ * 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`
6288
+ * @summary Import Plans from the billing provider
6289
+ * @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
6290
+ * @param {*} [options] Override http request option.
6291
+ * @throws {RequiredError}
6292
+ */
6293
+ staffPlanControllerImport(planImportInputDTO, options) {
6294
+ return localVarFp
6295
+ .staffPlanControllerImport(planImportInputDTO, options)
6296
+ .then((request) => request(axios, basePath));
6297
+ },
6298
+ /**
6299
+ * True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
6300
+ * @summary Whether the billing-provider import ran
6301
+ * @param {*} [options] Override http request option.
6302
+ * @throws {RequiredError}
6303
+ */
6304
+ staffPlanControllerImportStatus(options) {
6305
+ return localVarFp.staffPlanControllerImportStatus(options).then((request) => request(axios, basePath));
6306
+ },
6307
+ /**
6308
+ * 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`
6309
+ * @summary List Plans
6310
+ * @param {any} [includeArchived]
6311
+ * @param {*} [options] Override http request option.
6312
+ * @throws {RequiredError}
6313
+ */
6314
+ staffPlanControllerList(includeArchived, options) {
6315
+ return localVarFp.staffPlanControllerList(includeArchived, options).then((request) => request(axios, basePath));
6316
+ },
6317
+ /**
6318
+ * 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`
6319
+ * @summary The billing provider’s products
6320
+ * @param {*} [options] Override http request option.
6321
+ * @throws {RequiredError}
6322
+ */
6323
+ staffPlanControllerListStripeProducts(options) {
6324
+ return localVarFp.staffPlanControllerListStripeProducts(options).then((request) => request(axios, basePath));
6325
+ },
6326
+ /**
6327
+ * 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`
6328
+ * @summary Preview a Plan edit
6329
+ * @param {string} id
6330
+ * @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
6331
+ * @param {*} [options] Override http request option.
6332
+ * @throws {RequiredError}
6333
+ */
6334
+ staffPlanControllerPreview(id, planPreviewInputDTO, options) {
6335
+ return localVarFp
6336
+ .staffPlanControllerPreview(id, planPreviewInputDTO, options)
6337
+ .then((request) => request(axios, basePath));
6338
+ },
6339
+ /**
6340
+ * 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`
6341
+ * @summary Update a Plan
6342
+ * @param {string} id
6343
+ * @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
6344
+ * @param {*} [options] Override http request option.
6345
+ * @throws {RequiredError}
6346
+ */
6347
+ staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
6348
+ return localVarFp
6349
+ .staffPlanControllerUpdate(id, planUpdateInputDTO, options)
6350
+ .then((request) => request(axios, basePath));
3853
6351
  },
3854
6352
  };
3855
6353
  };
3856
6354
  /**
3857
- * StaffAuthApi - object-oriented interface
6355
+ * StaffPlanApi - object-oriented interface
3858
6356
  * @export
3859
- * @class StaffAuthApi
6357
+ * @class StaffPlanApi
3860
6358
  * @extends {BaseAPI}
3861
6359
  */
3862
- export class StaffAuthApi extends BaseAPI {
6360
+ export class StaffPlanApi extends BaseAPI {
3863
6361
  /**
3864
- * <br> OperationId: `StaffAuthControllerCallback`
3865
- * @summary Callback
6362
+ * 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`
6363
+ * @summary Archive a Plan
6364
+ * @param {string} id
6365
+ * @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
3866
6366
  * @param {*} [options] Override http request option.
3867
6367
  * @throws {RequiredError}
3868
- * @memberof StaffAuthApi
6368
+ * @memberof StaffPlanApi
3869
6369
  */
3870
- staffAuthControllerCallback(options) {
3871
- return StaffAuthApiFp(this.configuration)
3872
- .staffAuthControllerCallback(options)
6370
+ staffPlanControllerArchive(id, planArchiveInputDTO, options) {
6371
+ return StaffPlanApiFp(this.configuration)
6372
+ .staffPlanControllerArchive(id, planArchiveInputDTO, options)
3873
6373
  .then((request) => request(this.axios, this.basePath));
3874
6374
  }
3875
6375
  /**
3876
- * <br> OperationId: `StaffAuthControllerLogin`
3877
- * @summary Login
6376
+ * Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
6377
+ * @summary Create a Plan
6378
+ * @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
3878
6379
  * @param {*} [options] Override http request option.
3879
6380
  * @throws {RequiredError}
3880
- * @memberof StaffAuthApi
6381
+ * @memberof StaffPlanApi
3881
6382
  */
3882
- staffAuthControllerLogin(options) {
3883
- return StaffAuthApiFp(this.configuration)
3884
- .staffAuthControllerLogin(options)
6383
+ staffPlanControllerCreate(planCreateInputDTO, options) {
6384
+ return StaffPlanApiFp(this.configuration)
6385
+ .staffPlanControllerCreate(planCreateInputDTO, options)
3885
6386
  .then((request) => request(this.axios, this.basePath));
3886
6387
  }
3887
6388
  /**
3888
- * <br> OperationId: `StaffAuthControllerLogout`
3889
- * @summary Logout
6389
+ * Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
6390
+ * @summary Change history of a Plan
6391
+ * @param {string} id
3890
6392
  * @param {*} [options] Override http request option.
3891
6393
  * @throws {RequiredError}
3892
- * @memberof StaffAuthApi
6394
+ * @memberof StaffPlanApi
3893
6395
  */
3894
- staffAuthControllerLogout(options) {
3895
- return StaffAuthApiFp(this.configuration)
3896
- .staffAuthControllerLogout(options)
6396
+ staffPlanControllerHistory(id, options) {
6397
+ return StaffPlanApiFp(this.configuration)
6398
+ .staffPlanControllerHistory(id, options)
6399
+ .then((request) => request(this.axios, this.basePath));
6400
+ }
6401
+ /**
6402
+ * 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`
6403
+ * @summary Import Plans from the billing provider
6404
+ * @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
6405
+ * @param {*} [options] Override http request option.
6406
+ * @throws {RequiredError}
6407
+ * @memberof StaffPlanApi
6408
+ */
6409
+ staffPlanControllerImport(planImportInputDTO, options) {
6410
+ return StaffPlanApiFp(this.configuration)
6411
+ .staffPlanControllerImport(planImportInputDTO, options)
6412
+ .then((request) => request(this.axios, this.basePath));
6413
+ }
6414
+ /**
6415
+ * True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
6416
+ * @summary Whether the billing-provider import ran
6417
+ * @param {*} [options] Override http request option.
6418
+ * @throws {RequiredError}
6419
+ * @memberof StaffPlanApi
6420
+ */
6421
+ staffPlanControllerImportStatus(options) {
6422
+ return StaffPlanApiFp(this.configuration)
6423
+ .staffPlanControllerImportStatus(options)
6424
+ .then((request) => request(this.axios, this.basePath));
6425
+ }
6426
+ /**
6427
+ * 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`
6428
+ * @summary List Plans
6429
+ * @param {any} [includeArchived]
6430
+ * @param {*} [options] Override http request option.
6431
+ * @throws {RequiredError}
6432
+ * @memberof StaffPlanApi
6433
+ */
6434
+ staffPlanControllerList(includeArchived, options) {
6435
+ return StaffPlanApiFp(this.configuration)
6436
+ .staffPlanControllerList(includeArchived, options)
6437
+ .then((request) => request(this.axios, this.basePath));
6438
+ }
6439
+ /**
6440
+ * 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`
6441
+ * @summary The billing provider’s products
6442
+ * @param {*} [options] Override http request option.
6443
+ * @throws {RequiredError}
6444
+ * @memberof StaffPlanApi
6445
+ */
6446
+ staffPlanControllerListStripeProducts(options) {
6447
+ return StaffPlanApiFp(this.configuration)
6448
+ .staffPlanControllerListStripeProducts(options)
6449
+ .then((request) => request(this.axios, this.basePath));
6450
+ }
6451
+ /**
6452
+ * 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`
6453
+ * @summary Preview a Plan edit
6454
+ * @param {string} id
6455
+ * @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
6456
+ * @param {*} [options] Override http request option.
6457
+ * @throws {RequiredError}
6458
+ * @memberof StaffPlanApi
6459
+ */
6460
+ staffPlanControllerPreview(id, planPreviewInputDTO, options) {
6461
+ return StaffPlanApiFp(this.configuration)
6462
+ .staffPlanControllerPreview(id, planPreviewInputDTO, options)
6463
+ .then((request) => request(this.axios, this.basePath));
6464
+ }
6465
+ /**
6466
+ * 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`
6467
+ * @summary Update a Plan
6468
+ * @param {string} id
6469
+ * @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
6470
+ * @param {*} [options] Override http request option.
6471
+ * @throws {RequiredError}
6472
+ * @memberof StaffPlanApi
6473
+ */
6474
+ staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
6475
+ return StaffPlanApiFp(this.configuration)
6476
+ .staffPlanControllerUpdate(id, planUpdateInputDTO, options)
3897
6477
  .then((request) => request(this.axios, this.basePath));
3898
6478
  }
3899
6479
  }
3900
6480
  /**
3901
- * StaffMeApi - axios parameter creator
6481
+ * StaffTakaroAiApi - axios parameter creator
3902
6482
  * @export
3903
6483
  */
3904
- export const StaffMeApiAxiosParamCreator = function (configuration) {
6484
+ export const StaffTakaroAiApiAxiosParamCreator = function (configuration) {
3905
6485
  return {
3906
6486
  /**
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
6487
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
6488
+ * @summary Clear the Takaro AI override of a Domain
6489
+ * @param {string} id
6490
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
6491
+ * @param {*} [options] Override http request option.
6492
+ * @throws {RequiredError}
6493
+ */
6494
+ staffTakaroAiControllerClearDomainOverride: async (id, takaroAiOverrideClearInputDTO, options = {}) => {
6495
+ // verify required parameter 'id' is not null or undefined
6496
+ assertParamExists('staffTakaroAiControllerClearDomainOverride', 'id', id);
6497
+ const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6498
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6499
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6500
+ let baseOptions;
6501
+ if (configuration) {
6502
+ baseOptions = configuration.baseOptions;
6503
+ }
6504
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
6505
+ const localVarHeaderParameter = {};
6506
+ const localVarQueryParameter = {};
6507
+ // authentication staffSession required
6508
+ // authentication adminAuth required
6509
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6510
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6511
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6512
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6513
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6514
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiOverrideClearInputDTO, localVarRequestOptions, configuration);
6515
+ return {
6516
+ url: toPathString(localVarUrlObj),
6517
+ options: localVarRequestOptions,
6518
+ };
6519
+ },
6520
+ /**
6521
+ * 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`
6522
+ * @summary Takaro AI allowance, override and spend of a Domain
6523
+ * @param {string} id
6524
+ * @param {*} [options] Override http request option.
6525
+ * @throws {RequiredError}
6526
+ */
6527
+ staffTakaroAiControllerGetDomain: async (id, options = {}) => {
6528
+ // verify required parameter 'id' is not null or undefined
6529
+ assertParamExists('staffTakaroAiControllerGetDomain', 'id', id);
6530
+ const localVarPath = `/staff/takaro-ai/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6531
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6532
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6533
+ let baseOptions;
6534
+ if (configuration) {
6535
+ baseOptions = configuration.baseOptions;
6536
+ }
6537
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6538
+ const localVarHeaderParameter = {};
6539
+ const localVarQueryParameter = {};
6540
+ // authentication staffSession required
6541
+ // authentication adminAuth required
6542
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6543
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6544
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6545
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6546
+ return {
6547
+ url: toPathString(localVarUrlObj),
6548
+ options: localVarRequestOptions,
6549
+ };
6550
+ },
6551
+ /**
6552
+ * 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`
6553
+ * @summary Takaro AI platform spend and global multiplier
3909
6554
  * @param {*} [options] Override http request option.
3910
6555
  * @throws {RequiredError}
3911
6556
  */
3912
- staffMeControllerMe: async (options = {}) => {
3913
- const localVarPath = `/staff/me`;
6557
+ staffTakaroAiControllerGetPlatform: async (options = {}) => {
6558
+ const localVarPath = `/staff/takaro-ai`;
3914
6559
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3915
6560
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3916
6561
  let baseOptions;
@@ -3931,96 +6576,100 @@ export const StaffMeApiAxiosParamCreator = function (configuration) {
3931
6576
  options: localVarRequestOptions,
3932
6577
  };
3933
6578
  },
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
6579
  /**
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
6580
+ * 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`
6581
+ * @summary Set the Takaro AI override of a Domain
6582
+ * @param {string} id
6583
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
3946
6584
  * @param {*} [options] Override http request option.
3947
6585
  * @throws {RequiredError}
3948
6586
  */
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);
6587
+ staffTakaroAiControllerSetDomainOverride: async (id, takaroAiDomainOverrideInputDTO, options = {}) => {
6588
+ // verify required parameter 'id' is not null or undefined
6589
+ assertParamExists('staffTakaroAiControllerSetDomainOverride', 'id', id);
6590
+ const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6591
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6592
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6593
+ let baseOptions;
6594
+ if (configuration) {
6595
+ baseOptions = configuration.baseOptions;
6596
+ }
6597
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
6598
+ const localVarHeaderParameter = {};
6599
+ const localVarQueryParameter = {};
6600
+ // authentication staffSession required
6601
+ // authentication adminAuth required
6602
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6603
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6604
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6605
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6606
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6607
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiDomainOverrideInputDTO, localVarRequestOptions, configuration);
6608
+ return {
6609
+ url: toPathString(localVarUrlObj),
6610
+ options: localVarRequestOptions,
6611
+ };
3954
6612
  },
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
6613
  /**
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
6614
+ * 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`
6615
+ * @summary Set the Takaro AI global multiplier
6616
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
3967
6617
  * @param {*} [options] Override http request option.
3968
6618
  * @throws {RequiredError}
3969
6619
  */
3970
- staffMeControllerMe(options) {
3971
- return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
6620
+ staffTakaroAiControllerSetGlobalMultiplier: async (takaroAiGlobalMultiplierInputDTO, options = {}) => {
6621
+ const localVarPath = `/staff/takaro-ai/global-multiplier`;
6622
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6623
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6624
+ let baseOptions;
6625
+ if (configuration) {
6626
+ baseOptions = configuration.baseOptions;
6627
+ }
6628
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
6629
+ const localVarHeaderParameter = {};
6630
+ const localVarQueryParameter = {};
6631
+ // authentication staffSession required
6632
+ // authentication adminAuth required
6633
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6634
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6635
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6636
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6637
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6638
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiGlobalMultiplierInputDTO, localVarRequestOptions, configuration);
6639
+ return {
6640
+ url: toPathString(localVarUrlObj),
6641
+ options: localVarRequestOptions,
6642
+ };
3972
6643
  },
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
6644
  /**
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
6645
+ * 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`
6646
+ * @summary Set the CSMM Migration cap of a Domain
6647
+ * @param {string} id
6648
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
4004
6649
  * @param {*} [options] Override http request option.
4005
6650
  * @throws {RequiredError}
4006
6651
  */
4007
- staffPlanControllerList: async (options = {}) => {
4008
- const localVarPath = `/staff/plans`;
6652
+ staffTakaroAiControllerSetMigrationCap: async (id, takaroAiMigrationCapInputDTO, options = {}) => {
6653
+ // verify required parameter 'id' is not null or undefined
6654
+ assertParamExists('staffTakaroAiControllerSetMigrationCap', 'id', id);
6655
+ const localVarPath = `/staff/takaro-ai/domain/{id}/migration-cap`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4009
6656
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4010
6657
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4011
6658
  let baseOptions;
4012
6659
  if (configuration) {
4013
6660
  baseOptions = configuration.baseOptions;
4014
6661
  }
4015
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6662
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
4016
6663
  const localVarHeaderParameter = {};
4017
6664
  const localVarQueryParameter = {};
4018
6665
  // authentication staffSession required
4019
6666
  // authentication adminAuth required
4020
6667
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6668
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4021
6669
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4022
6670
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4023
6671
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6672
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiMigrationCapInputDTO, localVarRequestOptions, configuration);
4024
6673
  return {
4025
6674
  url: toPathString(localVarUrlObj),
4026
6675
  options: localVarRequestOptions,
@@ -4029,61 +6678,260 @@ export const StaffPlanApiAxiosParamCreator = function (configuration) {
4029
6678
  };
4030
6679
  };
4031
6680
  /**
4032
- * StaffPlanApi - functional programming interface
6681
+ * StaffTakaroAiApi - functional programming interface
4033
6682
  * @export
4034
6683
  */
4035
- export const StaffPlanApiFp = function (configuration) {
4036
- const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
6684
+ export const StaffTakaroAiApiFp = function (configuration) {
6685
+ const localVarAxiosParamCreator = StaffTakaroAiApiAxiosParamCreator(configuration);
4037
6686
  return {
4038
6687
  /**
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
6688
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
6689
+ * @summary Clear the Takaro AI override of a Domain
6690
+ * @param {string} id
6691
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
4041
6692
  * @param {*} [options] Override http request option.
4042
6693
  * @throws {RequiredError}
4043
6694
  */
4044
- async staffPlanControllerList(options) {
4045
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(options);
6695
+ async staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
6696
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options);
4046
6697
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4047
- const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
6698
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerClearDomainOverride']?.[localVarOperationServerIndex]?.url;
6699
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6700
+ },
6701
+ /**
6702
+ * 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`
6703
+ * @summary Takaro AI allowance, override and spend of a Domain
6704
+ * @param {string} id
6705
+ * @param {*} [options] Override http request option.
6706
+ * @throws {RequiredError}
6707
+ */
6708
+ async staffTakaroAiControllerGetDomain(id, options) {
6709
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetDomain(id, options);
6710
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6711
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetDomain']?.[localVarOperationServerIndex]?.url;
6712
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6713
+ },
6714
+ /**
6715
+ * 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`
6716
+ * @summary Takaro AI platform spend and global multiplier
6717
+ * @param {*} [options] Override http request option.
6718
+ * @throws {RequiredError}
6719
+ */
6720
+ async staffTakaroAiControllerGetPlatform(options) {
6721
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetPlatform(options);
6722
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6723
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetPlatform']?.[localVarOperationServerIndex]?.url;
6724
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6725
+ },
6726
+ /**
6727
+ * 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`
6728
+ * @summary Set the Takaro AI override of a Domain
6729
+ * @param {string} id
6730
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
6731
+ * @param {*} [options] Override http request option.
6732
+ * @throws {RequiredError}
6733
+ */
6734
+ async staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
6735
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options);
6736
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6737
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetDomainOverride']?.[localVarOperationServerIndex]
6738
+ ?.url;
6739
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6740
+ },
6741
+ /**
6742
+ * 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`
6743
+ * @summary Set the Takaro AI global multiplier
6744
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
6745
+ * @param {*} [options] Override http request option.
6746
+ * @throws {RequiredError}
6747
+ */
6748
+ async staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
6749
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options);
6750
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6751
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetGlobalMultiplier']?.[localVarOperationServerIndex]?.url;
6752
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6753
+ },
6754
+ /**
6755
+ * 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`
6756
+ * @summary Set the CSMM Migration cap of a Domain
6757
+ * @param {string} id
6758
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
6759
+ * @param {*} [options] Override http request option.
6760
+ * @throws {RequiredError}
6761
+ */
6762
+ async staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
6763
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options);
6764
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6765
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetMigrationCap']?.[localVarOperationServerIndex]
6766
+ ?.url;
4048
6767
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4049
6768
  },
4050
6769
  };
4051
6770
  };
4052
6771
  /**
4053
- * StaffPlanApi - factory interface
6772
+ * StaffTakaroAiApi - factory interface
4054
6773
  * @export
4055
6774
  */
4056
- export const StaffPlanApiFactory = function (configuration, basePath, axios) {
4057
- const localVarFp = StaffPlanApiFp(configuration);
6775
+ export const StaffTakaroAiApiFactory = function (configuration, basePath, axios) {
6776
+ const localVarFp = StaffTakaroAiApiFp(configuration);
4058
6777
  return {
4059
6778
  /**
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
6779
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
6780
+ * @summary Clear the Takaro AI override of a Domain
6781
+ * @param {string} id
6782
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
6783
+ * @param {*} [options] Override http request option.
6784
+ * @throws {RequiredError}
6785
+ */
6786
+ staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
6787
+ return localVarFp
6788
+ .staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
6789
+ .then((request) => request(axios, basePath));
6790
+ },
6791
+ /**
6792
+ * 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`
6793
+ * @summary Takaro AI allowance, override and spend of a Domain
6794
+ * @param {string} id
6795
+ * @param {*} [options] Override http request option.
6796
+ * @throws {RequiredError}
6797
+ */
6798
+ staffTakaroAiControllerGetDomain(id, options) {
6799
+ return localVarFp.staffTakaroAiControllerGetDomain(id, options).then((request) => request(axios, basePath));
6800
+ },
6801
+ /**
6802
+ * 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`
6803
+ * @summary Takaro AI platform spend and global multiplier
6804
+ * @param {*} [options] Override http request option.
6805
+ * @throws {RequiredError}
6806
+ */
6807
+ staffTakaroAiControllerGetPlatform(options) {
6808
+ return localVarFp.staffTakaroAiControllerGetPlatform(options).then((request) => request(axios, basePath));
6809
+ },
6810
+ /**
6811
+ * 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`
6812
+ * @summary Set the Takaro AI override of a Domain
6813
+ * @param {string} id
6814
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
6815
+ * @param {*} [options] Override http request option.
6816
+ * @throws {RequiredError}
6817
+ */
6818
+ staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
6819
+ return localVarFp
6820
+ .staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
6821
+ .then((request) => request(axios, basePath));
6822
+ },
6823
+ /**
6824
+ * 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`
6825
+ * @summary Set the Takaro AI global multiplier
6826
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
6827
+ * @param {*} [options] Override http request option.
6828
+ * @throws {RequiredError}
6829
+ */
6830
+ staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
6831
+ return localVarFp
6832
+ .staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
6833
+ .then((request) => request(axios, basePath));
6834
+ },
6835
+ /**
6836
+ * 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`
6837
+ * @summary Set the CSMM Migration cap of a Domain
6838
+ * @param {string} id
6839
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
4062
6840
  * @param {*} [options] Override http request option.
4063
6841
  * @throws {RequiredError}
4064
6842
  */
4065
- staffPlanControllerList(options) {
4066
- return localVarFp.staffPlanControllerList(options).then((request) => request(axios, basePath));
6843
+ staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
6844
+ return localVarFp
6845
+ .staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
6846
+ .then((request) => request(axios, basePath));
4067
6847
  },
4068
6848
  };
4069
6849
  };
4070
6850
  /**
4071
- * StaffPlanApi - object-oriented interface
6851
+ * StaffTakaroAiApi - object-oriented interface
4072
6852
  * @export
4073
- * @class StaffPlanApi
6853
+ * @class StaffTakaroAiApi
4074
6854
  * @extends {BaseAPI}
4075
6855
  */
4076
- export class StaffPlanApi extends BaseAPI {
6856
+ export class StaffTakaroAiApi extends BaseAPI {
4077
6857
  /**
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
6858
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
6859
+ * @summary Clear the Takaro AI override of a Domain
6860
+ * @param {string} id
6861
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
4080
6862
  * @param {*} [options] Override http request option.
4081
6863
  * @throws {RequiredError}
4082
- * @memberof StaffPlanApi
6864
+ * @memberof StaffTakaroAiApi
4083
6865
  */
4084
- staffPlanControllerList(options) {
4085
- return StaffPlanApiFp(this.configuration)
4086
- .staffPlanControllerList(options)
6866
+ staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
6867
+ return StaffTakaroAiApiFp(this.configuration)
6868
+ .staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
6869
+ .then((request) => request(this.axios, this.basePath));
6870
+ }
6871
+ /**
6872
+ * 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`
6873
+ * @summary Takaro AI allowance, override and spend of a Domain
6874
+ * @param {string} id
6875
+ * @param {*} [options] Override http request option.
6876
+ * @throws {RequiredError}
6877
+ * @memberof StaffTakaroAiApi
6878
+ */
6879
+ staffTakaroAiControllerGetDomain(id, options) {
6880
+ return StaffTakaroAiApiFp(this.configuration)
6881
+ .staffTakaroAiControllerGetDomain(id, options)
6882
+ .then((request) => request(this.axios, this.basePath));
6883
+ }
6884
+ /**
6885
+ * 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`
6886
+ * @summary Takaro AI platform spend and global multiplier
6887
+ * @param {*} [options] Override http request option.
6888
+ * @throws {RequiredError}
6889
+ * @memberof StaffTakaroAiApi
6890
+ */
6891
+ staffTakaroAiControllerGetPlatform(options) {
6892
+ return StaffTakaroAiApiFp(this.configuration)
6893
+ .staffTakaroAiControllerGetPlatform(options)
6894
+ .then((request) => request(this.axios, this.basePath));
6895
+ }
6896
+ /**
6897
+ * 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`
6898
+ * @summary Set the Takaro AI override of a Domain
6899
+ * @param {string} id
6900
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
6901
+ * @param {*} [options] Override http request option.
6902
+ * @throws {RequiredError}
6903
+ * @memberof StaffTakaroAiApi
6904
+ */
6905
+ staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
6906
+ return StaffTakaroAiApiFp(this.configuration)
6907
+ .staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
6908
+ .then((request) => request(this.axios, this.basePath));
6909
+ }
6910
+ /**
6911
+ * 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`
6912
+ * @summary Set the Takaro AI global multiplier
6913
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
6914
+ * @param {*} [options] Override http request option.
6915
+ * @throws {RequiredError}
6916
+ * @memberof StaffTakaroAiApi
6917
+ */
6918
+ staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
6919
+ return StaffTakaroAiApiFp(this.configuration)
6920
+ .staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
6921
+ .then((request) => request(this.axios, this.basePath));
6922
+ }
6923
+ /**
6924
+ * 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`
6925
+ * @summary Set the CSMM Migration cap of a Domain
6926
+ * @param {string} id
6927
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
6928
+ * @param {*} [options] Override http request option.
6929
+ * @throws {RequiredError}
6930
+ * @memberof StaffTakaroAiApi
6931
+ */
6932
+ staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
6933
+ return StaffTakaroAiApiFp(this.configuration)
6934
+ .staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
4087
6935
  .then((request) => request(this.axios, this.basePath));
4088
6936
  }
4089
6937
  }