@takaro/apiclient 0.0.0-dev.80cea27 → 0.0.0-dev.81135ef

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 -1
  2. package/dist/generated/api.d.ts +24292 -13045
  3. package/dist/generated/api.d.ts.map +1 -1
  4. package/dist/generated/api.js +11631 -6191
  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 +14120 -7071
  14. package/dist/generated-management/api.d.ts.map +1 -1
  15. package/dist/generated-management/api.js +2218 -203
  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 +4 -1
  25. package/dist/lib/adminClient.d.ts.map +1 -1
  26. package/dist/lib/adminClient.js +10 -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 +11 -23
  37. package/dist/lib/client.d.ts.map +1 -1
  38. package/dist/lib/client.js +48 -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 +6 -5
@@ -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,14 +185,18 @@ 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',
174
196
  PlayerDeleted: 'player-deleted',
175
197
  ShopActionExecuted: 'shop-action-executed',
176
198
  PlayerInventoryChanged: 'player-inventory-changed',
199
+ PlayerLevelChanged: 'player-level-changed',
177
200
  EventRateLimited: 'event-rate-limited',
178
201
  PlayerSyncSnapshot: 'player-sync-snapshot',
179
202
  InviteLinkCreated: 'invite-link-created',
@@ -183,12 +206,27 @@ export const EventCreateDTOEventNameEnum = {
183
206
  DomainCreated: 'domain-created',
184
207
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
185
208
  DomainPlanChanged: 'domain-plan-changed',
209
+ ConnectorMigrationStarted: 'connector-migration-started',
210
+ ConnectorMigrationCompleted: 'connector-migration-completed',
211
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
212
+ ConnectorMigrationReverted: 'connector-migration-reverted',
213
+ DiscordGuildEnabled: 'discord-guild-enabled',
214
+ ItemsGiven: 'items-given',
186
215
  PlayerConnected: 'player-connected',
187
216
  PlayerDisconnected: 'player-disconnected',
188
217
  ChatMessage: 'chat-message',
189
218
  PlayerDeath: 'player-death',
190
219
  EntityKilled: 'entity-killed',
191
220
  };
