@takaro/apiclient 0.0.0-dev.91cec86 → 0.0.0-dev.92b622c

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