@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.
@@ -82,19 +82,24 @@ import { ApiUtils, Network } from "@accelbyte/sdk";
82
82
  function AccountAdminApi(sdk, args) {
83
83
  const sdkAssembly = sdk.assembly();
84
84
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
85
- const requestConfig = ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
86
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
87
- ...args?.axiosConfig?.request
88
- });
89
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
90
85
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
91
- const axiosInstance = Network.create(requestConfig);
92
- for (const interceptor of interceptors) {
93
- if (interceptor.type === "request") {
94
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
95
- }
96
- if (interceptor.type === "response") {
97
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
86
+ let axiosInstance = sdkAssembly.axiosInstance;
87
+ const requestConfigOverrides = args?.axiosConfig?.request;
88
+ const baseURLOverride = args?.coreConfig?.baseURL;
89
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
90
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
91
+ const requestConfig = ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
92
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
93
+ ...requestConfigOverrides
94
+ });
95
+ axiosInstance = Network.create(requestConfig);
96
+ for (const interceptor of interceptorsOverride) {
97
+ if (interceptor.type === "request") {
98
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
99
+ }
100
+ if (interceptor.type === "response") {
101
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
102
+ }
98
103
  }
99
104
  }
100
105
  async function getAccount() {
@@ -122,9 +127,21 @@ function AccountAdminApi(sdk, args) {
122
127
  return resp.response;
123
128
  }
124
129
  return {
130
+ /**
131
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [READ]
132
+ */
125
133
  getAccount,
134
+ /**
135
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [CREATE]
136
+ */
126
137
  createAccount,
138
+ /**
139
+ * 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]
140
+ */
127
141
  getAccountLink,
142
+ /**
143
+ * 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]
144
+ */
128
145
  createAccountLink
129
146
  };
130
147
  }
@@ -188,19 +205,24 @@ import { ApiUtils as ApiUtils2, Network as Network2 } from "@accelbyte/sdk";
188
205
  function AmsInfoAdminApi(sdk, args) {
189
206
  const sdkAssembly = sdk.assembly();
190
207
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
191
- const requestConfig = ApiUtils2.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
192
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
193
- ...args?.axiosConfig?.request
194
- });
195
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
196
208
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
197
- const axiosInstance = Network2.create(requestConfig);
198
- for (const interceptor of interceptors) {
199
- if (interceptor.type === "request") {
200
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
201
- }
202
- if (interceptor.type === "response") {
203
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
209
+ let axiosInstance = sdkAssembly.axiosInstance;
210
+ const requestConfigOverrides = args?.axiosConfig?.request;
211
+ const baseURLOverride = args?.coreConfig?.baseURL;
212
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
213
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
214
+ const requestConfig = ApiUtils2.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
215
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
216
+ ...requestConfigOverrides
217
+ });
218
+ axiosInstance = Network2.create(requestConfig);
219
+ for (const interceptor of interceptorsOverride) {
220
+ if (interceptor.type === "request") {
221
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
222
+ }
223
+ if (interceptor.type === "response") {
224
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
225
+ }
204
226
  }
205
227
  }
206
228
  async function getRegions() {
@@ -216,7 +238,13 @@ function AmsInfoAdminApi(sdk, args) {
216
238
  return resp.response;
217
239
  }
218
240
  return {
241
+ /**
242
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA [READ]
243
+ */
219
244
  getRegions,
245
+ /**
246
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA [READ]
247
+ */
220
248
  getSupportedInstances
221
249
  };
222
250
  }
