@takaro/apiclient 0.0.0-dev.1faf234 → 0.0.0-dev.207719e

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 (77) hide show
  1. package/README.md +27 -0
  2. package/dist/generated/api.d.ts +16524 -8390
  3. package/dist/generated/api.d.ts.map +1 -1
  4. package/dist/generated/api.js +12502 -6693
  5. package/dist/generated/api.js.map +1 -1
  6. package/dist/generated/base.d.ts +1 -1
  7. package/dist/generated/base.js +1 -1
  8. package/dist/generated/common.d.ts +1 -1
  9. package/dist/generated/common.js +1 -1
  10. package/dist/generated/configuration.d.ts +1 -1
  11. package/dist/generated/configuration.js +2 -2
  12. package/dist/generated/configuration.js.map +1 -1
  13. package/dist/generated/index.d.ts +1 -1
  14. package/dist/generated/index.js +1 -1
  15. package/dist/generated-management/api.d.ts +15404 -0
  16. package/dist/generated-management/api.d.ts.map +1 -0
  17. package/dist/generated-management/api.js +4019 -0
  18. package/dist/generated-management/api.js.map +1 -0
  19. package/dist/generated-management/base.d.ts +67 -0
  20. package/dist/generated-management/base.d.ts.map +1 -0
  21. package/dist/generated-management/base.js +59 -0
  22. package/dist/generated-management/base.js.map +1 -0
  23. package/dist/generated-management/common.d.ts +66 -0
  24. package/dist/generated-management/common.d.ts.map +1 -0
  25. package/dist/generated-management/common.js +135 -0
  26. package/dist/generated-management/common.js.map +1 -0
  27. package/dist/generated-management/configuration.d.ts +92 -0
  28. package/dist/generated-management/configuration.d.ts.map +1 -0
  29. package/dist/generated-management/configuration.js +46 -0
  30. package/dist/generated-management/configuration.js.map +1 -0
  31. package/dist/generated-management/index.d.ts +14 -0
  32. package/dist/generated-management/index.d.ts.map +1 -0
  33. package/{src/generated/index.ts → dist/generated-management/index.js} +2 -2
  34. package/dist/generated-management/index.js.map +1 -0
  35. package/dist/lib/adminClient.d.ts +3 -2
  36. package/dist/lib/adminClient.d.ts.map +1 -1
  37. package/dist/lib/adminClient.js +8 -2
  38. package/dist/lib/adminClient.js.map +1 -1
  39. package/dist/lib/apiKey.d.ts +18 -0
  40. package/dist/lib/apiKey.d.ts.map +1 -0
  41. package/dist/lib/apiKey.js +71 -0
  42. package/dist/lib/apiKey.js.map +1 -0
  43. package/dist/lib/baseClient.d.ts +15 -1
  44. package/dist/lib/baseClient.d.ts.map +1 -1
  45. package/dist/lib/baseClient.js +21 -2
  46. package/dist/lib/baseClient.js.map +1 -1
  47. package/dist/lib/client.d.ts +34 -3
  48. package/dist/lib/client.d.ts.map +1 -1
  49. package/dist/lib/client.js +66 -10
  50. package/dist/lib/client.js.map +1 -1
  51. package/dist/lib/distributorClient.d.ts +18 -0
  52. package/dist/lib/distributorClient.d.ts.map +1 -0
  53. package/dist/lib/distributorClient.js +21 -0
  54. package/dist/lib/distributorClient.js.map +1 -0
  55. package/dist/lib/staffClient.d.ts +21 -0
  56. package/dist/lib/staffClient.d.ts.map +1 -0
  57. package/dist/lib/staffClient.js +31 -0
  58. package/dist/lib/staffClient.js.map +1 -0
  59. package/dist/main.d.ts +8 -1
  60. package/dist/main.d.ts.map +1 -1
  61. package/dist/main.js +8 -0
  62. package/dist/main.js.map +1 -1
  63. package/package.json +14 -6
  64. package/src/__tests__/main.integration.test.ts +0 -39
  65. package/src/generated/.openapi-generator-ignore +0 -23
  66. package/src/generated/api.ts +0 -32740
  67. package/src/generated/base.ts +0 -91
  68. package/src/generated/common.ts +0 -164
  69. package/src/generated/configuration.ts +0 -123
  70. package/src/generated/git_push.sh +0 -57
  71. package/src/lib/adminClient.ts +0 -37
  72. package/src/lib/baseClient.ts +0 -153
  73. package/src/lib/client.ts +0 -308
  74. package/src/main.ts +0 -9
  75. package/tsconfig.build.json +0 -10
  76. package/tsconfig.json +0 -8
  77. package/typedoc.json +0 -3
