@takaro/apiclient 0.0.0-dev.5018a18 → 0.0.0-dev.5055b67

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 +14494 -9158
  3. package/dist/generated/api.d.ts.map +1 -1
  4. package/dist/generated/api.js +8764 -5859
  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 +9944 -5235
  9. package/dist/generated-management/api.d.ts.map +1 -1
  10. package/dist/generated-management/api.js +1907 -191
  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 +1 -27
  23. package/dist/lib/baseClient.d.ts.map +1 -1
  24. package/dist/lib/baseClient.js +3 -18
  25. package/dist/lib/baseClient.js.map +1 -1
  26. package/dist/lib/client.d.ts +9 -23
  27. package/dist/lib/client.d.ts.map +1 -1
  28. package/dist/lib/client.js +27 -23
  29. package/dist/lib/client.js.map +1 -1
  30. package/dist/lib/distributorClient.d.ts +0 -6
  31. package/dist/lib/distributorClient.d.ts.map +1 -1
  32. package/dist/lib/distributorClient.js +1 -7
  33. package/dist/lib/distributorClient.js.map +1 -1
  34. package/dist/lib/staffClient.d.ts +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
@@ -183,6 +183,8 @@ export const EventCreateDTOEventNameEnum = {
183
183
  DomainCreated: 'domain-created',
184
184
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
185
185
  DomainPlanChanged: 'domain-plan-changed',
186
+ DiscordGuildEnabled: 'discord-guild-enabled',
187
+ ItemsGiven: 'items-given',
186
188
  PlayerConnected: 'player-connected',
187
189
  PlayerDisconnected: 'player-disconnected',
188
190
  ChatMessage: 'chat-message',
@@ -236,12 +238,39 @@ export const EventOutputDTOEventNameEnum = {
236
238
  DomainCreated: 'domain-created',
237
239
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
238
240
  DomainPlanChanged: 'domain-plan-changed',
241
+ DiscordGuildEnabled: 'discord-guild-enabled',
242
+ ItemsGiven: 'items-given',
239
243
  PlayerConnected: 'player-connected',
240
244
  PlayerDisconnected: 'player-disconnected',
241
245
  ChatMessage: 'chat-message',
242
246
  PlayerDeath: 'player-death',
243
247
  EntityKilled: 'entity-killed',
244
248
  };
249
+ export const FixtureHistoryConflictDTOKindEnum = {
250
+ TakaroPlayer: 'takaro-player',
251
+ TakaroPog: 'takaro-pog',
252
+ };
253
+ export const FixtureHistoryDeleteInputDTOStoreEnum = {
254
+ Analytics: 'analytics',
255
+ Postgres: 'postgres',
256
+ };
257
+ export const FixtureHistoryEventDTOEventNameEnum = {
258
+ PlayerConnected: 'player-connected',
259
+ PlayerDisconnected: 'player-disconnected',
260
+ PlayerSyncSnapshot: 'player-sync-snapshot',
261
+ ChatMessage: 'chat-message',
262
+ CurrencyAdded: 'currency-added',
263
+ CurrencyDeducted: 'currency-deducted',
264
+ ShopOrderCreated: 'shop-order-created',
265
+ ShopOrderStatusChanged: 'shop-order-status-changed',
266
+ };
267
+ export const FixtureHistoryListingConflictDTOKindEnum = {
268
+ TakaroListing: 'takaro-listing',
269
+ };
270
+ export const FixtureHistoryOrderDTOStatusEnum = {
271
+ Completed: 'COMPLETED',
272
+ Canceled: 'CANCELED',
273
+ };
245
274
  export const GameServerCreateDTOTypeEnum = {
246
275
  Sevendaystodie: 'SEVENDAYSTODIE',
247
276
  Rust: 'RUST',
@@ -266,6 +295,24 @@ export const GameServerUpdateDTOTypeEnum = {
266
295
  Generic: 'GENERIC',
267
296
  Mock: 'MOCK',
268
297
  };
298
+ export const GetJobInputDTOTypeEnum = {
299
+ CsmmImport: 'csmmImport',
300
+ SeedModules: 'seedModules',
301
+ CleanEvents: 'cleanEvents',
302
+ CleanExpiringVariables: 'cleanExpiringVariables',
303
+ EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
304
+ DeleteGameServers: 'deleteGameServers',
305
+ SyncItems: 'syncItems',
306
+ SyncEntities: 'syncEntities',
307
+ SyncBans: 'syncBans',
308
+ SyncMapImages: 'syncMapImages',
309
+ SyncMapUploads: 'syncMapUploads',
310
+ SyncSteam: 'syncSteam',
311
+ SyncDiscordRoles: 'syncDiscordRoles',
312
+ EmitRateLimitSummary: 'emitRateLimitSummary',
313
+ CleanRevokedApiKeys: 'cleanRevokedApiKeys',
314
+ CleanExecutionClaims: 'cleanExecutionClaims',
315
+ };
269
316
  export const HookCreateDTOEventTypeEnum = {
270
317
  Log: 'log',
271
318
  PlayerConnected: 'player-connected',
@@ -320,6 +367,8 @@ export const HookCreateDTOEventTypeEnum = {
320
367
  DomainCreated: 'domain-created',
321
368
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
322
369
  DomainPlanChanged: 'domain-plan-changed',
370
+ DiscordGuildEnabled: 'discord-guild-enabled',
371
+ ItemsGiven: 'items-given',
323
372
  };
324
373
  export const HookOutputDTOEventTypeEnum = {
325
374
  Log: 'log',
@@ -375,6 +424,8 @@ export const HookOutputDTOEventTypeEnum = {
375
424
  DomainCreated: 'domain-created',
376
425
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
377
426
  DomainPlanChanged: 'domain-plan-changed',
427
+ DiscordGuildEnabled: 'discord-guild-enabled',
428
+ ItemsGiven: 'items-given',
378
429
  };
379
430
  export const HookTriggerDTOEventTypeEnum = {
380
431
  Log: 'log',
@@ -430,6 +481,8 @@ export const HookTriggerDTOEventTypeEnum = {
430
481
  DomainCreated: 'domain-created',
431
482
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
432
483
  DomainPlanChanged: 'domain-plan-changed',
484
+ DiscordGuildEnabled: 'discord-guild-enabled',
485
+ ItemsGiven: 'items-given',
433
486
  };
434
487
  export const HookUpdateDTOEventTypeEnum = {
435
488
  Log: 'log',
@@ -485,6 +538,8 @@ export const HookUpdateDTOEventTypeEnum = {
485
538
  DomainCreated: 'domain-created',
486
539
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
487
540
  DomainPlanChanged: 'domain-plan-changed',
541
+ DiscordGuildEnabled: 'discord-guild-enabled',
542
+ ItemsGiven: 'items-given',
488
543
  };
489
544
  export const IEntityDTOTypeEnum = {
490
545
  Hostile: 'hostile',
@@ -545,6 +600,8 @@ export const IHookEventTypeEnum = {
545
600
  DomainCreated: 'domain-created',
546
601
  DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
547
602
  DomainPlanChanged: 'domain-plan-changed',
603
+ DiscordGuildEnabled: 'discord-guild-enabled',
604
+ ItemsGiven: 'items-given',
548
605
  };
549
606
  export const ITakaroQuerySortDirectionEnum = {
550
607
  Asc: 'asc',
@@ -592,6 +649,33 @@ export const ManagementDomainOutputDTOCustomDomainStateEnum = {
592
649
  Verified: 'VERIFIED',
593
650
  Failed: 'FAILED',
594
651
  };
652
+ export const MapHorizontalAxisDTOFieldEnum = {
653
+ X: 'x',
654
+ Y: 'y',
655
+ Z: 'z',
656
+ };
657
+ export const MapHorizontalAxisDTODirectionEnum = {
658
+ Right: 'right',
659
+ Left: 'left',
660
+ };
661
+ export const MapPyramidDTOOriginEnum = {
662
+ Game: 'game',
663
+ Upload: 'upload',
664
+ };
665
+ export const MapSourceDTOTypeEnum = {
666
+ None: 'none',
667
+ Tiled: 'tiled',
668
+ Image: 'image',
669
+ };
670
+ export const MapVerticalAxisDTOFieldEnum = {
671
+ X: 'x',
672
+ Y: 'y',
673
+ Z: 'z',
674
+ };
675
+ export const MapVerticalAxisDTODirectionEnum = {
676
+ Up: 'up',
677
+ Down: 'down',
678
+ };
595
679
  export const OrderStatusCountDTOStatusEnum = {
596
680
  Completed: 'COMPLETED',
597
681
  Paid: 'PAID',
@@ -674,6 +758,7 @@ export const SettingsOutputDTOKeyEnum = {
674
758
  DiscordRoleSyncPreferDiscord: 'discordRoleSyncPreferDiscord',
675
759
  UnknownCommandFeedbackEnabled: 'unknownCommandFeedbackEnabled',
676
760
  UnknownCommandFeedbackMessage: 'unknownCommandFeedbackMessage',
761
+ TakaroAiEnabled: 'takaroAiEnabled',
677
762
  };
678
763
  export const SettingsOutputDTOTypeEnum = {
679
764
  Override: 'override',
@@ -751,11 +836,24 @@ export const ShopListingUpdateDTORequiredVariableOperatorEnum = {
751
836
  Gt: 'gt',
752
837
  Lt: 'lt',
753
838
  };
839
+ export const ShopOrderDeliveryItemDTOResultEnum = {
840
+ Delivered: 'DELIVERED',
841
+ Failed: 'FAILED',
842
+ Unknown: 'UNKNOWN',
843
+ };
754
844
  export const ShopOrderOutputDTOStatusEnum = {
755
845
  Completed: 'COMPLETED',
756
846
  Paid: 'PAID',
757
847
  Canceled: 'CANCELED',
758
848
  };
849
+ export const ShopOrderOutputDTODeliveryStatusEnum = {
850
+ NotApplicable: 'NOT_APPLICABLE',
851
+ NotAttempted: 'NOT_ATTEMPTED',
852
+ InProgress: 'IN_PROGRESS',
853
+ Delivered: 'DELIVERED',
854
+ Failed: 'FAILED',
855
+ Unknown: 'UNKNOWN',
856
+ };
759
857
  export const ShopOrderUpdateDTOStatusEnum = {
760
858
  Completed: 'COMPLETED',
761
859
  Paid: 'PAID',
@@ -771,6 +869,49 @@ export const StorefrontDomainOutputDTOCustomDomainStateEnum = {
771
869
  Verified: 'VERIFIED',
772
870
  Failed: 'FAILED',
773
871
  };
872
+ export const TakaroAiDomainOutputDTOOverrideStateEnum = {
873
+ None: 'none',
874
+ Active: 'active',
875
+ Expired: 'expired',
876
+ };
877
+ export const TakaroAiDomainOutputDTOStatusEnum = {
878
+ Available: 'available',
879
+ Grace: 'grace',
880
+ DailyLimitReached: 'dailyLimitReached',
881
+ LimitReached: 'limitReached',
882
+ Disabled: 'disabled',
883
+ NoAllowance: 'noAllowance',
884
+ NeedsGameServer: 'needsGameServer',
885
+ };
886
+ export const TakaroAiStaffChangeOutputDTOSubjectEnum = {
887
+ GlobalMultiplier: 'globalMultiplier',
888
+ DomainOverride: 'domainOverride',
889
+ MigrationCap: 'migrationCap',
890
+ };
891
+ export const TakaroAiStaffChangeOutputDTOActorKindEnum = {
892
+ StaffSession: 'staffSession',
893
+ AdminSecret: 'adminSecret',
894
+ };
895
+ export const TakaroAiUsageOutputDTOStatusEnum = {
896
+ Available: 'available',
897
+ Grace: 'grace',
898
+ DailyLimitReached: 'dailyLimitReached',
899
+ LimitReached: 'limitReached',
900
+ Disabled: 'disabled',
901
+ NoAllowance: 'noAllowance',
902
+ NeedsGameServer: 'needsGameServer',
903
+ };
904
+ export const TakaroEventDomainCreatedOriginEnum = {
905
+ Distributor: 'distributor',
906
+ Staff: 'staff',
907
+ Subscription: 'subscription',
908
+ AdminSecret: 'admin_secret',
909
+ };
910
+ export const TakaroEventItemsGivenLineResultEnum = {
911
+ Delivered: 'DELIVERED',
912
+ Failed: 'FAILED',
913
+ Unknown: 'UNKNOWN',
914
+ };
774
915
  export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
775
916
  Added: 'added',
776
917
  Removed: 'removed',
@@ -781,6 +922,150 @@ export const TakaroEventRateLimitedScopeEnum = {
781
922
  Domain: 'domain',
782
923
  Global: 'global',
783
924
  };
925
+ export const ThreadApprovalDecisionInputDTOOutcomeEnum = {
926
+ Approved: 'approved',
927
+ Denied: 'denied',
928
+ };
929
+ export const ThreadContextInputDTOTypeEnum = {
930
+ Player: 'player',
931
+ GameServer: 'gameServer',
932
+ Module: 'module',
933
+ ModuleVersion: 'moduleVersion',
934
+ Event: 'event',
935
+ CsmmImport: 'csmmImport',
936
+ };
937
+ export const ThreadCreateInputDTOOriginSurfaceEnum = {
938
+ CommandPalette: 'commandPalette',
939
+ PlayerSummary: 'playerSummary',
940
+ Modules: 'modules',
941
+ GameServerModules: 'gameServerModules',
942
+ GameServerOverview: 'gameServerOverview',
943
+ GameServerConsole: 'gameServerConsole',
944
+ DashboardBriefing: 'dashboardBriefing',
945
+ EventsFilter: 'eventsFilter',
946
+ RoleBuilder: 'roleBuilder',
947
+ ModuleConfig: 'moduleConfig',
948
+ GameServerShop: 'gameServerShop',
949
+ ModuleOverview: 'moduleOverview',
950
+ ModuleBuilder: 'moduleBuilder',
951
+ EventFailure: 'eventFailure',
952
+ CsmmMigration: 'csmmMigration',
953
+ };
954
+ export const ThreadOutputDTOStatusEnum = {
955
+ Idle: 'idle',
956
+ Working: 'working',
957
+ Stopping: 'stopping',
958
+ Failed: 'failed',
959
+ AwaitingApproval: 'awaitingApproval',
960
+ AwaitingReply: 'awaitingReply',
961
+ };
962
+ export const ThreadOutputDTOOriginSurfaceEnum = {
963
+ CommandPalette: 'commandPalette',
964
+ PlayerSummary: 'playerSummary',
965
+ Modules: 'modules',
966
+ GameServerModules: 'gameServerModules',
967
+ GameServerOverview: 'gameServerOverview',
968
+ GameServerConsole: 'gameServerConsole',
969
+ DashboardBriefing: 'dashboardBriefing',
970
+ EventsFilter: 'eventsFilter',
971
+ RoleBuilder: 'roleBuilder',
972
+ ModuleConfig: 'moduleConfig',
973
+ GameServerShop: 'gameServerShop',
974
+ ModuleOverview: 'moduleOverview',
975
+ ModuleBuilder: 'moduleBuilder',
976
+ EventFailure: 'eventFailure',
977
+ CsmmMigration: 'csmmMigration',
978
+ };
979
+ export const ThreadSearchInputAllowedFiltersStatusEnum = {
980
+ Idle: 'idle',
981
+ Working: 'working',
982
+ Stopping: 'stopping',
983
+ Failed: 'failed',
984
+ AwaitingApproval: 'awaitingApproval',
985
+ AwaitingReply: 'awaitingReply',
986
+ };
987
+ export const ThreadSearchInputAllowedFiltersOriginSurfaceEnum = {
988
+ CommandPalette: 'commandPalette',
989
+ PlayerSummary: 'playerSummary',
990
+ Modules: 'modules',
991
+ GameServerModules: 'gameServerModules',
992
+ GameServerOverview: 'gameServerOverview',
993
+ GameServerConsole: 'gameServerConsole',
994
+ DashboardBriefing: 'dashboardBriefing',
995
+ EventsFilter: 'eventsFilter',
996
+ RoleBuilder: 'roleBuilder',
997
+ ModuleConfig: 'moduleConfig',
998
+ GameServerShop: 'gameServerShop',
999
+ ModuleOverview: 'moduleOverview',
1000
+ ModuleBuilder: 'moduleBuilder',
1001
+ EventFailure: 'eventFailure',
1002
+ CsmmMigration: 'csmmMigration',
1003
+ };
1004
+ export const ThreadSearchInputDTOSortDirectionEnum = {
1005
+ Asc: 'asc',
1006
+ Desc: 'desc',
1007
+ };
1008
+ export const ThreadStepApprovalDTOOutcomeEnum = {
1009
+ Approved: 'approved',
1010
+ Denied: 'denied',
1011
+ AutoAllowed: 'autoAllowed',
1012
+ Cancelled: 'cancelled',
1013
+ };
1014
+ export const ThreadStepOutputDTOKindEnum = {
1015
+ UserMessage: 'userMessage',
1016
+ ModelMessage: 'modelMessage',
1017
+ ToolCall: 'toolCall',
1018
+ ToolResult: 'toolResult',
1019
+ ApprovalRequest: 'approvalRequest',
1020
+ ApprovalOutcome: 'approvalOutcome',
1021
+ };
1022
+ export const ThreadStepReferenceDTOTypeEnum = {
1023
+ Player: 'player',
1024
+ GameServer: 'gameServer',
1025
+ Module: 'module',
1026
+ ModuleVersion: 'moduleVersion',
1027
+ Event: 'event',
1028
+ CsmmImport: 'csmmImport',
1029
+ };
1030
+ export const ThreadWithStepsOutputDTOStatusEnum = {
1031
+ Idle: 'idle',
1032
+ Working: 'working',
1033
+ Stopping: 'stopping',
1034
+ Failed: 'failed',
1035
+ AwaitingApproval: 'awaitingApproval',
1036
+ AwaitingReply: 'awaitingReply',
1037
+ };
1038
+ export const ThreadWithStepsOutputDTOOriginSurfaceEnum = {
1039
+ CommandPalette: 'commandPalette',
1040
+ PlayerSummary: 'playerSummary',
1041
+ Modules: 'modules',
1042
+ GameServerModules: 'gameServerModules',
1043
+ GameServerOverview: 'gameServerOverview',
1044
+ GameServerConsole: 'gameServerConsole',
1045
+ DashboardBriefing: 'dashboardBriefing',
1046
+ EventsFilter: 'eventsFilter',
1047
+ RoleBuilder: 'roleBuilder',
1048
+ ModuleConfig: 'moduleConfig',
1049
+ GameServerShop: 'gameServerShop',
1050
+ ModuleOverview: 'moduleOverview',
1051
+ ModuleBuilder: 'moduleBuilder',
1052
+ EventFailure: 'eventFailure',
1053
+ CsmmMigration: 'csmmMigration',
1054
+ };
1055
+ export const TriggerJobInputDTOTypeEnum = {
1056
+ SeedModules: 'seedModules',
1057
+ CleanEvents: 'cleanEvents',
1058
+ CleanExpiringVariables: 'cleanExpiringVariables',
1059
+ EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
1060
+ DeleteGameServers: 'deleteGameServers',
1061
+ SyncItems: 'syncItems',
1062
+ SyncEntities: 'syncEntities',
1063
+ SyncBans: 'syncBans',
1064
+ SyncMapImages: 'syncMapImages',
1065
+ SyncMapUploads: 'syncMapUploads',
1066
+ SyncSteam: 'syncSteam',
1067
+ SyncDiscordRoles: 'syncDiscordRoles',
1068
+ };
784
1069
  export const UserSearchInputDTOExtendEnum = {
785
1070
  Roles: 'roles',
786
1071
  };
@@ -3148,69 +3433,88 @@ export class DomainApi extends BaseAPI {
3148
3433
  }
3149
3434
  }
3150
3435
  /**
3151
- * MetaApi - axios parameter creator
3436
+ * FixtureHistoryApi - axios parameter creator
3152
3437
  * @export
3153
3438
  */
3154
- export const MetaApiAxiosParamCreator = function (configuration) {
3439
+ export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
3155
3440
  return {
3156
3441
  /**
3157
- * <br> OperationId: `MetaGetHealth`
3158
- * @summary Get health
3442
+ * <br> OperationId: `FixtureHistoryControllerActivity`
3443
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
3444
+ * @param {string} domainId
3445
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
3159
3446
  * @param {*} [options] Override http request option.
3160
3447
  * @throws {RequiredError}
3161
3448
  */
3162
- metaGetHealth: async (options = {}) => {
3163
- const localVarPath = `/healthz`;
3449
+ fixtureHistoryControllerActivity: async (domainId, fixtureHistoryActivityInputDTO, options = {}) => {
3450
+ // verify required parameter 'domainId' is not null or undefined
3451
+ assertParamExists('fixtureHistoryControllerActivity', 'domainId', domainId);
3452
+ const localVarPath = `/fixture-history/domains/{domainId}/activity`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3164
3453
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3165
3454
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3166
3455
  let baseOptions;
3167
3456
  if (configuration) {
3168
3457
  baseOptions = configuration.baseOptions;
3169
3458
  }
3170
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3459
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3171
3460
  const localVarHeaderParameter = {};
3172
3461
  const localVarQueryParameter = {};
3462
+ // authentication adminAuth required
3463
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3464
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3173
3465
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3174
3466
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3175
3467
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3468
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryActivityInputDTO, localVarRequestOptions, configuration);
3176
3469
  return {
3177
3470
  url: toPathString(localVarUrlObj),
3178
3471
  options: localVarRequestOptions,
3179
3472
  };
3180
3473
  },
3181
3474
  /**
3182
- * <br> OperationId: `MetaGetLiveness`
3183
- * @summary Get liveness
3475
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
3476
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
3477
+ * @param {string} domainId
3478
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
3184
3479
  * @param {*} [options] Override http request option.
3185
3480
  * @throws {RequiredError}
3186
3481
  */
3187
- metaGetLiveness: async (options = {}) => {
3188
- const localVarPath = `/livez`;
3482
+ fixtureHistoryControllerAnalytics: async (domainId, fixtureHistoryAnalyticsInputDTO, options = {}) => {
3483
+ // verify required parameter 'domainId' is not null or undefined
3484
+ assertParamExists('fixtureHistoryControllerAnalytics', 'domainId', domainId);
3485
+ const localVarPath = `/fixture-history/domains/{domainId}/analytics`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3189
3486
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3190
3487
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3191
3488
  let baseOptions;
3192
3489
  if (configuration) {
3193
3490
  baseOptions = configuration.baseOptions;
3194
3491
  }
3195
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3492
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3196
3493
  const localVarHeaderParameter = {};
3197
3494
  const localVarQueryParameter = {};
3495
+ // authentication adminAuth required
3496
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3497
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3198
3498
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3199
3499
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3200
3500
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3501
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryAnalyticsInputDTO, localVarRequestOptions, configuration);
3201
3502
  return {
3202
3503
  url: toPathString(localVarUrlObj),
3203
3504
  options: localVarRequestOptions,
3204
3505
  };
3205
3506
  },
3206
3507
  /**
3207
- * <br> OperationId: `MetaGetMetrics`
3208
- * @summary Get metrics
3508
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
3509
+ * @summary What the writer can do for this domain, and the domain\'s event retention
3510
+ * @param {string} domainId
3209
3511
  * @param {*} [options] Override http request option.
3210
3512
  * @throws {RequiredError}
3211
3513
  */
3212
- metaGetMetrics: async (options = {}) => {
3213
- const localVarPath = `/metrics`;
3514
+ fixtureHistoryControllerCapabilities: async (domainId, options = {}) => {
3515
+ // verify required parameter 'domainId' is not null or undefined
3516
+ assertParamExists('fixtureHistoryControllerCapabilities', 'domainId', domainId);
3517
+ const localVarPath = `/fixture-history/domains/{domainId}/capabilities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3214
3518
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3215
3519
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3216
3520
  let baseOptions;
@@ -3220,6 +3524,8 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3220
3524
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3221
3525
  const localVarHeaderParameter = {};
3222
3526
  const localVarQueryParameter = {};
3527
+ // authentication adminAuth required
3528
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3223
3529
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3224
3530
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3225
3531
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3229,173 +3535,1146 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3229
3535
  };
3230
3536
  },
3231
3537
  /**
3232
- * <br> OperationId: `MetaGetOpenApi`
3233
- * @summary Get open api
3538
+ * <br> OperationId: `FixtureHistoryControllerDelete`
3539
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
3540
+ * @param {string} domainId
3541
+ * @param {string} fixtureDatasetId
3542
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
3234
3543
  * @param {*} [options] Override http request option.
3235
3544
  * @throws {RequiredError}
3236
3545
  */
3237
- metaGetOpenApi: async (options = {}) => {
3238
- const localVarPath = `/openapi.json`;
3546
+ fixtureHistoryControllerDelete: async (domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options = {}) => {
3547
+ // verify required parameter 'domainId' is not null or undefined
3548
+ assertParamExists('fixtureHistoryControllerDelete', 'domainId', domainId);
3549
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3550
+ assertParamExists('fixtureHistoryControllerDelete', 'fixtureDatasetId', fixtureDatasetId);
3551
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/delete`
3552
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3553
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3239
3554
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3240
3555
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3241
3556
  let baseOptions;
3242
3557
  if (configuration) {
3243
3558
  baseOptions = configuration.baseOptions;
3244
3559
  }
3245
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3560
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3246
3561
  const localVarHeaderParameter = {};
3247
3562
  const localVarQueryParameter = {};
3563
+ // authentication adminAuth required
3564
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3565
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3248
3566
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3249
3567
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3250
3568
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3569
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryDeleteInputDTO, localVarRequestOptions, configuration);
3251
3570
  return {
3252
3571
  url: toPathString(localVarUrlObj),
3253
3572
  options: localVarRequestOptions,
3254
3573
  };
3255
3574
  },
3256
3575
  /**
3257
- * <br> OperationId: `MetaGetOpenApiHtml`
3258
- * @summary Get open api html
3576
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
3577
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
3578
+ * @param {string} domainId
3579
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
3259
3580
  * @param {*} [options] Override http request option.
3260
3581
  * @throws {RequiredError}
3261
3582
  */
3262
- metaGetOpenApiHtml: async (options = {}) => {
3263
- const localVarPath = `/api.html`;
3583
+ fixtureHistoryControllerEconomyReadiness: async (domainId, fixtureHistoryEconomyReadinessInputDTO, options = {}) => {
3584
+ // verify required parameter 'domainId' is not null or undefined
3585
+ assertParamExists('fixtureHistoryControllerEconomyReadiness', 'domainId', domainId);
3586
+ const localVarPath = `/fixture-history/domains/{domainId}/economy-readiness`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3264
3587
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3265
3588
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3266
3589
  let baseOptions;
3267
3590
  if (configuration) {
3268
3591
  baseOptions = configuration.baseOptions;
3269
3592
  }
3270
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3593
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3271
3594
  const localVarHeaderParameter = {};
3272
3595
  const localVarQueryParameter = {};
3596
+ // authentication adminAuth required
3597
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3598
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3273
3599
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3274
3600
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3275
3601
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3602
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryEconomyReadinessInputDTO, localVarRequestOptions, configuration);
3276
3603
  return {
3277
3604
  url: toPathString(localVarUrlObj),
3278
3605
  options: localVarRequestOptions,
3279
3606
  };
3280
3607
  },
3281
3608
  /**
3282
- * <br> OperationId: `MetaGetReadiness`
3283
- * @summary Get readiness
3609
+ * 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`
3610
+ * @summary Write owned, back-dated players and players-on-gameserver
3611
+ * @param {string} domainId
3612
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
3284
3613
  * @param {*} [options] Override http request option.
3285
3614
  * @throws {RequiredError}
3286
3615
  */
3287
- metaGetReadiness: async (options = {}) => {
3288
- const localVarPath = `/readyz`;
3616
+ fixtureHistoryControllerIdentities: async (domainId, fixtureHistoryIdentitiesInputDTO, options = {}) => {
3617
+ // verify required parameter 'domainId' is not null or undefined
3618
+ assertParamExists('fixtureHistoryControllerIdentities', 'domainId', domainId);
3619
+ const localVarPath = `/fixture-history/domains/{domainId}/identities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3289
3620
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3290
3621
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3291
3622
  let baseOptions;
3292
3623
  if (configuration) {
3293
3624
  baseOptions = configuration.baseOptions;
3294
3625
  }
3295
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3626
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3296
3627
  const localVarHeaderParameter = {};
3297
3628
  const localVarQueryParameter = {};
3629
+ // authentication adminAuth required
3630
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3631
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3298
3632
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3299
3633
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3300
3634
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3635
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryIdentitiesInputDTO, localVarRequestOptions, configuration);
3301
3636
  return {
3302
3637
  url: toPathString(localVarUrlObj),
3303
3638
  options: localVarRequestOptions,
3304
3639
  };
3305
3640
  },
3306
3641
  /**
3307
- * <br> OperationId: `MetaGetRoot`
3308
- * @summary Get root
3642
+ * <br> OperationId: `FixtureHistoryControllerInventory`
3643
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
3644
+ * @param {string} domainId
3645
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
3309
3646
  * @param {*} [options] Override http request option.
3310
3647
  * @throws {RequiredError}
3311
3648
  */
3312
- metaGetRoot: async (options = {}) => {
3313
- const localVarPath = `/`;
3649
+ fixtureHistoryControllerInventory: async (domainId, fixtureHistoryInventoryInputDTO, options = {}) => {
3650
+ // verify required parameter 'domainId' is not null or undefined
3651
+ assertParamExists('fixtureHistoryControllerInventory', 'domainId', domainId);
3652
+ const localVarPath = `/fixture-history/domains/{domainId}/inventory`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3314
3653
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3315
3654
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3316
3655
  let baseOptions;
3317
3656
  if (configuration) {
3318
3657
  baseOptions = configuration.baseOptions;
3319
3658
  }
3320
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3659
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3321
3660
  const localVarHeaderParameter = {};
3322
3661
  const localVarQueryParameter = {};
3662
+ // authentication adminAuth required
3663
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3664
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3323
3665
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3324
3666
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3325
3667
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3668
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryInventoryInputDTO, localVarRequestOptions, configuration);
3326
3669
  return {
3327
3670
  url: toPathString(localVarUrlObj),
3328
3671
  options: localVarRequestOptions,
3329
3672
  };
3330
3673
  },
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
3674
  /**
3341
- * <br> OperationId: `MetaGetHealth`
3342
- * @summary Get health
3675
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
3676
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
3677
+ * @param {string} domainId
3678
+ * @param {string} fixtureDatasetId
3679
+ * @param {string} [cursor]
3343
3680
  * @param {*} [options] Override http request option.
3344
3681
  * @throws {RequiredError}
3345
3682
  */
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);
3683
+ fixtureHistoryControllerInventoryPage: async (domainId, fixtureDatasetId, cursor, options = {}) => {
3684
+ // verify required parameter 'domainId' is not null or undefined
3685
+ assertParamExists('fixtureHistoryControllerInventoryPage', 'domainId', domainId);
3686
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3687
+ assertParamExists('fixtureHistoryControllerInventoryPage', 'fixtureDatasetId', fixtureDatasetId);
3688
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/inventory`
3689
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3690
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3691
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3692
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3693
+ let baseOptions;
3694
+ if (configuration) {
3695
+ baseOptions = configuration.baseOptions;
3696
+ }
3697
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3698
+ const localVarHeaderParameter = {};
3699
+ const localVarQueryParameter = {};
3700
+ // authentication adminAuth required
3701
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3702
+ if (cursor !== undefined) {
3703
+ localVarQueryParameter['cursor'] = cursor;
3704
+ }
3705
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3706
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3707
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3708
+ return {
3709
+ url: toPathString(localVarUrlObj),
3710
+ options: localVarRequestOptions,
3711
+ };
3351
3712
  },
3352
3713
  /**
3353
- * <br> OperationId: `MetaGetLiveness`
3354
- * @summary Get liveness
3714
+ * 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`
3715
+ * @summary Write owned, back-dated shop listings
3716
+ * @param {string} domainId
3717
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
3355
3718
  * @param {*} [options] Override http request option.
3356
3719
  * @throws {RequiredError}
3357
3720
  */
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);
3721
+ fixtureHistoryControllerListings: async (domainId, fixtureHistoryListingsInputDTO, options = {}) => {
3722
+ // verify required parameter 'domainId' is not null or undefined
3723
+ assertParamExists('fixtureHistoryControllerListings', 'domainId', domainId);
3724
+ const localVarPath = `/fixture-history/domains/{domainId}/listings`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3725
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3726
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3727
+ let baseOptions;
3728
+ if (configuration) {
3729
+ baseOptions = configuration.baseOptions;
3730
+ }
3731
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3732
+ const localVarHeaderParameter = {};
3733
+ const localVarQueryParameter = {};
3734
+ // authentication adminAuth required
3735
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3736
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3737
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3738
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3739
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3740
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryListingsInputDTO, localVarRequestOptions, configuration);
3741
+ return {
3742
+ url: toPathString(localVarUrlObj),
3743
+ options: localVarRequestOptions,
3744
+ };
3363
3745
  },
3364
3746
  /**
3365
- * <br> OperationId: `MetaGetMetrics`
3366
- * @summary Get metrics
3747
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
3748
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
3749
+ * @param {string} domainId
3750
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
3367
3751
  * @param {*} [options] Override http request option.
3368
3752
  * @throws {RequiredError}
3369
3753
  */
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);
3754
+ fixtureHistoryControllerOrders: async (domainId, fixtureHistoryOrdersInputDTO, options = {}) => {
3755
+ // verify required parameter 'domainId' is not null or undefined
3756
+ assertParamExists('fixtureHistoryControllerOrders', 'domainId', domainId);
3757
+ const localVarPath = `/fixture-history/domains/{domainId}/orders`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3758
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3759
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3760
+ let baseOptions;
3761
+ if (configuration) {
3762
+ baseOptions = configuration.baseOptions;
3763
+ }
3764
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3765
+ const localVarHeaderParameter = {};
3766
+ const localVarQueryParameter = {};
3767
+ // authentication adminAuth required
3768
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3769
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3770
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3771
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3772
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3773
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryOrdersInputDTO, localVarRequestOptions, configuration);
3774
+ return {
3775
+ url: toPathString(localVarUrlObj),
3776
+ options: localVarRequestOptions,
3777
+ };
3375
3778
  },
3376
3779
  /**
3377
- * <br> OperationId: `MetaGetOpenApi`
3378
- * @summary Get open api
3780
+ * <br> OperationId: `FixtureHistoryControllerSummary`
3781
+ * @summary Owned row counts per store, and unowned events naming owned players
3782
+ * @param {string} domainId
3783
+ * @param {string} fixtureDatasetId
3784
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
3379
3785
  * @param {*} [options] Override http request option.
3380
3786
  * @throws {RequiredError}
3381
3787
  */
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);
3788
+ fixtureHistoryControllerSummary: async (domainId, fixtureDatasetId, since, options = {}) => {
3789
+ // verify required parameter 'domainId' is not null or undefined
3790
+ assertParamExists('fixtureHistoryControllerSummary', 'domainId', domainId);
3791
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3792
+ assertParamExists('fixtureHistoryControllerSummary', 'fixtureDatasetId', fixtureDatasetId);
3793
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/summary`
3794
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3795
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3796
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3797
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3798
+ let baseOptions;
3799
+ if (configuration) {
3800
+ baseOptions = configuration.baseOptions;
3801
+ }
3802
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3803
+ const localVarHeaderParameter = {};
3804
+ const localVarQueryParameter = {};
3805
+ // authentication adminAuth required
3806
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3807
+ if (since !== undefined) {
3808
+ for (const [key, value] of Object.entries(since)) {
3809
+ localVarQueryParameter[key] = value;
3810
+ }
3811
+ }
3812
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3813
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3814
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3815
+ return {
3816
+ url: toPathString(localVarUrlObj),
3817
+ options: localVarRequestOptions,
3818
+ };
3387
3819
  },
3388
3820
  /**
3389
- * <br> OperationId: `MetaGetOpenApiHtml`
3390
- * @summary Get open api html
3821
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
3822
+ * @summary Set the offline terminal state of owned players-on-gameserver
3823
+ * @param {string} domainId
3824
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
3391
3825
  * @param {*} [options] Override http request option.
3392
3826
  * @throws {RequiredError}
3393
3827
  */
3394
- async metaGetOpenApiHtml(options) {
3395
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApiHtml(options);
3396
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3397
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApiHtml']?.[localVarOperationServerIndex]?.url;
3398
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3828
+ fixtureHistoryControllerTerminal: async (domainId, fixtureHistoryTerminalInputDTO, options = {}) => {
3829
+ // verify required parameter 'domainId' is not null or undefined
3830
+ assertParamExists('fixtureHistoryControllerTerminal', 'domainId', domainId);
3831
+ const localVarPath = `/fixture-history/domains/{domainId}/terminal-state`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3832
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3833
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3834
+ let baseOptions;
3835
+ if (configuration) {
3836
+ baseOptions = configuration.baseOptions;
3837
+ }
3838
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3839
+ const localVarHeaderParameter = {};
3840
+ const localVarQueryParameter = {};
3841
+ // authentication adminAuth required
3842
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3843
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3844
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3845
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3846
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3847
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTerminalInputDTO, localVarRequestOptions, configuration);
3848
+ return {
3849
+ url: toPathString(localVarUrlObj),
3850
+ options: localVarRequestOptions,
3851
+ };
3852
+ },
3853
+ /**
3854
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
3855
+ * @summary Page through the terminal state of owned players-on-gameserver
3856
+ * @param {string} domainId
3857
+ * @param {string} fixtureDatasetId
3858
+ * @param {string} [cursor]
3859
+ * @param {*} [options] Override http request option.
3860
+ * @throws {RequiredError}
3861
+ */
3862
+ fixtureHistoryControllerTerminalState: async (domainId, fixtureDatasetId, cursor, options = {}) => {
3863
+ // verify required parameter 'domainId' is not null or undefined
3864
+ assertParamExists('fixtureHistoryControllerTerminalState', 'domainId', domainId);
3865
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3866
+ assertParamExists('fixtureHistoryControllerTerminalState', 'fixtureDatasetId', fixtureDatasetId);
3867
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/terminal-state`
3868
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3869
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3870
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3871
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3872
+ let baseOptions;
3873
+ if (configuration) {
3874
+ baseOptions = configuration.baseOptions;
3875
+ }
3876
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3877
+ const localVarHeaderParameter = {};
3878
+ const localVarQueryParameter = {};
3879
+ // authentication adminAuth required
3880
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3881
+ if (cursor !== undefined) {
3882
+ localVarQueryParameter['cursor'] = cursor;
3883
+ }
3884
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3885
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3886
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3887
+ return {
3888
+ url: toPathString(localVarUrlObj),
3889
+ options: localVarRequestOptions,
3890
+ };
3891
+ },
3892
+ };
3893
+ };
3894
+ /**
3895
+ * FixtureHistoryApi - functional programming interface
3896
+ * @export
3897
+ */
3898
+ export const FixtureHistoryApiFp = function (configuration) {
3899
+ const localVarAxiosParamCreator = FixtureHistoryApiAxiosParamCreator(configuration);
3900
+ return {
3901
+ /**
3902
+ * <br> OperationId: `FixtureHistoryControllerActivity`
3903
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
3904
+ * @param {string} domainId
3905
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
3906
+ * @param {*} [options] Override http request option.
3907
+ * @throws {RequiredError}
3908
+ */
3909
+ async fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
3910
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options);
3911
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3912
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerActivity']?.[localVarOperationServerIndex]?.url;
3913
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3914
+ },
3915
+ /**
3916
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
3917
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
3918
+ * @param {string} domainId
3919
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
3920
+ * @param {*} [options] Override http request option.
3921
+ * @throws {RequiredError}
3922
+ */
3923
+ async fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
3924
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options);
3925
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3926
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerAnalytics']?.[localVarOperationServerIndex]?.url;
3927
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3928
+ },
3929
+ /**
3930
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
3931
+ * @summary What the writer can do for this domain, and the domain\'s event retention
3932
+ * @param {string} domainId
3933
+ * @param {*} [options] Override http request option.
3934
+ * @throws {RequiredError}
3935
+ */
3936
+ async fixtureHistoryControllerCapabilities(domainId, options) {
3937
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerCapabilities(domainId, options);
3938
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3939
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerCapabilities']?.[localVarOperationServerIndex]
3940
+ ?.url;
3941
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3942
+ },
3943
+ /**
3944
+ * <br> OperationId: `FixtureHistoryControllerDelete`
3945
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
3946
+ * @param {string} domainId
3947
+ * @param {string} fixtureDatasetId
3948
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
3949
+ * @param {*} [options] Override http request option.
3950
+ * @throws {RequiredError}
3951
+ */
3952
+ async fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
3953
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options);
3954
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3955
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerDelete']?.[localVarOperationServerIndex]?.url;
3956
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3957
+ },
3958
+ /**
3959
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
3960
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
3961
+ * @param {string} domainId
3962
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
3963
+ * @param {*} [options] Override http request option.
3964
+ * @throws {RequiredError}
3965
+ */
3966
+ async fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
3967
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options);
3968
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3969
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerEconomyReadiness']?.[localVarOperationServerIndex]
3970
+ ?.url;
3971
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3972
+ },
3973
+ /**
3974
+ * 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`
3975
+ * @summary Write owned, back-dated players and players-on-gameserver
3976
+ * @param {string} domainId
3977
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
3978
+ * @param {*} [options] Override http request option.
3979
+ * @throws {RequiredError}
3980
+ */
3981
+ async fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
3982
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options);
3983
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3984
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerIdentities']?.[localVarOperationServerIndex]?.url;
3985
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3986
+ },
3987
+ /**
3988
+ * <br> OperationId: `FixtureHistoryControllerInventory`
3989
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
3990
+ * @param {string} domainId
3991
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
3992
+ * @param {*} [options] Override http request option.
3993
+ * @throws {RequiredError}
3994
+ */
3995
+ async fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
3996
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options);
3997
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3998
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventory']?.[localVarOperationServerIndex]?.url;
3999
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4000
+ },
4001
+ /**
4002
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4003
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4004
+ * @param {string} domainId
4005
+ * @param {string} fixtureDatasetId
4006
+ * @param {string} [cursor]
4007
+ * @param {*} [options] Override http request option.
4008
+ * @throws {RequiredError}
4009
+ */
4010
+ async fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4011
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options);
4012
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4013
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventoryPage']?.[localVarOperationServerIndex]
4014
+ ?.url;
4015
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4016
+ },
4017
+ /**
4018
+ * 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`
4019
+ * @summary Write owned, back-dated shop listings
4020
+ * @param {string} domainId
4021
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4022
+ * @param {*} [options] Override http request option.
4023
+ * @throws {RequiredError}
4024
+ */
4025
+ async fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4026
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options);
4027
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4028
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerListings']?.[localVarOperationServerIndex]?.url;
4029
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4030
+ },
4031
+ /**
4032
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4033
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4034
+ * @param {string} domainId
4035
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4036
+ * @param {*} [options] Override http request option.
4037
+ * @throws {RequiredError}
4038
+ */
4039
+ async fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4040
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options);
4041
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4042
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerOrders']?.[localVarOperationServerIndex]?.url;
4043
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4044
+ },
4045
+ /**
4046
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4047
+ * @summary Owned row counts per store, and unowned events naming owned players
4048
+ * @param {string} domainId
4049
+ * @param {string} fixtureDatasetId
4050
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4051
+ * @param {*} [options] Override http request option.
4052
+ * @throws {RequiredError}
4053
+ */
4054
+ async fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4055
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options);
4056
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4057
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerSummary']?.[localVarOperationServerIndex]?.url;
4058
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4059
+ },
4060
+ /**
4061
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4062
+ * @summary Set the offline terminal state of owned players-on-gameserver
4063
+ * @param {string} domainId
4064
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4065
+ * @param {*} [options] Override http request option.
4066
+ * @throws {RequiredError}
4067
+ */
4068
+ async fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4069
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options);
4070
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4071
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminal']?.[localVarOperationServerIndex]?.url;
4072
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4073
+ },
4074
+ /**
4075
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4076
+ * @summary Page through the terminal state of owned players-on-gameserver
4077
+ * @param {string} domainId
4078
+ * @param {string} fixtureDatasetId
4079
+ * @param {string} [cursor]
4080
+ * @param {*} [options] Override http request option.
4081
+ * @throws {RequiredError}
4082
+ */
4083
+ async fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4084
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options);
4085
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4086
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminalState']?.[localVarOperationServerIndex]
4087
+ ?.url;
4088
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4089
+ },
4090
+ };
4091
+ };
4092
+ /**
4093
+ * FixtureHistoryApi - factory interface
4094
+ * @export
4095
+ */
4096
+ export const FixtureHistoryApiFactory = function (configuration, basePath, axios) {
4097
+ const localVarFp = FixtureHistoryApiFp(configuration);
4098
+ return {
4099
+ /**
4100
+ * <br> OperationId: `FixtureHistoryControllerActivity`
4101
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
4102
+ * @param {string} domainId
4103
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
4104
+ * @param {*} [options] Override http request option.
4105
+ * @throws {RequiredError}
4106
+ */
4107
+ fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
4108
+ return localVarFp
4109
+ .fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
4110
+ .then((request) => request(axios, basePath));
4111
+ },
4112
+ /**
4113
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
4114
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
4115
+ * @param {string} domainId
4116
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
4117
+ * @param {*} [options] Override http request option.
4118
+ * @throws {RequiredError}
4119
+ */
4120
+ fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
4121
+ return localVarFp
4122
+ .fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
4123
+ .then((request) => request(axios, basePath));
4124
+ },
4125
+ /**
4126
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
4127
+ * @summary What the writer can do for this domain, and the domain\'s event retention
4128
+ * @param {string} domainId
4129
+ * @param {*} [options] Override http request option.
4130
+ * @throws {RequiredError}
4131
+ */
4132
+ fixtureHistoryControllerCapabilities(domainId, options) {
4133
+ return localVarFp
4134
+ .fixtureHistoryControllerCapabilities(domainId, options)
4135
+ .then((request) => request(axios, basePath));
4136
+ },
4137
+ /**
4138
+ * <br> OperationId: `FixtureHistoryControllerDelete`
4139
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
4140
+ * @param {string} domainId
4141
+ * @param {string} fixtureDatasetId
4142
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
4143
+ * @param {*} [options] Override http request option.
4144
+ * @throws {RequiredError}
4145
+ */
4146
+ fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
4147
+ return localVarFp
4148
+ .fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
4149
+ .then((request) => request(axios, basePath));
4150
+ },
4151
+ /**
4152
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4153
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4154
+ * @param {string} domainId
4155
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4156
+ * @param {*} [options] Override http request option.
4157
+ * @throws {RequiredError}
4158
+ */
4159
+ fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4160
+ return localVarFp
4161
+ .fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
4162
+ .then((request) => request(axios, basePath));
4163
+ },
4164
+ /**
4165
+ * 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`
4166
+ * @summary Write owned, back-dated players and players-on-gameserver
4167
+ * @param {string} domainId
4168
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4169
+ * @param {*} [options] Override http request option.
4170
+ * @throws {RequiredError}
4171
+ */
4172
+ fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4173
+ return localVarFp
4174
+ .fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
4175
+ .then((request) => request(axios, basePath));
4176
+ },
4177
+ /**
4178
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4179
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4180
+ * @param {string} domainId
4181
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4182
+ * @param {*} [options] Override http request option.
4183
+ * @throws {RequiredError}
4184
+ */
4185
+ fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4186
+ return localVarFp
4187
+ .fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
4188
+ .then((request) => request(axios, basePath));
4189
+ },
4190
+ /**
4191
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4192
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4193
+ * @param {string} domainId
4194
+ * @param {string} fixtureDatasetId
4195
+ * @param {string} [cursor]
4196
+ * @param {*} [options] Override http request option.
4197
+ * @throws {RequiredError}
4198
+ */
4199
+ fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4200
+ return localVarFp
4201
+ .fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
4202
+ .then((request) => request(axios, basePath));
4203
+ },
4204
+ /**
4205
+ * 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`
4206
+ * @summary Write owned, back-dated shop listings
4207
+ * @param {string} domainId
4208
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4209
+ * @param {*} [options] Override http request option.
4210
+ * @throws {RequiredError}
4211
+ */
4212
+ fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4213
+ return localVarFp
4214
+ .fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
4215
+ .then((request) => request(axios, basePath));
4216
+ },
4217
+ /**
4218
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4219
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4220
+ * @param {string} domainId
4221
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4222
+ * @param {*} [options] Override http request option.
4223
+ * @throws {RequiredError}
4224
+ */
4225
+ fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4226
+ return localVarFp
4227
+ .fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
4228
+ .then((request) => request(axios, basePath));
4229
+ },
4230
+ /**
4231
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4232
+ * @summary Owned row counts per store, and unowned events naming owned players
4233
+ * @param {string} domainId
4234
+ * @param {string} fixtureDatasetId
4235
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4236
+ * @param {*} [options] Override http request option.
4237
+ * @throws {RequiredError}
4238
+ */
4239
+ fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4240
+ return localVarFp
4241
+ .fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
4242
+ .then((request) => request(axios, basePath));
4243
+ },
4244
+ /**
4245
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4246
+ * @summary Set the offline terminal state of owned players-on-gameserver
4247
+ * @param {string} domainId
4248
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4249
+ * @param {*} [options] Override http request option.
4250
+ * @throws {RequiredError}
4251
+ */
4252
+ fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4253
+ return localVarFp
4254
+ .fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
4255
+ .then((request) => request(axios, basePath));
4256
+ },
4257
+ /**
4258
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4259
+ * @summary Page through the terminal state of owned players-on-gameserver
4260
+ * @param {string} domainId
4261
+ * @param {string} fixtureDatasetId
4262
+ * @param {string} [cursor]
4263
+ * @param {*} [options] Override http request option.
4264
+ * @throws {RequiredError}
4265
+ */
4266
+ fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4267
+ return localVarFp
4268
+ .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4269
+ .then((request) => request(axios, basePath));
4270
+ },
4271
+ };
4272
+ };
4273
+ /**
4274
+ * FixtureHistoryApi - object-oriented interface
4275
+ * @export
4276
+ * @class FixtureHistoryApi
4277
+ * @extends {BaseAPI}
4278
+ */
4279
+ export class FixtureHistoryApi extends BaseAPI {
4280
+ /**
4281
+ * <br> OperationId: `FixtureHistoryControllerActivity`
4282
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
4283
+ * @param {string} domainId
4284
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
4285
+ * @param {*} [options] Override http request option.
4286
+ * @throws {RequiredError}
4287
+ * @memberof FixtureHistoryApi
4288
+ */
4289
+ fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
4290
+ return FixtureHistoryApiFp(this.configuration)
4291
+ .fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
4292
+ .then((request) => request(this.axios, this.basePath));
4293
+ }
4294
+ /**
4295
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
4296
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
4297
+ * @param {string} domainId
4298
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
4299
+ * @param {*} [options] Override http request option.
4300
+ * @throws {RequiredError}
4301
+ * @memberof FixtureHistoryApi
4302
+ */
4303
+ fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
4304
+ return FixtureHistoryApiFp(this.configuration)
4305
+ .fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
4306
+ .then((request) => request(this.axios, this.basePath));
4307
+ }
4308
+ /**
4309
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
4310
+ * @summary What the writer can do for this domain, and the domain\'s event retention
4311
+ * @param {string} domainId
4312
+ * @param {*} [options] Override http request option.
4313
+ * @throws {RequiredError}
4314
+ * @memberof FixtureHistoryApi
4315
+ */
4316
+ fixtureHistoryControllerCapabilities(domainId, options) {
4317
+ return FixtureHistoryApiFp(this.configuration)
4318
+ .fixtureHistoryControllerCapabilities(domainId, options)
4319
+ .then((request) => request(this.axios, this.basePath));
4320
+ }
4321
+ /**
4322
+ * <br> OperationId: `FixtureHistoryControllerDelete`
4323
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
4324
+ * @param {string} domainId
4325
+ * @param {string} fixtureDatasetId
4326
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
4327
+ * @param {*} [options] Override http request option.
4328
+ * @throws {RequiredError}
4329
+ * @memberof FixtureHistoryApi
4330
+ */
4331
+ fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
4332
+ return FixtureHistoryApiFp(this.configuration)
4333
+ .fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
4334
+ .then((request) => request(this.axios, this.basePath));
4335
+ }
4336
+ /**
4337
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4338
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4339
+ * @param {string} domainId
4340
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4341
+ * @param {*} [options] Override http request option.
4342
+ * @throws {RequiredError}
4343
+ * @memberof FixtureHistoryApi
4344
+ */
4345
+ fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4346
+ return FixtureHistoryApiFp(this.configuration)
4347
+ .fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
4348
+ .then((request) => request(this.axios, this.basePath));
4349
+ }
4350
+ /**
4351
+ * 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`
4352
+ * @summary Write owned, back-dated players and players-on-gameserver
4353
+ * @param {string} domainId
4354
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4355
+ * @param {*} [options] Override http request option.
4356
+ * @throws {RequiredError}
4357
+ * @memberof FixtureHistoryApi
4358
+ */
4359
+ fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4360
+ return FixtureHistoryApiFp(this.configuration)
4361
+ .fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
4362
+ .then((request) => request(this.axios, this.basePath));
4363
+ }
4364
+ /**
4365
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4366
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4367
+ * @param {string} domainId
4368
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4369
+ * @param {*} [options] Override http request option.
4370
+ * @throws {RequiredError}
4371
+ * @memberof FixtureHistoryApi
4372
+ */
4373
+ fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4374
+ return FixtureHistoryApiFp(this.configuration)
4375
+ .fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
4376
+ .then((request) => request(this.axios, this.basePath));
4377
+ }
4378
+ /**
4379
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4380
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4381
+ * @param {string} domainId
4382
+ * @param {string} fixtureDatasetId
4383
+ * @param {string} [cursor]
4384
+ * @param {*} [options] Override http request option.
4385
+ * @throws {RequiredError}
4386
+ * @memberof FixtureHistoryApi
4387
+ */
4388
+ fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4389
+ return FixtureHistoryApiFp(this.configuration)
4390
+ .fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
4391
+ .then((request) => request(this.axios, this.basePath));
4392
+ }
4393
+ /**
4394
+ * 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`
4395
+ * @summary Write owned, back-dated shop listings
4396
+ * @param {string} domainId
4397
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4398
+ * @param {*} [options] Override http request option.
4399
+ * @throws {RequiredError}
4400
+ * @memberof FixtureHistoryApi
4401
+ */
4402
+ fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4403
+ return FixtureHistoryApiFp(this.configuration)
4404
+ .fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
4405
+ .then((request) => request(this.axios, this.basePath));
4406
+ }
4407
+ /**
4408
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4409
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4410
+ * @param {string} domainId
4411
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4412
+ * @param {*} [options] Override http request option.
4413
+ * @throws {RequiredError}
4414
+ * @memberof FixtureHistoryApi
4415
+ */
4416
+ fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4417
+ return FixtureHistoryApiFp(this.configuration)
4418
+ .fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
4419
+ .then((request) => request(this.axios, this.basePath));
4420
+ }
4421
+ /**
4422
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4423
+ * @summary Owned row counts per store, and unowned events naming owned players
4424
+ * @param {string} domainId
4425
+ * @param {string} fixtureDatasetId
4426
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4427
+ * @param {*} [options] Override http request option.
4428
+ * @throws {RequiredError}
4429
+ * @memberof FixtureHistoryApi
4430
+ */
4431
+ fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4432
+ return FixtureHistoryApiFp(this.configuration)
4433
+ .fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
4434
+ .then((request) => request(this.axios, this.basePath));
4435
+ }
4436
+ /**
4437
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4438
+ * @summary Set the offline terminal state of owned players-on-gameserver
4439
+ * @param {string} domainId
4440
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4441
+ * @param {*} [options] Override http request option.
4442
+ * @throws {RequiredError}
4443
+ * @memberof FixtureHistoryApi
4444
+ */
4445
+ fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4446
+ return FixtureHistoryApiFp(this.configuration)
4447
+ .fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
4448
+ .then((request) => request(this.axios, this.basePath));
4449
+ }
4450
+ /**
4451
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4452
+ * @summary Page through the terminal state of owned players-on-gameserver
4453
+ * @param {string} domainId
4454
+ * @param {string} fixtureDatasetId
4455
+ * @param {string} [cursor]
4456
+ * @param {*} [options] Override http request option.
4457
+ * @throws {RequiredError}
4458
+ * @memberof FixtureHistoryApi
4459
+ */
4460
+ fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4461
+ return FixtureHistoryApiFp(this.configuration)
4462
+ .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4463
+ .then((request) => request(this.axios, this.basePath));
4464
+ }
4465
+ }
4466
+ /**
4467
+ * MetaApi - axios parameter creator
4468
+ * @export
4469
+ */
4470
+ export const MetaApiAxiosParamCreator = function (configuration) {
4471
+ return {
4472
+ /**
4473
+ * <br> OperationId: `MetaGetHealth`
4474
+ * @summary Get health
4475
+ * @param {*} [options] Override http request option.
4476
+ * @throws {RequiredError}
4477
+ */
4478
+ metaGetHealth: async (options = {}) => {
4479
+ const localVarPath = `/healthz`;
4480
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4481
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4482
+ let baseOptions;
4483
+ if (configuration) {
4484
+ baseOptions = configuration.baseOptions;
4485
+ }
4486
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4487
+ const localVarHeaderParameter = {};
4488
+ const localVarQueryParameter = {};
4489
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4490
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4491
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4492
+ return {
4493
+ url: toPathString(localVarUrlObj),
4494
+ options: localVarRequestOptions,
4495
+ };
4496
+ },
4497
+ /**
4498
+ * <br> OperationId: `MetaGetLiveness`
4499
+ * @summary Get liveness
4500
+ * @param {*} [options] Override http request option.
4501
+ * @throws {RequiredError}
4502
+ */
4503
+ metaGetLiveness: async (options = {}) => {
4504
+ const localVarPath = `/livez`;
4505
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4506
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4507
+ let baseOptions;
4508
+ if (configuration) {
4509
+ baseOptions = configuration.baseOptions;
4510
+ }
4511
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4512
+ const localVarHeaderParameter = {};
4513
+ const localVarQueryParameter = {};
4514
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4515
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4516
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4517
+ return {
4518
+ url: toPathString(localVarUrlObj),
4519
+ options: localVarRequestOptions,
4520
+ };
4521
+ },
4522
+ /**
4523
+ * <br> OperationId: `MetaGetOpenApi`
4524
+ * @summary Get open api
4525
+ * @param {*} [options] Override http request option.
4526
+ * @throws {RequiredError}
4527
+ */
4528
+ metaGetOpenApi: async (options = {}) => {
4529
+ const localVarPath = `/openapi.json`;
4530
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4531
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4532
+ let baseOptions;
4533
+ if (configuration) {
4534
+ baseOptions = configuration.baseOptions;
4535
+ }
4536
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4537
+ const localVarHeaderParameter = {};
4538
+ const localVarQueryParameter = {};
4539
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4540
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4541
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4542
+ return {
4543
+ url: toPathString(localVarUrlObj),
4544
+ options: localVarRequestOptions,
4545
+ };
4546
+ },
4547
+ /**
4548
+ * <br> OperationId: `MetaGetOpenApiHtml`
4549
+ * @summary Get open api html
4550
+ * @param {*} [options] Override http request option.
4551
+ * @throws {RequiredError}
4552
+ */
4553
+ metaGetOpenApiHtml: async (options = {}) => {
4554
+ const localVarPath = `/api.html`;
4555
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4556
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4557
+ let baseOptions;
4558
+ if (configuration) {
4559
+ baseOptions = configuration.baseOptions;
4560
+ }
4561
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4562
+ const localVarHeaderParameter = {};
4563
+ const localVarQueryParameter = {};
4564
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4565
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4566
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4567
+ return {
4568
+ url: toPathString(localVarUrlObj),
4569
+ options: localVarRequestOptions,
4570
+ };
4571
+ },
4572
+ /**
4573
+ * <br> OperationId: `MetaGetReadiness`
4574
+ * @summary Get readiness
4575
+ * @param {*} [options] Override http request option.
4576
+ * @throws {RequiredError}
4577
+ */
4578
+ metaGetReadiness: async (options = {}) => {
4579
+ const localVarPath = `/readyz`;
4580
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4581
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4582
+ let baseOptions;
4583
+ if (configuration) {
4584
+ baseOptions = configuration.baseOptions;
4585
+ }
4586
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4587
+ const localVarHeaderParameter = {};
4588
+ const localVarQueryParameter = {};
4589
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4590
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4591
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4592
+ return {
4593
+ url: toPathString(localVarUrlObj),
4594
+ options: localVarRequestOptions,
4595
+ };
4596
+ },
4597
+ /**
4598
+ * <br> OperationId: `MetaGetRoot`
4599
+ * @summary Get root
4600
+ * @param {*} [options] Override http request option.
4601
+ * @throws {RequiredError}
4602
+ */
4603
+ metaGetRoot: async (options = {}) => {
4604
+ const localVarPath = `/`;
4605
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4606
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4607
+ let baseOptions;
4608
+ if (configuration) {
4609
+ baseOptions = configuration.baseOptions;
4610
+ }
4611
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4612
+ const localVarHeaderParameter = {};
4613
+ const localVarQueryParameter = {};
4614
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4615
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4616
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4617
+ return {
4618
+ url: toPathString(localVarUrlObj),
4619
+ options: localVarRequestOptions,
4620
+ };
4621
+ },
4622
+ };
4623
+ };
4624
+ /**
4625
+ * MetaApi - functional programming interface
4626
+ * @export
4627
+ */
4628
+ export const MetaApiFp = function (configuration) {
4629
+ const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration);
4630
+ return {
4631
+ /**
4632
+ * <br> OperationId: `MetaGetHealth`
4633
+ * @summary Get health
4634
+ * @param {*} [options] Override http request option.
4635
+ * @throws {RequiredError}
4636
+ */
4637
+ async metaGetHealth(options) {
4638
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetHealth(options);
4639
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4640
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetHealth']?.[localVarOperationServerIndex]?.url;
4641
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4642
+ },
4643
+ /**
4644
+ * <br> OperationId: `MetaGetLiveness`
4645
+ * @summary Get liveness
4646
+ * @param {*} [options] Override http request option.
4647
+ * @throws {RequiredError}
4648
+ */
4649
+ async metaGetLiveness(options) {
4650
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetLiveness(options);
4651
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4652
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
4653
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4654
+ },
4655
+ /**
4656
+ * <br> OperationId: `MetaGetOpenApi`
4657
+ * @summary Get open api
4658
+ * @param {*} [options] Override http request option.
4659
+ * @throws {RequiredError}
4660
+ */
4661
+ async metaGetOpenApi(options) {
4662
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options);
4663
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4664
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[localVarOperationServerIndex]?.url;
4665
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4666
+ },
4667
+ /**
4668
+ * <br> OperationId: `MetaGetOpenApiHtml`
4669
+ * @summary Get open api html
4670
+ * @param {*} [options] Override http request option.
4671
+ * @throws {RequiredError}
4672
+ */
4673
+ async metaGetOpenApiHtml(options) {
4674
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApiHtml(options);
4675
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4676
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApiHtml']?.[localVarOperationServerIndex]?.url;
4677
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3399
4678
  },