@@ -276,19 +304,24 @@ import { ApiUtils as ApiUtils3, Network as Network3 } from "@accelbyte/sdk";
276
304
  function AmsQoSAdminApi(sdk, args) {
277
305
  const sdkAssembly = sdk.assembly();
278
306
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
279
- const requestConfig = ApiUtils3.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
280
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
281
- ...args?.axiosConfig?.request
282
- });
283
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
284
307
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
285
- const axiosInstance = Network3.create(requestConfig);
286
- for (const interceptor of interceptors) {
287
- if (interceptor.type === "request") {
288
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
289
- }
290
- if (interceptor.type === "response") {
291
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
308
+ let axiosInstance = sdkAssembly.axiosInstance;
309
+ const requestConfigOverrides = args?.axiosConfig?.request;
310
+ const baseURLOverride = args?.coreConfig?.baseURL;
311
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
312
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
313
+ const requestConfig = ApiUtils3.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
314
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
315
+ ...requestConfigOverrides
316
+ });
317
+ axiosInstance = Network3.create(requestConfig);
318
+ for (const interceptor of interceptorsOverride) {
319
+ if (interceptor.type === "request") {
320
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
321
+ }
322
+ if (interceptor.type === "response") {
323
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
324
+ }
292
325
  }
293
326
  }
294
327
  async function getQos(queryParams) {
@@ -304,7 +337,13 @@ function AmsQoSAdminApi(sdk, args) {
304
337
  return resp.response;
305
338
  }
306
339
  return {
340
+ /**
341
+ * ``` 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
342
+ */
307
343
  getQos,
344
+ /**
345
+ * ``` Required Permission: ADMIN:NAMESPACE:{namespace}:QOS:SERVER [UPDATE] This endpoint updates the registered QoS service's configurable configuration.
346
+ */
308
347
  patchQo_ByRegion
309
348
  };
310
349
  }
@@ -445,19 +484,24 @@ import { ApiUtils as ApiUtils4, Network as Network4 } from "@accelbyte/sdk";
445
484
  function ArtifactsAdminApi(sdk, args) {
446
485
  const sdkAssembly = sdk.assembly();
447
486
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
448
- const requestConfig = ApiUtils4.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
449
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
450
- ...args?.axiosConfig?.request
451
- });
452
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
453
487
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
454
- const axiosInstance = Network4.create(requestConfig);
455
- for (const interceptor of interceptors) {
456
- if (interceptor.type === "request") {
457
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
458
- }
459
- if (interceptor.type === "response") {
460
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
488
+ let axiosInstance = sdkAssembly.axiosInstance;
489
+ const requestConfigOverrides = args?.axiosConfig?.request;
490
+ const baseURLOverride = args?.coreConfig?.baseURL;
491
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
492
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
493
+ const requestConfig = ApiUtils4.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
494
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
495
+ ...requestConfigOverrides
496
+ });
497
+ axiosInstance = Network4.create(requestConfig);
498
+ for (const interceptor of interceptorsOverride) {
499
+ if (interceptor.type === "request") {
500
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
501
+ }
502
+ if (interceptor.type === "response") {
503
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
504
+ }
461
505
  }
462
506
  }
463
507
  async function deleteArtifact(queryParams) {
@@ -503,12 +547,33 @@ function ArtifactsAdminApi(sdk, args) {
503
547
  return resp.response;
504
548
  }
505
549
  return {
550
+ /**
551
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA [DELETE]
552
+ */
506
553
  deleteArtifact,
554
+ /**
555
+ * 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]
556
+ */
507
557
  getArtifacts,
558
+ /**
559
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:ARTIFACT [READ]
560
+ */
508
561
  getArtifactsUsage,
562
+ /**
563
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:ARTIFACT [DELETE]
564
+ */
509
565
  deleteArtifact_ByArtifactId,
566
+ /**
567
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:ARTIFACT [READ]
568
+ */
510
569
  getUrl_ByArtifactId,
570
+ /**
571
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:ARTIFACT [READ]
572
+ */
511
573
  getArtifactsSamplingRules_ByFleetId,
574
+ /**
575
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:ARTIFACT [UPDATE]
576
+ */
512
577
  updateArtifactsSamplingRule_ByFleetId
513
578
  };
514
579
  }
