@takaro/apiclient 0.0.0-dev.d961046 → 0.0.0-dev.da96df8

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 +19470 -14049
  3. package/dist/generated/api.d.ts.map +1 -1
  4. package/dist/generated/api.js +9188 -6224
  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 +11847 -5632
  9. package/dist/generated-management/api.d.ts.map +1 -1
  10. package/dist/generated-management/api.js +2620 -252
  11. package/dist/generated-management/api.js.map +1 -1
  12. package/dist/generated-management/common.d.ts +1 -1
  13. package/dist/generated-management/common.d.ts.map +1 -1
  14. package/dist/lib/adminClient.d.ts +4 -1
  15. package/dist/lib/adminClient.d.ts.map +1 -1
  16. package/dist/lib/adminClient.js +10 -1
  17. package/dist/lib/adminClient.js.map +1 -1
  18. package/dist/lib/apiKey.d.ts +0 -15
  19. package/dist/lib/apiKey.d.ts.map +1 -1
  20. package/dist/lib/apiKey.js +2 -19
  21. package/dist/lib/apiKey.js.map +1 -1
  22. package/dist/lib/baseClient.d.ts +3 -16
  23. package/dist/lib/baseClient.d.ts.map +1 -1
  24. package/dist/lib/baseClient.js +5 -19
  25. package/dist/lib/baseClient.js.map +1 -1
  26. package/dist/lib/client.d.ts +9 -23
  27. package/dist/lib/client.d.ts.map +1 -1
  28. package/dist/lib/client.js +27 -23
  29. package/dist/lib/client.js.map +1 -1
  30. package/dist/lib/distributorClient.d.ts +0 -6
  31. package/dist/lib/distributorClient.d.ts.map +1 -1
  32. package/dist/lib/distributorClient.js +1 -7
  33. package/dist/lib/distributorClient.js.map +1 -1
  34. package/dist/lib/staffClient.d.ts +12 -0
  35. package/dist/lib/staffClient.d.ts.map +1 -0
  36. package/dist/lib/staffClient.js +26 -0
  37. package/dist/lib/staffClient.js.map +1 -0
  38. package/dist/main.d.ts +4 -1
  39. package/dist/main.d.ts.map +1 -1
  40. package/dist/main.js +4 -5
  41. package/dist/main.js.map +1 -1
  42. package/package.json +3 -3
@@ -91,6 +91,11 @@ export const DomainOutputDTOStateEnum = {
91
91
  Disabled: 'DISABLED',
92
92
  Maintenance: 'MAINTENANCE',
93
93
  };
