@accelbyte/sdk-ams 0.0.0-dev-20240828032938
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/CHANGELOG.md +11 -0
- package/LICENSE +19 -0
- package/package.json +55 -0
- package/react-query/package.json +5 -0
- package/src/Ams.ts +42 -0
- package/src/all-imports.ts +91 -0
- package/src/all-query-imports.ts +19 -0
- package/src/custom/index.ts +6 -0
- package/src/generated-admin/AccountAdminApi.ts +91 -0
- package/src/generated-admin/AmsInfoAdminApi.ts +65 -0
- package/src/generated-admin/AmsQoSAdminApi.ts +65 -0
- package/src/generated-admin/ArtifactsAdminApi.ts +122 -0
- package/src/generated-admin/DevelopmentAdminApi.ts +89 -0
- package/src/generated-admin/FleetsAdminApi.ts +112 -0
- package/src/generated-admin/ImagesAdminApi.ts +111 -0
- package/src/generated-admin/ServersAdminApi.ts +89 -0
- package/src/generated-admin/endpoints/AccountAdmin$.ts +68 -0
- package/src/generated-admin/endpoints/AmsInfoAdmin$.ts +42 -0
- package/src/generated-admin/endpoints/AmsQoSAdmin$.ts +43 -0
- package/src/generated-admin/endpoints/ArtifactsAdmin$.ts +100 -0
- package/src/generated-admin/endpoints/DevelopmentAdmin$.ts +67 -0
- package/src/generated-admin/endpoints/FleetsAdmin$.ts +90 -0
- package/src/generated-admin/endpoints/ImagesAdmin$.ts +89 -0
- package/src/generated-admin/endpoints/ServersAdmin$.ts +66 -0
- package/src/generated-admin/queries/AccountAdmin.query.ts +131 -0
- package/src/generated-admin/queries/AmsInfoAdmin.query.ts +81 -0
- package/src/generated-admin/queries/AmsQoSAdmin.query.ts +77 -0
- package/src/generated-admin/queries/ArtifactsAdmin.query.ts +211 -0
- package/src/generated-admin/queries/DevelopmentAdmin.query.ts +130 -0
- package/src/generated-admin/queries/FleetsAdmin.query.ts +182 -0
- package/src/generated-admin/queries/ImagesAdmin.query.ts +181 -0
- package/src/generated-admin/queries/ServersAdmin.query.ts +139 -0
- package/src/generated-definitions/AccountCreateRequest.ts +10 -0
- package/src/generated-definitions/AccountCreateResponse.ts +11 -0
- package/src/generated-definitions/AccountLimits.ts +16 -0
- package/src/generated-definitions/AccountLinkRequest.ts +10 -0
- package/src/generated-definitions/AccountLinkResponse.ts +11 -0
- package/src/generated-definitions/AccountLinkTokenResponse.ts +10 -0
- package/src/generated-definitions/AccountResponse.ts +11 -0
- package/src/generated-definitions/AmsRegionsResponse.ts +10 -0
- package/src/generated-definitions/ArtifactListResponse.ts +11 -0
- package/src/generated-definitions/ArtifactResponse.ts +24 -0
- package/src/generated-definitions/ArtifactSamplingRule.ts +10 -0
- package/src/generated-definitions/ArtifactTypeSamplingRules.ts +11 -0
- package/src/generated-definitions/ArtifactUrlResponse.ts +10 -0
- package/src/generated-definitions/ArtifactUsageResponse.ts +14 -0
- package/src/generated-definitions/AvailableInstanceTypesResponse.ts +11 -0
- package/src/generated-definitions/DevelopmentServerConfigurationCreateRequest.ts +14 -0
- package/src/generated-definitions/DevelopmentServerConfigurationCreateResponse.ts +10 -0
- package/src/generated-definitions/DevelopmentServerConfigurationGetResponse.ts +14 -0
- package/src/generated-definitions/DevelopmentServerConfigurationListResponse.ts +14 -0
- package/src/generated-definitions/DsHistoryEvent.ts +19 -0
- package/src/generated-definitions/DsHistoryList.ts +12 -0
- package/src/generated-definitions/DsHostConfiguration.ts +10 -0
- package/src/generated-definitions/ErrorResponse.ts +10 -0
- package/src/generated-definitions/FleetArtifactsSampleRules.ts +11 -0
- package/src/generated-definitions/FleetClaimByKeysReq.ts +10 -0
- package/src/generated-definitions/FleetClaimReq.ts +10 -0
- package/src/generated-definitions/FleetClaimResponse.ts +10 -0
- package/src/generated-definitions/FleetCreateResponse.ts +10 -0
- package/src/generated-definitions/FleetGetResponse.ts +25 -0
- package/src/generated-definitions/FleetListItemResponse.ts +20 -0
- package/src/generated-definitions/FleetListResponse.ts +11 -0
- package/src/generated-definitions/FleetParameters.ts +23 -0
- package/src/generated-definitions/FleetRegionalServerCounts.ts +17 -0
- package/src/generated-definitions/FleetServerConnectionInfoResponse.ts +16 -0
- package/src/generated-definitions/FleetServerHistoryEventResponse.ts +19 -0
- package/src/generated-definitions/FleetServerHistoryResponse.ts +11 -0
- package/src/generated-definitions/FleetServerInfoResponse.ts +26 -0
- package/src/generated-definitions/FleetServersResponse.ts +17 -0
- package/src/generated-definitions/ImageDeploymentProfile.ts +17 -0
- package/src/generated-definitions/ImageDetails.ts +25 -0
- package/src/generated-definitions/ImageList.ts +11 -0
- package/src/generated-definitions/ImageListItem.ts +24 -0
- package/src/generated-definitions/ImageStorage.ts +14 -0
- package/src/generated-definitions/ImageUpdate.ts +15 -0
- package/src/generated-definitions/InstanceTypeDescriptionResponse.ts +17 -0
- package/src/generated-definitions/Location.ts +20 -0
- package/src/generated-definitions/PagingInfo.ts +19 -0
- package/src/generated-definitions/PortConfiguration.ts +10 -0
- package/src/generated-definitions/QoSEndpointResponse.ts +11 -0
- package/src/generated-definitions/QoSServer.ts +18 -0
- package/src/generated-definitions/ReferencingFleet.ts +10 -0
- package/src/generated-definitions/RegionConfig.ts +16 -0
- package/src/generated-definitions/Time.ts +10 -0
- package/src/generated-definitions/Timeout.ts +15 -0
- package/src/generated-definitions/UpdateServerRequest.ts +10 -0
- package/src/generated-definitions/Zone.ts +10 -0
- package/src/generated-definitions/ZoneTrans.ts +10 -0
- package/src/generated-public/AccountApi.ts +53 -0
- package/src/generated-public/AmsInfoApi.ts +50 -0
- package/src/generated-public/AuthApi.ts +53 -0
- package/src/generated-public/FleetCommanderApi.ts +50 -0
- package/src/generated-public/FleetsApi.ts +66 -0
- package/src/generated-public/WatchdogsApi.ts +64 -0
- package/src/generated-public/endpoints/Account$.ts +30 -0
- package/src/generated-public/endpoints/AmsInfo$.ts +28 -0
- package/src/generated-public/endpoints/Auth$.ts +31 -0
- package/src/generated-public/endpoints/FleetCommander$.ts +28 -0
- package/src/generated-public/endpoints/Fleets$.ts +43 -0
- package/src/generated-public/endpoints/Watchdogs$.ts +42 -0
- package/src/generated-public/queries/Account.query.ts +52 -0
- package/src/generated-public/queries/AmsInfo.query.ts +52 -0
- package/src/generated-public/queries/Auth.query.ts +52 -0
- package/src/generated-public/queries/FleetCommander.query.ts +52 -0
- package/src/generated-public/queries/Fleets.query.ts +74 -0
- package/src/generated-public/queries/Watchdogs.query.ts +80 -0
- package/src/index.ts +7 -0
- package/src/version.json +7 -0
- package/swaggers/ams.json +3978 -0
- package/swaggers.json +1 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const FleetClaimReq = z.object({ region: z.string(), sessionId: z.string() })
|
|
9
|
+
|
|
10
|
+
export interface FleetClaimReq extends z.TypeOf<typeof FleetClaimReq> {}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const FleetClaimResponse = z.object({ ip: z.string(), ports: z.record(z.number().int()), region: z.string(), serverId: z.string() })
|
|
9
|
+
|
|
10
|
+
export interface FleetClaimResponse extends z.TypeOf<typeof FleetClaimResponse> {}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const FleetCreateResponse = z.object({ id: z.string() })
|
|
9
|
+
|
|
10
|
+
export interface FleetCreateResponse extends z.TypeOf<typeof FleetCreateResponse> {}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { DsHostConfiguration } from './DsHostConfiguration.js'
|
|
8
|
+
import { FleetArtifactsSampleRules } from './FleetArtifactsSampleRules.js'
|
|
9
|
+
import { ImageDeploymentProfile } from './ImageDeploymentProfile.js'
|
|
10
|
+
import { RegionConfig } from './RegionConfig.js'
|
|
11
|
+
|
|
12
|
+
export const FleetGetResponse = z.object({
|
|
13
|
+
active: z.boolean(),
|
|
14
|
+
claimKeys: z.array(z.string()),
|
|
15
|
+
dsHostConfiguration: DsHostConfiguration,
|
|
16
|
+
id: z.string(),
|
|
17
|
+
imageDeploymentProfile: ImageDeploymentProfile,
|
|
18
|
+
isLocal: z.boolean(),
|
|
19
|
+
name: z.string(),
|
|
20
|
+
onDemand: z.boolean(),
|
|
21
|
+
regions: z.array(RegionConfig),
|
|
22
|
+
samplingRules: FleetArtifactsSampleRules
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
export interface FleetGetResponse extends z.TypeOf<typeof FleetGetResponse> {}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { FleetRegionalServerCounts } from './FleetRegionalServerCounts.js'
|
|
8
|
+
|
|
9
|
+
export const FleetListItemResponse = z.object({
|
|
10
|
+
active: z.boolean(),
|
|
11
|
+
counts: z.array(FleetRegionalServerCounts),
|
|
12
|
+
id: z.string(),
|
|
13
|
+
image: z.string(),
|
|
14
|
+
isLocal: z.boolean(),
|
|
15
|
+
name: z.string(),
|
|
16
|
+
onDemand: z.boolean(),
|
|
17
|
+
regions: z.array(z.string())
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
export interface FleetListItemResponse extends z.TypeOf<typeof FleetListItemResponse> {}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { FleetListItemResponse } from './FleetListItemResponse.js'
|
|
8
|
+
|
|
9
|
+
export const FleetListResponse = z.object({ fleets: z.array(FleetListItemResponse) })
|
|
10
|
+
|
|
11
|
+
export interface FleetListResponse extends z.TypeOf<typeof FleetListResponse> {}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { DsHostConfiguration } from './DsHostConfiguration.js'
|
|
8
|
+
import { FleetArtifactsSampleRules } from './FleetArtifactsSampleRules.js'
|
|
9
|
+
import { ImageDeploymentProfile } from './ImageDeploymentProfile.js'
|
|
10
|
+
import { RegionConfig } from './RegionConfig.js'
|
|
11
|
+
|
|
12
|
+
export const FleetParameters = z.object({
|
|
13
|
+
active: z.boolean(),
|
|
14
|
+
claimKeys: z.array(z.string()).nullish(),
|
|
15
|
+
dsHostConfiguration: DsHostConfiguration,
|
|
16
|
+
imageDeploymentProfile: ImageDeploymentProfile,
|
|
17
|
+
name: z.string(),
|
|
18
|
+
onDemand: z.boolean(),
|
|
19
|
+
regions: z.array(RegionConfig),
|
|
20
|
+
samplingRules: FleetArtifactsSampleRules.nullish()
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
export interface FleetParameters extends z.TypeOf<typeof FleetParameters> {}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const FleetRegionalServerCounts = z.object({
|
|
9
|
+
claimedServerCount: z.number().int(),
|
|
10
|
+
readyServerCount: z.number().int(),
|
|
11
|
+
region: z.string(),
|
|
12
|
+
runningVmCount: z.number().int(),
|
|
13
|
+
targetDsCount: z.number().int(),
|
|
14
|
+
targetVmCount: z.number().int()
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
export interface FleetRegionalServerCounts extends z.TypeOf<typeof FleetRegionalServerCounts> {}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { Time } from './Time.js'
|
|
8
|
+
|
|
9
|
+
export const FleetServerConnectionInfoResponse = z.object({
|
|
10
|
+
expiresAt: Time,
|
|
11
|
+
host: z.string(),
|
|
12
|
+
logstreamPort: z.number().int(),
|
|
13
|
+
secret: z.string()
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
export interface FleetServerConnectionInfoResponse extends z.TypeOf<typeof FleetServerConnectionInfoResponse> {}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { Time } from './Time.js'
|
|
8
|
+
|
|
9
|
+
export const FleetServerHistoryEventResponse = z.object({
|
|
10
|
+
createdAt: Time,
|
|
11
|
+
exitCode: z.number().int(),
|
|
12
|
+
fleetId: z.string(),
|
|
13
|
+
newState: z.string(),
|
|
14
|
+
oldState: z.string(),
|
|
15
|
+
reason: z.string(),
|
|
16
|
+
serverId: z.string()
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
export interface FleetServerHistoryEventResponse extends z.TypeOf<typeof FleetServerHistoryEventResponse> {}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { FleetServerHistoryEventResponse } from './FleetServerHistoryEventResponse.js'
|
|
8
|
+
|
|
9
|
+
export const FleetServerHistoryResponse = z.object({ events: z.array(FleetServerHistoryEventResponse) })
|
|
10
|
+
|
|
11
|
+
export interface FleetServerHistoryResponse extends z.TypeOf<typeof FleetServerHistoryResponse> {}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { PortConfiguration } from './PortConfiguration.js'
|
|
8
|
+
|
|
9
|
+
export const FleetServerInfoResponse = z.object({
|
|
10
|
+
createdAt: z.string(),
|
|
11
|
+
fleetId: z.string(),
|
|
12
|
+
fleetName: z.string(),
|
|
13
|
+
imageCmd: z.string(),
|
|
14
|
+
imageId: z.string(),
|
|
15
|
+
instanceType: z.string(),
|
|
16
|
+
ipAddress: z.string(),
|
|
17
|
+
portConfiguration: z.array(PortConfiguration),
|
|
18
|
+
ports: z.record(z.number().int()),
|
|
19
|
+
region: z.string(),
|
|
20
|
+
serverConfiguration: z.string(),
|
|
21
|
+
serverId: z.string(),
|
|
22
|
+
sessionId: z.string(),
|
|
23
|
+
status: z.string()
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
export interface FleetServerInfoResponse extends z.TypeOf<typeof FleetServerInfoResponse> {}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { FleetRegionalServerCounts } from './FleetRegionalServerCounts.js'
|
|
8
|
+
import { FleetServerInfoResponse } from './FleetServerInfoResponse.js'
|
|
9
|
+
import { PagingInfo } from './PagingInfo.js'
|
|
10
|
+
|
|
11
|
+
export const FleetServersResponse = z.object({
|
|
12
|
+
paging: PagingInfo,
|
|
13
|
+
regions: z.array(FleetRegionalServerCounts),
|
|
14
|
+
servers: z.array(FleetServerInfoResponse)
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
export interface FleetServersResponse extends z.TypeOf<typeof FleetServersResponse> {}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { PortConfiguration } from './PortConfiguration.js'
|
|
8
|
+
import { Timeout } from './Timeout.js'
|
|
9
|
+
|
|
10
|
+
export const ImageDeploymentProfile = z.object({
|
|
11
|
+
commandLine: z.string(),
|
|
12
|
+
imageId: z.string(),
|
|
13
|
+
portConfigurations: z.array(PortConfiguration),
|
|
14
|
+
timeout: Timeout
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
export interface ImageDeploymentProfile extends z.TypeOf<typeof ImageDeploymentProfile> {}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { ReferencingFleet } from './ReferencingFleet.js'
|
|
8
|
+
import { Time } from './Time.js'
|
|
9
|
+
|
|
10
|
+
export const ImageDetails = z.object({
|
|
11
|
+
createdAt: Time,
|
|
12
|
+
deleteAt: Time,
|
|
13
|
+
executable: z.string(),
|
|
14
|
+
id: z.string(),
|
|
15
|
+
isProtected: z.boolean(),
|
|
16
|
+
name: z.string(),
|
|
17
|
+
referencingFleets: z.array(ReferencingFleet),
|
|
18
|
+
sizeInByte: z.number().int(),
|
|
19
|
+
status: z.string(),
|
|
20
|
+
tags: z.array(z.string()),
|
|
21
|
+
uploadedAt: Time,
|
|
22
|
+
uploadedBy: z.string()
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
export interface ImageDetails extends z.TypeOf<typeof ImageDetails> {}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { ImageListItem } from './ImageListItem.js'
|
|
8
|
+
|
|
9
|
+
export const ImageList = z.object({ images: z.array(ImageListItem) })
|
|
10
|
+
|
|
11
|
+
export interface ImageList extends z.TypeOf<typeof ImageList> {}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { Time } from './Time.js'
|
|
8
|
+
|
|
9
|
+
export const ImageListItem = z.object({
|
|
10
|
+
createdAt: Time,
|
|
11
|
+
deleteAt: Time,
|
|
12
|
+
executable: z.string(),
|
|
13
|
+
id: z.string(),
|
|
14
|
+
isProtected: z.boolean(),
|
|
15
|
+
name: z.string(),
|
|
16
|
+
referencingFleets: z.number().int(),
|
|
17
|
+
sizeInByte: z.number().int(),
|
|
18
|
+
status: z.string(),
|
|
19
|
+
tags: z.array(z.string()),
|
|
20
|
+
uploadedAt: Time,
|
|
21
|
+
uploadedBy: z.string()
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
export interface ImageListItem extends z.TypeOf<typeof ImageListItem> {}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const ImageStorage = z.object({
|
|
9
|
+
currentMarkedForDeletionBytes: z.number().int(),
|
|
10
|
+
currentUsageBytes: z.number().int(),
|
|
11
|
+
quotaBytes: z.number().int()
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
export interface ImageStorage extends z.TypeOf<typeof ImageStorage> {}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const ImageUpdate = z.object({
|
|
9
|
+
addedTags: z.array(z.string()),
|
|
10
|
+
isProtected: z.boolean(),
|
|
11
|
+
name: z.string(),
|
|
12
|
+
removedTags: z.array(z.string())
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
export interface ImageUpdate extends z.TypeOf<typeof ImageUpdate> {}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const InstanceTypeDescriptionResponse = z.object({
|
|
9
|
+
description: z.string(),
|
|
10
|
+
id: z.string(),
|
|
11
|
+
memoryGiB: z.number(),
|
|
12
|
+
minSpeed: z.string(),
|
|
13
|
+
name: z.string(),
|
|
14
|
+
virtualCpu: z.number().int()
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
export interface InstanceTypeDescriptionResponse extends z.TypeOf<typeof InstanceTypeDescriptionResponse> {}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { Zone } from './Zone.js'
|
|
8
|
+
import { ZoneTrans } from './ZoneTrans.js'
|
|
9
|
+
|
|
10
|
+
export const Location = z.object({
|
|
11
|
+
cacheEnd: z.number().int(),
|
|
12
|
+
cacheStart: z.number().int(),
|
|
13
|
+
cacheZone: Zone,
|
|
14
|
+
extend: z.string(),
|
|
15
|
+
name: z.string(),
|
|
16
|
+
tx: z.array(ZoneTrans),
|
|
17
|
+
zone: z.array(Zone)
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
export interface Location extends z.TypeOf<typeof Location> {}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const PagingInfo = z.object({
|
|
9
|
+
currentPage: z.number().int(),
|
|
10
|
+
hasNext: z.boolean(),
|
|
11
|
+
hasPages: z.boolean(),
|
|
12
|
+
hasPrev: z.boolean(),
|
|
13
|
+
next: z.string(),
|
|
14
|
+
pageNums: z.array(z.number().int()),
|
|
15
|
+
previous: z.string(),
|
|
16
|
+
total: z.number().int()
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
export interface PagingInfo extends z.TypeOf<typeof PagingInfo> {}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const PortConfiguration = z.object({ name: z.string(), protocol: z.string() })
|
|
9
|
+
|
|
10
|
+
export interface PortConfiguration extends z.TypeOf<typeof PortConfiguration> {}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { QoSServer } from './QoSServer.js'
|
|
8
|
+
|
|
9
|
+
export const QoSEndpointResponse = z.object({ servers: z.array(QoSServer) })
|
|
10
|
+
|
|
11
|
+
export interface QoSEndpointResponse extends z.TypeOf<typeof QoSEndpointResponse> {}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
import { Time } from './Time.js'
|
|
8
|
+
|
|
9
|
+
export const QoSServer = z.object({
|
|
10
|
+
alias: z.string(),
|
|
11
|
+
ip: z.string(),
|
|
12
|
+
last_update: Time,
|
|
13
|
+
port: z.number().int(),
|
|
14
|
+
region: z.string(),
|
|
15
|
+
status: z.string()
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
export interface QoSServer extends z.TypeOf<typeof QoSServer> {}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const ReferencingFleet = z.object({ environment: z.string(), fleetId: z.string(), namespace: z.string() })
|
|
9
|
+
|
|
10
|
+
export interface ReferencingFleet extends z.TypeOf<typeof ReferencingFleet> {}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const RegionConfig = z.object({
|
|
9
|
+
bufferSize: z.number().int(),
|
|
10
|
+
dynamicBuffer: z.boolean(),
|
|
11
|
+
maxServerCount: z.number().int(),
|
|
12
|
+
minServerCount: z.number().int(),
|
|
13
|
+
region: z.string()
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
export interface RegionConfig extends z.TypeOf<typeof RegionConfig> {}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const Time = z.any()
|
|
9
|
+
|
|
10
|
+
export interface Time extends z.TypeOf<typeof Time> {}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const Timeout = z.object({
|
|
9
|
+
creation: z.number().int(),
|
|
10
|
+
drain: z.number().int(),
|
|
11
|
+
session: z.number().int(),
|
|
12
|
+
unresponsive: z.number().int()
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
export interface Timeout extends z.TypeOf<typeof Timeout> {}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const UpdateServerRequest = z.object({ status: z.string() })
|
|
9
|
+
|
|
10
|
+
export interface UpdateServerRequest extends z.TypeOf<typeof UpdateServerRequest> {}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const Zone = z.object({ isDST: z.boolean(), name: z.string(), offset: z.number().int() })
|
|
9
|
+
|
|
10
|
+
export interface Zone extends z.TypeOf<typeof Zone> {}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
import { z } from 'zod'
|
|
7
|
+
|
|
8
|
+
export const ZoneTrans = z.object({ index: z.number().int(), isstd: z.boolean(), isutc: z.boolean(), when: z.number().int() })
|
|
9
|
+
|
|
10
|
+
export interface ZoneTrans extends z.TypeOf<typeof ZoneTrans> {}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* AUTO GENERATED
|
|
8
|
+
*/
|
|
9
|
+
/* eslint-disable camelcase */
|
|
10
|
+
// @ts-ignore -> ts-expect-error TS6133
|
|
11
|
+
import { AccelByteSDK, ApiUtils, Network, SdkSetConfigParam } from '@accelbyte/sdk'
|
|
12
|
+
import { AxiosResponse } from 'axios'
|
|
13
|
+
import { AccountResponse } from '../generated-definitions/AccountResponse.js'
|
|
14
|
+
import { Account$ } from './endpoints/Account$.js'
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export function AccountApi(sdk: AccelByteSDK, args?: SdkSetConfigParam) {
|
|
18
|
+
const sdkAssembly = sdk.assembly()
|
|
19
|
+
|
|
20
|
+
const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace
|
|
21
|
+
const requestConfig = ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosConfig.request, args?.axiosConfig?.request)
|
|
22
|
+
const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? []
|
|
23
|
+
const useSchemaValidation = sdkAssembly.coreConfig.useSchemaValidation
|
|
24
|
+
const axiosInstance = Network.create(requestConfig)
|
|
25
|
+
|
|
26
|
+
for (const interceptor of interceptors) {
|
|
27
|
+
if(interceptor.type === 'request') {
|
|
28
|
+
axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if(interceptor.type === 'response') {
|
|
32
|
+
axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError)
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Required Permission: NAMESPACE:{namespace}:AMS:ACCOUNT [READ]
|
|
40
|
+
*/
|
|
41
|
+
async function getAccount(): Promise<AxiosResponse<AccountResponse>> {
|
|
42
|
+
const $ = new Account$(axiosInstance, namespace, useSchemaValidation)
|
|
43
|
+
const resp = await $.getAccount()
|
|
44
|
+
if (resp.error) throw resp.error
|
|
45
|
+
return resp.response
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
return {
|
|
50
|
+
getAccount,
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2022-2024 AccelByte Inc. All Rights Reserved
|
|
3
|
+
* This is licensed software from AccelByte Inc, for limitations
|
|
4
|
+
* and restrictions contact your company contract manager.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* AUTO GENERATED
|
|
8
|
+
*/
|
|
9
|
+
/* eslint-disable camelcase */
|
|
10
|
+
// @ts-ignore -> ts-expect-error TS6133
|
|
11
|
+
import { AccelByteSDK, ApiUtils, Network, SdkSetConfigParam } from '@accelbyte/sdk'
|
|
12
|
+
import { AxiosResponse } from 'axios'
|
|
13
|
+
|
|
14
|
+
import { AmsInfo$ } from './endpoints/AmsInfo$.js'
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
export function AmsInfoApi(sdk: AccelByteSDK, args?: SdkSetConfigParam) {
|
|
18
|
+
const sdkAssembly = sdk.assembly()
|
|
19
|
+
|
|
20
|
+
const namespace = args?.coreConfig?.namespace ?? sdkAssembly.coreConfig.namespace
|
|
21
|
+
const requestConfig = ApiUtils.mergeAxiosConfigs(sdkAssembly.axiosConfig.request, args?.axiosConfig?.request)
|
|
22
|
+
const interceptors = args?.axiosConfig?.interceptors ?? sdkAssembly.axiosConfig.interceptors ?? []
|
|
23
|
+
const useSchemaValidation = sdkAssembly.coreConfig.useSchemaValidation
|
|
24
|
+
const axiosInstance = Network.create(requestConfig)
|
|
25
|
+
|
|
26
|
+
for (const interceptor of interceptors) {
|
|
27
|
+
if(interceptor.type === 'request') {
|
|
28
|
+
axiosInstance.interceptors.request.use(interceptor?.onRequest, interceptor.onError)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if(interceptor.type === 'response') {
|
|
32
|
+
axiosInstance.interceptors.response.use(interceptor?.onSuccess, interceptor.onError)
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
async function getUploadUrl(): Promise<AxiosResponse<unknown>> {
|
|
39
|
+
const $ = new AmsInfo$(axiosInstance, namespace, useSchemaValidation)
|
|
40
|
+
const resp = await $.getUploadUrl()
|
|
41
|
+
if (resp.error) throw resp.error
|
|
42
|
+
return resp.response
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
return {
|
|
47
|
+
getUploadUrl,
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|