@@ -601,19 +666,24 @@ import { ApiUtils as ApiUtils5, Network as Network5 } from "@accelbyte/sdk";
601
666
  function DevelopmentAdminApi(sdk, args) {
602
667
  const sdkAssembly = sdk.assembly();
603
668
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
604
- const requestConfig = ApiUtils5.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
605
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
606
- ...args?.axiosConfig?.request
607
- });
608
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
609
669
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
610
- const axiosInstance = Network5.create(requestConfig);
611
- for (const interceptor of interceptors) {
612
- if (interceptor.type === "request") {
613
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
614
- }
615
- if (interceptor.type === "response") {
616
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
670
+ let axiosInstance = sdkAssembly.axiosInstance;
671
+ const requestConfigOverrides = args?.axiosConfig?.request;
672
+ const baseURLOverride = args?.coreConfig?.baseURL;
673
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
674
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
675
+ const requestConfig = ApiUtils5.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
676
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
677
+ ...requestConfigOverrides
678
+ });
679
+ axiosInstance = Network5.create(requestConfig);
680
+ for (const interceptor of interceptorsOverride) {
681
+ if (interceptor.type === "request") {
682
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
683
+ }
684
+ if (interceptor.type === "response") {
685
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
686
+ }
617
687
  }
618
688
  }
619
689
  async function getDevelopmentServerConfigurations(queryParams) {
@@ -641,9 +711,21 @@ function DevelopmentAdminApi(sdk, args) {
641
711
  return resp.response;
642
712
  }
643
713
  return {
714
+ /**
715
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
716
+ */
644
717
  getDevelopmentServerConfigurations,
718
+ /**
719
+ * Configuration name can be up to 128 characters and must conform to ^[.a-zA-Z0-9_-]+$ Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [CREATE]
720
+ */
645
721
  createDevelopmentServerConfiguration,
722
+ /**
723
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [DELETE]
724
+ */
646
725
  deleteDevelopmentServerConfiguration_ByDevelopmentServerConfigId,
726
+ /**
727
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
728
+ */
647
729
  getDevelopmentServerConfiguration_ByDevelopmentServerConfigId
648
730
  };
649
731
  }
@@ -843,19 +925,24 @@ import { ApiUtils as ApiUtils6, Network as Network6 } from "@accelbyte/sdk";
843
925
  function FleetsAdminApi(sdk, args) {
844
926
  const sdkAssembly = sdk.assembly();
845
927
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
846
- const requestConfig = ApiUtils6.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
847
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
848
- ...args?.axiosConfig?.request
849
- });
850
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
851
928
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
852
- const axiosInstance = Network6.create(requestConfig);
853
- for (const interceptor of interceptors) {
854
- if (interceptor.type === "request") {
855
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
856
- }
857
- if (interceptor.type === "response") {
858
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
929
+ let axiosInstance = sdkAssembly.axiosInstance;
930
+ const requestConfigOverrides = args?.axiosConfig?.request;
931
+ const baseURLOverride = args?.coreConfig?.baseURL;
932
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
933
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
934
+ const requestConfig = ApiUtils6.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
935
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
936
+ ...requestConfigOverrides
937
+ });
938
+ axiosInstance = Network6.create(requestConfig);
939
+ for (const interceptor of interceptorsOverride) {
940
+ if (interceptor.type === "request") {
941
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
942
+ }
943
+ if (interceptor.type === "response") {
944
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
945
+ }
859
946
  }
860
947
  }
861
948
  async function getFleets() {
@@ -895,11 +982,29 @@ function FleetsAdminApi(sdk, args) {
895
982
  return resp.response;
896
983
  }
897
984
  return {
985
+ /**
986
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
987
+ */
898
988
  getFleets,
989
+ /**
990
+ * Optionally, sampling rules for the fleet can also be specified Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [CREATE]
991
+ */
899
992
  createFleet,
993
+ /**
994
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [DELETE]
995
+ */
900
996
  deleteFleet_ByFleetId,
997
+ /**
998
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
999
+ */
901
1000
  getFleet_ByFleetId,
1001
+ /**
1002
+ * Optionally, sampling rules for the fleet can also be updated Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [UPDATE]
1003
+ */
902
1004
  updateFleet_ByFleetId,
1005
+ /**
1006
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
1007
+ */
903
1008
  getServers_ByFleetId
904
1009
  };
905
1010
  }
