@takaro/apiclient 0.0.0-dev.7294480 → 0.0.0-dev.729df68

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 (40) hide show
  1. package/dist/.source-hash +1 -1
  2. package/dist/generated/api.d.ts +8352 -2181
  3. package/dist/generated/api.d.ts.map +1 -1
  4. package/dist/generated/api.js +2916 -246
  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.map +1 -1
  9. package/dist/generated/common.js.map +1 -1
  10. package/dist/generated/configuration.d.ts.map +1 -1
  11. package/dist/generated/configuration.js.map +1 -1
  12. package/dist/generated-management/api.d.ts +10317 -5929
  13. package/dist/generated-management/api.d.ts.map +1 -1
  14. package/dist/generated-management/api.js +1492 -111
  15. package/dist/generated-management/api.js.map +1 -1
  16. package/dist/generated-management/base.d.ts.map +1 -1
  17. package/dist/generated-management/base.js.map +1 -1
  18. package/dist/generated-management/common.d.ts.map +1 -1
  19. package/dist/generated-management/common.js.map +1 -1
  20. package/dist/generated-management/configuration.d.ts.map +1 -1
  21. package/dist/generated-management/configuration.js.map +1 -1
  22. package/dist/lib/adminClient.d.ts +3 -1
  23. package/dist/lib/adminClient.d.ts.map +1 -1
  24. package/dist/lib/adminClient.js +7 -1
  25. package/dist/lib/adminClient.js.map +1 -1
  26. package/dist/lib/baseClient.d.ts.map +1 -1
  27. package/dist/lib/client.d.ts +3 -1
  28. package/dist/lib/client.d.ts.map +1 -1
  29. package/dist/lib/client.js +22 -11
  30. package/dist/lib/client.js.map +1 -1
  31. package/dist/lib/distributorClient.d.ts.map +1 -1
  32. package/dist/lib/staffClient.d.ts +3 -1
  33. package/dist/lib/staffClient.d.ts.map +1 -1
  34. package/dist/lib/staffClient.js +5 -1
  35. package/dist/lib/staffClient.js.map +1 -1
  36. package/dist/main.d.ts +3 -3
  37. package/dist/main.d.ts.map +1 -1
  38. package/dist/main.js +1 -1
  39. package/dist/main.js.map +1 -1
  40. package/package.json +5 -4
@@ -47,14 +47,17 @@ export const ApiKeySearchInputDTOSortDirectionEnum = {
47
47
  Asc: 'asc',
48
48
  Desc: 'desc',
49
49
  };
