@takaro/apiclient 0.0.0-dev.853943f → 0.0.0-dev.859f7ef

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/.source-hash +1 -0
  2. package/dist/generated/api.d.ts +15081 -9007
  3. package/dist/generated/api.d.ts.map +1 -1
  4. package/dist/generated/api.js +9481 -6011
  5. package/dist/generated/api.js.map +1 -1
  6. package/dist/generated/common.d.ts +1 -1
  7. package/dist/generated/common.d.ts.map +1 -1
  8. package/dist/generated-management/api.d.ts +10331 -5268
  9. package/dist/generated-management/api.d.ts.map +1 -1
  10. package/dist/generated-management/api.js +1942 -184
  11. package/dist/generated-management/api.js.map +1 -1
  12. package/dist/generated-management/common.d.ts +1 -1
  13. package/dist/generated-management/common.d.ts.map +1 -1
  14. package/dist/lib/adminClient.d.ts +4 -1
  15. package/dist/lib/adminClient.d.ts.map +1 -1
  16. package/dist/lib/adminClient.js +10 -1
  17. package/dist/lib/adminClient.js.map +1 -1
  18. package/dist/lib/apiKey.d.ts +0 -15
  19. package/dist/lib/apiKey.d.ts.map +1 -1
  20. package/dist/lib/apiKey.js +2 -19
  21. package/dist/lib/apiKey.js.map +1 -1
  22. package/dist/lib/baseClient.d.ts +3 -16
  23. package/dist/lib/baseClient.d.ts.map +1 -1
  24. package/dist/lib/baseClient.js +5 -19
  25. package/dist/lib/baseClient.js.map +1 -1
  26. package/dist/lib/client.d.ts +9 -23
  27. package/dist/lib/client.d.ts.map +1 -1
  28. package/dist/lib/client.js +27 -23
  29. package/dist/lib/client.js.map +1 -1
  30. package/dist/lib/distributorClient.d.ts +0 -6
  31. package/dist/lib/distributorClient.d.ts.map +1 -1
  32. package/dist/lib/distributorClient.js +1 -7
  33. package/dist/lib/distributorClient.js.map +1 -1
  34. package/dist/lib/staffClient.d.ts +3 -12
  35. package/dist/lib/staffClient.d.ts.map +1 -1
  36. package/dist/lib/staffClient.js +7 -12
  37. package/dist/lib/staffClient.js.map +1 -1
  38. package/dist/main.d.ts +2 -2
  39. package/dist/main.d.ts.map +1 -1
  40. package/dist/main.js +3 -5
  41. package/dist/main.js.map +1 -1
  42. package/package.json +3 -3
@@ -47,6 +47,18 @@ export const ApiKeySearchInputDTOSortDirectionEnum = {
47
47
  Asc: 'asc',
48
48
  Desc: 'desc',
49
49
  };