3400
4679
  /**
3401
4680
  * <br> OperationId: `MetaGetReadiness`
@@ -3448,15 +4727,6 @@ export const MetaApiFactory = function (configuration, basePath, axios) {
3448
4727
  metaGetLiveness(options) {
3449
4728
  return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
3450
4729
  },
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
4730
  /**
3461
4731
  * <br> OperationId: `MetaGetOpenApi`
3462
4732
  * @summary Get open api
@@ -3526,18 +4796,6 @@ export class MetaApi extends BaseAPI {
3526
4796
  .metaGetLiveness(options)
3527
4797
  .then((request) => request(this.axios, this.basePath));
3528
4798
  }
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
4799
  /**
3542
4800
  * <br> OperationId: `MetaGetOpenApi`
3543
4801
  * @summary Get open api
@@ -3904,13 +5162,268 @@ export class StaffAuthApi extends BaseAPI {
3904
5162
  export const StaffMeApiAxiosParamCreator = function (configuration) {
3905
5163
  return {
3906
5164
  /**
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
5165
+ * 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`
5166
+ * @summary Who this Staff session belongs to
5167
+ * @param {*} [options] Override http request option.
5168
+ * @throws {RequiredError}
5169
+ */
5170
+ staffMeControllerMe: async (options = {}) => {
5171
+ const localVarPath = `/staff/me`;
5172
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5173
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5174
+ let baseOptions;
5175
+ if (configuration) {
5176
+ baseOptions = configuration.baseOptions;
5177
+ }
5178
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5179
+ const localVarHeaderParameter = {};
5180
+ const localVarQueryParameter = {};
5181
+ // authentication staffSession required
5182
+ // authentication adminAuth required
5183
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5184
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5186
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5187
+ return {
5188
+ url: toPathString(localVarUrlObj),
5189
+ options: localVarRequestOptions,
5190
+ };
5191
+ },
5192
+ };
5193
+ };
5194
+ /**
5195
+ * StaffMeApi - functional programming interface
5196
+ * @export
5197
+ */
5198
+ export const StaffMeApiFp = function (configuration) {
5199
+ const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
5200
+ return {
5201
+ /**
5202
+ * 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`
5203
+ * @summary Who this Staff session belongs to
5204
+ * @param {*} [options] Override http request option.
5205
+ * @throws {RequiredError}
5206
+ */
5207
+ async staffMeControllerMe(options) {
5208
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
5209
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5210
+ const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
5211
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5212
+ },
5213
+ };
5214
+ };
5215
+ /**
5216
+ * StaffMeApi - factory interface
5217
+ * @export
5218
+ */
5219
+ export const StaffMeApiFactory = function (configuration, basePath, axios) {
5220
+ const localVarFp = StaffMeApiFp(configuration);
5221
+ return {
5222
+ /**
5223
+ * 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`
5224
+ * @summary Who this Staff session belongs to
5225
+ * @param {*} [options] Override http request option.
5226
+ * @throws {RequiredError}
5227
+ */
5228
+ staffMeControllerMe(options) {
5229
+ return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
5230
+ },
5231
+ };
5232
+ };
5233
+ /**
5234
+ * StaffMeApi - object-oriented interface
5235
+ * @export
5236
+ * @class StaffMeApi
5237
+ * @extends {BaseAPI}
5238
+ */
5239
+ export class StaffMeApi extends BaseAPI {
5240
+ /**
5241
+ * 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`
5242
+ * @summary Who this Staff session belongs to
5243
+ * @param {*} [options] Override http request option.
5244
+ * @throws {RequiredError}
5245
+ * @memberof StaffMeApi
5246
+ */
5247
+ staffMeControllerMe(options) {
5248
+ return StaffMeApiFp(this.configuration)
5249
+ .staffMeControllerMe(options)
5250
+ .then((request) => request(this.axios, this.basePath));
5251
+ }
5252
+ }
5253
+ /**
5254
+ * StaffPlanApi - axios parameter creator
5255
+ * @export
5256
+ */
5257
+ export const StaffPlanApiAxiosParamCreator = function (configuration) {
5258
+ return {
5259
+ /**
5260
+ * 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`
5261
+ * @summary The Plan catalogue
5262
+ * @param {*} [options] Override http request option.
5263
+ * @throws {RequiredError}
5264
+ */
5265
+ staffPlanControllerList: async (options = {}) => {
5266
+ const localVarPath = `/staff/plans`;
5267
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5268
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5269
+ let baseOptions;
5270
+ if (configuration) {
5271
+ baseOptions = configuration.baseOptions;
5272
+ }
5273
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5274
+ const localVarHeaderParameter = {};
5275
+ const localVarQueryParameter = {};
5276
+ // authentication staffSession required
5277
+ // authentication adminAuth required
5278
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5279
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5280
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5281
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5282
+ return {
5283
+ url: toPathString(localVarUrlObj),
5284
+ options: localVarRequestOptions,
5285
+ };
5286
+ },
5287
+ };
5288
+ };
5289
+ /**
5290
+ * StaffPlanApi - functional programming interface
5291
+ * @export
5292
+ */
5293
+ export const StaffPlanApiFp = function (configuration) {
5294
+ const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
5295
+ return {
5296
+ /**
5297
+ * 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`
5298
+ * @summary The Plan catalogue
5299
+ * @param {*} [options] Override http request option.
5300
+ * @throws {RequiredError}
5301
+ */
5302
+ async staffPlanControllerList(options) {
5303
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(options);
5304
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5305
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
5306
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5307
+ },
5308
+ };
5309
+ };
5310
+ /**
5311
+ * StaffPlanApi - factory interface
5312
+ * @export
5313
+ */
5314
+ export const StaffPlanApiFactory = function (configuration, basePath, axios) {
5315
+ const localVarFp = StaffPlanApiFp(configuration);
5316
+ return {
5317
+ /**
5318
+ * 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`
5319
+ * @summary The Plan catalogue
5320
+ * @param {*} [options] Override http request option.
5321
+ * @throws {RequiredError}
5322
+ */
5323
+ staffPlanControllerList(options) {
5324
+ return localVarFp.staffPlanControllerList(options).then((request) => request(axios, basePath));
5325
+ },
5326
+ };
5327
+ };
5328
+ /**
5329
+ * StaffPlanApi - object-oriented interface
5330
+ * @export
5331
+ * @class StaffPlanApi
5332
+ * @extends {BaseAPI}
5333
+ */
5334
+ export class StaffPlanApi extends BaseAPI {
5335
+ /**
5336
+ * 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`
5337
+ * @summary The Plan catalogue
5338
+ * @param {*} [options] Override http request option.
5339
+ * @throws {RequiredError}
5340
+ * @memberof StaffPlanApi
5341
+ */
5342
+ staffPlanControllerList(options) {
5343
+ return StaffPlanApiFp(this.configuration)
5344
+ .staffPlanControllerList(options)
5345
+ .then((request) => request(this.axios, this.basePath));
5346
+ }
5347
+ }
5348
+ /**
5349
+ * StaffTakaroAiApi - axios parameter creator
5350
+ * @export
5351
+ */
5352
+ export const StaffTakaroAiApiAxiosParamCreator = function (configuration) {
5353
+ return {
5354
+ /**
5355
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
5356
+ * @summary Clear the Takaro AI override of a Domain
5357
+ * @param {string} id
5358
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
5359
+ * @param {*} [options] Override http request option.
5360
+ * @throws {RequiredError}
5361
+ */
5362
+ staffTakaroAiControllerClearDomainOverride: async (id, takaroAiOverrideClearInputDTO, options = {}) => {
5363
+ // verify required parameter 'id' is not null or undefined
5364
+ assertParamExists('staffTakaroAiControllerClearDomainOverride', 'id', id);
5365
+ const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5366
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5367
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5368
+ let baseOptions;
5369
+ if (configuration) {
5370
+ baseOptions = configuration.baseOptions;
5371
+ }
5372
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
5373
+ const localVarHeaderParameter = {};
5374
+ const localVarQueryParameter = {};
5375
+ // authentication staffSession required
5376
+ // authentication adminAuth required
5377
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5378
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5379
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5380
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5381
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5382
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiOverrideClearInputDTO, localVarRequestOptions, configuration);
5383
+ return {
5384
+ url: toPathString(localVarUrlObj),
5385
+ options: localVarRequestOptions,
5386
+ };
5387
+ },
5388
+ /**
5389
+ * 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`
5390
+ * @summary Takaro AI allowance, override and spend of a Domain
5391
+ * @param {string} id
5392
+ * @param {*} [options] Override http request option.
5393
+ * @throws {RequiredError}
5394
+ */
5395
+ staffTakaroAiControllerGetDomain: async (id, options = {}) => {
5396
+ // verify required parameter 'id' is not null or undefined
5397
+ assertParamExists('staffTakaroAiControllerGetDomain', 'id', id);
5398
+ const localVarPath = `/staff/takaro-ai/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5399
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5400
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5401
+ let baseOptions;
5402
+ if (configuration) {
5403
+ baseOptions = configuration.baseOptions;
5404
+ }
5405
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5406
+ const localVarHeaderParameter = {};
5407
+ const localVarQueryParameter = {};
5408
+ // authentication staffSession required
5409
+ // authentication adminAuth required
5410
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5411
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5412
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5413
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5414
+ return {
5415
+ url: toPathString(localVarUrlObj),
5416
+ options: localVarRequestOptions,
5417
+ };
5418
+ },
5419
+ /**
5420
+ * 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`
5421
+ * @summary Takaro AI platform spend and global multiplier
3909
5422
  * @param {*} [options] Override http request option.
3910
5423
  * @throws {RequiredError}
3911
5424
  */
3912
- staffMeControllerMe: async (options = {}) => {
3913
- const localVarPath = `/staff/me`;
5425
+ staffTakaroAiControllerGetPlatform: async (options = {}) => {
5426
+ const localVarPath = `/staff/takaro-ai`;
3914
5427
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3915
5428
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3916
5429
  let baseOptions;
@@ -3931,96 +5444,100 @@ export const StaffMeApiAxiosParamCreator = function (configuration) {
3931
5444
  options: localVarRequestOptions,
3932
5445
  };
3933
5446
  },
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
5447
  /**
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
5448
+ * 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`
5449
+ * @summary Set the Takaro AI override of a Domain
5450
+ * @param {string} id
5451
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
3946
5452
  * @param {*} [options] Override http request option.
3947
5453
  * @throws {RequiredError}
3948
5454
  */
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);
5455
+ staffTakaroAiControllerSetDomainOverride: async (id, takaroAiDomainOverrideInputDTO, options = {}) => {
5456
+ // verify required parameter 'id' is not null or undefined
5457
+ assertParamExists('staffTakaroAiControllerSetDomainOverride', 'id', id);
5458
+ const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5459
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5460
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5461
+ let baseOptions;
5462
+ if (configuration) {
5463
+ baseOptions = configuration.baseOptions;
5464
+ }
5465
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
5466
+ const localVarHeaderParameter = {};
5467
+ const localVarQueryParameter = {};
5468
+ // authentication staffSession required
5469
+ // authentication adminAuth required
5470
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5471
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5472
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5473
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5474
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5475
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiDomainOverrideInputDTO, localVarRequestOptions, configuration);
5476
+ return {
5477
+ url: toPathString(localVarUrlObj),
5478
+ options: localVarRequestOptions,
5479
+ };
3954
5480
  },
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
5481
  /**
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
5482
+ * 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`
5483
+ * @summary Set the Takaro AI global multiplier
5484
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
3967
5485
  * @param {*} [options] Override http request option.
3968
5486
  * @throws {RequiredError}
3969
5487
  */
3970
- staffMeControllerMe(options) {
3971
- return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
5488
+ staffTakaroAiControllerSetGlobalMultiplier: async (takaroAiGlobalMultiplierInputDTO, options = {}) => {
5489
+ const localVarPath = `/staff/takaro-ai/global-multiplier`;
5490
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5491
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5492
+ let baseOptions;
5493
+ if (configuration) {
5494
+ baseOptions = configuration.baseOptions;
5495
+ }
5496
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
5497
+ const localVarHeaderParameter = {};
5498
+ const localVarQueryParameter = {};
5499
+ // authentication staffSession required
5500
+ // authentication adminAuth required
5501
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5502
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5503
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5504
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5505
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5506
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiGlobalMultiplierInputDTO, localVarRequestOptions, configuration);
5507
+ return {
5508
+ url: toPathString(localVarUrlObj),
5509
+ options: localVarRequestOptions,
5510
+ };
3972
5511
  },
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
5512
  /**
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
5513
+ * 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`
5514
+ * @summary Set the CSMM Migration cap of a Domain
5515
+ * @param {string} id
5516
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
4004
5517
  * @param {*} [options] Override http request option.
4005
5518
  * @throws {RequiredError}
4006
5519
  */
4007
- staffPlanControllerList: async (options = {}) => {
4008
- const localVarPath = `/staff/plans`;
5520
+ staffTakaroAiControllerSetMigrationCap: async (id, takaroAiMigrationCapInputDTO, options = {}) => {
5521
+ // verify required parameter 'id' is not null or undefined
5522
+ assertParamExists('staffTakaroAiControllerSetMigrationCap', 'id', id);
5523
+ const localVarPath = `/staff/takaro-ai/domain/{id}/migration-cap`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
4009
5524
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4010
5525
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4011
5526
  let baseOptions;
4012
5527
  if (configuration) {
4013
5528
  baseOptions = configuration.baseOptions;
4014
5529
  }
4015
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5530
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
4016
5531
  const localVarHeaderParameter = {};
4017
5532
  const localVarQueryParameter = {};
4018
5533
  // authentication staffSession required
4019
5534
  // authentication adminAuth required
4020
5535
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5536
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4021
5537
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4022
5538
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4023
5539
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5540
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiMigrationCapInputDTO, localVarRequestOptions, configuration);
4024
5541
  return {
4025
5542
  url: toPathString(localVarUrlObj),
4026
5543
  options: localVarRequestOptions,
@@ -4029,61 +5546,260 @@ export const StaffPlanApiAxiosParamCreator = function (configuration) {
4029
5546
  };
4030
5547
  };
4031
5548
  /**
4032
- * StaffPlanApi - functional programming interface
5549
+ * StaffTakaroAiApi - functional programming interface
4033
5550
  * @export
4034
5551
  */
4035
- export const StaffPlanApiFp = function (configuration) {
4036
- const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
5552
+ export const StaffTakaroAiApiFp = function (configuration) {
5553
+ const localVarAxiosParamCreator = StaffTakaroAiApiAxiosParamCreator(configuration);
4037
5554
  return {
4038
5555
  /**
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
5556
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
5557
+ * @summary Clear the Takaro AI override of a Domain
5558
+ * @param {string} id
5559
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
4041
5560
  * @param {*} [options] Override http request option.
4042
5561
  * @throws {RequiredError}
4043
5562
  */
4044
- async staffPlanControllerList(options) {
4045
- const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(options);
5563
+ async staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
5564
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options);
4046
5565
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4047
- const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
5566
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerClearDomainOverride']?.[localVarOperationServerIndex]?.url;
5567
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5568
+ },
5569
+ /**
5570
+ * 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`
5571
+ * @summary Takaro AI allowance, override and spend of a Domain
5572
+ * @param {string} id
5573
+ * @param {*} [options] Override http request option.
5574
+ * @throws {RequiredError}
5575
+ */
5576
+ async staffTakaroAiControllerGetDomain(id, options) {
5577
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetDomain(id, options);
5578
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5579
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetDomain']?.[localVarOperationServerIndex]?.url;
5580
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5581
+ },
5582
+ /**
5583
+ * 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`
5584
+ * @summary Takaro AI platform spend and global multiplier
5585
+ * @param {*} [options] Override http request option.
5586
+ * @throws {RequiredError}
5587
+ */
5588
+ async staffTakaroAiControllerGetPlatform(options) {
5589
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetPlatform(options);
5590
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5591
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetPlatform']?.[localVarOperationServerIndex]?.url;
5592
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5593
+ },
5594
+ /**
5595
+ * 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`
5596
+ * @summary Set the Takaro AI override of a Domain
5597
+ * @param {string} id
5598
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
5599
+ * @param {*} [options] Override http request option.
5600
+ * @throws {RequiredError}
5601
+ */
5602
+ async staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
5603
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options);
5604
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5605
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetDomainOverride']?.[localVarOperationServerIndex]
5606
+ ?.url;
5607
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5608
+ },
5609
+ /**
5610
+ * 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`
5611
+ * @summary Set the Takaro AI global multiplier
5612
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
5613
+ * @param {*} [options] Override http request option.
5614
+ * @throws {RequiredError}
5615
+ */
5616
+ async staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
5617
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options);
5618
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5619
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetGlobalMultiplier']?.[localVarOperationServerIndex]?.url;
5620
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5621
+ },
5622
+ /**
5623
+ * 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`
5624
+ * @summary Set the CSMM Migration cap of a Domain
5625
+ * @param {string} id
5626
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
5627
+ * @param {*} [options] Override http request option.
5628
+ * @throws {RequiredError}
5629
+ */
5630
+ async staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
5631
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options);
5632
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5633
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetMigrationCap']?.[localVarOperationServerIndex]
5634
+ ?.url;
4048
5635
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4049
5636
  },
