@accelbyte/sdk-ams 0.0.0-dev-20240906023252 → 0.0.0-dev-20240911051006

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.
package/dist/index.cjs CHANGED
@@ -199,19 +199,24 @@ var AccountAdmin$ = class {
199
199
  function AccountAdminApi(sdk, args) {
200
200
  const sdkAssembly = sdk.assembly();
201
201
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
202
- const requestConfig = import_sdk2.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
203
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
204
- ...args?.axiosConfig?.request
205
- });
206
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
207
202
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
208
- const axiosInstance = import_sdk2.Network.create(requestConfig);
209
- for (const interceptor of interceptors) {
210
- if (interceptor.type === "request") {
211
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
212
- }
213
- if (interceptor.type === "response") {
214
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
203
+ let axiosInstance = sdkAssembly.axiosInstance;
204
+ const requestConfigOverrides = args?.axiosConfig?.request;
205
+ const baseURLOverride = args?.coreConfig?.baseURL;
206
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
207
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
208
+ const requestConfig = import_sdk2.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
209
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
210
+ ...requestConfigOverrides
211
+ });
212
+ axiosInstance = import_sdk2.Network.create(requestConfig);
213
+ for (const interceptor of interceptorsOverride) {
214
+ if (interceptor.type === "request") {
215
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
216
+ }
217
+ if (interceptor.type === "response") {
218
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
219
+ }
215
220
  }
216
221
  }
217
222
  async function getAccount() {
@@ -239,9 +244,21 @@ function AccountAdminApi(sdk, args) {
239
244
  return resp.response;
240
245
  }
241
246
  return {
247
+ /**
248
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [READ]
249
+ */
242
250
  getAccount,
251
+ /**
252
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [CREATE]
253
+ */
243
254
  createAccount,
255
+ /**
256
+ * The link token returned can be used to connect another namespace to the account in which the provided namespace is linked. This route fails if there is no account linked to the specified namespace. Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [READ]
257
+ */
244
258
  getAccountLink,
259
+ /**
260
+ * This route will attempt to register the account to namespace linkage in AMS and requires a valid account link token. This route fails if an account is already linked AdminAccountLink Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [CREATE]
261
+ */
245
262
  createAccountLink
246
263
  };
247
264
  }
@@ -311,19 +328,24 @@ var AmsInfoAdmin$ = class {
311
328
  function AmsInfoAdminApi(sdk, args) {
312
329
  const sdkAssembly = sdk.assembly();
313
330
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
314
- const requestConfig = import_sdk4.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
315
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
316
- ...args?.axiosConfig?.request
317
- });
318
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
319
331
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
320
- const axiosInstance = import_sdk4.Network.create(requestConfig);
321
- for (const interceptor of interceptors) {
322
- if (interceptor.type === "request") {
323
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
324
- }
325
- if (interceptor.type === "response") {
326
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
332
+ let axiosInstance = sdkAssembly.axiosInstance;
333
+ const requestConfigOverrides = args?.axiosConfig?.request;
334
+ const baseURLOverride = args?.coreConfig?.baseURL;
335
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
336
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
337
+ const requestConfig = import_sdk4.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
338
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
339
+ ...requestConfigOverrides
340
+ });
341
+ axiosInstance = import_sdk4.Network.create(requestConfig);
342
+ for (const interceptor of interceptorsOverride) {
343
+ if (interceptor.type === "request") {
344
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
345
+ }
346
+ if (interceptor.type === "response") {
347
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
348
+ }
327
349
  }
328
350
  }
329
351
  async function getRegions() {
@@ -339,7 +361,13 @@ function AmsInfoAdminApi(sdk, args) {
339
361
  return resp.response;
340
362
  }
341
363
  return {
364
+ /**
365
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA [READ]
366
+ */
342
367
  getRegions,
368
+ /**
369
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA [READ]
370
+ */
343
371
  getSupportedInstances
344
372
  };
345
373
  }
