@accelbyte/sdk-ams 0.0.0-dev-20250519035357 → 0.0.0-dev-20250530101210
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/{FleetClaimResponse-Tpo4nWk_.d.cts → FleetClaimResponse-CE1Oz24x.d.cts} +91 -46
- package/dist/{FleetClaimResponse-Tpo4nWk_.d.ts → FleetClaimResponse-CE1Oz24x.d.ts} +91 -46
- package/dist/all-query-imports.cjs +62 -19
- package/dist/all-query-imports.d.cts +23 -5
- package/dist/all-query-imports.d.ts +23 -5
- package/dist/all-query-imports.js +17 -1
- package/dist/{chunk-YDYBKQVZ.js → chunk-UPPXBGXY.js} +45 -19
- package/dist/global/index.global.js +1 -1
- package/dist/index.cjs +84 -76
- package/dist/index.d.cts +33 -141
- package/dist/index.d.ts +33 -141
- package/dist/index.js +38 -54
- package/package.json +3 -3
|
@@ -56,6 +56,7 @@ __export(all_query_imports_exports, {
|
|
|
56
56
|
useDevelopmentAdminApi_DeleteDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation: () => useDevelopmentAdminApi_DeleteDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation,
|
|
57
57
|
useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServerConfigId: () => useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServerConfigId,
|
|
58
58
|
useDevelopmentAdminApi_GetDevelopmentServerConfigurations: () => useDevelopmentAdminApi_GetDevelopmentServerConfigurations,
|
|
59
|
+
useDevelopmentAdminApi_PatchDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation: () => useDevelopmentAdminApi_PatchDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation,
|
|
59
60
|
useFleetCommanderApi_GetVersion: () => useFleetCommanderApi_GetVersion,
|
|
60
61
|
useFleetsAdminApi_CreateFleetMutation: () => useFleetsAdminApi_CreateFleetMutation,
|
|
61
62
|
useFleetsAdminApi_DeleteFleet_ByFleetIdMutation: () => useFleetsAdminApi_DeleteFleet_ByFleetIdMutation,
|
|
@@ -307,21 +308,22 @@ var import_sdk3 = require("@accelbyte/sdk");
|
|
|
307
308
|
var import_zod6 = require("zod");
|
|
308
309
|
var AmsRegionsResponse = import_zod6.z.object({ regions: import_zod6.z.array(import_zod6.z.string()).nullish() });
|
|
309
310
|
|
|
310
|
-
// src/generated-definitions/
|
|
311
|
+
// src/generated-definitions/InstanceTypesResponse.ts
|
|
311
312
|
var import_zod9 = require("zod");
|
|
312
313
|
|
|
313
|
-
// src/generated-definitions/
|
|
314
|
+
// src/generated-definitions/InstanceType.ts
|
|
314
315
|
var import_zod8 = require("zod");
|
|
315
316
|
|
|
316
317
|
// src/generated-definitions/Capacity.ts
|
|
317
318
|
var import_zod7 = require("zod");
|
|
318
319
|
var Capacity = import_zod7.z.object({ region: import_zod7.z.string(), vmCount: import_zod7.z.number().int() });
|
|
319
320
|
|
|
320
|
-
// src/generated-definitions/
|
|
321
|
-
var
|
|
321
|
+
// src/generated-definitions/InstanceType.ts
|
|
322
|
+
var InstanceType = import_zod8.z.object({
|
|
322
323
|
capacity: import_zod8.z.array(Capacity),
|
|
323
324
|
description: import_zod8.z.string(),
|
|
324
325
|
id: import_zod8.z.string(),
|
|
326
|
+
isBaremetal: import_zod8.z.boolean(),
|
|
325
327
|
memoryGiB: import_zod8.z.number(),
|
|
326
328
|
minSpeed: import_zod8.z.string(),
|
|
327
329
|
name: import_zod8.z.string(),
|
|
@@ -330,8 +332,8 @@ var InstanceTypeForNamespaceResponse = import_zod8.z.object({
|
|
|
330
332
|
virtualCpu: import_zod8.z.number().int()
|
|
331
333
|
});
|
|
332
334
|
|
|
333
|
-
// src/generated-definitions/
|
|
334
|
-
var
|
|
335
|
+
// src/generated-definitions/InstanceTypesResponse.ts
|
|
336
|
+
var InstanceTypesResponse = import_zod9.z.object({ availableInstanceTypes: import_zod9.z.array(InstanceType) });
|
|
335
337
|
|
|
336
338
|
// src/generated-admin/endpoints/AmsInfoAdmin$.ts
|
|
337
339
|
var AmsInfoAdmin$ = class {
|
|
@@ -358,12 +360,7 @@ var AmsInfoAdmin$ = class {
|
|
|
358
360
|
const params = {};
|
|
359
361
|
const url = "/ams/v1/admin/namespaces/{namespace}/supported-instances".replace("{namespace}", this.namespace);
|
|
360
362
|
const resultPromise = this.axiosInstance.get(url, { params });
|
|
361
|
-
return import_sdk3.Validate.validateOrReturnResponse(
|
|
362
|
-
this.useSchemaValidation,
|
|
363
|
-
() => resultPromise,
|
|
364
|
-
InstanceTypesForNamespaceResponse,
|
|
365
|
-
"InstanceTypesForNamespaceResponse"
|
|
366
|
-
);
|
|
363
|
+
return import_sdk3.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, InstanceTypesResponse, "InstanceTypesResponse");
|
|
367
364
|
}
|
|
368
365
|
};
|
|
369
366
|
|
|
@@ -615,6 +612,7 @@ var ArtifactResponse = import_zod14.z.object({
|
|
|
615
612
|
id: import_zod14.z.string(),
|
|
616
613
|
imageId: import_zod14.z.string(),
|
|
617
614
|
namespace: import_zod14.z.string(),
|
|
615
|
+
reason: import_zod14.z.string().nullish(),
|
|
618
616
|
region: import_zod14.z.string(),
|
|
619
617
|
sizeBytes: import_zod14.z.number().int(),
|
|
620
618
|
status: import_zod14.z.string()
|
|
@@ -970,8 +968,8 @@ var DevelopmentServerConfigurationCreateResponse = import_zod23.z.object({ name:
|
|
|
970
968
|
var import_zod24 = require("zod");
|
|
971
969
|
var DevelopmentServerConfigurationGetResponse = import_zod24.z.object({
|
|
972
970
|
commandLineArguments: import_zod24.z.string(),
|
|
973
|
-
createdAt:
|
|
974
|
-
expiresAt:
|
|
971
|
+
createdAt: Time.nullish(),
|
|
972
|
+
expiresAt: Time.nullish(),
|
|
975
973
|
imageId: import_zod24.z.string(),
|
|
976
974
|
name: import_zod24.z.string()
|
|
977
975
|
});
|
|
@@ -1043,6 +1041,15 @@ var DevelopmentAdmin$ = class {
|
|
|
1043
1041
|
"DevelopmentServerConfigurationGetResponse"
|
|
1044
1042
|
);
|
|
1045
1043
|
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [UPDATE]
|
|
1046
|
+
*/
|
|
1047
|
+
patchDevelopmentServerConfiguration_ByDevelopmentServerConfigId(developmentServerConfigID, data) {
|
|
1048
|
+
const params = {};
|
|
1049
|
+
const url = "/ams/v1/admin/namespaces/{namespace}/development/server-configurations/{developmentServerConfigID}".replace("{namespace}", this.namespace).replace("{developmentServerConfigID}", developmentServerConfigID);
|
|
1050
|
+
const resultPromise = this.axiosInstance.patch(url, data, { params });
|
|
1051
|
+
return import_sdk9.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod26.z.unknown(), "z.unknown()");
|
|
1052
|
+
}
|
|
1046
1053
|
};
|
|
1047
1054
|
|
|
1048
1055
|
// src/generated-admin/DevelopmentAdminApi.ts
|
|
@@ -1093,6 +1100,12 @@ function DevelopmentAdminApi(sdk, args) {
|
|
|
1093
1100
|
if (resp.error) throw resp.error;
|
|
1094
1101
|
return resp.response;
|
|
1095
1102
|
}
|
|
1103
|
+
async function patchDevelopmentServerConfiguration_ByDevelopmentServerConfigId(developmentServerConfigID, data) {
|
|
1104
|
+
const $ = new DevelopmentAdmin$(axiosInstance, namespace, useSchemaValidation);
|
|
1105
|
+
const resp = await $.patchDevelopmentServerConfiguration_ByDevelopmentServerConfigId(developmentServerConfigID, data);
|
|
1106
|
+
if (resp.error) throw resp.error;
|
|
1107
|
+
return resp.response;
|
|
1108
|
+
}
|
|
1096
1109
|
return {
|
|
1097
1110
|
/**
|
|
1098
1111
|
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
|
|
@@ -1109,7 +1122,11 @@ function DevelopmentAdminApi(sdk, args) {
|
|
|
1109
1122
|
/**
|
|
1110
1123
|
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
|
|
1111
1124
|
*/
|
|
1112
|
-
getDevelopmentServerConfiguration_ByDevelopmentServerConfigId
|
|
1125
|
+
getDevelopmentServerConfiguration_ByDevelopmentServerConfigId,
|
|
1126
|
+
/**
|
|
1127
|
+
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [UPDATE]
|
|
1128
|
+
*/
|
|
1129
|
+
patchDevelopmentServerConfiguration_ByDevelopmentServerConfigId
|
|
1113
1130
|
};
|
|
1114
1131
|
}
|
|
1115
1132
|
|
|
@@ -1180,6 +1197,21 @@ var useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServer
|
|
|
1180
1197
|
...options
|
|
1181
1198
|
});
|
|
1182
1199
|
};
|
|
1200
|
+
var useDevelopmentAdminApi_PatchDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation = (sdk, options, callback) => {
|
|
1201
|
+
const mutationFn = async (input) => {
|
|
1202
|
+
const response = await DevelopmentAdminApi(sdk, {
|
|
1203
|
+
coreConfig: input.coreConfig,
|
|
1204
|
+
axiosConfig: input.axiosConfig
|
|
1205
|
+
}).patchDevelopmentServerConfiguration_ByDevelopmentServerConfigId(input.developmentServerConfigID, input.data);
|
|
1206
|
+
callback && callback(response.data);
|
|
1207
|
+
return response.data;
|
|
1208
|
+
};
|
|
1209
|
+
return (0, import_react_query5.useMutation)({
|
|
1210
|
+
mutationKey: ["Ams.DevelopmentAdmin.DevelopmentServerConfiguration_ByDevelopmentServerConfigId" /* DevelopmentServerConfiguration_ByDevelopmentServerConfigId */],
|
|
1211
|
+
mutationFn,
|
|
1212
|
+
...options
|
|
1213
|
+
});
|
|
1214
|
+
};
|
|
1183
1215
|
|
|
1184
1216
|
// src/generated-admin/queries/FleetsAdmin.query.ts
|
|
1185
1217
|
var import_react_query6 = require("@tanstack/react-query");
|
|
@@ -1247,11 +1279,13 @@ var FleetGetResponse = import_zod33.z.object({
|
|
|
1247
1279
|
active: import_zod33.z.boolean(),
|
|
1248
1280
|
claimKeys: import_zod33.z.array(import_zod33.z.string()),
|
|
1249
1281
|
dsHostConfiguration: DsHostConfiguration,
|
|
1282
|
+
fallbackFleet: import_zod33.z.string(),
|
|
1250
1283
|
id: import_zod33.z.string(),
|
|
1251
1284
|
imageDeploymentProfile: ImageDeploymentProfile,
|
|
1252
1285
|
isLocal: import_zod33.z.boolean(),
|
|
1253
1286
|
name: import_zod33.z.string(),
|
|
1254
1287
|
onDemand: import_zod33.z.boolean(),
|
|
1288
|
+
primaryFleet: import_zod33.z.string(),
|
|
1255
1289
|
regions: import_zod33.z.array(RegionConfig),
|
|
1256
1290
|
samplingRules: FleetArtifactsSampleRules
|
|
1257
1291
|
});
|
|
@@ -1277,12 +1311,14 @@ var FleetRegionalServerCounts = import_zod34.z.object({
|
|
|
1277
1311
|
var FleetListItemResponse = import_zod35.z.object({
|
|
1278
1312
|
active: import_zod35.z.boolean(),
|
|
1279
1313
|
counts: import_zod35.z.array(FleetRegionalServerCounts),
|
|
1314
|
+
fallbackFleet: import_zod35.z.string(),
|
|
1280
1315
|
id: import_zod35.z.string(),
|
|
1281
1316
|
image: import_zod35.z.string(),
|
|
1282
1317
|
instanceProvider: import_zod35.z.string(),
|
|
1283
1318
|
isLocal: import_zod35.z.boolean(),
|
|
1284
1319
|
name: import_zod35.z.string(),
|
|
1285
1320
|
onDemand: import_zod35.z.boolean(),
|
|
1321
|
+
primaryFleet: import_zod35.z.string(),
|
|
1286
1322
|
regions: import_zod35.z.array(import_zod35.z.string())
|
|
1287
1323
|
});
|
|
1288
1324
|
|
|
@@ -1305,7 +1341,7 @@ var import_zod40 = require("zod");
|
|
|
1305
1341
|
// src/generated-definitions/FleetServerInfoResponse.ts
|
|
1306
1342
|
var import_zod38 = require("zod");
|
|
1307
1343
|
var FleetServerInfoResponse = import_zod38.z.object({
|
|
1308
|
-
createdAt:
|
|
1344
|
+
createdAt: Time,
|
|
1309
1345
|
fleetId: import_zod38.z.string(),
|
|
1310
1346
|
fleetName: import_zod38.z.string(),
|
|
1311
1347
|
imageCmd: import_zod38.z.string(),
|
|
@@ -1607,7 +1643,7 @@ var ReferencingFleet = import_zod42.z.object({ environment: import_zod42.z.strin
|
|
|
1607
1643
|
// src/generated-definitions/ImageDetails.ts
|
|
1608
1644
|
var ImageDetails = import_zod43.z.object({
|
|
1609
1645
|
createdAt: Time,
|
|
1610
|
-
deleteAt: Time,
|
|
1646
|
+
deleteAt: Time.nullish(),
|
|
1611
1647
|
executable: import_zod43.z.string(),
|
|
1612
1648
|
id: import_zod43.z.string(),
|
|
1613
1649
|
isProtected: import_zod43.z.boolean(),
|
|
@@ -1627,7 +1663,7 @@ var import_zod45 = require("zod");
|
|
|
1627
1663
|
var import_zod44 = require("zod");
|
|
1628
1664
|
var ImageListItem = import_zod44.z.object({
|
|
1629
1665
|
createdAt: Time,
|
|
1630
|
-
deleteAt: Time,
|
|
1666
|
+
deleteAt: Time.nullish(),
|
|
1631
1667
|
executable: import_zod44.z.string(),
|
|
1632
1668
|
id: import_zod44.z.string(),
|
|
1633
1669
|
isProtected: import_zod44.z.boolean(),
|
|
@@ -2483,7 +2519,13 @@ var import_sdk25 = require("@accelbyte/sdk");
|
|
|
2483
2519
|
|
|
2484
2520
|
// src/generated-definitions/FleetClaimResponse.ts
|
|
2485
2521
|
var import_zod56 = require("zod");
|
|
2486
|
-
var FleetClaimResponse = import_zod56.z.object({
|
|
2522
|
+
var FleetClaimResponse = import_zod56.z.object({
|
|
2523
|
+
fleetId: import_zod56.z.string(),
|
|
2524
|
+
ip: import_zod56.z.string(),
|
|
2525
|
+
ports: import_zod56.z.record(import_zod56.z.number().int()),
|
|
2526
|
+
region: import_zod56.z.string(),
|
|
2527
|
+
serverId: import_zod56.z.string()
|
|
2528
|
+
});
|
|
2487
2529
|
|
|
2488
2530
|
// src/generated-public/endpoints/Fleets$.ts
|
|
2489
2531
|
var Fleets$ = class {
|
|
@@ -2753,6 +2795,7 @@ var useWatchdogsApi_GetConnect_ByWatchdogId_ByNS = (sdk, input, options, callbac
|
|
|
2753
2795
|
useDevelopmentAdminApi_DeleteDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation,
|
|
2754
2796
|
useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServerConfigId,
|
|
2755
2797
|
useDevelopmentAdminApi_GetDevelopmentServerConfigurations,
|
|
2798
|
+
useDevelopmentAdminApi_PatchDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation,
|
|
2756
2799
|
useFleetCommanderApi_GetVersion,
|
|
2757
2800
|
useFleetsAdminApi_CreateFleetMutation,
|
|
2758
2801
|
useFleetsAdminApi_DeleteFleet_ByFleetIdMutation,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccelByteSDK, SdkSetConfigParam, ApiError } from '@accelbyte/sdk';
|
|
2
2
|
import { AxiosError, AxiosResponse } from 'axios';
|
|
3
3
|
import { UseQueryOptions, UseQueryResult, UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
4
|
-
import { A as AccountResponse, a as AccountCreateResponse, b as AccountCreateRequest, c as AccountLinkTokenResponse, d as AccountLinkResponse, e as AccountLinkRequest, f as AmsRegionsResponse, I as
|
|
4
|
+
import { A as AccountResponse, a as AccountCreateResponse, b as AccountCreateRequest, c as AccountLinkTokenResponse, d as AccountLinkResponse, e as AccountLinkRequest, f as AmsRegionsResponse, I as InstanceTypesResponse, Q as QoSEndpointResponse, U as UpdateServerRequest, g as ArtifactListResponse, h as ArtifactUsageResponse, i as ArtifactUrlResponse, F as FleetArtifactsSampleRules, D as DevelopmentServerConfigurationListResponse, j as DevelopmentServerConfigurationCreateResponse, k as DevelopmentServerConfigurationCreateRequest, l as DevelopmentServerConfigurationGetResponse, m as DevelopmentServerConfigurationUpdateRequest, n as FleetListResponse, o as FleetCreateResponse, p as FleetParameters, q as FleetGetResponse, r as FleetServersResponse, s as ImageList, t as ImageStorage, u as ImageDetails, v as ImageUpdate, w as FleetServerInfoResponse, x as FleetServerHistoryResponse, y as DsHistoryList, z as FleetServerConnectionInfoResponse, B as FleetClaimResponse, C as FleetClaimByKeysReq, E as FleetClaimReq } from './FleetClaimResponse-CE1Oz24x.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -100,7 +100,7 @@ declare const useAmsInfoAdminApi_GetRegions: (sdk: AccelByteSDK, input: SdkSetCo
|
|
|
100
100
|
* }
|
|
101
101
|
* ```
|
|
102
102
|
*/
|
|
103
|
-
declare const useAmsInfoAdminApi_GetSupportedInstances: (sdk: AccelByteSDK, input: SdkSetConfigParam, options?: Omit<UseQueryOptions<
|
|
103
|
+
declare const useAmsInfoAdminApi_GetSupportedInstances: (sdk: AccelByteSDK, input: SdkSetConfigParam, options?: Omit<UseQueryOptions<InstanceTypesResponse, AxiosError<ApiError>>, "queryKey">, callback?: (data: AxiosResponse<InstanceTypesResponse>) => void) => UseQueryResult<InstanceTypesResponse, AxiosError<ApiError>>;
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* AUTO GENERATED
|
|
@@ -357,7 +357,25 @@ declare const useDevelopmentAdminApi_DeleteDevelopmentServerConfiguration_ByDeve
|
|
|
357
357
|
*/
|
|
358
358
|
declare const useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServerConfigId: (sdk: AccelByteSDK, input: SdkSetConfigParam & {
|
|
359
359
|
developmentServerConfigID: string;
|
|
360
|
-
}, options?: Omit<UseQueryOptions<DevelopmentServerConfigurationGetResponse, AxiosError<ApiError>>, "queryKey">, callback?: (data: AxiosResponse<DevelopmentServerConfigurationGetResponse>) => void) => UseQueryResult<DevelopmentServerConfigurationGetResponse, AxiosError<ApiError>>;
|
|
360
|
+
}, options?: Omit<UseQueryOptions<DevelopmentServerConfigurationGetResponse, AxiosError<ApiError>>, "queryKey">, callback?: (data: AxiosResponse<DevelopmentServerConfigurationGetResponse>) => void) => UseQueryResult<DevelopmentServerConfigurationGetResponse, AxiosError<ApiError>>;
|
|
361
|
+
/**
|
|
362
|
+
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [UPDATE]
|
|
363
|
+
*
|
|
364
|
+
* #### Default Query Options
|
|
365
|
+
* The default options include:
|
|
366
|
+
* ```
|
|
367
|
+
* {
|
|
368
|
+
* queryKey: [Key_DevelopmentAdmin.DevelopmentServerConfiguration_ByDevelopmentServerConfigId, input]
|
|
369
|
+
* }
|
|
370
|
+
* ```
|
|
371
|
+
*/
|
|
372
|
+
declare const useDevelopmentAdminApi_PatchDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation: (sdk: AccelByteSDK, options?: Omit<UseMutationOptions<unknown, AxiosError<ApiError>, SdkSetConfigParam & {
|
|
373
|
+
developmentServerConfigID: string;
|
|
374
|
+
data: DevelopmentServerConfigurationUpdateRequest;
|
|
375
|
+
}>, "mutationKey">, callback?: (data: unknown) => void) => UseMutationResult<unknown, AxiosError<ApiError>, SdkSetConfigParam & {
|
|
376
|
+
developmentServerConfigID: string;
|
|
377
|
+
data: DevelopmentServerConfigurationUpdateRequest;
|
|
378
|
+
}>;
|
|
361
379
|
|
|
362
380
|
/**
|
|
363
381
|
* AUTO GENERATED
|
|
@@ -384,11 +402,11 @@ declare const useFleetsAdminApi_GetFleets: (sdk: AccelByteSDK, input: SdkSetConf
|
|
|
384
402
|
queryParams?: {
|
|
385
403
|
active?: boolean | null;
|
|
386
404
|
count?: number;
|
|
387
|
-
desc?: "asc" | "desc";
|
|
388
405
|
name?: string | null;
|
|
389
406
|
offset?: number;
|
|
390
407
|
region?: string | null;
|
|
391
408
|
sortBy?: "active" | "name";
|
|
409
|
+
sortDirection?: "asc" | "desc";
|
|
392
410
|
};
|
|
393
411
|
}, options?: Omit<UseQueryOptions<FleetListResponse, AxiosError<ApiError>>, "queryKey">, callback?: (data: AxiosResponse<FleetListResponse>) => void) => UseQueryResult<FleetListResponse, AxiosError<ApiError>>;
|
|
394
412
|
/**
|
|
@@ -804,4 +822,4 @@ declare const useWatchdogsApi_GetConnect_ByWatchdogId_ByNS: (sdk: AccelByteSDK,
|
|
|
804
822
|
watchdogID: string;
|
|
805
823
|
}, options?: Omit<UseQueryOptions<unknown, AxiosError<ApiError>>, "queryKey">, callback?: (data: AxiosResponse<unknown>) => void) => UseQueryResult<unknown, AxiosError<ApiError>>;
|
|
806
824
|
|
|
807
|
-
export { Key_Account, Key_AccountAdmin, Key_AmsInfo, Key_AmsInfoAdmin, Key_AmsQoSAdmin, Key_ArtifactsAdmin, Key_Auth, Key_DevelopmentAdmin, Key_FleetCommander, Key_Fleets, Key_FleetsAdmin, Key_ImagesAdmin, Key_ServersAdmin, Key_Watchdogs, useAccountAdminApi_CreateAccountLinkMutation, useAccountAdminApi_CreateAccountMutation, useAccountAdminApi_GetAccount, useAccountAdminApi_GetAccountLink, useAccountApi_GetAccount, useAmsInfoAdminApi_GetRegions, useAmsInfoAdminApi_GetSupportedInstances, useAmsInfoApi_GetUploadUrl, useAmsQoSAdminApi_GetQos, useAmsQoSAdminApi_PatchQo_ByRegionMutation, useArtifactsAdminApi_DeleteArtifactMutation, useArtifactsAdminApi_DeleteArtifact_ByArtifactIdMutation, useArtifactsAdminApi_GetArtifacts, useArtifactsAdminApi_GetArtifactsSamplingRules_ByFleetId, useArtifactsAdminApi_GetArtifactsUsage, useArtifactsAdminApi_GetUrl_ByArtifactId, useArtifactsAdminApi_UpdateArtifactsSamplingRule_ByFleetIdMutation, useAuthApi_GetAuth, useDevelopmentAdminApi_CreateDevelopmentServerConfigurationMutation, useDevelopmentAdminApi_DeleteDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation, useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServerConfigId, useDevelopmentAdminApi_GetDevelopmentServerConfigurations, useFleetCommanderApi_GetVersion, useFleetsAdminApi_CreateFleetMutation, useFleetsAdminApi_DeleteFleet_ByFleetIdMutation, useFleetsAdminApi_GetFleet_ByFleetId, useFleetsAdminApi_GetFleets, useFleetsAdminApi_GetServers_ByFleetId, useFleetsAdminApi_UpdateFleet_ByFleetIdMutation, useFleetsApi_UpdateClaim_ByFleetIdMutation, useFleetsApi_UpdateServerClaimMutation, useImagesAdminApi_CreateRestore_ByImageIdMutation, useImagesAdminApi_DeleteImage_ByImageIdMutation, useImagesAdminApi_GetImage_ByImageId, useImagesAdminApi_GetImages, useImagesAdminApi_GetImagesStorage, useImagesAdminApi_PatchImage_ByImageIdMutation, useServersAdminApi_GetConnectioninfo_ByServerId, useServersAdminApi_GetHistory_ByServerId, useServersAdminApi_GetServer_ByServerId, useServersAdminApi_GetServersHistory_ByFleetId, useWatchdogsApi_GetConnect_ByWatchdogId, useWatchdogsApi_GetConnect_ByWatchdogId_ByNS };
|
|
825
|
+
export { Key_Account, Key_AccountAdmin, Key_AmsInfo, Key_AmsInfoAdmin, Key_AmsQoSAdmin, Key_ArtifactsAdmin, Key_Auth, Key_DevelopmentAdmin, Key_FleetCommander, Key_Fleets, Key_FleetsAdmin, Key_ImagesAdmin, Key_ServersAdmin, Key_Watchdogs, useAccountAdminApi_CreateAccountLinkMutation, useAccountAdminApi_CreateAccountMutation, useAccountAdminApi_GetAccount, useAccountAdminApi_GetAccountLink, useAccountApi_GetAccount, useAmsInfoAdminApi_GetRegions, useAmsInfoAdminApi_GetSupportedInstances, useAmsInfoApi_GetUploadUrl, useAmsQoSAdminApi_GetQos, useAmsQoSAdminApi_PatchQo_ByRegionMutation, useArtifactsAdminApi_DeleteArtifactMutation, useArtifactsAdminApi_DeleteArtifact_ByArtifactIdMutation, useArtifactsAdminApi_GetArtifacts, useArtifactsAdminApi_GetArtifactsSamplingRules_ByFleetId, useArtifactsAdminApi_GetArtifactsUsage, useArtifactsAdminApi_GetUrl_ByArtifactId, useArtifactsAdminApi_UpdateArtifactsSamplingRule_ByFleetIdMutation, useAuthApi_GetAuth, useDevelopmentAdminApi_CreateDevelopmentServerConfigurationMutation, useDevelopmentAdminApi_DeleteDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation, useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServerConfigId, useDevelopmentAdminApi_GetDevelopmentServerConfigurations, useDevelopmentAdminApi_PatchDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation, useFleetCommanderApi_GetVersion, useFleetsAdminApi_CreateFleetMutation, useFleetsAdminApi_DeleteFleet_ByFleetIdMutation, useFleetsAdminApi_GetFleet_ByFleetId, useFleetsAdminApi_GetFleets, useFleetsAdminApi_GetServers_ByFleetId, useFleetsAdminApi_UpdateFleet_ByFleetIdMutation, useFleetsApi_UpdateClaim_ByFleetIdMutation, useFleetsApi_UpdateServerClaimMutation, useImagesAdminApi_CreateRestore_ByImageIdMutation, useImagesAdminApi_DeleteImage_ByImageIdMutation, useImagesAdminApi_GetImage_ByImageId, useImagesAdminApi_GetImages, useImagesAdminApi_GetImagesStorage, useImagesAdminApi_PatchImage_ByImageIdMutation, useServersAdminApi_GetConnectioninfo_ByServerId, useServersAdminApi_GetHistory_ByServerId, useServersAdminApi_GetServer_ByServerId, useServersAdminApi_GetServersHistory_ByFleetId, useWatchdogsApi_GetConnect_ByWatchdogId, useWatchdogsApi_GetConnect_ByWatchdogId_ByNS };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AccelByteSDK, SdkSetConfigParam, ApiError } from '@accelbyte/sdk';
|
|
2
2
|
import { AxiosError, AxiosResponse } from 'axios';
|
|
3
3
|
import { UseQueryOptions, UseQueryResult, UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
4
|
-
import { A as AccountResponse, a as AccountCreateResponse, b as AccountCreateRequest, c as AccountLinkTokenResponse, d as AccountLinkResponse, e as AccountLinkRequest, f as AmsRegionsResponse, I as
|
|
4
|
+
import { A as AccountResponse, a as AccountCreateResponse, b as AccountCreateRequest, c as AccountLinkTokenResponse, d as AccountLinkResponse, e as AccountLinkRequest, f as AmsRegionsResponse, I as InstanceTypesResponse, Q as QoSEndpointResponse, U as UpdateServerRequest, g as ArtifactListResponse, h as ArtifactUsageResponse, i as ArtifactUrlResponse, F as FleetArtifactsSampleRules, D as DevelopmentServerConfigurationListResponse, j as DevelopmentServerConfigurationCreateResponse, k as DevelopmentServerConfigurationCreateRequest, l as DevelopmentServerConfigurationGetResponse, m as DevelopmentServerConfigurationUpdateRequest, n as FleetListResponse, o as FleetCreateResponse, p as FleetParameters, q as FleetGetResponse, r as FleetServersResponse, s as ImageList, t as ImageStorage, u as ImageDetails, v as ImageUpdate, w as FleetServerInfoResponse, x as FleetServerHistoryResponse, y as DsHistoryList, z as FleetServerConnectionInfoResponse, B as FleetClaimResponse, C as FleetClaimByKeysReq, E as FleetClaimReq } from './FleetClaimResponse-CE1Oz24x.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -100,7 +100,7 @@ declare const useAmsInfoAdminApi_GetRegions: (sdk: AccelByteSDK, input: SdkSetCo
|
|
|
100
100
|
* }
|
|
101
101
|
* ```
|
|
102
102
|
*/
|
|
103
|
-
declare const useAmsInfoAdminApi_GetSupportedInstances: (sdk: AccelByteSDK, input: SdkSetConfigParam, options?: Omit<UseQueryOptions<
|
|
103
|
+
declare const useAmsInfoAdminApi_GetSupportedInstances: (sdk: AccelByteSDK, input: SdkSetConfigParam, options?: Omit<UseQueryOptions<InstanceTypesResponse, AxiosError<ApiError>>, "queryKey">, callback?: (data: AxiosResponse<InstanceTypesResponse>) => void) => UseQueryResult<InstanceTypesResponse, AxiosError<ApiError>>;
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* AUTO GENERATED
|
|
@@ -357,7 +357,25 @@ declare const useDevelopmentAdminApi_DeleteDevelopmentServerConfiguration_ByDeve
|
|
|
357
357
|
*/
|
|
358
358
|
declare const useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServerConfigId: (sdk: AccelByteSDK, input: SdkSetConfigParam & {
|
|
359
359
|
developmentServerConfigID: string;
|
|
360
|
-
}, options?: Omit<UseQueryOptions<DevelopmentServerConfigurationGetResponse, AxiosError<ApiError>>, "queryKey">, callback?: (data: AxiosResponse<DevelopmentServerConfigurationGetResponse>) => void) => UseQueryResult<DevelopmentServerConfigurationGetResponse, AxiosError<ApiError>>;
|
|
360
|
+
}, options?: Omit<UseQueryOptions<DevelopmentServerConfigurationGetResponse, AxiosError<ApiError>>, "queryKey">, callback?: (data: AxiosResponse<DevelopmentServerConfigurationGetResponse>) => void) => UseQueryResult<DevelopmentServerConfigurationGetResponse, AxiosError<ApiError>>;
|
|
361
|
+
/**
|
|
362
|
+
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [UPDATE]
|
|
363
|
+
*
|
|
364
|
+
* #### Default Query Options
|
|
365
|
+
* The default options include:
|
|
366
|
+
* ```
|
|
367
|
+
* {
|
|
368
|
+
* queryKey: [Key_DevelopmentAdmin.DevelopmentServerConfiguration_ByDevelopmentServerConfigId, input]
|
|
369
|
+
* }
|
|
370
|
+
* ```
|
|
371
|
+
*/
|
|
372
|
+
declare const useDevelopmentAdminApi_PatchDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation: (sdk: AccelByteSDK, options?: Omit<UseMutationOptions<unknown, AxiosError<ApiError>, SdkSetConfigParam & {
|
|
373
|
+
developmentServerConfigID: string;
|
|
374
|
+
data: DevelopmentServerConfigurationUpdateRequest;
|
|
375
|
+
}>, "mutationKey">, callback?: (data: unknown) => void) => UseMutationResult<unknown, AxiosError<ApiError>, SdkSetConfigParam & {
|
|
376
|
+
developmentServerConfigID: string;
|
|
377
|
+
data: DevelopmentServerConfigurationUpdateRequest;
|
|
378
|
+
}>;
|
|
361
379
|
|
|
362
380
|
/**
|
|
363
381
|
* AUTO GENERATED
|
|
@@ -384,11 +402,11 @@ declare const useFleetsAdminApi_GetFleets: (sdk: AccelByteSDK, input: SdkSetConf
|
|
|
384
402
|
queryParams?: {
|
|
385
403
|
active?: boolean | null;
|
|
386
404
|
count?: number;
|
|
387
|
-
desc?: "asc" | "desc";
|
|
388
405
|
name?: string | null;
|
|
389
406
|
offset?: number;
|
|
390
407
|
region?: string | null;
|
|
391
408
|
sortBy?: "active" | "name";
|
|
409
|
+
sortDirection?: "asc" | "desc";
|
|
392
410
|
};
|
|
393
411
|
}, options?: Omit<UseQueryOptions<FleetListResponse, AxiosError<ApiError>>, "queryKey">, callback?: (data: AxiosResponse<FleetListResponse>) => void) => UseQueryResult<FleetListResponse, AxiosError<ApiError>>;
|
|
394
412
|
/**
|
|
@@ -804,4 +822,4 @@ declare const useWatchdogsApi_GetConnect_ByWatchdogId_ByNS: (sdk: AccelByteSDK,
|
|
|
804
822
|
watchdogID: string;
|
|
805
823
|
}, options?: Omit<UseQueryOptions<unknown, AxiosError<ApiError>>, "queryKey">, callback?: (data: AxiosResponse<unknown>) => void) => UseQueryResult<unknown, AxiosError<ApiError>>;
|
|
806
824
|
|
|
807
|
-
export { Key_Account, Key_AccountAdmin, Key_AmsInfo, Key_AmsInfoAdmin, Key_AmsQoSAdmin, Key_ArtifactsAdmin, Key_Auth, Key_DevelopmentAdmin, Key_FleetCommander, Key_Fleets, Key_FleetsAdmin, Key_ImagesAdmin, Key_ServersAdmin, Key_Watchdogs, useAccountAdminApi_CreateAccountLinkMutation, useAccountAdminApi_CreateAccountMutation, useAccountAdminApi_GetAccount, useAccountAdminApi_GetAccountLink, useAccountApi_GetAccount, useAmsInfoAdminApi_GetRegions, useAmsInfoAdminApi_GetSupportedInstances, useAmsInfoApi_GetUploadUrl, useAmsQoSAdminApi_GetQos, useAmsQoSAdminApi_PatchQo_ByRegionMutation, useArtifactsAdminApi_DeleteArtifactMutation, useArtifactsAdminApi_DeleteArtifact_ByArtifactIdMutation, useArtifactsAdminApi_GetArtifacts, useArtifactsAdminApi_GetArtifactsSamplingRules_ByFleetId, useArtifactsAdminApi_GetArtifactsUsage, useArtifactsAdminApi_GetUrl_ByArtifactId, useArtifactsAdminApi_UpdateArtifactsSamplingRule_ByFleetIdMutation, useAuthApi_GetAuth, useDevelopmentAdminApi_CreateDevelopmentServerConfigurationMutation, useDevelopmentAdminApi_DeleteDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation, useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServerConfigId, useDevelopmentAdminApi_GetDevelopmentServerConfigurations, useFleetCommanderApi_GetVersion, useFleetsAdminApi_CreateFleetMutation, useFleetsAdminApi_DeleteFleet_ByFleetIdMutation, useFleetsAdminApi_GetFleet_ByFleetId, useFleetsAdminApi_GetFleets, useFleetsAdminApi_GetServers_ByFleetId, useFleetsAdminApi_UpdateFleet_ByFleetIdMutation, useFleetsApi_UpdateClaim_ByFleetIdMutation, useFleetsApi_UpdateServerClaimMutation, useImagesAdminApi_CreateRestore_ByImageIdMutation, useImagesAdminApi_DeleteImage_ByImageIdMutation, useImagesAdminApi_GetImage_ByImageId, useImagesAdminApi_GetImages, useImagesAdminApi_GetImagesStorage, useImagesAdminApi_PatchImage_ByImageIdMutation, useServersAdminApi_GetConnectioninfo_ByServerId, useServersAdminApi_GetHistory_ByServerId, useServersAdminApi_GetServer_ByServerId, useServersAdminApi_GetServersHistory_ByFleetId, useWatchdogsApi_GetConnect_ByWatchdogId, useWatchdogsApi_GetConnect_ByWatchdogId_ByNS };
|
|
825
|
+
export { Key_Account, Key_AccountAdmin, Key_AmsInfo, Key_AmsInfoAdmin, Key_AmsQoSAdmin, Key_ArtifactsAdmin, Key_Auth, Key_DevelopmentAdmin, Key_FleetCommander, Key_Fleets, Key_FleetsAdmin, Key_ImagesAdmin, Key_ServersAdmin, Key_Watchdogs, useAccountAdminApi_CreateAccountLinkMutation, useAccountAdminApi_CreateAccountMutation, useAccountAdminApi_GetAccount, useAccountAdminApi_GetAccountLink, useAccountApi_GetAccount, useAmsInfoAdminApi_GetRegions, useAmsInfoAdminApi_GetSupportedInstances, useAmsInfoApi_GetUploadUrl, useAmsQoSAdminApi_GetQos, useAmsQoSAdminApi_PatchQo_ByRegionMutation, useArtifactsAdminApi_DeleteArtifactMutation, useArtifactsAdminApi_DeleteArtifact_ByArtifactIdMutation, useArtifactsAdminApi_GetArtifacts, useArtifactsAdminApi_GetArtifactsSamplingRules_ByFleetId, useArtifactsAdminApi_GetArtifactsUsage, useArtifactsAdminApi_GetUrl_ByArtifactId, useArtifactsAdminApi_UpdateArtifactsSamplingRule_ByFleetIdMutation, useAuthApi_GetAuth, useDevelopmentAdminApi_CreateDevelopmentServerConfigurationMutation, useDevelopmentAdminApi_DeleteDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation, useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServerConfigId, useDevelopmentAdminApi_GetDevelopmentServerConfigurations, useDevelopmentAdminApi_PatchDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation, useFleetCommanderApi_GetVersion, useFleetsAdminApi_CreateFleetMutation, useFleetsAdminApi_DeleteFleet_ByFleetIdMutation, useFleetsAdminApi_GetFleet_ByFleetId, useFleetsAdminApi_GetFleets, useFleetsAdminApi_GetServers_ByFleetId, useFleetsAdminApi_UpdateFleet_ByFleetIdMutation, useFleetsApi_UpdateClaim_ByFleetIdMutation, useFleetsApi_UpdateServerClaimMutation, useImagesAdminApi_CreateRestore_ByImageIdMutation, useImagesAdminApi_DeleteImage_ByImageIdMutation, useImagesAdminApi_GetImage_ByImageId, useImagesAdminApi_GetImages, useImagesAdminApi_GetImagesStorage, useImagesAdminApi_PatchImage_ByImageIdMutation, useServersAdminApi_GetConnectioninfo_ByServerId, useServersAdminApi_GetHistory_ByServerId, useServersAdminApi_GetServer_ByServerId, useServersAdminApi_GetServersHistory_ByFleetId, useWatchdogsApi_GetConnect_ByWatchdogId, useWatchdogsApi_GetConnect_ByWatchdogId_ByNS };
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
ImagesAdminApi,
|
|
14
14
|
ServersAdminApi,
|
|
15
15
|
WatchdogsApi
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-UPPXBGXY.js";
|
|
17
17
|
|
|
18
18
|
// src/generated-admin/queries/AccountAdmin.query.ts
|
|
19
19
|
import { useMutation, useQuery } from "@tanstack/react-query";
|
|
@@ -320,6 +320,21 @@ var useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServer
|
|
|
320
320
|
...options
|
|
321
321
|
});
|
|
322
322
|
};
|
|
323
|
+
var useDevelopmentAdminApi_PatchDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation = (sdk, options, callback) => {
|
|
324
|
+
const mutationFn = async (input) => {
|
|
325
|
+
const response = await DevelopmentAdminApi(sdk, {
|
|
326
|
+
coreConfig: input.coreConfig,
|
|
327
|
+
axiosConfig: input.axiosConfig
|
|
328
|
+
}).patchDevelopmentServerConfiguration_ByDevelopmentServerConfigId(input.developmentServerConfigID, input.data);
|
|
329
|
+
callback && callback(response.data);
|
|
330
|
+
return response.data;
|
|
331
|
+
};
|
|
332
|
+
return useMutation4({
|
|
333
|
+
mutationKey: ["Ams.DevelopmentAdmin.DevelopmentServerConfiguration_ByDevelopmentServerConfigId" /* DevelopmentServerConfiguration_ByDevelopmentServerConfigId */],
|
|
334
|
+
mutationFn,
|
|
335
|
+
...options
|
|
336
|
+
});
|
|
337
|
+
};
|
|
323
338
|
|
|
324
339
|
// src/generated-admin/queries/FleetsAdmin.query.ts
|
|
325
340
|
import { useMutation as useMutation5, useQuery as useQuery6 } from "@tanstack/react-query";
|
|
@@ -759,6 +774,7 @@ export {
|
|
|
759
774
|
useDevelopmentAdminApi_DeleteDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation,
|
|
760
775
|
useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServerConfigId,
|
|
761
776
|
useDevelopmentAdminApi_GetDevelopmentServerConfigurations,
|
|
777
|
+
useDevelopmentAdminApi_PatchDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation,
|
|
762
778
|
useFleetCommanderApi_GetVersion,
|
|
763
779
|
useFleetsAdminApi_CreateFleetMutation,
|
|
764
780
|
useFleetsAdminApi_DeleteFleet_ByFleetIdMutation,
|
|
@@ -154,12 +154,13 @@ var AmsRegionsResponse = z6.object({ regions: z6.array(z6.string()).nullish() })
|
|
|
154
154
|
import { z as z7 } from "zod";
|
|
155
155
|
var Capacity = z7.object({ region: z7.string(), vmCount: z7.number().int() });
|
|
156
156
|
|
|
157
|
-
// src/generated-definitions/
|
|
157
|
+
// src/generated-definitions/InstanceType.ts
|
|
158
158
|
import { z as z8 } from "zod";
|
|
159
|
-
var
|
|
159
|
+
var InstanceType = z8.object({
|
|
160
160
|
capacity: z8.array(Capacity),
|
|
161
161
|
description: z8.string(),
|
|
162
162
|
id: z8.string(),
|
|
163
|
+
isBaremetal: z8.boolean(),
|
|
163
164
|
memoryGiB: z8.number(),
|
|
164
165
|
minSpeed: z8.string(),
|
|
165
166
|
name: z8.string(),
|
|
@@ -168,9 +169,9 @@ var InstanceTypeForNamespaceResponse = z8.object({
|
|
|
168
169
|
virtualCpu: z8.number().int()
|
|
169
170
|
});
|
|
170
171
|
|
|
171
|
-
// src/generated-definitions/
|
|
172
|
+
// src/generated-definitions/InstanceTypesResponse.ts
|
|
172
173
|
import { z as z9 } from "zod";
|
|
173
|
-
var
|
|
174
|
+
var InstanceTypesResponse = z9.object({ availableInstanceTypes: z9.array(InstanceType) });
|
|
174
175
|
|
|
175
176
|
// src/generated-admin/endpoints/AmsInfoAdmin$.ts
|
|
176
177
|
import { Validate as Validate2 } from "@accelbyte/sdk";
|
|
@@ -198,12 +199,7 @@ var AmsInfoAdmin$ = class {
|
|
|
198
199
|
const params = {};
|
|
199
200
|
const url = "/ams/v1/admin/namespaces/{namespace}/supported-instances".replace("{namespace}", this.namespace);
|
|
200
201
|
const resultPromise = this.axiosInstance.get(url, { params });
|
|
201
|
-
return Validate2.validateOrReturnResponse(
|
|
202
|
-
this.useSchemaValidation,
|
|
203
|
-
() => resultPromise,
|
|
204
|
-
InstanceTypesForNamespaceResponse,
|
|
205
|
-
"InstanceTypesForNamespaceResponse"
|
|
206
|
-
);
|
|
202
|
+
return Validate2.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, InstanceTypesResponse, "InstanceTypesResponse");
|
|
207
203
|
}
|
|
208
204
|
};
|
|
209
205
|
|
|
@@ -367,6 +363,7 @@ var ArtifactResponse = z14.object({
|
|
|
367
363
|
id: z14.string(),
|
|
368
364
|
imageId: z14.string(),
|
|
369
365
|
namespace: z14.string(),
|
|
366
|
+
reason: z14.string().nullish(),
|
|
370
367
|
region: z14.string(),
|
|
371
368
|
sizeBytes: z14.number().int(),
|
|
372
369
|
status: z14.string()
|
|
@@ -601,8 +598,8 @@ var DevelopmentServerConfigurationCreateResponse = z23.object({ name: z23.string
|
|
|
601
598
|
import { z as z24 } from "zod";
|
|
602
599
|
var DevelopmentServerConfigurationGetResponse = z24.object({
|
|
603
600
|
commandLineArguments: z24.string(),
|
|
604
|
-
createdAt:
|
|
605
|
-
expiresAt:
|
|
601
|
+
createdAt: Time.nullish(),
|
|
602
|
+
expiresAt: Time.nullish(),
|
|
606
603
|
imageId: z24.string(),
|
|
607
604
|
name: z24.string()
|
|
608
605
|
});
|
|
@@ -676,6 +673,15 @@ var DevelopmentAdmin$ = class {
|
|
|
676
673
|
"DevelopmentServerConfigurationGetResponse"
|
|
677
674
|
);
|
|
678
675
|
}
|
|
676
|
+
/**
|
|
677
|
+
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [UPDATE]
|
|
678
|
+
*/
|
|
679
|
+
patchDevelopmentServerConfiguration_ByDevelopmentServerConfigId(developmentServerConfigID, data) {
|
|
680
|
+
const params = {};
|
|
681
|
+
const url = "/ams/v1/admin/namespaces/{namespace}/development/server-configurations/{developmentServerConfigID}".replace("{namespace}", this.namespace).replace("{developmentServerConfigID}", developmentServerConfigID);
|
|
682
|
+
const resultPromise = this.axiosInstance.patch(url, data, { params });
|
|
683
|
+
return Validate5.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, z26.unknown(), "z.unknown()");
|
|
684
|
+
}
|
|
679
685
|
};
|
|
680
686
|
|
|
681
687
|
// src/generated-admin/DevelopmentAdminApi.ts
|
|
@@ -727,6 +733,12 @@ function DevelopmentAdminApi(sdk, args) {
|
|
|
727
733
|
if (resp.error) throw resp.error;
|
|
728
734
|
return resp.response;
|
|
729
735
|
}
|
|
736
|
+
async function patchDevelopmentServerConfiguration_ByDevelopmentServerConfigId(developmentServerConfigID, data) {
|
|
737
|
+
const $ = new DevelopmentAdmin$(axiosInstance, namespace, useSchemaValidation);
|
|
738
|
+
const resp = await $.patchDevelopmentServerConfiguration_ByDevelopmentServerConfigId(developmentServerConfigID, data);
|
|
739
|
+
if (resp.error) throw resp.error;
|
|
740
|
+
return resp.response;
|
|
741
|
+
}
|
|
730
742
|
return {
|
|
731
743
|
/**
|
|
732
744
|
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
|
|
@@ -743,7 +755,11 @@ function DevelopmentAdminApi(sdk, args) {
|
|
|
743
755
|
/**
|
|
744
756
|
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
|
|
745
757
|
*/
|
|
746
|
-
getDevelopmentServerConfiguration_ByDevelopmentServerConfigId
|
|
758
|
+
getDevelopmentServerConfiguration_ByDevelopmentServerConfigId,
|
|
759
|
+
/**
|
|
760
|
+
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [UPDATE]
|
|
761
|
+
*/
|
|
762
|
+
patchDevelopmentServerConfiguration_ByDevelopmentServerConfigId
|
|
747
763
|
};
|
|
748
764
|
}
|
|
749
765
|
|
|
@@ -799,11 +815,13 @@ var FleetGetResponse = z33.object({
|
|
|
799
815
|
active: z33.boolean(),
|
|
800
816
|
claimKeys: z33.array(z33.string()),
|
|
801
817
|
dsHostConfiguration: DsHostConfiguration,
|
|
818
|
+
fallbackFleet: z33.string(),
|
|
802
819
|
id: z33.string(),
|
|
803
820
|
imageDeploymentProfile: ImageDeploymentProfile,
|
|
804
821
|
isLocal: z33.boolean(),
|
|
805
822
|
name: z33.string(),
|
|
806
823
|
onDemand: z33.boolean(),
|
|
824
|
+
primaryFleet: z33.string(),
|
|
807
825
|
regions: z33.array(RegionConfig),
|
|
808
826
|
samplingRules: FleetArtifactsSampleRules
|
|
809
827
|
});
|
|
@@ -824,12 +842,14 @@ import { z as z35 } from "zod";
|
|
|
824
842
|
var FleetListItemResponse = z35.object({
|
|
825
843
|
active: z35.boolean(),
|
|
826
844
|
counts: z35.array(FleetRegionalServerCounts),
|
|
845
|
+
fallbackFleet: z35.string(),
|
|
827
846
|
id: z35.string(),
|
|
828
847
|
image: z35.string(),
|
|
829
848
|
instanceProvider: z35.string(),
|
|
830
849
|
isLocal: z35.boolean(),
|
|
831
850
|
name: z35.string(),
|
|
832
851
|
onDemand: z35.boolean(),
|
|
852
|
+
primaryFleet: z35.string(),
|
|
833
853
|
regions: z35.array(z35.string())
|
|
834
854
|
});
|
|
835
855
|
|
|
@@ -850,7 +870,7 @@ var FleetListResponse = z37.object({ fleets: z37.array(FleetListItemResponse), p
|
|
|
850
870
|
// src/generated-definitions/FleetServerInfoResponse.ts
|
|
851
871
|
import { z as z38 } from "zod";
|
|
852
872
|
var FleetServerInfoResponse = z38.object({
|
|
853
|
-
createdAt:
|
|
873
|
+
createdAt: Time,
|
|
854
874
|
fleetId: z38.string(),
|
|
855
875
|
fleetName: z38.string(),
|
|
856
876
|
imageCmd: z38.string(),
|
|
@@ -1051,7 +1071,7 @@ var ReferencingFleet = z42.object({ environment: z42.string(), fleetId: z42.stri
|
|
|
1051
1071
|
import { z as z43 } from "zod";
|
|
1052
1072
|
var ImageDetails = z43.object({
|
|
1053
1073
|
createdAt: Time,
|
|
1054
|
-
deleteAt: Time,
|
|
1074
|
+
deleteAt: Time.nullish(),
|
|
1055
1075
|
executable: z43.string(),
|
|
1056
1076
|
id: z43.string(),
|
|
1057
1077
|
isProtected: z43.boolean(),
|
|
@@ -1068,7 +1088,7 @@ var ImageDetails = z43.object({
|
|
|
1068
1088
|
import { z as z44 } from "zod";
|
|
1069
1089
|
var ImageListItem = z44.object({
|
|
1070
1090
|
createdAt: Time,
|
|
1071
|
-
deleteAt: Time,
|
|
1091
|
+
deleteAt: Time.nullish(),
|
|
1072
1092
|
executable: z44.string(),
|
|
1073
1093
|
id: z44.string(),
|
|
1074
1094
|
isProtected: z44.boolean(),
|
|
@@ -1657,7 +1677,13 @@ function FleetCommanderApi(sdk, args) {
|
|
|
1657
1677
|
|
|
1658
1678
|
// src/generated-definitions/FleetClaimResponse.ts
|
|
1659
1679
|
import { z as z56 } from "zod";
|
|
1660
|
-
var FleetClaimResponse = z56.object({
|
|
1680
|
+
var FleetClaimResponse = z56.object({
|
|
1681
|
+
fleetId: z56.string(),
|
|
1682
|
+
ip: z56.string(),
|
|
1683
|
+
ports: z56.record(z56.number().int()),
|
|
1684
|
+
region: z56.string(),
|
|
1685
|
+
serverId: z56.string()
|
|
1686
|
+
});
|
|
1661
1687
|
|
|
1662
1688
|
// src/generated-public/endpoints/Fleets$.ts
|
|
1663
1689
|
import { Validate as Validate13 } from "@accelbyte/sdk";
|
|
@@ -1828,8 +1854,8 @@ export {
|
|
|
1828
1854
|
AccountAdminApi,
|
|
1829
1855
|
AmsRegionsResponse,
|
|
1830
1856
|
Capacity,
|
|
1831
|
-
|
|
1832
|
-
|
|
1857
|
+
InstanceType,
|
|
1858
|
+
InstanceTypesResponse,
|
|
1833
1859
|
AmsInfoAdmin$,
|
|
1834
1860
|
AmsInfoAdminApi,
|
|
1835
1861
|
Time,
|