@@ -1026,19 +1131,24 @@ import { ApiUtils as ApiUtils7, Network as Network7 } from "@accelbyte/sdk";
1026
1131
  function ImagesAdminApi(sdk, args) {
1027
1132
  const sdkAssembly = sdk.assembly();
1028
1133
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1029
- const requestConfig = ApiUtils7.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1030
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1031
- ...args?.axiosConfig?.request
1032
- });
1033
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1034
1134
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1035
- const axiosInstance = Network7.create(requestConfig);
1036
- for (const interceptor of interceptors) {
1037
- if (interceptor.type === "request") {
1038
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1039
- }
1040
- if (interceptor.type === "response") {
1041
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1135
+ let axiosInstance = sdkAssembly.axiosInstance;
1136
+ const requestConfigOverrides = args?.axiosConfig?.request;
1137
+ const baseURLOverride = args?.coreConfig?.baseURL;
1138
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1139
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1140
+ const requestConfig = ApiUtils7.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1141
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1142
+ ...requestConfigOverrides
1143
+ });
1144
+ axiosInstance = Network7.create(requestConfig);
1145
+ for (const interceptor of interceptorsOverride) {
1146
+ if (interceptor.type === "request") {
1147
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1148
+ }
1149
+ if (interceptor.type === "response") {
1150
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1151
+ }
1042
1152
  }
1043
1153
  }
1044
1154
  async function getImages() {
@@ -1078,11 +1188,29 @@ function ImagesAdminApi(sdk, args) {
1078
1188
  return resp.response;
1079
1189
  }
1080
1190
  return {
1191
+ /**
1192
+ * 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]
1193
+ */
1081
1194
  getImages,
1195
+ /**
1196
+ * Returns information regarding the account's usage for images storage including the free tier quota Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:IMAGE [READ]
1197
+ */
1082
1198
  getImagesStorage,
1199
+ /**
1200
+ * 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]
1201
+ */
1083
1202
  deleteImage_ByImageId,
1203
+ /**
1204
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:IMAGE [READ]
1205
+ */
1084
1206
  getImage_ByImageId,
1207
+ /**
1208
+ * This allows editing of the image name, toggling `IsProtected`, or adding & removal of tags Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:IMAGE [UPDATE]
1209
+ */
1085
1210
  patchImage_ByImageId,
1211
+ /**
1212
+ * Unmarks an image for deletion. The image will be available for fleets. Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:IMAGE [DELETE]
1213
+ */
1086
1214
  createRestore_ByImageId
1087
1215
  };
1088
1216
  }
@@ -1096,6 +1224,7 @@ var DsHistoryEvent = z45.object({
1096
1224
  reason: z45.string(),
1097
1225
  region: z45.string(),
1098
1226
  serverId: z45.string(),
1227
+ sessionId: z45.string(),
1099
1228
  status: z45.string()
1100
1229
  });
1101
1230
 
@@ -1196,19 +1325,24 @@ import { ApiUtils as ApiUtils8, Network as Network8 } from "@accelbyte/sdk";
1196
1325
  function ServersAdminApi(sdk, args) {
1197
1326
  const sdkAssembly = sdk.assembly();
1198
1327
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1199
- const requestConfig = ApiUtils8.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1200
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1201
- ...args?.axiosConfig?.request
1202
- });
1203
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1204
1328
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1205
- const axiosInstance = Network8.create(requestConfig);
1206
- for (const interceptor of interceptors) {
1207
- if (interceptor.type === "request") {
1208
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1209
- }
1210
- if (interceptor.type === "response") {
1211
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1329
+ let axiosInstance = sdkAssembly.axiosInstance;
1330
+ const requestConfigOverrides = args?.axiosConfig?.request;
1331
+ const baseURLOverride = args?.coreConfig?.baseURL;
1332
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1333
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1334
+ const requestConfig = ApiUtils8.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1335
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1336
+ ...requestConfigOverrides
1337
+ });
1338
+ axiosInstance = Network8.create(requestConfig);
1339
+ for (const interceptor of interceptorsOverride) {
1340
+ if (interceptor.type === "request") {
1341
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1342
+ }
1343
+ if (interceptor.type === "response") {
1344
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1345
+ }
1212
1346
  }