@@ -407,19 +435,24 @@ var AmsQoSAdmin$ = class {
407
435
  function AmsQoSAdminApi(sdk, args) {
408
436
  const sdkAssembly = sdk.assembly();
409
437
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
410
- const requestConfig = import_sdk6.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
411
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
412
- ...args?.axiosConfig?.request
413
- });
414
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
415
438
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
416
- const axiosInstance = import_sdk6.Network.create(requestConfig);
417
- for (const interceptor of interceptors) {
418
- if (interceptor.type === "request") {
419
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
420
- }
421
- if (interceptor.type === "response") {
422
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
439
+ let axiosInstance = sdkAssembly.axiosInstance;
440
+ const requestConfigOverrides = args?.axiosConfig?.request;
441
+ const baseURLOverride = args?.coreConfig?.baseURL;
442
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
443
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
444
+ const requestConfig = import_sdk6.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
445
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
446
+ ...requestConfigOverrides
447
+ });
448
+ axiosInstance = import_sdk6.Network.create(requestConfig);
449
+ for (const interceptor of interceptorsOverride) {
450
+ if (interceptor.type === "request") {
451
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
452
+ }
453
+ if (interceptor.type === "response") {
454
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
455
+ }
423
456
  }
424
457
  }
425
458
  async function getQos(queryParams) {
@@ -435,7 +468,13 @@ function AmsQoSAdminApi(sdk, args) {
435
468
  return resp.response;
436
469
  }
437
470
  return {
471
+ /**
472
+ * ``` Required Permission: ADMIN:NAMESPACE:{namespace}:QOS:SERVER [READ] This endpoint lists all QoS services available in all regions. This endpoint is intended to be called by game client to find out all available regions. After getting a list of QoS on each region, game client is expected to ping each one with UDP connection as described below: 1. Make UDP connection to each QoS's IP:Port 2. Send string "PING" after connection established 3. Wait for string "PONG" response 4. Note the request-response latency for each QoS in each region The game then can use ping latency information to either: 1. Inform the player on these latencies and let player choose preferred region 2. Send the latency list to Matchmaking Service so that player can be matched with other players in nearby regions
473
+ */
438
474
  getQos,
475
+ /**
476
+ * ``` Required Permission: ADMIN:NAMESPACE:{namespace}:QOS:SERVER [UPDATE] This endpoint updates the registered QoS service's configurable configuration.
477
+ */
439
478
  patchQo_ByRegion
440
479
  };
441
480
  }
@@ -586,19 +625,24 @@ var ArtifactsAdmin$ = class {
586
625
  function ArtifactsAdminApi(sdk, args) {
587
626
  const sdkAssembly = sdk.assembly();
588
627
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
589
- const requestConfig = import_sdk8.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
590
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
591
- ...args?.axiosConfig?.request
592
- });
593
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
594
628
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
595
- const axiosInstance = import_sdk8.Network.create(requestConfig);
596
- for (const interceptor of interceptors) {
597
- if (interceptor.type === "request") {
598
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
599
- }
600
- if (interceptor.type === "response") {
601
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
629
+ let axiosInstance = sdkAssembly.axiosInstance;
630
+ const requestConfigOverrides = args?.axiosConfig?.request;
631
+ const baseURLOverride = args?.coreConfig?.baseURL;
632
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
633
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
634
+ const requestConfig = import_sdk8.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
635
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
636
+ ...requestConfigOverrides
637
+ });
638
+ axiosInstance = import_sdk8.Network.create(requestConfig);
639
+ for (const interceptor of interceptorsOverride) {
640
+ if (interceptor.type === "request") {
641
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
642
+ }
643
+ if (interceptor.type === "response") {
644
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
645
+ }
602
646
  }
603
647
  }
604
648
  async function deleteArtifact(queryParams) {
@@ -644,12 +688,33 @@ function ArtifactsAdminApi(sdk, args) {
644
688
  return resp.response;
645
689
  }
646
690
  return {
691
+ /**
692
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA [DELETE]
693
+ */
647
694
  deleteArtifact,
695
+ /**
696
+ * Get all artifacts matching the provided search criteria. When criteria is not specified the data returned won't have been filtered on those parameters Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:ARTIFACT [READ]
697
+ */
648
698
  getArtifacts,
699
+ /**
700
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:ARTIFACT [READ]
701
+ */
649
702
  getArtifactsUsage,
703
+ /**
704
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:ARTIFACT [DELETE]
705
+ */
650
706
  deleteArtifact_ByArtifactId,
707
+ /**
708
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:ARTIFACT [READ]
709
+ */
651
710
  getUrl_ByArtifactId,
711
+ /**
712
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:ARTIFACT [READ]
713
+ */
652
714
  getArtifactsSamplingRules_ByFleetId,
715
+ /**
716
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:ARTIFACT [UPDATE]
717
+ */
653
718
  updateArtifactsSamplingRule_ByFleetId
654
719
  };
655
720
  }