@@ -0,0 +1,4019 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Takaro API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 0.0.0
8
+ * Contact: support@takaro.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import globalAxios from 'axios';
15
+ // Some imports not used depending on template conditions
16
+ // @ts-ignore
17
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, } from './common.js';
18
+ // @ts-ignore
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base.js';
20
+ export const ApiKeyCreateInputDTOKindEnum = {
21
+ Personal: 'personal',
22
+ Domain: 'domain',
23
+ };
24
+ export const ApiKeyCreateResultDTOKindEnum = {
25
+ Personal: 'personal',
26
+ Domain: 'domain',
27
+ };
28
+ export const ApiKeyCreateResultDTOStatusEnum = {
29
+ Active: 'ACTIVE',
30
+ Expired: 'EXPIRED',
31
+ Revoked: 'REVOKED',
32
+ };
33
+ export const ApiKeyOutputDTOKindEnum = {
34
+ Personal: 'personal',
35
+ Domain: 'domain',
36
+ };
37
+ export const ApiKeyOutputDTOStatusEnum = {
38
+ Active: 'ACTIVE',
39
+ Expired: 'EXPIRED',
40
+ Revoked: 'REVOKED',
41
+ };
42
+ export const ApiKeySearchInputAllowedFiltersKindEnum = {
43
+ Personal: 'personal',
44
+ Domain: 'domain',
45
+ };
46
+ export const ApiKeySearchInputDTOSortDirectionEnum = {
47
+ Asc: 'asc',
48
+ Desc: 'desc',
49
+ };
50
+ export const DistributorBackedDomainOutputDTOStateEnum = {
51
+ Active: 'ACTIVE',
52
+ Disabled: 'DISABLED',
53
+ Maintenance: 'MAINTENANCE',
54
+ };
55
+ export const DistributorBackedDomainSearchInputDTOSortDirectionEnum = {
56
+ Asc: 'asc',
57
+ Desc: 'desc',
58
+ };
59
+ export const DistributorDomainSearchInputAllowedFiltersStateEnum = {
60
+ Active: 'ACTIVE',
61
+ Disabled: 'DISABLED',
62
+ Maintenance: 'MAINTENANCE',
63
+ };
64
+ export const DistributorDomainSearchInputDTOSortDirectionEnum = {
65
+ Asc: 'asc',
66
+ Desc: 'desc',
67
+ };
68
+ export const DistributorKeyCreateResultDTOStatusEnum = {
69
+ Active: 'ACTIVE',
70
+ Revoked: 'REVOKED',
71
+ };
72
+ export const DistributorKeyOutputDTOStatusEnum = {
73
+ Active: 'ACTIVE',
74
+ Revoked: 'REVOKED',
75
+ };
76
+ export const DistributorKeySearchInputDTOSortDirectionEnum = {
77
+ Asc: 'asc',
78
+ Desc: 'desc',
79
+ };
80
+ export const DistributorSearchInputDTOSortDirectionEnum = {
81
+ Asc: 'asc',
82
+ Desc: 'desc',
83
+ };
84
+ export const DomainCreateInputDTOStateEnum = {
85
+ Active: 'ACTIVE',
86
+ Disabled: 'DISABLED',
87
+ Maintenance: 'MAINTENANCE',
88
+ };
89
+ export const DomainOutputDTOStateEnum = {
90
+ Active: 'ACTIVE',
91
+ Disabled: 'DISABLED',
92
+ Maintenance: 'MAINTENANCE',
93
+ };
94
+ export const DomainSearchInputAllowedFiltersStateEnum = {
95
+ Active: 'ACTIVE',
96
+ Disabled: 'DISABLED',
97
+ Maintenance: 'MAINTENANCE',
98
+ };
99
+ export const DomainSearchInputDTOSortDirectionEnum = {
100
+ Asc: 'asc',
101
+ Desc: 'desc',
102
+ };
103
+ export const DomainStateCountDTOStateEnum = {
104
+ Active: 'ACTIVE',
105
+ Disabled: 'DISABLED',
106
+ Maintenance: 'MAINTENANCE',
107
+ };
108
+ export const DomainUpdateInputDTOStateEnum = {
109
+ Active: 'ACTIVE',
110
+ Disabled: 'DISABLED',
111
+ Maintenance: 'MAINTENANCE',
112
+ };
113
+ export const EntityCreateDTOTypeEnum = {
114
+ Hostile: 'hostile',
115
+ Friendly: 'friendly',
116
+ Neutral: 'neutral',
117
+ };
118
+ export const EntityOutputDTOTypeEnum = {
119
+ Hostile: 'hostile',
120
+ Friendly: 'friendly',
121
+ Neutral: 'neutral',
122
+ };
123
+ export const EntityUpdateDTOTypeEnum = {
124
+ Hostile: 'hostile',
125
+ Friendly: 'friendly',
126
+ Neutral: 'neutral',
127
+ };
128
+ export const EventChatMessageChannelEnum = {
129
+ Global: 'global',
130
+ Team: 'team',
131
+ Friends: 'friends',
132
+ Whisper: 'whisper',
133
+ };
134
+ export const EventCreateDTOEventNameEnum = {
135
+ RoleAssigned: 'role-assigned',
136
+ RoleRemoved: 'role-removed',
137
+ RoleCreated: 'role-created',
138
+ RoleUpdated: 'role-updated',
139
+ RoleDeleted: 'role-deleted',
140
+ CommandExecuted: 'command-executed',
141
+ CommandExecutionDenied: 'command-execution-denied',
142
+ HookExecuted: 'hook-executed',
143
+ CronjobExecuted: 'cronjob-executed',
144
+ CurrencyAdded: 'currency-added',
145
+ CurrencyDeducted: 'currency-deducted',
146
+ CurrencyResetAll: 'currency-reset-all',
147
+ SettingsSet: 'settings-set',
148
+ PlayerNewIpDetected: 'player-new-ip-detected',
149
+ PlayerNewNameDetected: 'player-new-name-detected',
150
+ ServerStatusChanged: 'server-status-changed',
151
+ ModuleCreated: 'module-created',
152
+ ModuleUpdated: 'module-updated',
153
+ ModuleDeleted: 'module-deleted',
154
+ ModuleInstalled: 'module-installed',
155
+ ModuleUninstalled: 'module-uninstalled',
156
+ PlayerCreated: 'player-created',
157
+ ShopListingCreated: 'shop-listing-created',
158
+ ShopListingUpdated: 'shop-listing-updated',
159
+ ShopListingDeleted: 'shop-listing-deleted',
160
+ ShopOrderCreated: 'shop-order-created',
161
+ ShopOrderStatusChanged: 'shop-order-status-changed',
162
+ ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
163
+ PlayerLinked: 'player-linked',
164
+ GameserverCreated: 'gameserver-created',
165
+ GameserverUpdated: 'gameserver-updated',
166
+ GameserverDeleted: 'gameserver-deleted',
167
+ PlayerBanned: 'player-banned',
168
+ PlayerUnbanned: 'player-unbanned',
169
+ PlayerDeleted: 'player-deleted',
170
+ ShopActionExecuted: 'shop-action-executed',
171
+ PlayerInventoryChanged: 'player-inventory-changed',
172
+ EventRateLimited: 'event-rate-limited',
173
+ PlayerSyncSnapshot: 'player-sync-snapshot',
174
+ InviteLinkCreated: 'invite-link-created',
175
+ ApiKeyCreated: 'api-key-created',
176
+ ApiKeyRotated: 'api-key-rotated',
177
+ ApiKeyRevoked: 'api-key-revoked',
178
+ DomainCreated: 'domain-created',
179
+ DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
180
+ DomainPlanChanged: 'domain-plan-changed',
181
+ PlayerConnected: 'player-connected',
182
+ PlayerDisconnected: 'player-disconnected',
183
+ ChatMessage: 'chat-message',
184
+ PlayerDeath: 'player-death',
185
+ EntityKilled: 'entity-killed',
186
+ };
187
+ export const EventOutputDTOEventNameEnum = {
188
+ RoleAssigned: 'role-assigned',
189
+ RoleRemoved: 'role-removed',
190
+ RoleCreated: 'role-created',
191
+ RoleUpdated: 'role-updated',
192
+ RoleDeleted: 'role-deleted',
193
+ CommandExecuted: 'command-executed',
194
+ CommandExecutionDenied: 'command-execution-denied',
195
+ HookExecuted: 'hook-executed',
196
+ CronjobExecuted: 'cronjob-executed',
197
+ CurrencyAdded: 'currency-added',
198
+ CurrencyDeducted: 'currency-deducted',
199
+ CurrencyResetAll: 'currency-reset-all',
200
+ SettingsSet: 'settings-set',
201
+ PlayerNewIpDetected: 'player-new-ip-detected',
202
+ PlayerNewNameDetected: 'player-new-name-detected',
203
+ ServerStatusChanged: 'server-status-changed',
204
+ ModuleCreated: 'module-created',
205
+ ModuleUpdated: 'module-updated',
206
+ ModuleDeleted: 'module-deleted',
207
+ ModuleInstalled: 'module-installed',
208
+ ModuleUninstalled: 'module-uninstalled',
209
+ PlayerCreated: 'player-created',
210
+ ShopListingCreated: 'shop-listing-created',
211
+ ShopListingUpdated: 'shop-listing-updated',
212
+ ShopListingDeleted: 'shop-listing-deleted',
213
+ ShopOrderCreated: 'shop-order-created',
214
+ ShopOrderStatusChanged: 'shop-order-status-changed',
215
+ ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
216
+ PlayerLinked: 'player-linked',
217
+ GameserverCreated: 'gameserver-created',
218
+ GameserverUpdated: 'gameserver-updated',
219
+ GameserverDeleted: 'gameserver-deleted',
220
+ PlayerBanned: 'player-banned',
221
+ PlayerUnbanned: 'player-unbanned',
222
+ PlayerDeleted: 'player-deleted',
223
+ ShopActionExecuted: 'shop-action-executed',
224
+ PlayerInventoryChanged: 'player-inventory-changed',
225
+ EventRateLimited: 'event-rate-limited',
226
+ PlayerSyncSnapshot: 'player-sync-snapshot',
227
+ InviteLinkCreated: 'invite-link-created',
228
+ ApiKeyCreated: 'api-key-created',
229
+ ApiKeyRotated: 'api-key-rotated',
230
+ ApiKeyRevoked: 'api-key-revoked',
231
+ DomainCreated: 'domain-created',
232
+ DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
233
+ DomainPlanChanged: 'domain-plan-changed',
234
+ PlayerConnected: 'player-connected',
235
+ PlayerDisconnected: 'player-disconnected',
236
+ ChatMessage: 'chat-message',
237
+ PlayerDeath: 'player-death',
238
+ EntityKilled: 'entity-killed',
239
+ };
240
+ export const GameServerCreateDTOTypeEnum = {
241
+ Sevendaystodie: 'SEVENDAYSTODIE',
242
+ Rust: 'RUST',
243
+ Generic: 'GENERIC',
244
+ Mock: 'MOCK',
245
+ };
246
+ export const GameServerOutputDTOTypeEnum = {
247
+ Sevendaystodie: 'SEVENDAYSTODIE',
248
+ Rust: 'RUST',
249
+ Generic: 'GENERIC',
250
+ Mock: 'MOCK',
251
+ };
252
+ export const GameServerTypesOutputDTOTypeEnum = {
253
+ Sevendaystodie: 'SEVENDAYSTODIE',
254
+ Rust: 'RUST',
255
+ Generic: 'GENERIC',
256
+ Mock: 'MOCK',
257
+ };
258
+ export const GameServerUpdateDTOTypeEnum = {
259
+ Sevendaystodie: 'SEVENDAYSTODIE',
260
+ Rust: 'RUST',
261
+ Generic: 'GENERIC',
262
+ Mock: 'MOCK',
263
+ };
264
+ export const HookCreateDTOEventTypeEnum = {
265
+ Log: 'log',
266
+ PlayerConnected: 'player-connected',
267
+ PlayerDisconnected: 'player-disconnected',
268
+ ChatMessage: 'chat-message',
269
+ PlayerDeath: 'player-death',
270
+ EntityKilled: 'entity-killed',
271
+ DiscordMessage: 'discord-message',
272
+ RoleAssigned: 'role-assigned',
273
+ RoleRemoved: 'role-removed',
274
+ RoleCreated: 'role-created',
275
+ RoleUpdated: 'role-updated',
276
+ RoleDeleted: 'role-deleted',
277
+ CommandExecuted: 'command-executed',
278
+ CommandExecutionDenied: 'command-execution-denied',
279
+ HookExecuted: 'hook-executed',
280
+ CronjobExecuted: 'cronjob-executed',
281
+ CurrencyAdded: 'currency-added',
282
+ CurrencyDeducted: 'currency-deducted',
283
+ CurrencyResetAll: 'currency-reset-all',
284
+ SettingsSet: 'settings-set',
285
+ PlayerNewIpDetected: 'player-new-ip-detected',
286
+ PlayerNewNameDetected: 'player-new-name-detected',
287
+ ServerStatusChanged: 'server-status-changed',
288
+ ModuleCreated: 'module-created',
289
+ ModuleUpdated: 'module-updated',
290
+ ModuleDeleted: 'module-deleted',
291
+ ModuleInstalled: 'module-installed',
292
+ ModuleUninstalled: 'module-uninstalled',
293
+ PlayerCreated: 'player-created',
294
+ ShopListingCreated: 'shop-listing-created',
295
+ ShopListingUpdated: 'shop-listing-updated',
296
+ ShopListingDeleted: 'shop-listing-deleted',
297
+ ShopOrderCreated: 'shop-order-created',
298
+ ShopOrderStatusChanged: 'shop-order-status-changed',
299
+ ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
300
+ PlayerLinked: 'player-linked',
301
+ GameserverCreated: 'gameserver-created',
302
+ GameserverUpdated: 'gameserver-updated',
303
+ GameserverDeleted: 'gameserver-deleted',
304
+ PlayerBanned: 'player-banned',
305
+ PlayerUnbanned: 'player-unbanned',
306
+ PlayerDeleted: 'player-deleted',
307
+ ShopActionExecuted: 'shop-action-executed',
308
+ PlayerInventoryChanged: 'player-inventory-changed',
309
+ EventRateLimited: 'event-rate-limited',
310
+ PlayerSyncSnapshot: 'player-sync-snapshot',
311
+ InviteLinkCreated: 'invite-link-created',
312
+ ApiKeyCreated: 'api-key-created',
313
+ ApiKeyRotated: 'api-key-rotated',
314
+ ApiKeyRevoked: 'api-key-revoked',
315
+ DomainCreated: 'domain-created',
316
+ DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
317
+ DomainPlanChanged: 'domain-plan-changed',
318
+ };
319
+ export const HookOutputDTOEventTypeEnum = {
320
+ Log: 'log',
321
+ PlayerConnected: 'player-connected',
322
+ PlayerDisconnected: 'player-disconnected',
323
+ ChatMessage: 'chat-message',
324
+ PlayerDeath: 'player-death',
325
+ EntityKilled: 'entity-killed',
326
+ DiscordMessage: 'discord-message',
327
+ RoleAssigned: 'role-assigned',
328
+ RoleRemoved: 'role-removed',
329
+ RoleCreated: 'role-created',
330
+ RoleUpdated: 'role-updated',
331
+ RoleDeleted: 'role-deleted',
332
+ CommandExecuted: 'command-executed',
333
+ CommandExecutionDenied: 'command-execution-denied',
334
+ HookExecuted: 'hook-executed',
335
+ CronjobExecuted: 'cronjob-executed',
336
+ CurrencyAdded: 'currency-added',
337
+ CurrencyDeducted: 'currency-deducted',
338
+ CurrencyResetAll: 'currency-reset-all',
339
+ SettingsSet: 'settings-set',
340
+ PlayerNewIpDetected: 'player-new-ip-detected',
341
+ PlayerNewNameDetected: 'player-new-name-detected',
342
+ ServerStatusChanged: 'server-status-changed',
343
+ ModuleCreated: 'module-created',
344
+ ModuleUpdated: 'module-updated',
345
+ ModuleDeleted: 'module-deleted',
346
+ ModuleInstalled: 'module-installed',
347
+ ModuleUninstalled: 'module-uninstalled',
348
+ PlayerCreated: 'player-created',
349
+ ShopListingCreated: 'shop-listing-created',
350
+ ShopListingUpdated: 'shop-listing-updated',
351
+ ShopListingDeleted: 'shop-listing-deleted',
352
+ ShopOrderCreated: 'shop-order-created',
353
+ ShopOrderStatusChanged: 'shop-order-status-changed',
354
+ ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
355
+ PlayerLinked: 'player-linked',
356
+ GameserverCreated: 'gameserver-created',
357
+ GameserverUpdated: 'gameserver-updated',
358
+ GameserverDeleted: 'gameserver-deleted',
359
+ PlayerBanned: 'player-banned',
360
+ PlayerUnbanned: 'player-unbanned',
361
+ PlayerDeleted: 'player-deleted',
362
+ ShopActionExecuted: 'shop-action-executed',
363
+ PlayerInventoryChanged: 'player-inventory-changed',
364
+ EventRateLimited: 'event-rate-limited',
365
+ PlayerSyncSnapshot: 'player-sync-snapshot',
366
+ InviteLinkCreated: 'invite-link-created',
367
+ ApiKeyCreated: 'api-key-created',
368
+ ApiKeyRotated: 'api-key-rotated',
369
+ ApiKeyRevoked: 'api-key-revoked',
370
+ DomainCreated: 'domain-created',
371
+ DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
372
+ DomainPlanChanged: 'domain-plan-changed',
373
+ };
374
+ export const HookTriggerDTOEventTypeEnum = {
375
+ Log: 'log',
376
+ PlayerConnected: 'player-connected',
377
+ PlayerDisconnected: 'player-disconnected',
378
+ ChatMessage: 'chat-message',
379
+ PlayerDeath: 'player-death',
380
+ EntityKilled: 'entity-killed',
381
+ DiscordMessage: 'discord-message',
382
+ RoleAssigned: 'role-assigned',
383
+ RoleRemoved: 'role-removed',
384
+ RoleCreated: 'role-created',
385
+ RoleUpdated: 'role-updated',
386
+ RoleDeleted: 'role-deleted',
387
+ CommandExecuted: 'command-executed',
388
+ CommandExecutionDenied: 'command-execution-denied',
389
+ HookExecuted: 'hook-executed',
390
+ CronjobExecuted: 'cronjob-executed',
391
+ CurrencyAdded: 'currency-added',
392
+ CurrencyDeducted: 'currency-deducted',
393
+ CurrencyResetAll: 'currency-reset-all',
394
+ SettingsSet: 'settings-set',
395
+ PlayerNewIpDetected: 'player-new-ip-detected',
396
+ PlayerNewNameDetected: 'player-new-name-detected',
397
+ ServerStatusChanged: 'server-status-changed',
398
+ ModuleCreated: 'module-created',
399
+ ModuleUpdated: 'module-updated',
400
+ ModuleDeleted: 'module-deleted',
401
+ ModuleInstalled: 'module-installed',
402
+ ModuleUninstalled: 'module-uninstalled',
403
+ PlayerCreated: 'player-created',
404
+ ShopListingCreated: 'shop-listing-created',
405
+ ShopListingUpdated: 'shop-listing-updated',
406
+ ShopListingDeleted: 'shop-listing-deleted',
407
+ ShopOrderCreated: 'shop-order-created',
408
+ ShopOrderStatusChanged: 'shop-order-status-changed',
409
+ ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
410
+ PlayerLinked: 'player-linked',
411
+ GameserverCreated: 'gameserver-created',
412
+ GameserverUpdated: 'gameserver-updated',
413
+ GameserverDeleted: 'gameserver-deleted',
414
+ PlayerBanned: 'player-banned',
415
+ PlayerUnbanned: 'player-unbanned',
416
+ PlayerDeleted: 'player-deleted',
417
+ ShopActionExecuted: 'shop-action-executed',
418
+ PlayerInventoryChanged: 'player-inventory-changed',
419
+ EventRateLimited: 'event-rate-limited',
420
+ PlayerSyncSnapshot: 'player-sync-snapshot',
421
+ InviteLinkCreated: 'invite-link-created',
422
+ ApiKeyCreated: 'api-key-created',
423
+ ApiKeyRotated: 'api-key-rotated',
424
+ ApiKeyRevoked: 'api-key-revoked',
425
+ DomainCreated: 'domain-created',
426
+ DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
427
+ DomainPlanChanged: 'domain-plan-changed',
428
+ };
429
+ export const HookUpdateDTOEventTypeEnum = {
430
+ Log: 'log',
431
+ PlayerConnected: 'player-connected',
432
+ PlayerDisconnected: 'player-disconnected',
433
+ ChatMessage: 'chat-message',
434
+ PlayerDeath: 'player-death',
435
+ EntityKilled: 'entity-killed',
436
+ DiscordMessage: 'discord-message',
437
+ RoleAssigned: 'role-assigned',
438
+ RoleRemoved: 'role-removed',
439
+ RoleCreated: 'role-created',
440
+ RoleUpdated: 'role-updated',
441
+ RoleDeleted: 'role-deleted',
442
+ CommandExecuted: 'command-executed',
443
+ CommandExecutionDenied: 'command-execution-denied',
444
+ HookExecuted: 'hook-executed',
445
+ CronjobExecuted: 'cronjob-executed',
446
+ CurrencyAdded: 'currency-added',
447
+ CurrencyDeducted: 'currency-deducted',
448
+ CurrencyResetAll: 'currency-reset-all',
449
+ SettingsSet: 'settings-set',
450
+ PlayerNewIpDetected: 'player-new-ip-detected',
451
+ PlayerNewNameDetected: 'player-new-name-detected',
452
+ ServerStatusChanged: 'server-status-changed',
453
+ ModuleCreated: 'module-created',
454
+ ModuleUpdated: 'module-updated',
455
+ ModuleDeleted: 'module-deleted',
456
+ ModuleInstalled: 'module-installed',
457
+ ModuleUninstalled: 'module-uninstalled',
458
+ PlayerCreated: 'player-created',
459
+ ShopListingCreated: 'shop-listing-created',
460
+ ShopListingUpdated: 'shop-listing-updated',
461
+ ShopListingDeleted: 'shop-listing-deleted',
462
+ ShopOrderCreated: 'shop-order-created',
463
+ ShopOrderStatusChanged: 'shop-order-status-changed',
464
+ ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
465
+ PlayerLinked: 'player-linked',
466
+ GameserverCreated: 'gameserver-created',
467
+ GameserverUpdated: 'gameserver-updated',
468
+ GameserverDeleted: 'gameserver-deleted',
469
+ PlayerBanned: 'player-banned',
470
+ PlayerUnbanned: 'player-unbanned',
471
+ PlayerDeleted: 'player-deleted',
472
+ ShopActionExecuted: 'shop-action-executed',
473
+ PlayerInventoryChanged: 'player-inventory-changed',
474
+ EventRateLimited: 'event-rate-limited',
475
+ PlayerSyncSnapshot: 'player-sync-snapshot',
476
+ InviteLinkCreated: 'invite-link-created',
477
+ ApiKeyCreated: 'api-key-created',
478
+ ApiKeyRotated: 'api-key-rotated',
479
+ ApiKeyRevoked: 'api-key-revoked',
480
+ DomainCreated: 'domain-created',
481
+ DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
482
+ DomainPlanChanged: 'domain-plan-changed',
483
+ };
484
+ export const IEntityDTOTypeEnum = {
485
+ Hostile: 'hostile',
486
+ Friendly: 'friendly',
487
+ Neutral: 'neutral',
488
+ };
489
+ export const IHookEventTypeEnum = {
490
+ Log: 'log',
491
+ PlayerConnected: 'player-connected',
492
+ PlayerDisconnected: 'player-disconnected',
493
+ ChatMessage: 'chat-message',
494
+ PlayerDeath: 'player-death',
495
+ EntityKilled: 'entity-killed',
496
+ DiscordMessage: 'discord-message',
497
+ RoleAssigned: 'role-assigned',
498
+ RoleRemoved: 'role-removed',
499
+ RoleCreated: 'role-created',
500
+ RoleUpdated: 'role-updated',
501
+ RoleDeleted: 'role-deleted',
502
+ CommandExecuted: 'command-executed',
503
+ CommandExecutionDenied: 'command-execution-denied',
504
+ HookExecuted: 'hook-executed',
505
+ CronjobExecuted: 'cronjob-executed',
506
+ CurrencyAdded: 'currency-added',
507
+ CurrencyDeducted: 'currency-deducted',
508
+ CurrencyResetAll: 'currency-reset-all',
509
+ SettingsSet: 'settings-set',
510
+ PlayerNewIpDetected: 'player-new-ip-detected',
511
+ PlayerNewNameDetected: 'player-new-name-detected',
512
+ ServerStatusChanged: 'server-status-changed',
513
+ ModuleCreated: 'module-created',
514
+ ModuleUpdated: 'module-updated',
515
+ ModuleDeleted: 'module-deleted',
516
+ ModuleInstalled: 'module-installed',
517
+ ModuleUninstalled: 'module-uninstalled',
518
+ PlayerCreated: 'player-created',
519
+ ShopListingCreated: 'shop-listing-created',
520
+ ShopListingUpdated: 'shop-listing-updated',
521
+ ShopListingDeleted: 'shop-listing-deleted',
522
+ ShopOrderCreated: 'shop-order-created',
523
+ ShopOrderStatusChanged: 'shop-order-status-changed',
524
+ ShopOrderDeliveryFailed: 'shop-order-delivery-failed',
525
+ PlayerLinked: 'player-linked',
526
+ GameserverCreated: 'gameserver-created',
527
+ GameserverUpdated: 'gameserver-updated',
528
+ GameserverDeleted: 'gameserver-deleted',
529
+ PlayerBanned: 'player-banned',
530
+ PlayerUnbanned: 'player-unbanned',
531
+ PlayerDeleted: 'player-deleted',
532
+ ShopActionExecuted: 'shop-action-executed',
533
+ PlayerInventoryChanged: 'player-inventory-changed',
534
+ EventRateLimited: 'event-rate-limited',
535
+ PlayerSyncSnapshot: 'player-sync-snapshot',
536
+ InviteLinkCreated: 'invite-link-created',
537
+ ApiKeyCreated: 'api-key-created',
538
+ ApiKeyRotated: 'api-key-rotated',
539
+ ApiKeyRevoked: 'api-key-revoked',
540
+ DomainCreated: 'domain-created',
541
+ DomainRegistrationTokenRegenerated: 'domain-registration-token-regenerated',
542
+ DomainPlanChanged: 'domain-plan-changed',
543
+ };
544
+ export const ITakaroQuerySortDirectionEnum = {
545
+ Asc: 'asc',
546
+ Desc: 'desc',
547
+ };
548
+ export const InviteLinkCreateResultDTOStatusEnum = {
549
+ Active: 'ACTIVE',
550
+ Revoked: 'REVOKED',
551
+ Expired: 'EXPIRED',
552
+ Depleted: 'DEPLETED',
553
+ };
554
+ export const InviteLinkOutputDTOStatusEnum = {
555
+ Active: 'ACTIVE',
556
+ Revoked: 'REVOKED',
557
+ Expired: 'EXPIRED',
558
+ Depleted: 'DEPLETED',
559
+ };
560
+ export const InviteLinkPreviewDTOStatusEnum = {
561
+ Active: 'ACTIVE',
562
+ Revoked: 'REVOKED',
563
+ Expired: 'EXPIRED',
564
+ Depleted: 'DEPLETED',
565
+ };
566
+ export const InviteLinkSearchInputDTOSortDirectionEnum = {
567
+ Asc: 'asc',
568
+ Desc: 'desc',
569
+ };
570
+ export const JobStatusOutputDTOStatusEnum = {
571
+ Pending: 'pending',
572
+ Completed: 'completed',
573
+ Failed: 'failed',
574
+ Active: 'active',
575
+ Delayed: 'delayed',
576
+ Prioritized: 'prioritized',
577
+ Waiting: 'waiting',
578
+ WaitingChildren: 'waiting-children',
579
+ };
580
+ export const ManagementDomainOutputDTOStateEnum = {
581
+ Active: 'ACTIVE',
582
+ Disabled: 'DISABLED',
583
+ Maintenance: 'MAINTENANCE',
584
+ };
585
+ export const OrderStatusCountDTOStatusEnum = {
586
+ Completed: 'COMPLETED',
587
+ Paid: 'PAID',
588
+ Canceled: 'CANCELED',
589
+ };
590
+ /**
591
+ *
592
+ * @export
593
+ * @enum {string}
594
+ */
595
+ export const PERMISSIONS = {
596
+ Root: 'ROOT',
597
+ ManageUsers: 'MANAGE_USERS',
598
+ ReadUsers: 'READ_USERS',
599
+ ManageRoles: 'MANAGE_ROLES',
600
+ ReadRoles: 'READ_ROLES',
601
+ ManageGameservers: 'MANAGE_GAMESERVERS',
602
+ ReadModules: 'READ_MODULES',
603
+ ManageModules: 'MANAGE_MODULES',
604
+ ReadPlayers: 'READ_PLAYERS',
605
+ ManagePlayers: 'MANAGE_PLAYERS',
606
+ ManageSettings: 'MANAGE_SETTINGS',
607
+ ReadSettings: 'READ_SETTINGS',
608
+ ReadVariables: 'READ_VARIABLES',
609
+ ManageVariables: 'MANAGE_VARIABLES',
610
+ ReadEvents: 'READ_EVENTS',
611
+ ManageEvents: 'MANAGE_EVENTS',
612
+ ReadItems: 'READ_ITEMS',
613
+ ManageItems: 'MANAGE_ITEMS',
614
+ ReadEntities: 'READ_ENTITIES',
615
+ ManageEntities: 'MANAGE_ENTITIES',
616
+ ManageShopListings: 'MANAGE_SHOP_LISTINGS',
617
+ ManageShopOrders: 'MANAGE_SHOP_ORDERS',
618
+ ViewDiscordInfo: 'VIEW_DISCORD_INFO',
619
+ SendDiscordMessage: 'SEND_DISCORD_MESSAGE',
620
+ ManageApiKeys: 'MANAGE_API_KEYS',
621
+ };
622
+ export const PlanPriceDTOIntervalEnum = {
623
+ Day: 'day',
624
+ Week: 'week',
625
+ Month: 'month',
626
+ Year: 'year',
627
+ };
628
+ export const PlayerOnGameServerSearchInputDTOExtendEnum = {
629
+ GameServer: 'gameServer',
630
+ Player: 'player',
631
+ };
632
+ export const PlayerOnGameServerSearchInputDTOSortDirectionEnum = {
633
+ Asc: 'asc',
634
+ Desc: 'desc',
635
+ };
636
+ export const PlayerSearchInputAllowedFiltersRoleAssignmentScopeEnum = {
637
+ Global: 'global',
638
+ GameServer: 'gameServer',
639
+ };
640
+ export const PlayerSearchInputDTOExtendEnum = {
641
+ PlayerOnGameServers: 'playerOnGameServers',
642
+ Roles: 'roles',
643
+ GameServers: 'gameServers',
644
+ RoleAssignments: 'roleAssignments',
645
+ };
646
+ export const PlayerSearchInputDTOSortDirectionEnum = {
647
+ Asc: 'asc',
648
+ Desc: 'desc',
649
+ };
650
+ export const RecentOrderDTOStatusEnum = {
651
+ Completed: 'COMPLETED',
652
+ Paid: 'PAID',
653
+ Canceled: 'CANCELED',
654
+ };
655
+ export const SettingsOutputDTOKeyEnum = {
656
+ CommandPrefix: 'commandPrefix',
657
+ ServerChatName: 'serverChatName',
658
+ EconomyEnabled: 'economyEnabled',
659
+ CurrencyName: 'currencyName',
660
+ DeveloperMode: 'developerMode',
661
+ MessagePrefix: 'messagePrefix',
662
+ DomainName: 'domainName',
663
+ DiscordRoleSyncEnabled: 'discordRoleSyncEnabled',
664
+ DiscordRoleSyncPreferDiscord: 'discordRoleSyncPreferDiscord',
665
+ UnknownCommandFeedbackEnabled: 'unknownCommandFeedbackEnabled',
666
+ UnknownCommandFeedbackMessage: 'unknownCommandFeedbackMessage',
667
+ };
668
+ export const SettingsOutputDTOTypeEnum = {
669
+ Override: 'override',
670
+ Inherit: 'inherit',
671
+ Global: 'global',
672
+ Default: 'default',
673
+ };
674
+ export const ShopListingBulkInputDTOActionEnum = {
675
+ Delete: 'delete',
676
+ Publish: 'publish',
677
+ Unpublish: 'unpublish',
678
+ };
679
+ export const ShopListingSearchInputDTOExtendEnum = {
680
+ GameServer: 'gameServer',
681
+ Items: 'items',
682
+ Categories: 'categories',
683
+ };
684
+ export const ShopListingSearchInputDTOSortDirectionEnum = {
685
+ Asc: 'asc',
686
+ Desc: 'desc',
687
+ };
688
+ export const ShopOrderOutputDTOStatusEnum = {
689
+ Completed: 'COMPLETED',
690
+ Paid: 'PAID',
691
+ Canceled: 'CANCELED',
692
+ };
693
+ export const ShopOrderUpdateDTOStatusEnum = {
694
+ Completed: 'COMPLETED',
695
+ Paid: 'PAID',
696
+ Canceled: 'CANCELED',
697
+ };
698
+ export const StaffMeOutputDTOTierEnum = {
699
+ Viewer: 'viewer',
700
+ Operator: 'operator',
701
+ Owner: 'owner',
702
+ };
703
+ export const TakaroEventPlayerInventoryChangedChangeTypeEnum = {
704
+ Added: 'added',
705
+ Removed: 'removed',
706
+ Changed: 'changed',
707
+ };
708
+ export const TakaroEventRateLimitedScopeEnum = {
709
+ Server: 'server',
710
+ Domain: 'domain',
711
+ Global: 'global',
712
+ };
713
+ export const UserSearchInputDTOExtendEnum = {
714
+ Roles: 'roles',
715
+ };
716
+ export const UserSearchInputDTOSortDirectionEnum = {
717
+ Asc: 'asc',
718
+ Desc: 'desc',
719
+ };
720
+ /**
721
+ * DistributorApi - axios parameter creator
722
+ * @export
723
+ */
724
+ export const DistributorApiAxiosParamCreator = function (configuration) {
725
+ return {
726
+ /**
727
+ * Attributes an existing domain to a distributor (ADR 0024 — attribution, never ownership) and creates the domain’s Distributor Service Account, the actor the distributor acts as inside the domain. Idempotent for the same distributor: a second attach returns the same service account id and writes nothing. Four refusals answer 400: the distributor is disabled; the domain still carries a subscription reference; the domain is already attributed to another distributor; the domain is DISABLED. A domain that still carries a subscription reference must be handed over in this order — cancel the subscription in Stripe, then clear the reference with PUT /domain/:id and \"externalReference\": null, then attach. Takaro never cancels a subscription implicitly. An unknown distributor id or domain id is a 404. No Plan is set here, and the domain keeps the limits it has.<br> OperationId: `DistributorControllerAttachDomain`
728
+ * @summary Attach an existing domain to a distributor
729
+ * @param {string} id
730
+ * @param {string} domainId
731
+ * @param {*} [options] Override http request option.
732
+ * @throws {RequiredError}
733
+ */
734
+ distributorControllerAttachDomain: async (id, domainId, options = {}) => {
735
+ // verify required parameter 'id' is not null or undefined
736
+ assertParamExists('distributorControllerAttachDomain', 'id', id);
737
+ // verify required parameter 'domainId' is not null or undefined
738
+ assertParamExists('distributorControllerAttachDomain', 'domainId', domainId);
739
+ const localVarPath = `/distributor/{id}/domain/{domainId}`
740
+ .replace(`{${'id'}}`, encodeURIComponent(String(id)))
741
+ .replace(`{${'domainId'}}`, encodeURIComponent(String(domainId)));
742
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
743
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
744
+ let baseOptions;
745
+ if (configuration) {
746
+ baseOptions = configuration.baseOptions;
747
+ }
748
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
749
+ const localVarHeaderParameter = {};
750
+ const localVarQueryParameter = {};
751
+ // authentication staffSession required
752
+ // authentication adminAuth required
753
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
754
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
755
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
756
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
757
+ return {
758
+ url: toPathString(localVarUrlObj),
759
+ options: localVarRequestOptions,
760
+ };
761
+ },
762
+ /**
763
+ * <br> OperationId: `DistributorControllerCreate`
764
+ * @summary Create
765
+ * @param {DistributorCreateInputDTO} [distributorCreateInputDTO] DistributorCreateInputDTO
766
+ * @param {*} [options] Override http request option.
767
+ * @throws {RequiredError}
768
+ */
769
+ distributorControllerCreate: async (distributorCreateInputDTO, options = {}) => {
770
+ const localVarPath = `/distributor`;
771
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
772
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
773
+ let baseOptions;
774
+ if (configuration) {
775
+ baseOptions = configuration.baseOptions;
776
+ }
777
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
778
+ const localVarHeaderParameter = {};
779
+ const localVarQueryParameter = {};
780
+ // authentication staffSession required
781
+ // authentication adminAuth required
782
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
783
+ localVarHeaderParameter['Content-Type'] = 'application/json';
784
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
785
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
786
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
787
+ localVarRequestOptions.data = serializeDataIfNeeded(distributorCreateInputDTO, localVarRequestOptions, configuration);
788
+ return {
789
+ url: toPathString(localVarUrlObj),
790
+ options: localVarRequestOptions,
791
+ };
792
+ },
793
+ /**
794
+ * Mints a Distributor Key and returns the secret ONCE — only its hash is stored, so it cannot be shown again. This is how staff hand a distributor its first credential; afterwards the distributor creates its own keys through the self-service routes. Creating a key for a disabled distributor is a 400.<br> OperationId: `DistributorControllerCreateKey`
795
+ * @summary Create a distributor key
796
+ * @param {string} id
797
+ * @param {DistributorKeyCreateInputDTO} [distributorKeyCreateInputDTO] DistributorKeyCreateInputDTO
798
+ * @param {*} [options] Override http request option.
799
+ * @throws {RequiredError}
800
+ */
801
+ distributorControllerCreateKey: async (id, distributorKeyCreateInputDTO, options = {}) => {
802
+ // verify required parameter 'id' is not null or undefined
803
+ assertParamExists('distributorControllerCreateKey', 'id', id);
804
+ const localVarPath = `/distributor/{id}/key`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
805
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
806
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
807
+ let baseOptions;
808
+ if (configuration) {
809
+ baseOptions = configuration.baseOptions;
810
+ }
811
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
812
+ const localVarHeaderParameter = {};
813
+ const localVarQueryParameter = {};
814
+ // authentication staffSession required
815
+ // authentication adminAuth required
816
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
817
+ localVarHeaderParameter['Content-Type'] = 'application/json';
818
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
819
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
820
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
821
+ localVarRequestOptions.data = serializeDataIfNeeded(distributorKeyCreateInputDTO, localVarRequestOptions, configuration);
822
+ return {
823
+ url: toPathString(localVarUrlObj),
824
+ options: localVarRequestOptions,
825
+ };
826
+ },
827
+ /**
828
+ * 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`
829
+ * @summary Disable a distributor
830
+ * @param {string} id
831
+ * @param {*} [options] Override http request option.
832
+ * @throws {RequiredError}
833
+ */
834
+ distributorControllerDisable: async (id, options = {}) => {
835
+ // verify required parameter 'id' is not null or undefined
836
+ assertParamExists('distributorControllerDisable', 'id', id);
837
+ const localVarPath = `/distributor/{id}/disable`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
838
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
839
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
840
+ let baseOptions;
841
+ if (configuration) {
842
+ baseOptions = configuration.baseOptions;
843
+ }
844
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
845
+ const localVarHeaderParameter = {};
846
+ const localVarQueryParameter = {};
847
+ // authentication staffSession required
848
+ // authentication adminAuth required
849
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
850
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
851
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
852
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
853
+ return {
854
+ url: toPathString(localVarUrlObj),
855
+ options: localVarRequestOptions,
856
+ };
857
+ },
858
+ /**
859
+ * Idempotent: enabling an already-enabled distributor succeeds and returns the unchanged row. Enabling is its own verb rather than a field on the update route, so there is exactly one way to flip the flag.<br> OperationId: `DistributorControllerEnable`
860
+ * @summary Enable a distributor
861
+ * @param {string} id
862
+ * @param {*} [options] Override http request option.
863
+ * @throws {RequiredError}
864
+ */
865
+ distributorControllerEnable: async (id, options = {}) => {
866
+ // verify required parameter 'id' is not null or undefined
867
+ assertParamExists('distributorControllerEnable', 'id', id);
868
+ const localVarPath = `/distributor/{id}/enable`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
869
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
870
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
871
+ let baseOptions;
872
+ if (configuration) {
873
+ baseOptions = configuration.baseOptions;
874
+ }
875
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
876
+ const localVarHeaderParameter = {};
877
+ const localVarQueryParameter = {};
878
+ // authentication staffSession required
879
+ // authentication adminAuth required
880
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
881
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
882
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
883
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
884
+ return {
885
+ url: toPathString(localVarUrlObj),
886
+ options: localVarRequestOptions,
887
+ };
888
+ },
889
+ /**
890
+ * <br> OperationId: `DistributorControllerGetOne`
891
+ * @summary Get one
892
+ * @param {string} id
893
+ * @param {*} [options] Override http request option.
894
+ * @throws {RequiredError}
895
+ */
896
+ distributorControllerGetOne: async (id, options = {}) => {
897
+ // verify required parameter 'id' is not null or undefined
898
+ assertParamExists('distributorControllerGetOne', 'id', id);
899
+ const localVarPath = `/distributor/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
900
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
901
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
902
+ let baseOptions;
903
+ if (configuration) {
904
+ baseOptions = configuration.baseOptions;
905
+ }
906
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
907
+ const localVarHeaderParameter = {};
908
+ const localVarQueryParameter = {};
909
+ // authentication staffSession required
910
+ // authentication adminAuth required
911
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
912
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
913
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
914
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
915
+ return {
916
+ url: toPathString(localVarUrlObj),
917
+ options: localVarRequestOptions,
918
+ };
919
+ },
920
+ /**
921
+ * Idempotent: revoking an already-revoked key succeeds. Both ids are taken so the key’s distributor is explicit in the URL; a mismatched pair is a 404 rather than confirming another distributor’s key id exists.<br> OperationId: `DistributorControllerRevokeKey`
922
+ * @summary Revoke a distributor key
923
+ * @param {string} id
924
+ * @param {string} keyId
925
+ * @param {*} [options] Override http request option.
926
+ * @throws {RequiredError}
927
+ */
928
+ distributorControllerRevokeKey: async (id, keyId, options = {}) => {
929
+ // verify required parameter 'id' is not null or undefined
930
+ assertParamExists('distributorControllerRevokeKey', 'id', id);
931
+ // verify required parameter 'keyId' is not null or undefined
932
+ assertParamExists('distributorControllerRevokeKey', 'keyId', keyId);
933
+ const localVarPath = `/distributor/{id}/key/{keyId}`
934
+ .replace(`{${'id'}}`, encodeURIComponent(String(id)))
935
+ .replace(`{${'keyId'}}`, encodeURIComponent(String(keyId)));
936
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
937
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
938
+ let baseOptions;
939
+ if (configuration) {
940
+ baseOptions = configuration.baseOptions;
941
+ }
942
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
943
+ const localVarHeaderParameter = {};
944
+ const localVarQueryParameter = {};
945
+ // authentication staffSession required
946
+ // authentication adminAuth required
947
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
948
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
949
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
950
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
951
+ return {
952
+ url: toPathString(localVarUrlObj),
953
+ options: localVarRequestOptions,
954
+ };
955
+ },
956
+ /**
957
+ * <br> OperationId: `DistributorControllerSearch`
958
+ * @summary Search
959
+ * @param {DistributorSearchInputDTO} [distributorSearchInputDTO] DistributorSearchInputDTO
960
+ * @param {*} [options] Override http request option.
961
+ * @throws {RequiredError}
962
+ */
963
+ distributorControllerSearch: async (distributorSearchInputDTO, options = {}) => {
964
+ const localVarPath = `/distributor/search`;
965
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
966
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
967
+ let baseOptions;
968
+ if (configuration) {
969
+ baseOptions = configuration.baseOptions;
970
+ }
971
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
972
+ const localVarHeaderParameter = {};
973
+ const localVarQueryParameter = {};
974
+ // authentication staffSession required
975
+ // authentication adminAuth required
976
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
977
+ localVarHeaderParameter['Content-Type'] = 'application/json';
978
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
979
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
980
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
981
+ localVarRequestOptions.data = serializeDataIfNeeded(distributorSearchInputDTO, localVarRequestOptions, configuration);
982
+ return {
983
+ url: toPathString(localVarUrlObj),
984
+ options: localVarRequestOptions,
985
+ };
986
+ },
987
+ /**
988
+ * 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`
989
+ * @summary Search a distributor’s keys
990
+ * @param {string} id
991
+ * @param {DistributorKeySearchInputDTO} [distributorKeySearchInputDTO] DistributorKeySearchInputDTO
992
+ * @param {*} [options] Override http request option.
993
+ * @throws {RequiredError}
994
+ */
995
+ distributorControllerSearchKeys: async (id, distributorKeySearchInputDTO, options = {}) => {
996
+ // verify required parameter 'id' is not null or undefined
997
+ assertParamExists('distributorControllerSearchKeys', 'id', id);
998
+ const localVarPath = `/distributor/{id}/key/search`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
999
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1000
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1001
+ let baseOptions;
1002
+ if (configuration) {
1003
+ baseOptions = configuration.baseOptions;
1004
+ }
1005
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1006
+ const localVarHeaderParameter = {};
1007
+ const localVarQueryParameter = {};
1008
+ // authentication staffSession required
1009
+ // authentication adminAuth required
1010
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
1011
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1012
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1013
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1014
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1015
+ localVarRequestOptions.data = serializeDataIfNeeded(distributorKeySearchInputDTO, localVarRequestOptions, configuration);
1016
+ return {
1017
+ url: toPathString(localVarUrlObj),
1018
+ options: localVarRequestOptions,
1019
+ };
1020
+ },
1021
+ /**
1022
+ * <br> OperationId: `DistributorControllerUpdate`
1023
+ * @summary Update
1024
+ * @param {string} id
1025
+ * @param {DistributorUpdateInputDTO} [distributorUpdateInputDTO] DistributorUpdateInputDTO
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ distributorControllerUpdate: async (id, distributorUpdateInputDTO, options = {}) => {
1030
+ // verify required parameter 'id' is not null or undefined
1031
+ assertParamExists('distributorControllerUpdate', 'id', id);
1032
+ const localVarPath = `/distributor/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
1033
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1034
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1035
+ let baseOptions;
1036
+ if (configuration) {
1037
+ baseOptions = configuration.baseOptions;
1038
+ }
1039
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
1040
+ const localVarHeaderParameter = {};
1041
+ const localVarQueryParameter = {};
1042
+ // authentication staffSession required
1043
+ // authentication adminAuth required
1044
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
1045
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1046
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1047
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1048
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1049
+ localVarRequestOptions.data = serializeDataIfNeeded(distributorUpdateInputDTO, localVarRequestOptions, configuration);
1050
+ return {
1051
+ url: toPathString(localVarUrlObj),
1052
+ options: localVarRequestOptions,
1053
+ };
1054
+ },
1055
+ };
1056
+ };
1057
+ /**
1058
+ * DistributorApi - functional programming interface
1059
+ * @export
1060
+ */
1061
+ export const DistributorApiFp = function (configuration) {
1062
+ const localVarAxiosParamCreator = DistributorApiAxiosParamCreator(configuration);
1063
+ return {
1064
+ /**
1065
+ * Attributes an existing domain to a distributor (ADR 0024 — attribution, never ownership) and creates the domain’s Distributor Service Account, the actor the distributor acts as inside the domain. Idempotent for the same distributor: a second attach returns the same service account id and writes nothing. Four refusals answer 400: the distributor is disabled; the domain still carries a subscription reference; the domain is already attributed to another distributor; the domain is DISABLED. A domain that still carries a subscription reference must be handed over in this order — cancel the subscription in Stripe, then clear the reference with PUT /domain/:id and \"externalReference\": null, then attach. Takaro never cancels a subscription implicitly. An unknown distributor id or domain id is a 404. No Plan is set here, and the domain keeps the limits it has.<br> OperationId: `DistributorControllerAttachDomain`
1066
+ * @summary Attach an existing domain to a distributor
1067
+ * @param {string} id
1068
+ * @param {string} domainId
1069
+ * @param {*} [options] Override http request option.
1070
+ * @throws {RequiredError}
1071
+ */
1072
+ async distributorControllerAttachDomain(id, domainId, options) {
1073
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorControllerAttachDomain(id, domainId, options);
1074
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1075
+ const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerAttachDomain']?.[localVarOperationServerIndex]?.url;
1076
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1077
+ },
1078
+ /**
1079
+ * <br> OperationId: `DistributorControllerCreate`
1080
+ * @summary Create
1081
+ * @param {DistributorCreateInputDTO} [distributorCreateInputDTO] DistributorCreateInputDTO
1082
+ * @param {*} [options] Override http request option.
1083
+ * @throws {RequiredError}
1084
+ */
1085
+ async distributorControllerCreate(distributorCreateInputDTO, options) {
1086
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorControllerCreate(distributorCreateInputDTO, options);
1087
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1088
+ const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerCreate']?.[localVarOperationServerIndex]?.url;
1089
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1090
+ },
1091
+ /**
1092
+ * Mints a Distributor Key and returns the secret ONCE — only its hash is stored, so it cannot be shown again. This is how staff hand a distributor its first credential; afterwards the distributor creates its own keys through the self-service routes. Creating a key for a disabled distributor is a 400.<br> OperationId: `DistributorControllerCreateKey`
1093
+ * @summary Create a distributor key
1094
+ * @param {string} id
1095
+ * @param {DistributorKeyCreateInputDTO} [distributorKeyCreateInputDTO] DistributorKeyCreateInputDTO
1096
+ * @param {*} [options] Override http request option.
1097
+ * @throws {RequiredError}
1098
+ */
1099
+ async distributorControllerCreateKey(id, distributorKeyCreateInputDTO, options) {
1100
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorControllerCreateKey(id, distributorKeyCreateInputDTO, options);
1101
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1102
+ const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerCreateKey']?.[localVarOperationServerIndex]?.url;
1103
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1104
+ },
1105
+ /**
1106
+ * 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`
1107
+ * @summary Disable a distributor
1108
+ * @param {string} id
1109
+ * @param {*} [options] Override http request option.
1110
+ * @throws {RequiredError}
1111
+ */
1112
+ async distributorControllerDisable(id, options) {
1113
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorControllerDisable(id, options);
1114
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1115
+ const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerDisable']?.[localVarOperationServerIndex]?.url;
1116
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1117
+ },
1118
+ /**
1119
+ * Idempotent: enabling an already-enabled distributor succeeds and returns the unchanged row. Enabling is its own verb rather than a field on the update route, so there is exactly one way to flip the flag.<br> OperationId: `DistributorControllerEnable`
1120
+ * @summary Enable a distributor
1121
+ * @param {string} id
1122
+ * @param {*} [options] Override http request option.
1123
+ * @throws {RequiredError}
1124
+ */
1125
+ async distributorControllerEnable(id, options) {
1126
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorControllerEnable(id, options);
1127
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1128
+ const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerEnable']?.[localVarOperationServerIndex]?.url;
1129
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1130
+ },
1131
+ /**
1132
+ * <br> OperationId: `DistributorControllerGetOne`
1133
+ * @summary Get one
1134
+ * @param {string} id
1135
+ * @param {*} [options] Override http request option.
1136
+ * @throws {RequiredError}
1137
+ */
1138
+ async distributorControllerGetOne(id, options) {
1139
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorControllerGetOne(id, options);
1140
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1141
+ const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerGetOne']?.[localVarOperationServerIndex]?.url;
1142
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1143
+ },
1144
+ /**
1145
+ * Idempotent: revoking an already-revoked key succeeds. Both ids are taken so the key’s distributor is explicit in the URL; a mismatched pair is a 404 rather than confirming another distributor’s key id exists.<br> OperationId: `DistributorControllerRevokeKey`
1146
+ * @summary Revoke a distributor key
1147
+ * @param {string} id
1148
+ * @param {string} keyId
1149
+ * @param {*} [options] Override http request option.
1150
+ * @throws {RequiredError}
1151
+ */
1152
+ async distributorControllerRevokeKey(id, keyId, options) {
1153
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorControllerRevokeKey(id, keyId, options);
1154
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1155
+ const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerRevokeKey']?.[localVarOperationServerIndex]?.url;
1156
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1157
+ },
1158
+ /**
1159
+ * <br> OperationId: `DistributorControllerSearch`
1160
+ * @summary Search
1161
+ * @param {DistributorSearchInputDTO} [distributorSearchInputDTO] DistributorSearchInputDTO
1162
+ * @param {*} [options] Override http request option.
1163
+ * @throws {RequiredError}
1164
+ */
1165
+ async distributorControllerSearch(distributorSearchInputDTO, options) {
1166
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorControllerSearch(distributorSearchInputDTO, options);
1167
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1168
+ const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerSearch']?.[localVarOperationServerIndex]?.url;
1169
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1170
+ },
1171
+ /**
1172
+ * 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`
1173
+ * @summary Search a distributor’s keys
1174
+ * @param {string} id
1175
+ * @param {DistributorKeySearchInputDTO} [distributorKeySearchInputDTO] DistributorKeySearchInputDTO
1176
+ * @param {*} [options] Override http request option.
1177
+ * @throws {RequiredError}
1178
+ */
1179
+ async distributorControllerSearchKeys(id, distributorKeySearchInputDTO, options) {
1180
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorControllerSearchKeys(id, distributorKeySearchInputDTO, options);
1181
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1182
+ const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerSearchKeys']?.[localVarOperationServerIndex]?.url;
1183
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1184
+ },
1185
+ /**
1186
+ * <br> OperationId: `DistributorControllerUpdate`
1187
+ * @summary Update
1188
+ * @param {string} id
1189
+ * @param {DistributorUpdateInputDTO} [distributorUpdateInputDTO] DistributorUpdateInputDTO
1190
+ * @param {*} [options] Override http request option.
1191
+ * @throws {RequiredError}
1192
+ */
1193
+ async distributorControllerUpdate(id, distributorUpdateInputDTO, options) {
1194
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorControllerUpdate(id, distributorUpdateInputDTO, options);
1195
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1196
+ const localVarOperationServerBasePath = operationServerMap['DistributorApi.distributorControllerUpdate']?.[localVarOperationServerIndex]?.url;
1197
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1198
+ },
1199
+ };
1200
+ };
1201
+ /**
1202
+ * DistributorApi - factory interface
1203
+ * @export
1204
+ */
1205
+ export const DistributorApiFactory = function (configuration, basePath, axios) {
1206
+ const localVarFp = DistributorApiFp(configuration);
1207
+ return {
1208
+ /**
1209
+ * Attributes an existing domain to a distributor (ADR 0024 — attribution, never ownership) and creates the domain’s Distributor Service Account, the actor the distributor acts as inside the domain. Idempotent for the same distributor: a second attach returns the same service account id and writes nothing. Four refusals answer 400: the distributor is disabled; the domain still carries a subscription reference; the domain is already attributed to another distributor; the domain is DISABLED. A domain that still carries a subscription reference must be handed over in this order — cancel the subscription in Stripe, then clear the reference with PUT /domain/:id and \"externalReference\": null, then attach. Takaro never cancels a subscription implicitly. An unknown distributor id or domain id is a 404. No Plan is set here, and the domain keeps the limits it has.<br> OperationId: `DistributorControllerAttachDomain`
1210
+ * @summary Attach an existing domain to a distributor
1211
+ * @param {string} id
1212
+ * @param {string} domainId
1213
+ * @param {*} [options] Override http request option.
1214
+ * @throws {RequiredError}
1215
+ */
1216
+ distributorControllerAttachDomain(id, domainId, options) {
1217
+ return localVarFp
1218
+ .distributorControllerAttachDomain(id, domainId, options)
1219
+ .then((request) => request(axios, basePath));
1220
+ },
1221
+ /**
1222
+ * <br> OperationId: `DistributorControllerCreate`
1223
+ * @summary Create
1224
+ * @param {DistributorCreateInputDTO} [distributorCreateInputDTO] DistributorCreateInputDTO
1225
+ * @param {*} [options] Override http request option.
1226
+ * @throws {RequiredError}
1227
+ */
1228
+ distributorControllerCreate(distributorCreateInputDTO, options) {
1229
+ return localVarFp
1230
+ .distributorControllerCreate(distributorCreateInputDTO, options)
1231
+ .then((request) => request(axios, basePath));
1232
+ },
1233
+ /**
1234
+ * Mints a Distributor Key and returns the secret ONCE — only its hash is stored, so it cannot be shown again. This is how staff hand a distributor its first credential; afterwards the distributor creates its own keys through the self-service routes. Creating a key for a disabled distributor is a 400.<br> OperationId: `DistributorControllerCreateKey`
1235
+ * @summary Create a distributor key
1236
+ * @param {string} id
1237
+ * @param {DistributorKeyCreateInputDTO} [distributorKeyCreateInputDTO] DistributorKeyCreateInputDTO
1238
+ * @param {*} [options] Override http request option.
1239
+ * @throws {RequiredError}
1240
+ */
1241
+ distributorControllerCreateKey(id, distributorKeyCreateInputDTO, options) {
1242
+ return localVarFp
1243
+ .distributorControllerCreateKey(id, distributorKeyCreateInputDTO, options)
1244
+ .then((request) => request(axios, basePath));
1245
+ },
1246
+ /**
1247
+ * 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`
1248
+ * @summary Disable a distributor
1249
+ * @param {string} id
1250
+ * @param {*} [options] Override http request option.
1251
+ * @throws {RequiredError}
1252
+ */
1253
+ distributorControllerDisable(id, options) {
1254
+ return localVarFp.distributorControllerDisable(id, options).then((request) => request(axios, basePath));
1255
+ },
1256
+ /**
1257
+ * Idempotent: enabling an already-enabled distributor succeeds and returns the unchanged row. Enabling is its own verb rather than a field on the update route, so there is exactly one way to flip the flag.<br> OperationId: `DistributorControllerEnable`
1258
+ * @summary Enable a distributor
1259
+ * @param {string} id
1260
+ * @param {*} [options] Override http request option.
1261
+ * @throws {RequiredError}
1262
+ */
1263
+ distributorControllerEnable(id, options) {
1264
+ return localVarFp.distributorControllerEnable(id, options).then((request) => request(axios, basePath));
1265
+ },
1266
+ /**
1267
+ * <br> OperationId: `DistributorControllerGetOne`
1268
+ * @summary Get one
1269
+ * @param {string} id
1270
+ * @param {*} [options] Override http request option.
1271
+ * @throws {RequiredError}
1272
+ */
1273
+ distributorControllerGetOne(id, options) {
1274
+ return localVarFp.distributorControllerGetOne(id, options).then((request) => request(axios, basePath));
1275
+ },
1276
+ /**
1277
+ * Idempotent: revoking an already-revoked key succeeds. Both ids are taken so the key’s distributor is explicit in the URL; a mismatched pair is a 404 rather than confirming another distributor’s key id exists.<br> OperationId: `DistributorControllerRevokeKey`
1278
+ * @summary Revoke a distributor key
1279
+ * @param {string} id
1280
+ * @param {string} keyId
1281
+ * @param {*} [options] Override http request option.
1282
+ * @throws {RequiredError}
1283
+ */
1284
+ distributorControllerRevokeKey(id, keyId, options) {
1285
+ return localVarFp.distributorControllerRevokeKey(id, keyId, options).then((request) => request(axios, basePath));
1286
+ },
1287
+ /**
1288
+ * <br> OperationId: `DistributorControllerSearch`
1289
+ * @summary Search
1290
+ * @param {DistributorSearchInputDTO} [distributorSearchInputDTO] DistributorSearchInputDTO
1291
+ * @param {*} [options] Override http request option.
1292
+ * @throws {RequiredError}
1293
+ */
1294
+ distributorControllerSearch(distributorSearchInputDTO, options) {
1295
+ return localVarFp
1296
+ .distributorControllerSearch(distributorSearchInputDTO, options)
1297
+ .then((request) => request(axios, basePath));
1298
+ },
1299
+ /**
1300
+ * 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`
1301
+ * @summary Search a distributor’s keys
1302
+ * @param {string} id
1303
+ * @param {DistributorKeySearchInputDTO} [distributorKeySearchInputDTO] DistributorKeySearchInputDTO
1304
+ * @param {*} [options] Override http request option.
1305
+ * @throws {RequiredError}
1306
+ */
1307
+ distributorControllerSearchKeys(id, distributorKeySearchInputDTO, options) {
1308
+ return localVarFp
1309
+ .distributorControllerSearchKeys(id, distributorKeySearchInputDTO, options)
1310
+ .then((request) => request(axios, basePath));
1311
+ },
1312
+ /**
1313
+ * <br> OperationId: `DistributorControllerUpdate`
1314
+ * @summary Update
1315
+ * @param {string} id
1316
+ * @param {DistributorUpdateInputDTO} [distributorUpdateInputDTO] DistributorUpdateInputDTO
1317
+ * @param {*} [options] Override http request option.
1318
+ * @throws {RequiredError}
1319
+ */
1320
+ distributorControllerUpdate(id, distributorUpdateInputDTO, options) {
1321
+ return localVarFp
1322
+ .distributorControllerUpdate(id, distributorUpdateInputDTO, options)
1323
+ .then((request) => request(axios, basePath));
1324
+ },
1325
+ };
1326
+ };
1327
+ /**
1328
+ * DistributorApi - object-oriented interface
1329
+ * @export
1330
+ * @class DistributorApi
1331
+ * @extends {BaseAPI}
1332
+ */
1333
+ export class DistributorApi extends BaseAPI {
1334
+ /**
1335
+ * Attributes an existing domain to a distributor (ADR 0024 — attribution, never ownership) and creates the domain’s Distributor Service Account, the actor the distributor acts as inside the domain. Idempotent for the same distributor: a second attach returns the same service account id and writes nothing. Four refusals answer 400: the distributor is disabled; the domain still carries a subscription reference; the domain is already attributed to another distributor; the domain is DISABLED. A domain that still carries a subscription reference must be handed over in this order — cancel the subscription in Stripe, then clear the reference with PUT /domain/:id and \"externalReference\": null, then attach. Takaro never cancels a subscription implicitly. An unknown distributor id or domain id is a 404. No Plan is set here, and the domain keeps the limits it has.<br> OperationId: `DistributorControllerAttachDomain`
1336
+ * @summary Attach an existing domain to a distributor
1337
+ * @param {string} id
1338
+ * @param {string} domainId
1339
+ * @param {*} [options] Override http request option.
1340
+ * @throws {RequiredError}
1341
+ * @memberof DistributorApi
1342
+ */
1343
+ distributorControllerAttachDomain(id, domainId, options) {
1344
+ return DistributorApiFp(this.configuration)
1345
+ .distributorControllerAttachDomain(id, domainId, options)
1346
+ .then((request) => request(this.axios, this.basePath));
1347
+ }
1348
+ /**
1349
+ * <br> OperationId: `DistributorControllerCreate`
1350
+ * @summary Create
1351
+ * @param {DistributorCreateInputDTO} [distributorCreateInputDTO] DistributorCreateInputDTO
1352
+ * @param {*} [options] Override http request option.
1353
+ * @throws {RequiredError}
1354
+ * @memberof DistributorApi
1355
+ */
1356
+ distributorControllerCreate(distributorCreateInputDTO, options) {
1357
+ return DistributorApiFp(this.configuration)
1358
+ .distributorControllerCreate(distributorCreateInputDTO, options)
1359
+ .then((request) => request(this.axios, this.basePath));
1360
+ }
1361
+ /**
1362
+ * Mints a Distributor Key and returns the secret ONCE — only its hash is stored, so it cannot be shown again. This is how staff hand a distributor its first credential; afterwards the distributor creates its own keys through the self-service routes. Creating a key for a disabled distributor is a 400.<br> OperationId: `DistributorControllerCreateKey`
1363
+ * @summary Create a distributor key
1364
+ * @param {string} id
1365
+ * @param {DistributorKeyCreateInputDTO} [distributorKeyCreateInputDTO] DistributorKeyCreateInputDTO
1366
+ * @param {*} [options] Override http request option.
1367
+ * @throws {RequiredError}
1368
+ * @memberof DistributorApi
1369
+ */
1370
+ distributorControllerCreateKey(id, distributorKeyCreateInputDTO, options) {
1371
+ return DistributorApiFp(this.configuration)
1372
+ .distributorControllerCreateKey(id, distributorKeyCreateInputDTO, options)
1373
+ .then((request) => request(this.axios, this.basePath));
1374
+ }
1375
+ /**
1376
+ * 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`
1377
+ * @summary Disable a distributor
1378
+ * @param {string} id
1379
+ * @param {*} [options] Override http request option.
1380
+ * @throws {RequiredError}
1381
+ * @memberof DistributorApi
1382
+ */
1383
+ distributorControllerDisable(id, options) {
1384
+ return DistributorApiFp(this.configuration)
1385
+ .distributorControllerDisable(id, options)
1386
+ .then((request) => request(this.axios, this.basePath));
1387
+ }
1388
+ /**
1389
+ * Idempotent: enabling an already-enabled distributor succeeds and returns the unchanged row. Enabling is its own verb rather than a field on the update route, so there is exactly one way to flip the flag.<br> OperationId: `DistributorControllerEnable`
1390
+ * @summary Enable a distributor
1391
+ * @param {string} id
1392
+ * @param {*} [options] Override http request option.
1393
+ * @throws {RequiredError}
1394
+ * @memberof DistributorApi
1395
+ */
1396
+ distributorControllerEnable(id, options) {
1397
+ return DistributorApiFp(this.configuration)
1398
+ .distributorControllerEnable(id, options)
1399
+ .then((request) => request(this.axios, this.basePath));
1400
+ }
1401
+ /**
1402
+ * <br> OperationId: `DistributorControllerGetOne`
1403
+ * @summary Get one
1404
+ * @param {string} id
1405
+ * @param {*} [options] Override http request option.
1406
+ * @throws {RequiredError}
1407
+ * @memberof DistributorApi
1408
+ */
1409
+ distributorControllerGetOne(id, options) {
1410
+ return DistributorApiFp(this.configuration)
1411
+ .distributorControllerGetOne(id, options)
1412
+ .then((request) => request(this.axios, this.basePath));
1413
+ }
1414
+ /**
1415
+ * Idempotent: revoking an already-revoked key succeeds. Both ids are taken so the key’s distributor is explicit in the URL; a mismatched pair is a 404 rather than confirming another distributor’s key id exists.<br> OperationId: `DistributorControllerRevokeKey`
1416
+ * @summary Revoke a distributor key
1417
+ * @param {string} id
1418
+ * @param {string} keyId
1419
+ * @param {*} [options] Override http request option.
1420
+ * @throws {RequiredError}
1421
+ * @memberof DistributorApi
1422
+ */
1423
+ distributorControllerRevokeKey(id, keyId, options) {
1424
+ return DistributorApiFp(this.configuration)
1425
+ .distributorControllerRevokeKey(id, keyId, options)
1426
+ .then((request) => request(this.axios, this.basePath));
1427
+ }
1428
+ /**
1429
+ * <br> OperationId: `DistributorControllerSearch`
1430
+ * @summary Search
1431
+ * @param {DistributorSearchInputDTO} [distributorSearchInputDTO] DistributorSearchInputDTO
1432
+ * @param {*} [options] Override http request option.
1433
+ * @throws {RequiredError}
1434
+ * @memberof DistributorApi
1435
+ */
1436
+ distributorControllerSearch(distributorSearchInputDTO, options) {
1437
+ return DistributorApiFp(this.configuration)
1438
+ .distributorControllerSearch(distributorSearchInputDTO, options)
1439
+ .then((request) => request(this.axios, this.basePath));
1440
+ }
1441
+ /**
1442
+ * 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`
1443
+ * @summary Search a distributor’s keys
1444
+ * @param {string} id
1445
+ * @param {DistributorKeySearchInputDTO} [distributorKeySearchInputDTO] DistributorKeySearchInputDTO
1446
+ * @param {*} [options] Override http request option.
1447
+ * @throws {RequiredError}
1448
+ * @memberof DistributorApi
1449
+ */
1450
+ distributorControllerSearchKeys(id, distributorKeySearchInputDTO, options) {
1451
+ return DistributorApiFp(this.configuration)
1452
+ .distributorControllerSearchKeys(id, distributorKeySearchInputDTO, options)
1453
+ .then((request) => request(this.axios, this.basePath));
1454
+ }
1455
+ /**
1456
+ * <br> OperationId: `DistributorControllerUpdate`
1457
+ * @summary Update
1458
+ * @param {string} id
1459
+ * @param {DistributorUpdateInputDTO} [distributorUpdateInputDTO] DistributorUpdateInputDTO
1460
+ * @param {*} [options] Override http request option.
1461
+ * @throws {RequiredError}
1462
+ * @memberof DistributorApi
1463
+ */
1464
+ distributorControllerUpdate(id, distributorUpdateInputDTO, options) {
1465
+ return DistributorApiFp(this.configuration)
1466
+ .distributorControllerUpdate(id, distributorUpdateInputDTO, options)
1467
+ .then((request) => request(this.axios, this.basePath));
1468
+ }
1469
+ }
1470
+ /**
1471
+ * DistributorSelfServiceApi - axios parameter creator
1472
+ * @export
1473
+ */
1474
+ export const DistributorSelfServiceApiAxiosParamCreator = function (configuration) {
1475
+ return {
1476
+ /**
1477
+ * Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan, applied by the billing reconciler within seconds; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
1478
+ * @summary Create a domain
1479
+ * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
1480
+ * @param {*} [options] Override http request option.
1481
+ * @throws {RequiredError}
1482
+ */
1483
+ distributorSelfServiceControllerCreateDomain: async (distributorDomainCreateInputDTO, options = {}) => {
1484
+ const localVarPath = `/me/domain`;
1485
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1486
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1487
+ let baseOptions;
1488
+ if (configuration) {
1489
+ baseOptions = configuration.baseOptions;
1490
+ }
1491
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1492
+ const localVarHeaderParameter = {};
1493
+ const localVarQueryParameter = {};
1494
+ // authentication distributorAuth required
1495
+ // http bearer authentication required
1496
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1497
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1498
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1499
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1500
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1501
+ localVarRequestOptions.data = serializeDataIfNeeded(distributorDomainCreateInputDTO, localVarRequestOptions, configuration);
1502
+ return {
1503
+ url: toPathString(localVarUrlObj),
1504
+ options: localVarRequestOptions,
1505
+ };
1506
+ },
1507
+ /**
1508
+ * Onboards the distributor’s customer into the domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. The link grants the domain’s seeded `Admin` role, so the customer who redeems it operates their own domain; `roleIds` is deliberately not accepted. Defaults to 7 days and a single use. Attribution is the domain’s Distributor Service Account, so the event feed names the distributor.<br> OperationId: `DistributorSelfServiceControllerCreateInviteLink`
1509
+ * @summary Create an invite link for one of my domains
1510
+ * @param {string} id
1511
+ * @param {DistributorInviteLinkCreateInputDTO} [distributorInviteLinkCreateInputDTO] DistributorInviteLinkCreateInputDTO
1512
+ * @param {*} [options] Override http request option.
1513
+ * @throws {RequiredError}
1514
+ */
1515
+ distributorSelfServiceControllerCreateInviteLink: async (id, distributorInviteLinkCreateInputDTO, options = {}) => {
1516
+ // verify required parameter 'id' is not null or undefined
1517
+ assertParamExists('distributorSelfServiceControllerCreateInviteLink', 'id', id);
1518
+ const localVarPath = `/me/domain/{id}/invite-link`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
1519
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1520
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1521
+ let baseOptions;
1522
+ if (configuration) {
1523
+ baseOptions = configuration.baseOptions;
1524
+ }
1525
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1526
+ const localVarHeaderParameter = {};
1527
+ const localVarQueryParameter = {};
1528
+ // authentication distributorAuth required
1529
+ // http bearer authentication required
1530
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1531
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1532
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1533
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1534
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1535
+ localVarRequestOptions.data = serializeDataIfNeeded(distributorInviteLinkCreateInputDTO, localVarRequestOptions, configuration);
1536
+ return {
1537
+ url: toPathString(localVarUrlObj),
1538
+ options: localVarRequestOptions,
1539
+ };
1540
+ },
1541
+ /**
1542
+ * Creates another key for the calling distributor and returns the secret ONCE. Requires a valid existing key: a distributor whose every key is revoked goes back to staff for a new one.<br> OperationId: `DistributorSelfServiceControllerCreateKey`
1543
+ * @summary Create a distributor key
1544
+ * @param {DistributorKeyCreateInputDTO} [distributorKeyCreateInputDTO] DistributorKeyCreateInputDTO
1545
+ * @param {*} [options] Override http request option.
1546
+ * @throws {RequiredError}
1547
+ */
1548
+ distributorSelfServiceControllerCreateKey: async (distributorKeyCreateInputDTO, options = {}) => {
1549
+ const localVarPath = `/me/key`;
1550
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1551
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1552
+ let baseOptions;
1553
+ if (configuration) {
1554
+ baseOptions = configuration.baseOptions;
1555
+ }
1556
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1557
+ const localVarHeaderParameter = {};
1558
+ const localVarQueryParameter = {};
1559
+ // authentication distributorAuth required
1560
+ // http bearer authentication required
1561
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1562
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1563
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1565
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1566
+ localVarRequestOptions.data = serializeDataIfNeeded(distributorKeyCreateInputDTO, localVarRequestOptions, configuration);
1567
+ return {
1568
+ url: toPathString(localVarUrlObj),
1569
+ options: localVarRequestOptions,
1570
+ };
1571
+ },
1572
+ /**
1573
+ * Includes the domain’s `serverRegistrationToken`. Another distributor’s domain, an unattributed domain and an id that was never issued are all a 404 — never a 403, so existence does not leak.<br> OperationId: `DistributorSelfServiceControllerGetDomain`
1574
+ * @summary Get one of my domains
1575
+ * @param {string} id
1576
+ * @param {*} [options] Override http request option.
1577
+ * @throws {RequiredError}
1578
+ */
1579
+ distributorSelfServiceControllerGetDomain: async (id, options = {}) => {
1580
+ // verify required parameter 'id' is not null or undefined
1581
+ assertParamExists('distributorSelfServiceControllerGetDomain', 'id', id);
1582
+ const localVarPath = `/me/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
1583
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1584
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1585
+ let baseOptions;
1586
+ if (configuration) {
1587
+ baseOptions = configuration.baseOptions;
1588
+ }
1589
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1590
+ const localVarHeaderParameter = {};
1591
+ const localVarQueryParameter = {};
1592
+ // authentication distributorAuth required
1593
+ // http bearer authentication required
1594
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1595
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1596
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1597
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1598
+ return {
1599
+ url: toPathString(localVarUrlObj),
1600
+ options: localVarRequestOptions,
1601
+ };
1602
+ },
1603
+ /**
1604
+ * The distributor the presented Distributor Key belongs to — its own record, as staff see it.<br> OperationId: `DistributorSelfServiceControllerMe`
1605
+ * @summary Who am I
1606
+ * @param {*} [options] Override http request option.
1607
+ * @throws {RequiredError}
1608
+ */
1609
+ distributorSelfServiceControllerMe: async (options = {}) => {
1610
+ const localVarPath = `/me`;
1611
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1612
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1613
+ let baseOptions;
1614
+ if (configuration) {
1615
+ baseOptions = configuration.baseOptions;
1616
+ }
1617
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1618
+ const localVarHeaderParameter = {};
1619
+ const localVarQueryParameter = {};
1620
+ // authentication distributorAuth required
1621
+ // http bearer authentication required
1622
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1623
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1624
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1625
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1626
+ return {
1627
+ url: toPathString(localVarUrlObj),
1628
+ options: localVarRequestOptions,
1629
+ };
1630
+ },
1631
+ /**
1632
+ * Replaces the domain’s server registration token and resets the connector connection of every GENERIC game server in it, so a leaked token cannot keep a server registered. The old token stops resolving immediately. A POST because it mints a new credential.<br> OperationId: `DistributorSelfServiceControllerRegenerateRegistrationToken`
1633
+ * @summary Regenerate a domain’s server registration token
1634
+ * @param {string} id
1635
+ * @param {*} [options] Override http request option.
1636
+ * @throws {RequiredError}
1637
+ */
1638
+ distributorSelfServiceControllerRegenerateRegistrationToken: async (id, options = {}) => {
1639
+ // verify required parameter 'id' is not null or undefined
1640
+ assertParamExists('distributorSelfServiceControllerRegenerateRegistrationToken', 'id', id);
1641
+ const localVarPath = `/me/domain/{id}/registration-token`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
1642
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1643
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1644
+ let baseOptions;
1645
+ if (configuration) {
1646
+ baseOptions = configuration.baseOptions;
1647
+ }
1648
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1649
+ const localVarHeaderParameter = {};
1650
+ const localVarQueryParameter = {};
1651
+ // authentication distributorAuth required
1652
+ // http bearer authentication required
1653
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1654
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1655
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1656
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1657
+ return {
1658
+ url: toPathString(localVarUrlObj),
1659
+ options: localVarRequestOptions,
1660
+ };
1661
+ },
1662
+ /**
1663
+ * Idempotent. The key stays listed as REVOKED for 30 days and is then hard-deleted. Revoking the key you are currently presenting is allowed and takes effect on the next request; another distributor’s key is a 404.<br> OperationId: `DistributorSelfServiceControllerRevokeKey`
1664
+ * @summary Revoke a distributor key
1665
+ * @param {string} id
1666
+ * @param {*} [options] Override http request option.
1667
+ * @throws {RequiredError}
1668
+ */
1669
+ distributorSelfServiceControllerRevokeKey: async (id, options = {}) => {
1670
+ // verify required parameter 'id' is not null or undefined
1671
+ assertParamExists('distributorSelfServiceControllerRevokeKey', 'id', id);
1672
+ const localVarPath = `/me/key/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
1673
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1674
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1675
+ let baseOptions;
1676
+ if (configuration) {
1677
+ baseOptions = configuration.baseOptions;
1678
+ }
1679
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
1680
+ const localVarHeaderParameter = {};
1681
+ const localVarQueryParameter = {};
1682
+ // authentication distributorAuth required
1683
+ // http bearer authentication required
1684
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1685
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1686
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1687
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1688
+ return {
1689
+ url: toPathString(localVarUrlObj),
1690
+ options: localVarRequestOptions,
1691
+ };
1692
+ },
1693
+ /**
1694
+ * Writes a new secret onto the same key row and returns it ONCE; the old secret stops working immediately. The key being rotated need not be the key presented — rotating without downtime means authenticating with one key while rotating another. A revoked key cannot be rotated (400); another distributor’s key is a 404.<br> OperationId: `DistributorSelfServiceControllerRotateKey`
1695
+ * @summary Rotate a distributor key
1696
+ * @param {string} id
1697
+ * @param {*} [options] Override http request option.
1698
+ * @throws {RequiredError}
1699
+ */
1700
+ distributorSelfServiceControllerRotateKey: async (id, options = {}) => {
1701
+ // verify required parameter 'id' is not null or undefined
1702
+ assertParamExists('distributorSelfServiceControllerRotateKey', 'id', id);
1703
+ const localVarPath = `/me/key/{id}/rotate`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
1704
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1705
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1706
+ let baseOptions;
1707
+ if (configuration) {
1708
+ baseOptions = configuration.baseOptions;
1709
+ }
1710
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1711
+ const localVarHeaderParameter = {};
1712
+ const localVarQueryParameter = {};
1713
+ // authentication distributorAuth required
1714
+ // http bearer authentication required
1715
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1716
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1717
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1718
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1719
+ return {
1720
+ url: toPathString(localVarUrlObj),
1721
+ options: localVarRequestOptions,
1722
+ };
1723
+ },
1724
+ /**
1725
+ * Returns the domains attributed to the calling distributor, and only those. A `distributorId` filter is not offered: ownership is taken from the presented key, not from the body.<br> OperationId: `DistributorSelfServiceControllerSearchDomains`
1726
+ * @summary Search my domains
1727
+ * @param {DistributorDomainSearchInputDTO} [distributorDomainSearchInputDTO] DistributorDomainSearchInputDTO
1728
+ * @param {*} [options] Override http request option.
1729
+ * @throws {RequiredError}
1730
+ */
1731
+ distributorSelfServiceControllerSearchDomains: async (distributorDomainSearchInputDTO, options = {}) => {
1732
+ const localVarPath = `/me/domain/search`;
1733
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1734
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1735
+ let baseOptions;
1736
+ if (configuration) {
1737
+ baseOptions = configuration.baseOptions;
1738
+ }
1739
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1740
+ const localVarHeaderParameter = {};
1741
+ const localVarQueryParameter = {};
1742
+ // authentication distributorAuth required
1743
+ // http bearer authentication required
1744
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1745
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1746
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1747
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1748
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1749
+ localVarRequestOptions.data = serializeDataIfNeeded(distributorDomainSearchInputDTO, localVarRequestOptions, configuration);
1750
+ return {
1751
+ url: toPathString(localVarUrlObj),
1752
+ options: localVarRequestOptions,
1753
+ };
1754
+ },
1755
+ /**
1756
+ * Returns the calling distributor’s own keys with prefix, suffix, created and last-used. Public fields only: never the secret or its hash.<br> OperationId: `DistributorSelfServiceControllerSearchKeys`
1757
+ * @summary Search my distributor keys
1758
+ * @param {DistributorKeySearchInputDTO} [distributorKeySearchInputDTO] DistributorKeySearchInputDTO
1759
+ * @param {*} [options] Override http request option.
1760
+ * @throws {RequiredError}
1761
+ */
1762
+ distributorSelfServiceControllerSearchKeys: async (distributorKeySearchInputDTO, options = {}) => {
1763
+ const localVarPath = `/me/key/search`;
1764
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1765
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1766
+ let baseOptions;
1767
+ if (configuration) {
1768
+ baseOptions = configuration.baseOptions;
1769
+ }
1770
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1771
+ const localVarHeaderParameter = {};
1772
+ const localVarQueryParameter = {};
1773
+ // authentication distributorAuth required
1774
+ // http bearer authentication required
1775
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1776
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1777
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1778
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1779
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1780
+ localVarRequestOptions.data = serializeDataIfNeeded(distributorKeySearchInputDTO, localVarRequestOptions, configuration);
1781
+ return {
1782
+ url: toPathString(localVarUrlObj),
1783
+ options: localVarRequestOptions,
1784
+ };
1785
+ },
1786
+ /**
1787
+ * Moves the domain onto another of the Plans allowed for the calling distributor and enqueues the reconciliation that writes the Plan’s limits onto the domain, normally within seconds. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-runs the reconciliation and writes nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
1788
+ * @summary Change one of my domains’ Plan
1789
+ * @param {string} id
1790
+ * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
1791
+ * @param {*} [options] Override http request option.
1792
+ * @throws {RequiredError}
1793
+ */
1794
+ distributorSelfServiceControllerSetDomainPlan: async (id, distributorDomainPlanInputDTO, options = {}) => {
1795
+ // verify required parameter 'id' is not null or undefined
1796
+ assertParamExists('distributorSelfServiceControllerSetDomainPlan', 'id', id);
1797
+ const localVarPath = `/me/domain/{id}/plan`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
1798
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1799
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1800
+ let baseOptions;
1801
+ if (configuration) {
1802
+ baseOptions = configuration.baseOptions;
1803
+ }
1804
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
1805
+ const localVarHeaderParameter = {};
1806
+ const localVarQueryParameter = {};
1807
+ // authentication distributorAuth required
1808
+ // http bearer authentication required
1809
+ await setBearerAuthToObject(localVarHeaderParameter, configuration);
1810
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1811
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1812
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1813
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1814
+ localVarRequestOptions.data = serializeDataIfNeeded(distributorDomainPlanInputDTO, localVarRequestOptions, configuration);
1815
+ return {
1816
+ url: toPathString(localVarUrlObj),
1817
+ options: localVarRequestOptions,
1818
+ };
1819
+ },
1820
+ };
1821
+ };
1822
+ /**
1823
+ * DistributorSelfServiceApi - functional programming interface
1824
+ * @export
1825
+ */
1826
+ export const DistributorSelfServiceApiFp = function (configuration) {
1827
+ const localVarAxiosParamCreator = DistributorSelfServiceApiAxiosParamCreator(configuration);
1828
+ return {
1829
+ /**
1830
+ * Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan, applied by the billing reconciler within seconds; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
1831
+ * @summary Create a domain
1832
+ * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
1833
+ * @param {*} [options] Override http request option.
1834
+ * @throws {RequiredError}
1835
+ */
1836
+ async distributorSelfServiceControllerCreateDomain(distributorDomainCreateInputDTO, options) {
1837
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorSelfServiceControllerCreateDomain(distributorDomainCreateInputDTO, options);
1838
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1839
+ const localVarOperationServerBasePath = operationServerMap['DistributorSelfServiceApi.distributorSelfServiceControllerCreateDomain']?.[localVarOperationServerIndex]?.url;
1840
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1841
+ },
1842
+ /**
1843
+ * Onboards the distributor’s customer into the domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. The link grants the domain’s seeded `Admin` role, so the customer who redeems it operates their own domain; `roleIds` is deliberately not accepted. Defaults to 7 days and a single use. Attribution is the domain’s Distributor Service Account, so the event feed names the distributor.<br> OperationId: `DistributorSelfServiceControllerCreateInviteLink`
1844
+ * @summary Create an invite link for one of my domains
1845
+ * @param {string} id
1846
+ * @param {DistributorInviteLinkCreateInputDTO} [distributorInviteLinkCreateInputDTO] DistributorInviteLinkCreateInputDTO
1847
+ * @param {*} [options] Override http request option.
1848
+ * @throws {RequiredError}
1849
+ */
1850
+ async distributorSelfServiceControllerCreateInviteLink(id, distributorInviteLinkCreateInputDTO, options) {
1851
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorSelfServiceControllerCreateInviteLink(id, distributorInviteLinkCreateInputDTO, options);
1852
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1853
+ const localVarOperationServerBasePath = operationServerMap['DistributorSelfServiceApi.distributorSelfServiceControllerCreateInviteLink']?.[localVarOperationServerIndex]?.url;
1854
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1855
+ },
1856
+ /**
1857
+ * Creates another key for the calling distributor and returns the secret ONCE. Requires a valid existing key: a distributor whose every key is revoked goes back to staff for a new one.<br> OperationId: `DistributorSelfServiceControllerCreateKey`
1858
+ * @summary Create a distributor key
1859
+ * @param {DistributorKeyCreateInputDTO} [distributorKeyCreateInputDTO] DistributorKeyCreateInputDTO
1860
+ * @param {*} [options] Override http request option.
1861
+ * @throws {RequiredError}
1862
+ */
1863
+ async distributorSelfServiceControllerCreateKey(distributorKeyCreateInputDTO, options) {
1864
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorSelfServiceControllerCreateKey(distributorKeyCreateInputDTO, options);
1865
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1866
+ const localVarOperationServerBasePath = operationServerMap['DistributorSelfServiceApi.distributorSelfServiceControllerCreateKey']?.[localVarOperationServerIndex]?.url;
1867
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1868
+ },
1869
+ /**
1870
+ * Includes the domain’s `serverRegistrationToken`. Another distributor’s domain, an unattributed domain and an id that was never issued are all a 404 — never a 403, so existence does not leak.<br> OperationId: `DistributorSelfServiceControllerGetDomain`
1871
+ * @summary Get one of my domains
1872
+ * @param {string} id
1873
+ * @param {*} [options] Override http request option.
1874
+ * @throws {RequiredError}
1875
+ */
1876
+ async distributorSelfServiceControllerGetDomain(id, options) {
1877
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorSelfServiceControllerGetDomain(id, options);
1878
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1879
+ const localVarOperationServerBasePath = operationServerMap['DistributorSelfServiceApi.distributorSelfServiceControllerGetDomain']?.[localVarOperationServerIndex]?.url;
1880
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1881
+ },
1882
+ /**
1883
+ * The distributor the presented Distributor Key belongs to — its own record, as staff see it.<br> OperationId: `DistributorSelfServiceControllerMe`
1884
+ * @summary Who am I
1885
+ * @param {*} [options] Override http request option.
1886
+ * @throws {RequiredError}
1887
+ */
1888
+ async distributorSelfServiceControllerMe(options) {
1889
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorSelfServiceControllerMe(options);
1890
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1891
+ const localVarOperationServerBasePath = operationServerMap['DistributorSelfServiceApi.distributorSelfServiceControllerMe']?.[localVarOperationServerIndex]?.url;
1892
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1893
+ },
1894
+ /**
1895
+ * Replaces the domain’s server registration token and resets the connector connection of every GENERIC game server in it, so a leaked token cannot keep a server registered. The old token stops resolving immediately. A POST because it mints a new credential.<br> OperationId: `DistributorSelfServiceControllerRegenerateRegistrationToken`
1896
+ * @summary Regenerate a domain’s server registration token
1897
+ * @param {string} id
1898
+ * @param {*} [options] Override http request option.
1899
+ * @throws {RequiredError}
1900
+ */
1901
+ async distributorSelfServiceControllerRegenerateRegistrationToken(id, options) {
1902
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorSelfServiceControllerRegenerateRegistrationToken(id, options);
1903
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1904
+ const localVarOperationServerBasePath = operationServerMap['DistributorSelfServiceApi.distributorSelfServiceControllerRegenerateRegistrationToken']?.[localVarOperationServerIndex]?.url;
1905
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1906
+ },
1907
+ /**
1908
+ * Idempotent. The key stays listed as REVOKED for 30 days and is then hard-deleted. Revoking the key you are currently presenting is allowed and takes effect on the next request; another distributor’s key is a 404.<br> OperationId: `DistributorSelfServiceControllerRevokeKey`
1909
+ * @summary Revoke a distributor key
1910
+ * @param {string} id
1911
+ * @param {*} [options] Override http request option.
1912
+ * @throws {RequiredError}
1913
+ */
1914
+ async distributorSelfServiceControllerRevokeKey(id, options) {
1915
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorSelfServiceControllerRevokeKey(id, options);
1916
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1917
+ const localVarOperationServerBasePath = operationServerMap['DistributorSelfServiceApi.distributorSelfServiceControllerRevokeKey']?.[localVarOperationServerIndex]?.url;
1918
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1919
+ },
1920
+ /**
1921
+ * Writes a new secret onto the same key row and returns it ONCE; the old secret stops working immediately. The key being rotated need not be the key presented — rotating without downtime means authenticating with one key while rotating another. A revoked key cannot be rotated (400); another distributor’s key is a 404.<br> OperationId: `DistributorSelfServiceControllerRotateKey`
1922
+ * @summary Rotate a distributor key
1923
+ * @param {string} id
1924
+ * @param {*} [options] Override http request option.
1925
+ * @throws {RequiredError}
1926
+ */
1927
+ async distributorSelfServiceControllerRotateKey(id, options) {
1928
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorSelfServiceControllerRotateKey(id, options);
1929
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1930
+ const localVarOperationServerBasePath = operationServerMap['DistributorSelfServiceApi.distributorSelfServiceControllerRotateKey']?.[localVarOperationServerIndex]?.url;
1931
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1932
+ },
1933
+ /**
1934
+ * Returns the domains attributed to the calling distributor, and only those. A `distributorId` filter is not offered: ownership is taken from the presented key, not from the body.<br> OperationId: `DistributorSelfServiceControllerSearchDomains`
1935
+ * @summary Search my domains
1936
+ * @param {DistributorDomainSearchInputDTO} [distributorDomainSearchInputDTO] DistributorDomainSearchInputDTO
1937
+ * @param {*} [options] Override http request option.
1938
+ * @throws {RequiredError}
1939
+ */
1940
+ async distributorSelfServiceControllerSearchDomains(distributorDomainSearchInputDTO, options) {
1941
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorSelfServiceControllerSearchDomains(distributorDomainSearchInputDTO, options);
1942
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1943
+ const localVarOperationServerBasePath = operationServerMap['DistributorSelfServiceApi.distributorSelfServiceControllerSearchDomains']?.[localVarOperationServerIndex]?.url;
1944
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1945
+ },
1946
+ /**
1947
+ * Returns the calling distributor’s own keys with prefix, suffix, created and last-used. Public fields only: never the secret or its hash.<br> OperationId: `DistributorSelfServiceControllerSearchKeys`
1948
+ * @summary Search my distributor keys
1949
+ * @param {DistributorKeySearchInputDTO} [distributorKeySearchInputDTO] DistributorKeySearchInputDTO
1950
+ * @param {*} [options] Override http request option.
1951
+ * @throws {RequiredError}
1952
+ */
1953
+ async distributorSelfServiceControllerSearchKeys(distributorKeySearchInputDTO, options) {
1954
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorSelfServiceControllerSearchKeys(distributorKeySearchInputDTO, options);
1955
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1956
+ const localVarOperationServerBasePath = operationServerMap['DistributorSelfServiceApi.distributorSelfServiceControllerSearchKeys']?.[localVarOperationServerIndex]?.url;
1957
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1958
+ },
1959
+ /**
1960
+ * Moves the domain onto another of the Plans allowed for the calling distributor and enqueues the reconciliation that writes the Plan’s limits onto the domain, normally within seconds. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-runs the reconciliation and writes nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
1961
+ * @summary Change one of my domains’ Plan
1962
+ * @param {string} id
1963
+ * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
1964
+ * @param {*} [options] Override http request option.
1965
+ * @throws {RequiredError}
1966
+ */
1967
+ async distributorSelfServiceControllerSetDomainPlan(id, distributorDomainPlanInputDTO, options) {
1968
+ const localVarAxiosArgs = await localVarAxiosParamCreator.distributorSelfServiceControllerSetDomainPlan(id, distributorDomainPlanInputDTO, options);
1969
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1970
+ const localVarOperationServerBasePath = operationServerMap['DistributorSelfServiceApi.distributorSelfServiceControllerSetDomainPlan']?.[localVarOperationServerIndex]?.url;
1971
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1972
+ },
1973
+ };
1974
+ };
1975
+ /**
1976
+ * DistributorSelfServiceApi - factory interface
1977
+ * @export
1978
+ */
1979
+ export const DistributorSelfServiceApiFactory = function (configuration, basePath, axios) {
1980
+ const localVarFp = DistributorSelfServiceApiFp(configuration);
1981
+ return {
1982
+ /**
1983
+ * Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan, applied by the billing reconciler within seconds; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
1984
+ * @summary Create a domain
1985
+ * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
1986
+ * @param {*} [options] Override http request option.
1987
+ * @throws {RequiredError}
1988
+ */
1989
+ distributorSelfServiceControllerCreateDomain(distributorDomainCreateInputDTO, options) {
1990
+ return localVarFp
1991
+ .distributorSelfServiceControllerCreateDomain(distributorDomainCreateInputDTO, options)
1992
+ .then((request) => request(axios, basePath));
1993
+ },
1994
+ /**
1995
+ * Onboards the distributor’s customer into the domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. The link grants the domain’s seeded `Admin` role, so the customer who redeems it operates their own domain; `roleIds` is deliberately not accepted. Defaults to 7 days and a single use. Attribution is the domain’s Distributor Service Account, so the event feed names the distributor.<br> OperationId: `DistributorSelfServiceControllerCreateInviteLink`
1996
+ * @summary Create an invite link for one of my domains
1997
+ * @param {string} id
1998
+ * @param {DistributorInviteLinkCreateInputDTO} [distributorInviteLinkCreateInputDTO] DistributorInviteLinkCreateInputDTO
1999
+ * @param {*} [options] Override http request option.
2000
+ * @throws {RequiredError}
2001
+ */
2002
+ distributorSelfServiceControllerCreateInviteLink(id, distributorInviteLinkCreateInputDTO, options) {
2003
+ return localVarFp
2004
+ .distributorSelfServiceControllerCreateInviteLink(id, distributorInviteLinkCreateInputDTO, options)
2005
+ .then((request) => request(axios, basePath));
2006
+ },
2007
+ /**
2008
+ * Creates another key for the calling distributor and returns the secret ONCE. Requires a valid existing key: a distributor whose every key is revoked goes back to staff for a new one.<br> OperationId: `DistributorSelfServiceControllerCreateKey`
2009
+ * @summary Create a distributor key
2010
+ * @param {DistributorKeyCreateInputDTO} [distributorKeyCreateInputDTO] DistributorKeyCreateInputDTO
2011
+ * @param {*} [options] Override http request option.
2012
+ * @throws {RequiredError}
2013
+ */
2014
+ distributorSelfServiceControllerCreateKey(distributorKeyCreateInputDTO, options) {
2015
+ return localVarFp
2016
+ .distributorSelfServiceControllerCreateKey(distributorKeyCreateInputDTO, options)
2017
+ .then((request) => request(axios, basePath));
2018
+ },
2019
+ /**
2020
+ * Includes the domain’s `serverRegistrationToken`. Another distributor’s domain, an unattributed domain and an id that was never issued are all a 404 — never a 403, so existence does not leak.<br> OperationId: `DistributorSelfServiceControllerGetDomain`
2021
+ * @summary Get one of my domains
2022
+ * @param {string} id
2023
+ * @param {*} [options] Override http request option.
2024
+ * @throws {RequiredError}
2025
+ */
2026
+ distributorSelfServiceControllerGetDomain(id, options) {
2027
+ return localVarFp
2028
+ .distributorSelfServiceControllerGetDomain(id, options)
2029
+ .then((request) => request(axios, basePath));
2030
+ },
2031
+ /**
2032
+ * The distributor the presented Distributor Key belongs to — its own record, as staff see it.<br> OperationId: `DistributorSelfServiceControllerMe`
2033
+ * @summary Who am I
2034
+ * @param {*} [options] Override http request option.
2035
+ * @throws {RequiredError}
2036
+ */
2037
+ distributorSelfServiceControllerMe(options) {
2038
+ return localVarFp.distributorSelfServiceControllerMe(options).then((request) => request(axios, basePath));
2039
+ },
2040
+ /**
2041
+ * Replaces the domain’s server registration token and resets the connector connection of every GENERIC game server in it, so a leaked token cannot keep a server registered. The old token stops resolving immediately. A POST because it mints a new credential.<br> OperationId: `DistributorSelfServiceControllerRegenerateRegistrationToken`
2042
+ * @summary Regenerate a domain’s server registration token
2043
+ * @param {string} id
2044
+ * @param {*} [options] Override http request option.
2045
+ * @throws {RequiredError}
2046
+ */
2047
+ distributorSelfServiceControllerRegenerateRegistrationToken(id, options) {
2048
+ return localVarFp
2049
+ .distributorSelfServiceControllerRegenerateRegistrationToken(id, options)
2050
+ .then((request) => request(axios, basePath));
2051
+ },
2052
+ /**
2053
+ * Idempotent. The key stays listed as REVOKED for 30 days and is then hard-deleted. Revoking the key you are currently presenting is allowed and takes effect on the next request; another distributor’s key is a 404.<br> OperationId: `DistributorSelfServiceControllerRevokeKey`
2054
+ * @summary Revoke a distributor key
2055
+ * @param {string} id
2056
+ * @param {*} [options] Override http request option.
2057
+ * @throws {RequiredError}
2058
+ */
2059
+ distributorSelfServiceControllerRevokeKey(id, options) {
2060
+ return localVarFp
2061
+ .distributorSelfServiceControllerRevokeKey(id, options)
2062
+ .then((request) => request(axios, basePath));
2063
+ },
2064
+ /**
2065
+ * Writes a new secret onto the same key row and returns it ONCE; the old secret stops working immediately. The key being rotated need not be the key presented — rotating without downtime means authenticating with one key while rotating another. A revoked key cannot be rotated (400); another distributor’s key is a 404.<br> OperationId: `DistributorSelfServiceControllerRotateKey`
2066
+ * @summary Rotate a distributor key
2067
+ * @param {string} id
2068
+ * @param {*} [options] Override http request option.
2069
+ * @throws {RequiredError}
2070
+ */
2071
+ distributorSelfServiceControllerRotateKey(id, options) {
2072
+ return localVarFp
2073
+ .distributorSelfServiceControllerRotateKey(id, options)
2074
+ .then((request) => request(axios, basePath));
2075
+ },
2076
+ /**
2077
+ * Returns the domains attributed to the calling distributor, and only those. A `distributorId` filter is not offered: ownership is taken from the presented key, not from the body.<br> OperationId: `DistributorSelfServiceControllerSearchDomains`
2078
+ * @summary Search my domains
2079
+ * @param {DistributorDomainSearchInputDTO} [distributorDomainSearchInputDTO] DistributorDomainSearchInputDTO
2080
+ * @param {*} [options] Override http request option.
2081
+ * @throws {RequiredError}
2082
+ */
2083
+ distributorSelfServiceControllerSearchDomains(distributorDomainSearchInputDTO, options) {
2084
+ return localVarFp
2085
+ .distributorSelfServiceControllerSearchDomains(distributorDomainSearchInputDTO, options)
2086
+ .then((request) => request(axios, basePath));
2087
+ },
2088
+ /**
2089
+ * Returns the calling distributor’s own keys with prefix, suffix, created and last-used. Public fields only: never the secret or its hash.<br> OperationId: `DistributorSelfServiceControllerSearchKeys`
2090
+ * @summary Search my distributor keys
2091
+ * @param {DistributorKeySearchInputDTO} [distributorKeySearchInputDTO] DistributorKeySearchInputDTO
2092
+ * @param {*} [options] Override http request option.
2093
+ * @throws {RequiredError}
2094
+ */
2095
+ distributorSelfServiceControllerSearchKeys(distributorKeySearchInputDTO, options) {
2096
+ return localVarFp
2097
+ .distributorSelfServiceControllerSearchKeys(distributorKeySearchInputDTO, options)
2098
+ .then((request) => request(axios, basePath));
2099
+ },
2100
+ /**
2101
+ * Moves the domain onto another of the Plans allowed for the calling distributor and enqueues the reconciliation that writes the Plan’s limits onto the domain, normally within seconds. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-runs the reconciliation and writes nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
2102
+ * @summary Change one of my domains’ Plan
2103
+ * @param {string} id
2104
+ * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
2105
+ * @param {*} [options] Override http request option.
2106
+ * @throws {RequiredError}
2107
+ */
2108
+ distributorSelfServiceControllerSetDomainPlan(id, distributorDomainPlanInputDTO, options) {
2109
+ return localVarFp
2110
+ .distributorSelfServiceControllerSetDomainPlan(id, distributorDomainPlanInputDTO, options)
2111
+ .then((request) => request(axios, basePath));
2112
+ },
2113
+ };
2114
+ };
2115
+ /**
2116
+ * DistributorSelfServiceApi - object-oriented interface
2117
+ * @export
2118
+ * @class DistributorSelfServiceApi
2119
+ * @extends {BaseAPI}
2120
+ */
2121
+ export class DistributorSelfServiceApi extends BaseAPI {
2122
+ /**
2123
+ * Creates a domain attributed to the calling distributor (ADR 0024 — attribution, never ownership). The response carries the domain and its `serverRegistrationToken`, so a provisioning script can inject the token into a game server without a second call. Limits come from the chosen Plan, applied by the billing reconciler within seconds; a domain created without a `planId` starts on the platform defaults. A Plan outside `allowedPlans` is refused with a 400. A Distributor Service Account holding the domain’s root role is created with the domain; every management verb on the domain is recorded in its event feed as that account.<br> OperationId: `DistributorSelfServiceControllerCreateDomain`
2124
+ * @summary Create a domain
2125
+ * @param {DistributorDomainCreateInputDTO} [distributorDomainCreateInputDTO] DistributorDomainCreateInputDTO
2126
+ * @param {*} [options] Override http request option.
2127
+ * @throws {RequiredError}
2128
+ * @memberof DistributorSelfServiceApi
2129
+ */
2130
+ distributorSelfServiceControllerCreateDomain(distributorDomainCreateInputDTO, options) {
2131
+ return DistributorSelfServiceApiFp(this.configuration)
2132
+ .distributorSelfServiceControllerCreateDomain(distributorDomainCreateInputDTO, options)
2133
+ .then((request) => request(this.axios, this.basePath));
2134
+ }
2135
+ /**
2136
+ * Onboards the distributor’s customer into the domain. The `token` and `inviteUrl` fields are returned ONCE and are not stored on the server — distribute securely. The link grants the domain’s seeded `Admin` role, so the customer who redeems it operates their own domain; `roleIds` is deliberately not accepted. Defaults to 7 days and a single use. Attribution is the domain’s Distributor Service Account, so the event feed names the distributor.<br> OperationId: `DistributorSelfServiceControllerCreateInviteLink`
2137
+ * @summary Create an invite link for one of my domains
2138
+ * @param {string} id
2139
+ * @param {DistributorInviteLinkCreateInputDTO} [distributorInviteLinkCreateInputDTO] DistributorInviteLinkCreateInputDTO
2140
+ * @param {*} [options] Override http request option.
2141
+ * @throws {RequiredError}
2142
+ * @memberof DistributorSelfServiceApi
2143
+ */
2144
+ distributorSelfServiceControllerCreateInviteLink(id, distributorInviteLinkCreateInputDTO, options) {
2145
+ return DistributorSelfServiceApiFp(this.configuration)
2146
+ .distributorSelfServiceControllerCreateInviteLink(id, distributorInviteLinkCreateInputDTO, options)
2147
+ .then((request) => request(this.axios, this.basePath));
2148
+ }
2149
+ /**
2150
+ * Creates another key for the calling distributor and returns the secret ONCE. Requires a valid existing key: a distributor whose every key is revoked goes back to staff for a new one.<br> OperationId: `DistributorSelfServiceControllerCreateKey`
2151
+ * @summary Create a distributor key
2152
+ * @param {DistributorKeyCreateInputDTO} [distributorKeyCreateInputDTO] DistributorKeyCreateInputDTO
2153
+ * @param {*} [options] Override http request option.
2154
+ * @throws {RequiredError}
2155
+ * @memberof DistributorSelfServiceApi
2156
+ */
2157
+ distributorSelfServiceControllerCreateKey(distributorKeyCreateInputDTO, options) {
2158
+ return DistributorSelfServiceApiFp(this.configuration)
2159
+ .distributorSelfServiceControllerCreateKey(distributorKeyCreateInputDTO, options)
2160
+ .then((request) => request(this.axios, this.basePath));
2161
+ }
2162
+ /**
2163
+ * Includes the domain’s `serverRegistrationToken`. Another distributor’s domain, an unattributed domain and an id that was never issued are all a 404 — never a 403, so existence does not leak.<br> OperationId: `DistributorSelfServiceControllerGetDomain`
2164
+ * @summary Get one of my domains
2165
+ * @param {string} id
2166
+ * @param {*} [options] Override http request option.
2167
+ * @throws {RequiredError}
2168
+ * @memberof DistributorSelfServiceApi
2169
+ */
2170
+ distributorSelfServiceControllerGetDomain(id, options) {
2171
+ return DistributorSelfServiceApiFp(this.configuration)
2172
+ .distributorSelfServiceControllerGetDomain(id, options)
2173
+ .then((request) => request(this.axios, this.basePath));
2174
+ }
2175
+ /**
2176
+ * The distributor the presented Distributor Key belongs to — its own record, as staff see it.<br> OperationId: `DistributorSelfServiceControllerMe`
2177
+ * @summary Who am I
2178
+ * @param {*} [options] Override http request option.
2179
+ * @throws {RequiredError}
2180
+ * @memberof DistributorSelfServiceApi
2181
+ */
2182
+ distributorSelfServiceControllerMe(options) {
2183
+ return DistributorSelfServiceApiFp(this.configuration)
2184
+ .distributorSelfServiceControllerMe(options)
2185
+ .then((request) => request(this.axios, this.basePath));
2186
+ }
2187
+ /**
2188
+ * Replaces the domain’s server registration token and resets the connector connection of every GENERIC game server in it, so a leaked token cannot keep a server registered. The old token stops resolving immediately. A POST because it mints a new credential.<br> OperationId: `DistributorSelfServiceControllerRegenerateRegistrationToken`
2189
+ * @summary Regenerate a domain’s server registration token
2190
+ * @param {string} id
2191
+ * @param {*} [options] Override http request option.
2192
+ * @throws {RequiredError}
2193
+ * @memberof DistributorSelfServiceApi
2194
+ */
2195
+ distributorSelfServiceControllerRegenerateRegistrationToken(id, options) {
2196
+ return DistributorSelfServiceApiFp(this.configuration)
2197
+ .distributorSelfServiceControllerRegenerateRegistrationToken(id, options)
2198
+ .then((request) => request(this.axios, this.basePath));
2199
+ }
2200
+ /**
2201
+ * Idempotent. The key stays listed as REVOKED for 30 days and is then hard-deleted. Revoking the key you are currently presenting is allowed and takes effect on the next request; another distributor’s key is a 404.<br> OperationId: `DistributorSelfServiceControllerRevokeKey`
2202
+ * @summary Revoke a distributor key
2203
+ * @param {string} id
2204
+ * @param {*} [options] Override http request option.
2205
+ * @throws {RequiredError}
2206
+ * @memberof DistributorSelfServiceApi
2207
+ */
2208
+ distributorSelfServiceControllerRevokeKey(id, options) {
2209
+ return DistributorSelfServiceApiFp(this.configuration)
2210
+ .distributorSelfServiceControllerRevokeKey(id, options)
2211
+ .then((request) => request(this.axios, this.basePath));
2212
+ }
2213
+ /**
2214
+ * Writes a new secret onto the same key row and returns it ONCE; the old secret stops working immediately. The key being rotated need not be the key presented — rotating without downtime means authenticating with one key while rotating another. A revoked key cannot be rotated (400); another distributor’s key is a 404.<br> OperationId: `DistributorSelfServiceControllerRotateKey`
2215
+ * @summary Rotate a distributor key
2216
+ * @param {string} id
2217
+ * @param {*} [options] Override http request option.
2218
+ * @throws {RequiredError}
2219
+ * @memberof DistributorSelfServiceApi
2220
+ */
2221
+ distributorSelfServiceControllerRotateKey(id, options) {
2222
+ return DistributorSelfServiceApiFp(this.configuration)
2223
+ .distributorSelfServiceControllerRotateKey(id, options)
2224
+ .then((request) => request(this.axios, this.basePath));
2225
+ }
2226
+ /**
2227
+ * Returns the domains attributed to the calling distributor, and only those. A `distributorId` filter is not offered: ownership is taken from the presented key, not from the body.<br> OperationId: `DistributorSelfServiceControllerSearchDomains`
2228
+ * @summary Search my domains
2229
+ * @param {DistributorDomainSearchInputDTO} [distributorDomainSearchInputDTO] DistributorDomainSearchInputDTO
2230
+ * @param {*} [options] Override http request option.
2231
+ * @throws {RequiredError}
2232
+ * @memberof DistributorSelfServiceApi
2233
+ */
2234
+ distributorSelfServiceControllerSearchDomains(distributorDomainSearchInputDTO, options) {
2235
+ return DistributorSelfServiceApiFp(this.configuration)
2236
+ .distributorSelfServiceControllerSearchDomains(distributorDomainSearchInputDTO, options)
2237
+ .then((request) => request(this.axios, this.basePath));
2238
+ }
2239
+ /**
2240
+ * Returns the calling distributor’s own keys with prefix, suffix, created and last-used. Public fields only: never the secret or its hash.<br> OperationId: `DistributorSelfServiceControllerSearchKeys`
2241
+ * @summary Search my distributor keys
2242
+ * @param {DistributorKeySearchInputDTO} [distributorKeySearchInputDTO] DistributorKeySearchInputDTO
2243
+ * @param {*} [options] Override http request option.
2244
+ * @throws {RequiredError}
2245
+ * @memberof DistributorSelfServiceApi
2246
+ */
2247
+ distributorSelfServiceControllerSearchKeys(distributorKeySearchInputDTO, options) {
2248
+ return DistributorSelfServiceApiFp(this.configuration)
2249
+ .distributorSelfServiceControllerSearchKeys(distributorKeySearchInputDTO, options)
2250
+ .then((request) => request(this.axios, this.basePath));
2251
+ }
2252
+ /**
2253
+ * Moves the domain onto another of the Plans allowed for the calling distributor and enqueues the reconciliation that writes the Plan’s limits onto the domain, normally within seconds. Downgrading a customer who cancelled means moving the domain to the free Plan — it keeps running at free limits, and its state never changes. A Plan outside the allowed list is a 400; another distributor’s domain is a 404, never a 403. Idempotent: setting the Plan the domain is already on re-runs the reconciliation and writes nothing.<br> OperationId: `DistributorSelfServiceControllerSetDomainPlan`
2254
+ * @summary Change one of my domains’ Plan
2255
+ * @param {string} id
2256
+ * @param {DistributorDomainPlanInputDTO} [distributorDomainPlanInputDTO] DistributorDomainPlanInputDTO
2257
+ * @param {*} [options] Override http request option.
2258
+ * @throws {RequiredError}
2259
+ * @memberof DistributorSelfServiceApi
2260
+ */
2261
+ distributorSelfServiceControllerSetDomainPlan(id, distributorDomainPlanInputDTO, options) {
2262
+ return DistributorSelfServiceApiFp(this.configuration)
2263
+ .distributorSelfServiceControllerSetDomainPlan(id, distributorDomainPlanInputDTO, options)
2264
+ .then((request) => request(this.axios, this.basePath));
2265
+ }
2266
+ }
2267
+ /**
2268
+ * DomainApi - axios parameter creator
2269
+ * @export
2270
+ */
2271
+ export const DomainApiAxiosParamCreator = function (configuration) {
2272
+ return {
2273
+ /**
2274
+ * <br> OperationId: `DomainControllerCreate`
2275
+ * @summary Create
2276
+ * @param {DomainCreateInputDTO} [domainCreateInputDTO] DomainCreateInputDTO
2277
+ * @param {*} [options] Override http request option.
2278
+ * @throws {RequiredError}
2279
+ */
2280
+ domainControllerCreate: async (domainCreateInputDTO, options = {}) => {
2281
+ const localVarPath = `/domain`;
2282
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2283
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2284
+ let baseOptions;
2285
+ if (configuration) {
2286
+ baseOptions = configuration.baseOptions;
2287
+ }
2288
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2289
+ const localVarHeaderParameter = {};
2290
+ const localVarQueryParameter = {};
2291
+ // authentication staffSession required
2292
+ // authentication adminAuth required
2293
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2294
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2295
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2296
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2297
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2298
+ localVarRequestOptions.data = serializeDataIfNeeded(domainCreateInputDTO, localVarRequestOptions, configuration);
2299
+ return {
2300
+ url: toPathString(localVarUrlObj),
2301
+ options: localVarRequestOptions,
2302
+ };
2303
+ },
2304
+ /**
2305
+ * 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`
2306
+ * @summary Mint a Domain Key for a domain
2307
+ * @param {string} id
2308
+ * @param {DomainApiKeyCreateInputDTO} [domainApiKeyCreateInputDTO] DomainApiKeyCreateInputDTO
2309
+ * @param {*} [options] Override http request option.
2310
+ * @throws {RequiredError}
2311
+ */
2312
+ domainControllerCreateApiKey: async (id, domainApiKeyCreateInputDTO, options = {}) => {
2313
+ // verify required parameter 'id' is not null or undefined
2314
+ assertParamExists('domainControllerCreateApiKey', 'id', id);
2315
+ const localVarPath = `/domain/{id}/api-key`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2316
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2317
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2318
+ let baseOptions;
2319
+ if (configuration) {
2320
+ baseOptions = configuration.baseOptions;
2321
+ }
2322
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2323
+ const localVarHeaderParameter = {};
2324
+ const localVarQueryParameter = {};
2325
+ // authentication staffSession required
2326
+ // authentication adminAuth required
2327
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2328
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2329
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2330
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2331
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2332
+ localVarRequestOptions.data = serializeDataIfNeeded(domainApiKeyCreateInputDTO, localVarRequestOptions, configuration);
2333
+ return {
2334
+ url: toPathString(localVarUrlObj),
2335
+ options: localVarRequestOptions,
2336
+ };
2337
+ },
2338
+ /**
2339
+ * 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`
2340
+ * @summary Create staff-recovery invite link for a domain
2341
+ * @param {string} id
2342
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
2343
+ * @param {*} [options] Override http request option.
2344
+ * @throws {RequiredError}
2345
+ */
2346
+ domainControllerCreateInviteLink: async (id, inviteLinkCreateInputDTO, options = {}) => {
2347
+ // verify required parameter 'id' is not null or undefined
2348
+ assertParamExists('domainControllerCreateInviteLink', 'id', id);
2349
+ const localVarPath = `/domain/{id}/invite-link`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2350
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2351
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2352
+ let baseOptions;
2353
+ if (configuration) {
2354
+ baseOptions = configuration.baseOptions;
2355
+ }
2356
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2357
+ const localVarHeaderParameter = {};
2358
+ const localVarQueryParameter = {};
2359
+ // authentication staffSession required
2360
+ // authentication adminAuth required
2361
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2362
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2363
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2364
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2365
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2366
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteLinkCreateInputDTO, localVarRequestOptions, configuration);
2367
+ return {
2368
+ url: toPathString(localVarUrlObj),
2369
+ options: localVarRequestOptions,
2370
+ };
2371
+ },
2372
+ /**
2373
+ * <br> OperationId: `DomainControllerGetOne`
2374
+ * @summary Get one
2375
+ * @param {string} id
2376
+ * @param {*} [options] Override http request option.
2377
+ * @throws {RequiredError}
2378
+ */
2379
+ domainControllerGetOne: async (id, options = {}) => {
2380
+ // verify required parameter 'id' is not null or undefined
2381
+ assertParamExists('domainControllerGetOne', 'id', id);
2382
+ const localVarPath = `/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2383
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2384
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2385
+ let baseOptions;
2386
+ if (configuration) {
2387
+ baseOptions = configuration.baseOptions;
2388
+ }
2389
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2390
+ const localVarHeaderParameter = {};
2391
+ const localVarQueryParameter = {};
2392
+ // authentication staffSession required
2393
+ // authentication adminAuth required
2394
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2395
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2396
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2397
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2398
+ return {
2399
+ url: toPathString(localVarUrlObj),
2400
+ options: localVarRequestOptions,
2401
+ };
2402
+ },
2403
+ /**
2404
+ * <br> OperationId: `DomainControllerGetToken`
2405
+ * @summary Get token
2406
+ * @param {TokenInputDTO} [tokenInputDTO] TokenInputDTO
2407
+ * @param {*} [options] Override http request option.
2408
+ * @throws {RequiredError}
2409
+ */
2410
+ domainControllerGetToken: async (tokenInputDTO, options = {}) => {
2411
+ const localVarPath = `/token`;
2412
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2413
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2414
+ let baseOptions;
2415
+ if (configuration) {
2416
+ baseOptions = configuration.baseOptions;
2417
+ }
2418
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2419
+ const localVarHeaderParameter = {};
2420
+ const localVarQueryParameter = {};
2421
+ // authentication staffSession required
2422
+ // authentication adminAuth required
2423
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2424
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2425
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2426
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2427
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2428
+ localVarRequestOptions.data = serializeDataIfNeeded(tokenInputDTO, localVarRequestOptions, configuration);
2429
+ return {
2430
+ url: toPathString(localVarUrlObj),
2431
+ options: localVarRequestOptions,
2432
+ };
2433
+ },
2434
+ /**
2435
+ * 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`
2436
+ * @summary List a domain\'s roles
2437
+ * @param {string} id
2438
+ * @param {*} [options] Override http request option.
2439
+ * @throws {RequiredError}
2440
+ */
2441
+ domainControllerListRoles: async (id, options = {}) => {
2442
+ // verify required parameter 'id' is not null or undefined
2443
+ assertParamExists('domainControllerListRoles', 'id', id);
2444
+ const localVarPath = `/domain/{id}/roles`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2445
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2446
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2447
+ let baseOptions;
2448
+ if (configuration) {
2449
+ baseOptions = configuration.baseOptions;
2450
+ }
2451
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2452
+ const localVarHeaderParameter = {};
2453
+ const localVarQueryParameter = {};
2454
+ // authentication staffSession required
2455
+ // authentication adminAuth required
2456
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2457
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2458
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2459
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2460
+ return {
2461
+ url: toPathString(localVarUrlObj),
2462
+ options: localVarRequestOptions,
2463
+ };
2464
+ },
2465
+ /**
2466
+ * <br> OperationId: `DomainControllerRemove`
2467
+ * @summary Remove
2468
+ * @param {string} id
2469
+ * @param {any} [hardDelete]
2470
+ * @param {*} [options] Override http request option.
2471
+ * @throws {RequiredError}
2472
+ */
2473
+ domainControllerRemove: async (id, hardDelete, options = {}) => {
2474
+ // verify required parameter 'id' is not null or undefined
2475
+ assertParamExists('domainControllerRemove', 'id', id);
2476
+ const localVarPath = `/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2477
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2478
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2479
+ let baseOptions;
2480
+ if (configuration) {
2481
+ baseOptions = configuration.baseOptions;
2482
+ }
2483
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
2484
+ const localVarHeaderParameter = {};
2485
+ const localVarQueryParameter = {};
2486
+ // authentication staffSession required
2487
+ // authentication adminAuth required
2488
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2489
+ if (hardDelete !== undefined) {
2490
+ for (const [key, value] of Object.entries(hardDelete)) {
2491
+ localVarQueryParameter[key] = value;
2492
+ }
2493
+ }
2494
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2495
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2496
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2497
+ return {
2498
+ url: toPathString(localVarUrlObj),
2499
+ options: localVarRequestOptions,
2500
+ };
2501
+ },
2502
+ /**
2503
+ * <br> OperationId: `DomainControllerResolveRegistrationToken`
2504
+ * @summary Resolve registration token
2505
+ * @param {ResolveRegistrationTokenInputDTO} [resolveRegistrationTokenInputDTO] ResolveRegistrationTokenInputDTO
2506
+ * @param {*} [options] Override http request option.
2507
+ * @throws {RequiredError}
2508
+ */
2509
+ domainControllerResolveRegistrationToken: async (resolveRegistrationTokenInputDTO, options = {}) => {
2510
+ const localVarPath = `/resolve-registration-token`;
2511
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2512
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2513
+ let baseOptions;
2514
+ if (configuration) {
2515
+ baseOptions = configuration.baseOptions;
2516
+ }
2517
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2518
+ const localVarHeaderParameter = {};
2519
+ const localVarQueryParameter = {};
2520
+ // authentication staffSession required
2521
+ // authentication adminAuth required
2522
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2523
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2524
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2525
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2526
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2527
+ localVarRequestOptions.data = serializeDataIfNeeded(resolveRegistrationTokenInputDTO, localVarRequestOptions, configuration);
2528
+ return {
2529
+ url: toPathString(localVarUrlObj),
2530
+ options: localVarRequestOptions,
2531
+ };
2532
+ },
2533
+ /**
2534
+ * <br> OperationId: `DomainControllerSearch`
2535
+ * @summary Search
2536
+ * @param {DomainSearchInputDTO} [domainSearchInputDTO] DomainSearchInputDTO
2537
+ * @param {*} [options] Override http request option.
2538
+ * @throws {RequiredError}
2539
+ */
2540
+ domainControllerSearch: async (domainSearchInputDTO, options = {}) => {
2541
+ const localVarPath = `/domain/search`;
2542
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2543
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2544
+ let baseOptions;
2545
+ if (configuration) {
2546
+ baseOptions = configuration.baseOptions;
2547
+ }
2548
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2549
+ const localVarHeaderParameter = {};
2550
+ const localVarQueryParameter = {};
2551
+ // authentication staffSession required
2552
+ // authentication adminAuth required
2553
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2554
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2555
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2556
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2557
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2558
+ localVarRequestOptions.data = serializeDataIfNeeded(domainSearchInputDTO, localVarRequestOptions, configuration);
2559
+ return {
2560
+ url: toPathString(localVarUrlObj),
2561
+ options: localVarRequestOptions,
2562
+ };
2563
+ },
2564
+ /**
2565
+ * 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`
2566
+ * @summary Search distributor-backed domains
2567
+ * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
2568
+ * @param {*} [options] Override http request option.
2569
+ * @throws {RequiredError}
2570
+ */
2571
+ domainControllerSearchDistributorBacked: async (distributorBackedDomainSearchInputDTO, options = {}) => {
2572
+ const localVarPath = `/domain/distributor-backed/search`;
2573
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2574
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2575
+ let baseOptions;
2576
+ if (configuration) {
2577
+ baseOptions = configuration.baseOptions;
2578
+ }
2579
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2580
+ const localVarHeaderParameter = {};
2581
+ const localVarQueryParameter = {};
2582
+ // authentication staffSession required
2583
+ // authentication adminAuth required
2584
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2585
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2586
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2587
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2588
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2589
+ localVarRequestOptions.data = serializeDataIfNeeded(distributorBackedDomainSearchInputDTO, localVarRequestOptions, configuration);
2590
+ return {
2591
+ url: toPathString(localVarUrlObj),
2592
+ options: localVarRequestOptions,
2593
+ };
2594
+ },
2595
+ /**
2596
+ * <br> OperationId: `DomainControllerUpdate`
2597
+ * @summary Update
2598
+ * @param {string} id
2599
+ * @param {DomainUpdateInputDTO} [domainUpdateInputDTO] DomainUpdateInputDTO
2600
+ * @param {*} [options] Override http request option.
2601
+ * @throws {RequiredError}
2602
+ */
2603
+ domainControllerUpdate: async (id, domainUpdateInputDTO, options = {}) => {
2604
+ // verify required parameter 'id' is not null or undefined
2605
+ assertParamExists('domainControllerUpdate', 'id', id);
2606
+ const localVarPath = `/domain/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
2607
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2608
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2609
+ let baseOptions;
2610
+ if (configuration) {
2611
+ baseOptions = configuration.baseOptions;
2612
+ }
2613
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
2614
+ const localVarHeaderParameter = {};
2615
+ const localVarQueryParameter = {};
2616
+ // authentication staffSession required
2617
+ // authentication adminAuth required
2618
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
2619
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2620
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2621
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2622
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2623
+ localVarRequestOptions.data = serializeDataIfNeeded(domainUpdateInputDTO, localVarRequestOptions, configuration);
2624
+ return {
2625
+ url: toPathString(localVarUrlObj),
2626
+ options: localVarRequestOptions,
2627
+ };
2628
+ },
2629
+ };
2630
+ };
2631
+ /**
2632
+ * DomainApi - functional programming interface
2633
+ * @export
2634
+ */
2635
+ export const DomainApiFp = function (configuration) {
2636
+ const localVarAxiosParamCreator = DomainApiAxiosParamCreator(configuration);
2637
+ return {
2638
+ /**
2639
+ * <br> OperationId: `DomainControllerCreate`
2640
+ * @summary Create
2641
+ * @param {DomainCreateInputDTO} [domainCreateInputDTO] DomainCreateInputDTO
2642
+ * @param {*} [options] Override http request option.
2643
+ * @throws {RequiredError}
2644
+ */
2645
+ async domainControllerCreate(domainCreateInputDTO, options) {
2646
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerCreate(domainCreateInputDTO, options);
2647
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2648
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerCreate']?.[localVarOperationServerIndex]?.url;
2649
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2650
+ },
2651
+ /**
2652
+ * 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`
2653
+ * @summary Mint a Domain Key for a domain
2654
+ * @param {string} id
2655
+ * @param {DomainApiKeyCreateInputDTO} [domainApiKeyCreateInputDTO] DomainApiKeyCreateInputDTO
2656
+ * @param {*} [options] Override http request option.
2657
+ * @throws {RequiredError}
2658
+ */
2659
+ async domainControllerCreateApiKey(id, domainApiKeyCreateInputDTO, options) {
2660
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerCreateApiKey(id, domainApiKeyCreateInputDTO, options);
2661
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2662
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerCreateApiKey']?.[localVarOperationServerIndex]?.url;
2663
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2664
+ },
2665
+ /**
2666
+ * 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`
2667
+ * @summary Create staff-recovery invite link for a domain
2668
+ * @param {string} id
2669
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
2670
+ * @param {*} [options] Override http request option.
2671
+ * @throws {RequiredError}
2672
+ */
2673
+ async domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options) {
2674
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options);
2675
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2676
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerCreateInviteLink']?.[localVarOperationServerIndex]?.url;
2677
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2678
+ },
2679
+ /**
2680
+ * <br> OperationId: `DomainControllerGetOne`
2681
+ * @summary Get one
2682
+ * @param {string} id
2683
+ * @param {*} [options] Override http request option.
2684
+ * @throws {RequiredError}
2685
+ */
2686
+ async domainControllerGetOne(id, options) {
2687
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerGetOne(id, options);
2688
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2689
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerGetOne']?.[localVarOperationServerIndex]?.url;
2690
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2691
+ },
2692
+ /**
2693
+ * <br> OperationId: `DomainControllerGetToken`
2694
+ * @summary Get token
2695
+ * @param {TokenInputDTO} [tokenInputDTO] TokenInputDTO
2696
+ * @param {*} [options] Override http request option.
2697
+ * @throws {RequiredError}
2698
+ */
2699
+ async domainControllerGetToken(tokenInputDTO, options) {
2700
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerGetToken(tokenInputDTO, options);
2701
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2702
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerGetToken']?.[localVarOperationServerIndex]?.url;
2703
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2704
+ },
2705
+ /**
2706
+ * 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`
2707
+ * @summary List a domain\'s roles
2708
+ * @param {string} id
2709
+ * @param {*} [options] Override http request option.
2710
+ * @throws {RequiredError}
2711
+ */
2712
+ async domainControllerListRoles(id, options) {
2713
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerListRoles(id, options);
2714
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2715
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerListRoles']?.[localVarOperationServerIndex]?.url;
2716
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2717
+ },
2718
+ /**
2719
+ * <br> OperationId: `DomainControllerRemove`
2720
+ * @summary Remove
2721
+ * @param {string} id
2722
+ * @param {any} [hardDelete]
2723
+ * @param {*} [options] Override http request option.
2724
+ * @throws {RequiredError}
2725
+ */
2726
+ async domainControllerRemove(id, hardDelete, options) {
2727
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerRemove(id, hardDelete, options);
2728
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2729
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerRemove']?.[localVarOperationServerIndex]?.url;
2730
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2731
+ },
2732
+ /**
2733
+ * <br> OperationId: `DomainControllerResolveRegistrationToken`
2734
+ * @summary Resolve registration token
2735
+ * @param {ResolveRegistrationTokenInputDTO} [resolveRegistrationTokenInputDTO] ResolveRegistrationTokenInputDTO
2736
+ * @param {*} [options] Override http request option.
2737
+ * @throws {RequiredError}
2738
+ */
2739
+ async domainControllerResolveRegistrationToken(resolveRegistrationTokenInputDTO, options) {
2740
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerResolveRegistrationToken(resolveRegistrationTokenInputDTO, options);
2741
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2742
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerResolveRegistrationToken']?.[localVarOperationServerIndex]?.url;
2743
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2744
+ },
2745
+ /**
2746
+ * <br> OperationId: `DomainControllerSearch`
2747
+ * @summary Search
2748
+ * @param {DomainSearchInputDTO} [domainSearchInputDTO] DomainSearchInputDTO
2749
+ * @param {*} [options] Override http request option.
2750
+ * @throws {RequiredError}
2751
+ */
2752
+ async domainControllerSearch(domainSearchInputDTO, options) {
2753
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSearch(domainSearchInputDTO, options);
2754
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2755
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSearch']?.[localVarOperationServerIndex]?.url;
2756
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2757
+ },
2758
+ /**
2759
+ * 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`
2760
+ * @summary Search distributor-backed domains
2761
+ * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
2762
+ * @param {*} [options] Override http request option.
2763
+ * @throws {RequiredError}
2764
+ */
2765
+ async domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
2766
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options);
2767
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2768
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerSearchDistributorBacked']?.[localVarOperationServerIndex]?.url;
2769
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2770
+ },
2771
+ /**
2772
+ * <br> OperationId: `DomainControllerUpdate`
2773
+ * @summary Update
2774
+ * @param {string} id
2775
+ * @param {DomainUpdateInputDTO} [domainUpdateInputDTO] DomainUpdateInputDTO
2776
+ * @param {*} [options] Override http request option.
2777
+ * @throws {RequiredError}
2778
+ */
2779
+ async domainControllerUpdate(id, domainUpdateInputDTO, options) {
2780
+ const localVarAxiosArgs = await localVarAxiosParamCreator.domainControllerUpdate(id, domainUpdateInputDTO, options);
2781
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2782
+ const localVarOperationServerBasePath = operationServerMap['DomainApi.domainControllerUpdate']?.[localVarOperationServerIndex]?.url;
2783
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2784
+ },
2785
+ };
2786
+ };
2787
+ /**
2788
+ * DomainApi - factory interface
2789
+ * @export
2790
+ */
2791
+ export const DomainApiFactory = function (configuration, basePath, axios) {
2792
+ const localVarFp = DomainApiFp(configuration);
2793
+ return {
2794
+ /**
2795
+ * <br> OperationId: `DomainControllerCreate`
2796
+ * @summary Create
2797
+ * @param {DomainCreateInputDTO} [domainCreateInputDTO] DomainCreateInputDTO
2798
+ * @param {*} [options] Override http request option.
2799
+ * @throws {RequiredError}
2800
+ */
2801
+ domainControllerCreate(domainCreateInputDTO, options) {
2802
+ return localVarFp
2803
+ .domainControllerCreate(domainCreateInputDTO, options)
2804
+ .then((request) => request(axios, basePath));
2805
+ },
2806
+ /**
2807
+ * 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`
2808
+ * @summary Mint a Domain Key for a domain
2809
+ * @param {string} id
2810
+ * @param {DomainApiKeyCreateInputDTO} [domainApiKeyCreateInputDTO] DomainApiKeyCreateInputDTO
2811
+ * @param {*} [options] Override http request option.
2812
+ * @throws {RequiredError}
2813
+ */
2814
+ domainControllerCreateApiKey(id, domainApiKeyCreateInputDTO, options) {
2815
+ return localVarFp
2816
+ .domainControllerCreateApiKey(id, domainApiKeyCreateInputDTO, options)
2817
+ .then((request) => request(axios, basePath));
2818
+ },
2819
+ /**
2820
+ * 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`
2821
+ * @summary Create staff-recovery invite link for a domain
2822
+ * @param {string} id
2823
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
2824
+ * @param {*} [options] Override http request option.
2825
+ * @throws {RequiredError}
2826
+ */
2827
+ domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options) {
2828
+ return localVarFp
2829
+ .domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options)
2830
+ .then((request) => request(axios, basePath));
2831
+ },
2832
+ /**
2833
+ * <br> OperationId: `DomainControllerGetOne`
2834
+ * @summary Get one
2835
+ * @param {string} id
2836
+ * @param {*} [options] Override http request option.
2837
+ * @throws {RequiredError}
2838
+ */
2839
+ domainControllerGetOne(id, options) {
2840
+ return localVarFp.domainControllerGetOne(id, options).then((request) => request(axios, basePath));
2841
+ },
2842
+ /**
2843
+ * <br> OperationId: `DomainControllerGetToken`
2844
+ * @summary Get token
2845
+ * @param {TokenInputDTO} [tokenInputDTO] TokenInputDTO
2846
+ * @param {*} [options] Override http request option.
2847
+ * @throws {RequiredError}
2848
+ */
2849
+ domainControllerGetToken(tokenInputDTO, options) {
2850
+ return localVarFp.domainControllerGetToken(tokenInputDTO, options).then((request) => request(axios, basePath));
2851
+ },
2852
+ /**
2853
+ * 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`
2854
+ * @summary List a domain\'s roles
2855
+ * @param {string} id
2856
+ * @param {*} [options] Override http request option.
2857
+ * @throws {RequiredError}
2858
+ */
2859
+ domainControllerListRoles(id, options) {
2860
+ return localVarFp.domainControllerListRoles(id, options).then((request) => request(axios, basePath));
2861
+ },
2862
+ /**
2863
+ * <br> OperationId: `DomainControllerRemove`
2864
+ * @summary Remove
2865
+ * @param {string} id
2866
+ * @param {any} [hardDelete]
2867
+ * @param {*} [options] Override http request option.
2868
+ * @throws {RequiredError}
2869
+ */
2870
+ domainControllerRemove(id, hardDelete, options) {
2871
+ return localVarFp.domainControllerRemove(id, hardDelete, options).then((request) => request(axios, basePath));
2872
+ },
2873
+ /**
2874
+ * <br> OperationId: `DomainControllerResolveRegistrationToken`
2875
+ * @summary Resolve registration token
2876
+ * @param {ResolveRegistrationTokenInputDTO} [resolveRegistrationTokenInputDTO] ResolveRegistrationTokenInputDTO
2877
+ * @param {*} [options] Override http request option.
2878
+ * @throws {RequiredError}
2879
+ */
2880
+ domainControllerResolveRegistrationToken(resolveRegistrationTokenInputDTO, options) {
2881
+ return localVarFp
2882
+ .domainControllerResolveRegistrationToken(resolveRegistrationTokenInputDTO, options)
2883
+ .then((request) => request(axios, basePath));
2884
+ },
2885
+ /**
2886
+ * <br> OperationId: `DomainControllerSearch`
2887
+ * @summary Search
2888
+ * @param {DomainSearchInputDTO} [domainSearchInputDTO] DomainSearchInputDTO
2889
+ * @param {*} [options] Override http request option.
2890
+ * @throws {RequiredError}
2891
+ */
2892
+ domainControllerSearch(domainSearchInputDTO, options) {
2893
+ return localVarFp
2894
+ .domainControllerSearch(domainSearchInputDTO, options)
2895
+ .then((request) => request(axios, basePath));
2896
+ },
2897
+ /**
2898
+ * 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`
2899
+ * @summary Search distributor-backed domains
2900
+ * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
2901
+ * @param {*} [options] Override http request option.
2902
+ * @throws {RequiredError}
2903
+ */
2904
+ domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
2905
+ return localVarFp
2906
+ .domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options)
2907
+ .then((request) => request(axios, basePath));
2908
+ },
2909
+ /**
2910
+ * <br> OperationId: `DomainControllerUpdate`
2911
+ * @summary Update
2912
+ * @param {string} id
2913
+ * @param {DomainUpdateInputDTO} [domainUpdateInputDTO] DomainUpdateInputDTO
2914
+ * @param {*} [options] Override http request option.
2915
+ * @throws {RequiredError}
2916
+ */
2917
+ domainControllerUpdate(id, domainUpdateInputDTO, options) {
2918
+ return localVarFp
2919
+ .domainControllerUpdate(id, domainUpdateInputDTO, options)
2920
+ .then((request) => request(axios, basePath));
2921
+ },
2922
+ };
2923
+ };
2924
+ /**
2925
+ * DomainApi - object-oriented interface
2926
+ * @export
2927
+ * @class DomainApi
2928
+ * @extends {BaseAPI}
2929
+ */
2930
+ export class DomainApi extends BaseAPI {
2931
+ /**
2932
+ * <br> OperationId: `DomainControllerCreate`
2933
+ * @summary Create
2934
+ * @param {DomainCreateInputDTO} [domainCreateInputDTO] DomainCreateInputDTO
2935
+ * @param {*} [options] Override http request option.
2936
+ * @throws {RequiredError}
2937
+ * @memberof DomainApi
2938
+ */
2939
+ domainControllerCreate(domainCreateInputDTO, options) {
2940
+ return DomainApiFp(this.configuration)
2941
+ .domainControllerCreate(domainCreateInputDTO, options)
2942
+ .then((request) => request(this.axios, this.basePath));
2943
+ }
2944
+ /**
2945
+ * 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`
2946
+ * @summary Mint a Domain Key for a domain
2947
+ * @param {string} id
2948
+ * @param {DomainApiKeyCreateInputDTO} [domainApiKeyCreateInputDTO] DomainApiKeyCreateInputDTO
2949
+ * @param {*} [options] Override http request option.
2950
+ * @throws {RequiredError}
2951
+ * @memberof DomainApi
2952
+ */
2953
+ domainControllerCreateApiKey(id, domainApiKeyCreateInputDTO, options) {
2954
+ return DomainApiFp(this.configuration)
2955
+ .domainControllerCreateApiKey(id, domainApiKeyCreateInputDTO, options)
2956
+ .then((request) => request(this.axios, this.basePath));
2957
+ }
2958
+ /**
2959
+ * 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`
2960
+ * @summary Create staff-recovery invite link for a domain
2961
+ * @param {string} id
2962
+ * @param {InviteLinkCreateInputDTO} [inviteLinkCreateInputDTO] InviteLinkCreateInputDTO
2963
+ * @param {*} [options] Override http request option.
2964
+ * @throws {RequiredError}
2965
+ * @memberof DomainApi
2966
+ */
2967
+ domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options) {
2968
+ return DomainApiFp(this.configuration)
2969
+ .domainControllerCreateInviteLink(id, inviteLinkCreateInputDTO, options)
2970
+ .then((request) => request(this.axios, this.basePath));
2971
+ }
2972
+ /**
2973
+ * <br> OperationId: `DomainControllerGetOne`
2974
+ * @summary Get one
2975
+ * @param {string} id
2976
+ * @param {*} [options] Override http request option.
2977
+ * @throws {RequiredError}
2978
+ * @memberof DomainApi
2979
+ */
2980
+ domainControllerGetOne(id, options) {
2981
+ return DomainApiFp(this.configuration)
2982
+ .domainControllerGetOne(id, options)
2983
+ .then((request) => request(this.axios, this.basePath));
2984
+ }
2985
+ /**
2986
+ * <br> OperationId: `DomainControllerGetToken`
2987
+ * @summary Get token
2988
+ * @param {TokenInputDTO} [tokenInputDTO] TokenInputDTO
2989
+ * @param {*} [options] Override http request option.
2990
+ * @throws {RequiredError}
2991
+ * @memberof DomainApi
2992
+ */
2993
+ domainControllerGetToken(tokenInputDTO, options) {
2994
+ return DomainApiFp(this.configuration)
2995
+ .domainControllerGetToken(tokenInputDTO, options)
2996
+ .then((request) => request(this.axios, this.basePath));
2997
+ }
2998
+ /**
2999
+ * 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`
3000
+ * @summary List a domain\'s roles
3001
+ * @param {string} id
3002
+ * @param {*} [options] Override http request option.
3003
+ * @throws {RequiredError}
3004
+ * @memberof DomainApi
3005
+ */
3006
+ domainControllerListRoles(id, options) {
3007
+ return DomainApiFp(this.configuration)
3008
+ .domainControllerListRoles(id, options)
3009
+ .then((request) => request(this.axios, this.basePath));
3010
+ }
3011
+ /**
3012
+ * <br> OperationId: `DomainControllerRemove`
3013
+ * @summary Remove
3014
+ * @param {string} id
3015
+ * @param {any} [hardDelete]
3016
+ * @param {*} [options] Override http request option.
3017
+ * @throws {RequiredError}
3018
+ * @memberof DomainApi
3019
+ */
3020
+ domainControllerRemove(id, hardDelete, options) {
3021
+ return DomainApiFp(this.configuration)
3022
+ .domainControllerRemove(id, hardDelete, options)
3023
+ .then((request) => request(this.axios, this.basePath));
3024
+ }
3025
+ /**
3026
+ * <br> OperationId: `DomainControllerResolveRegistrationToken`
3027
+ * @summary Resolve registration token
3028
+ * @param {ResolveRegistrationTokenInputDTO} [resolveRegistrationTokenInputDTO] ResolveRegistrationTokenInputDTO
3029
+ * @param {*} [options] Override http request option.
3030
+ * @throws {RequiredError}
3031
+ * @memberof DomainApi
3032
+ */
3033
+ domainControllerResolveRegistrationToken(resolveRegistrationTokenInputDTO, options) {
3034
+ return DomainApiFp(this.configuration)
3035
+ .domainControllerResolveRegistrationToken(resolveRegistrationTokenInputDTO, options)
3036
+ .then((request) => request(this.axios, this.basePath));
3037
+ }
3038
+ /**
3039
+ * <br> OperationId: `DomainControllerSearch`
3040
+ * @summary Search
3041
+ * @param {DomainSearchInputDTO} [domainSearchInputDTO] DomainSearchInputDTO
3042
+ * @param {*} [options] Override http request option.
3043
+ * @throws {RequiredError}
3044
+ * @memberof DomainApi
3045
+ */
3046
+ domainControllerSearch(domainSearchInputDTO, options) {
3047
+ return DomainApiFp(this.configuration)
3048
+ .domainControllerSearch(domainSearchInputDTO, options)
3049
+ .then((request) => request(this.axios, this.basePath));
3050
+ }
3051
+ /**
3052
+ * 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`
3053
+ * @summary Search distributor-backed domains
3054
+ * @param {DistributorBackedDomainSearchInputDTO} [distributorBackedDomainSearchInputDTO] DistributorBackedDomainSearchInputDTO
3055
+ * @param {*} [options] Override http request option.
3056
+ * @throws {RequiredError}
3057
+ * @memberof DomainApi
3058
+ */
3059
+ domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options) {
3060
+ return DomainApiFp(this.configuration)
3061
+ .domainControllerSearchDistributorBacked(distributorBackedDomainSearchInputDTO, options)
3062
+ .then((request) => request(this.axios, this.basePath));
3063
+ }
3064
+ /**
3065
+ * <br> OperationId: `DomainControllerUpdate`
3066
+ * @summary Update
3067
+ * @param {string} id
3068
+ * @param {DomainUpdateInputDTO} [domainUpdateInputDTO] DomainUpdateInputDTO
3069
+ * @param {*} [options] Override http request option.
3070
+ * @throws {RequiredError}
3071
+ * @memberof DomainApi
3072
+ */
3073
+ domainControllerUpdate(id, domainUpdateInputDTO, options) {
3074
+ return DomainApiFp(this.configuration)
3075
+ .domainControllerUpdate(id, domainUpdateInputDTO, options)
3076
+ .then((request) => request(this.axios, this.basePath));
3077
+ }
3078
+ }
3079
+ /**
3080
+ * MetaApi - axios parameter creator
3081
+ * @export
3082
+ */
3083
+ export const MetaApiAxiosParamCreator = function (configuration) {
3084
+ return {
3085
+ /**
3086
+ * <br> OperationId: `MetaGetHealth`
3087
+ * @summary Get health
3088
+ * @param {*} [options] Override http request option.
3089
+ * @throws {RequiredError}
3090
+ */
3091
+ metaGetHealth: async (options = {}) => {
3092
+ const localVarPath = `/healthz`;
3093
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3094
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3095
+ let baseOptions;
3096
+ if (configuration) {
3097
+ baseOptions = configuration.baseOptions;
3098
+ }
3099
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3100
+ const localVarHeaderParameter = {};
3101
+ const localVarQueryParameter = {};
3102
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3103
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3104
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3105
+ return {
3106
+ url: toPathString(localVarUrlObj),
3107
+ options: localVarRequestOptions,
3108
+ };
3109
+ },
3110
+ /**
3111
+ * <br> OperationId: `MetaGetLiveness`
3112
+ * @summary Get liveness
3113
+ * @param {*} [options] Override http request option.
3114
+ * @throws {RequiredError}
3115
+ */
3116
+ metaGetLiveness: async (options = {}) => {
3117
+ const localVarPath = `/livez`;
3118
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3119
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3120
+ let baseOptions;
3121
+ if (configuration) {
3122
+ baseOptions = configuration.baseOptions;
3123
+ }
3124
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3125
+ const localVarHeaderParameter = {};
3126
+ const localVarQueryParameter = {};
3127
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3129
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3130
+ return {
3131
+ url: toPathString(localVarUrlObj),
3132
+ options: localVarRequestOptions,
3133
+ };
3134
+ },
3135
+ /**
3136
+ * <br> OperationId: `MetaGetMetrics`
3137
+ * @summary Get metrics
3138
+ * @param {*} [options] Override http request option.
3139
+ * @throws {RequiredError}
3140
+ */
3141
+ metaGetMetrics: async (options = {}) => {
3142
+ const localVarPath = `/metrics`;
3143
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3144
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3145
+ let baseOptions;
3146
+ if (configuration) {
3147
+ baseOptions = configuration.baseOptions;
3148
+ }
3149
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3150
+ const localVarHeaderParameter = {};
3151
+ const localVarQueryParameter = {};
3152
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3153
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3154
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3155
+ return {
3156
+ url: toPathString(localVarUrlObj),
3157
+ options: localVarRequestOptions,
3158
+ };
3159
+ },
3160
+ /**
3161
+ * <br> OperationId: `MetaGetOpenApi`
3162
+ * @summary Get open api
3163
+ * @param {*} [options] Override http request option.
3164
+ * @throws {RequiredError}
3165
+ */
3166
+ metaGetOpenApi: async (options = {}) => {
3167
+ const localVarPath = `/openapi.json`;
3168
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3169
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3170
+ let baseOptions;
3171
+ if (configuration) {
3172
+ baseOptions = configuration.baseOptions;
3173
+ }
3174
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3175
+ const localVarHeaderParameter = {};
3176
+ const localVarQueryParameter = {};
3177
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3178
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3179
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3180
+ return {
3181
+ url: toPathString(localVarUrlObj),
3182
+ options: localVarRequestOptions,
3183
+ };
3184
+ },
3185
+ /**
3186
+ * <br> OperationId: `MetaGetOpenApiHtml`
3187
+ * @summary Get open api html
3188
+ * @param {*} [options] Override http request option.
3189
+ * @throws {RequiredError}
3190
+ */
3191
+ metaGetOpenApiHtml: async (options = {}) => {
3192
+ const localVarPath = `/api.html`;
3193
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3194
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3195
+ let baseOptions;
3196
+ if (configuration) {
3197
+ baseOptions = configuration.baseOptions;
3198
+ }
3199
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3200
+ const localVarHeaderParameter = {};
3201
+ const localVarQueryParameter = {};
3202
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3203
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3204
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3205
+ return {
3206
+ url: toPathString(localVarUrlObj),
3207
+ options: localVarRequestOptions,
3208
+ };
3209
+ },
3210
+ /**
3211
+ * <br> OperationId: `MetaGetReadiness`
3212
+ * @summary Get readiness
3213
+ * @param {*} [options] Override http request option.
3214
+ * @throws {RequiredError}
3215
+ */
3216
+ metaGetReadiness: async (options = {}) => {
3217
+ const localVarPath = `/readyz`;
3218
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3219
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3220
+ let baseOptions;
3221
+ if (configuration) {
3222
+ baseOptions = configuration.baseOptions;
3223
+ }
3224
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3225
+ const localVarHeaderParameter = {};
3226
+ const localVarQueryParameter = {};
3227
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3228
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3229
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3230
+ return {
3231
+ url: toPathString(localVarUrlObj),
3232
+ options: localVarRequestOptions,
3233
+ };
3234
+ },
3235
+ /**
3236
+ * <br> OperationId: `MetaGetRoot`
3237
+ * @summary Get root
3238
+ * @param {*} [options] Override http request option.
3239
+ * @throws {RequiredError}
3240
+ */
3241
+ metaGetRoot: async (options = {}) => {
3242
+ const localVarPath = `/`;
3243
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3244
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3245
+ let baseOptions;
3246
+ if (configuration) {
3247
+ baseOptions = configuration.baseOptions;
3248
+ }
3249
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3250
+ const localVarHeaderParameter = {};
3251
+ const localVarQueryParameter = {};
3252
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3254
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3255
+ return {
3256
+ url: toPathString(localVarUrlObj),
3257
+ options: localVarRequestOptions,
3258
+ };
3259
+ },
3260
+ };
3261
+ };
3262
+ /**
3263
+ * MetaApi - functional programming interface
3264
+ * @export
3265
+ */
3266
+ export const MetaApiFp = function (configuration) {
3267
+ const localVarAxiosParamCreator = MetaApiAxiosParamCreator(configuration);
3268
+ return {
3269
+ /**
3270
+ * <br> OperationId: `MetaGetHealth`
3271
+ * @summary Get health
3272
+ * @param {*} [options] Override http request option.
3273
+ * @throws {RequiredError}
3274
+ */
3275
+ async metaGetHealth(options) {
3276
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetHealth(options);
3277
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3278
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetHealth']?.[localVarOperationServerIndex]?.url;
3279
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3280
+ },
3281
+ /**
3282
+ * <br> OperationId: `MetaGetLiveness`
3283
+ * @summary Get liveness
3284
+ * @param {*} [options] Override http request option.
3285
+ * @throws {RequiredError}
3286
+ */
3287
+ async metaGetLiveness(options) {
3288
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetLiveness(options);
3289
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3290
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetLiveness']?.[localVarOperationServerIndex]?.url;
3291
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3292
+ },
3293
+ /**
3294
+ * <br> OperationId: `MetaGetMetrics`
3295
+ * @summary Get metrics
3296
+ * @param {*} [options] Override http request option.
3297
+ * @throws {RequiredError}
3298
+ */
3299
+ async metaGetMetrics(options) {
3300
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetMetrics(options);
3301
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3302
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetMetrics']?.[localVarOperationServerIndex]?.url;
3303
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3304
+ },
3305
+ /**
3306
+ * <br> OperationId: `MetaGetOpenApi`
3307
+ * @summary Get open api
3308
+ * @param {*} [options] Override http request option.
3309
+ * @throws {RequiredError}
3310
+ */
3311
+ async metaGetOpenApi(options) {
3312
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApi(options);
3313
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3314
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApi']?.[localVarOperationServerIndex]?.url;
3315
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3316
+ },
3317
+ /**
3318
+ * <br> OperationId: `MetaGetOpenApiHtml`
3319
+ * @summary Get open api html
3320
+ * @param {*} [options] Override http request option.
3321
+ * @throws {RequiredError}
3322
+ */
3323
+ async metaGetOpenApiHtml(options) {
3324
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetOpenApiHtml(options);
3325
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3326
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetOpenApiHtml']?.[localVarOperationServerIndex]?.url;
3327
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3328
+ },
3329
+ /**
3330
+ * <br> OperationId: `MetaGetReadiness`
3331
+ * @summary Get readiness
3332
+ * @param {*} [options] Override http request option.
3333
+ * @throws {RequiredError}
3334
+ */
3335
+ async metaGetReadiness(options) {
3336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetReadiness(options);
3337
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3338
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetReadiness']?.[localVarOperationServerIndex]?.url;
3339
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3340
+ },
3341
+ /**
3342
+ * <br> OperationId: `MetaGetRoot`
3343
+ * @summary Get root
3344
+ * @param {*} [options] Override http request option.
3345
+ * @throws {RequiredError}
3346
+ */
3347
+ async metaGetRoot(options) {
3348
+ const localVarAxiosArgs = await localVarAxiosParamCreator.metaGetRoot(options);
3349
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3350
+ const localVarOperationServerBasePath = operationServerMap['MetaApi.metaGetRoot']?.[localVarOperationServerIndex]?.url;
3351
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3352
+ },
3353
+ };
3354
+ };
3355
+ /**
3356
+ * MetaApi - factory interface
3357
+ * @export
3358
+ */
3359
+ export const MetaApiFactory = function (configuration, basePath, axios) {
3360
+ const localVarFp = MetaApiFp(configuration);
3361
+ return {
3362
+ /**
3363
+ * <br> OperationId: `MetaGetHealth`
3364
+ * @summary Get health
3365
+ * @param {*} [options] Override http request option.
3366
+ * @throws {RequiredError}
3367
+ */
3368
+ metaGetHealth(options) {
3369
+ return localVarFp.metaGetHealth(options).then((request) => request(axios, basePath));
3370
+ },
3371
+ /**
3372
+ * <br> OperationId: `MetaGetLiveness`
3373
+ * @summary Get liveness
3374
+ * @param {*} [options] Override http request option.
3375
+ * @throws {RequiredError}
3376
+ */
3377
+ metaGetLiveness(options) {
3378
+ return localVarFp.metaGetLiveness(options).then((request) => request(axios, basePath));
3379
+ },
3380
+ /**
3381
+ * <br> OperationId: `MetaGetMetrics`
3382
+ * @summary Get metrics
3383
+ * @param {*} [options] Override http request option.
3384
+ * @throws {RequiredError}
3385
+ */
3386
+ metaGetMetrics(options) {
3387
+ return localVarFp.metaGetMetrics(options).then((request) => request(axios, basePath));
3388
+ },
3389
+ /**
3390
+ * <br> OperationId: `MetaGetOpenApi`
3391
+ * @summary Get open api
3392
+ * @param {*} [options] Override http request option.
3393
+ * @throws {RequiredError}
3394
+ */
3395
+ metaGetOpenApi(options) {
3396
+ return localVarFp.metaGetOpenApi(options).then((request) => request(axios, basePath));
3397
+ },
3398
+ /**
3399
+ * <br> OperationId: `MetaGetOpenApiHtml`
3400
+ * @summary Get open api html
3401
+ * @param {*} [options] Override http request option.
3402
+ * @throws {RequiredError}
3403
+ */
3404
+ metaGetOpenApiHtml(options) {
3405
+ return localVarFp.metaGetOpenApiHtml(options).then((request) => request(axios, basePath));
3406
+ },
3407
+ /**
3408
+ * <br> OperationId: `MetaGetReadiness`
3409
+ * @summary Get readiness
3410
+ * @param {*} [options] Override http request option.
3411
+ * @throws {RequiredError}
3412
+ */
3413
+ metaGetReadiness(options) {
3414
+ return localVarFp.metaGetReadiness(options).then((request) => request(axios, basePath));
3415
+ },
3416
+ /**
3417
+ * <br> OperationId: `MetaGetRoot`
3418
+ * @summary Get root
3419
+ * @param {*} [options] Override http request option.
3420
+ * @throws {RequiredError}
3421
+ */
3422
+ metaGetRoot(options) {
3423
+ return localVarFp.metaGetRoot(options).then((request) => request(axios, basePath));
3424
+ },
3425
+ };
3426
+ };
3427
+ /**
3428
+ * MetaApi - object-oriented interface
3429
+ * @export
3430
+ * @class MetaApi
3431
+ * @extends {BaseAPI}
3432
+ */
3433
+ export class MetaApi extends BaseAPI {
3434
+ /**
3435
+ * <br> OperationId: `MetaGetHealth`
3436
+ * @summary Get health
3437
+ * @param {*} [options] Override http request option.
3438
+ * @throws {RequiredError}
3439
+ * @memberof MetaApi
3440
+ */
3441
+ metaGetHealth(options) {
3442
+ return MetaApiFp(this.configuration)
3443
+ .metaGetHealth(options)
3444
+ .then((request) => request(this.axios, this.basePath));
3445
+ }
3446
+ /**
3447
+ * <br> OperationId: `MetaGetLiveness`
3448
+ * @summary Get liveness
3449
+ * @param {*} [options] Override http request option.
3450
+ * @throws {RequiredError}
3451
+ * @memberof MetaApi
3452
+ */
3453
+ metaGetLiveness(options) {
3454
+ return MetaApiFp(this.configuration)
3455
+ .metaGetLiveness(options)
3456
+ .then((request) => request(this.axios, this.basePath));
3457
+ }
3458
+ /**
3459
+ * <br> OperationId: `MetaGetMetrics`
3460
+ * @summary Get metrics
3461
+ * @param {*} [options] Override http request option.
3462
+ * @throws {RequiredError}
3463
+ * @memberof MetaApi
3464
+ */
3465
+ metaGetMetrics(options) {
3466
+ return MetaApiFp(this.configuration)
3467
+ .metaGetMetrics(options)
3468
+ .then((request) => request(this.axios, this.basePath));
3469
+ }
3470
+ /**
3471
+ * <br> OperationId: `MetaGetOpenApi`
3472
+ * @summary Get open api
3473
+ * @param {*} [options] Override http request option.
3474
+ * @throws {RequiredError}
3475
+ * @memberof MetaApi
3476
+ */
3477
+ metaGetOpenApi(options) {
3478
+ return MetaApiFp(this.configuration)
3479
+ .metaGetOpenApi(options)
3480
+ .then((request) => request(this.axios, this.basePath));
3481
+ }
3482
+ /**
3483
+ * <br> OperationId: `MetaGetOpenApiHtml`
3484
+ * @summary Get open api html
3485
+ * @param {*} [options] Override http request option.
3486
+ * @throws {RequiredError}
3487
+ * @memberof MetaApi
3488
+ */
3489
+ metaGetOpenApiHtml(options) {
3490
+ return MetaApiFp(this.configuration)
3491
+ .metaGetOpenApiHtml(options)
3492
+ .then((request) => request(this.axios, this.basePath));
3493
+ }
3494
+ /**
3495
+ * <br> OperationId: `MetaGetReadiness`
3496
+ * @summary Get readiness
3497
+ * @param {*} [options] Override http request option.
3498
+ * @throws {RequiredError}
3499
+ * @memberof MetaApi
3500
+ */
3501
+ metaGetReadiness(options) {
3502
+ return MetaApiFp(this.configuration)
3503
+ .metaGetReadiness(options)
3504
+ .then((request) => request(this.axios, this.basePath));
3505
+ }
3506
+ /**
3507
+ * <br> OperationId: `MetaGetRoot`
3508
+ * @summary Get root
3509
+ * @param {*} [options] Override http request option.
3510
+ * @throws {RequiredError}
3511
+ * @memberof MetaApi
3512
+ */
3513
+ metaGetRoot(options) {
3514
+ return MetaApiFp(this.configuration)
3515
+ .metaGetRoot(options)
3516
+ .then((request) => request(this.axios, this.basePath));
3517
+ }
3518
+ }
3519
+ /**
3520
+ * PlatformStatsApi - axios parameter creator
3521
+ * @export
3522
+ */
3523
+ export const PlatformStatsApiAxiosParamCreator = function (configuration) {
3524
+ return {
3525
+ /**
3526
+ * 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`
3527
+ * @summary Platform-wide Domain statistics
3528
+ * @param {number} [weeks]
3529
+ * @param {*} [options] Override http request option.
3530
+ * @throws {RequiredError}
3531
+ */
3532
+ platformStatsControllerDomains: async (weeks, options = {}) => {
3533
+ const localVarPath = `/staff/stats/domains`;
3534
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3535
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3536
+ let baseOptions;
3537
+ if (configuration) {
3538
+ baseOptions = configuration.baseOptions;
3539
+ }
3540
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3541
+ const localVarHeaderParameter = {};
3542
+ const localVarQueryParameter = {};
3543
+ // authentication staffSession required
3544
+ // authentication adminAuth required
3545
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3546
+ if (weeks !== undefined) {
3547
+ localVarQueryParameter['weeks'] = weeks;
3548
+ }
3549
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3550
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3551
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3552
+ return {
3553
+ url: toPathString(localVarUrlObj),
3554
+ options: localVarRequestOptions,
3555
+ };
3556
+ },
3557
+ };
3558
+ };
3559
+ /**
3560
+ * PlatformStatsApi - functional programming interface
3561
+ * @export
3562
+ */
3563
+ export const PlatformStatsApiFp = function (configuration) {
3564
+ const localVarAxiosParamCreator = PlatformStatsApiAxiosParamCreator(configuration);
3565
+ return {
3566
+ /**
3567
+ * 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`
3568
+ * @summary Platform-wide Domain statistics
3569
+ * @param {number} [weeks]
3570
+ * @param {*} [options] Override http request option.
3571
+ * @throws {RequiredError}
3572
+ */
3573
+ async platformStatsControllerDomains(weeks, options) {
3574
+ const localVarAxiosArgs = await localVarAxiosParamCreator.platformStatsControllerDomains(weeks, options);
3575
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3576
+ const localVarOperationServerBasePath = operationServerMap['PlatformStatsApi.platformStatsControllerDomains']?.[localVarOperationServerIndex]?.url;
3577
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3578
+ },
3579
+ };
3580
+ };
3581
+ /**
3582
+ * PlatformStatsApi - factory interface
3583
+ * @export
3584
+ */
3585
+ export const PlatformStatsApiFactory = function (configuration, basePath, axios) {
3586
+ const localVarFp = PlatformStatsApiFp(configuration);
3587
+ return {
3588
+ /**
3589
+ * 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`
3590
+ * @summary Platform-wide Domain statistics
3591
+ * @param {number} [weeks]
3592
+ * @param {*} [options] Override http request option.
3593
+ * @throws {RequiredError}
3594
+ */
3595
+ platformStatsControllerDomains(weeks, options) {
3596
+ return localVarFp.platformStatsControllerDomains(weeks, options).then((request) => request(axios, basePath));
3597
+ },
3598
+ };
3599
+ };
3600
+ /**
3601
+ * PlatformStatsApi - object-oriented interface
3602
+ * @export
3603
+ * @class PlatformStatsApi
3604
+ * @extends {BaseAPI}
3605
+ */
3606
+ export class PlatformStatsApi extends BaseAPI {
3607
+ /**
3608
+ * 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`
3609
+ * @summary Platform-wide Domain statistics
3610
+ * @param {number} [weeks]
3611
+ * @param {*} [options] Override http request option.
3612
+ * @throws {RequiredError}
3613
+ * @memberof PlatformStatsApi
3614
+ */
3615
+ platformStatsControllerDomains(weeks, options) {
3616
+ return PlatformStatsApiFp(this.configuration)
3617
+ .platformStatsControllerDomains(weeks, options)
3618
+ .then((request) => request(this.axios, this.basePath));
3619
+ }
3620
+ }
3621
+ /**
3622
+ * StaffAuthApi - axios parameter creator
3623
+ * @export
3624
+ */
3625
+ export const StaffAuthApiAxiosParamCreator = function (configuration) {
3626
+ return {
3627
+ /**
3628
+ * <br> OperationId: `StaffAuthControllerCallback`
3629
+ * @summary Callback
3630
+ * @param {*} [options] Override http request option.
3631
+ * @throws {RequiredError}
3632
+ */
3633
+ staffAuthControllerCallback: async (options = {}) => {
3634
+ const localVarPath = `/auth/callback`;
3635
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3636
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3637
+ let baseOptions;
3638
+ if (configuration) {
3639
+ baseOptions = configuration.baseOptions;
3640
+ }
3641
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3642
+ const localVarHeaderParameter = {};
3643
+ const localVarQueryParameter = {};
3644
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3645
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3646
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3647
+ return {
3648
+ url: toPathString(localVarUrlObj),
3649
+ options: localVarRequestOptions,
3650
+ };
3651
+ },
3652
+ /**
3653
+ * <br> OperationId: `StaffAuthControllerLogin`
3654
+ * @summary Login
3655
+ * @param {*} [options] Override http request option.
3656
+ * @throws {RequiredError}
3657
+ */
3658
+ staffAuthControllerLogin: async (options = {}) => {
3659
+ const localVarPath = `/auth/login`;
3660
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3661
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3662
+ let baseOptions;
3663
+ if (configuration) {
3664
+ baseOptions = configuration.baseOptions;
3665
+ }
3666
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3667
+ const localVarHeaderParameter = {};
3668
+ const localVarQueryParameter = {};
3669
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3670
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3671
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3672
+ return {
3673
+ url: toPathString(localVarUrlObj),
3674
+ options: localVarRequestOptions,
3675
+ };
3676
+ },
3677
+ /**
3678
+ * <br> OperationId: `StaffAuthControllerLogout`
3679
+ * @summary Logout
3680
+ * @param {*} [options] Override http request option.
3681
+ * @throws {RequiredError}
3682
+ */
3683
+ staffAuthControllerLogout: async (options = {}) => {
3684
+ const localVarPath = `/auth/logout`;
3685
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3686
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3687
+ let baseOptions;
3688
+ if (configuration) {
3689
+ baseOptions = configuration.baseOptions;
3690
+ }
3691
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3692
+ const localVarHeaderParameter = {};
3693
+ const localVarQueryParameter = {};
3694
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3695
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3696
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3697
+ return {
3698
+ url: toPathString(localVarUrlObj),
3699
+ options: localVarRequestOptions,
3700
+ };
3701
+ },
3702
+ };
3703
+ };
3704
+ /**
3705
+ * StaffAuthApi - functional programming interface
3706
+ * @export
3707
+ */
3708
+ export const StaffAuthApiFp = function (configuration) {
3709
+ const localVarAxiosParamCreator = StaffAuthApiAxiosParamCreator(configuration);
3710
+ return {
3711
+ /**
3712
+ * <br> OperationId: `StaffAuthControllerCallback`
3713
+ * @summary Callback
3714
+ * @param {*} [options] Override http request option.
3715
+ * @throws {RequiredError}
3716
+ */
3717
+ async staffAuthControllerCallback(options) {
3718
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerCallback(options);
3719
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3720
+ const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerCallback']?.[localVarOperationServerIndex]?.url;
3721
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3722
+ },
3723
+ /**
3724
+ * <br> OperationId: `StaffAuthControllerLogin`
3725
+ * @summary Login
3726
+ * @param {*} [options] Override http request option.
3727
+ * @throws {RequiredError}
3728
+ */
3729
+ async staffAuthControllerLogin(options) {
3730
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogin(options);
3731
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3732
+ const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogin']?.[localVarOperationServerIndex]?.url;
3733
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3734
+ },
3735
+ /**
3736
+ * <br> OperationId: `StaffAuthControllerLogout`
3737
+ * @summary Logout
3738
+ * @param {*} [options] Override http request option.
3739
+ * @throws {RequiredError}
3740
+ */
3741
+ async staffAuthControllerLogout(options) {
3742
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffAuthControllerLogout(options);
3743
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3744
+ const localVarOperationServerBasePath = operationServerMap['StaffAuthApi.staffAuthControllerLogout']?.[localVarOperationServerIndex]?.url;
3745
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3746
+ },
3747
+ };
3748
+ };
3749
+ /**
3750
+ * StaffAuthApi - factory interface
3751
+ * @export
3752
+ */
3753
+ export const StaffAuthApiFactory = function (configuration, basePath, axios) {
3754
+ const localVarFp = StaffAuthApiFp(configuration);
3755
+ return {
3756
+ /**
3757
+ * <br> OperationId: `StaffAuthControllerCallback`
3758
+ * @summary Callback
3759
+ * @param {*} [options] Override http request option.
3760
+ * @throws {RequiredError}
3761
+ */
3762
+ staffAuthControllerCallback(options) {
3763
+ return localVarFp.staffAuthControllerCallback(options).then((request) => request(axios, basePath));
3764
+ },
3765
+ /**
3766
+ * <br> OperationId: `StaffAuthControllerLogin`
3767
+ * @summary Login
3768
+ * @param {*} [options] Override http request option.
3769
+ * @throws {RequiredError}
3770
+ */
3771
+ staffAuthControllerLogin(options) {
3772
+ return localVarFp.staffAuthControllerLogin(options).then((request) => request(axios, basePath));
3773
+ },
3774
+ /**
3775
+ * <br> OperationId: `StaffAuthControllerLogout`
3776
+ * @summary Logout
3777
+ * @param {*} [options] Override http request option.
3778
+ * @throws {RequiredError}
3779
+ */
3780
+ staffAuthControllerLogout(options) {
3781
+ return localVarFp.staffAuthControllerLogout(options).then((request) => request(axios, basePath));
3782
+ },
3783
+ };
3784
+ };
3785
+ /**
3786
+ * StaffAuthApi - object-oriented interface
3787
+ * @export
3788
+ * @class StaffAuthApi
3789
+ * @extends {BaseAPI}
3790
+ */
3791
+ export class StaffAuthApi extends BaseAPI {
3792
+ /**
3793
+ * <br> OperationId: `StaffAuthControllerCallback`
3794
+ * @summary Callback
3795
+ * @param {*} [options] Override http request option.
3796
+ * @throws {RequiredError}
3797
+ * @memberof StaffAuthApi
3798
+ */
3799
+ staffAuthControllerCallback(options) {
3800
+ return StaffAuthApiFp(this.configuration)
3801
+ .staffAuthControllerCallback(options)
3802
+ .then((request) => request(this.axios, this.basePath));
3803
+ }
3804
+ /**
3805
+ * <br> OperationId: `StaffAuthControllerLogin`
3806
+ * @summary Login
3807
+ * @param {*} [options] Override http request option.
3808
+ * @throws {RequiredError}
3809
+ * @memberof StaffAuthApi
3810
+ */
3811
+ staffAuthControllerLogin(options) {
3812
+ return StaffAuthApiFp(this.configuration)
3813
+ .staffAuthControllerLogin(options)
3814
+ .then((request) => request(this.axios, this.basePath));
3815
+ }
3816
+ /**
3817
+ * <br> OperationId: `StaffAuthControllerLogout`
3818
+ * @summary Logout
3819
+ * @param {*} [options] Override http request option.
3820
+ * @throws {RequiredError}
3821
+ * @memberof StaffAuthApi
3822
+ */
3823
+ staffAuthControllerLogout(options) {
3824
+ return StaffAuthApiFp(this.configuration)
3825
+ .staffAuthControllerLogout(options)
3826
+ .then((request) => request(this.axios, this.basePath));
3827
+ }
3828
+ }
3829
+ /**
3830
+ * StaffMeApi - axios parameter creator
3831
+ * @export
3832
+ */
3833
+ export const StaffMeApiAxiosParamCreator = function (configuration) {
3834
+ return {
3835
+ /**
3836
+ * 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`
3837
+ * @summary Who this Staff session belongs to
3838
+ * @param {*} [options] Override http request option.
3839
+ * @throws {RequiredError}
3840
+ */
3841
+ staffMeControllerMe: async (options = {}) => {
3842
+ const localVarPath = `/staff/me`;
3843
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3844
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3845
+ let baseOptions;
3846
+ if (configuration) {
3847
+ baseOptions = configuration.baseOptions;
3848
+ }
3849
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3850
+ const localVarHeaderParameter = {};
3851
+ const localVarQueryParameter = {};
3852
+ // authentication staffSession required
3853
+ // authentication adminAuth required
3854
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3855
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3856
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3857
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3858
+ return {
3859
+ url: toPathString(localVarUrlObj),
3860
+ options: localVarRequestOptions,
3861
+ };
3862
+ },
3863
+ };
3864
+ };
3865
+ /**
3866
+ * StaffMeApi - functional programming interface
3867
+ * @export
3868
+ */
3869
+ export const StaffMeApiFp = function (configuration) {
3870
+ const localVarAxiosParamCreator = StaffMeApiAxiosParamCreator(configuration);
3871
+ return {
3872
+ /**
3873
+ * 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`
3874
+ * @summary Who this Staff session belongs to
3875
+ * @param {*} [options] Override http request option.
3876
+ * @throws {RequiredError}
3877
+ */
3878
+ async staffMeControllerMe(options) {
3879
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffMeControllerMe(options);
3880
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3881
+ const localVarOperationServerBasePath = operationServerMap['StaffMeApi.staffMeControllerMe']?.[localVarOperationServerIndex]?.url;
3882
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3883
+ },
3884
+ };
3885
+ };
3886
+ /**
3887
+ * StaffMeApi - factory interface
3888
+ * @export
3889
+ */
3890
+ export const StaffMeApiFactory = function (configuration, basePath, axios) {
3891
+ const localVarFp = StaffMeApiFp(configuration);
3892
+ return {
3893
+ /**
3894
+ * 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`
3895
+ * @summary Who this Staff session belongs to
3896
+ * @param {*} [options] Override http request option.
3897
+ * @throws {RequiredError}
3898
+ */
3899
+ staffMeControllerMe(options) {
3900
+ return localVarFp.staffMeControllerMe(options).then((request) => request(axios, basePath));
3901
+ },
3902
+ };
3903
+ };
3904
+ /**
3905
+ * StaffMeApi - object-oriented interface
3906
+ * @export
3907
+ * @class StaffMeApi
3908
+ * @extends {BaseAPI}
3909
+ */
3910
+ export class StaffMeApi extends BaseAPI {
3911
+ /**
3912
+ * 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`
3913
+ * @summary Who this Staff session belongs to
3914
+ * @param {*} [options] Override http request option.
3915
+ * @throws {RequiredError}
3916
+ * @memberof StaffMeApi
3917
+ */
3918
+ staffMeControllerMe(options) {
3919
+ return StaffMeApiFp(this.configuration)
3920
+ .staffMeControllerMe(options)
3921
+ .then((request) => request(this.axios, this.basePath));
3922
+ }
3923
+ }
3924
+ /**
3925
+ * StaffPlanApi - axios parameter creator
3926
+ * @export
3927
+ */
3928
+ export const StaffPlanApiAxiosParamCreator = function (configuration) {
3929
+ return {
3930
+ /**
3931
+ * 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`
3932
+ * @summary The Plan catalogue
3933
+ * @param {*} [options] Override http request option.
3934
+ * @throws {RequiredError}
3935
+ */
3936
+ staffPlanControllerList: async (options = {}) => {
3937
+ const localVarPath = `/staff/plans`;
3938
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3939
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3940
+ let baseOptions;
3941
+ if (configuration) {
3942
+ baseOptions = configuration.baseOptions;
3943
+ }
3944
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
3945
+ const localVarHeaderParameter = {};
3946
+ const localVarQueryParameter = {};
3947
+ // authentication staffSession required
3948
+ // authentication adminAuth required
3949
+ await setApiKeyToObject(localVarHeaderParameter, 'x-takaro-admin-token', configuration);
3950
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3951
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3952
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3953
+ return {
3954
+ url: toPathString(localVarUrlObj),
3955
+ options: localVarRequestOptions,
3956
+ };
3957
+ },
3958
+ };
3959
+ };
3960
+ /**
3961
+ * StaffPlanApi - functional programming interface
3962
+ * @export
3963
+ */
3964
+ export const StaffPlanApiFp = function (configuration) {
3965
+ const localVarAxiosParamCreator = StaffPlanApiAxiosParamCreator(configuration);
3966
+ return {
3967
+ /**
3968
+ * 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`
3969
+ * @summary The Plan catalogue
3970
+ * @param {*} [options] Override http request option.
3971
+ * @throws {RequiredError}
3972
+ */
3973
+ async staffPlanControllerList(options) {
3974
+ const localVarAxiosArgs = await localVarAxiosParamCreator.staffPlanControllerList(options);
3975
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3976
+ const localVarOperationServerBasePath = operationServerMap['StaffPlanApi.staffPlanControllerList']?.[localVarOperationServerIndex]?.url;
3977
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3978
+ },
3979
+ };
3980
+ };
3981
+ /**
3982
+ * StaffPlanApi - factory interface
3983
+ * @export
3984
+ */
3985
+ export const StaffPlanApiFactory = function (configuration, basePath, axios) {
3986
+ const localVarFp = StaffPlanApiFp(configuration);
3987
+ return {
3988
+ /**
3989
+ * 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`
3990
+ * @summary The Plan catalogue
3991
+ * @param {*} [options] Override http request option.
3992
+ * @throws {RequiredError}
3993
+ */
3994
+ staffPlanControllerList(options) {
3995
+ return localVarFp.staffPlanControllerList(options).then((request) => request(axios, basePath));
3996
+ },
3997
+ };
3998
+ };
3999
+ /**
4000
+ * StaffPlanApi - object-oriented interface
4001
+ * @export
4002
+ * @class StaffPlanApi
4003
+ * @extends {BaseAPI}
4004
+ */
4005
+ export class StaffPlanApi extends BaseAPI {
4006
+ /**
4007
+ * 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`
4008
+ * @summary The Plan catalogue
4009
+ * @param {*} [options] Override http request option.
4010
+ * @throws {RequiredError}
4011
+ * @memberof StaffPlanApi
4012
+ */
4013
+ staffPlanControllerList(options) {
4014
+ return StaffPlanApiFp(this.configuration)
4015
+ .staffPlanControllerList(options)
4016
+ .then((request) => request(this.axios, this.basePath));
4017
+ }
4018
+ }
4019
+ //# sourceMappingURL=api.js.map