221
+ export const EventInventoryChangedCauseEnum = {
222
+ Pickup: 'pickup',
223
+ Drop: 'drop',
224
+ Craft: 'craft',
225
+ Loot: 'loot',
226
+ Trade: 'trade',
227
+ Death: 'death',
228
+ Other: 'other',
229
+ };
192
230
  export const EventOutputDTOEventNameEnum = {
193
231
  RoleAssigned: 'role-assigned',
194
232
  RoleRemoved: 'role-removed',
@@ -205,6 +243,7 @@ export const EventOutputDTOEventNameEnum = {
205
243
  SettingsSet: 'settings-set',
206
244
  PlayerNewIpDetected: 'player-new-ip-detected',
207
245
  PlayerNewNameDetected: 'player-new-name-detected',
246
+ PlayerIdentityConflict: 'player-identity-conflict',
208
247
  ServerStatusChanged: 'server-status-changed',
209
248
  ModuleCreated: 'module-created',
210
249
  ModuleUpdated: 'module-updated',
@@ -219,14 +258,18 @@ export const EventOutputDTOEventNameEnum = {
219
258
  ShopOrderStatusChanged: 'shop-order-status-changed',
220
259
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
221
260
  PlayerLinked: 'player-linked',
261
+ PlayerUnlinked: 'player-unlinked',
262
+ PlayerMerged: 'player-merged',
222
263
  GameserverCreated: 'gameserver-created',
223
264
  GameserverUpdated: 'gameserver-updated',
265
+ GameserverVersionChanged: 'gameserver-version-changed',
224
266
  GameserverDeleted: 'gameserver-deleted',
225
267
  PlayerBanned: 'player-banned',
226
268
  PlayerUnbanned: 'player-unbanned',
227
269
  PlayerDeleted: 'player-deleted',
228
270
  ShopActionExecuted: 'shop-action-executed',
229
271
  PlayerInventoryChanged: 'player-inventory-changed',
272
+ PlayerLevelChanged: 'player-level-changed',
230
273
  EventRateLimited: 'event-rate-limited',
231
274
  PlayerSyncSnapshot: 'player-sync-snapshot',
232
275
  InviteLinkCreated: 'invite-link-created',
@@ -236,6 +279,12 @@ export const EventOutputDTOEventNameEnum = {
236
279
  DomainCreated: 'domain-created',
237
280
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
238
281
  DomainPlanChanged: 'domain-plan-changed',
282
+ ConnectorMigrationStarted: 'connector-migration-started',
283
+ ConnectorMigrationCompleted: 'connector-migration-completed',
284
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
285
+ ConnectorMigrationReverted: 'connector-migration-reverted',
286
+ DiscordGuildEnabled: 'discord-guild-enabled',
287
+ ItemsGiven: 'items-given',
239
288
  PlayerConnected: 'player-connected',
240
289
  PlayerDisconnected: 'player-disconnected',
241
290
  ChatMessage: 'chat-message',
@@ -249,6 +298,7 @@ export const FixtureHistoryConflictDTOKindEnum = {
249
298
  export const FixtureHistoryDeleteInputDTOStoreEnum = {
250
299
  Analytics: 'analytics',
251
300
  Postgres: 'postgres',
301
+ Tracking: 'tracking',
252
302
  };
253
303
  export const FixtureHistoryEventDTOEventNameEnum = {
254
304
  PlayerConnected: 'player-connected',
@@ -267,18 +317,44 @@ export const FixtureHistoryOrderDTOStatusEnum = {
267
317
  Completed: 'COMPLETED',
268
318
  Canceled: 'CANCELED',
269
319
  };
320
+ export const FixtureHistoryTrackingChangeDTOChangeTypeEnum = {
321
+ Added: 'added',
322
+ Removed: 'removed',
323
+ Changed: 'changed',
324
+ };
325
+ export const FixtureHistoryTrackingChangeDTOCauseEnum = {
326
+ Pickup: 'pickup',
327
+ Drop: 'drop',
328
+ Craft: 'craft',
329
+ Loot: 'loot',
330
+ Trade: 'trade',
331
+ Death: 'death',
332
+ Other: 'other',
333
+ };
270
334
  export const GameServerCreateDTOTypeEnum = {
271
335
  Sevendaystodie: 'SEVENDAYSTODIE',
272
336
  Rust: 'RUST',
273
337
  Generic: 'GENERIC',
274
338
  Mock: 'MOCK',
275
339
  };
340
+ export const GameServerCreateDTONameSourceEnum = {
341
+ Connector: 'connector',
342
+ Operator: 'operator',
343
+ };
344
+ export const GameServerIdentifyInputDTOProtocolVersionEnum = {
345
+ NUMBER_0: 0,
346
+ NUMBER_1: 1,
347
+ };
276
348
  export const GameServerOutputDTOTypeEnum = {
277
349
  Sevendaystodie: 'SEVENDAYSTODIE',
278
350
  Rust: 'RUST',
279
351
  Generic: 'GENERIC',
280
352
  Mock: 'MOCK',
281
353
  };
354
+ export const GameServerOutputDTONameSourceEnum = {
355
+ Connector: 'connector',
356
+ Operator: 'operator',
357
+ };
282
358
  export const GameServerTypesOutputDTOTypeEnum = {
283
359
  Sevendaystodie: 'SEVENDAYSTODIE',
284
360
  Rust: 'RUST',
@@ -291,6 +367,29 @@ export const GameServerUpdateDTOTypeEnum = {
291
367
  Generic: 'GENERIC',
292
368
  Mock: 'MOCK',
293
369
  };
370
+ export const GetJobInputDTOTypeEnum = {
371
+ CsmmImport: 'csmmImport',
372
+ SeedModules: 'seedModules',
373
+ CleanEvents: 'cleanEvents',
374
+ CleanExpiringVariables: 'cleanExpiringVariables',
375
+ EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
376
+ DeleteGameServers: 'deleteGameServers',
377
+ SyncItems: 'syncItems',
378
+ SyncEntities: 'syncEntities',
379
+ SyncBans: 'syncBans',
380
+ SyncLocations: 'syncLocations',
381
+ SyncMapImages: 'syncMapImages',
382
+ SyncMapUploads: 'syncMapUploads',
383
+ SyncGameIcons: 'syncGameIcons',
384
+ SyncSteam: 'syncSteam',
385
+ SyncDiscordRoles: 'syncDiscordRoles',
386
+ EmitRateLimitSummary: 'emitRateLimitSummary',
387
+ CleanRevokedApiKeys: 'cleanRevokedApiKeys',
388
+ CleanExecutionClaims: 'cleanExecutionClaims',
389
+ DeleteClickHouseEvents: 'deleteClickHouseEvents',
390
+ RepointClickHouseEvents: 'repointClickHouseEvents',
391
+ CleanConnectorMigrations: 'cleanConnectorMigrations',
392
+ };
294
393
  export const HookCreateDTOEventTypeEnum = {
295
394
  Log: 'log',
296
395
  PlayerConnected: 'player-connected',
@@ -314,6 +413,7 @@ export const HookCreateDTOEventTypeEnum = {
314
413
  SettingsSet: 'settings-set',
315
414
  PlayerNewIpDetected: 'player-new-ip-detected',
316
415
  PlayerNewNameDetected: 'player-new-name-detected',
416
+ PlayerIdentityConflict: 'player-identity-conflict',
317
417
  ServerStatusChanged: 'server-status-changed',
318
418
  ModuleCreated: 'module-created',
319
419
  ModuleUpdated: 'module-updated',
@@ -328,14 +428,18 @@ export const HookCreateDTOEventTypeEnum = {
328
428
  ShopOrderStatusChanged: 'shop-order-status-changed',
329
429
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
330
430
  PlayerLinked: 'player-linked',
431
+ PlayerUnlinked: 'player-unlinked',
432
+ PlayerMerged: 'player-merged',
331
433
  GameserverCreated: 'gameserver-created',
332
434
  GameserverUpdated: 'gameserver-updated',
435
+ GameserverVersionChanged: 'gameserver-version-changed',
333
436
  GameserverDeleted: 'gameserver-deleted',
334
437
  PlayerBanned: 'player-banned',
335
438
  PlayerUnbanned: 'player-unbanned',
336
439
  PlayerDeleted: 'player-deleted',
337
440
  ShopActionExecuted: 'shop-action-executed',
338
441
  PlayerInventoryChanged: 'player-inventory-changed',
442
+ PlayerLevelChanged: 'player-level-changed',
339
443
  EventRateLimited: 'event-rate-limited',
340
444
  PlayerSyncSnapshot: 'player-sync-snapshot',
341
445
  InviteLinkCreated: 'invite-link-created',
@@ -345,6 +449,12 @@ export const HookCreateDTOEventTypeEnum = {
345
449
  DomainCreated: 'domain-created',
346
450
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
347
451
  DomainPlanChanged: 'domain-plan-changed',
452
+ ConnectorMigrationStarted: 'connector-migration-started',
453
+ ConnectorMigrationCompleted: 'connector-migration-completed',
454
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
455
+ ConnectorMigrationReverted: 'connector-migration-reverted',
456
+ DiscordGuildEnabled: 'discord-guild-enabled',
457
+ ItemsGiven: 'items-given',
348
458
  };
349
459
  export const HookOutputDTOEventTypeEnum = {
350
460
  Log: 'log',
@@ -369,6 +479,7 @@ export const HookOutputDTOEventTypeEnum = {
369
479
  SettingsSet: 'settings-set',
370
480
  PlayerNewIpDetected: 'player-new-ip-detected',
371
481
  PlayerNewNameDetected: 'player-new-name-detected',
482
+ PlayerIdentityConflict: 'player-identity-conflict',
372
483
  ServerStatusChanged: 'server-status-changed',
373
484
  ModuleCreated: 'module-created',
374
485
  ModuleUpdated: 'module-updated',
@@ -383,14 +494,18 @@ export const HookOutputDTOEventTypeEnum = {
383
494
  ShopOrderStatusChanged: 'shop-order-status-changed',
384
495
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
385
496
  PlayerLinked: 'player-linked',
497
+ PlayerUnlinked: 'player-unlinked',
498
+ PlayerMerged: 'player-merged',
386
499
  GameserverCreated: 'gameserver-created',
387
500
  GameserverUpdated: 'gameserver-updated',
501
+ GameserverVersionChanged: 'gameserver-version-changed',
388
502
  GameserverDeleted: 'gameserver-deleted',
389
503
  PlayerBanned: 'player-banned',
390
504
  PlayerUnbanned: 'player-unbanned',
391
505
  PlayerDeleted: 'player-deleted',
392
506
  ShopActionExecuted: 'shop-action-executed',
393
507
  PlayerInventoryChanged: 'player-inventory-changed',
508
+ PlayerLevelChanged: 'player-level-changed',
394
509
  EventRateLimited: 'event-rate-limited',
395
510
  PlayerSyncSnapshot: 'player-sync-snapshot',
396
511
  InviteLinkCreated: 'invite-link-created',
@@ -400,6 +515,12 @@ export const HookOutputDTOEventTypeEnum = {
400
515
  DomainCreated: 'domain-created',
401
516
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
402
517
  DomainPlanChanged: 'domain-plan-changed',
518
+ ConnectorMigrationStarted: 'connector-migration-started',
519
+ ConnectorMigrationCompleted: 'connector-migration-completed',
520
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
521
+ ConnectorMigrationReverted: 'connector-migration-reverted',
522
+ DiscordGuildEnabled: 'discord-guild-enabled',
523
+ ItemsGiven: 'items-given',
403
524
  };
404
525
  export const HookTriggerDTOEventTypeEnum = {
405
526
  Log: 'log',
@@ -424,6 +545,7 @@ export const HookTriggerDTOEventTypeEnum = {
424
545
  SettingsSet: 'settings-set',
425
546
  PlayerNewIpDetected: 'player-new-ip-detected',
426
547
  PlayerNewNameDetected: 'player-new-name-detected',
548
+ PlayerIdentityConflict: 'player-identity-conflict',
427
549
  ServerStatusChanged: 'server-status-changed',
428
550
  ModuleCreated: 'module-created',
429
551
  ModuleUpdated: 'module-updated',
@@ -438,14 +560,18 @@ export const HookTriggerDTOEventTypeEnum = {
438
560
  ShopOrderStatusChanged: 'shop-order-status-changed',
439
561
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
440
562
  PlayerLinked: 'player-linked',
563
+ PlayerUnlinked: 'player-unlinked',
564
+ PlayerMerged: 'player-merged',
441
565
  GameserverCreated: 'gameserver-created',
442
566
  GameserverUpdated: 'gameserver-updated',
567
+ GameserverVersionChanged: 'gameserver-version-changed',
443
568
  GameserverDeleted: 'gameserver-deleted',
444
569
  PlayerBanned: 'player-banned',
445
570
  PlayerUnbanned: 'player-unbanned',
446
571
  PlayerDeleted: 'player-deleted',
447
572
  ShopActionExecuted: 'shop-action-executed',
448
573
  PlayerInventoryChanged: 'player-inventory-changed',
574
+ PlayerLevelChanged: 'player-level-changed',
449
575
  EventRateLimited: 'event-rate-limited',
450
576
  PlayerSyncSnapshot: 'player-sync-snapshot',
451
577
  InviteLinkCreated: 'invite-link-created',
@@ -455,6 +581,12 @@ export const HookTriggerDTOEventTypeEnum = {
455
581
  DomainCreated: 'domain-created',
456
582
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
457
583
  DomainPlanChanged: 'domain-plan-changed',
584
+ ConnectorMigrationStarted: 'connector-migration-started',
585
+ ConnectorMigrationCompleted: 'connector-migration-completed',
586
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
587
+ ConnectorMigrationReverted: 'connector-migration-reverted',
588
+ DiscordGuildEnabled: 'discord-guild-enabled',
589
+ ItemsGiven: 'items-given',
458
590
  };
459
591
  export const HookUpdateDTOEventTypeEnum = {
460
592
  Log: 'log',
@@ -479,6 +611,7 @@ export const HookUpdateDTOEventTypeEnum = {
479
611
  SettingsSet: 'settings-set',
480
612
  PlayerNewIpDetected: 'player-new-ip-detected',
481
613
  PlayerNewNameDetected: 'player-new-name-detected',
614
+ PlayerIdentityConflict: 'player-identity-conflict',
482
615
  ServerStatusChanged: 'server-status-changed',
483
616
  ModuleCreated: 'module-created',
484
617
  ModuleUpdated: 'module-updated',
@@ -493,14 +626,18 @@ export const HookUpdateDTOEventTypeEnum = {
493
626
  ShopOrderStatusChanged: 'shop-order-status-changed',
494
627
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
495
628
  PlayerLinked: 'player-linked',
629
+ PlayerUnlinked: 'player-unlinked',
630
+ PlayerMerged: 'player-merged',
496
631
  GameserverCreated: 'gameserver-created',
497
632
  GameserverUpdated: 'gameserver-updated',
633
+ GameserverVersionChanged: 'gameserver-version-changed',
498
634
  GameserverDeleted: 'gameserver-deleted',
499
635
  PlayerBanned: 'player-banned',
500
636
  PlayerUnbanned: 'player-unbanned',
501
637
  PlayerDeleted: 'player-deleted',
502
638
  ShopActionExecuted: 'shop-action-executed',
503
639
  PlayerInventoryChanged: 'player-inventory-changed',
640
+ PlayerLevelChanged: 'player-level-changed',
504
641
  EventRateLimited: 'event-rate-limited',
505
642
  PlayerSyncSnapshot: 'player-sync-snapshot',
506
643
  InviteLinkCreated: 'invite-link-created',
@@ -510,6 +647,12 @@ export const HookUpdateDTOEventTypeEnum = {
510
647
  DomainCreated: 'domain-created',
511
648
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
512
649
  DomainPlanChanged: 'domain-plan-changed',
650
+ ConnectorMigrationStarted: 'connector-migration-started',
651
+ ConnectorMigrationCompleted: 'connector-migration-completed',
652
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
653
+ ConnectorMigrationReverted: 'connector-migration-reverted',
654
+ DiscordGuildEnabled: 'discord-guild-enabled',
655
+ ItemsGiven: 'items-given',
513
656
  };
514
657
  export const IEntityDTOTypeEnum = {
515
658
  Hostile: 'hostile',
@@ -539,6 +682,7 @@ export const IHookEventTypeEnum = {
539
682
  SettingsSet: 'settings-set',
540
683
  PlayerNewIpDetected: 'player-new-ip-detected',
541
684
  PlayerNewNameDetected: 'player-new-name-detected',
685
+ PlayerIdentityConflict: 'player-identity-conflict',
542
686
  ServerStatusChanged: 'server-status-changed',
543
687
  ModuleCreated: 'module-created',
544
688
  ModuleUpdated: 'module-updated',
@@ -553,14 +697,18 @@ export const IHookEventTypeEnum = {
553
697
  ShopOrderStatusChanged: 'shop-order-status-changed',
554
698
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
555
699
  PlayerLinked: 'player-linked',
700
+ PlayerUnlinked: 'player-unlinked',
701
+ PlayerMerged: 'player-merged',
556
702
  GameserverCreated: 'gameserver-created',
557
703
  GameserverUpdated: 'gameserver-updated',
704
+ GameserverVersionChanged: 'gameserver-version-changed',
558
705
  GameserverDeleted: 'gameserver-deleted',
559
706
  PlayerBanned: 'player-banned',
560
707
  PlayerUnbanned: 'player-unbanned',
561
708
  PlayerDeleted: 'player-deleted',
562
709
  ShopActionExecuted: 'shop-action-executed',
563
710
  PlayerInventoryChanged: 'player-inventory-changed',
711
+ PlayerLevelChanged: 'player-level-changed',
564
712
  EventRateLimited: 'event-rate-limited',
565
713
  PlayerSyncSnapshot: 'player-sync-snapshot',
566
714
  InviteLinkCreated: 'invite-link-created',
@@ -570,11 +718,40 @@ export const IHookEventTypeEnum = {
570
718
  DomainCreated: 'domain-created',
571
719
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
572
720
  DomainPlanChanged: 'domain-plan-changed',
721
+ ConnectorMigrationStarted: 'connector-migration-started',
722
+ ConnectorMigrationCompleted: 'connector-migration-completed',
723
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
724
+ ConnectorMigrationReverted: 'connector-migration-reverted',
725
+ DiscordGuildEnabled: 'discord-guild-enabled',
726
+ ItemsGiven: 'items-given',
573
727
  };
574
728
  export const ITakaroQuerySortDirectionEnum = {
575
729
  Asc: 'asc',
576
730
  Desc: 'desc',
577
731
  };
732
+ export const InventoryChangeCounterpartDTOKindEnum = {
733
+ Container: 'container',
734
+ Player: 'player',
735
+ };
736
+ export const InventoryChangeDTOChangeTypeEnum = {
737
+ Added: 'added',
738
+ Removed: 'removed',
739
+ Changed: 'changed',
740
+ };
741
+ export const InventoryChangeDTOCauseEnum = {
742
+ Pickup: 'pickup',
743
+ Drop: 'drop',
744
+ Craft: 'craft',
745
+ Loot: 'loot',
746
+ Trade: 'trade',
747
+ Death: 'death',
748
+ Other: 'other',
749
+ Unknown: 'unknown',
750
+ };
751
+ export const InventoryCounterpartDTOKindEnum = {
752
+ Container: 'container',
753
+ Player: 'player',
754
+ };
578
755
  export const InviteLinkCreateResultDTOStatusEnum = {
579
756
  Active: 'ACTIVE',
580
757
  Revoked: 'REVOKED',
@@ -617,6 +794,33 @@ export const ManagementDomainOutputDTOCustomDomainStateEnum = {
617
794
  Verified: 'VERIFIED',
618
795
  Failed: 'FAILED',
619
796
  };
797
+ export const MapHorizontalAxisDTOFieldEnum = {
798
+ X: 'x',
799
+ Y: 'y',
800
+ Z: 'z',
801
+ };
802
+ export const MapHorizontalAxisDTODirectionEnum = {
803
+ Right: 'right',
804
+ Left: 'left',
805
+ };
806
+ export const MapPyramidDTOOriginEnum = {
807
+ Game: 'game',
808
+ Upload: 'upload',
809
+ };
810
+ export const MapSourceDTOTypeEnum = {
811
+ None: 'none',
812
+ Tiled: 'tiled',
813
+ Image: 'image',
814
+ };
815
+ export const MapVerticalAxisDTOFieldEnum = {
816
+ X: 'x',
817
+ Y: 'y',
818
+ Z: 'z',
819
+ };
820
+ export const MapVerticalAxisDTODirectionEnum = {
821
+ Up: 'up',
822
+ Down: 'down',
823
+ };
620
824
  export const OrderStatusCountDTOStatusEnum = {
621
825
  Completed: 'COMPLETED',
622
826
  Paid: 'PAID',
@@ -653,12 +857,18 @@ export const PERMISSIONS = {
653
857
  ViewDiscordInfo: 'VIEW_DISCORD_INFO',
654
858
  SendDiscordMessage: 'SEND_DISCORD_MESSAGE',
655
859
  ManageApiKeys: 'MANAGE_API_KEYS',
860
+ ReadMap: 'READ_MAP',
861
+ ReadTracking: 'READ_TRACKING',
656
862
  };
657
- export const PlanPriceDTOIntervalEnum = {
658
- Day: 'day',
659
- Week: 'week',
660
- Month: 'month',
661
- Year: 'year',
863
+ export const PlanChangeOutputDTOActionEnum = {
864
+ Create: 'create',
865
+ Update: 'update',
866
+ Archive: 'archive',
867
+ };
868
+ export const PlanChangeOutputDTOActorKindEnum = {
869
+ StaffSession: 'staffSession',
870
+ AdminSecret: 'adminSecret',
871
+ System: 'system',
662
872
  };
663
873
  export const PlayerOnGameServerSearchInputDTOExtendEnum = {
664
874
  GameServer: 'gameServer',
@@ -682,6 +892,15 @@ export const PlayerSearchInputDTOSortDirectionEnum = {
682
892
  Asc: 'asc',
683
893
  Desc: 'desc',
684
894
  };
895
+ export const PogProgressionOutputDTOSourceEnum = {
896
+ Server: 'server',
897
+ ClientReported: 'client-reported',
898
+ };
899
+ export const PositionAreaShapeDTOTypeEnum = {
900
+ Circle: 'circle',
901
+ Rectangle: 'rectangle',
902
+ Polygon: 'polygon',
903
+ };
685
904
  export const RecentOrderDTOStatusEnum = {
686
905
  Completed: 'COMPLETED',
687
906
  Paid: 'PAID',
@@ -699,6 +918,7 @@ export const SettingsOutputDTOKeyEnum = {
699
918
  DiscordRoleSyncPreferDiscord: 'discordRoleSyncPreferDiscord',
700
919
  UnknownCommandFeedbackEnabled: 'unknownCommandFeedbackEnabled',
701
920
  UnknownCommandFeedbackMessage: 'unknownCommandFeedbackMessage',
921
+ TakaroAiEnabled: 'takaroAiEnabled',
702
922
  };
703
923
  export const SettingsOutputDTOTypeEnum = {
704
924
  Override: 'override',
@@ -809,16 +1029,285 @@ export const StorefrontDomainOutputDTOCustomDomainStateEnum = {
809
1029
  Verified: 'VERIFIED',
810
1030
  Failed: 'FAILED',
811
1031
  };
1032
+ export const StripePriceDTOIntervalEnum = {
1033
+ Day: 'day',
1034
+ Week: 'week',
1035
+ Month: 'month',
1036
+ Year: 'year',
1037
+ };
1038
+ export const TakaroAiDomainOutputDTOOverrideStateEnum = {
1039
+ None: 'none',
1040
+ Active: 'active',
1041
+ Expired: 'expired',
1042
+ };
1043
+ export const TakaroAiDomainOutputDTOStatusEnum = {
1044
+ Available: 'available',
1045
+ Grace: 'grace',
1046
+ DailyLimitReached: 'dailyLimitReached',
1047
+ LimitReached: 'limitReached',
1048
+ Disabled: 'disabled',
1049
+ NoAllowance: 'noAllowance',
1050
+ NeedsGameServer: 'needsGameServer',
1051
+ };
1052
+ export const TakaroAiStaffChangeOutputDTOSubjectEnum = {
1053
+ GlobalMultiplier: 'globalMultiplier',
1054
+ DomainOverride: 'domainOverride',
1055
+ MigrationCap: 'migrationCap',
1056
+ };
1057
+ export const TakaroAiStaffChangeOutputDTOActorKindEnum = {
1058
+ StaffSession: 'staffSession',
1059
+ AdminSecret: 'adminSecret',
1060
+ };
1061
+ export const TakaroAiUsageOutputDTOStatusEnum = {
1062
+ Available: 'available',
1063
+ Grace: 'grace',
1064
+ DailyLimitReached: 'dailyLimitReached',
1065
+ LimitReached: 'limitReached',
1066
+ Disabled: 'disabled',
1067
+ NoAllowance: 'noAllowance',
1068
+ NeedsGameServer: 'needsGameServer',
1069
+ };
1070
+ export const TakaroEventDomainCreatedOriginEnum = {
1071
+ Distributor: 'distributor',
1072
+ Staff: 'staff',
1073
+ Subscription: 'subscription',
1074
+ AdminSecret: 'admin_secret',
1075
+ };
1076
+ export const TakaroEventInventoryCounterpartKindEnum = {
1077
+ Container: 'container',
1078
+ Player: 'player',
1079
+ };
1080
+ export const TakaroEventItemsGivenLineResultEnum = {
1081
+ Delivered: 'DELIVERED',
1082
+ Failed: 'FAILED',
1083
+ Unknown: 'UNKNOWN',
1084
+ };
1085
+ export const TakaroEventPlayerIdentityConflictUnwrittenIdentifiersEnum = {
1086
+ SteamId: 'steamId',
1087
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1088
+ XboxLiveId: 'xboxLiveId',
1089
+ PlatformId: 'platformId',
1090
+ };
1091
+ export const TakaroEventPlayerIdentityConflictMatchMatchedOnEnum = {
1092
+ SteamId: 'steamId',
1093
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1094
+ XboxLiveId: 'xboxLiveId',
1095
+ PlatformId: 'platformId',
1096
+ };
812
1097
  export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
813
1098
  Added: 'added',
814
1099
  Removed: 'removed',
815
1100
  Changed: 'changed',
816
1101
  };
1102
+ export const TakaroEventPlayerInventoryChangedCauseEnum = {
1103
+ Pickup: 'pickup',
1104
+ Drop: 'drop',
1105
+ Craft: 'craft',
1106
+ Loot: 'loot',
1107
+ Trade: 'trade',
1108
+ Death: 'death',
1109
+ Other: 'other',
1110
+ };
1111
+ export const TakaroEventPlayerLevelChangedDirectionEnum = {
1112
+ Up: 'up',
1113
+ Down: 'down',
1114
+ };
1115
+ export const TakaroEventPlayerLevelChangedSourceEnum = {
1116
+ Server: 'server',
1117
+ ClientReported: 'client-reported',
1118
+ };
1119
+ export const TakaroEventPlayerLinkedSourceEnum = {
1120
+ GameCode: 'game-code',
1121
+ WebCode: 'web-code',
1122
+ SteamAuto: 'steam-auto',
1123
+ Admin: 'admin',
1124
+ Unknown: 'unknown',
1125
+ };
1126
+ export const TakaroEventPlayerMergedMovedIdentifiersEnum = {
1127
+ SteamId: 'steamId',
1128
+ EpicOnlineServicesId: 'epicOnlineServicesId',
1129
+ XboxLiveId: 'xboxLiveId',
1130
+ PlatformId: 'platformId',
1131
+ };
1132
+ export const TakaroEventPlayerMergedServerOutcomeEnum = {
1133
+ Moved: 'moved',
1134
+ Combined: 'combined',
1135
+ };
1136
+ export const TakaroEventPlayerMergedServerKeptPogFromEnum = {
1137
+ Survivor: 'survivor',
1138
+ Absorbed: 'absorbed',
1139
+ };
1140
+ export const TakaroEventPlayerUnlinkedReasonEnum = {
1141
+ Self: 'self',
1142
+ Admin: 'admin',
1143
+ Displaced: 'displaced',
1144
+ Merged: 'merged',
1145
+ };
817
1146
  export const TakaroEventRateLimitedScopeEnum = {
818
1147
  Server: 'server',
819
1148
  Domain: 'domain',
820
1149
  Global: 'global',
821
1150
  };
1151
+ export const ThreadApprovalDecisionInputDTOOutcomeEnum = {
1152
+ Approved: 'approved',
1153
+ Denied: 'denied',
1154
+ };
1155
+ export const ThreadContextInputDTOTypeEnum = {
1156
+ Player: 'player',
1157
+ GameServer: 'gameServer',
1158
+ Module: 'module',
1159
+ ModuleVersion: 'moduleVersion',
1160
+ Event: 'event',
1161
+ CsmmImport: 'csmmImport',
1162
+ };
1163
+ export const ThreadCreateInputDTOOriginSurfaceEnum = {
1164
+ CommandPalette: 'commandPalette',
1165
+ PlayerSummary: 'playerSummary',
1166
+ Modules: 'modules',
1167
+ GameServerModules: 'gameServerModules',
1168
+ GameServerOverview: 'gameServerOverview',
1169
+ GameServerConsole: 'gameServerConsole',
1170
+ DashboardBriefing: 'dashboardBriefing',
1171
+ EventsFilter: 'eventsFilter',
1172
+ RoleBuilder: 'roleBuilder',
1173
+ ModuleConfig: 'moduleConfig',
1174
+ GameServerShop: 'gameServerShop',
1175
+ ModuleOverview: 'moduleOverview',
1176
+ ModuleBuilder: 'moduleBuilder',
1177
+ EventFailure: 'eventFailure',
1178
+ CsmmMigration: 'csmmMigration',
1179
+ };
1180
+ export const ThreadOutputDTOStatusEnum = {
1181
+ Idle: 'idle',
1182
+ Working: 'working',
1183
+ Stopping: 'stopping',
1184
+ Failed: 'failed',
1185
+ AwaitingApproval: 'awaitingApproval',
1186
+ AwaitingReply: 'awaitingReply',
1187
+ };
1188
+ export const ThreadOutputDTOOriginSurfaceEnum = {
1189
+ CommandPalette: 'commandPalette',
1190
+ PlayerSummary: 'playerSummary',
1191
+ Modules: 'modules',
1192
+ GameServerModules: 'gameServerModules',
1193
+ GameServerOverview: 'gameServerOverview',
1194
+ GameServerConsole: 'gameServerConsole',
1195
+ DashboardBriefing: 'dashboardBriefing',
1196
+ EventsFilter: 'eventsFilter',
1197
+ RoleBuilder: 'roleBuilder',
1198
+ ModuleConfig: 'moduleConfig',
1199
+ GameServerShop: 'gameServerShop',
1200
+ ModuleOverview: 'moduleOverview',
1201
+ ModuleBuilder: 'moduleBuilder',
1202
+ EventFailure: 'eventFailure',
1203
+ CsmmMigration: 'csmmMigration',
1204
+ };
1205
+ export const ThreadSearchInputAllowedFiltersStatusEnum = {
1206
+ Idle: 'idle',
1207
+ Working: 'working',
1208
+ Stopping: 'stopping',
1209
+ Failed: 'failed',
1210
+ AwaitingApproval: 'awaitingApproval',
1211
+ AwaitingReply: 'awaitingReply',
1212
+ };
1213
+ export const ThreadSearchInputAllowedFiltersOriginSurfaceEnum = {
1214
+ CommandPalette: 'commandPalette',
1215
+ PlayerSummary: 'playerSummary',
1216
+ Modules: 'modules',
1217
+ GameServerModules: 'gameServerModules',
1218
+ GameServerOverview: 'gameServerOverview',
1219
+ GameServerConsole: 'gameServerConsole',
1220
+ DashboardBriefing: 'dashboardBriefing',
1221
+ EventsFilter: 'eventsFilter',
1222
+ RoleBuilder: 'roleBuilder',
1223
+ ModuleConfig: 'moduleConfig',
1224
+ GameServerShop: 'gameServerShop',
1225
+ ModuleOverview: 'moduleOverview',
1226
+ ModuleBuilder: 'moduleBuilder',
1227
+ EventFailure: 'eventFailure',
1228
+ CsmmMigration: 'csmmMigration',
1229
+ };
1230
+ export const ThreadSearchInputDTOSortDirectionEnum = {
1231
+ Asc: 'asc',
1232
+ Desc: 'desc',
1233
+ };
1234
+ export const ThreadStepApprovalDTOOutcomeEnum = {
1235
+ Approved: 'approved',
1236
+ Denied: 'denied',
1237
+ AutoAllowed: 'autoAllowed',
1238
+ Cancelled: 'cancelled',
1239
+ };
1240
+ export const ThreadStepOutputDTOKindEnum = {
1241
+ UserMessage: 'userMessage',
1242
+ ModelMessage: 'modelMessage',
1243
+ ToolCall: 'toolCall',
1244
+ ToolResult: 'toolResult',
1245
+ ApprovalRequest: 'approvalRequest',
1246
+ ApprovalOutcome: 'approvalOutcome',
1247
+ };
1248
+ export const ThreadStepReferenceDTOTypeEnum = {
1249
+ Player: 'player',
1250
+ GameServer: 'gameServer',
1251
+ Module: 'module',
1252
+ ModuleVersion: 'moduleVersion',
1253
+ Event: 'event',
1254
+ CsmmImport: 'csmmImport',
1255
+ };
1256
+ export const ThreadWithStepsOutputDTOStatusEnum = {
1257
+ Idle: 'idle',
1258
+ Working: 'working',
1259
+ Stopping: 'stopping',
1260
+ Failed: 'failed',
1261
+ AwaitingApproval: 'awaitingApproval',
1262
+ AwaitingReply: 'awaitingReply',
1263
+ };
1264
+ export const ThreadWithStepsOutputDTOOriginSurfaceEnum = {
1265
+ CommandPalette: 'commandPalette',
1266
+ PlayerSummary: 'playerSummary',
1267
+ Modules: 'modules',
1268
+ GameServerModules: 'gameServerModules',
1269
+ GameServerOverview: 'gameServerOverview',
1270
+ GameServerConsole: 'gameServerConsole',
1271
+ DashboardBriefing: 'dashboardBriefing',
1272
+ EventsFilter: 'eventsFilter',
1273
+ RoleBuilder: 'roleBuilder',
1274
+ ModuleConfig: 'moduleConfig',
1275
+ GameServerShop: 'gameServerShop',
1276
+ ModuleOverview: 'moduleOverview',
1277
+ ModuleBuilder: 'moduleBuilder',
1278
+ EventFailure: 'eventFailure',
1279
+ CsmmMigration: 'csmmMigration',
1280
+ };
1281
+ export const TriggerJobInputDTOTypeEnum = {
1282
+ SeedModules: 'seedModules',
1283
+ CleanEvents: 'cleanEvents',
1284
+ CleanExpiringVariables: 'cleanExpiringVariables',
1285
+ EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
1286
+ DeleteGameServers: 'deleteGameServers',
1287
+ SyncItems: 'syncItems',
1288
+ SyncEntities: 'syncEntities',
1289
+ SyncBans: 'syncBans',
1290
+ SyncLocations: 'syncLocations',
1291
+ SyncMapImages: 'syncMapImages',
1292
+ SyncMapUploads: 'syncMapUploads',
1293
+ SyncGameIcons: 'syncGameIcons',
1294
+ SyncSteam: 'syncSteam',
1295
+ SyncDiscordRoles: 'syncDiscordRoles',
1296
+ };
1297
+ export const UserOutputDTOPlayerLinkSourceEnum = {
1298
+ GameCode: 'game-code',
1299
+ WebCode: 'web-code',
1300
+ SteamAuto: 'steam-auto',
1301
+ Admin: 'admin',
1302
+ Unknown: 'unknown',
1303
+ };
1304
+ export const UserOutputWithRolesDTOPlayerLinkSourceEnum = {
1305
+ GameCode: 'game-code',
1306
+ WebCode: 'web-code',
1307
+ SteamAuto: 'steam-auto',
1308
+ Admin: 'admin',
1309
+ Unknown: 'unknown',
1310
+ };
822
1311
  export const UserSearchInputDTOExtendEnum = {
823
1312
  Roles: 'roles',
824
1313
  };
@@ -1583,7 +2072,7 @@ export class DistributorApi extends BaseAPI {
1583
2072
  export const DistributorSelfServiceApiAxiosParamCreator = function (configuration) {
1584
2073
  return {
1585
2074
  /**
1586
- * 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`
2075
+ * 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`
1587
2076
  * @summary Create a domain
1588
2077
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
1589
2078
  * @param {*} [options] Override http request option.
@@ -1893,7 +2382,7 @@ export const DistributorSelfServiceApiAxiosParamCreator = function (configuratio
1893
2382
  };
1894
2383
  },
1895
2384
  /**
1896
- * 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`
2385
+ * 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`
1897
2386
  * @summary Change one of my domains’ Plan
1898
2387
  * @param {string} id
1899
2388
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -1936,7 +2425,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
1936
2425
  const localVarAxiosParamCreator = DistributorSelfServiceApiAxiosParamCreator(configuration);
1937
2426
  return {
1938
2427
  /**
1939
- * 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`
2428
+ * 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`
1940
2429
  * @summary Create a domain
1941
2430
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
1942
2431
  * @param {*} [options] Override http request option.
@@ -2066,7 +2555,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
2066
2555
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2067
2556
  },
2068
2557
  /**
2069
- * 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`
2558
+ * 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`
2070
2559
  * @summary Change one of my domains’ Plan
2071
2560
  * @param {string} id
2072
2561
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -2089,7 +2578,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
2089
2578
  const localVarFp = DistributorSelfServiceApiFp(configuration);
2090
2579
  return {
2091
2580
  /**
2092
- * 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`
2581
+ * 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`
2093
2582
  * @summary Create a domain
2094
2583
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
2095
2584
  * @param {*} [options] Override http request option.
@@ -2207,7 +2696,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
2207
2696
  .then((request) => request(axios, basePath));
2208
2697
  },
2209
2698
  /**
2210
- * 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`
2699
+ * 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`
2211
2700
  * @summary Change one of my domains’ Plan
2212
2701
  * @param {string} id
2213
2702
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -2229,7 +2718,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
2229
2718
  */
2230
2719
  export class DistributorSelfServiceApi extends BaseAPI {
2231
2720
  /**
2232
- * 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`
2721
+ * 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`
2233
2722
  * @summary Create a domain
2234
2723
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
2235
2724
  * @param {*} [options] Override http request option.
@@ -2359,7 +2848,7 @@ export class DistributorSelfServiceApi extends BaseAPI {
2359
2848
  .then((request) => request(this.axios, this.basePath));
2360
2849
  }
2361
2850
  /**
2362
- * 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`
2851
+ * 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`
2363
2852
  * @summary Change one of my domains’ Plan
2364
2853
  * @param {string} id
2365
2854
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -2671,21 +3160,58 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2671
3160
  };
2672
3161
  },
2673
3162
  /**
2674
- * 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`
2675
- * @summary Search distributor-backed domains
2676
- * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
3163
+ * 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`
3164
+ * @summary Put a subscription-backed domain on a Plan
3165
+ * @param {string} id
3166
+ * @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
2677
3167
  * @param {*} [options] Override http request option.
2678
3168
  * @throws {RequiredError}
2679
3169
  */
2680
- domainControllerSearchDistributorBacked: async (distributorBackedDomainSearchInputDTO, options = {}) => {
2681
- const localVarPath = `/domain/distributor-backed/search`;
3170
+ domainControllerSetPlan: async (id, domainPlanInputDTO, options = {}) => {
3171
+ // verify required parameter 'id' is not null or undefined
3172
+ assertParamExists('domainControllerSetPlan', 'id', id);
3173
+ const localVarPath = `/domain/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2682
3174
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2683
3175
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2684
3176
  let baseOptions;
2685
3177
  if (configuration) {
2686
3178
  baseOptions = configuration.baseOptions;
2687
3179
  }
2688
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3180
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3181
+ const localVarHeaderParameter = {};
3182
+ const localVarQueryParameter = {};
3183
+ // authentication staffSession required
3184
+ // authentication adminAuth required
3185
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3186
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3187
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3188
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3189
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3190
+ localVarRequestOptions.data = serializeDataIfNeeded(domainPlanInputDTO, localVarRequestOptions, configuration);
3191
+ return {
3192
+ url: toPathString(localVarUrlObj),
3193
+ options: localVarRequestOptions,
3194
+ };
3195
+ },
3196
+ /**
3197
+ * 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`
3198
+ * @summary Put an Unbacked domain on a Plan
3199
+ * @param {string} id
3200
+ * @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
3201
+ * @param {*} [options] Override http request option.
3202
+ * @throws {RequiredError}
3203
+ */
3204
+ domainControllerSetPlanByStaff: async (id, staffDomainPlanInputDTO, options = {}) => {
3205
+ // verify required parameter 'id' is not null or undefined
3206
+ assertParamExists('domainControllerSetPlanByStaff', 'id', id);
3207
+ const localVarPath = `/staff/domains/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3208
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3209
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3210
+ let baseOptions;
3211
+ if (configuration) {
3212
+ baseOptions = configuration.baseOptions;
3213
+ }
3214
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
2689
3215
  const localVarHeaderParameter = {};
2690
3216
  const localVarQueryParameter = {};
2691
3217
  // authentication staffSession required
@@ -2695,7 +3221,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2695
3221
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2696
3222
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2697
3223
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2698
- localVarRequestOptions.data = serializeDataIfNeeded(distributorBackedDomainSearchInputDTO, localVarRequestOptions, configuration);
3224
+ localVarRequestOptions.data = serializeDataIfNeeded(staffDomainPlanInputDTO, localVarRequestOptions, configuration);
2699
3225
  return {
2700
3226
  url: toPathString(localVarUrlObj),
2701
3227
  options: localVarRequestOptions,
@@ -2865,16 +3391,31 @@ export const DomainApiFp = function (configuration) {
2865
3391
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2866
3392
  },
2867
3393
  /**
2868
- * 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`
2869
- * @summary Search distributor-backed domains
2870
- * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
3394
+ * 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`
3395
+ * @summary Put a subscription-backed domain on a Plan
3396
+ * @param {string} id
3397
+ * @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
3398
+ * @param {*} [options] Override http request option.
3399
+ * @throws {RequiredError}
3400
+ */
3401
+ async domainControllerSetPlan(id, domainPlanInputDTO, options) {
3402
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlan(id, domainPlanInputDTO, options);
3403
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3404
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlan']?.[localVarOperationServerIndex]?.url;
3405
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3406
+ },
3407
+ /**
3408
+ * 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`
3409
+ * @summary Put an Unbacked domain on a Plan
3410
+ * @param {string} id
3411
+ * @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
2871
3412
  * @param {*} [options] Override http request option.
2872
3413
  * @throws {RequiredError}
2873
3414
  */
2874
- async domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
2875
- const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options);
3415
+ async domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
3416
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options);
2876
3417
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2877
- const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSearchDistributorBacked']?.[localVarOperationServerIndex]?.url;
3418
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlanByStaff']?.[localVarOperationServerIndex]?.url;
2878
3419
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2879
3420
  },
2880
3421
  /**
@@ -3004,15 +3545,29 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
3004
3545
  .then((request) => request(axios, basePath));
3005
3546
  },
3006
3547
  /**
3007
- * 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`
3008
- * @summary Search distributor-backed domains
3009
- * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
3548
+ * 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`
3549
+ * @summary Put a subscription-backed domain on a Plan
3550
+ * @param {string} id
3551
+ * @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
3552
+ * @param {*} [options] Override http request option.
3553
+ * @throws {RequiredError}
3554
+ */
3555
+ domainControllerSetPlan(id, domainPlanInputDTO, options) {
3556
+ return localVarFp
3557
+ .domainControllerSetPlan(id, domainPlanInputDTO, options)
3558
+ .then((request) => request(axios, basePath));
3559
+ },
3560
+ /**
3561
+ * 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`
3562
+ * @summary Put an Unbacked domain on a Plan
3563
+ * @param {string} id
3564
+ * @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
3010
3565
  * @param {*} [options] Override http request option.
3011
3566
  * @throws {RequiredError}
3012
3567
  */
3013
- domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
3568
+ domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
3014
3569
  return localVarFp
3015
- .domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options)
3570
+ .domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
3016
3571
  .then((request) => request(axios, basePath));
3017
3572
  },
3018
3573
  /**
@@ -3158,16 +3713,31 @@ export class DomainApi extends BaseAPI {
3158
3713
  .then((request) => request(this.axios, this.basePath));
3159
3714
  }
3160
3715
  /**
3161
- * 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`
3162
- * @summary Search distributor-backed domains
3163
- * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
3716
+ * 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`
3717
+ * @summary Put a subscription-backed domain on a Plan
3718
+ * @param {string} id
3719
+ * @param {DomainPlanInputDTO} [domainPlanInputDTO] DomainPlanInputDTO
3720
+ * @param {*} [options] Override http request option.
3721
+ * @throws {RequiredError}
3722
+ * @memberof DomainApi
3723
+ */
3724
+ domainControllerSetPlan(id, domainPlanInputDTO, options) {
3725
+ return DomainApiFp(this.configuration)
3726
+ .domainControllerSetPlan(id, domainPlanInputDTO, options)
3727
+ .then((request) => request(this.axios, this.basePath));
3728
+ }
3729
+ /**
3730
+ * 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`
3731
+ * @summary Put an Unbacked domain on a Plan
3732
+ * @param {string} id
3733
+ * @param {StaffDomainPlanInputDTO} [staffDomainPlanInputDTO] StaffDomainPlanInputDTO
3164
3734
  * @param {*} [options] Override http request option.
3165
3735
  * @throws {RequiredError}
3166
3736
  * @memberof DomainApi
3167
3737
  */
3168
- domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
3738
+ domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
3169
3739
  return DomainApiFp(this.configuration)
3170
- .domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options)
3740
+ .domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
3171
3741
  .then((request) => request(this.axios, this.basePath));
3172
3742
  }
3173
3743
  /**
@@ -3642,6 +4212,72 @@ export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
3642
4212
  options: localVarRequestOptions,
3643
4213
  };
3644
4214
  },
4215
+ /**
4216
+ * <br> OperationId: `FixtureHistoryControllerTrackingInventory`
4217
+ * @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
4218
+ * @param {string} domainId
4219
+ * @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
4220
+ * @param {*} [options] Override http request option.
4221
+ * @throws {RequiredError}
4222
+ */
4223
+ fixtureHistoryControllerTrackingInventory: async (domainId, fixtureHistoryTrackingInventoryInputDTO, options = {}) => {
4224
+ // verify required parameter 'domainId' is not null or undefined
4225
+ assertParamExists('fixtureHistoryControllerTrackingInventory', 'domainId', domainId);
4226
+ const localVarPath = `/fixture-history/domains/{domainId}/tracking/inventory`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
4227
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4228
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4229
+ let baseOptions;
4230
+ if (configuration) {
4231
+ baseOptions = configuration.baseOptions;
4232
+ }
4233
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4234
+ const localVarHeaderParameter = {};
4235
+ const localVarQueryParameter = {};
4236
+ // authentication adminAuth required
4237
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
4238
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4239
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4240
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4241
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4242
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTrackingInventoryInputDTO, localVarRequestOptions, configuration);
4243
+ return {
4244
+ url: toPathString(localVarUrlObj),
4245
+ options: localVarRequestOptions,
4246
+ };
4247
+ },
4248
+ /**
4249
+ * Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
4250
+ * @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
4251
+ * @param {string} domainId
4252
+ * @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
4253
+ * @param {*} [options] Override http request option.
4254
+ * @throws {RequiredError}
4255
+ */
4256
+ fixtureHistoryControllerTrackingPositions: async (domainId, fixtureHistoryTrackingPositionsInputDTO, options = {}) => {
4257
+ // verify required parameter 'domainId' is not null or undefined
4258
+ assertParamExists('fixtureHistoryControllerTrackingPositions', 'domainId', domainId);
4259
+ const localVarPath = `/fixture-history/domains/{domainId}/tracking/positions`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
4260
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4261
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4262
+ let baseOptions;
4263
+ if (configuration) {
4264
+ baseOptions = configuration.baseOptions;
4265
+ }
4266
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4267
+ const localVarHeaderParameter = {};
4268
+ const localVarQueryParameter = {};
4269
+ // authentication adminAuth required
4270
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
4271
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4272
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4273
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4274
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4275
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTrackingPositionsInputDTO, localVarRequestOptions, configuration);
4276
+ return {
4277
+ url: toPathString(localVarUrlObj),
4278
+ options: localVarRequestOptions,
4279
+ };
4280
+ },
3645
4281
  };
3646
4282
  };
3647
4283
  /**
@@ -3840,6 +4476,34 @@ export const FixtureHistoryApiFp = function (configuration) {
3840
4476
  ?.url;
3841
4477
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3842
4478
  },
4479
+ /**
4480
+ * <br> OperationId: `FixtureHistoryControllerTrackingInventory`
4481
+ * @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
4482
+ * @param {string} domainId
4483
+ * @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
4484
+ * @param {*} [options] Override http request option.
4485
+ * @throws {RequiredError}
4486
+ */
4487
+ async fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
4488
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options);
4489
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4490
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTrackingInventory']?.[localVarOperationServerIndex]?.url;
4491
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4492
+ },
4493
+ /**
4494
+ * Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
4495
+ * @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
4496
+ * @param {string} domainId
4497
+ * @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
4498
+ * @param {*} [options] Override http request option.
4499
+ * @throws {RequiredError}
4500
+ */
4501
+ async fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
4502
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options);
4503
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4504
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTrackingPositions']?.[localVarOperationServerIndex]?.url;
4505
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4506
+ },
3843
4507
  };
3844
4508
  };
3845
4509
  /**
@@ -4021,6 +4685,32 @@ export const FixtureHistoryApiFactory = function (configuration, basePath, axios
4021
4685
  .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4022
4686
  .then((request) => request(axios, basePath));
4023
4687
  },
4688
+ /**
4689
+ * <br> OperationId: `FixtureHistoryControllerTrackingInventory`
4690
+ * @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
4691
+ * @param {string} domainId
4692
+ * @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
4693
+ * @param {*} [options] Override http request option.
4694
+ * @throws {RequiredError}
4695
+ */
4696
+ fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
4697
+ return localVarFp
4698
+ .fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options)
4699
+ .then((request) => request(axios, basePath));
4700
+ },
4701
+ /**
4702
+ * Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
4703
+ * @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
4704
+ * @param {string} domainId
4705
+ * @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
4706
+ * @param {*} [options] Override http request option.
4707
+ * @throws {RequiredError}
4708
+ */
4709
+ fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
4710
+ return localVarFp
4711
+ .fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options)
4712
+ .then((request) => request(axios, basePath));
4713
+ },
4024
4714
  };
4025
4715
  };
4026
4716
  /**
@@ -4215,15 +4905,43 @@ export class FixtureHistoryApi extends BaseAPI {
4215
4905
  .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4216
4906
  .then((request) => request(this.axios, this.basePath));
4217
4907
  }
4218
- }
4219
- /**
4220
- * MetaApi - axios parameter creator
4221
- * @export
4222
- */
4223
- export const MetaApiAxiosParamCreator = function (configuration) {
4224
- return {
4225
- /**
4226
- * <br> OperationId: `MetaGetHealth`
4908
+ /**
4909
+ * <br> OperationId: `FixtureHistoryControllerTrackingInventory`
4910
+ * @summary Write owned, back-dated inventory snapshots and changes into the Tracking store (idempotent on id)
4911
+ * @param {string} domainId
4912
+ * @param {FixtureHistoryTrackingInventoryInputDTO} [fixtureHistoryTrackingInventoryInputDTO] FixtureHistoryTrackingInventoryInputDTO
4913
+ * @param {*} [options] Override http request option.
4914
+ * @throws {RequiredError}
4915
+ * @memberof FixtureHistoryApi
4916
+ */
4917
+ fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options) {
4918
+ return FixtureHistoryApiFp(this.configuration)
4919
+ .fixtureHistoryControllerTrackingInventory(domainId, fixtureHistoryTrackingInventoryInputDTO, options)
4920
+ .then((request) => request(this.axios, this.basePath));
4921
+ }
4922
+ /**
4923
+ * Columnar: each track is one player-on-gameserver with flattened x, y, z triples sampled every intervalMs from `from`.<br> OperationId: `FixtureHistoryControllerTrackingPositions`
4924
+ * @summary Write owned, back-dated walked paths into the Tracking store (inserts only missing samples)
4925
+ * @param {string} domainId
4926
+ * @param {FixtureHistoryTrackingPositionsInputDTO} [fixtureHistoryTrackingPositionsInputDTO] FixtureHistoryTrackingPositionsInputDTO
4927
+ * @param {*} [options] Override http request option.
4928
+ * @throws {RequiredError}
4929
+ * @memberof FixtureHistoryApi
4930
+ */
4931
+ fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options) {
4932
+ return FixtureHistoryApiFp(this.configuration)
4933
+ .fixtureHistoryControllerTrackingPositions(domainId, fixtureHistoryTrackingPositionsInputDTO, options)
4934
+ .then((request) => request(this.axios, this.basePath));
4935
+ }
4936
+ }
4937
+ /**
4938
+ * MetaApi - axios parameter creator
4939
+ * @export
4940
+ */
4941
+ export const MetaApiAxiosParamCreator = function (configuration) {
4942
+ return {
4943
+ /**
4944
+ * <br> OperationId: `MetaGetHealth`
4227
4945
  * @summary Get health
4228
4946
  * @param {*} [options] Override http request option.
4229
4947
  * @throws {RequiredError}
@@ -4272,31 +4990,6 @@ export const MetaApiAxiosParamCreator = function (configuration) {
4272
4990
  options: localVarRequestOptions,
4273
4991
  };
4274
4992
  },
4275
- /**
4276
- * <br> OperationId: `MetaGetMetrics`
4277
- * @summary Get metrics
4278
- * @param {*} [options] Override http request option.
4279
- * @throws {RequiredError}
4280
- */
4281
- metaGetMetrics: async (options = {}) => {
4282
- const localVarPath = `/metrics`;
4283
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
4284
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4285
- let baseOptions;
4286
- if (configuration) {
4287
- baseOptions = configuration.baseOptions;
4288
- }
4289
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4290
- const localVarHeaderParameter = {};
4291
- const localVarQueryParameter = {};
4292
- setSearchParams(localVarUrlObj, localVarQueryParameter);
4293
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4294
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4295
- return {
4296
- url: toPathString(localVarUrlObj),
4297
- options: localVarRequestOptions,
4298
- };
4299
- },
4300
4993
  /**
4301
4994
  * <br> OperationId: `MetaGetOpenApi`
4302
4995
  * @summary Get open api
@@ -4430,18 +5123,6 @@ export const MetaApiFp = function (configuration) {
4430
5123
  const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
4431
5124
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4432
5125
  },
4433
- /**
4434
- * <br> OperationId: `MetaGetMetrics`
4435
- * @summary Get metrics
4436
- * @param {*} [options] Override http request option.
4437
- * @throws {RequiredError}
4438
- */
4439
- async metaGetMetrics(options) {
4440
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetMetrics(options);
4441
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4442
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetMetrics']?.[localVarOperationServerIndex]?.url;
4443
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4444
- },
4445
5126
  /**
4446
5127
  * <br> OperationId: `MetaGetOpenApi`
4447
5128
  * @summary Get open api
@@ -4517,15 +5198,6 @@ export const MetaApiFactory = function (configuration, basePath, axios) {
4517
5198
  metaGetLiveness(options) {
4518
5199
  return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
4519
5200
  },
4520
- /**
4521
- * <br> OperationId: `MetaGetMetrics`
4522
- * @summary Get metrics
4523
- * @param {*} [options] Override http request option.
4524
- * @throws {RequiredError}
4525
- */
4526
- metaGetMetrics(options) {
4527
- return localVarFp.metaGetMetrics(options).then((request) => request(axios, basePath));
4528
- },
4529
5201
  /**
4530
5202
  * <br> OperationId: `MetaGetOpenApi`
4531
5203
  * @summary Get open api
@@ -4595,18 +5267,6 @@ export class MetaApi extends BaseAPI {
4595
5267
  .metaGetLiveness(options)
4596
5268
  .then((request) => request(this.axios, this.basePath));
4597
5269
  }
4598
- /**
4599
- * <br> OperationId: `MetaGetMetrics`
4600
- * @summary Get metrics
4601
- * @param {*} [options] Override http request option.
4602
- * @throws {RequiredError}
4603
- * @memberof MetaApi
4604
- */
4605
- metaGetMetrics(options) {
4606
- return MetaApiFp(this.configuration)
4607
- .metaGetMetrics(options)
4608
- .then((request) => request(this.axios, this.basePath));
4609
- }
4610
5270
  /**
4611
5271
  * <br> OperationId: `MetaGetOpenApi`
4612
5272
  * @summary Get open api
@@ -4967,129 +5627,146 @@ export class StaffAuthApi extends BaseAPI {
4967
5627
  }
4968
5628
  }
4969
5629
  /**
4970
- * StaffMeApi - axios parameter creator
5630
+ * StaffDomainLimitsApi - axios parameter creator
4971
5631
  * @export
4972
5632
  */
4973
- export const StaffMeApiAxiosParamCreator = function (configuration) {
5633
+ export const StaffDomainLimitsApiAxiosParamCreator = function (configuration) {
4974
5634
  return {
4975
5635
  /**
4976
- * 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`
4977
- * @summary Who this Staff session belongs to
5636
+ * The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
5637
+ * @summary Clear a limit override of a Domain
5638
+ * @param {string} id
5639
+ * @param {string} limitKey
5640
+ * @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
4978
5641
  * @param {*} [options] Override http request option.
4979
5642
  * @throws {RequiredError}
4980
5643
  */
4981
- staffMeControllerMe: async (options = {}) => {
4982
- const localVarPath = `/staff/me`;
5644
+ staffDomainLimitsControllerClear: async (id, limitKey, domainLimitOverrideClearInputDTO, options = {}) => {
5645
+ // verify required parameter 'id' is not null or undefined
5646
+ assertParamExists('staffDomainLimitsControllerClear', 'id', id);
5647
+ // verify required parameter 'limitKey' is not null or undefined
5648
+ assertParamExists('staffDomainLimitsControllerClear', 'limitKey', limitKey);
5649
+ const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
5650
+ .replace(`{${'id'}}`, encodeURIComponent(String(id)))
5651
+ .replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
4983
5652
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4984
5653
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4985
5654
  let baseOptions;
4986
5655
  if (configuration) {
4987
5656
  baseOptions = configuration.baseOptions;
4988
5657
  }
4989
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5658
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
4990
5659
  const localVarHeaderParameter = {};
4991
5660
  const localVarQueryParameter = {};
4992
5661
  // authentication staffSession required
4993
5662
  // authentication adminAuth required
4994
5663
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5664
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4995
5665
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4996
5666
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4997
5667
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5668
+ localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideClearInputDTO, localVarRequestOptions, configuration);
4998
5669
  return {
4999
5670
  url: toPathString(localVarUrlObj),
5000
5671
  options: localVarRequestOptions,
5001
5672
  };
5002
5673
  },
5003
- };
5004
- };
5005
- /**
5006
- * StaffMeApi - functional programming interface
5007
- * @export
5008
- */
5009
- export const StaffMeApiFp = function (configuration) {
5010
- const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
5011
- return {
5012
5674
  /**
5013
- * 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`
5014
- * @summary Who this Staff session belongs to
5675
+ * Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
5676
+ * @summary Effective limits of a Domain
5677
+ * @param {string} id
5015
5678
  * @param {*} [options] Override http request option.
5016
5679
  * @throws {RequiredError}
5017
5680
  */
5018
- async staffMeControllerMe(options) {
5019
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
5020
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5021
- const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
5022
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5681
+ staffDomainLimitsControllerGet: async (id, options = {}) => {
5682
+ // verify required parameter 'id' is not null or undefined
5683
+ assertParamExists('staffDomainLimitsControllerGet', 'id', id);
5684
+ const localVarPath = `/staff/domains/{id}/limits`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5685
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5686
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5687
+ let baseOptions;
5688
+ if (configuration) {
5689
+ baseOptions = configuration.baseOptions;
5690
+ }
5691
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5692
+ const localVarHeaderParameter = {};
5693
+ const localVarQueryParameter = {};
5694
+ // authentication staffSession required
5695
+ // authentication adminAuth required
5696
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5697
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5698
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5699
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5700
+ return {
5701
+ url: toPathString(localVarUrlObj),
5702
+ options: localVarRequestOptions,
5703
+ };
5023
5704
  },
5024
- };
5025
- };
5026
- /**
5027
- * StaffMeApi - factory interface
5028
- * @export
5029
- */
5030
- export const StaffMeApiFactory = function (configuration, basePath, axios) {
5031
- const localVarFp = StaffMeApiFp(configuration);
5032
- return {
5033
5705
  /**
5034
- * 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`
5035
- * @summary Who this Staff session belongs to
5706
+ * Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
5707
+ * @summary Limit override history of a Domain
5708
+ * @param {string} id
5036
5709
  * @param {*} [options] Override http request option.
5037
5710
  * @throws {RequiredError}
5038
5711
  */
5039
- staffMeControllerMe(options) {
5040
- return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
5712
+ staffDomainLimitsControllerHistory: async (id, options = {}) => {
5713
+ // verify required parameter 'id' is not null or undefined
5714
+ assertParamExists('staffDomainLimitsControllerHistory', 'id', id);
5715
+ const localVarPath = `/staff/domains/{id}/limits/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5716
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5717
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5718
+ let baseOptions;
5719
+ if (configuration) {
5720
+ baseOptions = configuration.baseOptions;
5721
+ }
5722
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5723
+ const localVarHeaderParameter = {};
5724
+ const localVarQueryParameter = {};
5725
+ // authentication staffSession required
5726
+ // authentication adminAuth required
5727
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5728
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5729
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5730
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5731
+ return {
5732
+ url: toPathString(localVarUrlObj),
5733
+ options: localVarRequestOptions,
5734
+ };
5041
5735
  },
5042
- };
5043
- };
5044
- /**
5045
- * StaffMeApi - object-oriented interface
5046
- * @export
5047
- * @class StaffMeApi
5048
- * @extends {BaseAPI}
5049
- */
5050
- export class StaffMeApi extends BaseAPI {
5051
- /**
5052
- * 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`
5053
- * @summary Who this Staff session belongs to
5054
- * @param {*} [options] Override http request option.
5055
- * @throws {RequiredError}
5056
- * @memberof StaffMeApi
5057
- */
5058
- staffMeControllerMe(options) {
5059
- return StaffMeApiFp(this.configuration)
5060
- .staffMeControllerMe(options)
5061
- .then((request) => request(this.axios, this.basePath));
5062
- }
5063
- }
5064
- /**
5065
- * StaffPlanApi - axios parameter creator
5066
- * @export
5067
- */
5068
- export const StaffPlanApiAxiosParamCreator = function (configuration) {
5069
- return {
5070
5736
  /**
5071
- * 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`
5072
- * @summary The Plan catalogue
5737
+ * 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`
5738
+ * @summary Override one limit of a Domain
5739
+ * @param {string} id
5740
+ * @param {string} limitKey
5741
+ * @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
5073
5742
  * @param {*} [options] Override http request option.
5074
5743
  * @throws {RequiredError}
5075
5744
  */
5076
- staffPlanControllerList: async (options = {}) => {
5077
- const localVarPath = `/staff/plans`;
5745
+ staffDomainLimitsControllerSet: async (id, limitKey, domainLimitOverrideInputDTO, options = {}) => {
5746
+ // verify required parameter 'id' is not null or undefined
5747
+ assertParamExists('staffDomainLimitsControllerSet', 'id', id);
5748
+ // verify required parameter 'limitKey' is not null or undefined
5749
+ assertParamExists('staffDomainLimitsControllerSet', 'limitKey', limitKey);
5750
+ const localVarPath = `/staff/domains/{id}/limits/{limitKey}`
5751
+ .replace(`{${'id'}}`, encodeURIComponent(String(id)))
5752
+ .replace(`{${'limitKey'}}`, encodeURIComponent(String(limitKey)));
5078
5753
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5079
5754
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5080
5755
  let baseOptions;
5081
5756
  if (configuration) {
5082
5757
  baseOptions = configuration.baseOptions;
5083
5758
  }
5084
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5759
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
5085
5760
  const localVarHeaderParameter = {};
5086
5761
  const localVarQueryParameter = {};
5087
5762
  // authentication staffSession required
5088
5763
  // authentication adminAuth required
5089
5764
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5765
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5090
5766
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5091
5767
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5092
5768
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5769
+ localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideInputDTO, localVarRequestOptions, configuration);
5093
5770
  return {
5094
5771
  url: toPathString(localVarUrlObj),
5095
5772
  options: localVarRequestOptions,
@@ -5098,61 +5775,1399 @@ export const StaffPlanApiAxiosParamCreator = function (configuration) {
5098
5775
  };
5099
5776
  };
5100
5777
  /**
5101
- * StaffPlanApi - functional programming interface
5778
+ * StaffDomainLimitsApi - functional programming interface
5102
5779
  * @export
5103
5780
  */
5104
- export const StaffPlanApiFp = function (configuration) {
5105
- const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
5781
+ export const StaffDomainLimitsApiFp = function (configuration) {
5782
+ const localVarAxiosParamCreator = StaffDomainLimitsApiAxiosParamCreator(configuration);
5106
5783
  return {
5107
5784
  /**
5108
- * 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`
5109
- * @summary The Plan catalogue
5785
+ * The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
5786
+ * @summary Clear a limit override of a Domain
5787
+ * @param {string} id
5788
+ * @param {string} limitKey
5789
+ * @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
5110
5790
  * @param {*} [options] Override http request option.
5111
5791
  * @throws {RequiredError}
5112
5792
  */
5113
- async staffPlanControllerList(options) {
5114
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(options);
5793
+ async staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
5794
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options);
5115
5795
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5116
- const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
5796
+ const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerClear']?.[localVarOperationServerIndex]
5797
+ ?.url;
5798
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5799
+ },
5800
+ /**
5801
+ * Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
5802
+ * @summary Effective limits of a Domain
5803
+ * @param {string} id
5804
+ * @param {*} [options] Override http request option.
5805
+ * @throws {RequiredError}
5806
+ */
5807
+ async staffDomainLimitsControllerGet(id, options) {
5808
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerGet(id, options);
5809
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5810
+ const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerGet']?.[localVarOperationServerIndex]?.url;
5811
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5812
+ },
5813
+ /**
5814
+ * Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
5815
+ * @summary Limit override history of a Domain
5816
+ * @param {string} id
5817
+ * @param {*} [options] Override http request option.
5818
+ * @throws {RequiredError}
5819
+ */
5820
+ async staffDomainLimitsControllerHistory(id, options) {
5821
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerHistory(id, options);
5822
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5823
+ const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerHistory']?.[localVarOperationServerIndex]
5824
+ ?.url;
5825
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5826
+ },
5827
+ /**
5828
+ * 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`
5829
+ * @summary Override one limit of a Domain
5830
+ * @param {string} id
5831
+ * @param {string} limitKey
5832
+ * @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
5833
+ * @param {*} [options] Override http request option.
5834
+ * @throws {RequiredError}
5835
+ */
5836
+ async staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
5837
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options);
5838
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5839
+ const localVarOperationServerBasePath = operationServerMap['StaffDomainLimitsApi.staffDomainLimitsControllerSet']?.[localVarOperationServerIndex]?.url;
5117
5840
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5118
5841
  },
5119
5842
  };
5120
5843
  };
5121
5844
  /**
5122
- * StaffPlanApi - factory interface
5845
+ * StaffDomainLimitsApi - factory interface
5123
5846
  * @export
5124
5847
  */
5125
- export const StaffPlanApiFactory = function (configuration, basePath, axios) {
5126
- const localVarFp = StaffPlanApiFp(configuration);
5848
+ export const StaffDomainLimitsApiFactory = function (configuration, basePath, axios) {
5849
+ const localVarFp = StaffDomainLimitsApiFp(configuration);
5127
5850
  return {
5128
5851
  /**
5129
- * 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`
5130
- * @summary The Plan catalogue
5852
+ * The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
5853
+ * @summary Clear a limit override of a Domain
5854
+ * @param {string} id
5855
+ * @param {string} limitKey
5856
+ * @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
5857
+ * @param {*} [options] Override http request option.
5858
+ * @throws {RequiredError}
5859
+ */
5860
+ staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
5861
+ return localVarFp
5862
+ .staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
5863
+ .then((request) => request(axios, basePath));
5864
+ },
5865
+ /**
5866
+ * Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
5867
+ * @summary Effective limits of a Domain
5868
+ * @param {string} id
5869
+ * @param {*} [options] Override http request option.
5870
+ * @throws {RequiredError}
5871
+ */
5872
+ staffDomainLimitsControllerGet(id, options) {
5873
+ return localVarFp.staffDomainLimitsControllerGet(id, options).then((request) => request(axios, basePath));
5874
+ },
5875
+ /**
5876
+ * Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
5877
+ * @summary Limit override history of a Domain
5878
+ * @param {string} id
5879
+ * @param {*} [options] Override http request option.
5880
+ * @throws {RequiredError}
5881
+ */
5882
+ staffDomainLimitsControllerHistory(id, options) {
5883
+ return localVarFp.staffDomainLimitsControllerHistory(id, options).then((request) => request(axios, basePath));
5884
+ },
5885
+ /**
5886
+ * 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`
5887
+ * @summary Override one limit of a Domain
5888
+ * @param {string} id
5889
+ * @param {string} limitKey
5890
+ * @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
5131
5891
  * @param {*} [options] Override http request option.
5132
5892
  * @throws {RequiredError}
5133
5893
  */
5134
- staffPlanControllerList(options) {
5135
- return localVarFp.staffPlanControllerList(options).then((request) => request(axios, basePath));
5894
+ staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
5895
+ return localVarFp
5896
+ .staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
5897
+ .then((request) => request(axios, basePath));
5136
5898
  },
5137
5899
  };
5138
5900
  };
5139
5901
  /**
5140
- * StaffPlanApi - object-oriented interface
5902
+ * StaffDomainLimitsApi - object-oriented interface
5141
5903
  * @export
5142
- * @class StaffPlanApi
5904
+ * @class StaffDomainLimitsApi
5143
5905
  * @extends {BaseAPI}
5144
5906
  */
5145
- export class StaffPlanApi extends BaseAPI {
5907
+ export class StaffDomainLimitsApi extends BaseAPI {
5146
5908
  /**
5147
- * 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`
5148
- * @summary The Plan catalogue
5909
+ * The Plan’s value applies again at once.<br> OperationId: `StaffDomainLimitsControllerClear`
5910
+ * @summary Clear a limit override of a Domain
5911
+ * @param {string} id
5912
+ * @param {string} limitKey
5913
+ * @param {DomainLimitOverrideClearInputDTO} [domainLimitOverrideClearInputDTO] DomainLimitOverrideClearInputDTO
5149
5914
  * @param {*} [options] Override http request option.
5150
5915
  * @throws {RequiredError}
5151
- * @memberof StaffPlanApi
5916
+ * @memberof StaffDomainLimitsApi
5152
5917
  */
5153
- staffPlanControllerList(options) {
5154
- return StaffPlanApiFp(this.configuration)
5155
- .staffPlanControllerList(options)
5918
+ staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
5919
+ return StaffDomainLimitsApiFp(this.configuration)
5920
+ .staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options)
5921
+ .then((request) => request(this.axios, this.basePath));
5922
+ }
5923
+ /**
5924
+ * Every limit with its value and source: the Plan, an override, or `unmanaged` for a Domain with no Plan.<br> OperationId: `StaffDomainLimitsControllerGet`
5925
+ * @summary Effective limits of a Domain
5926
+ * @param {string} id
5927
+ * @param {*} [options] Override http request option.
5928
+ * @throws {RequiredError}
5929
+ * @memberof StaffDomainLimitsApi
5930
+ */
5931
+ staffDomainLimitsControllerGet(id, options) {
5932
+ return StaffDomainLimitsApiFp(this.configuration)
5933
+ .staffDomainLimitsControllerGet(id, options)
5934
+ .then((request) => request(this.axios, this.basePath));
5935
+ }
5936
+ /**
5937
+ * Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
5938
+ * @summary Limit override history of a Domain
5939
+ * @param {string} id
5940
+ * @param {*} [options] Override http request option.
5941
+ * @throws {RequiredError}
5942
+ * @memberof StaffDomainLimitsApi
5943
+ */
5944
+ staffDomainLimitsControllerHistory(id, options) {
5945
+ return StaffDomainLimitsApiFp(this.configuration)
5946
+ .staffDomainLimitsControllerHistory(id, options)
5947
+ .then((request) => request(this.axios, this.basePath));
5948
+ }
5949
+ /**
5950
+ * 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`
5951
+ * @summary Override one limit of a Domain
5952
+ * @param {string} id
5953
+ * @param {string} limitKey
5954
+ * @param {DomainLimitOverrideInputDTO} [domainLimitOverrideInputDTO] DomainLimitOverrideInputDTO
5955
+ * @param {*} [options] Override http request option.
5956
+ * @throws {RequiredError}
5957
+ * @memberof StaffDomainLimitsApi
5958
+ */
5959
+ staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
5960
+ return StaffDomainLimitsApiFp(this.configuration)
5961
+ .staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
5962
+ .then((request) => request(this.axios, this.basePath));
5963
+ }
5964
+ }
5965
+ /**
5966
+ * StaffMeApi - axios parameter creator
5967
+ * @export
5968
+ */
5969
+ export const StaffMeApiAxiosParamCreator = function (configuration) {
5970
+ return {
5971
+ /**
5972
+ * 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`
5973
+ * @summary Who this Staff session belongs to
5974
+ * @param {*} [options] Override http request option.
5975
+ * @throws {RequiredError}
5976
+ */
5977
+ staffMeControllerMe: async (options = {}) => {
5978
+ const localVarPath = `/staff/me`;
5979
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5980
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5981
+ let baseOptions;
5982
+ if (configuration) {
5983
+ baseOptions = configuration.baseOptions;
5984
+ }
5985
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5986
+ const localVarHeaderParameter = {};
5987
+ const localVarQueryParameter = {};
5988
+ // authentication staffSession required
5989
+ // authentication adminAuth required
5990
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5991
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5992
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5993
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5994
+ return {
5995
+ url: toPathString(localVarUrlObj),
5996
+ options: localVarRequestOptions,
5997
+ };
5998
+ },
5999
+ };
6000
+ };
6001
+ /**
6002
+ * StaffMeApi - functional programming interface
6003
+ * @export
6004
+ */
6005
+ export const StaffMeApiFp = function (configuration) {
6006
+ const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
6007
+ return {
6008
+ /**
6009
+ * 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`
6010
+ * @summary Who this Staff session belongs to
6011
+ * @param {*} [options] Override http request option.
6012
+ * @throws {RequiredError}
6013
+ */
6014
+ async staffMeControllerMe(options) {
6015
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
6016
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6017
+ const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
6018
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6019
+ },
6020
+ };
6021
+ };
6022
+ /**
6023
+ * StaffMeApi - factory interface
6024
+ * @export
6025
+ */
6026
+ export const StaffMeApiFactory = function (configuration, basePath, axios) {
6027
+ const localVarFp = StaffMeApiFp(configuration);
6028
+ return {
6029
+ /**
6030
+ * 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`
6031
+ * @summary Who this Staff session belongs to
6032
+ * @param {*} [options] Override http request option.
6033
+ * @throws {RequiredError}
6034
+ */
6035
+ staffMeControllerMe(options) {
6036
+ return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
6037
+ },
6038
+ };
6039
+ };
6040
+ /**
6041
+ * StaffMeApi - object-oriented interface
6042
+ * @export
6043
+ * @class StaffMeApi
6044
+ * @extends {BaseAPI}
6045
+ */
6046
+ export class StaffMeApi extends BaseAPI {
6047
+ /**
6048
+ * 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`
6049
+ * @summary Who this Staff session belongs to
6050
+ * @param {*} [options] Override http request option.
6051
+ * @throws {RequiredError}
6052
+ * @memberof StaffMeApi
6053
+ */
6054
+ staffMeControllerMe(options) {
6055
+ return StaffMeApiFp(this.configuration)
6056
+ .staffMeControllerMe(options)
6057
+ .then((request) => request(this.axios, this.basePath));
6058
+ }
6059
+ }
6060
+ /**
6061
+ * StaffPlanApi - axios parameter creator
6062
+ * @export
6063
+ */
6064
+ export const StaffPlanApiAxiosParamCreator = function (configuration) {
6065
+ return {
6066
+ /**
6067
+ * 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`
6068
+ * @summary Archive a Plan
6069
+ * @param {string} id
6070
+ * @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
6071
+ * @param {*} [options] Override http request option.
6072
+ * @throws {RequiredError}
6073
+ */
6074
+ staffPlanControllerArchive: async (id, planArchiveInputDTO, options = {}) => {
6075
+ // verify required parameter 'id' is not null or undefined
6076
+ assertParamExists('staffPlanControllerArchive', 'id', id);
6077
+ const localVarPath = `/staff/plans/{id}/archive`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6078
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6079
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6080
+ let baseOptions;
6081
+ if (configuration) {
6082
+ baseOptions = configuration.baseOptions;
6083
+ }
6084
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6085
+ const localVarHeaderParameter = {};
6086
+ const localVarQueryParameter = {};
6087
+ // authentication staffSession required
6088
+ // authentication adminAuth required
6089
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6090
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6091
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6092
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6093
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6094
+ localVarRequestOptions.data = serializeDataIfNeeded(planArchiveInputDTO, localVarRequestOptions, configuration);
6095
+ return {
6096
+ url: toPathString(localVarUrlObj),
6097
+ options: localVarRequestOptions,
6098
+ };
6099
+ },
6100
+ /**
6101
+ * Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
6102
+ * @summary Create a Plan
6103
+ * @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
6104
+ * @param {*} [options] Override http request option.
6105
+ * @throws {RequiredError}
6106
+ */
6107
+ staffPlanControllerCreate: async (planCreateInputDTO, options = {}) => {
6108
+ const localVarPath = `/staff/plans`;
6109
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6110
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6111
+ let baseOptions;
6112
+ if (configuration) {
6113
+ baseOptions = configuration.baseOptions;
6114
+ }
6115
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6116
+ const localVarHeaderParameter = {};
6117
+ const localVarQueryParameter = {};
6118
+ // authentication staffSession required
6119
+ // authentication adminAuth required
6120
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6121
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6122
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6123
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6124
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6125
+ localVarRequestOptions.data = serializeDataIfNeeded(planCreateInputDTO, localVarRequestOptions, configuration);
6126
+ return {
6127
+ url: toPathString(localVarUrlObj),
6128
+ options: localVarRequestOptions,
6129
+ };
6130
+ },
6131
+ /**
6132
+ * Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
6133
+ * @summary Change history of a Plan
6134
+ * @param {string} id
6135
+ * @param {*} [options] Override http request option.
6136
+ * @throws {RequiredError}
6137
+ */
6138
+ staffPlanControllerHistory: async (id, options = {}) => {
6139
+ // verify required parameter 'id' is not null or undefined
6140
+ assertParamExists('staffPlanControllerHistory', 'id', id);
6141
+ const localVarPath = `/staff/plans/{id}/history`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6142
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6143
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6144
+ let baseOptions;
6145
+ if (configuration) {
6146
+ baseOptions = configuration.baseOptions;
6147
+ }
6148
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6149
+ const localVarHeaderParameter = {};
6150
+ const localVarQueryParameter = {};
6151
+ // authentication staffSession required
6152
+ // authentication adminAuth required
6153
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6154
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6155
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6156
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6157
+ return {
6158
+ url: toPathString(localVarUrlObj),
6159
+ options: localVarRequestOptions,
6160
+ };
6161
+ },
6162
+ /**
6163
+ * 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`
6164
+ * @summary Import Plans from the billing provider
6165
+ * @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
6166
+ * @param {*} [options] Override http request option.
6167
+ * @throws {RequiredError}
6168
+ */
6169
+ staffPlanControllerImport: async (planImportInputDTO, options = {}) => {
6170
+ const localVarPath = `/staff/plans/import`;
6171
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6172
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6173
+ let baseOptions;
6174
+ if (configuration) {
6175
+ baseOptions = configuration.baseOptions;
6176
+ }
6177
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6178
+ const localVarHeaderParameter = {};
6179
+ const localVarQueryParameter = {};
6180
+ // authentication staffSession required
6181
+ // authentication adminAuth required
6182
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6183
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6184
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6186
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6187
+ localVarRequestOptions.data = serializeDataIfNeeded(planImportInputDTO, localVarRequestOptions, configuration);
6188
+ return {
6189
+ url: toPathString(localVarUrlObj),
6190
+ options: localVarRequestOptions,
6191
+ };
6192
+ },
6193
+ /**
6194
+ * True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
6195
+ * @summary Whether the billing-provider import ran
6196
+ * @param {*} [options] Override http request option.
6197
+ * @throws {RequiredError}
6198
+ */
6199
+ staffPlanControllerImportStatus: async (options = {}) => {
6200
+ const localVarPath = `/staff/plans/import`;
6201
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6202
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6203
+ let baseOptions;
6204
+ if (configuration) {
6205
+ baseOptions = configuration.baseOptions;
6206
+ }
6207
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6208
+ const localVarHeaderParameter = {};
6209
+ const localVarQueryParameter = {};
6210
+ // authentication staffSession required
6211
+ // authentication adminAuth required
6212
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6213
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6214
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6215
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6216
+ return {
6217
+ url: toPathString(localVarUrlObj),
6218
+ options: localVarRequestOptions,
6219
+ };
6220
+ },
6221
+ /**
6222
+ * 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`
6223
+ * @summary List Plans
6224
+ * @param {any} [includeArchived]
6225
+ * @param {*} [options] Override http request option.
6226
+ * @throws {RequiredError}
6227
+ */
6228
+ staffPlanControllerList: async (includeArchived, options = {}) => {
6229
+ const localVarPath = `/staff/plans`;
6230
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6231
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6232
+ let baseOptions;
6233
+ if (configuration) {
6234
+ baseOptions = configuration.baseOptions;
6235
+ }
6236
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6237
+ const localVarHeaderParameter = {};
6238
+ const localVarQueryParameter = {};
6239
+ // authentication staffSession required
6240
+ // authentication adminAuth required
6241
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6242
+ if (includeArchived !== undefined) {
6243
+ for (const [key, value] of Object.entries(includeArchived)) {
6244
+ localVarQueryParameter[key] = value;
6245
+ }
6246
+ }
6247
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6248
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6249
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6250
+ return {
6251
+ url: toPathString(localVarUrlObj),
6252
+ options: localVarRequestOptions,
6253
+ };
6254
+ },
6255
+ /**
6256
+ * 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`
6257
+ * @summary The billing provider’s products
6258
+ * @param {*} [options] Override http request option.
6259
+ * @throws {RequiredError}
6260
+ */
6261
+ staffPlanControllerListStripeProducts: async (options = {}) => {
6262
+ const localVarPath = `/staff/stripe-products`;
6263
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6264
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6265
+ let baseOptions;
6266
+ if (configuration) {
6267
+ baseOptions = configuration.baseOptions;
6268
+ }
6269
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6270
+ const localVarHeaderParameter = {};
6271
+ const localVarQueryParameter = {};
6272
+ // authentication staffSession required
6273
+ // authentication adminAuth required
6274
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6275
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6276
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6277
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6278
+ return {
6279
+ url: toPathString(localVarUrlObj),
6280
+ options: localVarRequestOptions,
6281
+ };
6282
+ },
6283
+ /**
6284
+ * 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`
6285
+ * @summary Preview a Plan edit
6286
+ * @param {string} id
6287
+ * @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
6288
+ * @param {*} [options] Override http request option.
6289
+ * @throws {RequiredError}
6290
+ */
6291
+ staffPlanControllerPreview: async (id, planPreviewInputDTO, options = {}) => {
6292
+ // verify required parameter 'id' is not null or undefined
6293
+ assertParamExists('staffPlanControllerPreview', 'id', id);
6294
+ const localVarPath = `/staff/plans/{id}/preview`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6295
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6296
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6297
+ let baseOptions;
6298
+ if (configuration) {
6299
+ baseOptions = configuration.baseOptions;
6300
+ }
6301
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
6302
+ const localVarHeaderParameter = {};
6303
+ const localVarQueryParameter = {};
6304
+ // authentication staffSession required
6305
+ // authentication adminAuth required
6306
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6307
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6308
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6309
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6310
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6311
+ localVarRequestOptions.data = serializeDataIfNeeded(planPreviewInputDTO, localVarRequestOptions, configuration);
6312
+ return {
6313
+ url: toPathString(localVarUrlObj),
6314
+ options: localVarRequestOptions,
6315
+ };
6316
+ },
6317
+ /**
6318
+ * 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`
6319
+ * @summary Update a Plan
6320
+ * @param {string} id
6321
+ * @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
6322
+ * @param {*} [options] Override http request option.
6323
+ * @throws {RequiredError}
6324
+ */
6325
+ staffPlanControllerUpdate: async (id, planUpdateInputDTO, options = {}) => {
6326
+ // verify required parameter 'id' is not null or undefined
6327
+ assertParamExists('staffPlanControllerUpdate', 'id', id);
6328
+ const localVarPath = `/staff/plans/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6329
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6330
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6331
+ let baseOptions;
6332
+ if (configuration) {
6333
+ baseOptions = configuration.baseOptions;
6334
+ }
6335
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
6336
+ const localVarHeaderParameter = {};
6337
+ const localVarQueryParameter = {};
6338
+ // authentication staffSession required
6339
+ // authentication adminAuth required
6340
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6341
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6342
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6343
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6344
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6345
+ localVarRequestOptions.data = serializeDataIfNeeded(planUpdateInputDTO, localVarRequestOptions, configuration);
6346
+ return {
6347
+ url: toPathString(localVarUrlObj),
6348
+ options: localVarRequestOptions,
6349
+ };
6350
+ },
6351
+ };
6352
+ };
6353
+ /**
6354
+ * StaffPlanApi - functional programming interface
6355
+ * @export
6356
+ */
6357
+ export const StaffPlanApiFp = function (configuration) {
6358
+ const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
6359
+ return {
6360
+ /**
6361
+ * 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`
6362
+ * @summary Archive a Plan
6363
+ * @param {string} id
6364
+ * @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
6365
+ * @param {*} [options] Override http request option.
6366
+ * @throws {RequiredError}
6367
+ */
6368
+ async staffPlanControllerArchive(id, planArchiveInputDTO, options) {
6369
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerArchive(id, planArchiveInputDTO, options);
6370
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6371
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerArchive']?.[localVarOperationServerIndex]?.url;
6372
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6373
+ },
6374
+ /**
6375
+ * Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
6376
+ * @summary Create a Plan
6377
+ * @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
6378
+ * @param {*} [options] Override http request option.
6379
+ * @throws {RequiredError}
6380
+ */
6381
+ async staffPlanControllerCreate(planCreateInputDTO, options) {
6382
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerCreate(planCreateInputDTO, options);
6383
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6384
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerCreate']?.[localVarOperationServerIndex]?.url;
6385
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6386
+ },
6387
+ /**
6388
+ * Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
6389
+ * @summary Change history of a Plan
6390
+ * @param {string} id
6391
+ * @param {*} [options] Override http request option.
6392
+ * @throws {RequiredError}
6393
+ */
6394
+ async staffPlanControllerHistory(id, options) {
6395
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerHistory(id, options);
6396
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6397
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerHistory']?.[localVarOperationServerIndex]?.url;
6398
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6399
+ },
6400
+ /**
6401
+ * 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`
6402
+ * @summary Import Plans from the billing provider
6403
+ * @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
6404
+ * @param {*} [options] Override http request option.
6405
+ * @throws {RequiredError}
6406
+ */
6407
+ async staffPlanControllerImport(planImportInputDTO, options) {
6408
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImport(planImportInputDTO, options);
6409
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6410
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImport']?.[localVarOperationServerIndex]?.url;
6411
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6412
+ },
6413
+ /**
6414
+ * True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
6415
+ * @summary Whether the billing-provider import ran
6416
+ * @param {*} [options] Override http request option.
6417
+ * @throws {RequiredError}
6418
+ */
6419
+ async staffPlanControllerImportStatus(options) {
6420
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerImportStatus(options);
6421
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6422
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerImportStatus']?.[localVarOperationServerIndex]?.url;
6423
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6424
+ },
6425
+ /**
6426
+ * 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`
6427
+ * @summary List Plans
6428
+ * @param {any} [includeArchived]
6429
+ * @param {*} [options] Override http request option.
6430
+ * @throws {RequiredError}
6431
+ */
6432
+ async staffPlanControllerList(includeArchived, options) {
6433
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(includeArchived, options);
6434
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6435
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
6436
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6437
+ },
6438
+ /**
6439
+ * 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`
6440
+ * @summary The billing provider’s products
6441
+ * @param {*} [options] Override http request option.
6442
+ * @throws {RequiredError}
6443
+ */
6444
+ async staffPlanControllerListStripeProducts(options) {
6445
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerListStripeProducts(options);
6446
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6447
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerListStripeProducts']?.[localVarOperationServerIndex]?.url;
6448
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6449
+ },
6450
+ /**
6451
+ * 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`
6452
+ * @summary Preview a Plan edit
6453
+ * @param {string} id
6454
+ * @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
6455
+ * @param {*} [options] Override http request option.
6456
+ * @throws {RequiredError}
6457
+ */
6458
+ async staffPlanControllerPreview(id, planPreviewInputDTO, options) {
6459
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerPreview(id, planPreviewInputDTO, options);
6460
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6461
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerPreview']?.[localVarOperationServerIndex]?.url;
6462
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6463
+ },
6464
+ /**
6465
+ * 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`
6466
+ * @summary Update a Plan
6467
+ * @param {string} id
6468
+ * @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
6469
+ * @param {*} [options] Override http request option.
6470
+ * @throws {RequiredError}
6471
+ */
6472
+ async staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
6473
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerUpdate(id, planUpdateInputDTO, options);
6474
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6475
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerUpdate']?.[localVarOperationServerIndex]?.url;
6476
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6477
+ },
6478
+ };
6479
+ };
6480
+ /**
6481
+ * StaffPlanApi - factory interface
6482
+ * @export
6483
+ */
6484
+ export const StaffPlanApiFactory = function (configuration, basePath, axios) {
6485
+ const localVarFp = StaffPlanApiFp(configuration);
6486
+ return {
6487
+ /**
6488
+ * 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`
6489
+ * @summary Archive a Plan
6490
+ * @param {string} id
6491
+ * @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
6492
+ * @param {*} [options] Override http request option.
6493
+ * @throws {RequiredError}
6494
+ */
6495
+ staffPlanControllerArchive(id, planArchiveInputDTO, options) {
6496
+ return localVarFp
6497
+ .staffPlanControllerArchive(id, planArchiveInputDTO, options)
6498
+ .then((request) => request(axios, basePath));
6499
+ },
6500
+ /**
6501
+ * Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
6502
+ * @summary Create a Plan
6503
+ * @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
6504
+ * @param {*} [options] Override http request option.
6505
+ * @throws {RequiredError}
6506
+ */
6507
+ staffPlanControllerCreate(planCreateInputDTO, options) {
6508
+ return localVarFp
6509
+ .staffPlanControllerCreate(planCreateInputDTO, options)
6510
+ .then((request) => request(axios, basePath));
6511
+ },
6512
+ /**
6513
+ * Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
6514
+ * @summary Change history of a Plan
6515
+ * @param {string} id
6516
+ * @param {*} [options] Override http request option.
6517
+ * @throws {RequiredError}
6518
+ */
6519
+ staffPlanControllerHistory(id, options) {
6520
+ return localVarFp.staffPlanControllerHistory(id, options).then((request) => request(axios, basePath));
6521
+ },
6522
+ /**
6523
+ * 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`
6524
+ * @summary Import Plans from the billing provider
6525
+ * @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
6526
+ * @param {*} [options] Override http request option.
6527
+ * @throws {RequiredError}
6528
+ */
6529
+ staffPlanControllerImport(planImportInputDTO, options) {
6530
+ return localVarFp
6531
+ .staffPlanControllerImport(planImportInputDTO, options)
6532
+ .then((request) => request(axios, basePath));
6533
+ },
6534
+ /**
6535
+ * True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
6536
+ * @summary Whether the billing-provider import ran
6537
+ * @param {*} [options] Override http request option.
6538
+ * @throws {RequiredError}
6539
+ */
6540
+ staffPlanControllerImportStatus(options) {
6541
+ return localVarFp.staffPlanControllerImportStatus(options).then((request) => request(axios, basePath));
6542
+ },
6543
+ /**
6544
+ * 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`
6545
+ * @summary List Plans
6546
+ * @param {any} [includeArchived]
6547
+ * @param {*} [options] Override http request option.
6548
+ * @throws {RequiredError}
6549
+ */
6550
+ staffPlanControllerList(includeArchived, options) {
6551
+ return localVarFp.staffPlanControllerList(includeArchived, options).then((request) => request(axios, basePath));
6552
+ },
6553
+ /**
6554
+ * 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`
6555
+ * @summary The billing provider’s products
6556
+ * @param {*} [options] Override http request option.
6557
+ * @throws {RequiredError}
6558
+ */
6559
+ staffPlanControllerListStripeProducts(options) {
6560
+ return localVarFp.staffPlanControllerListStripeProducts(options).then((request) => request(axios, basePath));
6561
+ },
6562
+ /**
6563
+ * 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`
6564
+ * @summary Preview a Plan edit
6565
+ * @param {string} id
6566
+ * @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
6567
+ * @param {*} [options] Override http request option.
6568
+ * @throws {RequiredError}
6569
+ */
6570
+ staffPlanControllerPreview(id, planPreviewInputDTO, options) {
6571
+ return localVarFp
6572
+ .staffPlanControllerPreview(id, planPreviewInputDTO, options)
6573
+ .then((request) => request(axios, basePath));
6574
+ },
6575
+ /**
6576
+ * 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`
6577
+ * @summary Update a Plan
6578
+ * @param {string} id
6579
+ * @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
6580
+ * @param {*} [options] Override http request option.
6581
+ * @throws {RequiredError}
6582
+ */
6583
+ staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
6584
+ return localVarFp
6585
+ .staffPlanControllerUpdate(id, planUpdateInputDTO, options)
6586
+ .then((request) => request(axios, basePath));
6587
+ },
6588
+ };
6589
+ };
6590
+ /**
6591
+ * StaffPlanApi - object-oriented interface
6592
+ * @export
6593
+ * @class StaffPlanApi
6594
+ * @extends {BaseAPI}
6595
+ */
6596
+ export class StaffPlanApi extends BaseAPI {
6597
+ /**
6598
+ * 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`
6599
+ * @summary Archive a Plan
6600
+ * @param {string} id
6601
+ * @param {PlanArchiveInputDTO} [planArchiveInputDTO] PlanArchiveInputDTO
6602
+ * @param {*} [options] Override http request option.
6603
+ * @throws {RequiredError}
6604
+ * @memberof StaffPlanApi
6605
+ */
6606
+ staffPlanControllerArchive(id, planArchiveInputDTO, options) {
6607
+ return StaffPlanApiFp(this.configuration)
6608
+ .staffPlanControllerArchive(id, planArchiveInputDTO, options)
6609
+ .then((request) => request(this.axios, this.basePath));
6610
+ }
6611
+ /**
6612
+ * Omitted limits take the Domain column defaults. Recorded with who, when and the reason.<br> OperationId: `StaffPlanControllerCreate`
6613
+ * @summary Create a Plan
6614
+ * @param {PlanCreateInputDTO} [planCreateInputDTO] PlanCreateInputDTO
6615
+ * @param {*} [options] Override http request option.
6616
+ * @throws {RequiredError}
6617
+ * @memberof StaffPlanApi
6618
+ */
6619
+ staffPlanControllerCreate(planCreateInputDTO, options) {
6620
+ return StaffPlanApiFp(this.configuration)
6621
+ .staffPlanControllerCreate(planCreateInputDTO, options)
6622
+ .then((request) => request(this.axios, this.basePath));
6623
+ }
6624
+ /**
6625
+ * Newest first, each with the Plan as it was after.<br> OperationId: `StaffPlanControllerHistory`
6626
+ * @summary Change history of a Plan
6627
+ * @param {string} id
6628
+ * @param {*} [options] Override http request option.
6629
+ * @throws {RequiredError}
6630
+ * @memberof StaffPlanApi
6631
+ */
6632
+ staffPlanControllerHistory(id, options) {
6633
+ return StaffPlanApiFp(this.configuration)
6634
+ .staffPlanControllerHistory(id, options)
6635
+ .then((request) => request(this.axios, this.basePath));
6636
+ }
6637
+ /**
6638
+ * 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`
6639
+ * @summary Import Plans from the billing provider
6640
+ * @param {PlanImportInputDTO} [planImportInputDTO] PlanImportInputDTO
6641
+ * @param {*} [options] Override http request option.
6642
+ * @throws {RequiredError}
6643
+ * @memberof StaffPlanApi
6644
+ */
6645
+ staffPlanControllerImport(planImportInputDTO, options) {
6646
+ return StaffPlanApiFp(this.configuration)
6647
+ .staffPlanControllerImport(planImportInputDTO, options)
6648
+ .then((request) => request(this.axios, this.basePath));
6649
+ }
6650
+ /**
6651
+ * True once an import has created any Plan, even if those Plans were later unlinked or archived.<br> OperationId: `StaffPlanControllerImportStatus`
6652
+ * @summary Whether the billing-provider import ran
6653
+ * @param {*} [options] Override http request option.
6654
+ * @throws {RequiredError}
6655
+ * @memberof StaffPlanApi
6656
+ */
6657
+ staffPlanControllerImportStatus(options) {
6658
+ return StaffPlanApiFp(this.configuration)
6659
+ .staffPlanControllerImportStatus(options)
6660
+ .then((request) => request(this.axios, this.basePath));
6661
+ }
6662
+ /**
6663
+ * 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`
6664
+ * @summary List Plans
6665
+ * @param {any} [includeArchived]
6666
+ * @param {*} [options] Override http request option.
6667
+ * @throws {RequiredError}
6668
+ * @memberof StaffPlanApi
6669
+ */
6670
+ staffPlanControllerList(includeArchived, options) {
6671
+ return StaffPlanApiFp(this.configuration)
6672
+ .staffPlanControllerList(includeArchived, options)
6673
+ .then((request) => request(this.axios, this.basePath));
6674
+ }
6675
+ /**
6676
+ * 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`
6677
+ * @summary The billing provider’s products
6678
+ * @param {*} [options] Override http request option.
6679
+ * @throws {RequiredError}
6680
+ * @memberof StaffPlanApi
6681
+ */
6682
+ staffPlanControllerListStripeProducts(options) {
6683
+ return StaffPlanApiFp(this.configuration)
6684
+ .staffPlanControllerListStripeProducts(options)
6685
+ .then((request) => request(this.axios, this.basePath));
6686
+ }
6687
+ /**
6688
+ * 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`
6689
+ * @summary Preview a Plan edit
6690
+ * @param {string} id
6691
+ * @param {PlanPreviewInputDTO} [planPreviewInputDTO] PlanPreviewInputDTO
6692
+ * @param {*} [options] Override http request option.
6693
+ * @throws {RequiredError}
6694
+ * @memberof StaffPlanApi
6695
+ */
6696
+ staffPlanControllerPreview(id, planPreviewInputDTO, options) {
6697
+ return StaffPlanApiFp(this.configuration)
6698
+ .staffPlanControllerPreview(id, planPreviewInputDTO, options)
6699
+ .then((request) => request(this.axios, this.basePath));
6700
+ }
6701
+ /**
6702
+ * 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`
6703
+ * @summary Update a Plan
6704
+ * @param {string} id
6705
+ * @param {PlanUpdateInputDTO} [planUpdateInputDTO] PlanUpdateInputDTO
6706
+ * @param {*} [options] Override http request option.
6707
+ * @throws {RequiredError}
6708
+ * @memberof StaffPlanApi
6709
+ */
6710
+ staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
6711
+ return StaffPlanApiFp(this.configuration)
6712
+ .staffPlanControllerUpdate(id, planUpdateInputDTO, options)
6713
+ .then((request) => request(this.axios, this.basePath));
6714
+ }
6715
+ }
6716
+ /**
6717
+ * StaffTakaroAiApi - axios parameter creator
6718
+ * @export
6719
+ */
6720
+ export const StaffTakaroAiApiAxiosParamCreator = function (configuration) {
6721
+ return {
6722
+ /**
6723
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
6724
+ * @summary Clear the Takaro AI override of a Domain
6725
+ * @param {string} id
6726
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
6727
+ * @param {*} [options] Override http request option.
6728
+ * @throws {RequiredError}
6729
+ */
6730
+ staffTakaroAiControllerClearDomainOverride: async (id, takaroAiOverrideClearInputDTO, options = {}) => {
6731
+ // verify required parameter 'id' is not null or undefined
6732
+ assertParamExists('staffTakaroAiControllerClearDomainOverride', 'id', id);
6733
+ const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6734
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6735
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6736
+ let baseOptions;
6737
+ if (configuration) {
6738
+ baseOptions = configuration.baseOptions;
6739
+ }
6740
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
6741
+ const localVarHeaderParameter = {};
6742
+ const localVarQueryParameter = {};
6743
+ // authentication staffSession required
6744
+ // authentication adminAuth required
6745
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6746
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6747
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6748
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6749
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6750
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiOverrideClearInputDTO, localVarRequestOptions, configuration);
6751
+ return {
6752
+ url: toPathString(localVarUrlObj),
6753
+ options: localVarRequestOptions,
6754
+ };
6755
+ },
6756
+ /**
6757
+ * 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`
6758
+ * @summary Takaro AI allowance, override and spend of a Domain
6759
+ * @param {string} id
6760
+ * @param {*} [options] Override http request option.
6761
+ * @throws {RequiredError}
6762
+ */
6763
+ staffTakaroAiControllerGetDomain: async (id, options = {}) => {
6764
+ // verify required parameter 'id' is not null or undefined
6765
+ assertParamExists('staffTakaroAiControllerGetDomain', 'id', id);
6766
+ const localVarPath = `/staff/takaro-ai/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6767
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6768
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6769
+ let baseOptions;
6770
+ if (configuration) {
6771
+ baseOptions = configuration.baseOptions;
6772
+ }
6773
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6774
+ const localVarHeaderParameter = {};
6775
+ const localVarQueryParameter = {};
6776
+ // authentication staffSession required
6777
+ // authentication adminAuth required
6778
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6779
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6780
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6781
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6782
+ return {
6783
+ url: toPathString(localVarUrlObj),
6784
+ options: localVarRequestOptions,
6785
+ };
6786
+ },
6787
+ /**
6788
+ * 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`
6789
+ * @summary Takaro AI platform spend and global multiplier
6790
+ * @param {*} [options] Override http request option.
6791
+ * @throws {RequiredError}
6792
+ */
6793
+ staffTakaroAiControllerGetPlatform: async (options = {}) => {
6794
+ const localVarPath = `/staff/takaro-ai`;
6795
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6796
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6797
+ let baseOptions;
6798
+ if (configuration) {
6799
+ baseOptions = configuration.baseOptions;
6800
+ }
6801
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
6802
+ const localVarHeaderParameter = {};
6803
+ const localVarQueryParameter = {};
6804
+ // authentication staffSession required
6805
+ // authentication adminAuth required
6806
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6807
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6808
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6809
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6810
+ return {
6811
+ url: toPathString(localVarUrlObj),
6812
+ options: localVarRequestOptions,
6813
+ };
6814
+ },
6815
+ /**
6816
+ * 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`
6817
+ * @summary Set the Takaro AI override of a Domain
6818
+ * @param {string} id
6819
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
6820
+ * @param {*} [options] Override http request option.
6821
+ * @throws {RequiredError}
6822
+ */
6823
+ staffTakaroAiControllerSetDomainOverride: async (id, takaroAiDomainOverrideInputDTO, options = {}) => {
6824
+ // verify required parameter 'id' is not null or undefined
6825
+ assertParamExists('staffTakaroAiControllerSetDomainOverride', 'id', id);
6826
+ const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6827
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6828
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6829
+ let baseOptions;
6830
+ if (configuration) {
6831
+ baseOptions = configuration.baseOptions;
6832
+ }
6833
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
6834
+ const localVarHeaderParameter = {};
6835
+ const localVarQueryParameter = {};
6836
+ // authentication staffSession required
6837
+ // authentication adminAuth required
6838
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6839
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6840
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6841
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6842
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6843
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiDomainOverrideInputDTO, localVarRequestOptions, configuration);
6844
+ return {
6845
+ url: toPathString(localVarUrlObj),
6846
+ options: localVarRequestOptions,
6847
+ };
6848
+ },
6849
+ /**
6850
+ * 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`
6851
+ * @summary Set the Takaro AI global multiplier
6852
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
6853
+ * @param {*} [options] Override http request option.
6854
+ * @throws {RequiredError}
6855
+ */
6856
+ staffTakaroAiControllerSetGlobalMultiplier: async (takaroAiGlobalMultiplierInputDTO, options = {}) => {
6857
+ const localVarPath = `/staff/takaro-ai/global-multiplier`;
6858
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6859
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6860
+ let baseOptions;
6861
+ if (configuration) {
6862
+ baseOptions = configuration.baseOptions;
6863
+ }
6864
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
6865
+ const localVarHeaderParameter = {};
6866
+ const localVarQueryParameter = {};
6867
+ // authentication staffSession required
6868
+ // authentication adminAuth required
6869
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6870
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6871
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6872
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6873
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6874
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiGlobalMultiplierInputDTO, localVarRequestOptions, configuration);
6875
+ return {
6876
+ url: toPathString(localVarUrlObj),
6877
+ options: localVarRequestOptions,
6878
+ };
6879
+ },
6880
+ /**
6881
+ * 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`
6882
+ * @summary Set the CSMM Migration cap of a Domain
6883
+ * @param {string} id
6884
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
6885
+ * @param {*} [options] Override http request option.
6886
+ * @throws {RequiredError}
6887
+ */
6888
+ staffTakaroAiControllerSetMigrationCap: async (id, takaroAiMigrationCapInputDTO, options = {}) => {
6889
+ // verify required parameter 'id' is not null or undefined
6890
+ assertParamExists('staffTakaroAiControllerSetMigrationCap', 'id', id);
6891
+ const localVarPath = `/staff/takaro-ai/domain/{id}/migration-cap`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
6892
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6893
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6894
+ let baseOptions;
6895
+ if (configuration) {
6896
+ baseOptions = configuration.baseOptions;
6897
+ }
6898
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
6899
+ const localVarHeaderParameter = {};
6900
+ const localVarQueryParameter = {};
6901
+ // authentication staffSession required
6902
+ // authentication adminAuth required
6903
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
6904
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6905
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6906
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6907
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
6908
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiMigrationCapInputDTO, localVarRequestOptions, configuration);
6909
+ return {
6910
+ url: toPathString(localVarUrlObj),
6911
+ options: localVarRequestOptions,
6912
+ };
6913
+ },
6914
+ };
6915
+ };
6916
+ /**
6917
+ * StaffTakaroAiApi - functional programming interface
6918
+ * @export
6919
+ */
6920
+ export const StaffTakaroAiApiFp = function (configuration) {
6921
+ const localVarAxiosParamCreator = StaffTakaroAiApiAxiosParamCreator(configuration);
6922
+ return {
6923
+ /**
6924
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
6925
+ * @summary Clear the Takaro AI override of a Domain
6926
+ * @param {string} id
6927
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
6928
+ * @param {*} [options] Override http request option.
6929
+ * @throws {RequiredError}
6930
+ */
6931
+ async staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
6932
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options);
6933
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6934
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerClearDomainOverride']?.[localVarOperationServerIndex]?.url;
6935
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6936
+ },
6937
+ /**
6938
+ * 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`
6939
+ * @summary Takaro AI allowance, override and spend of a Domain
6940
+ * @param {string} id
6941
+ * @param {*} [options] Override http request option.
6942
+ * @throws {RequiredError}
6943
+ */
6944
+ async staffTakaroAiControllerGetDomain(id, options) {
6945
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetDomain(id, options);
6946
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6947
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetDomain']?.[localVarOperationServerIndex]?.url;
6948
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6949
+ },
6950
+ /**
6951
+ * 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`
6952
+ * @summary Takaro AI platform spend and global multiplier
6953
+ * @param {*} [options] Override http request option.
6954
+ * @throws {RequiredError}
6955
+ */
6956
+ async staffTakaroAiControllerGetPlatform(options) {
6957
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetPlatform(options);
6958
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6959
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetPlatform']?.[localVarOperationServerIndex]?.url;
6960
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6961
+ },
6962
+ /**
6963
+ * 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`
6964
+ * @summary Set the Takaro AI override of a Domain
6965
+ * @param {string} id
6966
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
6967
+ * @param {*} [options] Override http request option.
6968
+ * @throws {RequiredError}
6969
+ */
6970
+ async staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
6971
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options);
6972
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6973
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetDomainOverride']?.[localVarOperationServerIndex]
6974
+ ?.url;
6975
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6976
+ },
6977
+ /**
6978
+ * 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`
6979
+ * @summary Set the Takaro AI global multiplier
6980
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
6981
+ * @param {*} [options] Override http request option.
6982
+ * @throws {RequiredError}
6983
+ */
6984
+ async staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
6985
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options);
6986
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
6987
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetGlobalMultiplier']?.[localVarOperationServerIndex]?.url;
6988
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6989
+ },
6990
+ /**
6991
+ * 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`
6992
+ * @summary Set the CSMM Migration cap of a Domain
6993
+ * @param {string} id
6994
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
6995
+ * @param {*} [options] Override http request option.
6996
+ * @throws {RequiredError}
6997
+ */
6998
+ async staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
6999
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options);
7000
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7001
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetMigrationCap']?.[localVarOperationServerIndex]
7002
+ ?.url;
7003
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7004
+ },
7005
+ };
7006
+ };
7007
+ /**
7008
+ * StaffTakaroAiApi - factory interface
7009
+ * @export
7010
+ */
7011
+ export const StaffTakaroAiApiFactory = function (configuration, basePath, axios) {
7012
+ const localVarFp = StaffTakaroAiApiFp(configuration);
7013
+ return {
7014
+ /**
7015
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
7016
+ * @summary Clear the Takaro AI override of a Domain
7017
+ * @param {string} id
7018
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
7019
+ * @param {*} [options] Override http request option.
7020
+ * @throws {RequiredError}
7021
+ */
7022
+ staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
7023
+ return localVarFp
7024
+ .staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
7025
+ .then((request) => request(axios, basePath));
7026
+ },
7027
+ /**
7028
+ * 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`
7029
+ * @summary Takaro AI allowance, override and spend of a Domain
7030
+ * @param {string} id
7031
+ * @param {*} [options] Override http request option.
7032
+ * @throws {RequiredError}
7033
+ */
7034
+ staffTakaroAiControllerGetDomain(id, options) {
7035
+ return localVarFp.staffTakaroAiControllerGetDomain(id, options).then((request) => request(axios, basePath));
7036
+ },
7037
+ /**
7038
+ * 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`
7039
+ * @summary Takaro AI platform spend and global multiplier
7040
+ * @param {*} [options] Override http request option.
7041
+ * @throws {RequiredError}
7042
+ */
7043
+ staffTakaroAiControllerGetPlatform(options) {
7044
+ return localVarFp.staffTakaroAiControllerGetPlatform(options).then((request) => request(axios, basePath));
7045
+ },
7046
+ /**
7047
+ * 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`
7048
+ * @summary Set the Takaro AI override of a Domain
7049
+ * @param {string} id
7050
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
7051
+ * @param {*} [options] Override http request option.
7052
+ * @throws {RequiredError}
7053
+ */
7054
+ staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
7055
+ return localVarFp
7056
+ .staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
7057
+ .then((request) => request(axios, basePath));
7058
+ },
7059
+ /**
7060
+ * 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`
7061
+ * @summary Set the Takaro AI global multiplier
7062
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
7063
+ * @param {*} [options] Override http request option.
7064
+ * @throws {RequiredError}
7065
+ */
7066
+ staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
7067
+ return localVarFp
7068
+ .staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
7069
+ .then((request) => request(axios, basePath));
7070
+ },
7071
+ /**
7072
+ * 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`
7073
+ * @summary Set the CSMM Migration cap of a Domain
7074
+ * @param {string} id
7075
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
7076
+ * @param {*} [options] Override http request option.
7077
+ * @throws {RequiredError}
7078
+ */
7079
+ staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
7080
+ return localVarFp
7081
+ .staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
7082
+ .then((request) => request(axios, basePath));
7083
+ },
7084
+ };
7085
+ };
7086
+ /**
7087
+ * StaffTakaroAiApi - object-oriented interface
7088
+ * @export
7089
+ * @class StaffTakaroAiApi
7090
+ * @extends {BaseAPI}
7091
+ */
7092
+ export class StaffTakaroAiApi extends BaseAPI {
7093
+ /**
7094
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
7095
+ * @summary Clear the Takaro AI override of a Domain
7096
+ * @param {string} id
7097
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
7098
+ * @param {*} [options] Override http request option.
7099
+ * @throws {RequiredError}
7100
+ * @memberof StaffTakaroAiApi
7101
+ */
7102
+ staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
7103
+ return StaffTakaroAiApiFp(this.configuration)
7104
+ .staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
7105
+ .then((request) => request(this.axios, this.basePath));
7106
+ }
7107
+ /**
7108
+ * 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`
7109
+ * @summary Takaro AI allowance, override and spend of a Domain
7110
+ * @param {string} id
7111
+ * @param {*} [options] Override http request option.
7112
+ * @throws {RequiredError}
7113
+ * @memberof StaffTakaroAiApi
7114
+ */
7115
+ staffTakaroAiControllerGetDomain(id, options) {
7116
+ return StaffTakaroAiApiFp(this.configuration)
7117
+ .staffTakaroAiControllerGetDomain(id, options)
7118
+ .then((request) => request(this.axios, this.basePath));
7119
+ }
7120
+ /**
7121
+ * 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`
7122
+ * @summary Takaro AI platform spend and global multiplier
7123
+ * @param {*} [options] Override http request option.
7124
+ * @throws {RequiredError}
7125
+ * @memberof StaffTakaroAiApi
7126
+ */
7127
+ staffTakaroAiControllerGetPlatform(options) {
7128
+ return StaffTakaroAiApiFp(this.configuration)
7129
+ .staffTakaroAiControllerGetPlatform(options)
7130
+ .then((request) => request(this.axios, this.basePath));
7131
+ }
7132
+ /**
7133
+ * 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`
7134
+ * @summary Set the Takaro AI override of a Domain
7135
+ * @param {string} id
7136
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
7137
+ * @param {*} [options] Override http request option.
7138
+ * @throws {RequiredError}
7139
+ * @memberof StaffTakaroAiApi
7140
+ */
7141
+ staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
7142
+ return StaffTakaroAiApiFp(this.configuration)
7143
+ .staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
7144
+ .then((request) => request(this.axios, this.basePath));
7145
+ }
7146
+ /**
7147
+ * 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`
7148
+ * @summary Set the Takaro AI global multiplier
7149
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
7150
+ * @param {*} [options] Override http request option.
7151
+ * @throws {RequiredError}
7152
+ * @memberof StaffTakaroAiApi
7153
+ */
7154
+ staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
7155
+ return StaffTakaroAiApiFp(this.configuration)
7156
+ .staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
7157
+ .then((request) => request(this.axios, this.basePath));
7158
+ }
7159
+ /**
7160
+ * 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`
7161
+ * @summary Set the CSMM Migration cap of a Domain
7162
+ * @param {string} id
7163
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
7164
+ * @param {*} [options] Override http request option.
7165
+ * @throws {RequiredError}
7166
+ * @memberof StaffTakaroAiApi
7167
+ */
7168
+ staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
7169
+ return StaffTakaroAiApiFp(this.configuration)
7170
+ .staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
5156
7171
  .then((request) => request(this.axios, this.basePath));
5157
7172
  }
5158
7173
  }