@accelbyte/sdk-ams 5.2.1 → 5.3.0
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-B0Ss45Mo.d.cts → FleetClaimResponse-CE1Oz24x.d.cts} +435 -230
- package/dist/{FleetClaimResponse-B0Ss45Mo.d.ts → FleetClaimResponse-CE1Oz24x.d.ts} +435 -230
- package/dist/all-query-imports.cjs +331 -247
- package/dist/all-query-imports.d.cts +49 -7
- package/dist/all-query-imports.d.ts +49 -7
- package/dist/all-query-imports.js +23 -3
- package/dist/{chunk-LBIKEJ3H.js → chunk-UPPXBGXY.js} +310 -246
- package/dist/global/index.global.js +1 -1
- package/dist/index.cjs +369 -311
- package/dist/index.d.cts +249 -185
- package/dist/index.d.ts +249 -185
- package/dist/index.js +49 -53
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -159,7 +160,7 @@ var AccountAdmin$ = class {
|
|
|
159
160
|
);
|
|
160
161
|
}
|
|
161
162
|
/**
|
|
162
|
-
* 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
|
|
163
|
+
* 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 Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [CREATE]
|
|
163
164
|
*/
|
|
164
165
|
createAccountLink(data) {
|
|
165
166
|
const params = {};
|
|
@@ -231,7 +232,7 @@ function AccountAdminApi(sdk, args) {
|
|
|
231
232
|
*/
|
|
232
233
|
getAccountLink,
|
|
233
234
|
/**
|
|
234
|
-
* 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
|
|
235
|
+
* 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 Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:ACCOUNT [CREATE]
|
|
235
236
|
*/
|
|
236
237
|
createAccountLink
|
|
237
238
|
};
|
|
@@ -307,22 +308,32 @@ 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
|
|
312
|
+
var import_zod9 = require("zod");
|
|
313
|
+
|
|
314
|
+
// src/generated-definitions/InstanceType.ts
|
|
311
315
|
var import_zod8 = require("zod");
|
|
312
316
|
|
|
313
|
-
// src/generated-definitions/
|
|
317
|
+
// src/generated-definitions/Capacity.ts
|
|
314
318
|
var import_zod7 = require("zod");
|
|
315
|
-
var
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
319
|
+
var Capacity = import_zod7.z.object({ region: import_zod7.z.string(), vmCount: import_zod7.z.number().int() });
|
|
320
|
+
|
|
321
|
+
// src/generated-definitions/InstanceType.ts
|
|
322
|
+
var InstanceType = import_zod8.z.object({
|
|
323
|
+
capacity: import_zod8.z.array(Capacity),
|
|
324
|
+
description: import_zod8.z.string(),
|
|
325
|
+
id: import_zod8.z.string(),
|
|
326
|
+
isBaremetal: import_zod8.z.boolean(),
|
|
327
|
+
memoryGiB: import_zod8.z.number(),
|
|
328
|
+
minSpeed: import_zod8.z.string(),
|
|
329
|
+
name: import_zod8.z.string(),
|
|
330
|
+
ownerAccountId: import_zod8.z.string(),
|
|
331
|
+
provider: import_zod8.z.string(),
|
|
332
|
+
virtualCpu: import_zod8.z.number().int()
|
|
322
333
|
});
|
|
323
334
|
|
|
324
|
-
// src/generated-definitions/
|
|
325
|
-
var
|
|
335
|
+
// src/generated-definitions/InstanceTypesResponse.ts
|
|
336
|
+
var InstanceTypesResponse = import_zod9.z.object({ availableInstanceTypes: import_zod9.z.array(InstanceType) });
|
|
326
337
|
|
|
327
338
|
// src/generated-admin/endpoints/AmsInfoAdmin$.ts
|
|
328
339
|
var AmsInfoAdmin$ = class {
|
|
@@ -349,12 +360,7 @@ var AmsInfoAdmin$ = class {
|
|
|
349
360
|
const params = {};
|
|
350
361
|
const url = "/ams/v1/admin/namespaces/{namespace}/supported-instances".replace("{namespace}", this.namespace);
|
|
351
362
|
const resultPromise = this.axiosInstance.get(url, { params });
|
|
352
|
-
return import_sdk3.Validate.validateOrReturnResponse(
|
|
353
|
-
this.useSchemaValidation,
|
|
354
|
-
() => resultPromise,
|
|
355
|
-
AvailableInstanceTypesResponse,
|
|
356
|
-
"AvailableInstanceTypesResponse"
|
|
357
|
-
);
|
|
363
|
+
return import_sdk3.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, InstanceTypesResponse, "InstanceTypesResponse");
|
|
358
364
|
}
|
|
359
365
|
};
|
|
360
366
|
|
|
@@ -445,30 +451,30 @@ var import_sdk6 = require("@accelbyte/sdk");
|
|
|
445
451
|
|
|
446
452
|
// src/generated-admin/endpoints/AmsQoSAdmin$.ts
|
|
447
453
|
var import_sdk5 = require("@accelbyte/sdk");
|
|
448
|
-
var
|
|
454
|
+
var import_zod13 = require("zod");
|
|
449
455
|
|
|
450
456
|
// src/generated-definitions/QoSEndpointResponse.ts
|
|
451
|
-
var
|
|
457
|
+
var import_zod12 = require("zod");
|
|
452
458
|
|
|
453
459
|
// src/generated-definitions/QoSServer.ts
|
|
454
|
-
var
|
|
460
|
+
var import_zod11 = require("zod");
|
|
455
461
|
|
|
456
462
|
// src/generated-definitions/Time.ts
|
|
457
|
-
var
|
|
458
|
-
var Time =
|
|
463
|
+
var import_zod10 = require("zod");
|
|
464
|
+
var Time = import_zod10.z.any();
|
|
459
465
|
|
|
460
466
|
// src/generated-definitions/QoSServer.ts
|
|
461
|
-
var QoSServer =
|
|
462
|
-
alias:
|
|
463
|
-
ip:
|
|
467
|
+
var QoSServer = import_zod11.z.object({
|
|
468
|
+
alias: import_zod11.z.string(),
|
|
469
|
+
ip: import_zod11.z.string(),
|
|
464
470
|
last_update: Time,
|
|
465
|
-
port:
|
|
466
|
-
region:
|
|
467
|
-
status:
|
|
471
|
+
port: import_zod11.z.number().int(),
|
|
472
|
+
region: import_zod11.z.string(),
|
|
473
|
+
status: import_zod11.z.string()
|
|
468
474
|
});
|
|
469
475
|
|
|
470
476
|
// src/generated-definitions/QoSEndpointResponse.ts
|
|
471
|
-
var QoSEndpointResponse =
|
|
477
|
+
var QoSEndpointResponse = import_zod12.z.object({ servers: import_zod12.z.array(QoSServer) });
|
|
472
478
|
|
|
473
479
|
// src/generated-admin/endpoints/AmsQoSAdmin$.ts
|
|
474
480
|
var AmsQoSAdmin$ = class {
|
|
@@ -495,7 +501,7 @@ var AmsQoSAdmin$ = class {
|
|
|
495
501
|
const params = {};
|
|
496
502
|
const url = "/ams/v1/admin/namespaces/{namespace}/qos/{region}".replace("{namespace}", this.namespace).replace("{region}", region);
|
|
497
503
|
const resultPromise = this.axiosInstance.patch(url, data, { params });
|
|
498
|
-
return import_sdk5.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise,
|
|
504
|
+
return import_sdk5.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod13.z.unknown(), "z.unknown()");
|
|
499
505
|
}
|
|
500
506
|
};
|
|
501
507
|
|
|
@@ -589,58 +595,67 @@ var import_sdk8 = require("@accelbyte/sdk");
|
|
|
589
595
|
|
|
590
596
|
// src/generated-admin/endpoints/ArtifactsAdmin$.ts
|
|
591
597
|
var import_sdk7 = require("@accelbyte/sdk");
|
|
592
|
-
var
|
|
598
|
+
var import_zod22 = require("zod");
|
|
593
599
|
|
|
594
600
|
// src/generated-definitions/ArtifactListResponse.ts
|
|
595
|
-
var
|
|
601
|
+
var import_zod15 = require("zod");
|
|
596
602
|
|
|
597
603
|
// src/generated-definitions/ArtifactResponse.ts
|
|
598
|
-
var
|
|
599
|
-
var ArtifactResponse =
|
|
600
|
-
artifactType:
|
|
604
|
+
var import_zod14 = require("zod");
|
|
605
|
+
var ArtifactResponse = import_zod14.z.object({
|
|
606
|
+
artifactType: import_zod14.z.string(),
|
|
601
607
|
createdOn: Time,
|
|
602
|
-
dsId:
|
|
608
|
+
dsId: import_zod14.z.string(),
|
|
603
609
|
expiresOn: Time,
|
|
604
|
-
filename:
|
|
605
|
-
fleetId:
|
|
606
|
-
id:
|
|
607
|
-
imageId:
|
|
608
|
-
namespace:
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
610
|
+
filename: import_zod14.z.string(),
|
|
611
|
+
fleetId: import_zod14.z.string(),
|
|
612
|
+
id: import_zod14.z.string(),
|
|
613
|
+
imageId: import_zod14.z.string(),
|
|
614
|
+
namespace: import_zod14.z.string(),
|
|
615
|
+
reason: import_zod14.z.string().nullish(),
|
|
616
|
+
region: import_zod14.z.string(),
|
|
617
|
+
sizeBytes: import_zod14.z.number().int(),
|
|
618
|
+
status: import_zod14.z.string()
|
|
612
619
|
});
|
|
613
620
|
|
|
614
621
|
// src/generated-definitions/ArtifactListResponse.ts
|
|
615
|
-
var ArtifactListResponse =
|
|
622
|
+
var ArtifactListResponse = import_zod15.z.object({ data: import_zod15.z.array(ArtifactResponse), totalData: import_zod15.z.number().int() });
|
|
616
623
|
|
|
617
624
|
// src/generated-definitions/ArtifactUrlResponse.ts
|
|
618
|
-
var
|
|
619
|
-
var ArtifactUrlResponse =
|
|
625
|
+
var import_zod16 = require("zod");
|
|
626
|
+
var ArtifactUrlResponse = import_zod16.z.object({ url: import_zod16.z.string() });
|
|
620
627
|
|
|
621
628
|
// src/generated-definitions/ArtifactUsageResponse.ts
|
|
622
|
-
var
|
|
623
|
-
var ArtifactUsageResponse =
|
|
624
|
-
quotaBytes:
|
|
625
|
-
remainingBytes:
|
|
626
|
-
usedBytes:
|
|
629
|
+
var import_zod17 = require("zod");
|
|
630
|
+
var ArtifactUsageResponse = import_zod17.z.object({
|
|
631
|
+
quotaBytes: import_zod17.z.number().int(),
|
|
632
|
+
remainingBytes: import_zod17.z.number().int(),
|
|
633
|
+
usedBytes: import_zod17.z.number().int()
|
|
627
634
|
});
|
|
628
635
|
|
|
629
636
|
// src/generated-definitions/FleetArtifactsSampleRules.ts
|
|
630
|
-
var
|
|
637
|
+
var import_zod21 = require("zod");
|
|
631
638
|
|
|
632
639
|
// src/generated-definitions/ArtifactTypeSamplingRules.ts
|
|
633
|
-
var
|
|
640
|
+
var import_zod19 = require("zod");
|
|
634
641
|
|
|
635
642
|
// src/generated-definitions/ArtifactSamplingRule.ts
|
|
636
|
-
var
|
|
637
|
-
var ArtifactSamplingRule =
|
|
643
|
+
var import_zod18 = require("zod");
|
|
644
|
+
var ArtifactSamplingRule = import_zod18.z.object({ collect: import_zod18.z.boolean(), percentage: import_zod18.z.number().int() });
|
|
638
645
|
|
|
639
646
|
// src/generated-definitions/ArtifactTypeSamplingRules.ts
|
|
640
|
-
var ArtifactTypeSamplingRules =
|
|
647
|
+
var ArtifactTypeSamplingRules = import_zod19.z.object({
|
|
648
|
+
crashed: ArtifactSamplingRule,
|
|
649
|
+
success: ArtifactSamplingRule,
|
|
650
|
+
unclaimed: ArtifactSamplingRule.nullish()
|
|
651
|
+
});
|
|
652
|
+
|
|
653
|
+
// src/generated-definitions/CoredumpSamplingRules.ts
|
|
654
|
+
var import_zod20 = require("zod");
|
|
655
|
+
var CoredumpSamplingRules = import_zod20.z.object({ crashed: ArtifactSamplingRule });
|
|
641
656
|
|
|
642
657
|
// src/generated-definitions/FleetArtifactsSampleRules.ts
|
|
643
|
-
var FleetArtifactsSampleRules =
|
|
658
|
+
var FleetArtifactsSampleRules = import_zod21.z.object({ coredumps: CoredumpSamplingRules, logs: ArtifactTypeSamplingRules });
|
|
644
659
|
|
|
645
660
|
// src/generated-admin/endpoints/ArtifactsAdmin$.ts
|
|
646
661
|
var ArtifactsAdmin$ = class {
|
|
@@ -658,13 +673,13 @@ var ArtifactsAdmin$ = class {
|
|
|
658
673
|
const params = { ...queryParams };
|
|
659
674
|
const url = "/ams/v1/admin/namespaces/{namespace}/artifacts".replace("{namespace}", this.namespace);
|
|
660
675
|
const resultPromise = this.axiosInstance.delete(url, { params });
|
|
661
|
-
return import_sdk7.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise,
|
|
676
|
+
return import_sdk7.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod22.z.unknown(), "z.unknown()");
|
|
662
677
|
}
|
|
663
678
|
/**
|
|
664
679
|
* 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]
|
|
665
680
|
*/
|
|
666
681
|
getArtifacts(queryParams) {
|
|
667
|
-
const params = { count: 100, ...queryParams };
|
|
682
|
+
const params = { count: 100, sortBy: "created_on", sortDirection: "desc", ...queryParams };
|
|
668
683
|
const url = "/ams/v1/admin/namespaces/{namespace}/artifacts".replace("{namespace}", this.namespace);
|
|
669
684
|
const resultPromise = this.axiosInstance.get(url, { params });
|
|
670
685
|
return import_sdk7.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, ArtifactListResponse, "ArtifactListResponse");
|
|
@@ -685,7 +700,7 @@ var ArtifactsAdmin$ = class {
|
|
|
685
700
|
const params = {};
|
|
686
701
|
const url = "/ams/v1/admin/namespaces/{namespace}/artifacts/{artifactID}".replace("{namespace}", this.namespace).replace("{artifactID}", artifactID);
|
|
687
702
|
const resultPromise = this.axiosInstance.delete(url, { params });
|
|
688
|
-
return import_sdk7.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise,
|
|
703
|
+
return import_sdk7.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod22.z.unknown(), "z.unknown()");
|
|
689
704
|
}
|
|
690
705
|
/**
|
|
691
706
|
* Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:ARTIFACT [READ]
|
|
@@ -943,25 +958,27 @@ var import_sdk10 = require("@accelbyte/sdk");
|
|
|
943
958
|
|
|
944
959
|
// src/generated-admin/endpoints/DevelopmentAdmin$.ts
|
|
945
960
|
var import_sdk9 = require("@accelbyte/sdk");
|
|
946
|
-
var
|
|
961
|
+
var import_zod26 = require("zod");
|
|
947
962
|
|
|
948
963
|
// src/generated-definitions/DevelopmentServerConfigurationCreateResponse.ts
|
|
949
|
-
var
|
|
950
|
-
var DevelopmentServerConfigurationCreateResponse =
|
|
964
|
+
var import_zod23 = require("zod");
|
|
965
|
+
var DevelopmentServerConfigurationCreateResponse = import_zod23.z.object({ name: import_zod23.z.string() });
|
|
951
966
|
|
|
952
967
|
// src/generated-definitions/DevelopmentServerConfigurationGetResponse.ts
|
|
953
|
-
var
|
|
954
|
-
var DevelopmentServerConfigurationGetResponse =
|
|
955
|
-
commandLineArguments:
|
|
956
|
-
|
|
957
|
-
|
|
968
|
+
var import_zod24 = require("zod");
|
|
969
|
+
var DevelopmentServerConfigurationGetResponse = import_zod24.z.object({
|
|
970
|
+
commandLineArguments: import_zod24.z.string(),
|
|
971
|
+
createdAt: Time.nullish(),
|
|
972
|
+
expiresAt: Time.nullish(),
|
|
973
|
+
imageId: import_zod24.z.string(),
|
|
974
|
+
name: import_zod24.z.string()
|
|
958
975
|
});
|
|
959
976
|
|
|
960
977
|
// src/generated-definitions/DevelopmentServerConfigurationListResponse.ts
|
|
961
|
-
var
|
|
962
|
-
var DevelopmentServerConfigurationListResponse =
|
|
963
|
-
data:
|
|
964
|
-
totalData:
|
|
978
|
+
var import_zod25 = require("zod");
|
|
979
|
+
var DevelopmentServerConfigurationListResponse = import_zod25.z.object({
|
|
980
|
+
data: import_zod25.z.array(DevelopmentServerConfigurationGetResponse),
|
|
981
|
+
totalData: import_zod25.z.number().int()
|
|
965
982
|
});
|
|
966
983
|
|
|
967
984
|
// src/generated-admin/endpoints/DevelopmentAdmin$.ts
|
|
@@ -1008,7 +1025,7 @@ var DevelopmentAdmin$ = class {
|
|
|
1008
1025
|
const params = {};
|
|
1009
1026
|
const url = "/ams/v1/admin/namespaces/{namespace}/development/server-configurations/{developmentServerConfigID}".replace("{namespace}", this.namespace).replace("{developmentServerConfigID}", developmentServerConfigID);
|
|
1010
1027
|
const resultPromise = this.axiosInstance.delete(url, { params });
|
|
1011
|
-
return import_sdk9.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise,
|
|
1028
|
+
return import_sdk9.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod26.z.unknown(), "z.unknown()");
|
|
1012
1029
|
}
|
|
1013
1030
|
/**
|
|
1014
1031
|
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
|
|
@@ -1024,6 +1041,15 @@ var DevelopmentAdmin$ = class {
|
|
|
1024
1041
|
"DevelopmentServerConfigurationGetResponse"
|
|
1025
1042
|
);
|
|
1026
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
|
+
}
|
|
1027
1053
|
};
|
|
1028
1054
|
|
|
1029
1055
|
// src/generated-admin/DevelopmentAdminApi.ts
|
|
@@ -1074,6 +1100,12 @@ function DevelopmentAdminApi(sdk, args) {
|
|
|
1074
1100
|
if (resp.error) throw resp.error;
|
|
1075
1101
|
return resp.response;
|
|
1076
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
|
+
}
|
|
1077
1109
|
return {
|
|
1078
1110
|
/**
|
|
1079
1111
|
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
|
|
@@ -1090,7 +1122,11 @@ function DevelopmentAdminApi(sdk, args) {
|
|
|
1090
1122
|
/**
|
|
1091
1123
|
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
|
|
1092
1124
|
*/
|
|
1093
|
-
getDevelopmentServerConfiguration_ByDevelopmentServerConfigId
|
|
1125
|
+
getDevelopmentServerConfiguration_ByDevelopmentServerConfigId,
|
|
1126
|
+
/**
|
|
1127
|
+
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [UPDATE]
|
|
1128
|
+
*/
|
|
1129
|
+
patchDevelopmentServerConfiguration_ByDevelopmentServerConfigId
|
|
1094
1130
|
};
|
|
1095
1131
|
}
|
|
1096
1132
|
|
|
@@ -1161,6 +1197,21 @@ var useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServer
|
|
|
1161
1197
|
...options
|
|
1162
1198
|
});
|
|
1163
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
|
+
};
|
|
1164
1215
|
|
|
1165
1216
|
// src/generated-admin/queries/FleetsAdmin.query.ts
|
|
1166
1217
|
var import_react_query6 = require("@tanstack/react-query");
|
|
@@ -1170,139 +1221,160 @@ var import_sdk12 = require("@accelbyte/sdk");
|
|
|
1170
1221
|
|
|
1171
1222
|
// src/generated-admin/endpoints/FleetsAdmin$.ts
|
|
1172
1223
|
var import_sdk11 = require("@accelbyte/sdk");
|
|
1173
|
-
var
|
|
1224
|
+
var import_zod41 = require("zod");
|
|
1174
1225
|
|
|
1175
1226
|
// src/generated-definitions/FleetCreateResponse.ts
|
|
1176
|
-
var
|
|
1177
|
-
var FleetCreateResponse =
|
|
1227
|
+
var import_zod27 = require("zod");
|
|
1228
|
+
var FleetCreateResponse = import_zod27.z.object({ id: import_zod27.z.string() });
|
|
1178
1229
|
|
|
1179
1230
|
// src/generated-definitions/FleetGetResponse.ts
|
|
1180
|
-
var
|
|
1231
|
+
var import_zod33 = require("zod");
|
|
1181
1232
|
|
|
1182
1233
|
// src/generated-definitions/DsHostConfiguration.ts
|
|
1183
|
-
var
|
|
1184
|
-
var DsHostConfiguration =
|
|
1234
|
+
var import_zod28 = require("zod");
|
|
1235
|
+
var DsHostConfiguration = import_zod28.z.object({
|
|
1236
|
+
instanceId: import_zod28.z.string(),
|
|
1237
|
+
instanceProvider: import_zod28.z.string(),
|
|
1238
|
+
instanceType: import_zod28.z.string(),
|
|
1239
|
+
serversPerVm: import_zod28.z.number().int()
|
|
1240
|
+
});
|
|
1185
1241
|
|
|
1186
1242
|
// src/generated-definitions/ImageDeploymentProfile.ts
|
|
1187
|
-
var
|
|
1243
|
+
var import_zod31 = require("zod");
|
|
1188
1244
|
|
|
1189
1245
|
// src/generated-definitions/PortConfiguration.ts
|
|
1190
|
-
var
|
|
1191
|
-
var PortConfiguration =
|
|
1246
|
+
var import_zod29 = require("zod");
|
|
1247
|
+
var PortConfiguration = import_zod29.z.object({ name: import_zod29.z.string(), protocol: import_zod29.z.string() });
|
|
1192
1248
|
|
|
1193
1249
|
// src/generated-definitions/Timeout.ts
|
|
1194
|
-
var
|
|
1195
|
-
var Timeout =
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1250
|
+
var import_zod30 = require("zod");
|
|
1251
|
+
var Timeout = import_zod30.z.object({
|
|
1252
|
+
claim: import_zod30.z.number().int().nullish(),
|
|
1253
|
+
creation: import_zod30.z.number().int().nullish(),
|
|
1254
|
+
drain: import_zod30.z.number().int().nullish(),
|
|
1255
|
+
session: import_zod30.z.number().int().nullish(),
|
|
1256
|
+
unresponsive: import_zod30.z.number().int().nullish()
|
|
1200
1257
|
});
|
|
1201
1258
|
|
|
1202
1259
|
// src/generated-definitions/ImageDeploymentProfile.ts
|
|
1203
|
-
var ImageDeploymentProfile =
|
|
1204
|
-
commandLine:
|
|
1205
|
-
imageId:
|
|
1206
|
-
portConfigurations:
|
|
1207
|
-
timeout: Timeout
|
|
1260
|
+
var ImageDeploymentProfile = import_zod31.z.object({
|
|
1261
|
+
commandLine: import_zod31.z.string(),
|
|
1262
|
+
imageId: import_zod31.z.string(),
|
|
1263
|
+
portConfigurations: import_zod31.z.array(PortConfiguration),
|
|
1264
|
+
timeout: Timeout.nullish()
|
|
1208
1265
|
});
|
|
1209
1266
|
|
|
1210
1267
|
// src/generated-definitions/RegionConfig.ts
|
|
1211
|
-
var
|
|
1212
|
-
var RegionConfig =
|
|
1213
|
-
bufferSize:
|
|
1214
|
-
dynamicBuffer:
|
|
1215
|
-
maxServerCount:
|
|
1216
|
-
minServerCount:
|
|
1217
|
-
region:
|
|
1268
|
+
var import_zod32 = require("zod");
|
|
1269
|
+
var RegionConfig = import_zod32.z.object({
|
|
1270
|
+
bufferSize: import_zod32.z.number().int(),
|
|
1271
|
+
dynamicBuffer: import_zod32.z.boolean(),
|
|
1272
|
+
maxServerCount: import_zod32.z.number().int(),
|
|
1273
|
+
minServerCount: import_zod32.z.number().int(),
|
|
1274
|
+
region: import_zod32.z.string()
|
|
1218
1275
|
});
|
|
1219
1276
|
|
|
1220
1277
|
// src/generated-definitions/FleetGetResponse.ts
|
|
1221
|
-
var FleetGetResponse =
|
|
1222
|
-
active:
|
|
1223
|
-
claimKeys:
|
|
1278
|
+
var FleetGetResponse = import_zod33.z.object({
|
|
1279
|
+
active: import_zod33.z.boolean(),
|
|
1280
|
+
claimKeys: import_zod33.z.array(import_zod33.z.string()),
|
|
1224
1281
|
dsHostConfiguration: DsHostConfiguration,
|
|
1225
|
-
|
|
1282
|
+
fallbackFleet: import_zod33.z.string(),
|
|
1283
|
+
id: import_zod33.z.string(),
|
|
1226
1284
|
imageDeploymentProfile: ImageDeploymentProfile,
|
|
1227
|
-
isLocal:
|
|
1228
|
-
name:
|
|
1229
|
-
onDemand:
|
|
1230
|
-
|
|
1285
|
+
isLocal: import_zod33.z.boolean(),
|
|
1286
|
+
name: import_zod33.z.string(),
|
|
1287
|
+
onDemand: import_zod33.z.boolean(),
|
|
1288
|
+
primaryFleet: import_zod33.z.string(),
|
|
1289
|
+
regions: import_zod33.z.array(RegionConfig),
|
|
1231
1290
|
samplingRules: FleetArtifactsSampleRules
|
|
1232
1291
|
});
|
|
1233
1292
|
|
|
1234
1293
|
// src/generated-definitions/FleetListResponse.ts
|
|
1235
|
-
var
|
|
1294
|
+
var import_zod37 = require("zod");
|
|
1236
1295
|
|
|
1237
1296
|
// src/generated-definitions/FleetListItemResponse.ts
|
|
1238
|
-
var
|
|
1297
|
+
var import_zod35 = require("zod");
|
|
1239
1298
|
|
|
1240
1299
|
// src/generated-definitions/FleetRegionalServerCounts.ts
|
|
1241
|
-
var
|
|
1242
|
-
var FleetRegionalServerCounts =
|
|
1243
|
-
claimedServerCount:
|
|
1244
|
-
readyServerCount:
|
|
1245
|
-
region:
|
|
1246
|
-
runningVmCount:
|
|
1247
|
-
targetDsCount:
|
|
1248
|
-
targetVmCount:
|
|
1300
|
+
var import_zod34 = require("zod");
|
|
1301
|
+
var FleetRegionalServerCounts = import_zod34.z.object({
|
|
1302
|
+
claimedServerCount: import_zod34.z.number().int(),
|
|
1303
|
+
readyServerCount: import_zod34.z.number().int(),
|
|
1304
|
+
region: import_zod34.z.string(),
|
|
1305
|
+
runningVmCount: import_zod34.z.number().int(),
|
|
1306
|
+
targetDsCount: import_zod34.z.number().int(),
|
|
1307
|
+
targetVmCount: import_zod34.z.number().int()
|
|
1249
1308
|
});
|
|
1250
1309
|
|
|
1251
1310
|
// src/generated-definitions/FleetListItemResponse.ts
|
|
1252
|
-
var FleetListItemResponse =
|
|
1253
|
-
active:
|
|
1254
|
-
counts:
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1311
|
+
var FleetListItemResponse = import_zod35.z.object({
|
|
1312
|
+
active: import_zod35.z.boolean(),
|
|
1313
|
+
counts: import_zod35.z.array(FleetRegionalServerCounts),
|
|
1314
|
+
fallbackFleet: import_zod35.z.string(),
|
|
1315
|
+
id: import_zod35.z.string(),
|
|
1316
|
+
image: import_zod35.z.string(),
|
|
1317
|
+
instanceProvider: import_zod35.z.string(),
|
|
1318
|
+
isLocal: import_zod35.z.boolean(),
|
|
1319
|
+
name: import_zod35.z.string(),
|
|
1320
|
+
onDemand: import_zod35.z.boolean(),
|
|
1321
|
+
primaryFleet: import_zod35.z.string(),
|
|
1322
|
+
regions: import_zod35.z.array(import_zod35.z.string())
|
|
1323
|
+
});
|
|
1324
|
+
|
|
1325
|
+
// src/generated-definitions/PaginationInfo.ts
|
|
1326
|
+
var import_zod36 = require("zod");
|
|
1327
|
+
var PaginationInfo = import_zod36.z.object({
|
|
1328
|
+
first: import_zod36.z.string(),
|
|
1329
|
+
last: import_zod36.z.string(),
|
|
1330
|
+
next: import_zod36.z.string(),
|
|
1331
|
+
previous: import_zod36.z.string(),
|
|
1332
|
+
total: import_zod36.z.number().int()
|
|
1261
1333
|
});
|
|
1262
1334
|
|
|
1263
1335
|
// src/generated-definitions/FleetListResponse.ts
|
|
1264
|
-
var FleetListResponse =
|
|
1336
|
+
var FleetListResponse = import_zod37.z.object({ fleets: import_zod37.z.array(FleetListItemResponse), paging: PaginationInfo });
|
|
1265
1337
|
|
|
1266
1338
|
// src/generated-definitions/FleetServersResponse.ts
|
|
1267
|
-
var
|
|
1339
|
+
var import_zod40 = require("zod");
|
|
1268
1340
|
|
|
1269
1341
|
// src/generated-definitions/FleetServerInfoResponse.ts
|
|
1270
|
-
var
|
|
1271
|
-
var FleetServerInfoResponse =
|
|
1272
|
-
createdAt:
|
|
1273
|
-
fleetId:
|
|
1274
|
-
fleetName:
|
|
1275
|
-
imageCmd:
|
|
1276
|
-
imageId:
|
|
1277
|
-
instanceType:
|
|
1278
|
-
ipAddress:
|
|
1279
|
-
portConfiguration:
|
|
1280
|
-
ports:
|
|
1281
|
-
region:
|
|
1282
|
-
serverConfiguration:
|
|
1283
|
-
serverId:
|
|
1284
|
-
sessionId:
|
|
1285
|
-
status:
|
|
1342
|
+
var import_zod38 = require("zod");
|
|
1343
|
+
var FleetServerInfoResponse = import_zod38.z.object({
|
|
1344
|
+
createdAt: Time,
|
|
1345
|
+
fleetId: import_zod38.z.string(),
|
|
1346
|
+
fleetName: import_zod38.z.string(),
|
|
1347
|
+
imageCmd: import_zod38.z.string(),
|
|
1348
|
+
imageId: import_zod38.z.string(),
|
|
1349
|
+
instanceType: import_zod38.z.string(),
|
|
1350
|
+
ipAddress: import_zod38.z.string(),
|
|
1351
|
+
portConfiguration: import_zod38.z.array(PortConfiguration),
|
|
1352
|
+
ports: import_zod38.z.record(import_zod38.z.number().int()),
|
|
1353
|
+
region: import_zod38.z.string(),
|
|
1354
|
+
serverConfiguration: import_zod38.z.string(),
|
|
1355
|
+
serverId: import_zod38.z.string(),
|
|
1356
|
+
sessionId: import_zod38.z.string(),
|
|
1357
|
+
status: import_zod38.z.string()
|
|
1286
1358
|
});
|
|
1287
1359
|
|
|
1288
1360
|
// src/generated-definitions/PagingInfo.ts
|
|
1289
|
-
var
|
|
1290
|
-
var PagingInfo =
|
|
1291
|
-
currentPage:
|
|
1292
|
-
hasNext:
|
|
1293
|
-
hasPages:
|
|
1294
|
-
hasPrev:
|
|
1295
|
-
next:
|
|
1296
|
-
pageNums:
|
|
1297
|
-
previous:
|
|
1298
|
-
total:
|
|
1361
|
+
var import_zod39 = require("zod");
|
|
1362
|
+
var PagingInfo = import_zod39.z.object({
|
|
1363
|
+
currentPage: import_zod39.z.number().int(),
|
|
1364
|
+
hasNext: import_zod39.z.boolean(),
|
|
1365
|
+
hasPages: import_zod39.z.boolean(),
|
|
1366
|
+
hasPrev: import_zod39.z.boolean(),
|
|
1367
|
+
next: import_zod39.z.string(),
|
|
1368
|
+
pageNums: import_zod39.z.array(import_zod39.z.number().int()),
|
|
1369
|
+
previous: import_zod39.z.string(),
|
|
1370
|
+
total: import_zod39.z.number().int()
|
|
1299
1371
|
});
|
|
1300
1372
|
|
|
1301
1373
|
// src/generated-definitions/FleetServersResponse.ts
|
|
1302
|
-
var FleetServersResponse =
|
|
1374
|
+
var FleetServersResponse = import_zod40.z.object({
|
|
1303
1375
|
paging: PagingInfo,
|
|
1304
|
-
regions:
|
|
1305
|
-
servers:
|
|
1376
|
+
regions: import_zod40.z.array(FleetRegionalServerCounts),
|
|
1377
|
+
servers: import_zod40.z.array(FleetServerInfoResponse)
|
|
1306
1378
|
});
|
|
1307
1379
|
|
|
1308
1380
|
// src/generated-admin/endpoints/FleetsAdmin$.ts
|
|
@@ -1317,8 +1389,8 @@ var FleetsAdmin$ = class {
|
|
|
1317
1389
|
/**
|
|
1318
1390
|
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
|
|
1319
1391
|
*/
|
|
1320
|
-
getFleets() {
|
|
1321
|
-
const params = {};
|
|
1392
|
+
getFleets(queryParams) {
|
|
1393
|
+
const params = { count: 100, ...queryParams };
|
|
1322
1394
|
const url = "/ams/v1/admin/namespaces/{namespace}/fleets".replace("{namespace}", this.namespace);
|
|
1323
1395
|
const resultPromise = this.axiosInstance.get(url, { params });
|
|
1324
1396
|
return import_sdk11.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, FleetListResponse, "FleetListResponse");
|
|
@@ -1339,7 +1411,7 @@ var FleetsAdmin$ = class {
|
|
|
1339
1411
|
const params = {};
|
|
1340
1412
|
const url = "/ams/v1/admin/namespaces/{namespace}/fleets/{fleetID}".replace("{namespace}", this.namespace).replace("{fleetID}", fleetID);
|
|
1341
1413
|
const resultPromise = this.axiosInstance.delete(url, { params });
|
|
1342
|
-
return import_sdk11.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise,
|
|
1414
|
+
return import_sdk11.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod41.z.unknown(), "z.unknown()");
|
|
1343
1415
|
}
|
|
1344
1416
|
/**
|
|
1345
1417
|
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
|
|
@@ -1357,7 +1429,7 @@ var FleetsAdmin$ = class {
|
|
|
1357
1429
|
const params = {};
|
|
1358
1430
|
const url = "/ams/v1/admin/namespaces/{namespace}/fleets/{fleetID}".replace("{namespace}", this.namespace).replace("{fleetID}", fleetID);
|
|
1359
1431
|
const resultPromise = this.axiosInstance.put(url, data, { params });
|
|
1360
|
-
return import_sdk11.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise,
|
|
1432
|
+
return import_sdk11.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod41.z.unknown(), "z.unknown()");
|
|
1361
1433
|
}
|
|
1362
1434
|
/**
|
|
1363
1435
|
* Required Permission: ADMIN:NAMESPACE:{namespace}:ARMADA:FLEET [READ]
|
|
@@ -1394,9 +1466,9 @@ function FleetsAdminApi(sdk, args) {
|
|
|
1394
1466
|
}
|
|
1395
1467
|
}
|
|
1396
1468
|
}
|
|
1397
|
-
async function getFleets() {
|
|
1469
|
+
async function getFleets(queryParams) {
|
|
1398
1470
|
const $ = new FleetsAdmin$(axiosInstance, namespace, useSchemaValidation);
|
|
1399
|
-
const resp = await $.getFleets();
|
|
1471
|
+
const resp = await $.getFleets(queryParams);
|
|
1400
1472
|
if (resp.error) throw resp.error;
|
|
1401
1473
|
return resp.response;
|
|
1402
1474
|
}
|
|
@@ -1468,7 +1540,9 @@ var Key_FleetsAdmin = /* @__PURE__ */ ((Key_FleetsAdmin2) => {
|
|
|
1468
1540
|
})(Key_FleetsAdmin || {});
|
|
1469
1541
|
var useFleetsAdminApi_GetFleets = (sdk, input, options, callback) => {
|
|
1470
1542
|
const queryFn = (sdk2, input2) => async () => {
|
|
1471
|
-
const response = await FleetsAdminApi(sdk2, { coreConfig: input2.coreConfig, axiosConfig: input2.axiosConfig }).getFleets(
|
|
1543
|
+
const response = await FleetsAdminApi(sdk2, { coreConfig: input2.coreConfig, axiosConfig: input2.axiosConfig }).getFleets(
|
|
1544
|
+
input2.queryParams
|
|
1545
|
+
);
|
|
1472
1546
|
callback && callback(response);
|
|
1473
1547
|
return response.data;
|
|
1474
1548
|
};
|
|
@@ -1557,60 +1631,61 @@ var import_sdk14 = require("@accelbyte/sdk");
|
|
|
1557
1631
|
|
|
1558
1632
|
// src/generated-admin/endpoints/ImagesAdmin$.ts
|
|
1559
1633
|
var import_sdk13 = require("@accelbyte/sdk");
|
|
1560
|
-
var
|
|
1634
|
+
var import_zod47 = require("zod");
|
|
1561
1635
|
|
|
1562
1636
|
// src/generated-definitions/ImageDetails.ts
|
|
1563
|
-
var
|
|
1637
|
+
var import_zod43 = require("zod");
|
|
1564
1638
|
|
|
1565
1639
|
// src/generated-definitions/ReferencingFleet.ts
|
|
1566
|
-
var
|
|
1567
|
-
var ReferencingFleet =
|
|
1640
|
+
var import_zod42 = require("zod");
|
|
1641
|
+
var ReferencingFleet = import_zod42.z.object({ environment: import_zod42.z.string(), fleetId: import_zod42.z.string(), namespace: import_zod42.z.string() });
|
|
1568
1642
|
|
|
1569
1643
|
// src/generated-definitions/ImageDetails.ts
|
|
1570
|
-
var ImageDetails =
|
|
1644
|
+
var ImageDetails = import_zod43.z.object({
|
|
1571
1645
|
createdAt: Time,
|
|
1572
|
-
deleteAt: Time,
|
|
1573
|
-
executable:
|
|
1574
|
-
id:
|
|
1575
|
-
isProtected:
|
|
1576
|
-
name:
|
|
1577
|
-
referencingFleets:
|
|
1578
|
-
sizeInByte:
|
|
1579
|
-
status:
|
|
1580
|
-
tags:
|
|
1646
|
+
deleteAt: Time.nullish(),
|
|
1647
|
+
executable: import_zod43.z.string(),
|
|
1648
|
+
id: import_zod43.z.string(),
|
|
1649
|
+
isProtected: import_zod43.z.boolean(),
|
|
1650
|
+
name: import_zod43.z.string(),
|
|
1651
|
+
referencingFleets: import_zod43.z.array(ReferencingFleet),
|
|
1652
|
+
sizeInByte: import_zod43.z.number().int(),
|
|
1653
|
+
status: import_zod43.z.string(),
|
|
1654
|
+
tags: import_zod43.z.array(import_zod43.z.string()),
|
|
1581
1655
|
uploadedAt: Time,
|
|
1582
|
-
uploadedBy:
|
|
1656
|
+
uploadedBy: import_zod43.z.string()
|
|
1583
1657
|
});
|
|
1584
1658
|
|
|
1585
1659
|
// src/generated-definitions/ImageList.ts
|
|
1586
|
-
var
|
|
1660
|
+
var import_zod45 = require("zod");
|
|
1587
1661
|
|
|
1588
1662
|
// src/generated-definitions/ImageListItem.ts
|
|
1589
|
-
var
|
|
1590
|
-
var ImageListItem =
|
|
1663
|
+
var import_zod44 = require("zod");
|
|
1664
|
+
var ImageListItem = import_zod44.z.object({
|
|
1591
1665
|
createdAt: Time,
|
|
1592
|
-
deleteAt: Time,
|
|
1593
|
-
executable:
|
|
1594
|
-
id:
|
|
1595
|
-
isProtected:
|
|
1596
|
-
name:
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1666
|
+
deleteAt: Time.nullish(),
|
|
1667
|
+
executable: import_zod44.z.string(),
|
|
1668
|
+
id: import_zod44.z.string(),
|
|
1669
|
+
isProtected: import_zod44.z.boolean(),
|
|
1670
|
+
name: import_zod44.z.string(),
|
|
1671
|
+
referencingConfigs: import_zod44.z.number().int(),
|
|
1672
|
+
referencingFleets: import_zod44.z.number().int(),
|
|
1673
|
+
sizeInByte: import_zod44.z.number().int(),
|
|
1674
|
+
status: import_zod44.z.string(),
|
|
1675
|
+
tags: import_zod44.z.array(import_zod44.z.string()),
|
|
1601
1676
|
uploadedAt: Time,
|
|
1602
|
-
uploadedBy:
|
|
1677
|
+
uploadedBy: import_zod44.z.string()
|
|
1603
1678
|
});
|
|
1604
1679
|
|
|
1605
1680
|
// src/generated-definitions/ImageList.ts
|
|
1606
|
-
var ImageList =
|
|
1681
|
+
var ImageList = import_zod45.z.object({ images: import_zod45.z.array(ImageListItem), paging: PagingInfo });
|
|
1607
1682
|
|
|
1608
1683
|
// src/generated-definitions/ImageStorage.ts
|
|
1609
|
-
var
|
|
1610
|
-
var ImageStorage =
|
|
1611
|
-
currentMarkedForDeletionBytes:
|
|
1612
|
-
currentUsageBytes:
|
|
1613
|
-
quotaBytes:
|
|
1684
|
+
var import_zod46 = require("zod");
|
|
1685
|
+
var ImageStorage = import_zod46.z.object({
|
|
1686
|
+
currentMarkedForDeletionBytes: import_zod46.z.number().int(),
|
|
1687
|
+
currentUsageBytes: import_zod46.z.number().int(),
|
|
1688
|
+
quotaBytes: import_zod46.z.number().int()
|
|
1614
1689
|
});
|
|
1615
1690
|
|
|
1616
1691
|
// src/generated-admin/endpoints/ImagesAdmin$.ts
|
|
@@ -1625,8 +1700,8 @@ var ImagesAdmin$ = class {
|
|
|
1625
1700
|
/**
|
|
1626
1701
|
* 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]
|
|
1627
1702
|
*/
|
|
1628
|
-
getImages() {
|
|
1629
|
-
const params = {};
|
|
1703
|
+
getImages(queryParams) {
|
|
1704
|
+
const params = { count: 100, sortBy: "uploadedAt", sortDirection: "desc", ...queryParams };
|
|
1630
1705
|
const url = "/ams/v1/admin/namespaces/{namespace}/images".replace("{namespace}", this.namespace);
|
|
1631
1706
|
const resultPromise = this.axiosInstance.get(url, { params });
|
|
1632
1707
|
return import_sdk13.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, ImageList, "ImageList");
|
|
@@ -1647,7 +1722,7 @@ var ImagesAdmin$ = class {
|
|
|
1647
1722
|
const params = {};
|
|
1648
1723
|
const url = "/ams/v1/admin/namespaces/{namespace}/images/{imageID}".replace("{namespace}", this.namespace).replace("{imageID}", imageID);
|
|
1649
1724
|
const resultPromise = this.axiosInstance.delete(url, { params });
|
|
1650
|
-
return import_sdk13.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise,
|
|
1725
|
+
return import_sdk13.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod47.z.unknown(), "z.unknown()");
|
|
1651
1726
|
}
|
|
1652
1727
|
/**
|
|
1653
1728
|
* Required Permission: ADMIN:NAMESPACE:{namespace}:AMS:IMAGE [READ]
|
|
@@ -1674,7 +1749,7 @@ var ImagesAdmin$ = class {
|
|
|
1674
1749
|
const params = {};
|
|
1675
1750
|
const url = "/ams/v1/admin/namespaces/{namespace}/images/{imageID}/restore".replace("{namespace}", this.namespace).replace("{imageID}", imageID);
|
|
1676
1751
|
const resultPromise = this.axiosInstance.post(url, null, { params });
|
|
1677
|
-
return import_sdk13.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise,
|
|
1752
|
+
return import_sdk13.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod47.z.unknown(), "z.unknown()");
|
|
1678
1753
|
}
|
|
1679
1754
|
};
|
|
1680
1755
|
|
|
@@ -1702,9 +1777,9 @@ function ImagesAdminApi(sdk, args) {
|
|
|
1702
1777
|
}
|
|
1703
1778
|
}
|
|
1704
1779
|
}
|
|
1705
|
-
async function getImages() {
|
|
1780
|
+
async function getImages(queryParams) {
|
|
1706
1781
|
const $ = new ImagesAdmin$(axiosInstance, namespace, useSchemaValidation);
|
|
1707
|
-
const resp = await $.getImages();
|
|
1782
|
+
const resp = await $.getImages(queryParams);
|
|
1708
1783
|
if (resp.error) throw resp.error;
|
|
1709
1784
|
return resp.response;
|
|
1710
1785
|
}
|
|
@@ -1776,7 +1851,9 @@ var Key_ImagesAdmin = /* @__PURE__ */ ((Key_ImagesAdmin2) => {
|
|
|
1776
1851
|
})(Key_ImagesAdmin || {});
|
|
1777
1852
|
var useImagesAdminApi_GetImages = (sdk, input, options, callback) => {
|
|
1778
1853
|
const queryFn = (sdk2, input2) => async () => {
|
|
1779
|
-
const response = await ImagesAdminApi(sdk2, { coreConfig: input2.coreConfig, axiosConfig: input2.axiosConfig }).getImages(
|
|
1854
|
+
const response = await ImagesAdminApi(sdk2, { coreConfig: input2.coreConfig, axiosConfig: input2.axiosConfig }).getImages(
|
|
1855
|
+
input2.queryParams
|
|
1856
|
+
);
|
|
1780
1857
|
callback && callback(response);
|
|
1781
1858
|
return response.data;
|
|
1782
1859
|
};
|
|
@@ -1866,50 +1943,50 @@ var import_sdk16 = require("@accelbyte/sdk");
|
|
|
1866
1943
|
var import_sdk15 = require("@accelbyte/sdk");
|
|
1867
1944
|
|
|
1868
1945
|
// src/generated-definitions/DsHistoryList.ts
|
|
1869
|
-
var
|
|
1946
|
+
var import_zod49 = require("zod");
|
|
1870
1947
|
|
|
1871
1948
|
// src/generated-definitions/DsHistoryEvent.ts
|
|
1872
|
-
var
|
|
1873
|
-
var DsHistoryEvent =
|
|
1949
|
+
var import_zod48 = require("zod");
|
|
1950
|
+
var DsHistoryEvent = import_zod48.z.object({
|
|
1874
1951
|
createdAt: Time,
|
|
1875
|
-
exitCode:
|
|
1876
|
-
ipAddress:
|
|
1877
|
-
reason:
|
|
1878
|
-
region:
|
|
1879
|
-
serverId:
|
|
1880
|
-
sessionId:
|
|
1881
|
-
status:
|
|
1952
|
+
exitCode: import_zod48.z.number().int(),
|
|
1953
|
+
ipAddress: import_zod48.z.string(),
|
|
1954
|
+
reason: import_zod48.z.string(),
|
|
1955
|
+
region: import_zod48.z.string(),
|
|
1956
|
+
serverId: import_zod48.z.string(),
|
|
1957
|
+
sessionId: import_zod48.z.string(),
|
|
1958
|
+
status: import_zod48.z.string()
|
|
1882
1959
|
});
|
|
1883
1960
|
|
|
1884
1961
|
// src/generated-definitions/DsHistoryList.ts
|
|
1885
|
-
var DsHistoryList =
|
|
1962
|
+
var DsHistoryList = import_zod49.z.object({ events: import_zod49.z.array(DsHistoryEvent), paging: PagingInfo });
|
|
1886
1963
|
|
|
1887
1964
|
// src/generated-definitions/FleetServerConnectionInfoResponse.ts
|
|
1888
|
-
var
|
|
1889
|
-
var FleetServerConnectionInfoResponse =
|
|
1965
|
+
var import_zod50 = require("zod");
|
|
1966
|
+
var FleetServerConnectionInfoResponse = import_zod50.z.object({
|
|
1890
1967
|
expiresAt: Time,
|
|
1891
|
-
host:
|
|
1892
|
-
logstreamPort:
|
|
1893
|
-
secret:
|
|
1968
|
+
host: import_zod50.z.string(),
|
|
1969
|
+
logstreamPort: import_zod50.z.number().int(),
|
|
1970
|
+
secret: import_zod50.z.string()
|
|
1894
1971
|
});
|
|
1895
1972
|
|
|
1896
1973
|
// src/generated-definitions/FleetServerHistoryResponse.ts
|
|
1897
|
-
var
|
|
1974
|
+
var import_zod52 = require("zod");
|
|
1898
1975
|
|
|
1899
1976
|
// src/generated-definitions/FleetServerHistoryEventResponse.ts
|
|
1900
|
-
var
|
|
1901
|
-
var FleetServerHistoryEventResponse =
|
|
1977
|
+
var import_zod51 = require("zod");
|
|
1978
|
+
var FleetServerHistoryEventResponse = import_zod51.z.object({
|
|
1902
1979
|
createdAt: Time,
|
|
1903
|
-
exitCode:
|
|
1904
|
-
fleetId:
|
|
1905
|
-
newState:
|
|
1906
|
-
oldState:
|
|
1907
|
-
reason:
|
|
1908
|
-
serverId:
|
|
1980
|
+
exitCode: import_zod51.z.number().int(),
|
|
1981
|
+
fleetId: import_zod51.z.string(),
|
|
1982
|
+
newState: import_zod51.z.string(),
|
|
1983
|
+
oldState: import_zod51.z.string(),
|
|
1984
|
+
reason: import_zod51.z.string(),
|
|
1985
|
+
serverId: import_zod51.z.string()
|
|
1909
1986
|
});
|
|
1910
1987
|
|
|
1911
1988
|
// src/generated-definitions/FleetServerHistoryResponse.ts
|
|
1912
|
-
var FleetServerHistoryResponse =
|
|
1989
|
+
var FleetServerHistoryResponse = import_zod52.z.object({ events: import_zod52.z.array(FleetServerHistoryEventResponse) });
|
|
1913
1990
|
|
|
1914
1991
|
// src/generated-admin/endpoints/ServersAdmin$.ts
|
|
1915
1992
|
var ServersAdmin$ = class {
|
|
@@ -2199,7 +2276,7 @@ var import_sdk20 = require("@accelbyte/sdk");
|
|
|
2199
2276
|
|
|
2200
2277
|
// src/generated-public/endpoints/AmsInfo$.ts
|
|
2201
2278
|
var import_sdk19 = require("@accelbyte/sdk");
|
|
2202
|
-
var
|
|
2279
|
+
var import_zod53 = require("zod");
|
|
2203
2280
|
var AmsInfo$ = class {
|
|
2204
2281
|
// @ts-ignore
|
|
2205
2282
|
// prettier-ignore
|
|
@@ -2212,7 +2289,7 @@ var AmsInfo$ = class {
|
|
|
2212
2289
|
const params = {};
|
|
2213
2290
|
const url = "/ams/v1/upload-url";
|
|
2214
2291
|
const resultPromise = this.axiosInstance.get(url, { params });
|
|
2215
|
-
return import_sdk19.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise,
|
|
2292
|
+
return import_sdk19.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod53.z.unknown(), "z.unknown()");
|
|
2216
2293
|
}
|
|
2217
2294
|
};
|
|
2218
2295
|
|
|
@@ -2277,7 +2354,7 @@ var import_sdk22 = require("@accelbyte/sdk");
|
|
|
2277
2354
|
|
|
2278
2355
|
// src/generated-public/endpoints/Auth$.ts
|
|
2279
2356
|
var import_sdk21 = require("@accelbyte/sdk");
|
|
2280
|
-
var
|
|
2357
|
+
var import_zod54 = require("zod");
|
|
2281
2358
|
var Auth$ = class {
|
|
2282
2359
|
// @ts-ignore
|
|
2283
2360
|
// prettier-ignore
|
|
@@ -2293,7 +2370,7 @@ var Auth$ = class {
|
|
|
2293
2370
|
const params = {};
|
|
2294
2371
|
const url = "/ams/auth";
|
|
2295
2372
|
const resultPromise = this.axiosInstance.get(url, { params });
|
|
2296
|
-
return import_sdk21.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise,
|
|
2373
|
+
return import_sdk21.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod54.z.unknown(), "z.unknown()");
|
|
2297
2374
|
}
|
|
2298
2375
|
};
|
|
2299
2376
|
|
|
@@ -2361,7 +2438,7 @@ var import_sdk24 = require("@accelbyte/sdk");
|
|
|
2361
2438
|
|
|
2362
2439
|
// src/generated-public/endpoints/FleetCommander$.ts
|
|
2363
2440
|
var import_sdk23 = require("@accelbyte/sdk");
|
|
2364
|
-
var
|
|
2441
|
+
var import_zod55 = require("zod");
|
|
2365
2442
|
var FleetCommander$ = class {
|
|
2366
2443
|
// @ts-ignore
|
|
2367
2444
|
// prettier-ignore
|
|
@@ -2374,7 +2451,7 @@ var FleetCommander$ = class {
|
|
|
2374
2451
|
const params = {};
|
|
2375
2452
|
const url = "/ams/version";
|
|
2376
2453
|
const resultPromise = this.axiosInstance.get(url, { params });
|
|
2377
|
-
return import_sdk23.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise,
|
|
2454
|
+
return import_sdk23.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod55.z.unknown(), "z.unknown()");
|
|
2378
2455
|
}
|
|
2379
2456
|
};
|
|
2380
2457
|
|
|
@@ -2441,8 +2518,14 @@ var import_sdk26 = require("@accelbyte/sdk");
|
|
|
2441
2518
|
var import_sdk25 = require("@accelbyte/sdk");
|
|
2442
2519
|
|
|
2443
2520
|
// src/generated-definitions/FleetClaimResponse.ts
|
|
2444
|
-
var
|
|
2445
|
-
var FleetClaimResponse =
|
|
2521
|
+
var import_zod56 = require("zod");
|
|
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
|
+
});
|
|
2446
2529
|
|
|
2447
2530
|
// src/generated-public/endpoints/Fleets$.ts
|
|
2448
2531
|
var Fleets$ = class {
|
|
@@ -2563,7 +2646,7 @@ var import_sdk28 = require("@accelbyte/sdk");
|
|
|
2563
2646
|
|
|
2564
2647
|
// src/generated-public/endpoints/Watchdogs$.ts
|
|
2565
2648
|
var import_sdk27 = require("@accelbyte/sdk");
|
|
2566
|
-
var
|
|
2649
|
+
var import_zod57 = require("zod");
|
|
2567
2650
|
var Watchdogs$ = class {
|
|
2568
2651
|
// @ts-ignore
|
|
2569
2652
|
// prettier-ignore
|
|
@@ -2579,7 +2662,7 @@ var Watchdogs$ = class {
|
|
|
2579
2662
|
const params = {};
|
|
2580
2663
|
const url = "/ams/v1/namespaces/{namespace}/local/{watchdogID}/connect".replace("{namespace}", this.namespace).replace("{watchdogID}", watchdogID);
|
|
2581
2664
|
const resultPromise = this.axiosInstance.get(url, { params });
|
|
2582
|
-
return import_sdk27.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise,
|
|
2665
|
+
return import_sdk27.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod57.z.unknown(), "z.unknown()");
|
|
2583
2666
|
}
|
|
2584
2667
|
/**
|
|
2585
2668
|
* Required Permission: NAMESPACE:{namespace}:ARMADA:WATCHDOG [CREATE]
|
|
@@ -2588,7 +2671,7 @@ var Watchdogs$ = class {
|
|
|
2588
2671
|
const params = {};
|
|
2589
2672
|
const url = "/ams/v1/namespaces/{namespace}/watchdogs/{watchdogID}/connect".replace("{namespace}", this.namespace).replace("{watchdogID}", watchdogID);
|
|
2590
2673
|
const resultPromise = this.axiosInstance.get(url, { params });
|
|
2591
|
-
return import_sdk27.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise,
|
|
2674
|
+
return import_sdk27.Validate.validateOrReturnResponse(this.useSchemaValidation, () => resultPromise, import_zod57.z.unknown(), "z.unknown()");
|
|
2592
2675
|
}
|
|
2593
2676
|
};
|
|
2594
2677
|
|
|
@@ -2712,6 +2795,7 @@ var useWatchdogsApi_GetConnect_ByWatchdogId_ByNS = (sdk, input, options, callbac
|
|
|
2712
2795
|
useDevelopmentAdminApi_DeleteDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation,
|
|
2713
2796
|
useDevelopmentAdminApi_GetDevelopmentServerConfiguration_ByDevelopmentServerConfigId,
|
|
2714
2797
|
useDevelopmentAdminApi_GetDevelopmentServerConfigurations,
|
|
2798
|
+
useDevelopmentAdminApi_PatchDevelopmentServerConfiguration_ByDevelopmentServerConfigIdMutation,
|
|
2715
2799
|
useFleetCommanderApi_GetVersion,
|
|
2716
2800
|
useFleetsAdminApi_CreateFleetMutation,
|
|
2717
2801
|
useFleetsAdminApi_DeleteFleet_ByFleetIdMutation,
|