1213
1347
  }
1214
1348
  async function getServer_ByServerId(serverID) {
@@ -1236,9 +1370,21 @@ function ServersAdminApi(sdk, args) {
1236
1370
  return resp.response;
1237
1371
  }
1238
1372
  return {
1373
+ /**
1374
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
1375
+ */
1239
1376
  getServer_ByServerId,
1377
+ /**
1378
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
1379
+ */
1240
1380
  getHistory_ByServerId,
1381
+ /**
1382
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
1383
+ */
1241
1384
  getServersHistory_ByFleetId,
1385
+ /**
1386
+ * Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:DS:LOGS [READ]
1387
+ */
1242
1388
  getConnectioninfo_ByServerId
1243
1389
  };
1244
1390
  }
@@ -1269,19 +1415,24 @@ import { ApiUtils as ApiUtils9, Network as Network9 } from "@accelbyte/sdk";
1269
1415
  function AccountApi(sdk, args) {
1270
1416
  const sdkAssembly = sdk.assembly();
1271
1417
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1272
- const requestConfig = ApiUtils9.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1273
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1274
- ...args?.axiosConfig?.request
1275
- });
1276
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1277
1418
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1278
- const axiosInstance = Network9.create(requestConfig);
1279
- for (const interceptor of interceptors) {
1280
- if (interceptor.type === "request") {
1281
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1282
- }
1283
- if (interceptor.type === "response") {
1284
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1419
+ let axiosInstance = sdkAssembly.axiosInstance;
1420
+ const requestConfigOverrides = args?.axiosConfig?.request;
1421
+ const baseURLOverride = args?.coreConfig?.baseURL;
1422
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1423
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1424
+ const requestConfig = ApiUtils9.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1425
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1426
+ ...requestConfigOverrides
1427
+ });
1428
+ axiosInstance = Network9.create(requestConfig);
1429
+ for (const interceptor of interceptorsOverride) {
1430
+ if (interceptor.type === "request") {
1431
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1432
+ }
1433
+ if (interceptor.type === "response") {
1434
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1435
+ }
1285
1436
  }
1286
1437
  }
1287
1438
  async function getAccount() {
@@ -1291,6 +1442,9 @@ function AccountApi(sdk, args) {
1291
1442
  return resp.response;
1292
1443
  }
1293
1444
  return {
1445
+ /**
1446
+ * Required Permission: NAMESPACE:{namespace}:AMS:ACCOUNT [READ]
1447
+ */
1294
1448
  getAccount
1295
1449
  };
1296
1450
  }
@@ -1319,19 +1473,24 @@ import { ApiUtils as ApiUtils10, Network as Network10 } from "@accelbyte/sdk";
1319
1473
  function AmsInfoApi(sdk, args) {
1320
1474
  const sdkAssembly = sdk.assembly();
1321
1475
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1322
- const requestConfig = ApiUtils10.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1323
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1324
- ...args?.axiosConfig?.request
1325
- });
1326
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1327
1476
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1328
- const axiosInstance = Network10.create(requestConfig);
1329
- for (const interceptor of interceptors) {
1330
- if (interceptor.type === "request") {
1331
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1332
- }
1333
- if (interceptor.type === "response") {
1334
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1477
+ let axiosInstance = sdkAssembly.axiosInstance;
1478
+ const requestConfigOverrides = args?.axiosConfig?.request;
1479
+ const baseURLOverride = args?.coreConfig?.baseURL;
1480
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1481
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1482
+ const requestConfig = ApiUtils10.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1483
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1484
+ ...requestConfigOverrides
1485
+ });
1486
+ axiosInstance = Network10.create(requestConfig);
1487
+ for (const interceptor of interceptorsOverride) {
1488
+ if (interceptor.type === "request") {
1489
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1490
+ }
1491
+ if (interceptor.type === "response") {
1492
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1493
+ }
1335
1494
  }
1336
1495
  }