94
+ export const DomainOutputDTOCustomDomainStateEnum = {
95
+ Pending: 'PENDING',
96
+ Verified: 'VERIFIED',
97
+ Failed: 'FAILED',
98
+ };
94
99
  export const DomainSearchInputAllowedFiltersStateEnum = {
95
100
  Active: 'ACTIVE',
96
101
  Disabled: 'DISABLED',
@@ -100,6 +105,11 @@ export const DomainSearchInputDTOSortDirectionEnum = {
100
105
  Asc: 'asc',
101
106
  Desc: 'desc',
102
107
  };
108
+ export const DomainStateCountDTOStateEnum = {
109
+ Active: 'ACTIVE',
110
+ Disabled: 'DISABLED',
111
+ Maintenance: 'MAINTENANCE',
112
+ };
103
113
  export const DomainUpdateInputDTOStateEnum = {
104
114
  Active: 'ACTIVE',
105
115
  Disabled: 'DISABLED',
@@ -232,6 +242,31 @@ export const EventOutputDTOEventNameEnum = {
232
242
  PlayerDeath: 'player-death',
233
243
  EntityKilled: 'entity-killed',
234
244
  };
245
+ export const FixtureHistoryConflictDTOKindEnum = {
246
+ TakaroPlayer: 'takaro-player',
247
+ TakaroPog: 'takaro-pog',
248
+ };
249
+ export const FixtureHistoryDeleteInputDTOStoreEnum = {
250
+ Analytics: 'analytics',
251
+ Postgres: 'postgres',
252
+ };
253
+ export const FixtureHistoryEventDTOEventNameEnum = {
254
+ PlayerConnected: 'player-connected',
255
+ PlayerDisconnected: 'player-disconnected',
256
+ PlayerSyncSnapshot: 'player-sync-snapshot',
257
+ ChatMessage: 'chat-message',
258
+ CurrencyAdded: 'currency-added',
259
+ CurrencyDeducted: 'currency-deducted',
260
+ ShopOrderCreated: 'shop-order-created',
261
+ ShopOrderStatusChanged: 'shop-order-status-changed',
262
+ };
263
+ export const FixtureHistoryListingConflictDTOKindEnum = {
264
+ TakaroListing: 'takaro-listing',
265
+ };
266
+ export const FixtureHistoryOrderDTOStatusEnum = {
267
+ Completed: 'COMPLETED',
268
+ Canceled: 'CANCELED',
269
+ };
235
270
  export const GameServerCreateDTOTypeEnum = {
236
271
  Sevendaystodie: 'SEVENDAYSTODIE',
237
272
  Rust: 'RUST',
@@ -256,6 +291,24 @@ export const GameServerUpdateDTOTypeEnum = {
256
291
  Generic: 'GENERIC',
257
292
  Mock: 'MOCK',
258
293
  };
294
+ export const GetJobInputDTOTypeEnum = {
295
+ CsmmImport: 'csmmImport',
296
+ SeedModules: 'seedModules',
297
+ CleanEvents: 'cleanEvents',
298
+ CleanExpiringVariables: 'cleanExpiringVariables',
299
+ EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
300
+ DeleteGameServers: 'deleteGameServers',
301
+ SyncItems: 'syncItems',
302
+ SyncEntities: 'syncEntities',
303
+ SyncBans: 'syncBans',
304
+ SyncMapImages: 'syncMapImages',
305
+ SyncMapUploads: 'syncMapUploads',
306
+ SyncSteam: 'syncSteam',
307
+ SyncDiscordRoles: 'syncDiscordRoles',
308
+ EmitRateLimitSummary: 'emitRateLimitSummary',
309
+ CleanRevokedApiKeys: 'cleanRevokedApiKeys',
310
+ CleanExecutionClaims: 'cleanExecutionClaims',
311
+ };
259
312
  export const HookCreateDTOEventTypeEnum = {
260
313
  Log: 'log',
261
314
  PlayerConnected: 'player-connected',
@@ -572,6 +625,43 @@ export const JobStatusOutputDTOStatusEnum = {
572
625
  Waiting: 'waiting',
573
626
  WaitingChildren: 'waiting-children',
574
627
  };
628
+ export const ManagementDomainOutputDTOStateEnum = {
629
+ Active: 'ACTIVE',
630
+ Disabled: 'DISABLED',
631
+ Maintenance: 'MAINTENANCE',
632
+ };
633
+ export const ManagementDomainOutputDTOCustomDomainStateEnum = {
634
+ Pending: 'PENDING',
635
+ Verified: 'VERIFIED',
636
+ Failed: 'FAILED',
637
+ };
638
+ export const MapHorizontalAxisDTOFieldEnum = {
639
+ X: 'x',
640
+ Y: 'y',
641
+ Z: 'z',
642
+ };
643
+ export const MapHorizontalAxisDTODirectionEnum = {
644
+ Right: 'right',
645
+ Left: 'left',
646
+ };
647
+ export const MapPyramidDTOOriginEnum = {
648
+ Game: 'game',
649
+ Upload: 'upload',
650
+ };
651
+ export const MapSourceDTOTypeEnum = {
652
+ None: 'none',
653
+ Tiled: 'tiled',
654
+ Image: 'image',
655
+ };
656
+ export const MapVerticalAxisDTOFieldEnum = {
657
+ X: 'x',
658
+ Y: 'y',
659
+ Z: 'z',
660
+ };
661
+ export const MapVerticalAxisDTODirectionEnum = {
662
+ Up: 'up',
663
+ Down: 'down',
664
+ };
575
665
  export const OrderStatusCountDTOStatusEnum = {
576
666
  Completed: 'COMPLETED',
577
667
  Paid: 'PAID',
@@ -609,6 +699,12 @@ export const PERMISSIONS = {
609
699
  SendDiscordMessage: 'SEND_DISCORD_MESSAGE',
610
700
  ManageApiKeys: 'MANAGE_API_KEYS',
611
701
  };
702
+ export const PlanPriceDTOIntervalEnum = {
703
+ Day: 'day',
704
+ Week: 'week',
705
+ Month: 'month',
706
+ Year: 'year',
707
+ };
612
708
  export const PlayerOnGameServerSearchInputDTOExtendEnum = {
613
709
  GameServer: 'gameServer',
614
710
  Player: 'player',
@@ -648,6 +744,7 @@ export const SettingsOutputDTOKeyEnum = {
648
744
  DiscordRoleSyncPreferDiscord: 'discordRoleSyncPreferDiscord',
649
745
  UnknownCommandFeedbackEnabled: 'unknownCommandFeedbackEnabled',
650
746
  UnknownCommandFeedbackMessage: 'unknownCommandFeedbackMessage',
747
+ TakaroAiEnabled: 'takaroAiEnabled',
651
748
  };
652
749
  export const SettingsOutputDTOTypeEnum = {
653
750
  Override: 'override',
@@ -660,6 +757,45 @@ export const ShopListingBulkInputDTOActionEnum = {
660
757
  Publish: 'publish',
661
758
  Unpublish: 'unpublish',
662
759
  };
760
+ export const ShopListingCancellationPreviewInputDTOActionEnum = {
761
+ Unpublish: 'unpublish',
762
+ Delete: 'delete',
763
+ Replace: 'replace',
764
+ };
765
+ export const ShopListingCreateDTODeliveryMethodEnum = {
766
+ Claim: 'claim',
767
+ Instant: 'instant',
768
+ };
769
+ export const ShopListingCreateDTOPerUserPeriodEnum = {
770
+ Day: 'day',
771
+ Week: 'week',
772
+ Month: 'month',
773
+ };
774
+ export const ShopListingCreateDTORequiredVariableOperatorEnum = {
775
+ Gte: 'gte',
776
+ Lte: 'lte',
777
+ Eq: 'eq',
778
+ Ne: 'ne',
779
+ Gt: 'gt',
780
+ Lt: 'lt',
781
+ };
782
+ export const ShopListingOutputDTODeliveryMethodEnum = {
783
+ Claim: 'claim',
784
+ Instant: 'instant',
785
+ };
786
+ export const ShopListingOutputDTOPerUserPeriodEnum = {
787
+ Day: 'day',
788
+ Week: 'week',
789
+ Month: 'month',
790
+ };
791
+ export const ShopListingOutputDTORequiredVariableOperatorEnum = {
792
+ Gte: 'gte',
793
+ Lte: 'lte',
794
+ Eq: 'eq',
795
+ Ne: 'ne',
796
+ Gt: 'gt',
797
+ Lt: 'lt',
798
+ };
663
799
  export const ShopListingSearchInputDTOExtendEnum = {
664
800
  GameServer: 'gameServer',
665
801
  Items: 'items',
@@ -669,16 +805,88 @@ export const ShopListingSearchInputDTOSortDirectionEnum = {
669
805
  Asc: 'asc',
670
806
  Desc: 'desc',
671
807
  };
808
+ export const ShopListingUpdateDTODeliveryMethodEnum = {
809
+ Claim: 'claim',
810
+ Instant: 'instant',
811
+ };
812
+ export const ShopListingUpdateDTOPerUserPeriodEnum = {
813
+ Day: 'day',
814
+ Week: 'week',
815
+ Month: 'month',
816
+ };
817
+ export const ShopListingUpdateDTORequiredVariableOperatorEnum = {
818
+ Gte: 'gte',
819
+ Lte: 'lte',
820
+ Eq: 'eq',
821
+ Ne: 'ne',
822
+ Gt: 'gt',
823
+ Lt: 'lt',
824
+ };
825
+ export const ShopOrderDeliveryItemDTOResultEnum = {
826
+ Delivered: 'DELIVERED',
827
+ Failed: 'FAILED',
828
+ Unknown: 'UNKNOWN',
829
+ };
672
830
  export const ShopOrderOutputDTOStatusEnum = {
673
831
  Completed: 'COMPLETED',
674
832
  Paid: 'PAID',
675
833
  Canceled: 'CANCELED',
676
834
  };
835
+ export const ShopOrderOutputDTODeliveryStatusEnum = {
836
+ NotApplicable: 'NOT_APPLICABLE',
837
+ NotAttempted: 'NOT_ATTEMPTED',
838
+ InProgress: 'IN_PROGRESS',
839
+ Delivered: 'DELIVERED',
840
+ Failed: 'FAILED',
841
+ Unknown: 'UNKNOWN',
842
+ };
677
843
  export const ShopOrderUpdateDTOStatusEnum = {
678
844
  Completed: 'COMPLETED',
679
845
  Paid: 'PAID',
680
846
  Canceled: 'CANCELED',
681
847
  };
848
+ export const StaffMeOutputDTOTierEnum = {
849
+ Viewer: 'viewer',
850
+ Operator: 'operator',
851
+ Owner: 'owner',
852
+ };
853
+ export const StorefrontDomainOutputDTOCustomDomainStateEnum = {
854
+ Pending: 'PENDING',
855
+ Verified: 'VERIFIED',
856
+ Failed: 'FAILED',
857
+ };
858
+ export const TakaroAiDomainOutputDTOOverrideStateEnum = {
859
+ None: 'none',
860
+ Active: 'active',
861
+ Expired: 'expired',
862
+ };
863
+ export const TakaroAiDomainOutputDTOStatusEnum = {
864
+ Available: 'available',
865
+ Grace: 'grace',
866
+ DailyLimitReached: 'dailyLimitReached',
867
+ LimitReached: 'limitReached',
868
+ Disabled: 'disabled',
869
+ NoAllowance: 'noAllowance',
870
+ NeedsGameServer: 'needsGameServer',
871
+ };
872
+ export const TakaroAiStaffChangeOutputDTOSubjectEnum = {
873
+ GlobalMultiplier: 'globalMultiplier',
874
+ DomainOverride: 'domainOverride',
875
+ MigrationCap: 'migrationCap',
876
+ };
877
+ export const TakaroAiStaffChangeOutputDTOActorKindEnum = {
878
+ StaffSession: 'staffSession',
879
+ AdminSecret: 'adminSecret',
880
+ };
881
+ export const TakaroAiUsageOutputDTOStatusEnum = {
882
+ Available: 'available',
883
+ Grace: 'grace',
884
+ DailyLimitReached: 'dailyLimitReached',
885
+ LimitReached: 'limitReached',
886
+ Disabled: 'disabled',
887
+ NoAllowance: 'noAllowance',
888
+ NeedsGameServer: 'needsGameServer',
889
+ };
682
890
  export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
683
891
  Added: 'added',
684
892
  Removed: 'removed',
@@ -689,6 +897,150 @@ export const TakaroEventRateLimitedScopeEnum = {
689
897
  Domain: 'domain',
690
898
  Global: 'global',
691
899
  };
900
+ export const ThreadApprovalDecisionInputDTOOutcomeEnum = {
901
+ Approved: 'approved',
902
+ Denied: 'denied',
903
+ };
904
+ export const ThreadContextInputDTOTypeEnum = {
905
+ Player: 'player',
906
+ GameServer: 'gameServer',
907
+ Module: 'module',
908
+ ModuleVersion: 'moduleVersion',
909
+ Event: 'event',
910
+ CsmmImport: 'csmmImport',
911
+ };
912
+ export const ThreadCreateInputDTOOriginSurfaceEnum = {
913
+ CommandPalette: 'commandPalette',
914
+ PlayerSummary: 'playerSummary',
915
+ Modules: 'modules',
916
+ GameServerModules: 'gameServerModules',
917
+ GameServerOverview: 'gameServerOverview',
918
+ GameServerConsole: 'gameServerConsole',
919
+ DashboardBriefing: 'dashboardBriefing',
920
+ EventsFilter: 'eventsFilter',
921
+ RoleBuilder: 'roleBuilder',
922
+ ModuleConfig: 'moduleConfig',
923
+ GameServerShop: 'gameServerShop',
924
+ ModuleOverview: 'moduleOverview',
925
+ ModuleBuilder: 'moduleBuilder',
926
+ EventFailure: 'eventFailure',
927
+ CsmmMigration: 'csmmMigration',
928
+ };
929
+ export const ThreadOutputDTOStatusEnum = {
930
+ Idle: 'idle',
931
+ Working: 'working',
932
+ Stopping: 'stopping',
933
+ Failed: 'failed',
934
+ AwaitingApproval: 'awaitingApproval',
935
+ AwaitingReply: 'awaitingReply',
936
+ };
937
+ export const ThreadOutputDTOOriginSurfaceEnum = {
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 ThreadSearchInputAllowedFiltersStatusEnum = {
955
+ Idle: 'idle',
956
+ Working: 'working',
957
+ Stopping: 'stopping',
958
+ Failed: 'failed',
959
+ AwaitingApproval: 'awaitingApproval',
960
+ AwaitingReply: 'awaitingReply',
961
+ };
962
+ export const ThreadSearchInputAllowedFiltersOriginSurfaceEnum = {
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 ThreadSearchInputDTOSortDirectionEnum = {
980
+ Asc: 'asc',
981
+ Desc: 'desc',
982
+ };
983
+ export const ThreadStepApprovalDTOOutcomeEnum = {
984
+ Approved: 'approved',
985
+ Denied: 'denied',
986
+ AutoAllowed: 'autoAllowed',
987
+ Cancelled: 'cancelled',
988
+ };
989
+ export const ThreadStepOutputDTOKindEnum = {
990
+ UserMessage: 'userMessage',
991
+ ModelMessage: 'modelMessage',
992
+ ToolCall: 'toolCall',
993
+ ToolResult: 'toolResult',
994
+ ApprovalRequest: 'approvalRequest',
995
+ ApprovalOutcome: 'approvalOutcome',
996
+ };
997
+ export const ThreadStepReferenceDTOTypeEnum = {
998
+ Player: 'player',
999
+ GameServer: 'gameServer',
1000
+ Module: 'module',
1001
+ ModuleVersion: 'moduleVersion',
1002
+ Event: 'event',
1003
+ CsmmImport: 'csmmImport',
1004
+ };
1005
+ export const ThreadWithStepsOutputDTOStatusEnum = {
1006
+ Idle: 'idle',
1007
+ Working: 'working',
1008
+ Stopping: 'stopping',
1009
+ Failed: 'failed',
1010
+ AwaitingApproval: 'awaitingApproval',
1011
+ AwaitingReply: 'awaitingReply',
1012
+ };
1013
+ export const ThreadWithStepsOutputDTOOriginSurfaceEnum = {
1014
+ CommandPalette: 'commandPalette',
1015
+ PlayerSummary: 'playerSummary',
1016
+ Modules: 'modules',
1017
+ GameServerModules: 'gameServerModules',
1018
+ GameServerOverview: 'gameServerOverview',
1019
+ GameServerConsole: 'gameServerConsole',
1020
+ DashboardBriefing: 'dashboardBriefing',
1021
+ EventsFilter: 'eventsFilter',
1022
+ RoleBuilder: 'roleBuilder',
1023
+ ModuleConfig: 'moduleConfig',
1024
+ GameServerShop: 'gameServerShop',
1025
+ ModuleOverview: 'moduleOverview',
1026
+ ModuleBuilder: 'moduleBuilder',
1027
+ EventFailure: 'eventFailure',
1028
+ CsmmMigration: 'csmmMigration',
1029
+ };
1030
+ export const TriggerJobInputDTOTypeEnum = {
1031
+ SeedModules: 'seedModules',
1032
+ CleanEvents: 'cleanEvents',
1033
+ CleanExpiringVariables: 'cleanExpiringVariables',
1034
+ EnsureCronjobsScheduled: 'ensureCronjobsScheduled',
1035
+ DeleteGameServers: 'deleteGameServers',
1036
+ SyncItems: 'syncItems',
1037
+ SyncEntities: 'syncEntities',
1038
+ SyncBans: 'syncBans',
1039
+ SyncMapImages: 'syncMapImages',
1040
+ SyncMapUploads: 'syncMapUploads',
1041
+ SyncSteam: 'syncSteam',
1042
+ SyncDiscordRoles: 'syncDiscordRoles',
1043
+ };
692
1044
  export const UserSearchInputDTOExtendEnum = {
693
1045
  Roles: 'roles',
694
1046
  };
@@ -727,6 +1079,7 @@ export const DistributorApiAxiosParamCreator = function (configuration) {
727
1079
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
728
1080
  const localVarHeaderParameter = {};
729
1081
  const localVarQueryParameter = {};
1082
+ // authentication staffSession required
730
1083
  // authentication adminAuth required
731
1084
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
732
1085
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -755,6 +1108,7 @@ export const DistributorApiAxiosParamCreator = function (configuration) {
755
1108
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
756
1109
  const localVarHeaderParameter = {};
757
1110
  const localVarQueryParameter = {};
1111
+ // authentication staffSession required
758
1112
  // authentication adminAuth required
759
1113
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
760
1114
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -788,6 +1142,7 @@ export const DistributorApiAxiosParamCreator = function (configuration) {
788
1142
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
789
1143
  const localVarHeaderParameter = {};
790
1144
  const localVarQueryParameter = {};
1145
+ // authentication staffSession required
791
1146
  // authentication adminAuth required
792
1147
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
793
1148
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -800,41 +1155,6 @@ export const DistributorApiAxiosParamCreator = function (configuration) {
800
1155
  options: localVarRequestOptions,
801
1156
  };
802
1157
  },
803
- /**
804
- * Clears the domain’s distributor attribution and its Plan reference, removes the domain’s Distributor Service Account, and leaves the domain on the self-service path. Both ids are taken so the domain’s distributor is explicit in the URL; a mismatched or unattributed pair is a 404 rather than confirming another distributor’s domain, which also makes a second detach a 404. The domain’s limits, users, roles, game servers and server registration token are left exactly as they are — app-api’s half of the hand-off is this state, and no Stripe object is created or cancelled here.<br> OperationId: `DistributorControllerDetachDomain`
805
- * @summary Detach a domain from a distributor
806
- * @param {string} id
807
- * @param {string} domainId
808
- * @param {*} [options] Override http request option.
809
- * @throws {RequiredError}
810
- */
811
- distributorControllerDetachDomain: async (id, domainId, options = {}) => {
812
- // verify required parameter 'id' is not null or undefined
813
- assertParamExists('distributorControllerDetachDomain', 'id', id);
814
- // verify required parameter 'domainId' is not null or undefined
815
- assertParamExists('distributorControllerDetachDomain', 'domainId', domainId);
816
- const localVarPath = `/distributor/{id}/domain/{domainId}`
817
- .replace(`{${'id'}}`, encodeURIComponent(String(id)))
818
- .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
819
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
820
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
821
- let baseOptions;
822
- if (configuration) {
823
- baseOptions = configuration.baseOptions;
824
- }
825
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
826
- const localVarHeaderParameter = {};
827
- const localVarQueryParameter = {};
828
- // authentication adminAuth required
829
- await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
830
- setSearchParams(localVarUrlObj, localVarQueryParameter);
831
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
832
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
833
- return {
834
- url: toPathString(localVarUrlObj),
835
- options: localVarRequestOptions,
836
- };
837
- },
838
1158
  /**
839
1159
  * Idempotent: disabling an already-disabled distributor succeeds and returns the unchanged row. There is no delete verb — a distributor is disabled so the attribution its domains carry stays resolvable.<br> OperationId: `DistributorControllerDisable`
840
1160
  * @summary Disable a distributor
@@ -855,6 +1175,7 @@ export const DistributorApiAxiosParamCreator = function (configuration) {
855
1175
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
856
1176
  const localVarHeaderParameter = {};
857
1177
  const localVarQueryParameter = {};
1178
+ // authentication staffSession required
858
1179
  // authentication adminAuth required
859
1180
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
860
1181
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -885,6 +1206,7 @@ export const DistributorApiAxiosParamCreator = function (configuration) {
885
1206
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
886
1207
  const localVarHeaderParameter = {};
887
1208
  const localVarQueryParameter = {};
1209
+ // authentication staffSession required
888
1210
  // authentication adminAuth required
889
1211
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
890
1212
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -915,6 +1237,7 @@ export const DistributorApiAxiosParamCreator = function (configuration) {
915
1237
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
916
1238
  const localVarHeaderParameter = {};
917
1239
  const localVarQueryParameter = {};
1240
+ // authentication staffSession required
918
1241
  // authentication adminAuth required
919
1242
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
920
1243
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -950,6 +1273,7 @@ export const DistributorApiAxiosParamCreator = function (configuration) {
950
1273
  const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
951
1274
  const localVarHeaderParameter = {};
952
1275
  const localVarQueryParameter = {};
1276
+ // authentication staffSession required
953
1277
  // authentication adminAuth required
954
1278
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
955
1279
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -978,6 +1302,7 @@ export const DistributorApiAxiosParamCreator = function (configuration) {
978
1302
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
979
1303
  const localVarHeaderParameter = {};
980
1304
  const localVarQueryParameter = {};
1305
+ // authentication staffSession required
981
1306
  // authentication adminAuth required
982
1307
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
983
1308
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -990,6 +1315,40 @@ export const DistributorApiAxiosParamCreator = function (configuration) {
990
1315
  options: localVarRequestOptions,
991
1316
  };
992
1317
  },
1318
+ /**
1319
+ * Returns the distributor’s keys as METADATA ONLY: name, prefix, suffix, status, created and last-used. The secret is returned once at creation and can never be read back — no route on this API returns it or its hash a second time. A revoked key stays listed as REVOKED for 30 days, which is how a revocation stays visible. The distributor is taken from the path, never from the body; an unknown id is a 404.<br> OperationId: `DistributorControllerSearchKeys`
1320
+ * @summary Search a distributor’s keys
1321
+ * @param {string} id
1322
+ * @param {DistributorKeySearchInputDTO} [distributorKeySearchInputDTO] DistributorKeySearchInputDTO
1323
+ * @param {*} [options] Override http request option.
1324
+ * @throws {RequiredError}
1325
+ */
1326
+ distributorControllerSearchKeys: async (id, distributorKeySearchInputDTO, options = {}) => {
1327
+ // verify required parameter 'id' is not null or undefined
1328
+ assertParamExists('distributorControllerSearchKeys', 'id', id);
1329
+ const localVarPath = `/distributor/{id}/key/search`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
1330
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1331
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1332
+ let baseOptions;
1333
+ if (configuration) {
1334
+ baseOptions = configuration.baseOptions;
1335
+ }
1336
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1337
+ const localVarHeaderParameter = {};
1338
+ const localVarQueryParameter = {};
1339
+ // authentication staffSession required
1340
+ // authentication adminAuth required
1341
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
1342
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1343
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1344
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1345
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1346
+ localVarRequestOptions.data = serializeDataIfNeeded(distributorKeySearchInputDTO, localVarRequestOptions, configuration);
1347
+ return {
1348
+ url: toPathString(localVarUrlObj),
1349
+ options: localVarRequestOptions,
1350
+ };
1351
+ },
993
1352
  /**
994
1353
  * <br> OperationId: `DistributorControllerUpdate`
995
1354
  * @summary Update
@@ -1011,6 +1370,7 @@ export const DistributorApiAxiosParamCreator = function (configuration) {
1011
1370
  const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
1012
1371
  const localVarHeaderParameter = {};
1013
1372
  const localVarQueryParameter = {};
1373
+ // authentication staffSession required
1014
1374
  // authentication adminAuth required
1015
1375
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
1016
1376
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -1073,20 +1433,6 @@ export const DistributorApiFp = function (configuration) {
1073
1433
  const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerCreateKey']?.[localVarOperationServerIndex]?.url;
1074
1434
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1075
1435
  },
1076
- /**
1077
- * Clears the domain’s distributor attribution and its Plan reference, removes the domain’s Distributor Service Account, and leaves the domain on the self-service path. Both ids are taken so the domain’s distributor is explicit in the URL; a mismatched or unattributed pair is a 404 rather than confirming another distributor’s domain, which also makes a second detach a 404. The domain’s limits, users, roles, game servers and server registration token are left exactly as they are — app-api’s half of the hand-off is this state, and no Stripe object is created or cancelled here.<br> OperationId: `DistributorControllerDetachDomain`
1078
- * @summary Detach a domain from a distributor
1079
- * @param {string} id
1080
- * @param {string} domainId
1081
- * @param {*} [options] Override http request option.
1082
- * @throws {RequiredError}
1083
- */
1084
- async distributorControllerDetachDomain(id, domainId, options) {
1085
- const localVarAxiosArgs = await localVarAxiosParamCreator.distributorControllerDetachDomain(id, domainId, options);
1086
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1087
- const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerDetachDomain']?.[localVarOperationServerIndex]?.url;
1088
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1089
- },
1090
1436
  /**
1091
1437
  * Idempotent: disabling an already-disabled distributor succeeds and returns the unchanged row. There is no delete verb — a distributor is disabled so the attribution its domains carry stays resolvable.<br> OperationId: `DistributorControllerDisable`
1092
1438
  * @summary Disable a distributor
@@ -1153,6 +1499,20 @@ export const DistributorApiFp = function (configuration) {
1153
1499
  const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerSearch']?.[localVarOperationServerIndex]?.url;
1154
1500
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1155
1501
  },
1502
+ /**
1503
+ * Returns the distributor’s keys as METADATA ONLY: name, prefix, suffix, status, created and last-used. The secret is returned once at creation and can never be read back — no route on this API returns it or its hash a second time. A revoked key stays listed as REVOKED for 30 days, which is how a revocation stays visible. The distributor is taken from the path, never from the body; an unknown id is a 404.<br> OperationId: `DistributorControllerSearchKeys`
1504
+ * @summary Search a distributor’s keys
1505
+ * @param {string} id
1506
+ * @param {DistributorKeySearchInputDTO} [distributorKeySearchInputDTO] DistributorKeySearchInputDTO
1507
+ * @param {*} [options] Override http request option.
1508
+ * @throws {RequiredError}
1509
+ */
1510
+ async distributorControllerSearchKeys(id, distributorKeySearchInputDTO, options) {
1511
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorControllerSearchKeys(id, distributorKeySearchInputDTO, options);
1512
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1513
+ const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerSearchKeys']?.[localVarOperationServerIndex]?.url;
1514
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1515
+ },
1156
1516
  /**
1157
1517
  * <br> OperationId: `DistributorControllerUpdate`
1158
1518
  * @summary Update
@@ -1214,19 +1574,6 @@ export const DistributorApiFactory = function (configuration, basePath, axios) {
1214
1574
  .distributorControllerCreateKey(id, distributorKeyCreateInputDTO, options)
1215
1575
  .then((request) => request(axios, basePath));
1216
1576
  },
1217
- /**
1218
- * Clears the domain’s distributor attribution and its Plan reference, removes the domain’s Distributor Service Account, and leaves the domain on the self-service path. Both ids are taken so the domain’s distributor is explicit in the URL; a mismatched or unattributed pair is a 404 rather than confirming another distributor’s domain, which also makes a second detach a 404. The domain’s limits, users, roles, game servers and server registration token are left exactly as they are — app-api’s half of the hand-off is this state, and no Stripe object is created or cancelled here.<br> OperationId: `DistributorControllerDetachDomain`
1219
- * @summary Detach a domain from a distributor
1220
- * @param {string} id
1221
- * @param {string} domainId
1222
- * @param {*} [options] Override http request option.
1223
- * @throws {RequiredError}
1224
- */
1225
- distributorControllerDetachDomain(id, domainId, options) {
1226
- return localVarFp
1227
- .distributorControllerDetachDomain(id, domainId, options)
1228
- .then((request) => request(axios, basePath));
1229
- },
1230
1577
  /**
1231
1578
  * Idempotent: disabling an already-disabled distributor succeeds and returns the unchanged row. There is no delete verb — a distributor is disabled so the attribution its domains carry stays resolvable.<br> OperationId: `DistributorControllerDisable`
1232
1579
  * @summary Disable a distributor
@@ -1280,6 +1627,19 @@ export const DistributorApiFactory = function (configuration, basePath, axios) {
1280
1627
  .distributorControllerSearch(distributorSearchInputDTO, options)
1281
1628
  .then((request) => request(axios, basePath));
1282
1629
  },
1630
+ /**
1631
+ * Returns the distributor’s keys as METADATA ONLY: name, prefix, suffix, status, created and last-used. The secret is returned once at creation and can never be read back — no route on this API returns it or its hash a second time. A revoked key stays listed as REVOKED for 30 days, which is how a revocation stays visible. The distributor is taken from the path, never from the body; an unknown id is a 404.<br> OperationId: `DistributorControllerSearchKeys`
1632
+ * @summary Search a distributor’s keys
1633
+ * @param {string} id
1634
+ * @param {DistributorKeySearchInputDTO} [distributorKeySearchInputDTO] DistributorKeySearchInputDTO
1635
+ * @param {*} [options] Override http request option.
1636
+ * @throws {RequiredError}
1637
+ */
1638
+ distributorControllerSearchKeys(id, distributorKeySearchInputDTO, options) {
1639
+ return localVarFp
1640
+ .distributorControllerSearchKeys(id, distributorKeySearchInputDTO, options)
1641
+ .then((request) => request(axios, basePath));
1642
+ },
1283
1643
  /**
1284
1644
  * <br> OperationId: `DistributorControllerUpdate`
1285
1645
  * @summary Update
@@ -1343,20 +1703,6 @@ export class DistributorApi extends BaseAPI {
1343
1703
  .distributorControllerCreateKey(id, distributorKeyCreateInputDTO, options)
1344
1704
  .then((request) => request(this.axios, this.basePath));
1345
1705
  }
1346
- /**
1347
- * Clears the domain’s distributor attribution and its Plan reference, removes the domain’s Distributor Service Account, and leaves the domain on the self-service path. Both ids are taken so the domain’s distributor is explicit in the URL; a mismatched or unattributed pair is a 404 rather than confirming another distributor’s domain, which also makes a second detach a 404. The domain’s limits, users, roles, game servers and server registration token are left exactly as they are — app-api’s half of the hand-off is this state, and no Stripe object is created or cancelled here.<br> OperationId: `DistributorControllerDetachDomain`
1348
- * @summary Detach a domain from a distributor
1349
- * @param {string} id
1350
- * @param {string} domainId
1351
- * @param {*} [options] Override http request option.
1352
- * @throws {RequiredError}
1353
- * @memberof DistributorApi
1354
- */
1355
- distributorControllerDetachDomain(id, domainId, options) {
1356
- return DistributorApiFp(this.configuration)
1357
- .distributorControllerDetachDomain(id, domainId, options)
1358
- .then((request) => request(this.axios, this.basePath));
1359
- }
1360
1706
  /**
1361
1707
  * Idempotent: disabling an already-disabled distributor succeeds and returns the unchanged row. There is no delete verb — a distributor is disabled so the attribution its domains carry stays resolvable.<br> OperationId: `DistributorControllerDisable`
1362
1708
  * @summary Disable a distributor
@@ -1423,6 +1769,20 @@ export class DistributorApi extends BaseAPI {
1423
1769
  .distributorControllerSearch(distributorSearchInputDTO, options)
1424
1770
  .then((request) => request(this.axios, this.basePath));
1425
1771
  }
1772
+ /**
1773
+ * Returns the distributor’s keys as METADATA ONLY: name, prefix, suffix, status, created and last-used. The secret is returned once at creation and can never be read back — no route on this API returns it or its hash a second time. A revoked key stays listed as REVOKED for 30 days, which is how a revocation stays visible. The distributor is taken from the path, never from the body; an unknown id is a 404.<br> OperationId: `DistributorControllerSearchKeys`
1774
+ * @summary Search a distributor’s keys
1775
+ * @param {string} id
1776
+ * @param {DistributorKeySearchInputDTO} [distributorKeySearchInputDTO] DistributorKeySearchInputDTO
1777
+ * @param {*} [options] Override http request option.
1778
+ * @throws {RequiredError}
1779
+ * @memberof DistributorApi
1780
+ */
1781
+ distributorControllerSearchKeys(id, distributorKeySearchInputDTO, options) {
1782
+ return DistributorApiFp(this.configuration)
1783
+ .distributorControllerSearchKeys(id, distributorKeySearchInputDTO, options)
1784
+ .then((request) => request(this.axios, this.basePath));
1785
+ }
1426
1786
  /**
1427
1787
  * <br> OperationId: `DistributorControllerUpdate`
1428
1788
  * @summary Update
@@ -2259,6 +2619,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2259
2619
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2260
2620
  const localVarHeaderParameter = {};
2261
2621
  const localVarQueryParameter = {};
2622
+ // authentication staffSession required
2262
2623
  // authentication adminAuth required
2263
2624
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2264
2625
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -2272,7 +2633,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2272
2633
  };
2273
2634
  },
2274
2635
  /**
2275
- * Mints a Domain Key scoped to the target domain, so a non-interactive caller (domain provisioning, the billing reconciler, an end-to-end suite) can act in a freshly created domain without a human login. The `key` field is returned ONCE and is not stored on the server — Takaro keeps only a hash. Hardened for provisioning use: `kind` is forced to `domain`, the scope is forced to unrestricted, and the expiry is forced to ONE HOUR, regardless of request body values — mint a key through `POST /apikey` for anything longer-lived. roleIds is passed through as-is and every id must name a role in this domain; omit it to mint a powerless key. Attribution is limited: the admin secret is a single shared identity, so the key records the domain\'s system root user as its creator and cannot name the individual staff caller.<br> OperationId: `DomainControllerCreateApiKey`
2636
+ * Mints a Domain Key scoped to the target domain, so a non-interactive caller (domain provisioning, the billing reconciler, an end-to-end suite) can act in a freshly created domain without a human login. The `key` field is returned ONCE and is not stored on the server — Takaro keeps only a hash. Hardened for provisioning use: `kind` is forced to `domain`, the scope is forced to unrestricted, and the expiry is forced to ONE HOUR, regardless of request body values — mint a key through `POST /apikey` for anything longer-lived. Every id in roleIds must name a role in this domain; omit roleIds to mint a powerless key. Only an Owner may grant the domain’s `root` role. From a Staff session the key records the domain’s `Takaro staff` service account as its creator and the event meta names the individual staff member by subject id. With the shared admin secret the key records the domain\'s system root user and names no individual.<br> OperationId: `DomainControllerCreateApiKey`
2276
2637
  * @summary Mint a Domain Key for a domain
2277
2638
  * @param {string} id
2278
2639
  * @param {DomainApiKeyCreateInputDTO} [domainApiKeyCreateInputDTO] DomainApiKeyCreateInputDTO
@@ -2292,6 +2653,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2292
2653
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2293
2654
  const localVarHeaderParameter = {};
2294
2655
  const localVarQueryParameter = {};
2656
+ // authentication staffSession required
2295
2657
  // authentication adminAuth required
2296
2658
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2297
2659
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -2305,7 +2667,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2305
2667
  };
2306
2668
  },
2307
2669
  /**
2308
- * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. roleIds is passed through as-is; omit it to grant no extra roles (plain member). Attribution is limited: the admin secret is a single shared identity; this event records that staff acted on the domain but cannot name the individual.<br> OperationId: `DomainControllerCreateInviteLink`
2670
+ * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. Every id in roleIds must name a role in this domain; omit roleIds to grant no extra roles (plain member). Only an Owner may grant the domain’s `root` role. From a Staff session the link is attributed to the domain’s `Takaro staff` service account and the event meta names the individual staff member by subject id. With the shared admin secret attribution stays limited to \"some staff member\".<br> OperationId: `DomainControllerCreateInviteLink`
2309
2671
  * @summary Create staff-recovery invite link for a domain
2310
2672
  * @param {string} id
2311
2673
  * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
@@ -2325,6 +2687,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2325
2687
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2326
2688
  const localVarHeaderParameter = {};
2327
2689
  const localVarQueryParameter = {};
2690
+ // authentication staffSession required
2328
2691
  // authentication adminAuth required
2329
2692
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2330
2693
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -2357,6 +2720,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2357
2720
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2358
2721
  const localVarHeaderParameter = {};
2359
2722
  const localVarQueryParameter = {};
2723
+ // authentication staffSession required
2360
2724
  // authentication adminAuth required
2361
2725
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2362
2726
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -2385,6 +2749,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2385
2749
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2386
2750
  const localVarHeaderParameter = {};
2387
2751
  const localVarQueryParameter = {};
2752
+ // authentication staffSession required
2388
2753
  // authentication adminAuth required
2389
2754
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2390
2755
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -2397,6 +2762,37 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2397
2762
  options: localVarRequestOptions,
2398
2763
  };
2399
2764
  },
2765
+ /**
2766
+ * Lists the roles of the target domain, projected to id, name and system — enough to pick roles for an invite link or a Domain Key, and nothing about what a role grants. Roles that carry the root permission are listed; only an Owner may hand one out.<br> OperationId: `DomainControllerListRoles`
2767
+ * @summary List a domain\'s roles
2768
+ * @param {string} id
2769
+ * @param {*} [options] Override http request option.
2770
+ * @throws {RequiredError}
2771
+ */
2772
+ domainControllerListRoles: async (id, options = {}) => {
2773
+ // verify required parameter 'id' is not null or undefined
2774
+ assertParamExists('domainControllerListRoles', 'id', id);
2775
+ const localVarPath = `/domain/{id}/roles`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2776
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2777
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2778
+ let baseOptions;
2779
+ if (configuration) {
2780
+ baseOptions = configuration.baseOptions;
2781
+ }
2782
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2783
+ const localVarHeaderParameter = {};
2784
+ const localVarQueryParameter = {};
2785
+ // authentication staffSession required
2786
+ // authentication adminAuth required
2787
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2788
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2789
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2790
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2791
+ return {
2792
+ url: toPathString(localVarUrlObj),
2793
+ options: localVarRequestOptions,
2794
+ };
2795
+ },
2400
2796
  /**
2401
2797
  * <br> OperationId: `DomainControllerRemove`
2402
2798
  * @summary Remove
@@ -2418,6 +2814,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2418
2814
  const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
2419
2815
  const localVarHeaderParameter = {};
2420
2816
  const localVarQueryParameter = {};
2817
+ // authentication staffSession required
2421
2818
  // authentication adminAuth required
2422
2819
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2423
2820
  if (hardDelete !== undefined) {
@@ -2451,6 +2848,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2451
2848
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2452
2849
  const localVarHeaderParameter = {};
2453
2850
  const localVarQueryParameter = {};
2851
+ // authentication staffSession required
2454
2852
  // authentication adminAuth required
2455
2853
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2456
2854
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -2481,6 +2879,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2481
2879
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2482
2880
  const localVarHeaderParameter = {};
2483
2881
  const localVarQueryParameter = {};
2882
+ // authentication staffSession required
2484
2883
  // authentication adminAuth required
2485
2884
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2486
2885
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -2494,7 +2893,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2494
2893
  };
2495
2894
  },
2496
2895
  /**
2497
- * The domains attributed to a distributor, with the Plan their limits come from. This is the billing reconciler’s read: `POST /domain/search` deliberately does not expose `planId`. Never returns a subscription-backed domain.<br> OperationId: `DomainControllerSearchDistributorBacked`
2896
+ * The domains attributed to a distributor, with the Plan their limits come from. This is the billing reconciler’s read: it never returns a subscription-backed domain, which is what makes it a reconciler sweep rather than a domain listing.<br> OperationId: `DomainControllerSearchDistributorBacked`
2498
2897
  * @summary Search distributor-backed domains
2499
2898
  * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
2500
2899
  * @param {*} [options] Override http request option.
@@ -2511,6 +2910,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2511
2910
  const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2512
2911
  const localVarHeaderParameter = {};
2513
2912
  const localVarQueryParameter = {};
2913
+ // authentication staffSession required
2514
2914
  // authentication adminAuth required
2515
2915
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2516
2916
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -2544,6 +2944,7 @@ export const DomainApiAxiosParamCreator = function (configuration) {
2544
2944
  const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
2545
2945
  const localVarHeaderParameter = {};
2546
2946
  const localVarQueryParameter = {};
2947
+ // authentication staffSession required
2547
2948
  // authentication adminAuth required
2548
2949
  await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2549
2950
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -2579,7 +2980,7 @@ export const DomainApiFp = function (configuration) {
2579
2980
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2580
2981
  },
2581
2982
  /**
2582
- * Mints a Domain Key scoped to the target domain, so a non-interactive caller (domain provisioning, the billing reconciler, an end-to-end suite) can act in a freshly created domain without a human login. The `key` field is returned ONCE and is not stored on the server — Takaro keeps only a hash. Hardened for provisioning use: `kind` is forced to `domain`, the scope is forced to unrestricted, and the expiry is forced to ONE HOUR, regardless of request body values — mint a key through `POST /apikey` for anything longer-lived. roleIds is passed through as-is and every id must name a role in this domain; omit it to mint a powerless key. Attribution is limited: the admin secret is a single shared identity, so the key records the domain\'s system root user as its creator and cannot name the individual staff caller.<br> OperationId: `DomainControllerCreateApiKey`
2983
+ * Mints a Domain Key scoped to the target domain, so a non-interactive caller (domain provisioning, the billing reconciler, an end-to-end suite) can act in a freshly created domain without a human login. The `key` field is returned ONCE and is not stored on the server — Takaro keeps only a hash. Hardened for provisioning use: `kind` is forced to `domain`, the scope is forced to unrestricted, and the expiry is forced to ONE HOUR, regardless of request body values — mint a key through `POST /apikey` for anything longer-lived. Every id in roleIds must name a role in this domain; omit roleIds to mint a powerless key. Only an Owner may grant the domain’s `root` role. From a Staff session the key records the domain’s `Takaro staff` service account as its creator and the event meta names the individual staff member by subject id. With the shared admin secret the key records the domain\'s system root user and names no individual.<br> OperationId: `DomainControllerCreateApiKey`
2583
2984
  * @summary Mint a Domain Key for a domain
2584
2985
  * @param {string} id
2585
2986
  * @param {DomainApiKeyCreateInputDTO} [domainApiKeyCreateInputDTO] DomainApiKeyCreateInputDTO
@@ -2593,7 +2994,7 @@ export const DomainApiFp = function (configuration) {
2593
2994
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2594
2995
  },
2595
2996
  /**
2596
- * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. roleIds is passed through as-is; omit it to grant no extra roles (plain member). Attribution is limited: the admin secret is a single shared identity; this event records that staff acted on the domain but cannot name the individual.<br> OperationId: `DomainControllerCreateInviteLink`
2997
+ * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. Every id in roleIds must name a role in this domain; omit roleIds to grant no extra roles (plain member). Only an Owner may grant the domain’s `root` role. From a Staff session the link is attributed to the domain’s `Takaro staff` service account and the event meta names the individual staff member by subject id. With the shared admin secret attribution stays limited to \"some staff member\".<br> OperationId: `DomainControllerCreateInviteLink`
2597
2998
  * @summary Create staff-recovery invite link for a domain
2598
2999
  * @param {string} id
2599
3000
  * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
@@ -2632,6 +3033,19 @@ export const DomainApiFp = function (configuration) {
2632
3033
  const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerGetToken']?.[localVarOperationServerIndex]?.url;
2633
3034
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2634
3035
  },
3036
+ /**
3037
+ * Lists the roles of the target domain, projected to id, name and system — enough to pick roles for an invite link or a Domain Key, and nothing about what a role grants. Roles that carry the root permission are listed; only an Owner may hand one out.<br> OperationId: `DomainControllerListRoles`
3038
+ * @summary List a domain\'s roles
3039
+ * @param {string} id
3040
+ * @param {*} [options] Override http request option.
3041
+ * @throws {RequiredError}
3042
+ */
3043
+ async domainControllerListRoles(id, options) {
3044
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerListRoles(id, options);
3045
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3046
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerListRoles']?.[localVarOperationServerIndex]?.url;
3047
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3048
+ },
2635
3049
  /**
2636
3050
  * <br> OperationId: `DomainControllerRemove`
2637
3051
  * @summary Remove
@@ -2673,7 +3087,7 @@ export const DomainApiFp = function (configuration) {
2673
3087
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2674
3088
  },
2675
3089
  /**
2676
- * The domains attributed to a distributor, with the Plan their limits come from. This is the billing reconciler’s read: `POST /domain/search` deliberately does not expose `planId`. Never returns a subscription-backed domain.<br> OperationId: `DomainControllerSearchDistributorBacked`
3090
+ * The domains attributed to a distributor, with the Plan their limits come from. This is the billing reconciler’s read: it never returns a subscription-backed domain, which is what makes it a reconciler sweep rather than a domain listing.<br> OperationId: `DomainControllerSearchDistributorBacked`
2677
3091
  * @summary Search distributor-backed domains
2678
3092
  * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
2679
3093
  * @param {*} [options] Override http request option.
@@ -2721,7 +3135,7 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
2721
3135
  .then((request) => request(axios, basePath));
2722
3136
  },
2723
3137
  /**
2724
- * Mints a Domain Key scoped to the target domain, so a non-interactive caller (domain provisioning, the billing reconciler, an end-to-end suite) can act in a freshly created domain without a human login. The `key` field is returned ONCE and is not stored on the server — Takaro keeps only a hash. Hardened for provisioning use: `kind` is forced to `domain`, the scope is forced to unrestricted, and the expiry is forced to ONE HOUR, regardless of request body values — mint a key through `POST /apikey` for anything longer-lived. roleIds is passed through as-is and every id must name a role in this domain; omit it to mint a powerless key. Attribution is limited: the admin secret is a single shared identity, so the key records the domain\'s system root user as its creator and cannot name the individual staff caller.<br> OperationId: `DomainControllerCreateApiKey`
3138
+ * Mints a Domain Key scoped to the target domain, so a non-interactive caller (domain provisioning, the billing reconciler, an end-to-end suite) can act in a freshly created domain without a human login. The `key` field is returned ONCE and is not stored on the server — Takaro keeps only a hash. Hardened for provisioning use: `kind` is forced to `domain`, the scope is forced to unrestricted, and the expiry is forced to ONE HOUR, regardless of request body values — mint a key through `POST /apikey` for anything longer-lived. Every id in roleIds must name a role in this domain; omit roleIds to mint a powerless key. Only an Owner may grant the domain’s `root` role. From a Staff session the key records the domain’s `Takaro staff` service account as its creator and the event meta names the individual staff member by subject id. With the shared admin secret the key records the domain\'s system root user and names no individual.<br> OperationId: `DomainControllerCreateApiKey`
2725
3139
  * @summary Mint a Domain Key for a domain
2726
3140
  * @param {string} id
2727
3141
  * @param {DomainApiKeyCreateInputDTO} [domainApiKeyCreateInputDTO] DomainApiKeyCreateInputDTO
@@ -2734,7 +3148,7 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
2734
3148
  .then((request) => request(axios, basePath));
2735
3149
  },
2736
3150
  /**
2737
- * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. roleIds is passed through as-is; omit it to grant no extra roles (plain member). Attribution is limited: the admin secret is a single shared identity; this event records that staff acted on the domain but cannot name the individual.<br> OperationId: `DomainControllerCreateInviteLink`
3151
+ * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. Every id in roleIds must name a role in this domain; omit roleIds to grant no extra roles (plain member). Only an Owner may grant the domain’s `root` role. From a Staff session the link is attributed to the domain’s `Takaro staff` service account and the event meta names the individual staff member by subject id. With the shared admin secret attribution stays limited to \"some staff member\".<br> OperationId: `DomainControllerCreateInviteLink`
2738
3152
  * @summary Create staff-recovery invite link for a domain
2739
3153
  * @param {string} id
2740
3154
  * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
@@ -2766,6 +3180,16 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
2766
3180
  domainControllerGetToken(tokenInputDTO, options) {
2767
3181
  return localVarFp.domainControllerGetToken(tokenInputDTO, options).then((request) => request(axios, basePath));
2768
3182
  },
3183
+ /**
3184
+ * Lists the roles of the target domain, projected to id, name and system — enough to pick roles for an invite link or a Domain Key, and nothing about what a role grants. Roles that carry the root permission are listed; only an Owner may hand one out.<br> OperationId: `DomainControllerListRoles`
3185
+ * @summary List a domain\'s roles
3186
+ * @param {string} id
3187
+ * @param {*} [options] Override http request option.
3188
+ * @throws {RequiredError}
3189
+ */
3190
+ domainControllerListRoles(id, options) {
3191
+ return localVarFp.domainControllerListRoles(id, options).then((request) => request(axios, basePath));
3192
+ },
2769
3193
  /**
2770
3194
  * <br> OperationId: `DomainControllerRemove`
2771
3195
  * @summary Remove
@@ -2802,7 +3226,7 @@ export const DomainApiFactory = function (configuration, basePath, axios) {
2802
3226
  .then((request) => request(axios, basePath));
2803
3227
  },
2804
3228
  /**
2805
- * The domains attributed to a distributor, with the Plan their limits come from. This is the billing reconciler’s read: `POST /domain/search` deliberately does not expose `planId`. Never returns a subscription-backed domain.<br> OperationId: `DomainControllerSearchDistributorBacked`
3229
+ * The domains attributed to a distributor, with the Plan their limits come from. This is the billing reconciler’s read: it never returns a subscription-backed domain, which is what makes it a reconciler sweep rather than a domain listing.<br> OperationId: `DomainControllerSearchDistributorBacked`
2806
3230
  * @summary Search distributor-backed domains
2807
3231
  * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
2808
3232
  * @param {*} [options] Override http request option.
@@ -2849,7 +3273,7 @@ export class DomainApi extends BaseAPI {
2849
3273
  .then((request) => request(this.axios, this.basePath));
2850
3274
  }
2851
3275
  /**
2852
- * Mints a Domain Key scoped to the target domain, so a non-interactive caller (domain provisioning, the billing reconciler, an end-to-end suite) can act in a freshly created domain without a human login. The `key` field is returned ONCE and is not stored on the server — Takaro keeps only a hash. Hardened for provisioning use: `kind` is forced to `domain`, the scope is forced to unrestricted, and the expiry is forced to ONE HOUR, regardless of request body values — mint a key through `POST /apikey` for anything longer-lived. roleIds is passed through as-is and every id must name a role in this domain; omit it to mint a powerless key. Attribution is limited: the admin secret is a single shared identity, so the key records the domain\'s system root user as its creator and cannot name the individual staff caller.<br> OperationId: `DomainControllerCreateApiKey`
3276
+ * Mints a Domain Key scoped to the target domain, so a non-interactive caller (domain provisioning, the billing reconciler, an end-to-end suite) can act in a freshly created domain without a human login. The `key` field is returned ONCE and is not stored on the server — Takaro keeps only a hash. Hardened for provisioning use: `kind` is forced to `domain`, the scope is forced to unrestricted, and the expiry is forced to ONE HOUR, regardless of request body values — mint a key through `POST /apikey` for anything longer-lived. Every id in roleIds must name a role in this domain; omit roleIds to mint a powerless key. Only an Owner may grant the domain’s `root` role. From a Staff session the key records the domain’s `Takaro staff` service account as its creator and the event meta names the individual staff member by subject id. With the shared admin secret the key records the domain\'s system root user and names no individual.<br> OperationId: `DomainControllerCreateApiKey`
2853
3277
  * @summary Mint a Domain Key for a domain
2854
3278
  * @param {string} id
2855
3279
  * @param {DomainApiKeyCreateInputDTO} [domainApiKeyCreateInputDTO] DomainApiKeyCreateInputDTO
@@ -2863,7 +3287,7 @@ export class DomainApi extends BaseAPI {
2863
3287
  .then((request) => request(this.axios, this.basePath));
2864
3288
  }
2865
3289
  /**
2866
- * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. roleIds is passed through as-is; omit it to grant no extra roles (plain member). Attribution is limited: the admin secret is a single shared identity; this event records that staff acted on the domain but cannot name the individual.<br> OperationId: `DomainControllerCreateInviteLink`
3290
+ * Creates a staff-recovery invite link scoped to the target domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. Hardened for recovery use: expiry is forced to 24 hours and maxUses is forced to 1, regardless of request body values. Every id in roleIds must name a role in this domain; omit roleIds to grant no extra roles (plain member). Only an Owner may grant the domain’s `root` role. From a Staff session the link is attributed to the domain’s `Takaro staff` service account and the event meta names the individual staff member by subject id. With the shared admin secret attribution stays limited to \"some staff member\".<br> OperationId: `DomainControllerCreateInviteLink`
2867
3291
  * @summary Create staff-recovery invite link for a domain
2868
3292
  * @param {string} id
2869
3293
  * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
@@ -2902,6 +3326,19 @@ export class DomainApi extends BaseAPI {
2902
3326
  .domainControllerGetToken(tokenInputDTO, options)
2903
3327
  .then((request) => request(this.axios, this.basePath));
2904
3328
  }
3329
+ /**
3330
+ * Lists the roles of the target domain, projected to id, name and system — enough to pick roles for an invite link or a Domain Key, and nothing about what a role grants. Roles that carry the root permission are listed; only an Owner may hand one out.<br> OperationId: `DomainControllerListRoles`
3331
+ * @summary List a domain\'s roles
3332
+ * @param {string} id
3333
+ * @param {*} [options] Override http request option.
3334
+ * @throws {RequiredError}
3335
+ * @memberof DomainApi
3336
+ */
3337
+ domainControllerListRoles(id, options) {
3338
+ return DomainApiFp(this.configuration)
3339
+ .domainControllerListRoles(id, options)
3340
+ .then((request) => request(this.axios, this.basePath));
3341
+ }
2905
3342
  /**
2906
3343
  * <br> OperationId: `DomainControllerRemove`
2907
3344
  * @summary Remove
@@ -2943,7 +3380,7 @@ export class DomainApi extends BaseAPI {
2943
3380
  .then((request) => request(this.axios, this.basePath));
2944
3381
  }
2945
3382
  /**
2946
- * The domains attributed to a distributor, with the Plan their limits come from. This is the billing reconciler’s read: `POST /domain/search` deliberately does not expose `planId`. Never returns a subscription-backed domain.<br> OperationId: `DomainControllerSearchDistributorBacked`
3383
+ * The domains attributed to a distributor, with the Plan their limits come from. This is the billing reconciler’s read: it never returns a subscription-backed domain, which is what makes it a reconciler sweep rather than a domain listing.<br> OperationId: `DomainControllerSearchDistributorBacked`
2947
3384
  * @summary Search distributor-backed domains
2948
3385
  * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
2949
3386
  * @param {*} [options] Override http request option.
@@ -2971,39 +3408,1070 @@ export class DomainApi extends BaseAPI {
2971
3408
  }
2972
3409
  }
2973
3410
  /**
2974
- * MetaApi - axios parameter creator
3411
+ * FixtureHistoryApi - axios parameter creator
2975
3412
  * @export
2976
3413
  */
2977
- export const MetaApiAxiosParamCreator = function (configuration) {
3414
+ export const FixtureHistoryApiAxiosParamCreator = function (configuration) {
2978
3415
  return {
2979
3416
  /**
2980
- * <br> OperationId: `MetaGetHealth`
2981
- * @summary Get health
3417
+ * <br> OperationId: `FixtureHistoryControllerActivity`
3418
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
3419
+ * @param {string} domainId
3420
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
2982
3421
  * @param {*} [options] Override http request option.
2983
3422
  * @throws {RequiredError}
2984
3423
  */
2985
- metaGetHealth: async (options = {}) => {
2986
- const localVarPath = `/healthz`;
3424
+ fixtureHistoryControllerActivity: async (domainId, fixtureHistoryActivityInputDTO, options = {}) => {
3425
+ // verify required parameter 'domainId' is not null or undefined
3426
+ assertParamExists('fixtureHistoryControllerActivity', 'domainId', domainId);
3427
+ const localVarPath = `/fixture-history/domains/{domainId}/activity`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
2987
3428
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2988
3429
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2989
3430
  let baseOptions;
2990
3431
  if (configuration) {
2991
3432
  baseOptions = configuration.baseOptions;
2992
3433
  }
2993
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3434
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2994
3435
  const localVarHeaderParameter = {};
2995
3436
  const localVarQueryParameter = {};
3437
+ // authentication adminAuth required
3438
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3439
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2996
3440
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2997
3441
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2998
3442
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3443
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryActivityInputDTO, localVarRequestOptions, configuration);
2999
3444
  return {
3000
3445
  url: toPathString(localVarUrlObj),
3001
3446
  options: localVarRequestOptions,
3002
3447
  };
3003
3448
  },
3004
3449
  /**
3005
- * <br> OperationId: `MetaGetLiveness`
3006
- * @summary Get liveness
3450
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
3451
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
3452
+ * @param {string} domainId
3453
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
3454
+ * @param {*} [options] Override http request option.
3455
+ * @throws {RequiredError}
3456
+ */
3457
+ fixtureHistoryControllerAnalytics: async (domainId, fixtureHistoryAnalyticsInputDTO, options = {}) => {
3458
+ // verify required parameter 'domainId' is not null or undefined
3459
+ assertParamExists('fixtureHistoryControllerAnalytics', 'domainId', domainId);
3460
+ const localVarPath = `/fixture-history/domains/{domainId}/analytics`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3461
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3462
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3463
+ let baseOptions;
3464
+ if (configuration) {
3465
+ baseOptions = configuration.baseOptions;
3466
+ }
3467
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3468
+ const localVarHeaderParameter = {};
3469
+ const localVarQueryParameter = {};
3470
+ // authentication adminAuth required
3471
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3472
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3473
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3474
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3475
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3476
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryAnalyticsInputDTO, localVarRequestOptions, configuration);
3477
+ return {
3478
+ url: toPathString(localVarUrlObj),
3479
+ options: localVarRequestOptions,
3480
+ };
3481
+ },
3482
+ /**
3483
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
3484
+ * @summary What the writer can do for this domain, and the domain\'s event retention
3485
+ * @param {string} domainId
3486
+ * @param {*} [options] Override http request option.
3487
+ * @throws {RequiredError}
3488
+ */
3489
+ fixtureHistoryControllerCapabilities: async (domainId, options = {}) => {
3490
+ // verify required parameter 'domainId' is not null or undefined
3491
+ assertParamExists('fixtureHistoryControllerCapabilities', 'domainId', domainId);
3492
+ const localVarPath = `/fixture-history/domains/{domainId}/capabilities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3493
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3494
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3495
+ let baseOptions;
3496
+ if (configuration) {
3497
+ baseOptions = configuration.baseOptions;
3498
+ }
3499
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3500
+ const localVarHeaderParameter = {};
3501
+ const localVarQueryParameter = {};
3502
+ // authentication adminAuth required
3503
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3504
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3505
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3506
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3507
+ return {
3508
+ url: toPathString(localVarUrlObj),
3509
+ options: localVarRequestOptions,
3510
+ };
3511
+ },
3512
+ /**
3513
+ * <br> OperationId: `FixtureHistoryControllerDelete`
3514
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
3515
+ * @param {string} domainId
3516
+ * @param {string} fixtureDatasetId
3517
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
3518
+ * @param {*} [options] Override http request option.
3519
+ * @throws {RequiredError}
3520
+ */
3521
+ fixtureHistoryControllerDelete: async (domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options = {}) => {
3522
+ // verify required parameter 'domainId' is not null or undefined
3523
+ assertParamExists('fixtureHistoryControllerDelete', 'domainId', domainId);
3524
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3525
+ assertParamExists('fixtureHistoryControllerDelete', 'fixtureDatasetId', fixtureDatasetId);
3526
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/delete`
3527
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3528
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3529
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3530
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3531
+ let baseOptions;
3532
+ if (configuration) {
3533
+ baseOptions = configuration.baseOptions;
3534
+ }
3535
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3536
+ const localVarHeaderParameter = {};
3537
+ const localVarQueryParameter = {};
3538
+ // authentication adminAuth required
3539
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3540
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3541
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3542
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3543
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3544
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryDeleteInputDTO, localVarRequestOptions, configuration);
3545
+ return {
3546
+ url: toPathString(localVarUrlObj),
3547
+ options: localVarRequestOptions,
3548
+ };
3549
+ },
3550
+ /**
3551
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
3552
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
3553
+ * @param {string} domainId
3554
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
3555
+ * @param {*} [options] Override http request option.
3556
+ * @throws {RequiredError}
3557
+ */
3558
+ fixtureHistoryControllerEconomyReadiness: async (domainId, fixtureHistoryEconomyReadinessInputDTO, options = {}) => {
3559
+ // verify required parameter 'domainId' is not null or undefined
3560
+ assertParamExists('fixtureHistoryControllerEconomyReadiness', 'domainId', domainId);
3561
+ const localVarPath = `/fixture-history/domains/{domainId}/economy-readiness`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3562
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3563
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3564
+ let baseOptions;
3565
+ if (configuration) {
3566
+ baseOptions = configuration.baseOptions;
3567
+ }
3568
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3569
+ const localVarHeaderParameter = {};
3570
+ const localVarQueryParameter = {};
3571
+ // authentication adminAuth required
3572
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3573
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3574
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3575
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3576
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3577
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryEconomyReadinessInputDTO, localVarRequestOptions, configuration);
3578
+ return {
3579
+ url: toPathString(localVarUrlObj),
3580
+ options: localVarRequestOptions,
3581
+ };
3582
+ },
3583
+ /**
3584
+ * 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`
3585
+ * @summary Write owned, back-dated players and players-on-gameserver
3586
+ * @param {string} domainId
3587
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
3588
+ * @param {*} [options] Override http request option.
3589
+ * @throws {RequiredError}
3590
+ */
3591
+ fixtureHistoryControllerIdentities: async (domainId, fixtureHistoryIdentitiesInputDTO, options = {}) => {
3592
+ // verify required parameter 'domainId' is not null or undefined
3593
+ assertParamExists('fixtureHistoryControllerIdentities', 'domainId', domainId);
3594
+ const localVarPath = `/fixture-history/domains/{domainId}/identities`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3595
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3596
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3597
+ let baseOptions;
3598
+ if (configuration) {
3599
+ baseOptions = configuration.baseOptions;
3600
+ }
3601
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3602
+ const localVarHeaderParameter = {};
3603
+ const localVarQueryParameter = {};
3604
+ // authentication adminAuth required
3605
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3606
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3607
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3608
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3609
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3610
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryIdentitiesInputDTO, localVarRequestOptions, configuration);
3611
+ return {
3612
+ url: toPathString(localVarUrlObj),
3613
+ options: localVarRequestOptions,
3614
+ };
3615
+ },
3616
+ /**
3617
+ * <br> OperationId: `FixtureHistoryControllerInventory`
3618
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
3619
+ * @param {string} domainId
3620
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
3621
+ * @param {*} [options] Override http request option.
3622
+ * @throws {RequiredError}
3623
+ */
3624
+ fixtureHistoryControllerInventory: async (domainId, fixtureHistoryInventoryInputDTO, options = {}) => {
3625
+ // verify required parameter 'domainId' is not null or undefined
3626
+ assertParamExists('fixtureHistoryControllerInventory', 'domainId', domainId);
3627
+ const localVarPath = `/fixture-history/domains/{domainId}/inventory`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3628
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3629
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3630
+ let baseOptions;
3631
+ if (configuration) {
3632
+ baseOptions = configuration.baseOptions;
3633
+ }
3634
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3635
+ const localVarHeaderParameter = {};
3636
+ const localVarQueryParameter = {};
3637
+ // authentication adminAuth required
3638
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3639
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3640
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3641
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3642
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3643
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryInventoryInputDTO, localVarRequestOptions, configuration);
3644
+ return {
3645
+ url: toPathString(localVarUrlObj),
3646
+ options: localVarRequestOptions,
3647
+ };
3648
+ },
3649
+ /**
3650
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
3651
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
3652
+ * @param {string} domainId
3653
+ * @param {string} fixtureDatasetId
3654
+ * @param {string} [cursor]
3655
+ * @param {*} [options] Override http request option.
3656
+ * @throws {RequiredError}
3657
+ */
3658
+ fixtureHistoryControllerInventoryPage: async (domainId, fixtureDatasetId, cursor, options = {}) => {
3659
+ // verify required parameter 'domainId' is not null or undefined
3660
+ assertParamExists('fixtureHistoryControllerInventoryPage', 'domainId', domainId);
3661
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3662
+ assertParamExists('fixtureHistoryControllerInventoryPage', 'fixtureDatasetId', fixtureDatasetId);
3663
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/inventory`
3664
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3665
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3666
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3667
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3668
+ let baseOptions;
3669
+ if (configuration) {
3670
+ baseOptions = configuration.baseOptions;
3671
+ }
3672
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3673
+ const localVarHeaderParameter = {};
3674
+ const localVarQueryParameter = {};
3675
+ // authentication adminAuth required
3676
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3677
+ if (cursor !== undefined) {
3678
+ localVarQueryParameter['cursor'] = cursor;
3679
+ }
3680
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3681
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3682
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3683
+ return {
3684
+ url: toPathString(localVarUrlObj),
3685
+ options: localVarRequestOptions,
3686
+ };
3687
+ },
3688
+ /**
3689
+ * 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`
3690
+ * @summary Write owned, back-dated shop listings
3691
+ * @param {string} domainId
3692
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
3693
+ * @param {*} [options] Override http request option.
3694
+ * @throws {RequiredError}
3695
+ */
3696
+ fixtureHistoryControllerListings: async (domainId, fixtureHistoryListingsInputDTO, options = {}) => {
3697
+ // verify required parameter 'domainId' is not null or undefined
3698
+ assertParamExists('fixtureHistoryControllerListings', 'domainId', domainId);
3699
+ const localVarPath = `/fixture-history/domains/{domainId}/listings`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3700
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3701
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3702
+ let baseOptions;
3703
+ if (configuration) {
3704
+ baseOptions = configuration.baseOptions;
3705
+ }
3706
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3707
+ const localVarHeaderParameter = {};
3708
+ const localVarQueryParameter = {};
3709
+ // authentication adminAuth required
3710
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3711
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3712
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3713
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3714
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3715
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryListingsInputDTO, localVarRequestOptions, configuration);
3716
+ return {
3717
+ url: toPathString(localVarUrlObj),
3718
+ options: localVarRequestOptions,
3719
+ };
3720
+ },
3721
+ /**
3722
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
3723
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
3724
+ * @param {string} domainId
3725
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
3726
+ * @param {*} [options] Override http request option.
3727
+ * @throws {RequiredError}
3728
+ */
3729
+ fixtureHistoryControllerOrders: async (domainId, fixtureHistoryOrdersInputDTO, options = {}) => {
3730
+ // verify required parameter 'domainId' is not null or undefined
3731
+ assertParamExists('fixtureHistoryControllerOrders', 'domainId', domainId);
3732
+ const localVarPath = `/fixture-history/domains/{domainId}/orders`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3733
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3734
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3735
+ let baseOptions;
3736
+ if (configuration) {
3737
+ baseOptions = configuration.baseOptions;
3738
+ }
3739
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3740
+ const localVarHeaderParameter = {};
3741
+ const localVarQueryParameter = {};
3742
+ // authentication adminAuth required
3743
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3744
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3745
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3746
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3747
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3748
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryOrdersInputDTO, localVarRequestOptions, configuration);
3749
+ return {
3750
+ url: toPathString(localVarUrlObj),
3751
+ options: localVarRequestOptions,
3752
+ };
3753
+ },
3754
+ /**
3755
+ * <br> OperationId: `FixtureHistoryControllerSummary`
3756
+ * @summary Owned row counts per store, and unowned events naming owned players
3757
+ * @param {string} domainId
3758
+ * @param {string} fixtureDatasetId
3759
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
3760
+ * @param {*} [options] Override http request option.
3761
+ * @throws {RequiredError}
3762
+ */
3763
+ fixtureHistoryControllerSummary: async (domainId, fixtureDatasetId, since, options = {}) => {
3764
+ // verify required parameter 'domainId' is not null or undefined
3765
+ assertParamExists('fixtureHistoryControllerSummary', 'domainId', domainId);
3766
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3767
+ assertParamExists('fixtureHistoryControllerSummary', 'fixtureDatasetId', fixtureDatasetId);
3768
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/summary`
3769
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3770
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3771
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3772
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3773
+ let baseOptions;
3774
+ if (configuration) {
3775
+ baseOptions = configuration.baseOptions;
3776
+ }
3777
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3778
+ const localVarHeaderParameter = {};
3779
+ const localVarQueryParameter = {};
3780
+ // authentication adminAuth required
3781
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3782
+ if (since !== undefined) {
3783
+ for (const [key, value] of Object.entries(since)) {
3784
+ localVarQueryParameter[key] = value;
3785
+ }
3786
+ }
3787
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3788
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3789
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3790
+ return {
3791
+ url: toPathString(localVarUrlObj),
3792
+ options: localVarRequestOptions,
3793
+ };
3794
+ },
3795
+ /**
3796
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
3797
+ * @summary Set the offline terminal state of owned players-on-gameserver
3798
+ * @param {string} domainId
3799
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
3800
+ * @param {*} [options] Override http request option.
3801
+ * @throws {RequiredError}
3802
+ */
3803
+ fixtureHistoryControllerTerminal: async (domainId, fixtureHistoryTerminalInputDTO, options = {}) => {
3804
+ // verify required parameter 'domainId' is not null or undefined
3805
+ assertParamExists('fixtureHistoryControllerTerminal', 'domainId', domainId);
3806
+ const localVarPath = `/fixture-history/domains/{domainId}/terminal-state`.replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
3807
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3808
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3809
+ let baseOptions;
3810
+ if (configuration) {
3811
+ baseOptions = configuration.baseOptions;
3812
+ }
3813
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3814
+ const localVarHeaderParameter = {};
3815
+ const localVarQueryParameter = {};
3816
+ // authentication adminAuth required
3817
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3818
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3819
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3820
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3821
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3822
+ localVarRequestOptions.data = serializeDataIfNeeded(fixtureHistoryTerminalInputDTO, localVarRequestOptions, configuration);
3823
+ return {
3824
+ url: toPathString(localVarUrlObj),
3825
+ options: localVarRequestOptions,
3826
+ };
3827
+ },
3828
+ /**
3829
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
3830
+ * @summary Page through the terminal state of owned players-on-gameserver
3831
+ * @param {string} domainId
3832
+ * @param {string} fixtureDatasetId
3833
+ * @param {string} [cursor]
3834
+ * @param {*} [options] Override http request option.
3835
+ * @throws {RequiredError}
3836
+ */
3837
+ fixtureHistoryControllerTerminalState: async (domainId, fixtureDatasetId, cursor, options = {}) => {
3838
+ // verify required parameter 'domainId' is not null or undefined
3839
+ assertParamExists('fixtureHistoryControllerTerminalState', 'domainId', domainId);
3840
+ // verify required parameter 'fixtureDatasetId' is not null or undefined
3841
+ assertParamExists('fixtureHistoryControllerTerminalState', 'fixtureDatasetId', fixtureDatasetId);
3842
+ const localVarPath = `/fixture-history/domains/{domainId}/datasets/{fixtureDatasetId}/terminal-state`
3843
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)))
3844
+ .replace(`{${'fixtureDatasetId'}}`, encodeURIComponent(String(fixtureDatasetId)));
3845
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3846
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3847
+ let baseOptions;
3848
+ if (configuration) {
3849
+ baseOptions = configuration.baseOptions;
3850
+ }
3851
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3852
+ const localVarHeaderParameter = {};
3853
+ const localVarQueryParameter = {};
3854
+ // authentication adminAuth required
3855
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3856
+ if (cursor !== undefined) {
3857
+ localVarQueryParameter['cursor'] = cursor;
3858
+ }
3859
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3860
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3861
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3862
+ return {
3863
+ url: toPathString(localVarUrlObj),
3864
+ options: localVarRequestOptions,
3865
+ };
3866
+ },
3867
+ };
3868
+ };
3869
+ /**
3870
+ * FixtureHistoryApi - functional programming interface
3871
+ * @export
3872
+ */
3873
+ export const FixtureHistoryApiFp = function (configuration) {
3874
+ const localVarAxiosParamCreator = FixtureHistoryApiAxiosParamCreator(configuration);
3875
+ return {
3876
+ /**
3877
+ * <br> OperationId: `FixtureHistoryControllerActivity`
3878
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
3879
+ * @param {string} domainId
3880
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
3881
+ * @param {*} [options] Override http request option.
3882
+ * @throws {RequiredError}
3883
+ */
3884
+ async fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
3885
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options);
3886
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3887
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerActivity']?.[localVarOperationServerIndex]?.url;
3888
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3889
+ },
3890
+ /**
3891
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
3892
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
3893
+ * @param {string} domainId
3894
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
3895
+ * @param {*} [options] Override http request option.
3896
+ * @throws {RequiredError}
3897
+ */
3898
+ async fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
3899
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options);
3900
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3901
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerAnalytics']?.[localVarOperationServerIndex]?.url;
3902
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3903
+ },
3904
+ /**
3905
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
3906
+ * @summary What the writer can do for this domain, and the domain\'s event retention
3907
+ * @param {string} domainId
3908
+ * @param {*} [options] Override http request option.
3909
+ * @throws {RequiredError}
3910
+ */
3911
+ async fixtureHistoryControllerCapabilities(domainId, options) {
3912
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerCapabilities(domainId, options);
3913
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3914
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerCapabilities']?.[localVarOperationServerIndex]
3915
+ ?.url;
3916
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3917
+ },
3918
+ /**
3919
+ * <br> OperationId: `FixtureHistoryControllerDelete`
3920
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
3921
+ * @param {string} domainId
3922
+ * @param {string} fixtureDatasetId
3923
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
3924
+ * @param {*} [options] Override http request option.
3925
+ * @throws {RequiredError}
3926
+ */
3927
+ async fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
3928
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options);
3929
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3930
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerDelete']?.[localVarOperationServerIndex]?.url;
3931
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3932
+ },
3933
+ /**
3934
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
3935
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
3936
+ * @param {string} domainId
3937
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
3938
+ * @param {*} [options] Override http request option.
3939
+ * @throws {RequiredError}
3940
+ */
3941
+ async fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
3942
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options);
3943
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3944
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerEconomyReadiness']?.[localVarOperationServerIndex]
3945
+ ?.url;
3946
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3947
+ },
3948
+ /**
3949
+ * 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`
3950
+ * @summary Write owned, back-dated players and players-on-gameserver
3951
+ * @param {string} domainId
3952
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
3953
+ * @param {*} [options] Override http request option.
3954
+ * @throws {RequiredError}
3955
+ */
3956
+ async fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
3957
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options);
3958
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3959
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerIdentities']?.[localVarOperationServerIndex]?.url;
3960
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3961
+ },
3962
+ /**
3963
+ * <br> OperationId: `FixtureHistoryControllerInventory`
3964
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
3965
+ * @param {string} domainId
3966
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
3967
+ * @param {*} [options] Override http request option.
3968
+ * @throws {RequiredError}
3969
+ */
3970
+ async fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
3971
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options);
3972
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3973
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventory']?.[localVarOperationServerIndex]?.url;
3974
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3975
+ },
3976
+ /**
3977
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
3978
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
3979
+ * @param {string} domainId
3980
+ * @param {string} fixtureDatasetId
3981
+ * @param {string} [cursor]
3982
+ * @param {*} [options] Override http request option.
3983
+ * @throws {RequiredError}
3984
+ */
3985
+ async fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
3986
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options);
3987
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3988
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerInventoryPage']?.[localVarOperationServerIndex]
3989
+ ?.url;
3990
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3991
+ },
3992
+ /**
3993
+ * 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`
3994
+ * @summary Write owned, back-dated shop listings
3995
+ * @param {string} domainId
3996
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
3997
+ * @param {*} [options] Override http request option.
3998
+ * @throws {RequiredError}
3999
+ */
4000
+ async fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4001
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options);
4002
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4003
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerListings']?.[localVarOperationServerIndex]?.url;
4004
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4005
+ },
4006
+ /**
4007
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4008
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4009
+ * @param {string} domainId
4010
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4011
+ * @param {*} [options] Override http request option.
4012
+ * @throws {RequiredError}
4013
+ */
4014
+ async fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4015
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options);
4016
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4017
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerOrders']?.[localVarOperationServerIndex]?.url;
4018
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4019
+ },
4020
+ /**
4021
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4022
+ * @summary Owned row counts per store, and unowned events naming owned players
4023
+ * @param {string} domainId
4024
+ * @param {string} fixtureDatasetId
4025
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4026
+ * @param {*} [options] Override http request option.
4027
+ * @throws {RequiredError}
4028
+ */
4029
+ async fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4030
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options);
4031
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4032
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerSummary']?.[localVarOperationServerIndex]?.url;
4033
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4034
+ },
4035
+ /**
4036
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4037
+ * @summary Set the offline terminal state of owned players-on-gameserver
4038
+ * @param {string} domainId
4039
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4040
+ * @param {*} [options] Override http request option.
4041
+ * @throws {RequiredError}
4042
+ */
4043
+ async fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4044
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options);
4045
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4046
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminal']?.[localVarOperationServerIndex]?.url;
4047
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4048
+ },
4049
+ /**
4050
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4051
+ * @summary Page through the terminal state of owned players-on-gameserver
4052
+ * @param {string} domainId
4053
+ * @param {string} fixtureDatasetId
4054
+ * @param {string} [cursor]
4055
+ * @param {*} [options] Override http request option.
4056
+ * @throws {RequiredError}
4057
+ */
4058
+ async fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4059
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options);
4060
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4061
+ const localVarOperationServerBasePath = operationServerMap['FixtureHistoryApi.fixtureHistoryControllerTerminalState']?.[localVarOperationServerIndex]
4062
+ ?.url;
4063
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4064
+ },
4065
+ };
4066
+ };
4067
+ /**
4068
+ * FixtureHistoryApi - factory interface
4069
+ * @export
4070
+ */
4071
+ export const FixtureHistoryApiFactory = function (configuration, basePath, axios) {
4072
+ const localVarFp = FixtureHistoryApiFp(configuration);
4073
+ return {
4074
+ /**
4075
+ * <br> OperationId: `FixtureHistoryControllerActivity`
4076
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
4077
+ * @param {string} domainId
4078
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
4079
+ * @param {*} [options] Override http request option.
4080
+ * @throws {RequiredError}
4081
+ */
4082
+ fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
4083
+ return localVarFp
4084
+ .fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
4085
+ .then((request) => request(axios, basePath));
4086
+ },
4087
+ /**
4088
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
4089
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
4090
+ * @param {string} domainId
4091
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
4092
+ * @param {*} [options] Override http request option.
4093
+ * @throws {RequiredError}
4094
+ */
4095
+ fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
4096
+ return localVarFp
4097
+ .fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
4098
+ .then((request) => request(axios, basePath));
4099
+ },
4100
+ /**
4101
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
4102
+ * @summary What the writer can do for this domain, and the domain\'s event retention
4103
+ * @param {string} domainId
4104
+ * @param {*} [options] Override http request option.
4105
+ * @throws {RequiredError}
4106
+ */
4107
+ fixtureHistoryControllerCapabilities(domainId, options) {
4108
+ return localVarFp
4109
+ .fixtureHistoryControllerCapabilities(domainId, options)
4110
+ .then((request) => request(axios, basePath));
4111
+ },
4112
+ /**
4113
+ * <br> OperationId: `FixtureHistoryControllerDelete`
4114
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
4115
+ * @param {string} domainId
4116
+ * @param {string} fixtureDatasetId
4117
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
4118
+ * @param {*} [options] Override http request option.
4119
+ * @throws {RequiredError}
4120
+ */
4121
+ fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
4122
+ return localVarFp
4123
+ .fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
4124
+ .then((request) => request(axios, basePath));
4125
+ },
4126
+ /**
4127
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4128
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4129
+ * @param {string} domainId
4130
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4131
+ * @param {*} [options] Override http request option.
4132
+ * @throws {RequiredError}
4133
+ */
4134
+ fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4135
+ return localVarFp
4136
+ .fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
4137
+ .then((request) => request(axios, basePath));
4138
+ },
4139
+ /**
4140
+ * 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`
4141
+ * @summary Write owned, back-dated players and players-on-gameserver
4142
+ * @param {string} domainId
4143
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4144
+ * @param {*} [options] Override http request option.
4145
+ * @throws {RequiredError}
4146
+ */
4147
+ fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4148
+ return localVarFp
4149
+ .fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
4150
+ .then((request) => request(axios, basePath));
4151
+ },
4152
+ /**
4153
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4154
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4155
+ * @param {string} domainId
4156
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4157
+ * @param {*} [options] Override http request option.
4158
+ * @throws {RequiredError}
4159
+ */
4160
+ fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4161
+ return localVarFp
4162
+ .fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
4163
+ .then((request) => request(axios, basePath));
4164
+ },
4165
+ /**
4166
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4167
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4168
+ * @param {string} domainId
4169
+ * @param {string} fixtureDatasetId
4170
+ * @param {string} [cursor]
4171
+ * @param {*} [options] Override http request option.
4172
+ * @throws {RequiredError}
4173
+ */
4174
+ fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4175
+ return localVarFp
4176
+ .fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
4177
+ .then((request) => request(axios, basePath));
4178
+ },
4179
+ /**
4180
+ * 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`
4181
+ * @summary Write owned, back-dated shop listings
4182
+ * @param {string} domainId
4183
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4184
+ * @param {*} [options] Override http request option.
4185
+ * @throws {RequiredError}
4186
+ */
4187
+ fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4188
+ return localVarFp
4189
+ .fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
4190
+ .then((request) => request(axios, basePath));
4191
+ },
4192
+ /**
4193
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4194
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4195
+ * @param {string} domainId
4196
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4197
+ * @param {*} [options] Override http request option.
4198
+ * @throws {RequiredError}
4199
+ */
4200
+ fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4201
+ return localVarFp
4202
+ .fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
4203
+ .then((request) => request(axios, basePath));
4204
+ },
4205
+ /**
4206
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4207
+ * @summary Owned row counts per store, and unowned events naming owned players
4208
+ * @param {string} domainId
4209
+ * @param {string} fixtureDatasetId
4210
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4211
+ * @param {*} [options] Override http request option.
4212
+ * @throws {RequiredError}
4213
+ */
4214
+ fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4215
+ return localVarFp
4216
+ .fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
4217
+ .then((request) => request(axios, basePath));
4218
+ },
4219
+ /**
4220
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4221
+ * @summary Set the offline terminal state of owned players-on-gameserver
4222
+ * @param {string} domainId
4223
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4224
+ * @param {*} [options] Override http request option.
4225
+ * @throws {RequiredError}
4226
+ */
4227
+ fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4228
+ return localVarFp
4229
+ .fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
4230
+ .then((request) => request(axios, basePath));
4231
+ },
4232
+ /**
4233
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4234
+ * @summary Page through the terminal state of owned players-on-gameserver
4235
+ * @param {string} domainId
4236
+ * @param {string} fixtureDatasetId
4237
+ * @param {string} [cursor]
4238
+ * @param {*} [options] Override http request option.
4239
+ * @throws {RequiredError}
4240
+ */
4241
+ fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4242
+ return localVarFp
4243
+ .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4244
+ .then((request) => request(axios, basePath));
4245
+ },
4246
+ };
4247
+ };
4248
+ /**
4249
+ * FixtureHistoryApi - object-oriented interface
4250
+ * @export
4251
+ * @class FixtureHistoryApi
4252
+ * @extends {BaseAPI}
4253
+ */
4254
+ export class FixtureHistoryApi extends BaseAPI {
4255
+ /**
4256
+ * <br> OperationId: `FixtureHistoryControllerActivity`
4257
+ * @summary Write owned, back-dated events and location samples into Postgres (idempotent)
4258
+ * @param {string} domainId
4259
+ * @param {FixtureHistoryActivityInputDTO} [fixtureHistoryActivityInputDTO] FixtureHistoryActivityInputDTO
4260
+ * @param {*} [options] Override http request option.
4261
+ * @throws {RequiredError}
4262
+ * @memberof FixtureHistoryApi
4263
+ */
4264
+ fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options) {
4265
+ return FixtureHistoryApiFp(this.configuration)
4266
+ .fixtureHistoryControllerActivity(domainId, fixtureHistoryActivityInputDTO, options)
4267
+ .then((request) => request(this.axios, this.basePath));
4268
+ }
4269
+ /**
4270
+ * <br> OperationId: `FixtureHistoryControllerAnalytics`
4271
+ * @summary Write owned, back-dated events into the analytics store (inserts only missing ids)
4272
+ * @param {string} domainId
4273
+ * @param {FixtureHistoryAnalyticsInputDTO} [fixtureHistoryAnalyticsInputDTO] FixtureHistoryAnalyticsInputDTO
4274
+ * @param {*} [options] Override http request option.
4275
+ * @throws {RequiredError}
4276
+ * @memberof FixtureHistoryApi
4277
+ */
4278
+ fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options) {
4279
+ return FixtureHistoryApiFp(this.configuration)
4280
+ .fixtureHistoryControllerAnalytics(domainId, fixtureHistoryAnalyticsInputDTO, options)
4281
+ .then((request) => request(this.axios, this.basePath));
4282
+ }
4283
+ /**
4284
+ * <br> OperationId: `FixtureHistoryControllerCapabilities`
4285
+ * @summary What the writer can do for this domain, and the domain\'s event retention
4286
+ * @param {string} domainId
4287
+ * @param {*} [options] Override http request option.
4288
+ * @throws {RequiredError}
4289
+ * @memberof FixtureHistoryApi
4290
+ */
4291
+ fixtureHistoryControllerCapabilities(domainId, options) {
4292
+ return FixtureHistoryApiFp(this.configuration)
4293
+ .fixtureHistoryControllerCapabilities(domainId, options)
4294
+ .then((request) => request(this.axios, this.basePath));
4295
+ }
4296
+ /**
4297
+ * <br> OperationId: `FixtureHistoryControllerDelete`
4298
+ * @summary Delete a bounded batch of this dataset\'s rows from one store; loop until remaining is 0
4299
+ * @param {string} domainId
4300
+ * @param {string} fixtureDatasetId
4301
+ * @param {FixtureHistoryDeleteInputDTO} [fixtureHistoryDeleteInputDTO] FixtureHistoryDeleteInputDTO
4302
+ * @param {*} [options] Override http request option.
4303
+ * @throws {RequiredError}
4304
+ * @memberof FixtureHistoryApi
4305
+ */
4306
+ fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options) {
4307
+ return FixtureHistoryApiFp(this.configuration)
4308
+ .fixtureHistoryControllerDelete(domainId, fixtureDatasetId, fixtureHistoryDeleteInputDTO, options)
4309
+ .then((request) => request(this.axios, this.basePath));
4310
+ }
4311
+ /**
4312
+ * <br> OperationId: `FixtureHistoryControllerEconomyReadiness`
4313
+ * @summary Per gameserver: whether economyEnabled is on (read-only; never written)
4314
+ * @param {string} domainId
4315
+ * @param {FixtureHistoryEconomyReadinessInputDTO} [fixtureHistoryEconomyReadinessInputDTO] FixtureHistoryEconomyReadinessInputDTO
4316
+ * @param {*} [options] Override http request option.
4317
+ * @throws {RequiredError}
4318
+ * @memberof FixtureHistoryApi
4319
+ */
4320
+ fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options) {
4321
+ return FixtureHistoryApiFp(this.configuration)
4322
+ .fixtureHistoryControllerEconomyReadiness(domainId, fixtureHistoryEconomyReadinessInputDTO, options)
4323
+ .then((request) => request(this.axios, this.basePath));
4324
+ }
4325
+ /**
4326
+ * 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`
4327
+ * @summary Write owned, back-dated players and players-on-gameserver
4328
+ * @param {string} domainId
4329
+ * @param {FixtureHistoryIdentitiesInputDTO} [fixtureHistoryIdentitiesInputDTO] FixtureHistoryIdentitiesInputDTO
4330
+ * @param {*} [options] Override http request option.
4331
+ * @throws {RequiredError}
4332
+ * @memberof FixtureHistoryApi
4333
+ */
4334
+ fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options) {
4335
+ return FixtureHistoryApiFp(this.configuration)
4336
+ .fixtureHistoryControllerIdentities(domainId, fixtureHistoryIdentitiesInputDTO, options)
4337
+ .then((request) => request(this.axios, this.basePath));
4338
+ }
4339
+ /**
4340
+ * <br> OperationId: `FixtureHistoryControllerInventory`
4341
+ * @summary Write the terminal inventory baseline of owned players-on-gameserver (idempotent)
4342
+ * @param {string} domainId
4343
+ * @param {FixtureHistoryInventoryInputDTO} [fixtureHistoryInventoryInputDTO] FixtureHistoryInventoryInputDTO
4344
+ * @param {*} [options] Override http request option.
4345
+ * @throws {RequiredError}
4346
+ * @memberof FixtureHistoryApi
4347
+ */
4348
+ fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options) {
4349
+ return FixtureHistoryApiFp(this.configuration)
4350
+ .fixtureHistoryControllerInventory(domainId, fixtureHistoryInventoryInputDTO, options)
4351
+ .then((request) => request(this.axios, this.basePath));
4352
+ }
4353
+ /**
4354
+ * <br> OperationId: `FixtureHistoryControllerInventoryPage`
4355
+ * @summary Page through the owned inventory baselines, by player-on-gameserver
4356
+ * @param {string} domainId
4357
+ * @param {string} fixtureDatasetId
4358
+ * @param {string} [cursor]
4359
+ * @param {*} [options] Override http request option.
4360
+ * @throws {RequiredError}
4361
+ * @memberof FixtureHistoryApi
4362
+ */
4363
+ fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options) {
4364
+ return FixtureHistoryApiFp(this.configuration)
4365
+ .fixtureHistoryControllerInventoryPage(domainId, fixtureDatasetId, cursor, options)
4366
+ .then((request) => request(this.axios, this.basePath));
4367
+ }
4368
+ /**
4369
+ * 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`
4370
+ * @summary Write owned, back-dated shop listings
4371
+ * @param {string} domainId
4372
+ * @param {FixtureHistoryListingsInputDTO} [fixtureHistoryListingsInputDTO] FixtureHistoryListingsInputDTO
4373
+ * @param {*} [options] Override http request option.
4374
+ * @throws {RequiredError}
4375
+ * @memberof FixtureHistoryApi
4376
+ */
4377
+ fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options) {
4378
+ return FixtureHistoryApiFp(this.configuration)
4379
+ .fixtureHistoryControllerListings(domainId, fixtureHistoryListingsInputDTO, options)
4380
+ .then((request) => request(this.axios, this.basePath));
4381
+ }
4382
+ /**
4383
+ * Never charges, refunds, delivers or runs a shop action: an order is written as a settled row.<br> OperationId: `FixtureHistoryControllerOrders`
4384
+ * @summary Write owned, settled (COMPLETED or CANCELED) historical orders (idempotent)
4385
+ * @param {string} domainId
4386
+ * @param {FixtureHistoryOrdersInputDTO} [fixtureHistoryOrdersInputDTO] FixtureHistoryOrdersInputDTO
4387
+ * @param {*} [options] Override http request option.
4388
+ * @throws {RequiredError}
4389
+ * @memberof FixtureHistoryApi
4390
+ */
4391
+ fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options) {
4392
+ return FixtureHistoryApiFp(this.configuration)
4393
+ .fixtureHistoryControllerOrders(domainId, fixtureHistoryOrdersInputDTO, options)
4394
+ .then((request) => request(this.axios, this.basePath));
4395
+ }
4396
+ /**
4397
+ * <br> OperationId: `FixtureHistoryControllerSummary`
4398
+ * @summary Owned row counts per store, and unowned events naming owned players
4399
+ * @param {string} domainId
4400
+ * @param {string} fixtureDatasetId
4401
+ * @param {FixtureHistoryControllerSummarySinceParameter} [since]
4402
+ * @param {*} [options] Override http request option.
4403
+ * @throws {RequiredError}
4404
+ * @memberof FixtureHistoryApi
4405
+ */
4406
+ fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options) {
4407
+ return FixtureHistoryApiFp(this.configuration)
4408
+ .fixtureHistoryControllerSummary(domainId, fixtureDatasetId, since, options)
4409
+ .then((request) => request(this.axios, this.basePath));
4410
+ }
4411
+ /**
4412
+ * <br> OperationId: `FixtureHistoryControllerTerminal`
4413
+ * @summary Set the offline terminal state of owned players-on-gameserver
4414
+ * @param {string} domainId
4415
+ * @param {FixtureHistoryTerminalInputDTO} [fixtureHistoryTerminalInputDTO] FixtureHistoryTerminalInputDTO
4416
+ * @param {*} [options] Override http request option.
4417
+ * @throws {RequiredError}
4418
+ * @memberof FixtureHistoryApi
4419
+ */
4420
+ fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options) {
4421
+ return FixtureHistoryApiFp(this.configuration)
4422
+ .fixtureHistoryControllerTerminal(domainId, fixtureHistoryTerminalInputDTO, options)
4423
+ .then((request) => request(this.axios, this.basePath));
4424
+ }
4425
+ /**
4426
+ * <br> OperationId: `FixtureHistoryControllerTerminalState`
4427
+ * @summary Page through the terminal state of owned players-on-gameserver
4428
+ * @param {string} domainId
4429
+ * @param {string} fixtureDatasetId
4430
+ * @param {string} [cursor]
4431
+ * @param {*} [options] Override http request option.
4432
+ * @throws {RequiredError}
4433
+ * @memberof FixtureHistoryApi
4434
+ */
4435
+ fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options) {
4436
+ return FixtureHistoryApiFp(this.configuration)
4437
+ .fixtureHistoryControllerTerminalState(domainId, fixtureDatasetId, cursor, options)
4438
+ .then((request) => request(this.axios, this.basePath));
4439
+ }
4440
+ }
4441
+ /**
4442
+ * MetaApi - axios parameter creator
4443
+ * @export
4444
+ */
4445
+ export const MetaApiAxiosParamCreator = function (configuration) {
4446
+ return {
4447
+ /**
4448
+ * <br> OperationId: `MetaGetHealth`
4449
+ * @summary Get health
4450
+ * @param {*} [options] Override http request option.
4451
+ * @throws {RequiredError}
4452
+ */
4453
+ metaGetHealth: async (options = {}) => {
4454
+ const localVarPath = `/healthz`;
4455
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4456
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4457
+ let baseOptions;
4458
+ if (configuration) {
4459
+ baseOptions = configuration.baseOptions;
4460
+ }
4461
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4462
+ const localVarHeaderParameter = {};
4463
+ const localVarQueryParameter = {};
4464
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4465
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4466
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4467
+ return {
4468
+ url: toPathString(localVarUrlObj),
4469
+ options: localVarRequestOptions,
4470
+ };
4471
+ },
4472
+ /**
4473
+ * <br> OperationId: `MetaGetLiveness`
4474
+ * @summary Get liveness
3007
4475
  * @param {*} [options] Override http request option.
3008
4476
  * @throws {RequiredError}
3009
4477
  */
@@ -3027,38 +4495,882 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3027
4495
  };
3028
4496
  },