@@ -746,19 +811,24 @@ var DevelopmentAdmin$ = class {
746
811
  function DevelopmentAdminApi(sdk, args) {
747
812
  const sdkAssembly = sdk.assembly();
748
813
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
749
- const requestConfig = import_sdk10.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
750
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
751
- ...args?.axiosConfig?.request
752
- });
753
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
754
814
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
755
- const axiosInstance = import_sdk10.Network.create(requestConfig);
756
- for (const interceptor of interceptors) {
757
- if (interceptor.type === "request") {
758
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
759
- }
760
- if (interceptor.type === "response") {
761
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
815
+ let axiosInstance = sdkAssembly.axiosInstance;
816
+ const requestConfigOverrides = args?.axiosConfig?.request;
817
+ const baseURLOverride = args?.coreConfig?.baseURL;
818
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
819
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
820
+ const requestConfig = import_sdk10.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
821
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
822
+ ...requestConfigOverrides
823
+ });
824
+ axiosInstance = import_sdk10.Network.create(requestConfig);
825
+ for (const interceptor of interceptorsOverride) {
826
+ if (interceptor.type === "request") {
827
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
828
+ }
829
+ if (interceptor.type === "response") {
830
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
831
+ }
762
832
  }
763
833
  }
764
834
  async function getDevelopmentServerConfigurations(queryParams) {
@@ -786,9 +856,21 @@ function DevelopmentAdminApi(sdk, args) {
786
856
  return resp.response;
787
857
  }
788
858
  return {
859
+ /**
860
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
861
+ */
789
862
  getDevelopmentServerConfigurations,
863
+ /**
864
+ * Configuration name can be up to 128 characters and must conform to ^[.a-zA-Z0-9_-]+$ Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [CREATE]
865
+ */
790
866
  createDevelopmentServerConfiguration,
867
+ /**
868
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [DELETE]
869
+ */
791
870
  deleteDevelopmentServerConfiguration_ByDevelopmentServerConfigId,
871
+ /**
872
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
873
+ */
792
874
  getDevelopmentServerConfiguration_ByDevelopmentServerConfigId
793
875
  };
794
876
  }
@@ -1002,19 +1084,24 @@ var FleetsAdmin$ = class {
1002
1084
  function FleetsAdminApi(sdk, args) {
1003
1085
  const sdkAssembly = sdk.assembly();
1004
1086
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1005
- const requestConfig = import_sdk12.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1006
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1007
- ...args?.axiosConfig?.request
1008
- });
1009
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1010
1087
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1011
- const axiosInstance = import_sdk12.Network.create(requestConfig);
1012
- for (const interceptor of interceptors) {
1013
- if (interceptor.type === "request") {
1014
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1015
- }
1016
- if (interceptor.type === "response") {
1017
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1088
+ let axiosInstance = sdkAssembly.axiosInstance;
1089
+ const requestConfigOverrides = args?.axiosConfig?.request;
1090
+ const baseURLOverride = args?.coreConfig?.baseURL;
1091
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1092
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1093
+ const requestConfig = import_sdk12.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1094
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1095
+ ...requestConfigOverrides
1096
+ });
1097
+ axiosInstance = import_sdk12.Network.create(requestConfig);
1098
+ for (const interceptor of interceptorsOverride) {
1099
+ if (interceptor.type === "request") {
1100
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1101
+ }
1102
+ if (interceptor.type === "response") {
1103
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1104
+ }
1018
1105
  }
1019
1106
  }