1337
1496
  async function getUploadUrl() {
@@ -1372,19 +1531,24 @@ import { ApiUtils as ApiUtils11, Network as Network11 } from "@accelbyte/sdk";
1372
1531
  function AuthApi(sdk, args) {
1373
1532
  const sdkAssembly = sdk.assembly();
1374
1533
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1375
- const requestConfig = ApiUtils11.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1376
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1377
- ...args?.axiosConfig?.request
1378
- });
1379
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1380
1534
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1381
- const axiosInstance = Network11.create(requestConfig);
1382
- for (const interceptor of interceptors) {
1383
- if (interceptor.type === "request") {
1384
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1385
- }
1386
- if (interceptor.type === "response") {
1387
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1535
+ let axiosInstance = sdkAssembly.axiosInstance;
1536
+ const requestConfigOverrides = args?.axiosConfig?.request;
1537
+ const baseURLOverride = args?.coreConfig?.baseURL;
1538
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1539
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1540
+ const requestConfig = ApiUtils11.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1541
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1542
+ ...requestConfigOverrides
1543
+ });
1544
+ axiosInstance = Network11.create(requestConfig);
1545
+ for (const interceptor of interceptorsOverride) {
1546
+ if (interceptor.type === "request") {
1547
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1548
+ }
1549
+ if (interceptor.type === "response") {
1550
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1551
+ }
1388
1552
  }
1389
1553
  }
1390
1554
  async function getAuth() {
@@ -1394,6 +1558,9 @@ function AuthApi(sdk, args) {
1394
1558
  return resp.response;
1395
1559
  }
1396
1560
  return {
1561
+ /**
1562
+ * Check if fleet commander is authorized to talk to AMS with this IAM
1563
+ */
1397
1564
  getAuth
1398
1565
  };
1399
1566
  }
@@ -1422,19 +1589,24 @@ import { ApiUtils as ApiUtils12, Network as Network12 } from "@accelbyte/sdk";
1422
1589
  function FleetCommanderApi(sdk, args) {
1423
1590
  const sdkAssembly = sdk.assembly();
1424
1591
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1425
- const requestConfig = ApiUtils12.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1426
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1427
- ...args?.axiosConfig?.request
1428
- });
1429
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1430
1592
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1431
- const axiosInstance = Network12.create(requestConfig);
1432
- for (const interceptor of interceptors) {
1433
- if (interceptor.type === "request") {
1434
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1435
- }
1436
- if (interceptor.type === "response") {
1437
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1593
+ let axiosInstance = sdkAssembly.axiosInstance;
1594
+ const requestConfigOverrides = args?.axiosConfig?.request;
1595
+ const baseURLOverride = args?.coreConfig?.baseURL;
1596
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1597
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1598
+ const requestConfig = ApiUtils12.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1599
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1600
+ ...requestConfigOverrides
1601
+ });
1602
+ axiosInstance = Network12.create(requestConfig);
1603
+ for (const interceptor of interceptorsOverride) {
1604
+ if (interceptor.type === "request") {
1605
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1606
+ }
1607
+ if (interceptor.type === "response") {
1608
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1609
+ }
1438
1610
  }
1439
1611
  }
1440
1612
  async function getVersion() {
@@ -1487,19 +1659,24 @@ import { ApiUtils as ApiUtils13, Network as Network13 } from "@accelbyte/sdk";
1487
1659
  function FleetsApi(sdk, args) {
1488
1660
  const sdkAssembly = sdk.assembly();
1489
1661
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1490
- const requestConfig = ApiUtils13.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1491
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1492
- ...args?.axiosConfig?.request
1493
- });
1494
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1495
1662
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1496
- const axiosInstance = Network13.create(requestConfig);
1497
- for (const interceptor of interceptors) {
1498
- if (interceptor.type === "request") {
1499
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1500
- }
1501
- if (interceptor.type === "response") {
1502
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1663
+ let axiosInstance = sdkAssembly.axiosInstance;
1664
+ const requestConfigOverrides = args?.axiosConfig?.request;
1665
+ const baseURLOverride = args?.coreConfig?.baseURL;
1666
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1667
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1668
+ const requestConfig = ApiUtils13.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1669
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1670
+ ...requestConfigOverrides
1671
+ });
1672
+ axiosInstance = Network13.create(requestConfig);
1673
+ for (const interceptor of interceptorsOverride) {
1674
+ if (interceptor.type === "request") {
1675
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1676
+ }
1677
+ if (interceptor.type === "response") {
1678
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1679
+ }
1503
1680
  }