4050
5637
  };
4051
5638
  };
4052
5639
  /**
4053
- * StaffPlanApi - factory interface
5640
+ * StaffTakaroAiApi - factory interface
4054
5641
  * @export
4055
5642
  */
4056
- export const StaffPlanApiFactory = function (configuration, basePath, axios) {
4057
- const localVarFp = StaffPlanApiFp(configuration);
5643
+ export const StaffTakaroAiApiFactory = function (configuration, basePath, axios) {
5644
+ const localVarFp = StaffTakaroAiApiFp(configuration);
4058
5645
  return {
4059
5646
  /**
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
5647
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
5648
+ * @summary Clear the Takaro AI override of a Domain
5649
+ * @param {string} id
5650
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
4062
5651
  * @param {*} [options] Override http request option.
4063
5652
  * @throws {RequiredError}
4064
5653
  */
4065
- staffPlanControllerList(options) {
4066
- return localVarFp.staffPlanControllerList(options).then((request) => request(axios, basePath));
5654
+ staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
5655
+ return localVarFp
5656
+ .staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
5657
+ .then((request) => request(axios, basePath));
5658
+ },
5659
+ /**
5660
+ * 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`
5661
+ * @summary Takaro AI allowance, override and spend of a Domain
5662
+ * @param {string} id
5663
+ * @param {*} [options] Override http request option.
5664
+ * @throws {RequiredError}
5665
+ */
5666
+ staffTakaroAiControllerGetDomain(id, options) {
5667
+ return localVarFp.staffTakaroAiControllerGetDomain(id, options).then((request) => request(axios, basePath));
5668
+ },
5669
+ /**
5670
+ * 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`
5671
+ * @summary Takaro AI platform spend and global multiplier
5672
+ * @param {*} [options] Override http request option.
5673
+ * @throws {RequiredError}
5674
+ */
5675
+ staffTakaroAiControllerGetPlatform(options) {
5676
+ return localVarFp.staffTakaroAiControllerGetPlatform(options).then((request) => request(axios, basePath));
5677
+ },
5678
+ /**
5679
+ * 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`
5680
+ * @summary Set the Takaro AI override of a Domain
5681
+ * @param {string} id
5682
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
5683
+ * @param {*} [options] Override http request option.
5684
+ * @throws {RequiredError}
5685
+ */
5686
+ staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
5687
+ return localVarFp
5688
+ .staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
5689
+ .then((request) => request(axios, basePath));
5690
+ },
5691
+ /**
5692
+ * 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`
5693
+ * @summary Set the Takaro AI global multiplier
5694
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
5695
+ * @param {*} [options] Override http request option.
5696
+ * @throws {RequiredError}
5697
+ */
5698
+ staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
5699
+ return localVarFp
5700
+ .staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
5701
+ .then((request) => request(axios, basePath));
5702
+ },
5703
+ /**
5704
+ * 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`
5705
+ * @summary Set the CSMM Migration cap of a Domain
5706
+ * @param {string} id
5707
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
5708
+ * @param {*} [options] Override http request option.
5709
+ * @throws {RequiredError}
5710
+ */
5711
+ staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
5712
+ return localVarFp
5713
+ .staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
5714
+ .then((request) => request(axios, basePath));
4067
5715
  },