50
- export const DistributorBackedDomainOutputDTOStateEnum = {
51
- Active: 'ACTIVE',
52
- Disabled: 'DISABLED',
53
- Maintenance: 'MAINTENANCE',
50
+ export const ConnectorMigrationOutputDTOStatusEnum = {
51
+ Pending: 'pending',
52
+ Completed: 'completed',
53
+ Cancelled: 'cancelled',
54
+ Reverted: 'reverted',
54
55
  };
55
- export const DistributorBackedDomainSearchInputDTOSortDirectionEnum = {
56
- Asc: 'asc',
57
- Desc: 'desc',
56
+ export const ConnectorMigrationOutputDTOLegacyTypeEnum = {
57
+ Sevendaystodie: 'SEVENDAYSTODIE',
58
+ Rust: 'RUST',
59
+ Generic: 'GENERIC',
60
+ Mock: 'MOCK',
58
61
  };
59
62
  export const DistributorDomainSearchInputAllowedFiltersStateEnum = {
60
63
  Active: 'ACTIVE',
@@ -86,6 +89,21 @@ export const DomainCreateInputDTOStateEnum = {
86
89
  Disabled: 'DISABLED',
87
90
  Maintenance: 'MAINTENANCE',
88
91
  };
92
+ export const DomainLimitOutputDTOSourceEnum = {
93
+ Plan: 'plan',
94
+ Override: 'override',
95
+ Adoption: 'adoption',
96
+ Unmanaged: 'unmanaged',
97
+ };
98
+ export const DomainLimitOverrideChangeOutputDTOActionEnum = {
99
+ Set: 'set',
100
+ Clear: 'clear',
101
+ };
102
+ export const DomainLimitOverrideChangeOutputDTOActorKindEnum = {
103
+ StaffSession: 'staffSession',
104
+ AdminSecret: 'adminSecret',
105
+ System: 'system',
106
+ };
89
107
  export const DomainOutputDTOStateEnum = {
90
108
  Active: 'ACTIVE',
91
109
  Disabled: 'DISABLED',
@@ -152,6 +170,7 @@ export const EventCreateDTOEventNameEnum = {
152
170
  SettingsSet: 'settings-set',
153
171
  PlayerNewIpDetected: 'player-new-ip-detected',
154
172
  PlayerNewNameDetected: 'player-new-name-detected',
173
+ PlayerIdentityConflict: 'player-identity-conflict',
155
174
  ServerStatusChanged: 'server-status-changed',
156
175
  ModuleCreated: 'module-created',
157
176
  ModuleUpdated: 'module-updated',
@@ -166,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,6 +206,11 @@ 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',
186
214
  ItemsGiven: 'items-given',
187
215
  PlayerConnected: 'player-connected',
188
216
  PlayerDisconnected: 'player-disconnected',
@@ -190,6 +218,15 @@ export const EventCreateDTOEventNameEnum = {
190
218
  PlayerDeath: 'player-death',
191
219
  EntityKilled: 'entity-killed',
192
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
+ };
193
230
  export const EventOutputDTOEventNameEnum = {
194
231
  RoleAssigned: 'role-assigned',
195
232
  RoleRemoved: 'role-removed',
@@ -206,6 +243,7 @@ export const EventOutputDTOEventNameEnum = {
206
243
  SettingsSet: 'settings-set',
207
244
  PlayerNewIpDetected: 'player-new-ip-detected',
208
245
  PlayerNewNameDetected: 'player-new-name-detected',
246
+ PlayerIdentityConflict: 'player-identity-conflict',
209
247
  ServerStatusChanged: 'server-status-changed',
210
248
  ModuleCreated: 'module-created',
211
249
  ModuleUpdated: 'module-updated',
@@ -220,14 +258,18 @@ export const EventOutputDTOEventNameEnum = {
220
258
  ShopOrderStatusChanged: 'shop-order-status-changed',
221
259
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
222
260
  PlayerLinked: 'player-linked',
261
+ PlayerUnlinked: 'player-unlinked',
262
+ PlayerMerged: 'player-merged',
223
263
  GameserverCreated: 'gameserver-created',
224
264
  GameserverUpdated: 'gameserver-updated',
265
+ GameserverVersionChanged: 'gameserver-version-changed',
225
266
  GameserverDeleted: 'gameserver-deleted',
226
267
  PlayerBanned: 'player-banned',
227
268
  PlayerUnbanned: 'player-unbanned',
228
269
  PlayerDeleted: 'player-deleted',
229
270
  ShopActionExecuted: 'shop-action-executed',
230
271
  PlayerInventoryChanged: 'player-inventory-changed',
272
+ PlayerLevelChanged: 'player-level-changed',
231
273
  EventRateLimited: 'event-rate-limited',
232
274
  PlayerSyncSnapshot: 'player-sync-snapshot',
233
275
  InviteLinkCreated: 'invite-link-created',
@@ -237,6 +279,11 @@ export const EventOutputDTOEventNameEnum = {
237
279
  DomainCreated: 'domain-created',
238
280
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
239
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',
240
287
  ItemsGiven: 'items-given',
241
288
  PlayerConnected: 'player-connected',
242
289
  PlayerDisconnected: 'player-disconnected',
@@ -251,6 +298,7 @@ export const FixtureHistoryConflictDTOKindEnum = {
251
298
  export const FixtureHistoryDeleteInputDTOStoreEnum = {
252
299
  Analytics: 'analytics',
253
300
  Postgres: 'postgres',
301
+ Tracking: 'tracking',
254
302
  };
255
303
  export const FixtureHistoryEventDTOEventNameEnum = {
256
304
  PlayerConnected: 'player-connected',
@@ -269,18 +317,44 @@ export const FixtureHistoryOrderDTOStatusEnum = {
269
317
  Completed: 'COMPLETED',
270
318
  Canceled: 'CANCELED',
271
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
+ };
272
334
  export const GameServerCreateDTOTypeEnum = {
273
335
  Sevendaystodie: 'SEVENDAYSTODIE',
274
336
  Rust: 'RUST',
275
337
  Generic: 'GENERIC',
276
338
  Mock: 'MOCK',
277
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
+ };
278
348
  export const GameServerOutputDTOTypeEnum = {
279
349
  Sevendaystodie: 'SEVENDAYSTODIE',
280
350
  Rust: 'RUST',
281
351
  Generic: 'GENERIC',
282
352
  Mock: 'MOCK',
283
353
  };
354
+ export const GameServerOutputDTONameSourceEnum = {
355
+ Connector: 'connector',
356
+ Operator: 'operator',
357
+ };
284
358
  export const GameServerTypesOutputDTOTypeEnum = {
285
359
  Sevendaystodie: 'SEVENDAYSTODIE',
286
360
  Rust: 'RUST',
@@ -303,13 +377,18 @@ export const GetJobInputDTOTypeEnum = {
303
377
  SyncItems: 'syncItems',
304
378
  SyncEntities: 'syncEntities',
305
379
  SyncBans: 'syncBans',
380
+ SyncLocations: 'syncLocations',
306
381
  SyncMapImages: 'syncMapImages',
307
382
  SyncMapUploads: 'syncMapUploads',
383
+ SyncGameIcons: 'syncGameIcons',
308
384
  SyncSteam: 'syncSteam',
309
385
  SyncDiscordRoles: 'syncDiscordRoles',
310
386
  EmitRateLimitSummary: 'emitRateLimitSummary',
311
387
  CleanRevokedApiKeys: 'cleanRevokedApiKeys',
312
388
  CleanExecutionClaims: 'cleanExecutionClaims',
389
+ DeleteClickHouseEvents: 'deleteClickHouseEvents',
390
+ RepointClickHouseEvents: 'repointClickHouseEvents',
391
+ CleanConnectorMigrations: 'cleanConnectorMigrations',
313
392
  };
314
393
  export const HookCreateDTOEventTypeEnum = {
315
394
  Log: 'log',
@@ -334,6 +413,7 @@ export const HookCreateDTOEventTypeEnum = {
334
413
  SettingsSet: 'settings-set',
335
414
  PlayerNewIpDetected: 'player-new-ip-detected',
336
415
  PlayerNewNameDetected: 'player-new-name-detected',
416
+ PlayerIdentityConflict: 'player-identity-conflict',
337
417
  ServerStatusChanged: 'server-status-changed',
338
418
  ModuleCreated: 'module-created',
339
419
  ModuleUpdated: 'module-updated',
@@ -348,14 +428,18 @@ export const HookCreateDTOEventTypeEnum = {
348
428
  ShopOrderStatusChanged: 'shop-order-status-changed',
349
429
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
350
430
  PlayerLinked: 'player-linked',
431
+ PlayerUnlinked: 'player-unlinked',
432
+ PlayerMerged: 'player-merged',
351
433
  GameserverCreated: 'gameserver-created',
352
434
  GameserverUpdated: 'gameserver-updated',
435
+ GameserverVersionChanged: 'gameserver-version-changed',
353
436
  GameserverDeleted: 'gameserver-deleted',
354
437
  PlayerBanned: 'player-banned',
355
438
  PlayerUnbanned: 'player-unbanned',
356
439
  PlayerDeleted: 'player-deleted',
357
440
  ShopActionExecuted: 'shop-action-executed',
358
441
  PlayerInventoryChanged: 'player-inventory-changed',
442
+ PlayerLevelChanged: 'player-level-changed',
359
443
  EventRateLimited: 'event-rate-limited',
360
444
  PlayerSyncSnapshot: 'player-sync-snapshot',
361
445
  InviteLinkCreated: 'invite-link-created',
@@ -365,6 +449,11 @@ export const HookCreateDTOEventTypeEnum = {
365
449
  DomainCreated: 'domain-created',
366
450
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
367
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',
368
457
  ItemsGiven: 'items-given',
369
458
  };
370
459
  export const HookOutputDTOEventTypeEnum = {
@@ -390,6 +479,7 @@ export const HookOutputDTOEventTypeEnum = {
390
479
  SettingsSet: 'settings-set',
391
480
  PlayerNewIpDetected: 'player-new-ip-detected',
392
481
  PlayerNewNameDetected: 'player-new-name-detected',
482
+ PlayerIdentityConflict: 'player-identity-conflict',
393
483
  ServerStatusChanged: 'server-status-changed',
394
484
  ModuleCreated: 'module-created',
395
485
  ModuleUpdated: 'module-updated',
@@ -404,14 +494,18 @@ export const HookOutputDTOEventTypeEnum = {
404
494
  ShopOrderStatusChanged: 'shop-order-status-changed',
405
495
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
406
496
  PlayerLinked: 'player-linked',
497
+ PlayerUnlinked: 'player-unlinked',
498
+ PlayerMerged: 'player-merged',
407
499
  GameserverCreated: 'gameserver-created',
408
500
  GameserverUpdated: 'gameserver-updated',
501
+ GameserverVersionChanged: 'gameserver-version-changed',
409
502
  GameserverDeleted: 'gameserver-deleted',
410
503
  PlayerBanned: 'player-banned',
411
504
  PlayerUnbanned: 'player-unbanned',
412
505
  PlayerDeleted: 'player-deleted',
413
506
  ShopActionExecuted: 'shop-action-executed',
414
507
  PlayerInventoryChanged: 'player-inventory-changed',
508
+ PlayerLevelChanged: 'player-level-changed',
415
509
  EventRateLimited: 'event-rate-limited',
416
510
  PlayerSyncSnapshot: 'player-sync-snapshot',
417
511
  InviteLinkCreated: 'invite-link-created',
@@ -421,6 +515,11 @@ export const HookOutputDTOEventTypeEnum = {
421
515
  DomainCreated: 'domain-created',
422
516
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
423
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',
424
523
  ItemsGiven: 'items-given',
425
524
  };
426
525
  export const HookTriggerDTOEventTypeEnum = {
@@ -446,6 +545,7 @@ export const HookTriggerDTOEventTypeEnum = {
446
545
  SettingsSet: 'settings-set',
447
546
  PlayerNewIpDetected: 'player-new-ip-detected',
448
547
  PlayerNewNameDetected: 'player-new-name-detected',
548
+ PlayerIdentityConflict: 'player-identity-conflict',
449
549
  ServerStatusChanged: 'server-status-changed',
450
550
  ModuleCreated: 'module-created',
451
551
  ModuleUpdated: 'module-updated',
@@ -460,14 +560,18 @@ export const HookTriggerDTOEventTypeEnum = {
460
560
  ShopOrderStatusChanged: 'shop-order-status-changed',
461
561
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
462
562
  PlayerLinked: 'player-linked',
563
+ PlayerUnlinked: 'player-unlinked',
564
+ PlayerMerged: 'player-merged',
463
565
  GameserverCreated: 'gameserver-created',
464
566
  GameserverUpdated: 'gameserver-updated',
567
+ GameserverVersionChanged: 'gameserver-version-changed',
465
568
  GameserverDeleted: 'gameserver-deleted',
466
569
  PlayerBanned: 'player-banned',
467
570
  PlayerUnbanned: 'player-unbanned',
468
571
  PlayerDeleted: 'player-deleted',
469
572
  ShopActionExecuted: 'shop-action-executed',
470
573
  PlayerInventoryChanged: 'player-inventory-changed',
574
+ PlayerLevelChanged: 'player-level-changed',
471
575
  EventRateLimited: 'event-rate-limited',
472
576
  PlayerSyncSnapshot: 'player-sync-snapshot',
473
577
  InviteLinkCreated: 'invite-link-created',
@@ -477,6 +581,11 @@ export const HookTriggerDTOEventTypeEnum = {
477
581
  DomainCreated: 'domain-created',
478
582
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
479
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',
480
589
  ItemsGiven: 'items-given',
481
590
  };
482
591
  export const HookUpdateDTOEventTypeEnum = {
@@ -502,6 +611,7 @@ export const HookUpdateDTOEventTypeEnum = {
502
611
  SettingsSet: 'settings-set',
503
612
  PlayerNewIpDetected: 'player-new-ip-detected',
504
613
  PlayerNewNameDetected: 'player-new-name-detected',
614
+ PlayerIdentityConflict: 'player-identity-conflict',
505
615
  ServerStatusChanged: 'server-status-changed',
506
616
  ModuleCreated: 'module-created',
507
617
  ModuleUpdated: 'module-updated',
@@ -516,14 +626,18 @@ export const HookUpdateDTOEventTypeEnum = {
516
626
  ShopOrderStatusChanged: 'shop-order-status-changed',
517
627
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
518
628
  PlayerLinked: 'player-linked',
629
+ PlayerUnlinked: 'player-unlinked',
630
+ PlayerMerged: 'player-merged',
519
631
  GameserverCreated: 'gameserver-created',
520
632
  GameserverUpdated: 'gameserver-updated',
633
+ GameserverVersionChanged: 'gameserver-version-changed',
521
634
  GameserverDeleted: 'gameserver-deleted',
522
635
  PlayerBanned: 'player-banned',
523
636
  PlayerUnbanned: 'player-unbanned',
524
637
  PlayerDeleted: 'player-deleted',
525
638
  ShopActionExecuted: 'shop-action-executed',
526
639
  PlayerInventoryChanged: 'player-inventory-changed',
640
+ PlayerLevelChanged: 'player-level-changed',
527
641
  EventRateLimited: 'event-rate-limited',
528
642
  PlayerSyncSnapshot: 'player-sync-snapshot',
529
643
  InviteLinkCreated: 'invite-link-created',
@@ -533,6 +647,11 @@ export const HookUpdateDTOEventTypeEnum = {
533
647
  DomainCreated: 'domain-created',
534
648
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
535
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',
536
655
  ItemsGiven: 'items-given',
537
656
  };
538
657
  export const IEntityDTOTypeEnum = {
@@ -563,6 +682,7 @@ export const IHookEventTypeEnum = {
563
682
  SettingsSet: 'settings-set',
564
683
  PlayerNewIpDetected: 'player-new-ip-detected',
565
684
  PlayerNewNameDetected: 'player-new-name-detected',
685
+ PlayerIdentityConflict: 'player-identity-conflict',
566
686
  ServerStatusChanged: 'server-status-changed',
567
687
  ModuleCreated: 'module-created',
568
688
  ModuleUpdated: 'module-updated',
@@ -577,14 +697,18 @@ export const IHookEventTypeEnum = {
577
697
  ShopOrderStatusChanged: 'shop-order-status-changed',
578
698
  ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
579
699
  PlayerLinked: 'player-linked',
700
+ PlayerUnlinked: 'player-unlinked',
701
+ PlayerMerged: 'player-merged',
580
702
  GameserverCreated: 'gameserver-created',
581
703
  GameserverUpdated: 'gameserver-updated',
704
+ GameserverVersionChanged: 'gameserver-version-changed',
582
705
  GameserverDeleted: 'gameserver-deleted',
583
706
  PlayerBanned: 'player-banned',
584
707
  PlayerUnbanned: 'player-unbanned',
585
708
  PlayerDeleted: 'player-deleted',
586
709
  ShopActionExecuted: 'shop-action-executed',
587
710
  PlayerInventoryChanged: 'player-inventory-changed',
711
+ PlayerLevelChanged: 'player-level-changed',
588
712
  EventRateLimited: 'event-rate-limited',
589
713
  PlayerSyncSnapshot: 'player-sync-snapshot',
590
714
  InviteLinkCreated: 'invite-link-created',
@@ -594,12 +718,40 @@ export const IHookEventTypeEnum = {
594
718
  DomainCreated: 'domain-created',
595
719
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
596
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',
597
726
  ItemsGiven: 'items-given',
598
727
  };
599
728
  export const ITakaroQuerySortDirectionEnum = {
600
729
  Asc: 'asc',
601
730
  Desc: 'desc',
602
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
+ };
603
755
  export const InviteLinkCreateResultDTOStatusEnum = {
604
756
  Active: 'ACTIVE',
605
757
  Revoked: 'REVOKED',
@@ -705,12 +857,18 @@ export const PERMISSIONS = {
705
857
  ViewDiscordInfo: 'VIEW_DISCORD_INFO',
706
858
  SendDiscordMessage: 'SEND_DISCORD_MESSAGE',
707
859
  ManageApiKeys: 'MANAGE_API_KEYS',
860
+ ReadMap: 'READ_MAP',
861
+ ReadTracking: 'READ_TRACKING',
708
862
  };
709
- export const PlanPriceDTOIntervalEnum = {
710
- Day: 'day',
711
- Week: 'week',
712
- Month: 'month',
713
- 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',
714
872
  };
715
873
  export const PlayerOnGameServerSearchInputDTOExtendEnum = {
716
874
  GameServer: 'gameServer',
@@ -734,6 +892,15 @@ export const PlayerSearchInputDTOSortDirectionEnum = {
734
892
  Asc: 'asc',
735
893
  Desc: 'desc',
736
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
+ };
737
904
  export const RecentOrderDTOStatusEnum = {
738
905
  Completed: 'COMPLETED',
739
906
  Paid: 'PAID',
@@ -862,6 +1029,12 @@ export const StorefrontDomainOutputDTOCustomDomainStateEnum = {
862
1029
  Verified: 'VERIFIED',
863
1030
  Failed: 'FAILED',
864
1031
  };
1032
+ export const StripePriceDTOIntervalEnum = {
1033
+ Day: 'day',
1034
+ Week: 'week',
1035
+ Month: 'month',
1036
+ Year: 'year',
1037
+ };
865
1038
  export const TakaroAiDomainOutputDTOOverrideStateEnum = {
866
1039
  None: 'none',
867
1040
  Active: 'active',
@@ -894,16 +1067,82 @@ export const TakaroAiUsageOutputDTOStatusEnum = {
894
1067
  NoAllowance: 'noAllowance',
895
1068
  NeedsGameServer: 'needsGameServer',
896
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
+ };
897
1080
  export const TakaroEventItemsGivenLineResultEnum = {
898
1081
  Delivered: 'DELIVERED',
899
1082
  Failed: 'FAILED',
900
1083
  Unknown: 'UNKNOWN',
901
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
+ };
902
1097
  export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
903
1098
  Added: 'added',
904
1099
  Removed: 'removed',
905
1100
  Changed: 'changed',
906
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
+ };
907
1146
  export const TakaroEventRateLimitedScopeEnum = {
908
1147
  Server: 'server',
909
1148
  Domain: 'domain',
@@ -1048,11 +1287,27 @@ export const TriggerJobInputDTOTypeEnum = {
1048
1287
  SyncItems: 'syncItems',
1049
1288
  SyncEntities: 'syncEntities',
1050
1289
  SyncBans: 'syncBans',
1290
+ SyncLocations: 'syncLocations',
1051
1291
  SyncMapImages: 'syncMapImages',
1052
1292
  SyncMapUploads: 'syncMapUploads',
1293
+ SyncGameIcons: 'syncGameIcons',
1053
1294
  SyncSteam: 'syncSteam',
1054
1295
  SyncDiscordRoles: 'syncDiscordRoles',
1055
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
+ };
1056
1311
  export const UserSearchInputDTOExtendEnum = {
1057
1312
  Roles: 'roles',
1058
1313
  };
@@ -1817,7 +2072,7 @@ export class DistributorApi extends BaseAPI {
1817
2072
  export const DistributorSelfServiceApiAxiosParamCreator = function (configuration) {
1818
2073
  return {
1819
2074
  /**
1820
- * 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`
1821
2076
  * @summary Create a domain
1822
2077
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
1823
2078
  * @param {*} [options] Override http request option.
@@ -2127,7 +2382,7 @@ export const DistributorSelfServiceApiAxiosParamCreator = function (configuratio
2127
2382
  };
2128
2383
  },
2129
2384
  /**
2130
- * 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`
2131
2386
  * @summary Change one of my domains’ Plan
2132
2387
  * @param {string} id
2133
2388
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -2170,7 +2425,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
2170
2425
  const localVarAxiosParamCreator = DistributorSelfServiceApiAxiosParamCreator(configuration);
2171
2426
  return {
2172
2427
  /**
2173
- * 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`
2174
2429
  * @summary Create a domain
2175
2430
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
2176
2431
  * @param {*} [options] Override http request option.
@@ -2300,7 +2555,7 @@ export const DistributorSelfServiceApiFp = function (configuration) {
2300
2555
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2301
2556
  },
2302
2557
  /**
2303
- * 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`
2304
2559
  * @summary Change one of my domains’ Plan
2305
2560
  * @param {string} id
2306
2561
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -2323,7 +2578,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
2323
2578
  const localVarFp = DistributorSelfServiceApiFp(configuration);
2324
2579
  return {
2325
2580
  /**
2326
- * 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`
2327
2582
  * @summary Create a domain
2328
2583
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
2329
2584
  * @param {*} [options] Override http request option.
@@ -2441,7 +2696,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
2441
2696
  .then((request) => request(axios, basePath));
2442
2697
  },
2443
2698
  /**
2444
- * 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`
2445
2700
  * @summary Change one of my domains’ Plan
2446
2701
  * @param {string} id
2447
2702
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -2463,7 +2718,7 @@ export const DistributorSelfServiceApiFactory = function (configuration, basePat
2463
2718
  */
2464
2719
  export class DistributorSelfServiceApi extends BaseAPI {
2465
2720
  /**
2466
- * 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`
2467
2722
  * @summary Create a domain
2468
2723
  * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
2469
2724
  * @param {*} [options] Override http request option.
@@ -2593,7 +2848,7 @@ export class DistributorSelfServiceApi extends BaseAPI {
2593
2848
  .then((request) => request(this.axios, this.basePath));
2594
2849
  }
2595
2850
  /**
2596
- * 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`
2597
2852
  * @summary Change one of my domains’ Plan
2598
2853
  * @param {string} id
2599
2854
  * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
@@ -2905,21 +3160,58 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2905
3160
  };
2906
3161
  },
2907
3162
  /**
2908
- * 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`
2909
- * @summary Search distributor-backed domains
2910
- * @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
2911
3167
  * @param {*} [options] Override http request option.
2912
3168
  * @throws {RequiredError}
2913
3169
  */
2914
- domainControllerSearchDistributorBacked: async (distributorBackedDomainSearchInputDTO, options = {}) => {
2915
- 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)));
2916
3174
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2917
3175
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2918
3176
  let baseOptions;
2919
3177
  if (configuration) {
2920
3178
  baseOptions = configuration.baseOptions;
2921
3179
  }
2922
- 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 };
2923
3215
  const localVarHeaderParameter = {};
2924
3216
  const localVarQueryParameter = {};
2925
3217
  // authentication staffSession required
@@ -2929,7 +3221,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2929
3221
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2930
3222
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2931
3223
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2932
- localVarRequestOptions.data = serializeDataIfNeeded(distributorBackedDomainSearchInputDTO, localVarRequestOptions, configuration);
3224
+ localVarRequestOptions.data = serializeDataIfNeeded(staffDomainPlanInputDTO, localVarRequestOptions, configuration);
2933
3225
  return {
2934
3226
  url: toPathString(localVarUrlObj),
2935
3227
  options: localVarRequestOptions,
@@ -3099,16 +3391,31 @@ export const DomainApiFp = function (configuration) {
3099
3391
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3100
3392
  },
3101
3393
  /**
3102
- * 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`
3103
- * @summary Search distributor-backed domains
3104
- * @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
3105
3412
  * @param {*} [options] Override http request option.
3106
3413
  * @throws {RequiredError}
3107
3414
  */
3108
- async domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
3109
- const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options);
3415
+ async domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
3416
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options);
3110
3417
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3111
- const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSearchDistributorBacked']?.[localVarOperationServerIndex]?.url;
3418
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSetPlanByStaff']?.[localVarOperationServerIndex]?.url;
3112
3419
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3113
3420
  },
3114
3421
  /**
@@ -3238,15 +3545,29 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
3238
3545
  .then((request) => request(axios, basePath));
3239
3546
  },
3240
3547
  /**
3241
- * 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`
3242
- * @summary Search distributor-backed domains
3243
- * @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
3244
3565
  * @param {*} [options] Override http request option.
3245
3566
  * @throws {RequiredError}
3246
3567
  */
3247
- domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
3568
+ domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
3248
3569
  return localVarFp
3249
- .domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options)
3570
+ .domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
3250
3571
  .then((request) => request(axios, basePath));
3251
3572
  },
3252
3573
  /**
@@ -3392,16 +3713,31 @@ export class DomainApi extends BaseAPI {
3392
3713
  .then((request) => request(this.axios, this.basePath));
3393
3714
  }
3394
3715
  /**
3395
- * 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`
3396
- * @summary Search distributor-backed domains
3397
- * @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
3398
3734
  * @param {*} [options] Override http request option.
3399
3735
  * @throws {RequiredError}
3400
3736
  * @memberof DomainApi
3401
3737
  */
3402
- domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
3738
+ domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options) {
3403
3739
  return DomainApiFp(this.configuration)
3404
- .domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options)
3740
+ .domainControllerSetPlanByStaff(id, staffDomainPlanInputDTO, options)
3405
3741
  .then((request) => request(this.axios, this.basePath));
3406
3742
  }
3407
3743
  /**
@@ -3876,6 +4212,72 @@ export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
3876
4212
  options: localVarRequestOptions,
3877
4213
  };
3878
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
+ },
3879
4281
  };
3880
4282
  };
3881
4283
  /**
@@ -4074,6 +4476,34 @@ export const FixtureHistoryApiFp = function (configuration) {
4074
4476
  ?.url;
4075
4477
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4076
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
+ },
4077
4507
  };
4078
4508
  };
4079
4509
  /**
@@ -4255,6 +4685,32 @@ export const FixtureHistoryApiFactory = function (configuration, basePath, axios
4255
4685
  .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4256
4686
  .then((request) => request(axios, basePath));
4257
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
+ },
4258
4714
  };
4259
4715
  };
4260
4716
  /**
@@ -4449,6 +4905,34 @@ export class FixtureHistoryApi extends BaseAPI {
4449
4905
  .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4450
4906
  .then((request) => request(this.axios, this.basePath));
4451
4907
  }
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
+ }
4452
4936
  }
4453
4937
  /**
4454
4938
  * MetaApi - axios parameter creator
@@ -5143,114 +5627,355 @@ export class StaffAuthApi extends BaseAPI {
5143
5627
  }
5144
5628
  }
5145
5629
  /**
5146
- * StaffMeApi - axios parameter creator
5630
+ * StaffDomainLimitsApi - axios parameter creator
5147
5631
  * @export
5148
5632
  */
5149
- export const StaffMeApiAxiosParamCreator = function (configuration) {
5633
+ export const StaffDomainLimitsApiAxiosParamCreator = function (configuration) {
5150
5634
  return {
5151
5635
  /**
5152
- * 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`
5153
- * @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
5154
5641
  * @param {*} [options] Override http request option.
5155
5642
  * @throws {RequiredError}
5156
5643
  */
5157
- staffMeControllerMe: async (options = {}) => {
5158
- 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)));
5159
5652
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5160
5653
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5161
5654
  let baseOptions;
5162
5655
  if (configuration) {
5163
5656
  baseOptions = configuration.baseOptions;
5164
5657
  }
5165
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5658
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
5166
5659
  const localVarHeaderParameter = {};
5167
5660
  const localVarQueryParameter = {};
5168
5661
  // authentication staffSession required
5169
5662
  // authentication adminAuth required
5170
5663
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5664
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5171
5665
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5172
5666
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5173
5667
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5668
+ localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideClearInputDTO, localVarRequestOptions, configuration);
5174
5669
  return {
5175
5670
  url: toPathString(localVarUrlObj),
5176
5671
  options: localVarRequestOptions,
5177
5672
  };
5178
5673
  },
5179
- };
5180
- };
5181
- /**
5182
- * StaffMeApi - functional programming interface
5183
- * @export
5184
- */
5185
- export const StaffMeApiFp = function (configuration) {
5186
- const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
5187
- return {
5188
5674
  /**
5189
- * 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`
5190
- * @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
5191
5678
  * @param {*} [options] Override http request option.
5192
5679
  * @throws {RequiredError}
5193
5680
  */
5194
- async staffMeControllerMe(options) {
5195
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
5196
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5197
- const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
5198
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5199
- },
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
+ };
5704
+ },
5705
+ /**
5706
+ * Newest first.<br> OperationId: `StaffDomainLimitsControllerHistory`
5707
+ * @summary Limit override history of a Domain
5708
+ * @param {string} id
5709
+ * @param {*} [options] Override http request option.
5710
+ * @throws {RequiredError}
5711
+ */
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
+ };
5735
+ },
5736
+ /**
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
5742
+ * @param {*} [options] Override http request option.
5743
+ * @throws {RequiredError}
5744
+ */
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)));
5753
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5754
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5755
+ let baseOptions;
5756
+ if (configuration) {
5757
+ baseOptions = configuration.baseOptions;
5758
+ }
5759
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
5760
+ const localVarHeaderParameter = {};
5761
+ const localVarQueryParameter = {};
5762
+ // authentication staffSession required
5763
+ // authentication adminAuth required
5764
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5765
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5766
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5767
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5768
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5769
+ localVarRequestOptions.data = serializeDataIfNeeded(domainLimitOverrideInputDTO, localVarRequestOptions, configuration);
5770
+ return {
5771
+ url: toPathString(localVarUrlObj),
5772
+ options: localVarRequestOptions,
5773
+ };
5774
+ },
5200
5775
  };
5201
5776
  };
5202
5777
  /**
5203
- * StaffMeApi - factory interface
5778
+ * StaffDomainLimitsApi - functional programming interface
5204
5779
  * @export
5205
5780
  */
5206
- export const StaffMeApiFactory = function (configuration, basePath, axios) {
5207
- const localVarFp = StaffMeApiFp(configuration);
5781
+ export const StaffDomainLimitsApiFp = function (configuration) {
5782
+ const localVarAxiosParamCreator = StaffDomainLimitsApiAxiosParamCreator(configuration);
5208
5783
  return {
5209
5784
  /**
5210
- * 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`
5211
- * @summary Who this Staff session belongs to
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
5212
5790
  * @param {*} [options] Override http request option.
5213
5791
  * @throws {RequiredError}
5214
5792
  */
5215
- staffMeControllerMe(options) {
5216
- return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
5793
+ async staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options) {
5794
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffDomainLimitsControllerClear(id, limitKey, domainLimitOverrideClearInputDTO, options);
5795
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
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;
5840
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5217
5841
  },
5218
5842
  };
5219
5843
  };
5220
5844
  /**
5221
- * StaffMeApi - object-oriented interface
5845
+ * StaffDomainLimitsApi - factory interface
5222
5846
  * @export
5223
- * @class StaffMeApi
5847
+ */
5848
+ export const StaffDomainLimitsApiFactory = function (configuration, basePath, axios) {
5849
+ const localVarFp = StaffDomainLimitsApiFp(configuration);
5850
+ return {
5851
+ /**
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
5891
+ * @param {*} [options] Override http request option.
5892
+ * @throws {RequiredError}
5893
+ */
5894
+ staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options) {
5895
+ return localVarFp
5896
+ .staffDomainLimitsControllerSet(id, limitKey, domainLimitOverrideInputDTO, options)
5897
+ .then((request) => request(axios, basePath));
5898
+ },
5899
+ };
5900
+ };
5901
+ /**
5902
+ * StaffDomainLimitsApi - object-oriented interface
5903
+ * @export
5904
+ * @class StaffDomainLimitsApi
5224
5905
  * @extends {BaseAPI}
5225
5906
  */
5226
- export class StaffMeApi extends BaseAPI {
5907
+ export class StaffDomainLimitsApi extends BaseAPI {
5227
5908
  /**
5228
- * 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`
5229
- * @summary Who this Staff session belongs to
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
5230
5914
  * @param {*} [options] Override http request option.
5231
5915
  * @throws {RequiredError}
5232
- * @memberof StaffMeApi
5916
+ * @memberof StaffDomainLimitsApi
5233
5917
  */
5234
- staffMeControllerMe(options) {
5235
- return StaffMeApiFp(this.configuration)
5236
- .staffMeControllerMe(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)
5237
5962
  .then((request) => request(this.axios, this.basePath));
5238
5963
  }
5239
5964
  }
5240
5965
  /**
5241
- * StaffPlanApi - axios parameter creator
5966
+ * StaffMeApi - axios parameter creator
5242
5967
  * @export
5243
5968
  */
5244
- export const StaffPlanApiAxiosParamCreator = function (configuration) {
5969
+ export const StaffMeApiAxiosParamCreator = function (configuration) {
5245
5970
  return {
5246
5971
  /**
5247
- * 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`
5248
- * @summary The Plan catalogue
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
5249
5974
  * @param {*} [options] Override http request option.
5250
5975
  * @throws {RequiredError}
5251
5976
  */
5252
- staffPlanControllerList: async (options = {}) => {
5253
- const localVarPath = `/staff/plans`;
5977
+ staffMeControllerMe: async (options = {}) => {
5978
+ const localVarPath = `/staff/me`;
5254
5979
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5255
5980
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5256
5981
  let baseOptions;
@@ -5274,61 +5999,717 @@ export const StaffPlanApiAxiosParamCreator = function (configuration) {
5274
5999
  };
5275
6000
  };
5276
6001
  /**
5277
- * StaffPlanApi - functional programming interface
6002
+ * StaffMeApi - functional programming interface
5278
6003
  * @export
5279
6004
  */
5280
- export const StaffPlanApiFp = function (configuration) {
5281
- const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
6005
+ export const StaffMeApiFp = function (configuration) {
6006
+ const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
5282
6007
  return {
5283
6008
  /**
5284
- * 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`
5285
- * @summary The Plan catalogue
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
5286
6011
  * @param {*} [options] Override http request option.
5287
6012
  * @throws {RequiredError}
5288
6013
  */
5289
- async staffPlanControllerList(options) {
5290
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(options);
6014
+ async staffMeControllerMe(options) {
6015
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
5291
6016
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5292
- const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
6017
+ const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
5293
6018
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5294
6019
  },
5295
6020
  };
5296
6021
  };
5297
6022
  /**
5298
- * StaffPlanApi - factory interface
6023
+ * StaffMeApi - factory interface
5299
6024
  * @export
5300
6025
  */
5301
- export const StaffPlanApiFactory = function (configuration, basePath, axios) {
5302
- const localVarFp = StaffPlanApiFp(configuration);
6026
+ export const StaffMeApiFactory = function (configuration, basePath, axios) {
6027
+ const localVarFp = StaffMeApiFp(configuration);
5303
6028
  return {
5304
6029
  /**
5305
- * 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`
5306
- * @summary The Plan catalogue
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
5307
6032
  * @param {*} [options] Override http request option.
5308
6033
  * @throws {RequiredError}
5309
6034
  */
5310
- staffPlanControllerList(options) {
5311
- return localVarFp.staffPlanControllerList(options).then((request) => request(axios, basePath));
6035
+ staffMeControllerMe(options) {
6036
+ return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
5312
6037
  },
5313
6038
  };
5314
6039
  };
5315
6040
  /**
5316
- * StaffPlanApi - object-oriented interface
6041
+ * StaffMeApi - object-oriented interface
5317
6042
  * @export
5318
- * @class StaffPlanApi
6043
+ * @class StaffMeApi
5319
6044
  * @extends {BaseAPI}
5320
6045
  */
5321
- export class StaffPlanApi extends BaseAPI {
6046
+ export class StaffMeApi extends BaseAPI {
5322
6047
  /**
5323
- * 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`
5324
- * @summary The Plan catalogue
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
5325
6706
  * @param {*} [options] Override http request option.
5326
6707
  * @throws {RequiredError}
5327
6708
  * @memberof StaffPlanApi
5328
6709
  */
5329
- staffPlanControllerList(options) {
6710
+ staffPlanControllerUpdate(id, planUpdateInputDTO, options) {
5330
6711
  return StaffPlanApiFp(this.configuration)
5331
- .staffPlanControllerList(options)
6712
+ .staffPlanControllerUpdate(id, planUpdateInputDTO, options)
5332
6713
  .then((request) => request(this.axios, this.basePath));
5333
6714
  }
5334
6715
  }