1504
1681
  }
1505
1682
  async function updateServerClaim(data) {
@@ -1515,7 +1692,13 @@ function FleetsApi(sdk, args) {
1515
1692
  return resp.response;
1516
1693
  }
1517
1694
  return {
1695
+ /**
1696
+ * 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]
1697
+ */
1518
1698
  updateServerClaim,
1699
+ /**
1700
+ * Required Permission: NAMESPACE:{namespace}:AMS:SERVER:CLAIM [UPDATE]
1701
+ */
1519
1702
  updateClaim_ByFleetId
1520
1703
  };
1521
1704
  }
@@ -1556,19 +1739,24 @@ import { ApiUtils as ApiUtils14, Network as Network14 } from "@accelbyte/sdk";
1556
1739
  function WatchdogsApi(sdk, args) {
1557
1740
  const sdkAssembly = sdk.assembly();
1558
1741
  const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace;
1559
- const requestConfig = ApiUtils14.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1560
- ...args?.coreConfig?.baseURL ? { baseURL: args?.coreConfig?.baseURL } : {},
1561
- ...args?.axiosConfig?.request
1562
- });
1563
- const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? [];
1564
1742
  const useSchemaValidation = args?.coreConfig?.useSchemaValidation ?? sdkAssembly.coreConfig.useSchemaValidation;
1565
- const axiosInstance = Network14.create(requestConfig);
1566
- for (const interceptor of interceptors) {
1567
- if (interceptor.type === "request") {
1568
- axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError);
1569
- }
1570
- if (interceptor.type === "response") {
1571
- axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError);
1743
+ let axiosInstance = sdkAssembly.axiosInstance;
1744
+ const requestConfigOverrides = args?.axiosConfig?.request;
1745
+ const baseURLOverride = args?.coreConfig?.baseURL;
1746
+ const interceptorsOverride = args?.axiosConfig?.interceptors ?? [];
1747
+ if (requestConfigOverrides || baseURLOverride || interceptorsOverride.length > 0) {
1748
+ const requestConfig = ApiUtils14.mergeAxiosConfigs(sdkAssembly.axiosInstance.defaults, {
1749
+ ...baseURLOverride ? { baseURL: baseURLOverride } : {},
1750
+ ...requestConfigOverrides
1751
+ });
1752
+ axiosInstance = Network14.create(requestConfig);
1753
+ for (const interceptor of interceptorsOverride) {
1754
+ if (interceptor.type === "request") {
1755
+ axiosInstance.interceptors.request.use(interceptor.onRequest, interceptor.onError);
1756
+ }
1757
+ if (interceptor.type === "response") {
1758
+ axiosInstance.interceptors.response.use(interceptor.onSuccess, interceptor.onError);
1759
+ }
1572
1760
  }
1573
1761
  }
1574
1762
  async function getConnect_ByWatchdogId(watchdogID) {
@@ -1584,7 +1772,13 @@ function WatchdogsApi(sdk, args) {
1584
1772
  return resp.response;
1585
1773
  }
1586
1774
  return {
1775
+ /**
1776
+ * This is to support local ds development scenarios Required Permission: NAMESPACE:{namespace}:AMS:LOCALDS [CREATE]
1777
+ */
1587
1778
  getConnect_ByWatchdogId,
1779
+ /**
1780
+ * Required Permission: NAMESPACE:{namespace}:ARMADA:WATCHDOG [CREATE]
1781
+ */
1588
1782
  getConnect_ByWatchdogId_ByNS
1589
1783
  };
1590
1784
  }