3029
4497
  /**
3030
- * <br> OperationId: `MetaGetMetrics`
3031
- * @summary Get metrics
4498
+ * <br> OperationId: `MetaGetOpenApi`
4499
+ * @summary Get open api
4500
+ * @param {*} [options] Override http request option.
4501
+ * @throws {RequiredError}
4502
+ */
4503
+ metaGetOpenApi: async (options = {}) => {
4504
+ const localVarPath = `/openapi.json`;
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: `MetaGetOpenApiHtml`
4524
+ * @summary Get open api html
4525
+ * @param {*} [options] Override http request option.
4526
+ * @throws {RequiredError}
4527
+ */
4528
+ metaGetOpenApiHtml: async (options = {}) => {
4529
+ const localVarPath = `/api.html`;
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: `MetaGetReadiness`
4549
+ * @summary Get readiness
4550
+ * @param {*} [options] Override http request option.
4551
+ * @throws {RequiredError}
4552
+ */
4553
+ metaGetReadiness: async (options = {}) => {
4554
+ const localVarPath = `/readyz`;
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: `MetaGetRoot`
4574
+ * @summary Get root
4575
+ * @param {*} [options] Override http request option.
4576
+ * @throws {RequiredError}
4577
+ */
4578
+ metaGetRoot: async (options = {}) => {
4579
+ const localVarPath = `/`;
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
+ };
4599
+ /**
4600
+ * MetaApi - functional programming interface
4601
+ * @export
4602
+ */
4603
+ export const MetaApiFp = function (configuration) {
4604
+ const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration);
4605
+ return {
4606
+ /**
4607
+ * <br> OperationId: `MetaGetHealth`
4608
+ * @summary Get health
4609
+ * @param {*} [options] Override http request option.
4610
+ * @throws {RequiredError}
4611
+ */
4612
+ async metaGetHealth(options) {
4613
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetHealth(options);
4614
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4615
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetHealth']?.[localVarOperationServerIndex]?.url;
4616
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4617
+ },
4618
+ /**
4619
+ * <br> OperationId: `MetaGetLiveness`
4620
+ * @summary Get liveness
4621
+ * @param {*} [options] Override http request option.
4622
+ * @throws {RequiredError}
4623
+ */
4624
+ async metaGetLiveness(options) {
4625
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetLiveness(options);
4626
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4627
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
4628
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4629
+ },
4630
+ /**
4631
+ * <br> OperationId: `MetaGetOpenApi`
4632
+ * @summary Get open api
4633
+ * @param {*} [options] Override http request option.
4634
+ * @throws {RequiredError}
4635
+ */
4636
+ async metaGetOpenApi(options) {
4637
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options);
4638
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4639
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[localVarOperationServerIndex]?.url;
4640
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4641
+ },
4642
+ /**
4643
+ * <br> OperationId: `MetaGetOpenApiHtml`
4644
+ * @summary Get open api html
4645
+ * @param {*} [options] Override http request option.
4646
+ * @throws {RequiredError}
4647
+ */
4648
+ async metaGetOpenApiHtml(options) {
4649
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApiHtml(options);
4650
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4651
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApiHtml']?.[localVarOperationServerIndex]?.url;
4652
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4653
+ },
4654
+ /**
4655
+ * <br> OperationId: `MetaGetReadiness`
4656
+ * @summary Get readiness
4657
+ * @param {*} [options] Override http request option.
4658
+ * @throws {RequiredError}
4659
+ */
4660
+ async metaGetReadiness(options) {
4661
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetReadiness(options);
4662
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4663
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetReadiness']?.[localVarOperationServerIndex]?.url;
4664
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4665
+ },
4666
+ /**
4667
+ * <br> OperationId: `MetaGetRoot`
4668
+ * @summary Get root
4669
+ * @param {*} [options] Override http request option.
4670
+ * @throws {RequiredError}
4671
+ */
4672
+ async metaGetRoot(options) {
4673
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetRoot(options);
4674
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4675
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetRoot']?.[localVarOperationServerIndex]?.url;
4676
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4677
+ },
4678
+ };
4679
+ };
4680
+ /**
4681
+ * MetaApi - factory interface
4682
+ * @export
4683
+ */
4684
+ export const MetaApiFactory = function (configuration, basePath, axios) {
4685
+ const localVarFp = MetaApiFp(configuration);
4686
+ return {
4687
+ /**
4688
+ * <br> OperationId: `MetaGetHealth`
4689
+ * @summary Get health
4690
+ * @param {*} [options] Override http request option.
4691
+ * @throws {RequiredError}
4692
+ */
4693
+ metaGetHealth(options) {
4694
+ return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath));
4695
+ },
4696
+ /**
4697
+ * <br> OperationId: `MetaGetLiveness`
4698
+ * @summary Get liveness
4699
+ * @param {*} [options] Override http request option.
4700
+ * @throws {RequiredError}
4701
+ */
4702
+ metaGetLiveness(options) {
4703
+ return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
4704
+ },
4705
+ /**
4706
+ * <br> OperationId: `MetaGetOpenApi`
4707
+ * @summary Get open api
4708
+ * @param {*} [options] Override http request option.
4709
+ * @throws {RequiredError}
4710
+ */
4711
+ metaGetOpenApi(options) {
4712
+ return localVarFp.metaGetOpenApi(options).then((request) => request(axios, basePath));
4713
+ },
4714
+ /**
4715
+ * <br> OperationId: `MetaGetOpenApiHtml`
4716
+ * @summary Get open api html
4717
+ * @param {*} [options] Override http request option.
4718
+ * @throws {RequiredError}
4719
+ */
4720
+ metaGetOpenApiHtml(options) {
4721
+ return localVarFp.metaGetOpenApiHtml(options).then((request) => request(axios, basePath));
4722
+ },
4723
+ /**
4724
+ * <br> OperationId: `MetaGetReadiness`
4725
+ * @summary Get readiness
4726
+ * @param {*} [options] Override http request option.
4727
+ * @throws {RequiredError}
4728
+ */
4729
+ metaGetReadiness(options) {
4730
+ return localVarFp.metaGetReadiness(options).then((request) => request(axios, basePath));
4731
+ },
4732
+ /**
4733
+ * <br> OperationId: `MetaGetRoot`
4734
+ * @summary Get root
4735
+ * @param {*} [options] Override http request option.
4736
+ * @throws {RequiredError}
4737
+ */
4738
+ metaGetRoot(options) {
4739
+ return localVarFp.metaGetRoot(options).then((request) => request(axios, basePath));
4740
+ },
4741
+ };
4742
+ };
4743
+ /**
4744
+ * MetaApi - object-oriented interface
4745
+ * @export
4746
+ * @class MetaApi
4747
+ * @extends {BaseAPI}
4748
+ */
4749
+ export class MetaApi extends BaseAPI {
4750
+ /**
4751
+ * <br> OperationId: `MetaGetHealth`
4752
+ * @summary Get health
4753
+ * @param {*} [options] Override http request option.
4754
+ * @throws {RequiredError}
4755
+ * @memberof MetaApi
4756
+ */
4757
+ metaGetHealth(options) {
4758
+ return MetaApiFp(this.configuration)
4759
+ .metaGetHealth(options)
4760
+ .then((request) => request(this.axios, this.basePath));
4761
+ }
4762
+ /**
4763
+ * <br> OperationId: `MetaGetLiveness`
4764
+ * @summary Get liveness
4765
+ * @param {*} [options] Override http request option.
4766
+ * @throws {RequiredError}
4767
+ * @memberof MetaApi
4768
+ */
4769
+ metaGetLiveness(options) {
4770
+ return MetaApiFp(this.configuration)
4771
+ .metaGetLiveness(options)
4772
+ .then((request) => request(this.axios, this.basePath));
4773
+ }
4774
+ /**
4775
+ * <br> OperationId: `MetaGetOpenApi`
4776
+ * @summary Get open api
4777
+ * @param {*} [options] Override http request option.
4778
+ * @throws {RequiredError}
4779
+ * @memberof MetaApi
4780
+ */
4781
+ metaGetOpenApi(options) {
4782
+ return MetaApiFp(this.configuration)
4783
+ .metaGetOpenApi(options)
4784
+ .then((request) => request(this.axios, this.basePath));
4785
+ }
4786
+ /**
4787
+ * <br> OperationId: `MetaGetOpenApiHtml`
4788
+ * @summary Get open api html
4789
+ * @param {*} [options] Override http request option.
4790
+ * @throws {RequiredError}
4791
+ * @memberof MetaApi
4792
+ */
4793
+ metaGetOpenApiHtml(options) {
4794
+ return MetaApiFp(this.configuration)
4795
+ .metaGetOpenApiHtml(options)
4796
+ .then((request) => request(this.axios, this.basePath));
4797
+ }
4798
+ /**
4799
+ * <br> OperationId: `MetaGetReadiness`
4800
+ * @summary Get readiness
4801
+ * @param {*} [options] Override http request option.
4802
+ * @throws {RequiredError}
4803
+ * @memberof MetaApi
4804
+ */
4805
+ metaGetReadiness(options) {
4806
+ return MetaApiFp(this.configuration)
4807
+ .metaGetReadiness(options)
4808
+ .then((request) => request(this.axios, this.basePath));
4809
+ }
4810
+ /**
4811
+ * <br> OperationId: `MetaGetRoot`
4812
+ * @summary Get root
4813
+ * @param {*} [options] Override http request option.
4814
+ * @throws {RequiredError}
4815
+ * @memberof MetaApi
4816
+ */
4817
+ metaGetRoot(options) {
4818
+ return MetaApiFp(this.configuration)
4819
+ .metaGetRoot(options)
4820
+ .then((request) => request(this.axios, this.basePath));
4821
+ }
4822
+ }
4823
+ /**
4824
+ * PlatformStatsApi - axios parameter creator
4825
+ * @export
4826
+ */
4827
+ export const PlatformStatsApiAxiosParamCreator = function (configuration) {
4828
+ return {
4829
+ /**
4830
+ * Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
4831
+ * @summary Platform-wide Domain statistics
4832
+ * @param {number} [weeks]
4833
+ * @param {*} [options] Override http request option.
4834
+ * @throws {RequiredError}
4835
+ */
4836
+ platformStatsControllerDomains: async (weeks, options = {}) => {
4837
+ const localVarPath = `/staff/stats/domains`;
4838
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4839
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4840
+ let baseOptions;
4841
+ if (configuration) {
4842
+ baseOptions = configuration.baseOptions;
4843
+ }
4844
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4845
+ const localVarHeaderParameter = {};
4846
+ const localVarQueryParameter = {};
4847
+ // authentication staffSession required
4848
+ // authentication adminAuth required
4849
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
4850
+ if (weeks !== undefined) {
4851
+ localVarQueryParameter['weeks'] = weeks;
4852
+ }
4853
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4854
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4855
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4856
+ return {
4857
+ url: toPathString(localVarUrlObj),
4858
+ options: localVarRequestOptions,
4859
+ };
4860
+ },
4861
+ };
4862
+ };
4863
+ /**
4864
+ * PlatformStatsApi - functional programming interface
4865
+ * @export
4866
+ */
4867
+ export const PlatformStatsApiFp = function (configuration) {
4868
+ const localVarAxiosParamCreator = PlatformStatsApiAxiosParamCreator(configuration);
4869
+ return {
4870
+ /**
4871
+ * Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
4872
+ * @summary Platform-wide Domain statistics
4873
+ * @param {number} [weeks]
4874
+ * @param {*} [options] Override http request option.
4875
+ * @throws {RequiredError}
4876
+ */
4877
+ async platformStatsControllerDomains(weeks, options) {
4878
+ const localVarAxiosArgs = await localVarAxiosParamCreator.platformStatsControllerDomains(weeks, options);
4879
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4880
+ const localVarOperationServerBasePath = operationServerMap['PlatformStatsApi.platformStatsControllerDomains']?.[localVarOperationServerIndex]?.url;
4881
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4882
+ },
4883
+ };
4884
+ };
4885
+ /**
4886
+ * PlatformStatsApi - factory interface
4887
+ * @export
4888
+ */
4889
+ export const PlatformStatsApiFactory = function (configuration, basePath, axios) {
4890
+ const localVarFp = PlatformStatsApiFp(configuration);
4891
+ return {
4892
+ /**
4893
+ * Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
4894
+ * @summary Platform-wide Domain statistics
4895
+ * @param {number} [weeks]
4896
+ * @param {*} [options] Override http request option.
4897
+ * @throws {RequiredError}
4898
+ */
4899
+ platformStatsControllerDomains(weeks, options) {
4900
+ return localVarFp.platformStatsControllerDomains(weeks, options).then((request) => request(axios, basePath));
4901
+ },
4902
+ };
4903
+ };
4904
+ /**
4905
+ * PlatformStatsApi - object-oriented interface
4906
+ * @export
4907
+ * @class PlatformStatsApi
4908
+ * @extends {BaseAPI}
4909
+ */
4910
+ export class PlatformStatsApi extends BaseAPI {
4911
+ /**
4912
+ * Domains by state, by ADR 0024 backing, per Distributor, and created per ISO week. Weekly buckets start Monday 00:00 UTC and the window ends with the current, partial week. Cheap aggregates only: there is no game-server and no player count here.<br> OperationId: `PlatformStatsControllerDomains`
4913
+ * @summary Platform-wide Domain statistics
4914
+ * @param {number} [weeks]
4915
+ * @param {*} [options] Override http request option.
4916
+ * @throws {RequiredError}
4917
+ * @memberof PlatformStatsApi
4918
+ */
4919
+ platformStatsControllerDomains(weeks, options) {
4920
+ return PlatformStatsApiFp(this.configuration)
4921
+ .platformStatsControllerDomains(weeks, options)
4922
+ .then((request) => request(this.axios, this.basePath));
4923
+ }
4924
+ }
4925
+ /**
4926
+ * StaffAuthApi - axios parameter creator
4927
+ * @export
4928
+ */
4929
+ export const StaffAuthApiAxiosParamCreator = function (configuration) {
4930
+ return {
4931
+ /**
4932
+ * <br> OperationId: `StaffAuthControllerCallback`
4933
+ * @summary Callback
4934
+ * @param {*} [options] Override http request option.
4935
+ * @throws {RequiredError}
4936
+ */
4937
+ staffAuthControllerCallback: async (options = {}) => {
4938
+ const localVarPath = `/auth/callback`;
4939
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4940
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4941
+ let baseOptions;
4942
+ if (configuration) {
4943
+ baseOptions = configuration.baseOptions;
4944
+ }
4945
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4946
+ const localVarHeaderParameter = {};
4947
+ const localVarQueryParameter = {};
4948
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4949
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4950
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4951
+ return {
4952
+ url: toPathString(localVarUrlObj),
4953
+ options: localVarRequestOptions,
4954
+ };
4955
+ },
4956
+ /**
4957
+ * <br> OperationId: `StaffAuthControllerLogin`
4958
+ * @summary Login
4959
+ * @param {*} [options] Override http request option.
4960
+ * @throws {RequiredError}
4961
+ */
4962
+ staffAuthControllerLogin: async (options = {}) => {
4963
+ const localVarPath = `/auth/login`;
4964
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4965
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4966
+ let baseOptions;
4967
+ if (configuration) {
4968
+ baseOptions = configuration.baseOptions;
4969
+ }
4970
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4971
+ const localVarHeaderParameter = {};
4972
+ const localVarQueryParameter = {};
4973
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4974
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4975
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4976
+ return {
4977
+ url: toPathString(localVarUrlObj),
4978
+ options: localVarRequestOptions,
4979
+ };
4980
+ },
4981
+ /**
4982
+ * <br> OperationId: `StaffAuthControllerLogout`
4983
+ * @summary Logout
4984
+ * @param {*} [options] Override http request option.
4985
+ * @throws {RequiredError}
4986
+ */
4987
+ staffAuthControllerLogout: async (options = {}) => {
4988
+ const localVarPath = `/auth/logout`;
4989
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4990
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4991
+ let baseOptions;
4992
+ if (configuration) {
4993
+ baseOptions = configuration.baseOptions;
4994
+ }
4995
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4996
+ const localVarHeaderParameter = {};
4997
+ const localVarQueryParameter = {};
4998
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4999
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5000
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5001
+ return {
5002
+ url: toPathString(localVarUrlObj),
5003
+ options: localVarRequestOptions,
5004
+ };
5005
+ },
5006
+ };
5007
+ };
5008
+ /**
5009
+ * StaffAuthApi - functional programming interface
5010
+ * @export
5011
+ */
5012
+ export const StaffAuthApiFp = function (configuration) {
5013
+ const localVarAxiosParamCreator = StaffAuthApiAxiosParamCreator(configuration);
5014
+ return {
5015
+ /**
5016
+ * <br> OperationId: `StaffAuthControllerCallback`
5017
+ * @summary Callback
5018
+ * @param {*} [options] Override http request option.
5019
+ * @throws {RequiredError}
5020
+ */
5021
+ async staffAuthControllerCallback(options) {
5022
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerCallback(options);
5023
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5024
+ const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerCallback']?.[localVarOperationServerIndex]?.url;
5025
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5026
+ },
5027
+ /**
5028
+ * <br> OperationId: `StaffAuthControllerLogin`
5029
+ * @summary Login
5030
+ * @param {*} [options] Override http request option.
5031
+ * @throws {RequiredError}
5032
+ */
5033
+ async staffAuthControllerLogin(options) {
5034
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogin(options);
5035
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5036
+ const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogin']?.[localVarOperationServerIndex]?.url;
5037
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5038
+ },
5039
+ /**
5040
+ * <br> OperationId: `StaffAuthControllerLogout`
5041
+ * @summary Logout
5042
+ * @param {*} [options] Override http request option.
5043
+ * @throws {RequiredError}
5044
+ */
5045
+ async staffAuthControllerLogout(options) {
5046
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogout(options);
5047
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5048
+ const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogout']?.[localVarOperationServerIndex]?.url;
5049
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5050
+ },
5051
+ };
5052
+ };
5053
+ /**
5054
+ * StaffAuthApi - factory interface
5055
+ * @export
5056
+ */
5057
+ export const StaffAuthApiFactory = function (configuration, basePath, axios) {
5058
+ const localVarFp = StaffAuthApiFp(configuration);
5059
+ return {
5060
+ /**
5061
+ * <br> OperationId: `StaffAuthControllerCallback`
5062
+ * @summary Callback
5063
+ * @param {*} [options] Override http request option.
5064
+ * @throws {RequiredError}
5065
+ */
5066
+ staffAuthControllerCallback(options) {
5067
+ return localVarFp.staffAuthControllerCallback(options).then((request) => request(axios, basePath));
5068
+ },
5069
+ /**
5070
+ * <br> OperationId: `StaffAuthControllerLogin`
5071
+ * @summary Login
5072
+ * @param {*} [options] Override http request option.
5073
+ * @throws {RequiredError}
5074
+ */
5075
+ staffAuthControllerLogin(options) {
5076
+ return localVarFp.staffAuthControllerLogin(options).then((request) => request(axios, basePath));
5077
+ },
5078
+ /**
5079
+ * <br> OperationId: `StaffAuthControllerLogout`
5080
+ * @summary Logout
5081
+ * @param {*} [options] Override http request option.
5082
+ * @throws {RequiredError}
5083
+ */
5084
+ staffAuthControllerLogout(options) {
5085
+ return localVarFp.staffAuthControllerLogout(options).then((request) => request(axios, basePath));
5086
+ },
5087
+ };
5088
+ };
5089
+ /**
5090
+ * StaffAuthApi - object-oriented interface
5091
+ * @export
5092
+ * @class StaffAuthApi
5093
+ * @extends {BaseAPI}
5094
+ */
5095
+ export class StaffAuthApi extends BaseAPI {
5096
+ /**
5097
+ * <br> OperationId: `StaffAuthControllerCallback`
5098
+ * @summary Callback
5099
+ * @param {*} [options] Override http request option.
5100
+ * @throws {RequiredError}
5101
+ * @memberof StaffAuthApi
5102
+ */
5103
+ staffAuthControllerCallback(options) {
5104
+ return StaffAuthApiFp(this.configuration)
5105
+ .staffAuthControllerCallback(options)
5106
+ .then((request) => request(this.axios, this.basePath));
5107
+ }
5108
+ /**
5109
+ * <br> OperationId: `StaffAuthControllerLogin`
5110
+ * @summary Login
5111
+ * @param {*} [options] Override http request option.
5112
+ * @throws {RequiredError}
5113
+ * @memberof StaffAuthApi
5114
+ */
5115
+ staffAuthControllerLogin(options) {
5116
+ return StaffAuthApiFp(this.configuration)
5117
+ .staffAuthControllerLogin(options)
5118
+ .then((request) => request(this.axios, this.basePath));
5119
+ }
5120
+ /**
5121
+ * <br> OperationId: `StaffAuthControllerLogout`
5122
+ * @summary Logout
5123
+ * @param {*} [options] Override http request option.
5124
+ * @throws {RequiredError}
5125
+ * @memberof StaffAuthApi
5126
+ */
5127
+ staffAuthControllerLogout(options) {
5128
+ return StaffAuthApiFp(this.configuration)
5129
+ .staffAuthControllerLogout(options)
5130
+ .then((request) => request(this.axios, this.basePath));
5131
+ }
5132
+ }
5133
+ /**
5134
+ * StaffMeApi - axios parameter creator
5135
+ * @export
5136
+ */
5137
+ export const StaffMeApiAxiosParamCreator = function (configuration) {
5138
+ return {
5139
+ /**
5140
+ * 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`
5141
+ * @summary Who this Staff session belongs to
5142
+ * @param {*} [options] Override http request option.
5143
+ * @throws {RequiredError}
5144
+ */
5145
+ staffMeControllerMe: async (options = {}) => {
5146
+ const localVarPath = `/staff/me`;
5147
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5148
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5149
+ let baseOptions;
5150
+ if (configuration) {
5151
+ baseOptions = configuration.baseOptions;
5152
+ }
5153
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5154
+ const localVarHeaderParameter = {};
5155
+ const localVarQueryParameter = {};
5156
+ // authentication staffSession required
5157
+ // authentication adminAuth required
5158
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5159
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5160
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5161
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5162
+ return {
5163
+ url: toPathString(localVarUrlObj),
5164
+ options: localVarRequestOptions,
5165
+ };
5166
+ },
5167
+ };
5168
+ };
5169
+ /**
5170
+ * StaffMeApi - functional programming interface
5171
+ * @export
5172
+ */
5173
+ export const StaffMeApiFp = function (configuration) {
5174
+ const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
5175
+ return {
5176
+ /**
5177
+ * 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`
5178
+ * @summary Who this Staff session belongs to
5179
+ * @param {*} [options] Override http request option.
5180
+ * @throws {RequiredError}
5181
+ */
5182
+ async staffMeControllerMe(options) {
5183
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
5184
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5185
+ const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
5186
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5187
+ },
5188
+ };
5189
+ };
5190
+ /**
5191
+ * StaffMeApi - factory interface
5192
+ * @export
5193
+ */
5194
+ export const StaffMeApiFactory = function (configuration, basePath, axios) {
5195
+ const localVarFp = StaffMeApiFp(configuration);
5196
+ return {
5197
+ /**
5198
+ * 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`
5199
+ * @summary Who this Staff session belongs to
5200
+ * @param {*} [options] Override http request option.
5201
+ * @throws {RequiredError}
5202
+ */
5203
+ staffMeControllerMe(options) {
5204
+ return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
5205
+ },
5206
+ };
5207
+ };
5208
+ /**
5209
+ * StaffMeApi - object-oriented interface
5210
+ * @export
5211
+ * @class StaffMeApi
5212
+ * @extends {BaseAPI}
5213
+ */
5214
+ export class StaffMeApi extends BaseAPI {
5215
+ /**
5216
+ * 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`
5217
+ * @summary Who this Staff session belongs to
5218
+ * @param {*} [options] Override http request option.
5219
+ * @throws {RequiredError}
5220
+ * @memberof StaffMeApi
5221
+ */
5222
+ staffMeControllerMe(options) {
5223
+ return StaffMeApiFp(this.configuration)
5224
+ .staffMeControllerMe(options)
5225
+ .then((request) => request(this.axios, this.basePath));
5226
+ }
5227
+ }
5228
+ /**
5229
+ * StaffPlanApi - axios parameter creator
5230
+ * @export
5231
+ */
5232
+ export const StaffPlanApiAxiosParamCreator = function (configuration) {
5233
+ return {
5234
+ /**
5235
+ * 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`
5236
+ * @summary The Plan catalogue
5237
+ * @param {*} [options] Override http request option.
5238
+ * @throws {RequiredError}
5239
+ */
5240
+ staffPlanControllerList: async (options = {}) => {
5241
+ const localVarPath = `/staff/plans`;
5242
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5243
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5244
+ let baseOptions;
5245
+ if (configuration) {
5246
+ baseOptions = configuration.baseOptions;
5247
+ }
5248
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5249
+ const localVarHeaderParameter = {};
5250
+ const localVarQueryParameter = {};
5251
+ // authentication staffSession required
5252
+ // authentication adminAuth required
5253
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5256
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5257
+ return {
5258
+ url: toPathString(localVarUrlObj),
5259
+ options: localVarRequestOptions,
5260
+ };
5261
+ },
5262
+ };
5263
+ };
5264
+ /**
5265
+ * StaffPlanApi - functional programming interface
5266
+ * @export
5267
+ */
5268
+ export const StaffPlanApiFp = function (configuration) {
5269
+ const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
5270
+ return {
5271
+ /**
5272
+ * 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`
5273
+ * @summary The Plan catalogue
5274
+ * @param {*} [options] Override http request option.
5275
+ * @throws {RequiredError}
5276
+ */
5277
+ async staffPlanControllerList(options) {
5278
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(options);
5279
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
5280
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
5281
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5282
+ },
5283
+ };
5284
+ };
5285
+ /**
5286
+ * StaffPlanApi - factory interface
5287
+ * @export
5288
+ */
5289
+ export const StaffPlanApiFactory = function (configuration, basePath, axios) {
5290
+ const localVarFp = StaffPlanApiFp(configuration);
5291
+ return {
5292
+ /**
5293
+ * 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`
5294
+ * @summary The Plan catalogue
5295
+ * @param {*} [options] Override http request option.
5296
+ * @throws {RequiredError}
5297
+ */
5298
+ staffPlanControllerList(options) {
5299
+ return localVarFp.staffPlanControllerList(options).then((request) => request(axios, basePath));
5300
+ },
5301
+ };
5302
+ };
5303
+ /**
5304
+ * StaffPlanApi - object-oriented interface
5305
+ * @export
5306
+ * @class StaffPlanApi
5307
+ * @extends {BaseAPI}
5308
+ */
5309
+ export class StaffPlanApi extends BaseAPI {
5310
+ /**
5311
+ * 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`
5312
+ * @summary The Plan catalogue
5313
+ * @param {*} [options] Override http request option.
5314
+ * @throws {RequiredError}
5315
+ * @memberof StaffPlanApi
5316
+ */
5317
+ staffPlanControllerList(options) {
5318
+ return StaffPlanApiFp(this.configuration)
5319
+ .staffPlanControllerList(options)
5320
+ .then((request) => request(this.axios, this.basePath));
5321
+ }
5322
+ }
5323
+ /**
5324
+ * StaffTakaroAiApi - axios parameter creator
5325
+ * @export
5326
+ */
5327
+ export const StaffTakaroAiApiAxiosParamCreator = function (configuration) {
5328
+ return {
5329
+ /**
5330
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
5331
+ * @summary Clear the Takaro AI override of a Domain
5332
+ * @param {string} id
5333
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
3032
5334
  * @param {*} [options] Override http request option.
3033
5335
  * @throws {RequiredError}
3034
5336
  */
3035
- metaGetMetrics: async (options = {}) => {
3036
- const localVarPath = `/metrics`;
5337
+ staffTakaroAiControllerClearDomainOverride: async (id, takaroAiOverrideClearInputDTO, options = {}) => {
5338
+ // verify required parameter 'id' is not null or undefined
5339
+ assertParamExists('staffTakaroAiControllerClearDomainOverride', 'id', id);
5340
+ const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3037
5341
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3038
5342
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3039
5343
  let baseOptions;
3040
5344
  if (configuration) {
3041
5345
  baseOptions = configuration.baseOptions;
3042
5346
  }
3043
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5347
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
3044
5348
  const localVarHeaderParameter = {};
3045
5349
  const localVarQueryParameter = {};
5350
+ // authentication staffSession required
5351
+ // authentication adminAuth required
5352
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5353
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3046
5354
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3047
5355
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3048
5356
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5357
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiOverrideClearInputDTO, localVarRequestOptions, configuration);
3049
5358
  return {
3050
5359
  url: toPathString(localVarUrlObj),
3051
5360
  options: localVarRequestOptions,
3052
5361
  };
3053
5362
  },
3054
5363
  /**
3055
- * <br> OperationId: `MetaGetOpenApi`
3056
- * @summary Get open api
5364
+ * 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`
5365
+ * @summary Takaro AI allowance, override and spend of a Domain
5366
+ * @param {string} id
3057
5367
  * @param {*} [options] Override http request option.
3058
5368
  * @throws {RequiredError}
3059
5369
  */
3060
- metaGetOpenApi: async (options = {}) => {
3061
- const localVarPath = `/openapi.json`;
5370
+ staffTakaroAiControllerGetDomain: async (id, options = {}) => {
5371
+ // verify required parameter 'id' is not null or undefined
5372
+ assertParamExists('staffTakaroAiControllerGetDomain', 'id', id);
5373
+ const localVarPath = `/staff/takaro-ai/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3062
5374
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3063
5375
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3064
5376
  let baseOptions;
@@ -3068,6 +5380,9 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3068
5380
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3069
5381
  const localVarHeaderParameter = {};
3070
5382
  const localVarQueryParameter = {};
5383
+ // authentication staffSession required
5384
+ // authentication adminAuth required
5385
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3071
5386
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3072
5387
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3073
5388
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3077,13 +5392,13 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3077
5392
  };
3078
5393
  },
3079
5394
  /**
3080
- * <br> OperationId: `MetaGetOpenApiHtml`
3081
- * @summary Get open api html
5395
+ * 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`
5396
+ * @summary Takaro AI platform spend and global multiplier
3082
5397
  * @param {*} [options] Override http request option.
3083
5398
  * @throws {RequiredError}
3084
5399
  */
3085
- metaGetOpenApiHtml: async (options = {}) => {
3086
- const localVarPath = `/api.html`;
5400
+ staffTakaroAiControllerGetPlatform: async (options = {}) => {
5401
+ const localVarPath = `/staff/takaro-ai`;
3087
5402
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3088
5403
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3089
5404
  let baseOptions;
@@ -3093,6 +5408,9 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3093
5408
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3094
5409
  const localVarHeaderParameter = {};
3095
5410
  const localVarQueryParameter = {};
5411
+ // authentication staffSession required
5412
+ // authentication adminAuth required
5413
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3096
5414
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3097
5415
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3098
5416
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -3102,50 +5420,99 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3102
5420
  };
3103
5421
  },
3104
5422
  /**
3105
- * <br> OperationId: `MetaGetReadiness`
3106
- * @summary Get readiness
5423
+ * 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`
5424
+ * @summary Set the Takaro AI override of a Domain
5425
+ * @param {string} id
5426
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
3107
5427
  * @param {*} [options] Override http request option.
3108
5428
  * @throws {RequiredError}
3109
5429
  */
3110
- metaGetReadiness: async (options = {}) => {
3111
- const localVarPath = `/readyz`;
5430
+ staffTakaroAiControllerSetDomainOverride: async (id, takaroAiDomainOverrideInputDTO, options = {}) => {
5431
+ // verify required parameter 'id' is not null or undefined
5432
+ assertParamExists('staffTakaroAiControllerSetDomainOverride', 'id', id);
5433
+ const localVarPath = `/staff/takaro-ai/domain/{id}/override`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
3112
5434
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3113
5435
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3114
5436
  let baseOptions;
3115
5437
  if (configuration) {
3116
5438
  baseOptions = configuration.baseOptions;
3117
5439
  }
3118
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5440
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3119
5441
  const localVarHeaderParameter = {};
3120
5442
  const localVarQueryParameter = {};
5443
+ // authentication staffSession required
5444
+ // authentication adminAuth required
5445
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5446
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3121
5447
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3122
5448
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3123
5449
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5450
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiDomainOverrideInputDTO, localVarRequestOptions, configuration);
3124
5451
  return {
3125
5452
  url: toPathString(localVarUrlObj),
3126
5453
  options: localVarRequestOptions,
3127
5454
  };
3128
5455
  },
3129
5456
  /**
3130
- * <br> OperationId: `MetaGetRoot`
3131
- * @summary Get root
5457
+ * 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`
5458
+ * @summary Set the Takaro AI global multiplier
5459
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
3132
5460
  * @param {*} [options] Override http request option.
3133
5461
  * @throws {RequiredError}
3134
5462
  */
3135
- metaGetRoot: async (options = {}) => {
3136
- const localVarPath = `/`;
5463
+ staffTakaroAiControllerSetGlobalMultiplier: async (takaroAiGlobalMultiplierInputDTO, options = {}) => {
5464
+ const localVarPath = `/staff/takaro-ai/global-multiplier`;
3137
5465
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3138
5466
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3139
5467
  let baseOptions;
3140
5468
  if (configuration) {
3141
5469
  baseOptions = configuration.baseOptions;
3142
5470
  }
3143
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
5471
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
5472
+ const localVarHeaderParameter = {};
5473
+ const localVarQueryParameter = {};
5474
+ // authentication staffSession required
5475
+ // authentication adminAuth required
5476
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5477
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5478
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5479
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5480
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5481
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiGlobalMultiplierInputDTO, localVarRequestOptions, configuration);
5482
+ return {
5483
+ url: toPathString(localVarUrlObj),
5484
+ options: localVarRequestOptions,
5485
+ };
5486
+ },
5487
+ /**
5488
+ * 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`
5489
+ * @summary Set the CSMM Migration cap of a Domain
5490
+ * @param {string} id
5491
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
5492
+ * @param {*} [options] Override http request option.
5493
+ * @throws {RequiredError}
5494
+ */
5495
+ staffTakaroAiControllerSetMigrationCap: async (id, takaroAiMigrationCapInputDTO, options = {}) => {
5496
+ // verify required parameter 'id' is not null or undefined
5497
+ assertParamExists('staffTakaroAiControllerSetMigrationCap', 'id', id);
5498
+ const localVarPath = `/staff/takaro-ai/domain/{id}/migration-cap`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
5499
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5500
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5501
+ let baseOptions;
5502
+ if (configuration) {
5503
+ baseOptions = configuration.baseOptions;
5504
+ }
5505
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
3144
5506
  const localVarHeaderParameter = {};
3145
5507
  const localVarQueryParameter = {};
5508
+ // authentication staffSession required
5509
+ // authentication adminAuth required
5510
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
5511
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3146
5512
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3147
5513
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3148
5514
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
5515
+ localVarRequestOptions.data = serializeDataIfNeeded(takaroAiMigrationCapInputDTO, localVarRequestOptions, configuration);
3149
5516
  return {
3150
5517
  url: toPathString(localVarUrlObj),
3151
5518
  options: localVarRequestOptions,
@@ -3154,259 +5521,260 @@ export const MetaApiAxiosParamCreator = function (configuration) {
3154
5521
  };
3155
5522
  };
3156
5523
  /**
3157
- * MetaApi - functional programming interface
5524
+ * StaffTakaroAiApi - functional programming interface
3158
5525
  * @export
3159
5526
  */
3160
- export const MetaApiFp = function (configuration) {
3161
- const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration);
5527
+ export const StaffTakaroAiApiFp = function (configuration) {
5528
+ const localVarAxiosParamCreator = StaffTakaroAiApiAxiosParamCreator(configuration);
3162
5529
  return {
3163
5530
  /**
3164
- * <br> OperationId: `MetaGetHealth`
3165
- * @summary Get health
3166
- * @param {*} [options] Override http request option.
3167
- * @throws {RequiredError}
3168
- */
3169
- async metaGetHealth(options) {
3170
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetHealth(options);
3171
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3172
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetHealth']?.[localVarOperationServerIndex]?.url;
3173
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3174
- },
3175
- /**
3176
- * <br> OperationId: `MetaGetLiveness`
3177
- * @summary Get liveness
5531
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
5532
+ * @summary Clear the Takaro AI override of a Domain
5533
+ * @param {string} id
5534
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
3178
5535
  * @param {*} [options] Override http request option.
3179
5536
  * @throws {RequiredError}
3180
5537
  */
3181
- async metaGetLiveness(options) {
3182
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetLiveness(options);
5538
+ async staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
5539
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options);
3183
5540
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3184
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
5541
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerClearDomainOverride']?.[localVarOperationServerIndex]?.url;
3185
5542
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3186
5543
  },
3187
5544
  /**
3188
- * <br> OperationId: `MetaGetMetrics`
3189
- * @summary Get metrics
5545
+ * 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`
5546
+ * @summary Takaro AI allowance, override and spend of a Domain
5547
+ * @param {string} id
3190
5548
  * @param {*} [options] Override http request option.
3191
5549
  * @throws {RequiredError}
3192
5550
  */
3193
- async metaGetMetrics(options) {
3194
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetMetrics(options);
5551
+ async staffTakaroAiControllerGetDomain(id, options) {
5552
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetDomain(id, options);
3195
5553
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3196
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetMetrics']?.[localVarOperationServerIndex]?.url;
5554
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetDomain']?.[localVarOperationServerIndex]?.url;
3197
5555
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3198
5556
  },
3199
5557
  /**
3200
- * <br> OperationId: `MetaGetOpenApi`
3201
- * @summary Get open api
5558
+ * 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`
5559
+ * @summary Takaro AI platform spend and global multiplier
3202
5560
  * @param {*} [options] Override http request option.
3203
5561
  * @throws {RequiredError}
3204
5562
  */
3205
- async metaGetOpenApi(options) {
3206
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options);
5563
+ async staffTakaroAiControllerGetPlatform(options) {
5564
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerGetPlatform(options);
3207
5565
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3208
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[localVarOperationServerIndex]?.url;
5566
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerGetPlatform']?.[localVarOperationServerIndex]?.url;
3209
5567
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3210
5568
  },
3211
5569
  /**
3212
- * <br> OperationId: `MetaGetOpenApiHtml`
3213
- * @summary Get open api html
5570
+ * 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`
5571
+ * @summary Set the Takaro AI override of a Domain
5572
+ * @param {string} id
5573
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
3214
5574
  * @param {*} [options] Override http request option.
3215
5575
  * @throws {RequiredError}
3216
5576
  */
3217
- async metaGetOpenApiHtml(options) {
3218
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApiHtml(options);
5577
+ async staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
5578
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options);
3219
5579
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3220
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApiHtml']?.[localVarOperationServerIndex]?.url;
5580
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetDomainOverride']?.[localVarOperationServerIndex]
5581
+ ?.url;
3221
5582
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3222
5583
  },
3223
5584
  /**
3224
- * <br> OperationId: `MetaGetReadiness`
3225
- * @summary Get readiness
5585
+ * 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`
5586
+ * @summary Set the Takaro AI global multiplier
5587
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
3226
5588
  * @param {*} [options] Override http request option.
3227
5589
  * @throws {RequiredError}
3228
5590
  */
3229
- async metaGetReadiness(options) {
3230
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetReadiness(options);
5591
+ async staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
5592
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options);
3231
5593
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3232
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetReadiness']?.[localVarOperationServerIndex]?.url;
5594
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetGlobalMultiplier']?.[localVarOperationServerIndex]?.url;
3233
5595
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3234
5596
  },
3235
5597
  /**
3236
- * <br> OperationId: `MetaGetRoot`
3237
- * @summary Get root
5598
+ * 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`
5599
+ * @summary Set the CSMM Migration cap of a Domain
5600
+ * @param {string} id
5601
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
3238
5602
  * @param {*} [options] Override http request option.
3239
5603
  * @throws {RequiredError}
3240
5604
  */
3241
- async metaGetRoot(options) {
3242
- const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetRoot(options);
5605
+ async staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
5606
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options);
3243
5607
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3244
- const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetRoot']?.[localVarOperationServerIndex]?.url;
5608
+ const localVarOperationServerBasePath = operationServerMap['StaffTakaroAiApi.staffTakaroAiControllerSetMigrationCap']?.[localVarOperationServerIndex]
5609
+ ?.url;
3245
5610
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3246
5611
  },
3247
5612
  };
3248
5613
  };
3249
5614
  /**
3250
- * MetaApi - factory interface
5615
+ * StaffTakaroAiApi - factory interface
3251
5616
  * @export
3252
5617
  */
3253
- export const MetaApiFactory = function (configuration, basePath, axios) {
3254
- const localVarFp = MetaApiFp(configuration);
5618
+ export const StaffTakaroAiApiFactory = function (configuration, basePath, axios) {
5619
+ const localVarFp = StaffTakaroAiApiFp(configuration);
3255
5620
  return {
3256
5621
  /**
3257
- * <br> OperationId: `MetaGetHealth`
3258
- * @summary Get health
3259
- * @param {*} [options] Override http request option.
3260
- * @throws {RequiredError}
3261
- */
3262
- metaGetHealth(options) {
3263
- return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath));
3264
- },
3265
- /**
3266
- * <br> OperationId: `MetaGetLiveness`
3267
- * @summary Get liveness
5622
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
5623
+ * @summary Clear the Takaro AI override of a Domain
5624
+ * @param {string} id
5625
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
3268
5626
  * @param {*} [options] Override http request option.
3269
5627
  * @throws {RequiredError}
3270
5628
  */
3271
- metaGetLiveness(options) {
3272
- return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
5629
+ staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
5630
+ return localVarFp
5631
+ .staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
5632
+ .then((request) => request(axios, basePath));
3273
5633
  },
3274
5634
  /**
3275
- * <br> OperationId: `MetaGetMetrics`
3276
- * @summary Get metrics
5635
+ * 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`
5636
+ * @summary Takaro AI allowance, override and spend of a Domain
5637
+ * @param {string} id
3277
5638
  * @param {*} [options] Override http request option.
3278
5639
  * @throws {RequiredError}
3279
5640
  */
3280
- metaGetMetrics(options) {
3281
- return localVarFp.metaGetMetrics(options).then((request) => request(axios, basePath));
5641
+ staffTakaroAiControllerGetDomain(id, options) {
5642
+ return localVarFp.staffTakaroAiControllerGetDomain(id, options).then((request) => request(axios, basePath));
3282
5643
  },
3283
5644
  /**
3284
- * <br> OperationId: `MetaGetOpenApi`
3285
- * @summary Get open api
5645
+ * 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`
5646
+ * @summary Takaro AI platform spend and global multiplier
3286
5647
  * @param {*} [options] Override http request option.
3287
5648
  * @throws {RequiredError}
3288
5649
  */
3289
- metaGetOpenApi(options) {
3290
- return localVarFp.metaGetOpenApi(options).then((request) => request(axios, basePath));
5650
+ staffTakaroAiControllerGetPlatform(options) {
5651
+ return localVarFp.staffTakaroAiControllerGetPlatform(options).then((request) => request(axios, basePath));
3291
5652
  },
3292
5653
  /**
3293
- * <br> OperationId: `MetaGetOpenApiHtml`
3294
- * @summary Get open api html
5654
+ * 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`
5655
+ * @summary Set the Takaro AI override of a Domain
5656
+ * @param {string} id
5657
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
3295
5658
  * @param {*} [options] Override http request option.
3296
5659
  * @throws {RequiredError}
3297
5660
  */
3298
- metaGetOpenApiHtml(options) {
3299
- return localVarFp.metaGetOpenApiHtml(options).then((request) => request(axios, basePath));
5661
+ staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
5662
+ return localVarFp
5663
+ .staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
5664
+ .then((request) => request(axios, basePath));
3300
5665
  },
3301
5666
  /**
3302
- * <br> OperationId: `MetaGetReadiness`
3303
- * @summary Get readiness
5667
+ * 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`
5668
+ * @summary Set the Takaro AI global multiplier
5669
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
3304
5670
  * @param {*} [options] Override http request option.
3305
5671
  * @throws {RequiredError}
3306
5672
  */
3307
- metaGetReadiness(options) {
3308
- return localVarFp.metaGetReadiness(options).then((request) => request(axios, basePath));
5673
+ staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
5674
+ return localVarFp
5675
+ .staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
5676
+ .then((request) => request(axios, basePath));
3309
5677
  },
3310
5678
  /**
3311
- * <br> OperationId: `MetaGetRoot`
3312
- * @summary Get root
5679
+ * 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`
5680
+ * @summary Set the CSMM Migration cap of a Domain
5681
+ * @param {string} id
5682
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
3313
5683
  * @param {*} [options] Override http request option.
3314
5684
  * @throws {RequiredError}
3315
5685
  */
3316
- metaGetRoot(options) {
3317
- return localVarFp.metaGetRoot(options).then((request) => request(axios, basePath));
5686
+ staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
5687
+ return localVarFp
5688
+ .staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
5689
+ .then((request) => request(axios, basePath));
3318
5690
  },
3319
5691
  };
3320
5692
  };
3321
5693
  /**
3322
- * MetaApi - object-oriented interface
5694
+ * StaffTakaroAiApi - object-oriented interface
3323
5695
  * @export
3324
- * @class MetaApi
5696
+ * @class StaffTakaroAiApi
3325
5697
  * @extends {BaseAPI}
3326
5698
  */
3327
- export class MetaApi extends BaseAPI {
5699
+ export class StaffTakaroAiApi extends BaseAPI {
3328
5700
  /**
3329
- * <br> OperationId: `MetaGetHealth`
3330
- * @summary Get health
3331
- * @param {*} [options] Override http request option.
3332
- * @throws {RequiredError}
3333
- * @memberof MetaApi
3334
- */
3335
- metaGetHealth(options) {
3336
- return MetaApiFp(this.configuration)
3337
- .metaGetHealth(options)
3338
- .then((request) => request(this.axios, this.basePath));
3339
- }
3340
- /**
3341
- * <br> OperationId: `MetaGetLiveness`
3342
- * @summary Get liveness
5701
+ * Staff only. The configured default override applies again. An expired override can be cleared.<br> OperationId: `StaffTakaroAiControllerClearDomainOverride`
5702
+ * @summary Clear the Takaro AI override of a Domain
5703
+ * @param {string} id
5704
+ * @param {TakaroAiOverrideClearInputDTO} [takaroAiOverrideClearInputDTO] TakaroAiOverrideClearInputDTO
3343
5705
  * @param {*} [options] Override http request option.
3344
5706
  * @throws {RequiredError}
3345
- * @memberof MetaApi
5707
+ * @memberof StaffTakaroAiApi
3346
5708
  */
3347
- metaGetLiveness(options) {
3348
- return MetaApiFp(this.configuration)
3349
- .metaGetLiveness(options)
5709
+ staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options) {
5710
+ return StaffTakaroAiApiFp(this.configuration)
5711
+ .staffTakaroAiControllerClearDomainOverride(id, takaroAiOverrideClearInputDTO, options)
3350
5712
  .then((request) => request(this.axios, this.basePath));
3351
5713
  }
3352
5714
  /**
3353
- * <br> OperationId: `MetaGetMetrics`
3354
- * @summary Get metrics
5715
+ * 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`
5716
+ * @summary Takaro AI allowance, override and spend of a Domain
5717
+ * @param {string} id
3355
5718
  * @param {*} [options] Override http request option.
3356
5719
  * @throws {RequiredError}
3357
- * @memberof MetaApi
5720
+ * @memberof StaffTakaroAiApi
3358
5721
  */
3359
- metaGetMetrics(options) {
3360
- return MetaApiFp(this.configuration)
3361
- .metaGetMetrics(options)
5722
+ staffTakaroAiControllerGetDomain(id, options) {
5723
+ return StaffTakaroAiApiFp(this.configuration)
5724
+ .staffTakaroAiControllerGetDomain(id, options)
3362
5725
  .then((request) => request(this.axios, this.basePath));
3363
5726
  }
3364
5727
  /**
3365
- * <br> OperationId: `MetaGetOpenApi`
3366
- * @summary Get open api
5728
+ * 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`
5729
+ * @summary Takaro AI platform spend and global multiplier
3367
5730
  * @param {*} [options] Override http request option.
3368
5731
  * @throws {RequiredError}
3369
- * @memberof MetaApi
5732
+ * @memberof StaffTakaroAiApi
3370
5733
  */
3371
- metaGetOpenApi(options) {
3372
- return MetaApiFp(this.configuration)
3373
- .metaGetOpenApi(options)
5734
+ staffTakaroAiControllerGetPlatform(options) {
5735
+ return StaffTakaroAiApiFp(this.configuration)
5736
+ .staffTakaroAiControllerGetPlatform(options)
3374
5737
  .then((request) => request(this.axios, this.basePath));
3375
5738
  }
3376
5739
  /**
3377
- * <br> OperationId: `MetaGetOpenApiHtml`
3378
- * @summary Get open api html
5740
+ * 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`
5741
+ * @summary Set the Takaro AI override of a Domain
5742
+ * @param {string} id
5743
+ * @param {TakaroAiDomainOverrideInputDTO} [takaroAiDomainOverrideInputDTO] TakaroAiDomainOverrideInputDTO
3379
5744
  * @param {*} [options] Override http request option.
3380
5745
  * @throws {RequiredError}
3381
- * @memberof MetaApi
5746
+ * @memberof StaffTakaroAiApi
3382
5747
  */
3383
- metaGetOpenApiHtml(options) {
3384
- return MetaApiFp(this.configuration)
3385
- .metaGetOpenApiHtml(options)
5748
+ staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options) {
5749
+ return StaffTakaroAiApiFp(this.configuration)
5750
+ .staffTakaroAiControllerSetDomainOverride(id, takaroAiDomainOverrideInputDTO, options)
3386
5751
  .then((request) => request(this.axios, this.basePath));
3387
5752
  }
3388
5753
  /**
3389
- * <br> OperationId: `MetaGetReadiness`
3390
- * @summary Get readiness
5754
+ * 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`
5755
+ * @summary Set the Takaro AI global multiplier
5756
+ * @param {TakaroAiGlobalMultiplierInputDTO} [takaroAiGlobalMultiplierInputDTO] TakaroAiGlobalMultiplierInputDTO
3391
5757
  * @param {*} [options] Override http request option.
3392
5758
  * @throws {RequiredError}
3393
- * @memberof MetaApi
5759
+ * @memberof StaffTakaroAiApi
3394
5760
  */
3395
- metaGetReadiness(options) {
3396
- return MetaApiFp(this.configuration)
3397
- .metaGetReadiness(options)
5761
+ staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options) {
5762
+ return StaffTakaroAiApiFp(this.configuration)
5763
+ .staffTakaroAiControllerSetGlobalMultiplier(takaroAiGlobalMultiplierInputDTO, options)
3398
5764
  .then((request) => request(this.axios, this.basePath));
3399
5765
  }
3400
5766
  /**
3401
- * <br> OperationId: `MetaGetRoot`
3402
- * @summary Get root
5767
+ * 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`
5768
+ * @summary Set the CSMM Migration cap of a Domain
5769
+ * @param {string} id
5770
+ * @param {TakaroAiMigrationCapInputDTO} [takaroAiMigrationCapInputDTO] TakaroAiMigrationCapInputDTO
3403
5771
  * @param {*} [options] Override http request option.
3404
5772
  * @throws {RequiredError}
3405
- * @memberof MetaApi
5773
+ * @memberof StaffTakaroAiApi
3406
5774
  */
3407
- metaGetRoot(options) {
3408
- return MetaApiFp(this.configuration)
3409
- .metaGetRoot(options)
5775
+ staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options) {
5776
+ return StaffTakaroAiApiFp(this.configuration)
5777
+ .staffTakaroAiControllerSetMigrationCap(id, takaroAiMigrationCapInputDTO, options)
3410
5778
  .then((request) => request(this.axios, this.basePath));
3411
5779
  }
3412
5780
  }