1020
1107
  async function getFleets() {
@@ -1054,11 +1141,29 @@ function FleetsAdminApi(sdk, args) {
1054
1141
  return resp.response;
1055
1142
  }
1056
1143
  return {
1144
+ /**
1145
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
1146
+ */
1057
1147
  getFleets,
1148
+ /**
1149
+ * Optionally, sampling rules for the fleet can also be specified Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [CREATE]
1150
+ */
1058
1151
  createFleet,
1152
+ /**
1153
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [DELETE]
1154
+ */
1059
1155
  deleteFleet_ByFleetId,
1156
+ /**
1157
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
1158
+ */
1060
1159
  getFleet_ByFleetId,
1160
+ /**
1161
+ * Optionally, sampling rules for the fleet can also be updated Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [UPDATE]
1162
+ */
1061
1163
  updateFleet_ByFleetId,
1164
+ /**
1165
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
1166
+ */
1062
1167
  getServers_ByFleetId
1063
1168
  };
1064
1169
  }
@@ -1193,19 +1298,24 @@ var ImagesAdmin$ = class {
1193
1298
  function ImagesAdminApi(sdk, args) {
1194
1299
  const sdkAssembly = sdk.assembly();
1195
1300
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1196
- const requestConfig = import_sdk14.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1197
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1198
- ...args?.axiosConfig?.request
1199
- });
1200
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1201
1301
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1202
- const axiosInstance = import_sdk14.Network.create(requestConfig);
1203
- for (const interceptor of interceptors) {
1204
- if (interceptor.type === "request") {
1205
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1206
- }
1207
- if (interceptor.type === "response") {
1208
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1302
+ let axiosInstance = sdkAssembly.axiosInstance;
1303
+ const requestConfigOverrides = args?.axiosConfig?.request;
1304
+ const baseURLOverride = args?.coreConfig?.baseURL;
1305
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1306
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1307
+ const requestConfig = import_sdk14.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1308
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1309
+ ...requestConfigOverrides
1310
+ });
1311
+ axiosInstance = import_sdk14.Network.create(requestConfig);
1312
+ for (const interceptor of interceptorsOverride) {
1313
+ if (interceptor.type === "request") {
1314
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1315
+ }
1316
+ if (interceptor.type === "response") {
1317
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1318
+ }
1209
1319
  }
1210
1320
  }
1211
1321
  async function getImages() {
@@ -1245,11 +1355,29 @@ function ImagesAdminApi(sdk, args) {
1245
1355
  return resp.response;
1246
1356
  }
1247
1357
  return {
1358
+ /**
1359
+ * Returns images which exist (uploaded, uploading, or building) in the linked account. This route fails if no account is linked Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:IMAGE [READ]
1360
+ */
1248
1361
  getImages,
1362
+ /**
1363
+ * Returns information regarding the account's usage for images storage including the free tier quota Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:IMAGE [READ]
1364
+ */
1249
1365
  getImagesStorage,
1366
+ /**
1367
+ * Marks an image for deletion. The image will stop being available for fleets and will eventually be deleted. Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:IMAGE [DELETE]
1368
+ */
1250
1369
  deleteImage_ByImageId,
1370
+ /**
1371
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:IMAGE [READ]
1372
+ */
1251
1373
  getImage_ByImageId,
1374
+ /**
1375
+ * This allows editing of the image name, toggling `IsProtected`, or adding & removal of tags Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:IMAGE [UPDATE]
1376
+ */
1252
1377
  patchImage_ByImageId,
1378
+ /**
1379
+ * Unmarks an image for deletion. The image will be available for fleets. Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:IMAGE [DELETE]
1380
+ */
1253
1381
  createRestore_ByImageId
1254
1382
  };
1255
1383
  }
@@ -1272,6 +1400,7 @@ var DsHistoryEvent = import_zod45.z.object({
1272
1400
  reason: import_zod45.z.string(),
1273
1401
  region: import_zod45.z.string(),
1274
1402
  serverId: import_zod45.z.string(),
1403
+ sessionId: import_zod45.z.string(),
1275
1404
  status: import_zod45.z.string()
1276
1405
  });
1277
1406
 