50
+ export const ConnectorMigrationOutputDTOStatusEnum = {
51
+ Pending: 'pending',
52
+ Completed: 'completed',
53
+ Cancelled: 'cancelled',
54
+ Reverted: 'reverted',
55
+ };
56
+ export const ConnectorMigrationOutputDTOLegacyTypeEnum = {
57
+ Sevendaystodie: 'SEVENDAYSTODIE',
58
+ Rust: 'RUST',
59
+ Generic: 'GENERIC',
60
+ Mock: 'MOCK',
61
+ };
50
62
  export const DistributorBackedDomainOutputDTOStateEnum = {
51
63
  Active: 'ACTIVE',
52
64
  Disabled: 'DISABLED',
@@ -183,6 +195,12 @@ export const EventCreateDTOEventNameEnum = {
183
195
  DomainCreated: 'domain-created',
184
196
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
185
197
  DomainPlanChanged: 'domain-plan-changed',
198
+ ConnectorMigrationStarted: 'connector-migration-started',
199
+ ConnectorMigrationCompleted: 'connector-migration-completed',
200
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
201
+ ConnectorMigrationReverted: 'connector-migration-reverted',
202
+ DiscordGuildEnabled: 'discord-guild-enabled',
203
+ ItemsGiven: 'items-given',
186
204
  PlayerConnected: 'player-connected',
187
205
  PlayerDisconnected: 'player-disconnected',
188
206
  ChatMessage: 'chat-message',
@@ -236,12 +254,43 @@ export const EventOutputDTOEventNameEnum = {
236
254
  DomainCreated: 'domain-created',
237
255
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
238
256
  DomainPlanChanged: 'domain-plan-changed',
257
+ ConnectorMigrationStarted: 'connector-migration-started',
258
+ ConnectorMigrationCompleted: 'connector-migration-completed',
259
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
260
+ ConnectorMigrationReverted: 'connector-migration-reverted',
261
+ DiscordGuildEnabled: 'discord-guild-enabled',
262
+ ItemsGiven: 'items-given',
239
263
  PlayerConnected: 'player-connected',
240
264
  PlayerDisconnected: 'player-disconnected',
241
265
  ChatMessage: 'chat-message',
242
266
  PlayerDeath: 'player-death',
243
267
  EntityKilled: 'entity-killed',
244
268
  };
269
+ export const FixtureHistoryConflictDTOKindEnum = {
270
+ TakaroPlayer: 'takaro-player',
271
+ TakaroPog: 'takaro-pog',
272
+ };
273
+ export const FixtureHistoryDeleteInputDTOStoreEnum = {
274
+ Analytics: 'analytics',
275
+ Postgres: 'postgres',
276
+ };
277
+ export const FixtureHistoryEventDTOEventNameEnum = {
278
+ PlayerConnected: 'player-connected',
279
+ PlayerDisconnected: 'player-disconnected',
280
+ PlayerSyncSnapshot: 'player-sync-snapshot',
281
+ ChatMessage: 'chat-message',
282
+ CurrencyAdded: 'currency-added',
283
+ CurrencyDeducted: 'currency-deducted',
284
+ ShopOrderCreated: 'shop-order-created',
285
+ ShopOrderStatusChanged: 'shop-order-status-changed',
286
+ };
287
+ export const FixtureHistoryListingConflictDTOKindEnum = {
288
+ TakaroListing: 'takaro-listing',
289
+ };
290
+ export const FixtureHistoryOrderDTOStatusEnum = {
291
+ Completed: 'COMPLETED',
292
+ Canceled: 'CANCELED',
293
+ };
245
294
  export const GameServerCreateDTOTypeEnum = {
246
295
  Sevendaystodie: 'SEVENDAYSTODIE',
247
296
  Rust: 'RUST',
@@ -266,6 +315,26 @@ export const GameServerUpdateDTOTypeEnum = {
266
315
  Generic: 'GENERIC',
267
316
  Mock: 'MOCK',
268
317
  };
318
+ export const GetJobInputDTOTypeEnum = {
319
+ CsmmImport: 'csmmImport',
320
+ SeedModules: 'seedModules',
321
+ CleanEvents: 'cleanEvents',
322
+ CleanExpiringVariables: 'cleanExpiringVariables',
323
+ EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
324
+ DeleteGameServers: 'deleteGameServers',
325
+ SyncItems: 'syncItems',
326
+ SyncEntities: 'syncEntities',
327
+ SyncBans: 'syncBans',
328
+ SyncMapImages: 'syncMapImages',
329
+ SyncMapUploads: 'syncMapUploads',
330
+ SyncSteam: 'syncSteam',
331
+ SyncDiscordRoles: 'syncDiscordRoles',
332
+ EmitRateLimitSummary: 'emitRateLimitSummary',
333
+ CleanRevokedApiKeys: 'cleanRevokedApiKeys',
334
+ CleanExecutionClaims: 'cleanExecutionClaims',
335
+ DeleteClickHouseEvents: 'deleteClickHouseEvents',
336
+ CleanConnectorMigrations: 'cleanConnectorMigrations',
337
+ };
269
338
  export const HookCreateDTOEventTypeEnum = {
270
339
  Log: 'log',
271
340
  PlayerConnected: 'player-connected',
@@ -320,6 +389,12 @@ export const HookCreateDTOEventTypeEnum = {
320
389
  DomainCreated: 'domain-created',
321
390
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
322
391
  DomainPlanChanged: 'domain-plan-changed',
392
+ ConnectorMigrationStarted: 'connector-migration-started',
393
+ ConnectorMigrationCompleted: 'connector-migration-completed',
394
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
395
+ ConnectorMigrationReverted: 'connector-migration-reverted',
396
+ DiscordGuildEnabled: 'discord-guild-enabled',
397
+ ItemsGiven: 'items-given',
323
398
  };
324
399
  export const HookOutputDTOEventTypeEnum = {
325
400
  Log: 'log',
@@ -375,6 +450,12 @@ export const HookOutputDTOEventTypeEnum = {
375
450
  DomainCreated: 'domain-created',
376
451
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
377
452
  DomainPlanChanged: 'domain-plan-changed',
453
+ ConnectorMigrationStarted: 'connector-migration-started',
454
+ ConnectorMigrationCompleted: 'connector-migration-completed',
455
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
456
+ ConnectorMigrationReverted: 'connector-migration-reverted',
457
+ DiscordGuildEnabled: 'discord-guild-enabled',
458
+ ItemsGiven: 'items-given',
378
459
  };
379
460
  export const HookTriggerDTOEventTypeEnum = {
380
461
  Log: 'log',
@@ -430,6 +511,12 @@ export const HookTriggerDTOEventTypeEnum = {
430
511
  DomainCreated: 'domain-created',
431
512
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
432
513
  DomainPlanChanged: 'domain-plan-changed',
514
+ ConnectorMigrationStarted: 'connector-migration-started',
515
+ ConnectorMigrationCompleted: 'connector-migration-completed',
516
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
517
+ ConnectorMigrationReverted: 'connector-migration-reverted',
518
+ DiscordGuildEnabled: 'discord-guild-enabled',
519
+ ItemsGiven: 'items-given',
433
520
  };
434
521
  export const HookUpdateDTOEventTypeEnum = {
435
522
  Log: 'log',
@@ -485,6 +572,12 @@ export const HookUpdateDTOEventTypeEnum = {
485
572
  DomainCreated: 'domain-created',
486
573
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
487
574
  DomainPlanChanged: 'domain-plan-changed',
575
+ ConnectorMigrationStarted: 'connector-migration-started',
576
+ ConnectorMigrationCompleted: 'connector-migration-completed',
577
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
578
+ ConnectorMigrationReverted: 'connector-migration-reverted',
579
+ DiscordGuildEnabled: 'discord-guild-enabled',
580
+ ItemsGiven: 'items-given',
488
581
  };
489
582
  export const IEntityDTOTypeEnum = {
490
583
  Hostile: 'hostile',
@@ -545,6 +638,12 @@ export const IHookEventTypeEnum = {
545
638
  DomainCreated: 'domain-created',
546
639
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
547
640
  DomainPlanChanged: 'domain-plan-changed',
641
+ ConnectorMigrationStarted: 'connector-migration-started',
642
+ ConnectorMigrationCompleted: 'connector-migration-completed',
643
+ ConnectorMigrationCancelled: 'connector-migration-cancelled',
644
+ ConnectorMigrationReverted: 'connector-migration-reverted',
645
+ DiscordGuildEnabled: 'discord-guild-enabled',
646
+ ItemsGiven: 'items-given',
548
647
  };
549
648
  export const ITakaroQuerySortDirectionEnum = {
550
649
  Asc: 'asc',
@@ -592,6 +691,33 @@ export const ManagementDomainOutputDTOCustomDomainStateEnum = {
592
691
  Verified: 'VERIFIED',
593
692
  Failed: 'FAILED',
594
693
  };
694
+ export const MapHorizontalAxisDTOFieldEnum = {
695
+ X: 'x',
696
+ Y: 'y',
697
+ Z: 'z',
698
+ };
699
+ export const MapHorizontalAxisDTODirectionEnum = {
700
+ Right: 'right',
701
+ Left: 'left',
702
+ };
703
+ export const MapPyramidDTOOriginEnum = {
704
+ Game: 'game',
705
+ Upload: 'upload',
706
+ };
707
+ export const MapSourceDTOTypeEnum = {
708
+ None: 'none',
709
+ Tiled: 'tiled',
710
+ Image: 'image',
711
+ };
712
+ export const MapVerticalAxisDTOFieldEnum = {
713
+ X: 'x',
714
+ Y: 'y',
715
+ Z: 'z',
716
+ };
717
+ export const MapVerticalAxisDTODirectionEnum = {
718
+ Up: 'up',
719
+ Down: 'down',
720
+ };
595
721
  export const OrderStatusCountDTOStatusEnum = {
596
722
  Completed: 'COMPLETED',
597
723
  Paid: 'PAID',
@@ -674,6 +800,7 @@ export const SettingsOutputDTOKeyEnum = {
674
800
  DiscordRoleSyncPreferDiscord: 'discordRoleSyncPreferDiscord',
675
801
  UnknownCommandFeedbackEnabled: 'unknownCommandFeedbackEnabled',
676
802
  UnknownCommandFeedbackMessage: 'unknownCommandFeedbackMessage',
803
+ TakaroAiEnabled: 'takaroAiEnabled',
677
804
  };
678
805
  export const SettingsOutputDTOTypeEnum = {
679
806
  Override: 'override',
@@ -751,11 +878,24 @@ export const ShopListingUpdateDTORequiredVariableOperatorEnum = {
751
878
  Gt: 'gt',
752
879
  Lt: 'lt',
753
880
  };
881
+ export const ShopOrderDeliveryItemDTOResultEnum = {
882
+ Delivered: 'DELIVERED',
883
+ Failed: 'FAILED',
884
+ Unknown: 'UNKNOWN',
885
+ };
754
886
  export const ShopOrderOutputDTOStatusEnum = {
755
887
  Completed: 'COMPLETED',
756
888
  Paid: 'PAID',
757
889
  Canceled: 'CANCELED',
758
890
  };
891
+ export const ShopOrderOutputDTODeliveryStatusEnum = {
892
+ NotApplicable: 'NOT_APPLICABLE',
893
+ NotAttempted: 'NOT_ATTEMPTED',
894
+ InProgress: 'IN_PROGRESS',
895
+ Delivered: 'DELIVERED',
896
+ Failed: 'FAILED',
897
+ Unknown: 'UNKNOWN',
898
+ };
759
899
  export const ShopOrderUpdateDTOStatusEnum = {
760
900
  Completed: 'COMPLETED',
761
901
  Paid: 'PAID',
@@ -771,6 +911,49 @@ export const StorefrontDomainOutputDTOCustomDomainStateEnum = {
771
911
  Verified: 'VERIFIED',
772
912
  Failed: 'FAILED',
773
913
  };
914
+ export const TakaroAiDomainOutputDTOOverrideStateEnum = {
915
+ None: 'none',
916
+ Active: 'active',
917
+ Expired: 'expired',
918
+ };
919
+ export const TakaroAiDomainOutputDTOStatusEnum = {
920
+ Available: 'available',
921
+ Grace: 'grace',
922
+ DailyLimitReached: 'dailyLimitReached',
923
+ LimitReached: 'limitReached',
924
+ Disabled: 'disabled',
925
+ NoAllowance: 'noAllowance',
926
+ NeedsGameServer: 'needsGameServer',
927
+ };
928
+ export const TakaroAiStaffChangeOutputDTOSubjectEnum = {
929
+ GlobalMultiplier: 'globalMultiplier',
930
+ DomainOverride: 'domainOverride',
931
+ MigrationCap: 'migrationCap',
932
+ };
933
+ export const TakaroAiStaffChangeOutputDTOActorKindEnum = {
934
+ StaffSession: 'staffSession',
935
+ AdminSecret: 'adminSecret',
936
+ };
937
+ export const TakaroAiUsageOutputDTOStatusEnum = {
938
+ Available: 'available',
939
+ Grace: 'grace',
940
+ DailyLimitReached: 'dailyLimitReached',
941
+ LimitReached: 'limitReached',
942
+ Disabled: 'disabled',
943
+ NoAllowance: 'noAllowance',
944
+ NeedsGameServer: 'needsGameServer',
945
+ };
946
+ export const TakaroEventDomainCreatedOriginEnum = {
947
+ Distributor: 'distributor',
948
+ Staff: 'staff',
949
+ Subscription: 'subscription',
950
+ AdminSecret: 'admin_secret',
951
+ };
952
+ export const TakaroEventItemsGivenLineResultEnum = {
953
+ Delivered: 'DELIVERED',
954
+ Failed: 'FAILED',
955
+ Unknown: 'UNKNOWN',
956
+ };
774
957
  export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
775
958
  Added: 'added',
776
959
  Removed: 'removed',
@@ -781,6 +964,150 @@ export const TakaroEventRateLimitedScopeEnum = {
781
964
  Domain: 'domain',
782
965
  Global: 'global',
783
966
  };
967
+ export const ThreadApprovalDecisionInputDTOOutcomeEnum = {
968
+ Approved: 'approved',
969
+ Denied: 'denied',
970
+ };
971
+ export const ThreadContextInputDTOTypeEnum = {
972
+ Player: 'player',
973
+ GameServer: 'gameServer',
974
+ Module: 'module',
975
+ ModuleVersion: 'moduleVersion',
976
+ Event: 'event',
977
+ CsmmImport: 'csmmImport',
978
+ };
979
+ export const ThreadCreateInputDTOOriginSurfaceEnum = {
980
+ CommandPalette: 'commandPalette',
981
+ PlayerSummary: 'playerSummary',
982
+ Modules: 'modules',
983
+ GameServerModules: 'gameServerModules',
984
+ GameServerOverview: 'gameServerOverview',
985
+ GameServerConsole: 'gameServerConsole',
986
+ DashboardBriefing: 'dashboardBriefing',
987
+ EventsFilter: 'eventsFilter',
988
+ RoleBuilder: 'roleBuilder',
989
+ ModuleConfig: 'moduleConfig',
990
+ GameServerShop: 'gameServerShop',
991
+ ModuleOverview: 'moduleOverview',
992
+ ModuleBuilder: 'moduleBuilder',
993
+ EventFailure: 'eventFailure',
994
+ CsmmMigration: 'csmmMigration',
995
+ };
996
+ export const ThreadOutputDTOStatusEnum = {
997
+ Idle: 'idle',
998
+ Working: 'working',
999
+ Stopping: 'stopping',
1000
+ Failed: 'failed',
1001
+ AwaitingApproval: 'awaitingApproval',
1002
+ AwaitingReply: 'awaitingReply',
1003
+ };
1004
+ export const ThreadOutputDTOOriginSurfaceEnum = {
1005
+ CommandPalette: 'commandPalette',
1006
+ PlayerSummary: 'playerSummary',
1007
+ Modules: 'modules',
1008
+ GameServerModules: 'gameServerModules',
1009
+ GameServerOverview: 'gameServerOverview',
1010
+ GameServerConsole: 'gameServerConsole',
1011
+ DashboardBriefing: 'dashboardBriefing',
1012
+ EventsFilter: 'eventsFilter',
1013
+ RoleBuilder: 'roleBuilder',
1014
+ ModuleConfig: 'moduleConfig',
1015
+ GameServerShop: 'gameServerShop',
1016
+ ModuleOverview: 'moduleOverview',
1017
+ ModuleBuilder: 'moduleBuilder',
1018
+ EventFailure: 'eventFailure',
1019
+ CsmmMigration: 'csmmMigration',
1020
+ };
1021
+ export const ThreadSearchInputAllowedFiltersStatusEnum = {
1022
+ Idle: 'idle',
1023
+ Working: 'working',
1024
+ Stopping: 'stopping',
1025
+ Failed: 'failed',
1026
+ AwaitingApproval: 'awaitingApproval',
1027
+ AwaitingReply: 'awaitingReply',
1028
+ };
1029
+ export const ThreadSearchInputAllowedFiltersOriginSurfaceEnum = {
1030
+ CommandPalette: 'commandPalette',
1031
+ PlayerSummary: 'playerSummary',
1032
+ Modules: 'modules',
1033
+ GameServerModules: 'gameServerModules',
1034
+ GameServerOverview: 'gameServerOverview',
1035
+ GameServerConsole: 'gameServerConsole',
1036
+ DashboardBriefing: 'dashboardBriefing',
1037
+ EventsFilter: 'eventsFilter',
1038
+ RoleBuilder: 'roleBuilder',
1039
+ ModuleConfig: 'moduleConfig',
1040
+ GameServerShop: 'gameServerShop',
1041
+ ModuleOverview: 'moduleOverview',
1042
+ ModuleBuilder: 'moduleBuilder',
1043
+ EventFailure: 'eventFailure',
1044
+ CsmmMigration: 'csmmMigration',
1045
+ };
1046
+ export const ThreadSearchInputDTOSortDirectionEnum = {
1047
+ Asc: 'asc',
1048
+ Desc: 'desc',
1049
+ };
1050
+ export const ThreadStepApprovalDTOOutcomeEnum = {
1051
+ Approved: 'approved',
1052
+ Denied: 'denied',
1053
+ AutoAllowed: 'autoAllowed',
1054
+ Cancelled: 'cancelled',
1055
+ };
1056
+ export const ThreadStepOutputDTOKindEnum = {
1057
+ UserMessage: 'userMessage',
1058
+ ModelMessage: 'modelMessage',
1059
+ ToolCall: 'toolCall',
1060
+ ToolResult: 'toolResult',
1061
+ ApprovalRequest: 'approvalRequest',
1062
+ ApprovalOutcome: 'approvalOutcome',
1063
+ };
1064
+ export const ThreadStepReferenceDTOTypeEnum = {
1065
+ Player: 'player',
1066
+ GameServer: 'gameServer',
1067
+ Module: 'module',
1068
+ ModuleVersion: 'moduleVersion',
1069
+ Event: 'event',
1070
+ CsmmImport: 'csmmImport',
1071
+ };
1072
+ export const ThreadWithStepsOutputDTOStatusEnum = {
1073
+ Idle: 'idle',
1074
+ Working: 'working',
1075
+ Stopping: 'stopping',
1076
+ Failed: 'failed',
1077
+ AwaitingApproval: 'awaitingApproval',
1078
+ AwaitingReply: 'awaitingReply',
1079
+ };
1080
+ export const ThreadWithStepsOutputDTOOriginSurfaceEnum = {
1081
+ CommandPalette: 'commandPalette',
1082
+ PlayerSummary: 'playerSummary',
1083
+ Modules: 'modules',
1084
+ GameServerModules: 'gameServerModules',
1085
+ GameServerOverview: 'gameServerOverview',
1086
+ GameServerConsole: 'gameServerConsole',
1087
+ DashboardBriefing: 'dashboardBriefing',
1088
+ EventsFilter: 'eventsFilter',
1089
+ RoleBuilder: 'roleBuilder',
1090
+ ModuleConfig: 'moduleConfig',
1091
+ GameServerShop: 'gameServerShop',
1092
+ ModuleOverview: 'moduleOverview',
1093
+ ModuleBuilder: 'moduleBuilder',
1094
+ EventFailure: 'eventFailure',
1095
+ CsmmMigration: 'csmmMigration',
1096
+ };
1097
+ export const TriggerJobInputDTOTypeEnum = {
1098
+ SeedModules: 'seedModules',
1099
+ CleanEvents: 'cleanEvents',
1100
+ CleanExpiringVariables: 'cleanExpiringVariables',
1101
+ EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
1102
+ DeleteGameServers: 'deleteGameServers',
1103
+ SyncItems: 'syncItems',
1104
+ SyncEntities: 'syncEntities',
1105
+ SyncBans: 'syncBans',
1106
+ SyncMapImages: 'syncMapImages',
1107
+ SyncMapUploads: 'syncMapUploads',
1108
+ SyncSteam: 'syncSteam',
1109
+ SyncDiscordRoles: 'syncDiscordRoles',
1110
+ };
784
1111
  export const UserSearchInputDTOExtendEnum = {
785
1112
  Roles: 'roles',
786
1113
  };
@@ -3148,69 +3475,88 @@ export class DomainApi extends BaseAPI {
3148
3475
  }
3149
3476
  }
3150
3477
  /**
3151
- * MetaApi - axios parameter creator
3478
+ * FixtureHistoryApi - axios parameter creator
3152
3479
  * @export
3153
3480
  */
3154
- export const MetaApiAxiosParamCreator = function (configuration) {
3481
+ export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
3155
3482
  return {
3156
3483
  /**
3157
- * <br> OperationId: `MetaGetHealth`
3158
- * @summary Get health
3484
+ * <br> OperationId: `FixtureHistoryControllerActivity`
3485
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
3486
+ * @param {string} domainId
3487
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
3159
3488
  * @param {*} [options] Override http request option.
3160
3489
  * @throws {RequiredError}
3161
3490
  */
3162
- metaGetHealth: async (options = {}) => {
3163
- const localVarPath = `/healthz`;
3491
+ fixtureHistoryControllerActivity: async (domainId, fixtureHistoryActivityInputDTO, options = {}) => {
3492
+ // verify required parameter 'domainId' is not null or undefined
3493
+ assertParamExists('fixtureHistoryControllerActivity', 'domainId', domainId);
3494
+ const localVarPath = `/fixture-history/domains/{domainId}/activity`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3164
3495
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3165
3496
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3166
3497
  let baseOptions;
3167
3498
  if (configuration) {
3168
3499
  baseOptions = configuration.baseOptions;
3169
3500
  }
3170
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3501
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3171
3502
  const localVarHeaderParameter = {};
3172
3503
  const localVarQueryParameter = {};
3504
+ // authentication adminAuth required
3505
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3506
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3173
3507
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3174
3508
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3175
3509
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3510
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryActivityInputDTO, localVarRequestOptions, configuration);
3176
3511
  return {
3177
3512
  url: toPathString(localVarUrlObj),
3178
3513
  options: localVarRequestOptions,
3179
3514
  };
3180
3515
  },
3181
3516
  /**
3182
- * <br> OperationId: `MetaGetLiveness`
3183
- * @summary Get liveness
3517
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
3518
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
3519
+ * @param {string} domainId
3520
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
3184
3521
  * @param {*} [options] Override http request option.
3185
3522
  * @throws {RequiredError}
3186
3523
  */
3187
- metaGetLiveness: async (options = {}) => {
3188
- const localVarPath = `/livez`;
3524
+ fixtureHistoryControllerAnalytics: async (domainId, fixtureHistoryAnalyticsInputDTO, options = {}) => {
3525
+ // verify required parameter 'domainId' is not null or undefined
3526
+ assertParamExists('fixtureHistoryControllerAnalytics', 'domainId', domainId);
3527
+ const localVarPath = `/fixture-history/domains/{domainId}/analytics`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3189
3528
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3190
3529
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3191
3530
  let baseOptions;
3192
3531
  if (configuration) {
3193
3532
  baseOptions = configuration.baseOptions;
3194
3533
  }
3195
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3534
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3196
3535
  const localVarHeaderParameter = {};
3197
3536
  const localVarQueryParameter = {};
3537
+ // authentication adminAuth required
3538
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3539
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3198
3540
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3199
3541
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3200
3542
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3543
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryAnalyticsInputDTO, localVarRequestOptions, configuration);
3201
3544
  return {
3202
3545
  url: toPathString(localVarUrlObj),
3203
3546
  options: localVarRequestOptions,
3204
3547
  };
3205
3548
  },
3206
3549
  /**
3207
- * <br> OperationId: `MetaGetMetrics`
3208
- * @summary Get metrics
3550
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
3551
+ * @summary What the writer can do for this domain, and the domain\'s event retention
3552
+ * @param {string} domainId
3209
3553
  * @param {*} [options] Override http request option.
3210
3554
  * @throws {RequiredError}
3211
3555
  */
3212
- metaGetMetrics: async (options = {}) => {
3213
- const localVarPath = `/metrics`;
3556
+ fixtureHistoryControllerCapabilities: async (domainId, options = {}) => {
3557
+ // verify required parameter 'domainId' is not null or undefined
3558
+ assertParamExists('fixtureHistoryControllerCapabilities', 'domainId', domainId);
3559
+ const localVarPath = `/fixture-history/domains/{domainId}/capabilities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3214
3560
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3215
3561
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3216
3562
  let baseOptions;
@@ -3220,6 +3566,8 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3220
3566
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3221
3567
  const localVarHeaderParameter = {};
3222
3568
  const localVarQueryParameter = {};
3569
+ // authentication adminAuth required
3570
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3223
3571
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3224
3572
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3225
3573
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3229,161 +3577,1134 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3229
3577
  };
3230
3578
  },
3231
3579
  /**
3232
- * <br> OperationId: `MetaGetOpenApi`
3233
- * @summary Get open api
3580
+ * <br> OperationId: `FixtureHistoryControllerDelete`
3581
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
3582
+ * @param {string} domainId
3583
+ * @param {string} fixtureDatasetId
3584
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
3234
3585
  * @param {*} [options] Override http request option.
3235
3586
  * @throws {RequiredError}
3236
3587
  */
3237
- metaGetOpenApi: async (options = {}) => {
3238
- const localVarPath = `/openapi.json`;
3588
+ fixtureHistoryControllerDelete: async (domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options = {}) => {
3589
+ // verify required parameter 'domainId' is not null or undefined
3590
+ assertParamExists('fixtureHistoryControllerDelete', 'domainId', domainId);
3591
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3592
+ assertParamExists('fixtureHistoryControllerDelete', 'fixtureDatasetId', fixtureDatasetId);
3593
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/delete`
3594
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3595
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3239
3596
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3240
3597
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3241
3598
  let baseOptions;
3242
3599
  if (configuration) {
3243
3600
  baseOptions = configuration.baseOptions;
3244
3601
  }
3245
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3602
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3246
3603
  const localVarHeaderParameter = {};
3247
3604
  const localVarQueryParameter = {};
3605
+ // authentication adminAuth required
3606
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3607
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3248
3608
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3249
3609
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3250
3610
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3611
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryDeleteInputDTO, localVarRequestOptions, configuration);
3251
3612
  return {
3252
3613
  url: toPathString(localVarUrlObj),
3253
3614
  options: localVarRequestOptions,
3254
3615
  };
3255
3616
  },
3256
3617
  /**
3257
- * <br> OperationId: `MetaGetOpenApiHtml`
3258
- * @summary Get open api html
3618
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
3619
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
3620
+ * @param {string} domainId
3621
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
3259
3622
  * @param {*} [options] Override http request option.
3260
3623
  * @throws {RequiredError}
3261
3624
  */
3262
- metaGetOpenApiHtml: async (options = {}) => {
3263
- const localVarPath = `/api.html`;
3625
+ fixtureHistoryControllerEconomyReadiness: async (domainId, fixtureHistoryEconomyReadinessInputDTO, options = {}) => {
3626
+ // verify required parameter 'domainId' is not null or undefined
3627
+ assertParamExists('fixtureHistoryControllerEconomyReadiness', 'domainId', domainId);
3628
+ const localVarPath = `/fixture-history/domains/{domainId}/economy-readiness`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3264
3629
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3265
3630
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3266
3631
  let baseOptions;
3267
3632
  if (configuration) {
3268
3633
  baseOptions = configuration.baseOptions;
3269
3634
  }
3270
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3635
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3271
3636
  const localVarHeaderParameter = {};
3272
3637
  const localVarQueryParameter = {};
3638
+ // authentication adminAuth required
3639
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3640
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3273
3641
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3274
3642
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3275
3643
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3644
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryEconomyReadinessInputDTO, localVarRequestOptions, configuration);
3276
3645
  return {
3277
3646
  url: toPathString(localVarUrlObj),
3278
3647
  options: localVarRequestOptions,
3279
3648
  };
3280
3649
  },
3281
3650
  /**
3282
- * <br> OperationId: `MetaGetReadiness`
3283
- * @summary Get readiness
3651
+ * One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
3652
+ * @summary Write owned, back-dated players and players-on-gameserver
3653
+ * @param {string} domainId
3654
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
3284
3655
  * @param {*} [options] Override http request option.
3285
3656
  * @throws {RequiredError}
3286
3657
  */
3287
- metaGetReadiness: async (options = {}) => {
3288
- const localVarPath = `/readyz`;
3658
+ fixtureHistoryControllerIdentities: async (domainId, fixtureHistoryIdentitiesInputDTO, options = {}) => {
3659
+ // verify required parameter 'domainId' is not null or undefined
3660
+ assertParamExists('fixtureHistoryControllerIdentities', 'domainId', domainId);
3661
+ const localVarPath = `/fixture-history/domains/{domainId}/identities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3289
3662
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3290
3663
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3291
3664
  let baseOptions;
3292
3665
  if (configuration) {
3293
3666
  baseOptions = configuration.baseOptions;
3294
3667
  }
3295
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3668
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3296
3669
  const localVarHeaderParameter = {};
3297
3670
  const localVarQueryParameter = {};
3671
+ // authentication adminAuth required
3672
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3673
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3298
3674
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3299
3675
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3300
3676
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3677
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryIdentitiesInputDTO, localVarRequestOptions, configuration);
3301
3678
  return {
3302
3679
  url: toPathString(localVarUrlObj),
3303
3680
  options: localVarRequestOptions,
3304
3681
  };
3305
3682
  },
3306
3683
  /**
3307
- * <br> OperationId: `MetaGetRoot`
3308
- * @summary Get root
3684
+ * <br> OperationId: `FixtureHistoryControllerInventory`
3685
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
3686
+ * @param {string} domainId
3687
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
3309
3688
  * @param {*} [options] Override http request option.
3310
3689
  * @throws {RequiredError}
3311
3690
  */
3312
- metaGetRoot: async (options = {}) => {
3313
- const localVarPath = `/`;
3691
+ fixtureHistoryControllerInventory: async (domainId, fixtureHistoryInventoryInputDTO, options = {}) => {
3692
+ // verify required parameter 'domainId' is not null or undefined
3693
+ assertParamExists('fixtureHistoryControllerInventory', 'domainId', domainId);
3694
+ const localVarPath = `/fixture-history/domains/{domainId}/inventory`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3314
3695
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3315
3696
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3316
3697
  let baseOptions;
3317
3698
  if (configuration) {
3318
3699
  baseOptions = configuration.baseOptions;
3319
3700
  }
3320
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3701
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3321
3702
  const localVarHeaderParameter = {};
3322
3703
  const localVarQueryParameter = {};
3704
+ // authentication adminAuth required
3705
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3706
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3323
3707
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3324
3708
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3325
3709
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3710
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryInventoryInputDTO, localVarRequestOptions, configuration);
3326
3711
  return {
3327
3712
  url: toPathString(localVarUrlObj),
3328
3713
  options: localVarRequestOptions,
3329
3714
  };
3330
3715
  },
3331
- };
3332
- };
3333
- /**
3334
- * MetaApi - functional programming interface
3335
- * @export
3336
- */
3337
- export const MetaApiFp = function (configuration) {
3338
- const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration);
3339
- return {
3340
3716
  /**
3341
- * <br> OperationId: `MetaGetHealth`
3342
- * @summary Get health
3717
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
3718
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
3719
+ * @param {string} domainId
3720
+ * @param {string} fixtureDatasetId
3721
+ * @param {string} [cursor]
3343
3722
  * @param {*} [options] Override http request option.
3344
3723
  * @throws {RequiredError}
3345
3724
  */
3346
- async metaGetHealth(options) {
3347
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetHealth(options);
3348
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3349
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetHealth']?.[localVarOperationServerIndex]?.url;
3350
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3725
+ fixtureHistoryControllerInventoryPage: async (domainId, fixtureDatasetId, cursor, options = {}) => {
3726
+ // verify required parameter 'domainId' is not null or undefined
3727
+ assertParamExists('fixtureHistoryControllerInventoryPage', 'domainId', domainId);
3728
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3729
+ assertParamExists('fixtureHistoryControllerInventoryPage', 'fixtureDatasetId', fixtureDatasetId);
3730
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/inventory`
3731
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3732
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3733
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3734
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3735
+ let baseOptions;
3736
+ if (configuration) {
3737
+ baseOptions = configuration.baseOptions;
3738
+ }
3739
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3740
+ const localVarHeaderParameter = {};
3741
+ const localVarQueryParameter = {};
3742
+ // authentication adminAuth required
3743
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3744
+ if (cursor !== undefined) {
3745
+ localVarQueryParameter['cursor'] = cursor;
3746
+ }
3747
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3748
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3749
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3750
+ return {
3751
+ url: toPathString(localVarUrlObj),
3752
+ options: localVarRequestOptions,
3753
+ };
3351
3754
  },
3352
3755
  /**
3353
- * <br> OperationId: `MetaGetLiveness`
3354
- * @summary Get liveness
3756
+ * One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
3757
+ * @summary Write owned, back-dated shop listings
3758
+ * @param {string} domainId
3759
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
3355
3760
  * @param {*} [options] Override http request option.
3356
3761
  * @throws {RequiredError}
3357
3762
  */
3358
- async metaGetLiveness(options) {
3359
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetLiveness(options);
3360
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3361
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
3362
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3763
+ fixtureHistoryControllerListings: async (domainId, fixtureHistoryListingsInputDTO, options = {}) => {
3764
+ // verify required parameter 'domainId' is not null or undefined
3765
+ assertParamExists('fixtureHistoryControllerListings', 'domainId', domainId);
3766
+ const localVarPath = `/fixture-history/domains/{domainId}/listings`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3767
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3768
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3769
+ let baseOptions;
3770
+ if (configuration) {
3771
+ baseOptions = configuration.baseOptions;
3772
+ }
3773
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3774
+ const localVarHeaderParameter = {};
3775
+ const localVarQueryParameter = {};
3776
+ // authentication adminAuth required
3777
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3778
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3779
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3780
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3781
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3782
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryListingsInputDTO, localVarRequestOptions, configuration);
3783
+ return {
3784
+ url: toPathString(localVarUrlObj),
3785
+ options: localVarRequestOptions,
3786
+ };
3363
3787
  },
3364
3788
  /**
3365
- * <br> OperationId: `MetaGetMetrics`
3366
- * @summary Get metrics
3789
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
3790
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
3791
+ * @param {string} domainId
3792
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
3367
3793
  * @param {*} [options] Override http request option.
3368
3794
  * @throws {RequiredError}
3369
3795
  */
3370
- async metaGetMetrics(options) {
3371
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetMetrics(options);
3372
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3373
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetMetrics']?.[localVarOperationServerIndex]?.url;
3374
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3796
+ fixtureHistoryControllerOrders: async (domainId, fixtureHistoryOrdersInputDTO, options = {}) => {
3797
+ // verify required parameter 'domainId' is not null or undefined
3798
+ assertParamExists('fixtureHistoryControllerOrders', 'domainId', domainId);
3799
+ const localVarPath = `/fixture-history/domains/{domainId}/orders`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3800
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3801
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3802
+ let baseOptions;
3803
+ if (configuration) {
3804
+ baseOptions = configuration.baseOptions;
3805
+ }
3806
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3807
+ const localVarHeaderParameter = {};
3808
+ const localVarQueryParameter = {};
3809
+ // authentication adminAuth required
3810
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3811
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3812
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3813
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3814
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3815
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryOrdersInputDTO, localVarRequestOptions, configuration);
3816
+ return {
3817
+ url: toPathString(localVarUrlObj),
3818
+ options: localVarRequestOptions,
3819
+ };
3375
3820
  },
3376
3821
  /**
3377
- * <br> OperationId: `MetaGetOpenApi`
3378
- * @summary Get open api
3822
+ * <br> OperationId: `FixtureHistoryControllerSummary`
3823
+ * @summary Owned row counts per store, and unowned events naming owned players
3824
+ * @param {string} domainId
3825
+ * @param {string} fixtureDatasetId
3826
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
3379
3827
  * @param {*} [options] Override http request option.
3380
3828
  * @throws {RequiredError}
3381
3829
  */
3382
- async metaGetOpenApi(options) {
3383
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options);
3384
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3385
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[localVarOperationServerIndex]?.url;
3386
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3830
+ fixtureHistoryControllerSummary: async (domainId, fixtureDatasetId, since, options = {}) => {
3831
+ // verify required parameter 'domainId' is not null or undefined
3832
+ assertParamExists('fixtureHistoryControllerSummary', 'domainId', domainId);
3833
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3834
+ assertParamExists('fixtureHistoryControllerSummary', 'fixtureDatasetId', fixtureDatasetId);
3835
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/summary`
3836
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3837
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3838
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3839
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3840
+ let baseOptions;
3841
+ if (configuration) {
3842
+ baseOptions = configuration.baseOptions;
3843
+ }
3844
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3845
+ const localVarHeaderParameter = {};
3846
+ const localVarQueryParameter = {};
3847
+ // authentication adminAuth required
3848
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3849
+ if (since !== undefined) {
3850
+ for (const [key, value] of Object.entries(since)) {
3851
+ localVarQueryParameter[key] = value;
3852
+ }
3853
+ }
3854
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3855
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3856
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3857
+ return {
3858
+ url: toPathString(localVarUrlObj),
3859
+ options: localVarRequestOptions,
3860
+ };
3861
+ },
3862
+ /**
3863
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
3864
+ * @summary Set the offline terminal state of owned players-on-gameserver
3865
+ * @param {string} domainId
3866
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
3867
+ * @param {*} [options] Override http request option.
3868
+ * @throws {RequiredError}
3869
+ */
3870
+ fixtureHistoryControllerTerminal: async (domainId, fixtureHistoryTerminalInputDTO, options = {}) => {
3871
+ // verify required parameter 'domainId' is not null or undefined
3872
+ assertParamExists('fixtureHistoryControllerTerminal', 'domainId', domainId);
3873
+ const localVarPath = `/fixture-history/domains/{domainId}/terminal-state`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3874
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3875
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3876
+ let baseOptions;
3877
+ if (configuration) {
3878
+ baseOptions = configuration.baseOptions;
3879
+ }
3880
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3881
+ const localVarHeaderParameter = {};
3882
+ const localVarQueryParameter = {};
3883
+ // authentication adminAuth required
3884
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3885
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3886
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3887
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3888
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3889
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTerminalInputDTO, localVarRequestOptions, configuration);
3890
+ return {
3891
+ url: toPathString(localVarUrlObj),
3892
+ options: localVarRequestOptions,
3893
+ };
3894
+ },
3895
+ /**
3896
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
3897
+ * @summary Page through the terminal state of owned players-on-gameserver
3898
+ * @param {string} domainId
3899
+ * @param {string} fixtureDatasetId
3900
+ * @param {string} [cursor]
3901
+ * @param {*} [options] Override http request option.
3902
+ * @throws {RequiredError}
3903
+ */
3904
+ fixtureHistoryControllerTerminalState: async (domainId, fixtureDatasetId, cursor, options = {}) => {
3905
+ // verify required parameter 'domainId' is not null or undefined
3906
+ assertParamExists('fixtureHistoryControllerTerminalState', 'domainId', domainId);
3907
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3908
+ assertParamExists('fixtureHistoryControllerTerminalState', 'fixtureDatasetId', fixtureDatasetId);
3909
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/terminal-state`
3910
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3911
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3912
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3913
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3914
+ let baseOptions;
3915
+ if (configuration) {
3916
+ baseOptions = configuration.baseOptions;
3917
+ }
3918
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3919
+ const localVarHeaderParameter = {};
3920
+ const localVarQueryParameter = {};
3921
+ // authentication adminAuth required
3922
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3923
+ if (cursor !== undefined) {
3924
+ localVarQueryParameter['cursor'] = cursor;
3925
+ }
3926
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3927
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3928
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3929
+ return {
3930
+ url: toPathString(localVarUrlObj),
3931
+ options: localVarRequestOptions,
3932
+ };
3933
+ },
3934
+ };
3935
+ };
3936
+ /**
3937
+ * FixtureHistoryApi - functional programming interface
3938
+ * @export
3939
+ */
3940
+ export const FixtureHistoryApiFp = function (configuration) {
3941
+ const localVarAxiosParamCreator = FixtureHistoryApiAxiosParamCreator(configuration);
3942
+ return {
3943
+ /**
3944
+ * <br> OperationId: `FixtureHistoryControllerActivity`
3945
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
3946
+ * @param {string} domainId
3947
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
3948
+ * @param {*} [options] Override http request option.
3949
+ * @throws {RequiredError}
3950
+ */
3951
+ async fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
3952
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options);
3953
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3954
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerActivity']?.[localVarOperationServerIndex]?.url;
3955
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3956
+ },
3957
+ /**
3958
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
3959
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
3960
+ * @param {string} domainId
3961
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
3962
+ * @param {*} [options] Override http request option.
3963
+ * @throws {RequiredError}
3964
+ */
3965
+ async fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
3966
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options);
3967
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3968
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerAnalytics']?.[localVarOperationServerIndex]?.url;
3969
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3970
+ },
3971
+ /**
3972
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
3973
+ * @summary What the writer can do for this domain, and the domain\'s event retention
3974
+ * @param {string} domainId
3975
+ * @param {*} [options] Override http request option.
3976
+ * @throws {RequiredError}
3977
+ */
3978
+ async fixtureHistoryControllerCapabilities(domainId, options) {
3979
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerCapabilities(domainId, options);
3980
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3981
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerCapabilities']?.[localVarOperationServerIndex]
3982
+ ?.url;
3983
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3984
+ },
3985
+ /**
3986
+ * <br> OperationId: `FixtureHistoryControllerDelete`
3987
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
3988
+ * @param {string} domainId
3989
+ * @param {string} fixtureDatasetId
3990
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
3991
+ * @param {*} [options] Override http request option.
3992
+ * @throws {RequiredError}
3993
+ */
3994
+ async fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
3995
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options);
3996
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3997
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerDelete']?.[localVarOperationServerIndex]?.url;
3998
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3999
+ },
4000
+ /**
4001
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4002
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4003
+ * @param {string} domainId
4004
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4005
+ * @param {*} [options] Override http request option.
4006
+ * @throws {RequiredError}
4007
+ */
4008
+ async fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4009
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options);
4010
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4011
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerEconomyReadiness']?.[localVarOperationServerIndex]
4012
+ ?.url;
4013
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4014
+ },
4015
+ /**
4016
+ * One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
4017
+ * @summary Write owned, back-dated players and players-on-gameserver
4018
+ * @param {string} domainId
4019
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4020
+ * @param {*} [options] Override http request option.
4021
+ * @throws {RequiredError}
4022
+ */
4023
+ async fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4024
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options);
4025
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4026
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerIdentities']?.[localVarOperationServerIndex]?.url;
4027
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4028
+ },
4029
+ /**
4030
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4031
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4032
+ * @param {string} domainId
4033
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4034
+ * @param {*} [options] Override http request option.
4035
+ * @throws {RequiredError}
4036
+ */
4037
+ async fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4038
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options);
4039
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4040
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventory']?.[localVarOperationServerIndex]?.url;
4041
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4042
+ },
4043
+ /**
4044
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4045
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4046
+ * @param {string} domainId
4047
+ * @param {string} fixtureDatasetId
4048
+ * @param {string} [cursor]
4049
+ * @param {*} [options] Override http request option.
4050
+ * @throws {RequiredError}
4051
+ */
4052
+ async fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4053
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options);
4054
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4055
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventoryPage']?.[localVarOperationServerIndex]
4056
+ ?.url;
4057
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4058
+ },
4059
+ /**
4060
+ * One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
4061
+ * @summary Write owned, back-dated shop listings
4062
+ * @param {string} domainId
4063
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4064
+ * @param {*} [options] Override http request option.
4065
+ * @throws {RequiredError}
4066
+ */
4067
+ async fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4068
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options);
4069
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4070
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerListings']?.[localVarOperationServerIndex]?.url;
4071
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4072
+ },
4073
+ /**
4074
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4075
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4076
+ * @param {string} domainId
4077
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4078
+ * @param {*} [options] Override http request option.
4079
+ * @throws {RequiredError}
4080
+ */
4081
+ async fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4082
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options);
4083
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4084
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerOrders']?.[localVarOperationServerIndex]?.url;
4085
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4086
+ },
4087
+ /**
4088
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4089
+ * @summary Owned row counts per store, and unowned events naming owned players
4090
+ * @param {string} domainId
4091
+ * @param {string} fixtureDatasetId
4092
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4093
+ * @param {*} [options] Override http request option.
4094
+ * @throws {RequiredError}
4095
+ */
4096
+ async fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4097
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options);
4098
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4099
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerSummary']?.[localVarOperationServerIndex]?.url;
4100
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4101
+ },
4102
+ /**
4103
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4104
+ * @summary Set the offline terminal state of owned players-on-gameserver
4105
+ * @param {string} domainId
4106
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4107
+ * @param {*} [options] Override http request option.
4108
+ * @throws {RequiredError}
4109
+ */
4110
+ async fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4111
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options);
4112
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4113
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminal']?.[localVarOperationServerIndex]?.url;
4114
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4115
+ },
4116
+ /**
4117
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4118
+ * @summary Page through the terminal state of owned players-on-gameserver
4119
+ * @param {string} domainId
4120
+ * @param {string} fixtureDatasetId
4121
+ * @param {string} [cursor]
4122
+ * @param {*} [options] Override http request option.
4123
+ * @throws {RequiredError}
4124
+ */
4125
+ async fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4126
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options);
4127
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4128
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminalState']?.[localVarOperationServerIndex]
4129
+ ?.url;
4130
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4131
+ },
4132
+ };
4133
+ };
4134
+ /**
4135
+ * FixtureHistoryApi - factory interface
4136
+ * @export
4137
+ */
4138
+ export const FixtureHistoryApiFactory = function (configuration, basePath, axios) {
4139
+ const localVarFp = FixtureHistoryApiFp(configuration);
4140
+ return {
4141
+ /**
4142
+ * <br> OperationId: `FixtureHistoryControllerActivity`
4143
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
4144
+ * @param {string} domainId
4145
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
4146
+ * @param {*} [options] Override http request option.
4147
+ * @throws {RequiredError}
4148
+ */
4149
+ fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
4150
+ return localVarFp
4151
+ .fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
4152
+ .then((request) => request(axios, basePath));
4153
+ },
4154
+ /**
4155
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
4156
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
4157
+ * @param {string} domainId
4158
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
4159
+ * @param {*} [options] Override http request option.
4160
+ * @throws {RequiredError}
4161
+ */
4162
+ fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
4163
+ return localVarFp
4164
+ .fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
4165
+ .then((request) => request(axios, basePath));
4166
+ },
4167
+ /**
4168
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
4169
+ * @summary What the writer can do for this domain, and the domain\'s event retention
4170
+ * @param {string} domainId
4171
+ * @param {*} [options] Override http request option.
4172
+ * @throws {RequiredError}
4173
+ */
4174
+ fixtureHistoryControllerCapabilities(domainId, options) {
4175
+ return localVarFp
4176
+ .fixtureHistoryControllerCapabilities(domainId, options)
4177
+ .then((request) => request(axios, basePath));
4178
+ },
4179
+ /**
4180
+ * <br> OperationId: `FixtureHistoryControllerDelete`
4181
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
4182
+ * @param {string} domainId
4183
+ * @param {string} fixtureDatasetId
4184
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
4185
+ * @param {*} [options] Override http request option.
4186
+ * @throws {RequiredError}
4187
+ */
4188
+ fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
4189
+ return localVarFp
4190
+ .fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
4191
+ .then((request) => request(axios, basePath));
4192
+ },
4193
+ /**
4194
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4195
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4196
+ * @param {string} domainId
4197
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4198
+ * @param {*} [options] Override http request option.
4199
+ * @throws {RequiredError}
4200
+ */
4201
+ fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4202
+ return localVarFp
4203
+ .fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
4204
+ .then((request) => request(axios, basePath));
4205
+ },
4206
+ /**
4207
+ * One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
4208
+ * @summary Write owned, back-dated players and players-on-gameserver
4209
+ * @param {string} domainId
4210
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4211
+ * @param {*} [options] Override http request option.
4212
+ * @throws {RequiredError}
4213
+ */
4214
+ fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4215
+ return localVarFp
4216
+ .fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
4217
+ .then((request) => request(axios, basePath));
4218
+ },
4219
+ /**
4220
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4221
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4222
+ * @param {string} domainId
4223
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4224
+ * @param {*} [options] Override http request option.
4225
+ * @throws {RequiredError}
4226
+ */
4227
+ fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4228
+ return localVarFp
4229
+ .fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
4230
+ .then((request) => request(axios, basePath));
4231
+ },
4232
+ /**
4233
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4234
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4235
+ * @param {string} domainId
4236
+ * @param {string} fixtureDatasetId
4237
+ * @param {string} [cursor]
4238
+ * @param {*} [options] Override http request option.
4239
+ * @throws {RequiredError}
4240
+ */
4241
+ fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4242
+ return localVarFp
4243
+ .fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
4244
+ .then((request) => request(axios, basePath));
4245
+ },
4246
+ /**
4247
+ * One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
4248
+ * @summary Write owned, back-dated shop listings
4249
+ * @param {string} domainId
4250
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4251
+ * @param {*} [options] Override http request option.
4252
+ * @throws {RequiredError}
4253
+ */
4254
+ fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4255
+ return localVarFp
4256
+ .fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
4257
+ .then((request) => request(axios, basePath));
4258
+ },
4259
+ /**
4260
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4261
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4262
+ * @param {string} domainId
4263
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4264
+ * @param {*} [options] Override http request option.
4265
+ * @throws {RequiredError}
4266
+ */
4267
+ fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4268
+ return localVarFp
4269
+ .fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
4270
+ .then((request) => request(axios, basePath));
4271
+ },
4272
+ /**
4273
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4274
+ * @summary Owned row counts per store, and unowned events naming owned players
4275
+ * @param {string} domainId
4276
+ * @param {string} fixtureDatasetId
4277
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4278
+ * @param {*} [options] Override http request option.
4279
+ * @throws {RequiredError}
4280
+ */
4281
+ fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4282
+ return localVarFp
4283
+ .fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
4284
+ .then((request) => request(axios, basePath));
4285
+ },
4286
+ /**
4287
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4288
+ * @summary Set the offline terminal state of owned players-on-gameserver
4289
+ * @param {string} domainId
4290
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4291
+ * @param {*} [options] Override http request option.
4292
+ * @throws {RequiredError}
4293
+ */
4294
+ fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4295
+ return localVarFp
4296
+ .fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
4297
+ .then((request) => request(axios, basePath));
4298
+ },
4299
+ /**
4300
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4301
+ * @summary Page through the terminal state of owned players-on-gameserver
4302
+ * @param {string} domainId
4303
+ * @param {string} fixtureDatasetId
4304
+ * @param {string} [cursor]
4305
+ * @param {*} [options] Override http request option.
4306
+ * @throws {RequiredError}
4307
+ */
4308
+ fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4309
+ return localVarFp
4310
+ .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4311
+ .then((request) => request(axios, basePath));
4312
+ },
4313
+ };
4314
+ };
4315
+ /**
4316
+ * FixtureHistoryApi - object-oriented interface
4317
+ * @export
4318
+ * @class FixtureHistoryApi
4319
+ * @extends {BaseAPI}
4320
+ */
4321
+ export class FixtureHistoryApi extends BaseAPI {
4322
+ /**
4323
+ * <br> OperationId: `FixtureHistoryControllerActivity`
4324
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
4325
+ * @param {string} domainId
4326
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
4327
+ * @param {*} [options] Override http request option.
4328
+ * @throws {RequiredError}
4329
+ * @memberof FixtureHistoryApi
4330
+ */
4331
+ fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
4332
+ return FixtureHistoryApiFp(this.configuration)
4333
+ .fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
4334
+ .then((request) => request(this.axios, this.basePath));
4335
+ }
4336
+ /**
4337
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
4338
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
4339
+ * @param {string} domainId
4340
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
4341
+ * @param {*} [options] Override http request option.
4342
+ * @throws {RequiredError}
4343
+ * @memberof FixtureHistoryApi
4344
+ */
4345
+ fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
4346
+ return FixtureHistoryApiFp(this.configuration)
4347
+ .fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
4348
+ .then((request) => request(this.axios, this.basePath));
4349
+ }
4350
+ /**
4351
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
4352
+ * @summary What the writer can do for this domain, and the domain\'s event retention
4353
+ * @param {string} domainId
4354
+ * @param {*} [options] Override http request option.
4355
+ * @throws {RequiredError}
4356
+ * @memberof FixtureHistoryApi
4357
+ */
4358
+ fixtureHistoryControllerCapabilities(domainId, options) {
4359
+ return FixtureHistoryApiFp(this.configuration)
4360
+ .fixtureHistoryControllerCapabilities(domainId, options)
4361
+ .then((request) => request(this.axios, this.basePath));
4362
+ }
4363
+ /**
4364
+ * <br> OperationId: `FixtureHistoryControllerDelete`
4365
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
4366
+ * @param {string} domainId
4367
+ * @param {string} fixtureDatasetId
4368
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
4369
+ * @param {*} [options] Override http request option.
4370
+ * @throws {RequiredError}
4371
+ * @memberof FixtureHistoryApi
4372
+ */
4373
+ fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
4374
+ return FixtureHistoryApiFp(this.configuration)
4375
+ .fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
4376
+ .then((request) => request(this.axios, this.basePath));
4377
+ }
4378
+ /**
4379
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4380
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4381
+ * @param {string} domainId
4382
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4383
+ * @param {*} [options] Override http request option.
4384
+ * @throws {RequiredError}
4385
+ * @memberof FixtureHistoryApi
4386
+ */
4387
+ fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4388
+ return FixtureHistoryApiFp(this.configuration)
4389
+ .fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
4390
+ .then((request) => request(this.axios, this.basePath));
4391
+ }
4392
+ /**
4393
+ * One transaction. A planned row whose natural key is held by a row this dataset does not own is a conflict: nothing in the request is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerIdentities`
4394
+ * @summary Write owned, back-dated players and players-on-gameserver
4395
+ * @param {string} domainId
4396
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4397
+ * @param {*} [options] Override http request option.
4398
+ * @throws {RequiredError}
4399
+ * @memberof FixtureHistoryApi
4400
+ */
4401
+ fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4402
+ return FixtureHistoryApiFp(this.configuration)
4403
+ .fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
4404
+ .then((request) => request(this.axios, this.basePath));
4405
+ }
4406
+ /**
4407
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4408
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4409
+ * @param {string} domainId
4410
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4411
+ * @param {*} [options] Override http request option.
4412
+ * @throws {RequiredError}
4413
+ * @memberof FixtureHistoryApi
4414
+ */
4415
+ fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4416
+ return FixtureHistoryApiFp(this.configuration)
4417
+ .fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
4418
+ .then((request) => request(this.axios, this.basePath));
4419
+ }
4420
+ /**
4421
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4422
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4423
+ * @param {string} domainId
4424
+ * @param {string} fixtureDatasetId
4425
+ * @param {string} [cursor]
4426
+ * @param {*} [options] Override http request option.
4427
+ * @throws {RequiredError}
4428
+ * @memberof FixtureHistoryApi
4429
+ */
4430
+ fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4431
+ return FixtureHistoryApiFp(this.configuration)
4432
+ .fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
4433
+ .then((request) => request(this.axios, this.basePath));
4434
+ }
4435
+ /**
4436
+ * One transaction. A listing whose id, or whose name on its gameserver, is held by a listing this dataset does not own is a conflict: nothing is written and the conflicts are returned.<br> OperationId: `FixtureHistoryControllerListings`
4437
+ * @summary Write owned, back-dated shop listings
4438
+ * @param {string} domainId
4439
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4440
+ * @param {*} [options] Override http request option.
4441
+ * @throws {RequiredError}
4442
+ * @memberof FixtureHistoryApi
4443
+ */
4444
+ fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4445
+ return FixtureHistoryApiFp(this.configuration)
4446
+ .fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
4447
+ .then((request) => request(this.axios, this.basePath));
4448
+ }
4449
+ /**
4450
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4451
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4452
+ * @param {string} domainId
4453
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4454
+ * @param {*} [options] Override http request option.
4455
+ * @throws {RequiredError}
4456
+ * @memberof FixtureHistoryApi
4457
+ */
4458
+ fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4459
+ return FixtureHistoryApiFp(this.configuration)
4460
+ .fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
4461
+ .then((request) => request(this.axios, this.basePath));
4462
+ }
4463
+ /**
4464
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4465
+ * @summary Owned row counts per store, and unowned events naming owned players
4466
+ * @param {string} domainId
4467
+ * @param {string} fixtureDatasetId
4468
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4469
+ * @param {*} [options] Override http request option.
4470
+ * @throws {RequiredError}
4471
+ * @memberof FixtureHistoryApi
4472
+ */
4473
+ fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4474
+ return FixtureHistoryApiFp(this.configuration)
4475
+ .fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
4476
+ .then((request) => request(this.axios, this.basePath));
4477
+ }
4478
+ /**
4479
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4480
+ * @summary Set the offline terminal state of owned players-on-gameserver
4481
+ * @param {string} domainId
4482
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4483
+ * @param {*} [options] Override http request option.
4484
+ * @throws {RequiredError}
4485
+ * @memberof FixtureHistoryApi
4486
+ */
4487
+ fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4488
+ return FixtureHistoryApiFp(this.configuration)
4489
+ .fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
4490
+ .then((request) => request(this.axios, this.basePath));
4491
+ }
4492
+ /**
4493
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4494
+ * @summary Page through the terminal state of owned players-on-gameserver
4495
+ * @param {string} domainId
4496
+ * @param {string} fixtureDatasetId
4497
+ * @param {string} [cursor]
4498
+ * @param {*} [options] Override http request option.
4499
+ * @throws {RequiredError}
4500
+ * @memberof FixtureHistoryApi
4501
+ */
4502
+ fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4503
+ return FixtureHistoryApiFp(this.configuration)
4504
+ .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4505
+ .then((request) => request(this.axios, this.basePath));
4506
+ }
4507
+ }
4508
+ /**
4509
+ * MetaApi - axios parameter creator
4510
+ * @export
4511
+ */
4512
+ export const MetaApiAxiosParamCreator = function (configuration) {
4513
+ return {
4514
+ /**
4515
+ * <br> OperationId: `MetaGetHealth`
4516
+ * @summary Get health
4517
+ * @param {*} [options] Override http request option.
4518
+ * @throws {RequiredError}
4519
+ */
4520
+ metaGetHealth: async (options = {}) => {
4521
+ const localVarPath = `/healthz`;
4522
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4523
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4524
+ let baseOptions;
4525
+ if (configuration) {
4526
+ baseOptions = configuration.baseOptions;
4527
+ }
4528
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4529
+ const localVarHeaderParameter = {};
4530
+ const localVarQueryParameter = {};
4531
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4532
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4533
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4534
+ return {
4535
+ url: toPathString(localVarUrlObj),
4536
+ options: localVarRequestOptions,
4537
+ };
4538
+ },
4539
+ /**
4540
+ * <br> OperationId: `MetaGetLiveness`
4541
+ * @summary Get liveness
4542
+ * @param {*} [options] Override http request option.
4543
+ * @throws {RequiredError}
4544
+ */
4545
+ metaGetLiveness: async (options = {}) => {
4546
+ const localVarPath = `/livez`;
4547
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4548
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4549
+ let baseOptions;
4550
+ if (configuration) {
4551
+ baseOptions = configuration.baseOptions;
4552
+ }
4553
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4554
+ const localVarHeaderParameter = {};
4555
+ const localVarQueryParameter = {};
4556
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4557
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4558
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4559
+ return {
4560
+ url: toPathString(localVarUrlObj),
4561
+ options: localVarRequestOptions,
4562
+ };
4563
+ },
4564
+ /**
4565
+ * <br> OperationId: `MetaGetOpenApi`
4566
+ * @summary Get open api
4567
+ * @param {*} [options] Override http request option.
4568
+ * @throws {RequiredError}
4569
+ */
4570
+ metaGetOpenApi: async (options = {}) => {
4571
+ const localVarPath = `/openapi.json`;
4572
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4573
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4574
+ let baseOptions;
4575
+ if (configuration) {
4576
+ baseOptions = configuration.baseOptions;
4577
+ }
4578
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4579
+ const localVarHeaderParameter = {};
4580
+ const localVarQueryParameter = {};
4581
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4582
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4583
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4584
+ return {
4585
+ url: toPathString(localVarUrlObj),
4586
+ options: localVarRequestOptions,
4587
+ };
4588
+ },
4589
+ /**
4590
+ * <br> OperationId: `MetaGetOpenApiHtml`
4591
+ * @summary Get open api html
4592
+ * @param {*} [options] Override http request option.
4593
+ * @throws {RequiredError}
4594
+ */
4595
+ metaGetOpenApiHtml: async (options = {}) => {
4596
+ const localVarPath = `/api.html`;
4597
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4598
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4599
+ let baseOptions;
4600
+ if (configuration) {
4601
+ baseOptions = configuration.baseOptions;
4602
+ }
4603
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4604
+ const localVarHeaderParameter = {};
4605
+ const localVarQueryParameter = {};
4606
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4607
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4608
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4609
+ return {
4610
+ url: toPathString(localVarUrlObj),
4611
+ options: localVarRequestOptions,
4612
+ };
4613
+ },
4614
+ /**
4615
+ * <br> OperationId: `MetaGetReadiness`
4616
+ * @summary Get readiness
4617
+ * @param {*} [options] Override http request option.
4618
+ * @throws {RequiredError}
4619
+ */
4620
+ metaGetReadiness: async (options = {}) => {
4621
+ const localVarPath = `/readyz`;
4622
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4623
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4624
+ let baseOptions;
4625
+ if (configuration) {
4626
+ baseOptions = configuration.baseOptions;
4627
+ }
4628
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4629
+ const localVarHeaderParameter = {};
4630
+ const localVarQueryParameter = {};
4631
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4632
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4633
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4634
+ return {
4635
+ url: toPathString(localVarUrlObj),
4636
+ options: localVarRequestOptions,
4637
+ };
4638
+ },
4639
+ /**
4640
+ * <br> OperationId: `MetaGetRoot`
4641
+ * @summary Get root
4642
+ * @param {*} [options] Override http request option.
4643
+ * @throws {RequiredError}
4644
+ */
4645
+ metaGetRoot: async (options = {}) => {
4646
+ const localVarPath = `/`;
4647
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4648
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4649
+ let baseOptions;
4650
+ if (configuration) {
4651
+ baseOptions = configuration.baseOptions;
4652
+ }
4653
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4654
+ const localVarHeaderParameter = {};
4655
+ const localVarQueryParameter = {};
4656
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4657
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4658
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4659
+ return {
4660
+ url: toPathString(localVarUrlObj),
4661
+ options: localVarRequestOptions,
4662
+ };
4663
+ },
4664
+ };
4665
+ };
4666
+ /**
4667
+ * MetaApi - functional programming interface
4668
+ * @export
4669
+ */
4670
+ export const MetaApiFp = function (configuration) {
4671
+ const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration);
4672
+ return {
4673
+ /**
4674
+ * <br> OperationId: `MetaGetHealth`
4675
+ * @summary Get health
4676
+ * @param {*} [options] Override http request option.
4677
+ * @throws {RequiredError}
4678
+ */
4679
+ async metaGetHealth(options) {
4680
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetHealth(options);
4681
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4682
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetHealth']?.[localVarOperationServerIndex]?.url;
4683
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4684
+ },
4685
+ /**
4686
+ * <br> OperationId: `MetaGetLiveness`
4687
+ * @summary Get liveness
4688
+ * @param {*} [options] Override http request option.
4689
+ * @throws {RequiredError}
4690
+ */
4691
+ async metaGetLiveness(options) {
4692
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetLiveness(options);
4693
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4694
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
4695
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4696
+ },
4697
+ /**
4698
+ * <br> OperationId: `MetaGetOpenApi`
4699
+ * @summary Get open api
4700
+ * @param {*} [options] Override http request option.
4701
+ * @throws {RequiredError}
4702
+ */
4703
+ async metaGetOpenApi(options) {
4704
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options);
4705
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4706
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[localVarOperationServerIndex]?.url;
4707
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3387
4708
  },