4068
5716
  };
4069
5717
  };
4070
5718
  /**
4071
- * StaffPlanApi - object-oriented interface
5719
+ * StaffTakaroAiApi - object-oriented interface
4072
5720
  * @export
4073
- * @class StaffPlanApi
5721
+ * @class StaffTakaroAiApi
4074
5722
  * @extends {BaseAPI}
4075
5723
  */
4076
- export class StaffPlanApi extends BaseAPI {
5724
+ export class StaffTakaroAiApi extends BaseAPI {
4077
5725
  /**
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
5726
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
5727
+ * @summary Clear the Takaro AI override of a Domain
5728
+ * @param {string} id
5729
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
4080
5730
  * @param {*} [options] Override http request option.
4081
5731
  * @throws {RequiredError}
4082
- * @memberof StaffPlanApi
5732
+ * @memberof StaffTakaroAiApi
4083
5733
  */
4084
- staffPlanControllerList(options) {
4085
- return StaffPlanApiFp(this.configuration)
4086
- .staffPlanControllerList(options)
5734
+ staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
5735
+ return StaffTakaroAiApiFp(this.configuration)
5736
+ .staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
5737
+ .then((request) => request(this.axios, this.basePath));
5738
+ }
5739
+ /**
5740
+ * 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`
5741
+ * @summary Takaro AI allowance, override and spend of a Domain
5742
+ * @param {string} id
5743
+ * @param {*} [options] Override http request option.
5744
+ * @throws {RequiredError}
5745
+ * @memberof StaffTakaroAiApi
5746
+ */
5747
+ staffTakaroAiControllerGetDomain(id, options) {
5748
+ return StaffTakaroAiApiFp(this.configuration)
5749
+ .staffTakaroAiControllerGetDomain(id, options)
5750
+ .then((request) => request(this.axios, this.basePath));
5751
+ }
5752
+ /**
5753
+ * 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`
5754
+ * @summary Takaro AI platform spend and global multiplier
5755
+ * @param {*} [options] Override http request option.
5756
+ * @throws {RequiredError}
5757
+ * @memberof StaffTakaroAiApi
5758
+ */
5759
+ staffTakaroAiControllerGetPlatform(options) {
5760
+ return StaffTakaroAiApiFp(this.configuration)
5761
+ .staffTakaroAiControllerGetPlatform(options)
5762
+ .then((request) => request(this.axios, this.basePath));
5763
+ }
5764
+ /**
5765
+ * 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`
5766
+ * @summary Set the Takaro AI override of a Domain
5767
+ * @param {string} id
5768
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
5769
+ * @param {*} [options] Override http request option.
5770
+ * @throws {RequiredError}
5771
+ * @memberof StaffTakaroAiApi
5772
+ */
5773
+ staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
5774
+ return StaffTakaroAiApiFp(this.configuration)
5775
+ .staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
5776
+ .then((request) => request(this.axios, this.basePath));
5777
+ }
5778
+ /**
5779
+ * 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`
5780
+ * @summary Set the Takaro AI global multiplier
5781
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
5782
+ * @param {*} [options] Override http request option.
5783
+ * @throws {RequiredError}
5784
+ * @memberof StaffTakaroAiApi
5785
+ */
5786
+ staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
5787
+ return StaffTakaroAiApiFp(this.configuration)
5788
+ .staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
5789
+ .then((request) => request(this.axios, this.basePath));
5790
+ }
5791
+ /**
5792
+ * 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`
5793
+ * @summary Set the CSMM Migration cap of a Domain
5794
+ * @param {string} id
5795
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
5796
+ * @param {*} [options] Override http request option.
5797
+ * @throws {RequiredError}
5798
+ * @memberof StaffTakaroAiApi
5799
+ */
5800
+ staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
5801
+ return StaffTakaroAiApiFp(this.configuration)
5802
+ .staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
4087
5803
  .then((request) => request(this.axios, this.basePath));
4088
5804
  }
4089
5805
  }