@@ -1371,19 +1500,24 @@ var ServersAdmin$ = class {
1371
1500
  function ServersAdminApi(sdk, args) {
1372
1501
  const sdkAssembly = sdk.assembly();
1373
1502
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1374
- const requestConfig = import_sdk16.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1375
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1376
- ...args?.axiosConfig?.request
1377
- });
1378
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1379
1503
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1380
- const axiosInstance = import_sdk16.Network.create(requestConfig);
1381
- for (const interceptor of interceptors) {
1382
- if (interceptor.type === "request") {
1383
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1384
- }
1385
- if (interceptor.type === "response") {
1386
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1504
+ let axiosInstance = sdkAssembly.axiosInstance;
1505
+ const requestConfigOverrides = args?.axiosConfig?.request;
1506
+ const baseURLOverride = args?.coreConfig?.baseURL;
1507
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1508
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1509
+ const requestConfig = import_sdk16.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1510
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1511
+ ...requestConfigOverrides
1512
+ });
1513
+ axiosInstance = import_sdk16.Network.create(requestConfig);
1514
+ for (const interceptor of interceptorsOverride) {
1515
+ if (interceptor.type === "request") {
1516
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1517
+ }
1518
+ if (interceptor.type === "response") {
1519
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1520
+ }
1387
1521
  }
1388
1522
  }
1389
1523
  async function getServer_ByServerId(serverID) {
@@ -1411,9 +1545,21 @@ function ServersAdminApi(sdk, args) {
1411
1545
  return resp.response;
1412
1546
  }
1413
1547
  return {
1548
+ /**
1549
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
1550
+ */
1414
1551
  getServer_ByServerId,
1552
+ /**
1553
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
1554
+ */
1415
1555
  getHistory_ByServerId,
1556
+ /**
1557
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
1558
+ */
1416
1559
  getServersHistory_ByFleetId,
1560
+ /**
1561
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:DS:LOGS [READ]
1562
+ */
1417
1563
  getConnectioninfo_ByServerId
1418
1564
  };
1419
1565
  }
@@ -1446,19 +1592,24 @@ var Account$ = class {
1446
1592
  function AccountApi(sdk, args) {
1447
1593
  const sdkAssembly = sdk.assembly();
1448
1594
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1449
- const requestConfig = import_sdk18.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1450
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1451
- ...args?.axiosConfig?.request
1452
- });
1453
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1454
1595
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1455
- const axiosInstance = import_sdk18.Network.create(requestConfig);
1456
- for (const interceptor of interceptors) {
1457
- if (interceptor.type === "request") {
1458
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1459
- }
1460
- if (interceptor.type === "response") {
1461
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1596
+ let axiosInstance = sdkAssembly.axiosInstance;
1597
+ const requestConfigOverrides = args?.axiosConfig?.request;
1598
+ const baseURLOverride = args?.coreConfig?.baseURL;
1599
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1600
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1601
+ const requestConfig = import_sdk18.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1602
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1603
+ ...requestConfigOverrides
1604
+ });
1605
+ axiosInstance = import_sdk18.Network.create(requestConfig);
1606
+ for (const interceptor of interceptorsOverride) {
1607
+ if (interceptor.type === "request") {
1608
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1609
+ }
1610
+ if (interceptor.type === "response") {
1611
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1612
+ }
1462
1613
  }
1463
1614
  }
1464
1615
  async function getAccount() {
@@ -1468,6 +1619,9 @@ function AccountApi(sdk, args) {
1468
1619
  return resp.response;
1469
1620
  }
1470
1621
  return {
1622
+ /**
1623
+ * Required Permission: NAMESPACE:{namespace}:AMS:ACCOUNT [READ]
1624
+ */
1471
1625
  getAccount
1472
1626
  };
1473
1627
  }