3388
4709
  /**
3389
4710
  * <br> OperationId: `MetaGetOpenApiHtml`
@@ -3448,15 +4769,6 @@ export const MetaApiFactory = function (configuration, basePath, axios) {
3448
4769
  metaGetLiveness(options) {
3449
4770
  return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
3450
4771
  },
3451
- /**
3452
- * <br> OperationId: `MetaGetMetrics`
3453
- * @summary Get metrics
3454
- * @param {*} [options] Override http request option.
3455
- * @throws {RequiredError}
3456
- */
3457
- metaGetMetrics(options) {
3458
- return localVarFp.metaGetMetrics(options).then((request) => request(axios, basePath));
3459
- },
3460
4772
  /**
3461
4773
  * <br> OperationId: `MetaGetOpenApi`
3462
4774
  * @summary Get open api
@@ -3526,18 +4838,6 @@ export class MetaApi extends BaseAPI {
3526
4838
  .metaGetLiveness(options)
3527
4839
  .then((request) => request(this.axios, this.basePath));
3528
4840
  }
3529
- /**
3530
- * <br> OperationId: `MetaGetMetrics`
3531
- * @summary Get metrics
3532
- * @param {*} [options] Override http request option.
3533
- * @throws {RequiredError}
3534
- * @memberof MetaApi
3535
- */
3536
- metaGetMetrics(options) {
3537
- return MetaApiFp(this.configuration)
3538
- .metaGetMetrics(options)
3539
- .then((request) => request(this.axios, this.basePath));
3540
- }
3541
4841
  /**
3542
4842
  * <br> OperationId: `MetaGetOpenApi`
3543
4843
  * @summary Get open api
@@ -3904,13 +5204,268 @@ export class StaffAuthApi extends BaseAPI {
3904
5204
  export const StaffMeApiAxiosParamCreator = function (configuration) {
3905
5205
  return {
3906
5206
  /**
3907
- * The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
3908
- * @summary Who this Staff session belongs to
5207
+ * 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`
5208
+ * @summary Who this Staff session belongs to
5209
+ * @param {*} [options] Override http request option.
5210
+ * @throws {RequiredError}
5211
+ */
5212
+ staffMeControllerMe: async (options = {}) => {
5213
+ const localVarPath = `/staff/me`;
5214
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5215
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5216
+ let baseOptions;
5217
+ if (configuration) {
5218
+ baseOptions = configuration.baseOptions;
5219
+ }
5220
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5221
+ const localVarHeaderParameter = {};
5222
+ const localVarQueryParameter = {};
5223
+ // authentication staffSession required
5224
+ // authentication adminAuth required
5225
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5226
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5227
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5228
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5229
+ return {
5230
+ url: toPathString(localVarUrlObj),
5231
+ options: localVarRequestOptions,
5232
+ };
5233
+ },
5234
+ };
5235
+ };
5236
+ /**
5237
+ * StaffMeApi - functional programming interface
5238
+ * @export
5239
+ */
5240
+ export const StaffMeApiFp = function (configuration) {
5241
+ const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
5242
+ return {
5243
+ /**
5244
+ * 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`
5245
+ * @summary Who this Staff session belongs to
5246
+ * @param {*} [options] Override http request option.
5247
+ * @throws {RequiredError}
5248
+ */
5249
+ async staffMeControllerMe(options) {
5250
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
5251
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5252
+ const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
5253
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5254
+ },
5255
+ };
5256
+ };
5257
+ /**
5258
+ * StaffMeApi - factory interface
5259
+ * @export
5260
+ */
5261
+ export const StaffMeApiFactory = function (configuration, basePath, axios) {
5262
+ const localVarFp = StaffMeApiFp(configuration);
5263
+ return {
5264
+ /**
5265
+ * 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`
5266
+ * @summary Who this Staff session belongs to
5267
+ * @param {*} [options] Override http request option.
5268
+ * @throws {RequiredError}
5269
+ */
5270
+ staffMeControllerMe(options) {
5271
+ return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
5272
+ },
5273
+ };
5274
+ };
5275
+ /**
5276
+ * StaffMeApi - object-oriented interface
5277
+ * @export
5278
+ * @class StaffMeApi
5279
+ * @extends {BaseAPI}
5280
+ */
5281
+ export class StaffMeApi extends BaseAPI {
5282
+ /**
5283
+ * 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`
5284
+ * @summary Who this Staff session belongs to
5285
+ * @param {*} [options] Override http request option.
5286
+ * @throws {RequiredError}
5287
+ * @memberof StaffMeApi
5288
+ */
5289
+ staffMeControllerMe(options) {
5290
+ return StaffMeApiFp(this.configuration)
5291
+ .staffMeControllerMe(options)
5292
+ .then((request) => request(this.axios, this.basePath));
5293
+ }
5294
+ }
5295
+ /**
5296
+ * StaffPlanApi - axios parameter creator
5297
+ * @export
5298
+ */
5299
+ export const StaffPlanApiAxiosParamCreator = function (configuration) {
5300
+ return {
5301
+ /**
5302
+ * 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`
5303
+ * @summary The Plan catalogue
5304
+ * @param {*} [options] Override http request option.
5305
+ * @throws {RequiredError}
5306
+ */
5307
+ staffPlanControllerList: async (options = {}) => {
5308
+ const localVarPath = `/staff/plans`;
5309
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5310
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5311
+ let baseOptions;
5312
+ if (configuration) {
5313
+ baseOptions = configuration.baseOptions;
5314
+ }
5315
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5316
+ const localVarHeaderParameter = {};
5317
+ const localVarQueryParameter = {};
5318
+ // authentication staffSession required
5319
+ // authentication adminAuth required
5320
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5321
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5322
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5323
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5324
+ return {
5325
+ url: toPathString(localVarUrlObj),
5326
+ options: localVarRequestOptions,
5327
+ };
5328
+ },
5329
+ };
5330
+ };
5331
+ /**
5332
+ * StaffPlanApi - functional programming interface
5333
+ * @export
5334
+ */
5335
+ export const StaffPlanApiFp = function (configuration) {
5336
+ const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
5337
+ return {
5338
+ /**
5339
+ * 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`
5340
+ * @summary The Plan catalogue
5341
+ * @param {*} [options] Override http request option.
5342
+ * @throws {RequiredError}
5343
+ */
5344
+ async staffPlanControllerList(options) {
5345
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(options);
5346
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5347
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
5348
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5349
+ },
5350
+ };
5351
+ };
5352
+ /**
5353
+ * StaffPlanApi - factory interface
5354
+ * @export
5355
+ */
5356
+ export const StaffPlanApiFactory = function (configuration, basePath, axios) {
5357
+ const localVarFp = StaffPlanApiFp(configuration);
5358
+ return {
5359
+ /**
5360
+ * 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`
5361
+ * @summary The Plan catalogue
5362
+ * @param {*} [options] Override http request option.
5363
+ * @throws {RequiredError}
5364
+ */
5365
+ staffPlanControllerList(options) {
5366
+ return localVarFp.staffPlanControllerList(options).then((request) => request(axios, basePath));
5367
+ },
5368
+ };
5369
+ };
5370
+ /**
5371
+ * StaffPlanApi - object-oriented interface
5372
+ * @export
5373
+ * @class StaffPlanApi
5374
+ * @extends {BaseAPI}
5375
+ */
5376
+ export class StaffPlanApi extends BaseAPI {
5377
+ /**
5378
+ * 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`
5379
+ * @summary The Plan catalogue
5380
+ * @param {*} [options] Override http request option.
5381
+ * @throws {RequiredError}
5382
+ * @memberof StaffPlanApi
5383
+ */
5384
+ staffPlanControllerList(options) {
5385
+ return StaffPlanApiFp(this.configuration)
5386
+ .staffPlanControllerList(options)
5387
+ .then((request) => request(this.axios, this.basePath));
5388
+ }
5389
+ }
5390
+ /**
5391
+ * StaffTakaroAiApi - axios parameter creator
5392
+ * @export
5393
+ */
5394
+ export const StaffTakaroAiApiAxiosParamCreator = function (configuration) {
5395
+ return {
5396
+ /**
5397
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
5398
+ * @summary Clear the Takaro AI override of a Domain
5399
+ * @param {string} id
5400
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
5401
+ * @param {*} [options] Override http request option.
5402
+ * @throws {RequiredError}
5403
+ */
5404
+ staffTakaroAiControllerClearDomainOverride: async (id, takaroAiOverrideClearInputDTO, options = {}) => {
5405
+ // verify required parameter 'id' is not null or undefined
5406
+ assertParamExists('staffTakaroAiControllerClearDomainOverride', 'id', id);
5407
+ const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5408
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5409
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5410
+ let baseOptions;
5411
+ if (configuration) {
5412
+ baseOptions = configuration.baseOptions;
5413
+ }
5414
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
5415
+ const localVarHeaderParameter = {};
5416
+ const localVarQueryParameter = {};
5417
+ // authentication staffSession required
5418
+ // authentication adminAuth required
5419
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5420
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5421
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5422
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5423
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5424
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiOverrideClearInputDTO, localVarRequestOptions, configuration);
5425
+ return {
5426
+ url: toPathString(localVarUrlObj),
5427
+ options: localVarRequestOptions,
5428
+ };
5429
+ },
5430
+ /**
5431
+ * Staff only. Amounts are integer microdollars: Plan base, the effective monthly allowance, usage and total spend, plus the override and its change history.<br> OperationId: `StaffTakaroAiControllerGetDomain`
5432
+ * @summary Takaro AI allowance, override and spend of a Domain
5433
+ * @param {string} id
5434
+ * @param {*} [options] Override http request option.
5435
+ * @throws {RequiredError}
5436
+ */
5437
+ staffTakaroAiControllerGetDomain: async (id, options = {}) => {
5438
+ // verify required parameter 'id' is not null or undefined
5439
+ assertParamExists('staffTakaroAiControllerGetDomain', 'id', id);
5440
+ const localVarPath = `/staff/takaro-ai/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5441
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5442
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5443
+ let baseOptions;
5444
+ if (configuration) {
5445
+ baseOptions = configuration.baseOptions;
5446
+ }
5447
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5448
+ const localVarHeaderParameter = {};
5449
+ const localVarQueryParameter = {};
5450
+ // authentication staffSession required
5451
+ // authentication adminAuth required
5452
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5453
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5454
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5455
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5456
+ return {
5457
+ url: toPathString(localVarUrlObj),
5458
+ options: localVarRequestOptions,
5459
+ };
5460
+ },
5461
+ /**
5462
+ * Staff only. Amounts are integer microdollars: platform spend this month, today and in the spend alert window, the top Domains by spend, the global multiplier and its history, and the spend alerts.<br> OperationId: `StaffTakaroAiControllerGetPlatform`
5463
+ * @summary Takaro AI platform spend and global multiplier
3909
5464
  * @param {*} [options] Override http request option.
3910
5465
  * @throws {RequiredError}
3911
5466
  */
3912
- staffMeControllerMe: async (options = {}) => {
3913
- const localVarPath = `/staff/me`;
5467
+ staffTakaroAiControllerGetPlatform: async (options = {}) => {
5468
+ const localVarPath = `/staff/takaro-ai`;
3914
5469
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3915
5470
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3916
5471
  let baseOptions;
@@ -3931,96 +5486,100 @@ export const StaffMeApiAxiosParamCreator = function (configuration) {
3931
5486
  options: localVarRequestOptions,
3932
5487
  };
3933
5488
  },
3934
- };
3935
- };
3936
- /**
3937
- * StaffMeApi - functional programming interface
3938
- * @export
3939
- */
3940
- export const StaffMeApiFp = function (configuration) {
3941
- const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
3942
- return {
3943
5489
  /**
3944
- * The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
3945
- * @summary Who this Staff session belongs to
5490
+ * Staff only. A factor on the Domain’s allowance, 0 to 1000, with an optional expiry in the future. 0 switches Takaro AI off for the Domain. The billing reconciler never writes it.<br> OperationId: `StaffTakaroAiControllerSetDomainOverride`
5491
+ * @summary Set the Takaro AI override of a Domain
5492
+ * @param {string} id
5493
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
3946
5494
  * @param {*} [options] Override http request option.
3947
5495
  * @throws {RequiredError}
3948
5496
  */
3949
- async staffMeControllerMe(options) {
3950
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
3951
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3952
- const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
3953
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5497
+ staffTakaroAiControllerSetDomainOverride: async (id, takaroAiDomainOverrideInputDTO, options = {}) => {
5498
+ // verify required parameter 'id' is not null or undefined
5499
+ assertParamExists('staffTakaroAiControllerSetDomainOverride', 'id', id);
5500
+ const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5501
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5502
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5503
+ let baseOptions;
5504
+ if (configuration) {
5505
+ baseOptions = configuration.baseOptions;
5506
+ }
5507
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
5508
+ const localVarHeaderParameter = {};
5509
+ const localVarQueryParameter = {};
5510
+ // authentication staffSession required
5511
+ // authentication adminAuth required
5512
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5513
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5514
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5515
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5516
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5517
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiDomainOverrideInputDTO, localVarRequestOptions, configuration);
5518
+ return {
5519
+ url: toPathString(localVarUrlObj),
5520
+ options: localVarRequestOptions,
5521
+ };
3954
5522
  },
3955
- };
3956
- };
3957
- /**
3958
- * StaffMeApi - factory interface
3959
- * @export
3960
- */
3961
- export const StaffMeApiFactory = function (configuration, basePath, axios) {
3962
- const localVarFp = StaffMeApiFp(configuration);
3963
- return {
3964
5523
  /**
3965
- * The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
3966
- * @summary Who this Staff session belongs to
5524
+ * Staff only. A factor on every Domain’s monthly allowance, 0 to 10. Applies from the next usage evaluation; needs no restart. Recorded with who, when and the reason.<br> OperationId: `StaffTakaroAiControllerSetGlobalMultiplier`
5525
+ * @summary Set the Takaro AI global multiplier
5526
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
3967
5527
  * @param {*} [options] Override http request option.
3968
5528
  * @throws {RequiredError}
3969
5529
  */
3970
- staffMeControllerMe(options) {
3971
- return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
5530
+ staffTakaroAiControllerSetGlobalMultiplier: async (takaroAiGlobalMultiplierInputDTO, options = {}) => {
5531
+ const localVarPath = `/staff/takaro-ai/global-multiplier`;
5532
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5533
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5534
+ let baseOptions;
5535
+ if (configuration) {
5536
+ baseOptions = configuration.baseOptions;
5537
+ }
5538
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
5539
+ const localVarHeaderParameter = {};
5540
+ const localVarQueryParameter = {};
5541
+ // authentication staffSession required
5542
+ // authentication adminAuth required
5543
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5544
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5545
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5546
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5547
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5548
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiGlobalMultiplierInputDTO, localVarRequestOptions, configuration);
5549
+ return {
5550
+ url: toPathString(localVarUrlObj),
5551
+ options: localVarRequestOptions,
5552
+ };
3972
5553
  },
3973
- };
3974
- };
3975
- /**
3976
- * StaffMeApi - object-oriented interface
3977
- * @export
3978
- * @class StaffMeApi
3979
- * @extends {BaseAPI}
3980
- */
3981
- export class StaffMeApi extends BaseAPI {
3982
- /**
3983
- * The signed-in Takaro Staff member and their tier (ADR 0026). Deliberately nothing else: no domains, no permissions, and never a token.<br> OperationId: `StaffMeControllerMe`
3984
- * @summary Who this Staff session belongs to
3985
- * @param {*} [options] Override http request option.
3986
- * @throws {RequiredError}
3987
- * @memberof StaffMeApi
3988
- */
3989
- staffMeControllerMe(options) {
3990
- return StaffMeApiFp(this.configuration)
3991
- .staffMeControllerMe(options)
3992
- .then((request) => request(this.axios, this.basePath));
3993
- }
3994
- }
3995
- /**
3996
- * StaffPlanApi - axios parameter creator
3997
- * @export
3998
- */
3999
- export const StaffPlanApiAxiosParamCreator = function (configuration) {
4000
- return {
4001
5554
  /**
4002
- * Every Plan the billing provider knows about, unfiltered by storefront lookup keys — the ids here are exactly what a Distributor’s allowedPlans accepts. A Viewer sees no prices; Operator and Owner do.<br> OperationId: `StaffPlanControllerList`
4003
- * @summary The Plan catalogue
5555
+ * Staff only. What the Domain may spend in CSMM Migration Threads over its lifetime, in integer microdollars. Those Threads do not count against the allowance, so this cap is their only bound. `null` goes back to the configured default. Applies from the next message.<br> OperationId: `StaffTakaroAiControllerSetMigrationCap`
5556
+ * @summary Set the CSMM Migration cap of a Domain
5557
+ * @param {string} id
5558
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
4004
5559
  * @param {*} [options] Override http request option.
4005
5560
  * @throws {RequiredError}
4006
5561
  */
4007
- staffPlanControllerList: async (options = {}) => {
4008
- const localVarPath = `/staff/plans`;
5562
+ staffTakaroAiControllerSetMigrationCap: async (id, takaroAiMigrationCapInputDTO, options = {}) => {
5563
+ // verify required parameter 'id' is not null or undefined
5564
+ assertParamExists('staffTakaroAiControllerSetMigrationCap', 'id', id);
5565
+ const localVarPath = `/staff/takaro-ai/domain/{id}/migration-cap`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4009
5566
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4010
5567
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4011
5568
  let baseOptions;
4012
5569
  if (configuration) {
4013
5570
  baseOptions = configuration.baseOptions;
4014
5571
  }
4015
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5572
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
4016
5573
  const localVarHeaderParameter = {};
4017
5574
  const localVarQueryParameter = {};
4018
5575
  // authentication staffSession required
4019
5576
  // authentication adminAuth required
4020
5577
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5578
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4021
5579
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4022
5580
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4023
5581
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5582
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiMigrationCapInputDTO, localVarRequestOptions, configuration);
4024
5583
  return {
4025
5584
  url: toPathString(localVarUrlObj),
4026
5585
  options: localVarRequestOptions,
@@ -4029,61 +5588,260 @@ export const StaffPlanApiAxiosParamCreator = function (configuration) {
4029
5588
  };
4030
5589
  };
4031
5590
  /**
4032
- * StaffPlanApi - functional programming interface
5591
+ * StaffTakaroAiApi - functional programming interface
4033
5592
  * @export
4034
5593
  */
4035
- export const StaffPlanApiFp = function (configuration) {
4036
- const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
5594
+ export const StaffTakaroAiApiFp = function (configuration) {
5595
+ const localVarAxiosParamCreator = StaffTakaroAiApiAxiosParamCreator(configuration);
4037
5596
  return {
4038
5597
  /**
4039
- * Every Plan the billing provider knows about, unfiltered by storefront lookup keys — the ids here are exactly what a Distributor’s allowedPlans accepts. A Viewer sees no prices; Operator and Owner do.<br> OperationId: `StaffPlanControllerList`
4040
- * @summary The Plan catalogue
5598
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
5599
+ * @summary Clear the Takaro AI override of a Domain
5600
+ * @param {string} id
5601
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
4041
5602
  * @param {*} [options] Override http request option.
4042
5603
  * @throws {RequiredError}
4043
5604
  */
4044
- async staffPlanControllerList(options) {
4045
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(options);
5605
+ async staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
5606
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options);
4046
5607
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4047
- const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
5608
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerClearDomainOverride']?.[localVarOperationServerIndex]?.url;
5609
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5610
+ },
5611
+ /**
5612
+ * Staff only. Amounts are integer microdollars: Plan base, the effective monthly allowance, usage and total spend, plus the override and its change history.<br> OperationId: `StaffTakaroAiControllerGetDomain`
5613
+ * @summary Takaro AI allowance, override and spend of a Domain
5614
+ * @param {string} id
5615
+ * @param {*} [options] Override http request option.
5616
+ * @throws {RequiredError}
5617
+ */
5618
+ async staffTakaroAiControllerGetDomain(id, options) {
5619
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetDomain(id, options);
5620
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5621
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetDomain']?.[localVarOperationServerIndex]?.url;
5622
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5623
+ },
5624
+ /**
5625
+ * Staff only. Amounts are integer microdollars: platform spend this month, today and in the spend alert window, the top Domains by spend, the global multiplier and its history, and the spend alerts.<br> OperationId: `StaffTakaroAiControllerGetPlatform`
5626
+ * @summary Takaro AI platform spend and global multiplier
5627
+ * @param {*} [options] Override http request option.
5628
+ * @throws {RequiredError}
5629
+ */
5630
+ async staffTakaroAiControllerGetPlatform(options) {
5631
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetPlatform(options);
5632
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5633
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetPlatform']?.[localVarOperationServerIndex]?.url;
5634
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5635
+ },
5636
+ /**
5637
+ * Staff only. A factor on the Domain’s allowance, 0 to 1000, with an optional expiry in the future. 0 switches Takaro AI off for the Domain. The billing reconciler never writes it.<br> OperationId: `StaffTakaroAiControllerSetDomainOverride`
5638
+ * @summary Set the Takaro AI override of a Domain
5639
+ * @param {string} id
5640
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
5641
+ * @param {*} [options] Override http request option.
5642
+ * @throws {RequiredError}
5643
+ */
5644
+ async staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
5645
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options);
5646
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5647
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetDomainOverride']?.[localVarOperationServerIndex]
5648
+ ?.url;
5649
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5650
+ },
5651
+ /**
5652
+ * Staff only. A factor on every Domain’s monthly allowance, 0 to 10. Applies from the next usage evaluation; needs no restart. Recorded with who, when and the reason.<br> OperationId: `StaffTakaroAiControllerSetGlobalMultiplier`
5653
+ * @summary Set the Takaro AI global multiplier
5654
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
5655
+ * @param {*} [options] Override http request option.
5656
+ * @throws {RequiredError}
5657
+ */
5658
+ async staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
5659
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options);
5660
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5661
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetGlobalMultiplier']?.[localVarOperationServerIndex]?.url;
5662
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5663
+ },
5664
+ /**
5665
+ * Staff only. What the Domain may spend in CSMM Migration Threads over its lifetime, in integer microdollars. Those Threads do not count against the allowance, so this cap is their only bound. `null` goes back to the configured default. Applies from the next message.<br> OperationId: `StaffTakaroAiControllerSetMigrationCap`
5666
+ * @summary Set the CSMM Migration cap of a Domain
5667
+ * @param {string} id
5668
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
5669
+ * @param {*} [options] Override http request option.
5670
+ * @throws {RequiredError}
5671
+ */
5672
+ async staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
5673
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options);
5674
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5675
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetMigrationCap']?.[localVarOperationServerIndex]
5676
+ ?.url;
4048
5677
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4049
5678
  },
4050
5679
  };
4051
5680
  };
4052
5681
  /**
4053
- * StaffPlanApi - factory interface
5682
+ * StaffTakaroAiApi - factory interface
4054
5683
  * @export
4055
5684
  */
4056
- export const StaffPlanApiFactory = function (configuration, basePath, axios) {
4057
- const localVarFp = StaffPlanApiFp(configuration);
5685
+ export const StaffTakaroAiApiFactory = function (configuration, basePath, axios) {
5686
+ const localVarFp = StaffTakaroAiApiFp(configuration);
4058
5687
  return {
4059
5688
  /**
4060
- * Every Plan the billing provider knows about, unfiltered by storefront lookup keys — the ids here are exactly what a Distributor’s allowedPlans accepts. A Viewer sees no prices; Operator and Owner do.<br> OperationId: `StaffPlanControllerList`
4061
- * @summary The Plan catalogue
5689
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
5690
+ * @summary Clear the Takaro AI override of a Domain
5691
+ * @param {string} id
5692
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
4062
5693
  * @param {*} [options] Override http request option.
4063
5694
  * @throws {RequiredError}
4064
5695
  */
4065
- staffPlanControllerList(options) {
4066
- return localVarFp.staffPlanControllerList(options).then((request) => request(axios, basePath));
5696
+ staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
5697
+ return localVarFp
5698
+ .staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
5699
+ .then((request) => request(axios, basePath));
5700
+ },
5701
+ /**
5702
+ * Staff only. Amounts are integer microdollars: Plan base, the effective monthly allowance, usage and total spend, plus the override and its change history.<br> OperationId: `StaffTakaroAiControllerGetDomain`
5703
+ * @summary Takaro AI allowance, override and spend of a Domain
5704
+ * @param {string} id
5705
+ * @param {*} [options] Override http request option.
5706
+ * @throws {RequiredError}
5707
+ */
5708
+ staffTakaroAiControllerGetDomain(id, options) {
5709
+ return localVarFp.staffTakaroAiControllerGetDomain(id, options).then((request) => request(axios, basePath));
5710
+ },
5711
+ /**
5712
+ * Staff only. Amounts are integer microdollars: platform spend this month, today and in the spend alert window, the top Domains by spend, the global multiplier and its history, and the spend alerts.<br> OperationId: `StaffTakaroAiControllerGetPlatform`
5713
+ * @summary Takaro AI platform spend and global multiplier
5714
+ * @param {*} [options] Override http request option.
5715
+ * @throws {RequiredError}
5716
+ */
5717
+ staffTakaroAiControllerGetPlatform(options) {
5718
+ return localVarFp.staffTakaroAiControllerGetPlatform(options).then((request) => request(axios, basePath));
5719
+ },
5720
+ /**
5721
+ * Staff only. A factor on the Domain’s allowance, 0 to 1000, with an optional expiry in the future. 0 switches Takaro AI off for the Domain. The billing reconciler never writes it.<br> OperationId: `StaffTakaroAiControllerSetDomainOverride`
5722
+ * @summary Set the Takaro AI override of a Domain
5723
+ * @param {string} id
5724
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
5725
+ * @param {*} [options] Override http request option.
5726
+ * @throws {RequiredError}
5727
+ */
5728
+ staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
5729
+ return localVarFp
5730
+ .staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
5731
+ .then((request) => request(axios, basePath));
5732
+ },
5733
+ /**
5734
+ * Staff only. A factor on every Domain’s monthly allowance, 0 to 10. Applies from the next usage evaluation; needs no restart. Recorded with who, when and the reason.<br> OperationId: `StaffTakaroAiControllerSetGlobalMultiplier`
5735
+ * @summary Set the Takaro AI global multiplier
5736
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
5737
+ * @param {*} [options] Override http request option.
5738
+ * @throws {RequiredError}
5739
+ */
5740
+ staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
5741
+ return localVarFp
5742
+ .staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
5743
+ .then((request) => request(axios, basePath));
5744
+ },
5745
+ /**
5746
+ * Staff only. What the Domain may spend in CSMM Migration Threads over its lifetime, in integer microdollars. Those Threads do not count against the allowance, so this cap is their only bound. `null` goes back to the configured default. Applies from the next message.<br> OperationId: `StaffTakaroAiControllerSetMigrationCap`
5747
+ * @summary Set the CSMM Migration cap of a Domain
5748
+ * @param {string} id
5749
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
5750
+ * @param {*} [options] Override http request option.
5751
+ * @throws {RequiredError}
5752
+ */
5753
+ staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
5754
+ return localVarFp
5755
+ .staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
5756
+ .then((request) => request(axios, basePath));
4067
5757
  },
4068
5758
  };
4069
5759
  };
4070
5760
  /**
4071
- * StaffPlanApi - object-oriented interface
5761
+ * StaffTakaroAiApi - object-oriented interface
4072
5762
  * @export
4073
- * @class StaffPlanApi
5763
+ * @class StaffTakaroAiApi
4074
5764
  * @extends {BaseAPI}
4075
5765
  */
4076
- export class StaffPlanApi extends BaseAPI {
5766
+ export class StaffTakaroAiApi extends BaseAPI {
4077
5767
  /**
4078
- * Every Plan the billing provider knows about, unfiltered by storefront lookup keys — the ids here are exactly what a Distributor’s allowedPlans accepts. A Viewer sees no prices; Operator and Owner do.<br> OperationId: `StaffPlanControllerList`
4079
- * @summary The Plan catalogue
5768
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
5769
+ * @summary Clear the Takaro AI override of a Domain
5770
+ * @param {string} id
5771
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
4080
5772
  * @param {*} [options] Override http request option.
4081
5773
  * @throws {RequiredError}
4082
- * @memberof StaffPlanApi
5774
+ * @memberof StaffTakaroAiApi
4083
5775
  */
4084
- staffPlanControllerList(options) {
4085
- return StaffPlanApiFp(this.configuration)
4086
- .staffPlanControllerList(options)
5776
+ staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
5777
+ return StaffTakaroAiApiFp(this.configuration)
5778
+ .staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
5779
+ .then((request) => request(this.axios, this.basePath));
5780
+ }
5781
+ /**
5782
+ * Staff only. Amounts are integer microdollars: Plan base, the effective monthly allowance, usage and total spend, plus the override and its change history.<br> OperationId: `StaffTakaroAiControllerGetDomain`
5783
+ * @summary Takaro AI allowance, override and spend of a Domain
5784
+ * @param {string} id
5785
+ * @param {*} [options] Override http request option.
5786
+ * @throws {RequiredError}
5787
+ * @memberof StaffTakaroAiApi
5788
+ */
5789
+ staffTakaroAiControllerGetDomain(id, options) {
5790
+ return StaffTakaroAiApiFp(this.configuration)
5791
+ .staffTakaroAiControllerGetDomain(id, options)
5792
+ .then((request) => request(this.axios, this.basePath));
5793
+ }
5794
+ /**
5795
+ * Staff only. Amounts are integer microdollars: platform spend this month, today and in the spend alert window, the top Domains by spend, the global multiplier and its history, and the spend alerts.<br> OperationId: `StaffTakaroAiControllerGetPlatform`
5796
+ * @summary Takaro AI platform spend and global multiplier
5797
+ * @param {*} [options] Override http request option.
5798
+ * @throws {RequiredError}
5799
+ * @memberof StaffTakaroAiApi
5800
+ */
5801
+ staffTakaroAiControllerGetPlatform(options) {
5802
+ return StaffTakaroAiApiFp(this.configuration)
5803
+ .staffTakaroAiControllerGetPlatform(options)
5804
+ .then((request) => request(this.axios, this.basePath));
5805
+ }
5806
+ /**
5807
+ * Staff only. A factor on the Domain’s allowance, 0 to 1000, with an optional expiry in the future. 0 switches Takaro AI off for the Domain. The billing reconciler never writes it.<br> OperationId: `StaffTakaroAiControllerSetDomainOverride`
5808
+ * @summary Set the Takaro AI override of a Domain
5809
+ * @param {string} id
5810
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
5811
+ * @param {*} [options] Override http request option.
5812
+ * @throws {RequiredError}
5813
+ * @memberof StaffTakaroAiApi
5814
+ */
5815
+ staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
5816
+ return StaffTakaroAiApiFp(this.configuration)
5817
+ .staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
5818
+ .then((request) => request(this.axios, this.basePath));
5819
+ }
5820
+ /**
5821
+ * Staff only. A factor on every Domain’s monthly allowance, 0 to 10. Applies from the next usage evaluation; needs no restart. Recorded with who, when and the reason.<br> OperationId: `StaffTakaroAiControllerSetGlobalMultiplier`
5822
+ * @summary Set the Takaro AI global multiplier
5823
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
5824
+ * @param {*} [options] Override http request option.
5825
+ * @throws {RequiredError}
5826
+ * @memberof StaffTakaroAiApi
5827
+ */
5828
+ staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
5829
+ return StaffTakaroAiApiFp(this.configuration)
5830
+ .staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
5831
+ .then((request) => request(this.axios, this.basePath));
5832
+ }
5833
+ /**
5834
+ * Staff only. What the Domain may spend in CSMM Migration Threads over its lifetime, in integer microdollars. Those Threads do not count against the allowance, so this cap is their only bound. `null` goes back to the configured default. Applies from the next message.<br> OperationId: `StaffTakaroAiControllerSetMigrationCap`
5835
+ * @summary Set the CSMM Migration cap of a Domain
5836
+ * @param {string} id
5837
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
5838
+ * @param {*} [options] Override http request option.
5839
+ * @throws {RequiredError}
5840
+ * @memberof StaffTakaroAiApi
5841
+ */
5842
+ staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
5843
+ return StaffTakaroAiApiFp(this.configuration)
5844
+ .staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
4087
5845
  .then((request) => request(this.axios, this.basePath));
4088
5846
  }
4089
5847
  }