@@ -1498,19 +1652,24 @@ var AmsInfo$ = class {
1498
1652
  function AmsInfoApi(sdk, args) {
1499
1653
  const sdkAssembly = sdk.assembly();
1500
1654
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1501
- const requestConfig = import_sdk20.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1502
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1503
- ...args?.axiosConfig?.request
1504
- });
1505
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1506
1655
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1507
- const axiosInstance = import_sdk20.Network.create(requestConfig);
1508
- for (const interceptor of interceptors) {
1509
- if (interceptor.type === "request") {
1510
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1511
- }
1512
- if (interceptor.type === "response") {
1513
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1656
+ let axiosInstance = sdkAssembly.axiosInstance;
1657
+ const requestConfigOverrides = args?.axiosConfig?.request;
1658
+ const baseURLOverride = args?.coreConfig?.baseURL;
1659
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1660
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1661
+ const requestConfig = import_sdk20.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1662
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1663
+ ...requestConfigOverrides
1664
+ });
1665
+ axiosInstance = import_sdk20.Network.create(requestConfig);
1666
+ for (const interceptor of interceptorsOverride) {
1667
+ if (interceptor.type === "request") {
1668
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1669
+ }
1670
+ if (interceptor.type === "response") {
1671
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1672
+ }
1514
1673
  }
1515
1674
  }
1516
1675
  async function getUploadUrl() {
@@ -1553,19 +1712,24 @@ var Auth$ = class {
1553
1712
  function AuthApi(sdk, args) {
1554
1713
  const sdkAssembly = sdk.assembly();
1555
1714
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1556
- const requestConfig = import_sdk22.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1557
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1558
- ...args?.axiosConfig?.request
1559
- });
1560
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1561
1715
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1562
- const axiosInstance = import_sdk22.Network.create(requestConfig);
1563
- for (const interceptor of interceptors) {
1564
- if (interceptor.type === "request") {
1565
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1566
- }
1567
- if (interceptor.type === "response") {
1568
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1716
+ let axiosInstance = sdkAssembly.axiosInstance;
1717
+ const requestConfigOverrides = args?.axiosConfig?.request;
1718
+ const baseURLOverride = args?.coreConfig?.baseURL;
1719
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1720
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1721
+ const requestConfig = import_sdk22.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1722
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1723
+ ...requestConfigOverrides
1724
+ });
1725
+ axiosInstance = import_sdk22.Network.create(requestConfig);
1726
+ for (const interceptor of interceptorsOverride) {
1727
+ if (interceptor.type === "request") {
1728
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1729
+ }
1730
+ if (interceptor.type === "response") {
1731
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1732
+ }
1569
1733
  }
1570
1734
  }
1571
1735
  async function getAuth() {
@@ -1575,6 +1739,9 @@ function AuthApi(sdk, args) {
1575
1739
  return resp.response;
1576
1740
  }
1577
1741
  return {
1742
+ /**
1743
+ * Check if fleet commander is authorized to talk to AMS with this IAM
1744
+ */
1578
1745
  getAuth
1579
1746
  };
1580
1747
  }
@@ -1605,19 +1772,24 @@ var FleetCommander$ = class {
1605
1772
  function FleetCommanderApi(sdk, args) {
1606
1773
  const sdkAssembly = sdk.assembly();
1607
1774
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1608
- const requestConfig = import_sdk24.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1609
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1610
- ...args?.axiosConfig?.request
1611
- });
1612
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1613
1775
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1614
- const axiosInstance = import_sdk24.Network.create(requestConfig);
1615
- for (const interceptor of interceptors) {
1616
- if (interceptor.type === "request") {
1617
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1618
- }
1619
- if (interceptor.type === "response") {
1620
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1776
+ let axiosInstance = sdkAssembly.axiosInstance;
1777
+ const requestConfigOverrides = args?.axiosConfig?.request;
1778
+ const baseURLOverride = args?.coreConfig?.baseURL;
1779
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1780
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1781
+ const requestConfig = import_sdk24.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1782
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1783
+ ...requestConfigOverrides
1784
+ });
1785
+ axiosInstance = import_sdk24.Network.create(requestConfig);
1786
+ for (const interceptor of interceptorsOverride) {
1787
+ if (interceptor.type === "request") {
1788
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1789
+ }
1790
+ if (interceptor.type === "response") {
1791
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1792
+ }
1621
1793
  }
1622
1794
  }
1623
1795
  async function getVersion() {
@@ -1674,19 +1846,24 @@ var Fleets$ = class {
1674
1846
  function FleetsApi(sdk, args) {
1675
1847
  const sdkAssembly = sdk.assembly();
1676
1848
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1677
- const requestConfig = import_sdk26.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1678
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1679
- ...args?.axiosConfig?.request
1680
- });
1681
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1682
1849
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1683
- const axiosInstance = import_sdk26.Network.create(requestConfig);
1684
- for (const interceptor of interceptors) {
1685
- if (interceptor.type === "request") {
1686
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1687
- }
1688
- if (interceptor.type === "response") {
1689
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1850
+ let axiosInstance = sdkAssembly.axiosInstance;
1851
+ const requestConfigOverrides = args?.axiosConfig?.request;
1852
+ const baseURLOverride = args?.coreConfig?.baseURL;
1853
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1854
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1855
+ const requestConfig = import_sdk26.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1856
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1857
+ ...requestConfigOverrides
1858
+ });
1859
+ axiosInstance = import_sdk26.Network.create(requestConfig);
1860
+ for (const interceptor of interceptorsOverride) {
1861
+ if (interceptor.type === "request") {
1862
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1863
+ }
1864
+ if (interceptor.type === "response") {
1865
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1866
+ }
1690
1867
  }
1691
1868
  }
1692
1869
  async function updateServerClaim(data) {
@@ -1702,7 +1879,13 @@ function FleetsApi(sdk, args) {
1702
1879
  return resp.response;
1703
1880
  }
1704
1881
  return {
1882
+ /**
1883
+ * Claim a dedicated server from fleets with matching claim keys. If the claim key is for a regular fleet (non development), the request will instantly fail if there are no DS available (HTTP 404). If the claim key is for a development fleet and there are no DS available, a new DS will be launched and the request might take up to 8 seconds to return (depending on the environment configuration). If it's not ready after that duration the request will still return HTTP 404. In either case, the call to this endpoint may be retried at any time to check if a DS has become available. Required Permission: NAMESPACE:{namespace}:AMS:SERVER:CLAIM [UPDATE]
1884
+ */
1705
1885
  updateServerClaim,
1886
+ /**
1887
+ * Required Permission: NAMESPACE:{namespace}:AMS:SERVER:CLAIM [UPDATE]
1888
+ */
1706
1889
  updateClaim_ByFleetId
1707
1890
  };
1708
1891
  }
@@ -1745,19 +1928,24 @@ var Watchdogs$ = class {
1745
1928
  function WatchdogsApi(sdk, args) {
1746
1929
  const sdkAssembly = sdk.assembly();
1747
1930
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1748
- const requestConfig = import_sdk28.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1749
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1750
- ...args?.axiosConfig?.request
1751
- });
1752
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1753
1931
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1754
- const axiosInstance = import_sdk28.Network.create(requestConfig);
1755
- for (const interceptor of interceptors) {
1756
- if (interceptor.type === "request") {
1757
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1758
- }
1759
- if (interceptor.type === "response") {
1760
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1932
+ let axiosInstance = sdkAssembly.axiosInstance;
1933
+ const requestConfigOverrides = args?.axiosConfig?.request;
1934
+ const baseURLOverride = args?.coreConfig?.baseURL;
1935
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1936
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1937
+ const requestConfig = import_sdk28.ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1938
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1939
+ ...requestConfigOverrides
1940
+ });
1941
+ axiosInstance = import_sdk28.Network.create(requestConfig);
1942
+ for (const interceptor of interceptorsOverride) {
1943
+ if (interceptor.type === "request") {
1944
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1945
+ }
1946
+ if (interceptor.type === "response") {
1947
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1948
+ }
1761
1949
  }
1762
1950
  }
1763
1951
  async function getConnect_ByWatchdogId(watchdogID) {
@@ -1773,7 +1961,13 @@ function WatchdogsApi(sdk, args) {
1773
1961
  return resp.response;
1774
1962
  }
1775
1963
  return {
1964
+ /**
1965
+ * This is to support local ds development scenarios Required Permission: NAMESPACE:{namespace}:AMS:LOCALDS [CREATE]
1966
+ */
1776
1967
  getConnect_ByWatchdogId,
1968
+ /**
1969
+ * Required Permission: NAMESPACE:{namespace}:ARMADA:WATCHDOG [CREATE]
1970
+ */
1777
1971
  getConnect_ByWatchdogId_ByNS
1778
1972
  };
1779
1973
  }