From ff962a166e3052f13303a9f94524f5a6d40a0c23 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Sat, 27 Dec 2025 10:02:16 -0300 Subject: [PATCH 1/5] Release v1.3.0 --- .openapi-generator/FILES | 9 +- package.json | 2 +- scripts/generate.ps1 | 2 +- src/apis/TribufuGeneratedApi.ts | 483 +++++++----------- src/models/Account.ts | 2 +- src/models/Application.ts | 4 +- src/models/ApplicationType.ts | 2 +- src/models/AuthorizeRequest.ts | 2 +- src/models/Client.ts | 18 +- src/models/ClientInfo.ts | 2 +- src/models/ClientType.ts | 2 +- src/models/CodeChallengeMethod.ts | 2 +- src/models/CodeResponse.ts | 2 +- src/models/CreateUser.ts | 2 +- src/models/CryptoViewModel.ts | 2 +- src/models/Game.ts | 4 +- src/models/GameServer.ts | 2 +- src/models/GameServerCluster.ts | 2 +- src/models/GameServerQuery.ts | 2 +- src/models/GameServerStatus.ts | 2 +- src/models/GrantType.ts | 2 +- src/models/Group.ts | 7 +- .../{GroupGame.ts => GroupApplication.ts} | 36 +- src/models/GroupMember.ts | 2 +- src/models/GroupRank.ts | 2 +- src/models/HashViewModel.ts | 2 +- src/models/IntrospectRequest.ts | 2 +- src/models/IntrospectResponse.ts | 2 +- src/models/IpAddress.ts | 16 +- src/models/LeaderboardItem.ts | 2 +- src/models/LeaderboardOrder.ts | 2 +- src/models/LoginProvider.ts | 2 +- src/models/LoginRequest.ts | 73 --- src/models/LoginResponse.ts | 97 ---- src/models/Package.ts | 10 +- src/models/PackageRelease.ts | 16 +- src/models/Product.ts | 155 ++++++ .../{SubscriptionPrice.ts => ProductPrice.ts} | 33 +- src/models/ProductType.ts | 53 ++ src/models/Profile.ts | 2 +- src/models/ProfileGame.ts | 2 +- src/models/ProfileGroup.ts | 2 +- src/models/RefreshRequest.ts | 65 --- src/models/RegisterRequest.ts | 91 ---- src/models/ResponseType.ts | 2 +- src/models/RevokeRequest.ts | 2 +- src/models/Search.ts | 2 +- src/models/SearchRequest.ts | 99 ---- src/models/SearchType.ts | 2 +- src/models/ServerMetrics.ts | 2 +- src/models/ServerStatus.ts | 54 -- src/models/{ModelFile.ts => StorageFile.ts} | 54 +- src/models/Subscription.ts | 122 ----- src/models/TokenHintType.ts | 2 +- src/models/TokenRequest.ts | 2 +- src/models/TokenResponse.ts | 2 +- src/models/TokenType.ts | 2 +- src/models/UpdateProfile.ts | 2 +- src/models/UserInfo.ts | 2 +- src/models/UserType.ts | 2 +- src/models/index.ts | 9 +- src/runtime.ts | 2 +- 62 files changed, 545 insertions(+), 1043 deletions(-) rename src/models/{GroupGame.ts => GroupApplication.ts} (71%) delete mode 100644 src/models/LoginRequest.ts delete mode 100644 src/models/LoginResponse.ts create mode 100644 src/models/Product.ts rename src/models/{SubscriptionPrice.ts => ProductPrice.ts} (51%) create mode 100644 src/models/ProductType.ts delete mode 100644 src/models/RefreshRequest.ts delete mode 100644 src/models/RegisterRequest.ts delete mode 100644 src/models/SearchRequest.ts delete mode 100644 src/models/ServerStatus.ts rename src/models/{ModelFile.ts => StorageFile.ts} (71%) delete mode 100644 src/models/Subscription.ts diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 4246903..39fd042 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -18,7 +18,7 @@ src/models/GameServerQuery.ts src/models/GameServerStatus.ts src/models/GrantType.ts src/models/Group.ts -src/models/GroupGame.ts +src/models/GroupApplication.ts src/models/GroupMember.ts src/models/GroupRank.ts src/models/HashViewModel.ts @@ -28,9 +28,11 @@ src/models/IpAddress.ts src/models/LeaderboardItem.ts src/models/LeaderboardOrder.ts src/models/LoginProvider.ts -src/models/ModelFile.ts src/models/Package.ts src/models/PackageRelease.ts +src/models/Product.ts +src/models/ProductPrice.ts +src/models/ProductType.ts src/models/Profile.ts src/models/ProfileGame.ts src/models/ProfileGroup.ts @@ -39,8 +41,7 @@ src/models/RevokeRequest.ts src/models/Search.ts src/models/SearchType.ts src/models/ServerMetrics.ts -src/models/Subscription.ts -src/models/SubscriptionPrice.ts +src/models/StorageFile.ts src/models/TokenHintType.ts src/models/TokenRequest.ts src/models/TokenResponse.ts diff --git a/package.json b/package.json index c511f50..6d98383 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tribufu", - "version": "1.2.0", + "version": "1.3.0", "description": "Tribufu JS SDK", "repository": "https://github.com/tribufu/tribufu-js", "author": "Tribufu ", diff --git a/scripts/generate.ps1 b/scripts/generate.ps1 index 41628a4..900ec0d 100644 --- a/scripts/generate.ps1 +++ b/scripts/generate.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/env pwsh java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate ` - -i http://localhost:5000/openapi.json ` + -i https://api.tribufu.com/openapi.json ` -g typescript-fetch ` -o . ` --global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false ` diff --git a/src/apis/TribufuGeneratedApi.ts b/src/apis/TribufuGeneratedApi.ts index b3eda9d..3c4503d 100644 --- a/src/apis/TribufuGeneratedApi.ts +++ b/src/apis/TribufuGeneratedApi.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ import type { GameServerCluster, GameServerQuery, Group, - GroupGame, + GroupApplication, GroupMember, HashViewModel, IntrospectRequest, @@ -36,13 +36,13 @@ import type { LeaderboardItem, LeaderboardOrder, Package, + Product, Profile, ProfileGame, ProfileGroup, RevokeRequest, Search, ServerMetrics, - Subscription, TokenRequest, TokenResponse, UpdateProfile, @@ -73,8 +73,8 @@ import { GameServerQueryToJSON, GroupFromJSON, GroupToJSON, - GroupGameFromJSON, - GroupGameToJSON, + GroupApplicationFromJSON, + GroupApplicationToJSON, GroupMemberFromJSON, GroupMemberToJSON, HashViewModelFromJSON, @@ -91,6 +91,8 @@ import { LeaderboardOrderToJSON, PackageFromJSON, PackageToJSON, + ProductFromJSON, + ProductToJSON, ProfileFromJSON, ProfileToJSON, ProfileGameFromJSON, @@ -103,8 +105,6 @@ import { SearchToJSON, ServerMetricsFromJSON, ServerMetricsToJSON, - SubscriptionFromJSON, - SubscriptionToJSON, TokenRequestFromJSON, TokenRequestToJSON, TokenResponseFromJSON, @@ -167,14 +167,6 @@ export interface CreateGroupRequest { body?: any | null; } -export interface CreatePackageRequest { - name: string; - image: Blob; - files: Array; - version: string; - description?: string; -} - export interface CreateTokenRequest { tokenRequest?: TokenRequest; } @@ -387,11 +379,11 @@ export interface GetPackagesRequest { limit?: number; } -export interface GetSubscriptionByIdRequest { +export interface GetProductByIdRequest { id: string; } -export interface GetSubscriptionsRequest { +export interface GetProductsRequest { page?: number; limit?: number; } @@ -458,11 +450,11 @@ export interface GetUserProfilesV1Request { limit?: number; } -export interface GetUserPunishmentsRequest { +export interface GetUserSanctionsRequest { id: string; } -export interface GetUserPunishmentsV1Request { +export interface GetUserSanctionsV1Request { id: string; } @@ -674,7 +666,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * This endpoint is not available with an api key, only with a bearer token.

🔒 Required permissions: tribufu.community.game.server.claim + * This endpoint is not available with an api key, only with a bearer token.

🔒 Required permissions: tribufu.game.server.claim * Claim a game server. */ async claimGameServerRaw(requestParameters: ClaimGameServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -707,7 +699,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * This endpoint is not available with an api key, only with a bearer token.

🔒 Required permissions: tribufu.community.game.server.claim + * This endpoint is not available with an api key, only with a bearer token.

🔒 Required permissions: tribufu.game.server.claim * Claim a game server. */ async claimGameServer(id: string, body?: any | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -715,7 +707,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * This endpoint is not available with an api key, only with a bearer token.

🔒 Required permissions: tribufu.community.game.server.claim + * This endpoint is not available with an api key, only with a bearer token.

🔒 Required permissions: tribufu.game.server.claim * Claim a game server. * @deprecated */ @@ -749,7 +741,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * This endpoint is not available with an api key, only with a bearer token.

🔒 Required permissions: tribufu.community.game.server.claim + * This endpoint is not available with an api key, only with a bearer token.

🔒 Required permissions: tribufu.game.server.claim * Claim a game server. * @deprecated */ @@ -827,7 +819,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.create + * 🔒 Required permissions: tribufu.game.server.create * Create a new game server. */ async createGameServerRaw(requestParameters: CreateGameServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -853,7 +845,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.create + * 🔒 Required permissions: tribufu.game.server.create * Create a new game server. */ async createGameServer(body?: any | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -861,7 +853,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.create + * 🔒 Required permissions: tribufu.game.server.cluster.create * Create a new game server cluster. */ async createGameServerClusterRaw(requestParameters: CreateGameServerClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -887,7 +879,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.create + * 🔒 Required permissions: tribufu.game.server.cluster.create * Create a new game server cluster. */ async createGameServerCluster(body?: any | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -895,7 +887,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.create + * 🔒 Required permissions: tribufu.game.server.cluster.create * Create a new game server cluster. * @deprecated */ @@ -922,7 +914,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.create + * 🔒 Required permissions: tribufu.game.server.cluster.create * Create a new game server cluster. * @deprecated */ @@ -931,7 +923,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.create + * 🔒 Required permissions: tribufu.game.server.create * Create a new game server. * @deprecated */ @@ -958,7 +950,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.create + * 🔒 Required permissions: tribufu.game.server.create * Create a new game server. * @deprecated */ @@ -1000,107 +992,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { await this.createGroupRaw({ body: body }, initOverrides); } - /** - * 🔒 Required permissions: tribufu.community.package.create - * Create a new package. - */ - async createPackageRaw(requestParameters: CreatePackageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['name'] == null) { - throw new runtime.RequiredError( - 'name', - 'Required parameter "name" was null or undefined when calling createPackage().' - ); - } - - if (requestParameters['image'] == null) { - throw new runtime.RequiredError( - 'image', - 'Required parameter "image" was null or undefined when calling createPackage().' - ); - } - - if (requestParameters['files'] == null) { - throw new runtime.RequiredError( - 'files', - 'Required parameter "files" was null or undefined when calling createPackage().' - ); - } - - if (requestParameters['version'] == null) { - throw new runtime.RequiredError( - 'version', - 'Required parameter "version" was null or undefined when calling createPackage().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - const consumes: runtime.Consume[] = [ - { contentType: 'multipart/form-data' }, - ]; - // @ts-ignore: canConsumeForm may be unused - const canConsumeForm = runtime.canConsumeForm(consumes); - - let formParams: { append(param: string, value: any): any }; - let useForm = false; - // use FormData to transmit files using content-type "multipart/form-data" - useForm = canConsumeForm; - // use FormData to transmit files using content-type "multipart/form-data" - useForm = canConsumeForm; - if (useForm) { - formParams = new FormData(); - } else { - formParams = new URLSearchParams(); - } - - if (requestParameters['name'] != null) { - formParams.append('name', requestParameters['name'] as any); - } - - if (requestParameters['description'] != null) { - formParams.append('description', requestParameters['description'] as any); - } - - if (requestParameters['image'] != null) { - formParams.append('image', requestParameters['image'] as any); - } - - if (requestParameters['files'] != null) { - requestParameters['files'].forEach((element) => { - formParams.append('files', element as any); - }) - } - - if (requestParameters['version'] != null) { - formParams.append('version', requestParameters['version'] as any); - } - - const response = await this.request({ - path: `/v1/packages`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: formParams, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => PackageFromJSON(jsonValue)); - } - - /** - * 🔒 Required permissions: tribufu.community.package.create - * Create a new package. - */ - async createPackage(name: string, image: Blob, files: Array, version: string, description?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.createPackageRaw({ name: name, image: image, files: files, version: version, description: description }, initOverrides); - return await response.value(); - } - /** * Create a new token with grant type. */ @@ -1207,7 +1098,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.delete + * 🔒 Required permissions: tribufu.game.server.delete * Delete a game server. */ async deleteGameServerRaw(requestParameters: DeleteGameServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1237,7 +1128,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.delete + * 🔒 Required permissions: tribufu.game.server.delete * Delete a game server. */ async deleteGameServer(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -1245,7 +1136,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.delete + * 🔒 Required permissions: tribufu.game.server.cluster.delete * Delete a game server cluster. */ async deleteGameServerClusterRaw(requestParameters: DeleteGameServerClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1275,7 +1166,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.delete + * 🔒 Required permissions: tribufu.game.server.cluster.delete * Delete a game server cluster. */ async deleteGameServerCluster(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -1283,7 +1174,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.delete + * 🔒 Required permissions: tribufu.game.server.cluster.delete * Delete a game server cluster. * @deprecated */ @@ -1314,7 +1205,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.delete + * 🔒 Required permissions: tribufu.game.server.cluster.delete * Delete a game server cluster. * @deprecated */ @@ -1323,7 +1214,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.delete + * 🔒 Required permissions: tribufu.game.server.delete * Delete a game server. * @deprecated */ @@ -1354,7 +1245,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.delete + * 🔒 Required permissions: tribufu.game.server.delete * Delete a game server. * @deprecated */ @@ -1599,7 +1490,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { /** * 🔒 Required permissions: tribufu.identity.oauth2.client.get - * Get an oauth2 client by id. + * Get a oauth2 client by id. */ async getClientByIdRaw(requestParameters: GetClientByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -1629,7 +1520,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { /** * 🔒 Required permissions: tribufu.identity.oauth2.client.get - * Get an oauth2 client by id. + * Get a oauth2 client by id. */ async getClientById(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.getClientByIdRaw({ id: id }, initOverrides); @@ -1711,7 +1602,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.geoip.current * Get current ip address location. */ async getCurrentIpAddressRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -1734,7 +1624,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.geoip.current * Get current ip address location. */ async getCurrentIpAddress(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1743,7 +1632,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.get + * 🔒 Required permissions: tribufu.game.get * Get a game by id. */ async getGameByIdRaw(requestParameters: GetGameByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1773,7 +1662,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.get + * 🔒 Required permissions: tribufu.game.get * Get a game by id. */ async getGameById(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -1782,7 +1671,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.get.address + * 🔒 Required permissions: tribufu.game.server.get.address * Get a game server by address and query port. */ async getGameServerByAddressAndQueryPortRaw(requestParameters: GetGameServerByAddressAndQueryPortRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1819,7 +1708,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.get.address + * 🔒 Required permissions: tribufu.game.server.get.address * Get a game server by address and query port. */ async getGameServerByAddressAndQueryPort(address: string, port: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -1828,7 +1717,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.get.address + * 🔒 Required permissions: tribufu.game.server.get.address * Get a game server by address and query port. * @deprecated */ @@ -1866,7 +1755,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.get.address + * 🔒 Required permissions: tribufu.game.server.get.address * Get a game server by address and query port. * @deprecated */ @@ -1876,7 +1765,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.get + * 🔒 Required permissions: tribufu.game.server.get * Get a game server by id. */ async getGameServerByIdRaw(requestParameters: GetGameServerByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1906,7 +1795,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.get + * 🔒 Required permissions: tribufu.game.server.get * Get a game server by id. */ async getGameServerById(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -1915,7 +1804,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.get + * 🔒 Required permissions: tribufu.game.server.get * Get a game server by id. * @deprecated */ @@ -1946,7 +1835,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.get + * 🔒 Required permissions: tribufu.game.server.get * Get a game server by id. * @deprecated */ @@ -1956,7 +1845,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.get + * 🔒 Required permissions: tribufu.game.server.cluster.get * Get a game server cluster by id. */ async getGameServerClusterByIdRaw(requestParameters: GetGameServerClusterByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1986,7 +1875,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.get + * 🔒 Required permissions: tribufu.game.server.cluster.get * Get a game server cluster by id. */ async getGameServerClusterById(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -1995,7 +1884,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.get + * 🔒 Required permissions: tribufu.game.server.cluster.get * Get a game server cluster by id. * @deprecated */ @@ -2026,7 +1915,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.get + * 🔒 Required permissions: tribufu.game.server.cluster.get * Get a game server cluster by id. * @deprecated */ @@ -2036,7 +1925,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.server.list + * 🔒 Required permissions: tribufu.game.server.cluster.server.list * Get a list of game server cluster servers. */ async getGameServerClusterServersRaw(requestParameters: GetGameServerClusterServersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -2074,7 +1963,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.server.list + * 🔒 Required permissions: tribufu.game.server.cluster.server.list * Get a list of game server cluster servers. */ async getGameServerClusterServers(id: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -2083,7 +1972,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.server.list + * 🔒 Required permissions: tribufu.game.server.cluster.server.list * Get a list of game server cluster servers. * @deprecated */ @@ -2122,7 +2011,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.server.list + * 🔒 Required permissions: tribufu.game.server.cluster.server.list * Get a list of game server cluster servers. * @deprecated */ @@ -2132,7 +2021,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.list + * 🔒 Required permissions: tribufu.game.server.cluster.list * Get a list of game server clusters. */ async getGameServerClustersRaw(requestParameters: GetGameServerClustersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -2163,7 +2052,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.list + * 🔒 Required permissions: tribufu.game.server.cluster.list * Get a list of game server clusters. */ async getGameServerClusters(page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -2172,7 +2061,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.list + * 🔒 Required permissions: tribufu.game.server.cluster.list * Get a list of game server clusters. * @deprecated */ @@ -2204,7 +2093,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.list + * 🔒 Required permissions: tribufu.game.server.cluster.list * Get a list of game server clusters. * @deprecated */ @@ -2214,7 +2103,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.queries + * 🔒 Required permissions: tribufu.game.server.queries * Get a game server query history. */ async getGameServerQueriesRaw(requestParameters: GetGameServerQueriesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -2252,7 +2141,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.queries + * 🔒 Required permissions: tribufu.game.server.queries * Get a game server query history. */ async getGameServerQueries(id: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -2261,7 +2150,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.queries + * 🔒 Required permissions: tribufu.game.server.queries * Get a game server query history. * @deprecated */ @@ -2300,7 +2189,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.queries + * 🔒 Required permissions: tribufu.game.server.queries * Get a game server query history. * @deprecated */ @@ -2310,7 +2199,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.list + * 🔒 Required permissions: tribufu.game.server.list * Get a list of game servers. */ async getGameServersRaw(requestParameters: GetGameServersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -2357,7 +2246,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.list + * 🔒 Required permissions: tribufu.game.server.list * Get a list of game servers. */ async getGameServers(address?: string, queryPort?: number, country?: string, gameId?: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -2366,7 +2255,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.list.country + * 🔒 Required permissions: tribufu.game.server.list.country * Get a list of game servers from a country. */ async getGameServersByCountryRaw(requestParameters: GetGameServersByCountryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -2404,7 +2293,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.list.country + * 🔒 Required permissions: tribufu.game.server.list.country * Get a list of game servers from a country. */ async getGameServersByCountry(country: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -2413,7 +2302,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.list.country + * 🔒 Required permissions: tribufu.game.server.list.country * Get a list of game servers from a country. * @deprecated */ @@ -2452,7 +2341,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.list.country + * 🔒 Required permissions: tribufu.game.server.list.country * Get a list of game servers from a country. * @deprecated */ @@ -2462,7 +2351,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.country.list + * 🔒 Required permissions: tribufu.game.server.country.list * Get a list of countries with the number of game servers. */ async getGameServersCountriesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -2485,7 +2374,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.country.list + * 🔒 Required permissions: tribufu.game.server.country.list * Get a list of countries with the number of game servers. */ async getGameServersCountries(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{ [key: string]: number; }> { @@ -2494,7 +2383,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.country.list + * 🔒 Required permissions: tribufu.game.server.country.list * Get a list of countries with the number of game servers. * @deprecated */ @@ -2518,7 +2407,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.country.list + * 🔒 Required permissions: tribufu.game.server.country.list * Get a list of countries with the number of game servers. * @deprecated */ @@ -2528,7 +2417,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.metric.get + * 🔒 Required permissions: tribufu.game.server.metric.get * Get metrics about the tracked game servers. */ async getGameServersMetricsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -2551,7 +2440,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.metric.get + * 🔒 Required permissions: tribufu.game.server.metric.get * Get metrics about the tracked game servers. */ async getGameServersMetrics(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -2560,7 +2449,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.metric.get + * 🔒 Required permissions: tribufu.game.server.metric.get * Get metrics about the tracked game servers. * @deprecated */ @@ -2584,7 +2473,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.metric.get + * 🔒 Required permissions: tribufu.game.server.metric.get * Get metrics about the tracked game servers. * @deprecated */ @@ -2594,7 +2483,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.list + * 🔒 Required permissions: tribufu.game.server.list * Get a list of game servers. * @deprecated */ @@ -2642,7 +2531,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.list + * 🔒 Required permissions: tribufu.game.server.list * Get a list of game servers. * @deprecated */ @@ -2652,7 +2541,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.list + * 🔒 Required permissions: tribufu.game.list * Get a list of games. */ async getGamesRaw(requestParameters: GetGamesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -2683,7 +2572,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.list + * 🔒 Required permissions: tribufu.game.list * Get a list of games. */ async getGames(page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -2812,7 +2701,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { * 🔒 Required permissions: tribufu.community.group.game.list * Get a list of games of a group. */ - async getGroupGamesRaw(requestParameters: GetGroupGamesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async getGroupGamesRaw(requestParameters: GetGroupGamesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { if (requestParameters['id'] == null) { throw new runtime.RequiredError( 'id', @@ -2835,14 +2724,14 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GroupGameFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GroupApplicationFromJSON)); } /** * 🔒 Required permissions: tribufu.community.group.game.list * Get a list of games of a group. */ - async getGroupGames(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async getGroupGames(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.getGroupGamesRaw({ id: id }, initOverrides); return await response.value(); } @@ -2927,7 +2816,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.geoip.address.get * Get a ip address location. */ async getIpAddressRaw(requestParameters: GetIpAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -2957,7 +2845,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.geoip.address.get * Get a ip address location. */ async getIpAddress(address: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -3124,6 +3011,85 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { return await response.value(); } + /** + * 🔒 Required permissions: tribufu.store.product.get + * Get a product by id. + */ + async getProductByIdRaw(requestParameters: GetProductByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling getProductById().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication + } + + const response = await this.request({ + path: `/v1/products/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ProductFromJSON(jsonValue)); + } + + /** + * 🔒 Required permissions: tribufu.store.product.get + * Get a product by id. + */ + async getProductById(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getProductByIdRaw({ id: id }, initOverrides); + return await response.value(); + } + + /** + * 🔒 Required permissions: tribufu.store.product.list + * Get a list of products. + */ + async getProductsRaw(requestParameters: GetProductsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + const queryParameters: any = {}; + + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['limit'] != null) { + queryParameters['limit'] = requestParameters['limit']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication + } + + const response = await this.request({ + path: `/v1/products`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProductFromJSON)); + } + + /** + * 🔒 Required permissions: tribufu.store.product.list + * Get a list of products. + */ + async getProducts(page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getProductsRaw({ page: page, limit: limit }, initOverrides); + return await response.value(); + } + /** * Get the public keys for the client. */ @@ -3153,85 +3119,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { await this.getPublicKeysRaw(initOverrides); } - /** - * 🔒 Required permissions: tribufu.store.subscription.get - * Get a subscription by id. - */ - async getSubscriptionByIdRaw(requestParameters: GetSubscriptionByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling getSubscriptionById().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - const response = await this.request({ - path: `/v1/subscriptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => SubscriptionFromJSON(jsonValue)); - } - - /** - * 🔒 Required permissions: tribufu.store.subscription.get - * Get a subscription by id. - */ - async getSubscriptionById(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getSubscriptionByIdRaw({ id: id }, initOverrides); - return await response.value(); - } - - /** - * 🔒 Required permissions: tribufu.store.subscription.list - * Get a list of subscriptions. - */ - async getSubscriptionsRaw(requestParameters: GetSubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - if (requestParameters['page'] != null) { - queryParameters['page'] = requestParameters['page']; - } - - if (requestParameters['limit'] != null) { - queryParameters['limit'] = requestParameters['limit']; - } - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - - const response = await this.request({ - path: `/v1/subscriptions`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SubscriptionFromJSON)); - } - - /** - * 🔒 Required permissions: tribufu.store.subscription.list - * Get a list of subscriptions. - */ - async getSubscriptions(page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.getSubscriptionsRaw({ page: page, limit: limit }, initOverrides); - return await response.value(); - } - /** * 🔒 Required permissions: tribufu.identity.user.account.list * Get a list of connected accounts of the user. @@ -3866,14 +3753,14 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.profile.punishment.list - * Get a list of punishments the user has received. + * 🔒 Required permissions: tribufu.community.profile.sanction.list + * Get a list of sanctions the user has received. */ - async getUserPunishmentsRaw(requestParameters: GetUserPunishmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async getUserSanctionsRaw(requestParameters: GetUserSanctionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { if (requestParameters['id'] == null) { throw new runtime.RequiredError( 'id', - 'Required parameter "id" was null or undefined when calling getUserPunishments().' + 'Required parameter "id" was null or undefined when calling getUserSanctions().' ); } @@ -3886,7 +3773,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/v1/profiles/{id}/punishments`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: `/v1/profiles/{id}/sanctions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -3896,24 +3783,24 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.profile.punishment.list - * Get a list of punishments the user has received. + * 🔒 Required permissions: tribufu.community.profile.sanction.list + * Get a list of sanctions the user has received. */ - async getUserPunishments(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.getUserPunishmentsRaw({ id: id }, initOverrides); + async getUserSanctions(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getUserSanctionsRaw({ id: id }, initOverrides); return await response.value(); } /** - * 🔒 Required permissions: tribufu.community.profile.punishment.list - * Get a list of punishments the user has received. + * 🔒 Required permissions: tribufu.community.profile.sanction.list + * Get a list of sanctions the user has received. * @deprecated */ - async getUserPunishmentsV1Raw(requestParameters: GetUserPunishmentsV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async getUserSanctionsV1Raw(requestParameters: GetUserSanctionsV1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { if (requestParameters['id'] == null) { throw new runtime.RequiredError( 'id', - 'Required parameter "id" was null or undefined when calling getUserPunishmentsV1().' + 'Required parameter "id" was null or undefined when calling getUserSanctionsV1().' ); } @@ -3926,7 +3813,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/v1/users/{id}/punishments`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: `/v1/users/{id}/sanctions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -3936,12 +3823,12 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.profile.punishment.list - * Get a list of punishments the user has received. + * 🔒 Required permissions: tribufu.community.profile.sanction.list + * Get a list of sanctions the user has received. * @deprecated */ - async getUserPunishmentsV1(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.getUserPunishmentsV1Raw({ id: id }, initOverrides); + async getUserSanctionsV1(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.getUserSanctionsV1Raw({ id: id }, initOverrides); return await response.value(); } @@ -4323,7 +4210,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.update + * 🔒 Required permissions: tribufu.game.server.update * Update a game server. */ async updateGameServerRaw(requestParameters: UpdateGameServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -4356,7 +4243,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.update + * 🔒 Required permissions: tribufu.game.server.update * Update a game server. */ async updateGameServer(id: string, body?: any | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -4364,7 +4251,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.update + * 🔒 Required permissions: tribufu.game.server.cluster.update * Update a game server cluster. */ async updateGameServerClusterRaw(requestParameters: UpdateGameServerClusterRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -4397,7 +4284,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.update + * 🔒 Required permissions: tribufu.game.server.cluster.update * Update a game server cluster. */ async updateGameServerCluster(id: string, body?: any | null, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { @@ -4405,7 +4292,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.update + * 🔒 Required permissions: tribufu.game.server.cluster.update * Update a game server cluster. * @deprecated */ @@ -4439,7 +4326,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.cluster.update + * 🔒 Required permissions: tribufu.game.server.cluster.update * Update a game server cluster. * @deprecated */ @@ -4448,7 +4335,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.update + * 🔒 Required permissions: tribufu.game.server.update * Update a game server. * @deprecated */ @@ -4482,7 +4369,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { } /** - * 🔒 Required permissions: tribufu.community.game.server.update + * 🔒 Required permissions: tribufu.game.server.update * Update a game server. * @deprecated */ diff --git a/src/models/Account.ts b/src/models/Account.ts index 4171347..32aff11 100644 --- a/src/models/Account.ts +++ b/src/models/Account.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Application.ts b/src/models/Application.ts index 8cfd3e0..6e404e3 100644 --- a/src/models/Application.ts +++ b/src/models/Application.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -56,7 +56,7 @@ export interface Application { * @type {string} * @memberof Application */ - organizationId?: string; + organizationId?: string | null; /** * * @type {string} diff --git a/src/models/ApplicationType.ts b/src/models/ApplicationType.ts index acb92d4..96bdf8b 100644 --- a/src/models/ApplicationType.ts +++ b/src/models/ApplicationType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AuthorizeRequest.ts b/src/models/AuthorizeRequest.ts index e80ed5f..01f398a 100644 --- a/src/models/AuthorizeRequest.ts +++ b/src/models/AuthorizeRequest.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Client.ts b/src/models/Client.ts index 51ddcba..4941273 100644 --- a/src/models/Client.ts +++ b/src/models/Client.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -57,12 +57,6 @@ export interface Client { * @memberof Client */ trusted?: boolean; - /** - * - * @type {string} - * @memberof Client - */ - packageId?: string | null; /** * * @type {string} @@ -81,12 +75,6 @@ export interface Client { * @memberof Client */ backgroundUrl?: string | null; - /** - * - * @type {string} - * @memberof Client - */ - customSchema?: string | null; /** * * @type {string} @@ -144,11 +132,9 @@ export function ClientFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cl 'type': json['type'] == null ? undefined : ClientTypeFromJSON(json['type']), 'organizationId': json['organization_id'] == null ? undefined : json['organization_id'], 'trusted': json['trusted'] == null ? undefined : json['trusted'], - 'packageId': json['package_id'] == null ? undefined : json['package_id'], 'websiteUrl': json['website_url'] == null ? undefined : json['website_url'], 'photoUrl': json['photo_url'] == null ? undefined : json['photo_url'], 'backgroundUrl': json['background_url'] == null ? undefined : json['background_url'], - 'customSchema': json['custom_schema'] == null ? undefined : json['custom_schema'], 'redirects': json['redirects'] == null ? undefined : json['redirects'], 'scopes': json['scopes'] == null ? undefined : json['scopes'], 'permissions': json['permissions'] == null ? undefined : json['permissions'], @@ -173,11 +159,9 @@ export function ClientToJSONTyped(value?: Omit | null, ig 'type': ClientTypeToJSON(value['type']), 'organization_id': value['organizationId'], 'trusted': value['trusted'], - 'package_id': value['packageId'], 'website_url': value['websiteUrl'], 'photo_url': value['photoUrl'], 'background_url': value['backgroundUrl'], - 'custom_schema': value['customSchema'], 'redirects': value['redirects'], 'scopes': value['scopes'], 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), diff --git a/src/models/ClientInfo.ts b/src/models/ClientInfo.ts index 7e8de03..7a13979 100644 --- a/src/models/ClientInfo.ts +++ b/src/models/ClientInfo.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ClientType.ts b/src/models/ClientType.ts index 5d9c74a..403f759 100644 --- a/src/models/ClientType.ts +++ b/src/models/ClientType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CodeChallengeMethod.ts b/src/models/CodeChallengeMethod.ts index 424bb38..3915f2c 100644 --- a/src/models/CodeChallengeMethod.ts +++ b/src/models/CodeChallengeMethod.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CodeResponse.ts b/src/models/CodeResponse.ts index ee4bee0..3def9e9 100644 --- a/src/models/CodeResponse.ts +++ b/src/models/CodeResponse.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateUser.ts b/src/models/CreateUser.ts index de0fd92..d8962c8 100644 --- a/src/models/CreateUser.ts +++ b/src/models/CreateUser.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CryptoViewModel.ts b/src/models/CryptoViewModel.ts index 672d271..f125efa 100644 --- a/src/models/CryptoViewModel.ts +++ b/src/models/CryptoViewModel.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Game.ts b/src/models/Game.ts index 28f341d..98dfac6 100644 --- a/src/models/Game.ts +++ b/src/models/Game.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -56,7 +56,7 @@ export interface Game { * @type {string} * @memberof Game */ - organizationId?: string; + organizationId?: string | null; /** * * @type {string} diff --git a/src/models/GameServer.ts b/src/models/GameServer.ts index 7628802..5e6f07a 100644 --- a/src/models/GameServer.ts +++ b/src/models/GameServer.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GameServerCluster.ts b/src/models/GameServerCluster.ts index f81ebc5..655220b 100644 --- a/src/models/GameServerCluster.ts +++ b/src/models/GameServerCluster.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GameServerQuery.ts b/src/models/GameServerQuery.ts index 1e4573a..2239325 100644 --- a/src/models/GameServerQuery.ts +++ b/src/models/GameServerQuery.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GameServerStatus.ts b/src/models/GameServerStatus.ts index 2e95cb0..3183b75 100644 --- a/src/models/GameServerStatus.ts +++ b/src/models/GameServerStatus.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GrantType.ts b/src/models/GrantType.ts index 7cdc36f..75871a0 100644 --- a/src/models/GrantType.ts +++ b/src/models/GrantType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Group.ts b/src/models/Group.ts index 26fa819..3e4614c 100644 --- a/src/models/Group.ts +++ b/src/models/Group.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,7 +42,7 @@ export interface Group { * @type {string} * @memberof Group */ - tag: string | null; + tag?: string | null; /** * * @type {string} @@ -122,7 +122,6 @@ export interface Group { */ export function instanceOfGroup(value: object): value is Group { if (!('name' in value) || value['name'] === undefined) return false; - if (!('tag' in value) || value['tag'] === undefined) return false; return true; } @@ -139,7 +138,7 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro 'id': json['id'] == null ? undefined : json['id'], 'uuid': json['uuid'] == null ? undefined : json['uuid'], 'name': json['name'], - 'tag': json['tag'], + 'tag': json['tag'] == null ? undefined : json['tag'], 'description': json['description'] == null ? undefined : json['description'], 'type': json['type'] == null ? undefined : json['type'], 'privacy': json['privacy'] == null ? undefined : json['privacy'], diff --git a/src/models/GroupGame.ts b/src/models/GroupApplication.ts similarity index 71% rename from src/models/GroupGame.ts rename to src/models/GroupApplication.ts index 158fbcb..876585c 100644 --- a/src/models/GroupGame.ts +++ b/src/models/GroupApplication.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,66 +31,66 @@ import { /** * * @export - * @interface GroupGame + * @interface GroupApplication */ -export interface GroupGame { +export interface GroupApplication { /** * * @type {string} - * @memberof GroupGame + * @memberof GroupApplication */ groupId: string; /** * * @type {Group} - * @memberof GroupGame + * @memberof GroupApplication */ group?: Group; /** * * @type {string} - * @memberof GroupGame + * @memberof GroupApplication */ applicationId?: string; /** * * @type {Application} - * @memberof GroupGame + * @memberof GroupApplication */ application?: Application; /** * * @type {any} - * @memberof GroupGame + * @memberof GroupApplication */ stats?: any | null; /** * * @type {Date} - * @memberof GroupGame + * @memberof GroupApplication */ acquired?: Date; /** * * @type {Date} - * @memberof GroupGame + * @memberof GroupApplication */ lastUsed?: Date | null; } /** - * Check if a given object implements the GroupGame interface. + * Check if a given object implements the GroupApplication interface. */ -export function instanceOfGroupGame(value: object): value is GroupGame { +export function instanceOfGroupApplication(value: object): value is GroupApplication { if (!('groupId' in value) || value['groupId'] === undefined) return false; return true; } -export function GroupGameFromJSON(json: any): GroupGame { - return GroupGameFromJSONTyped(json, false); +export function GroupApplicationFromJSON(json: any): GroupApplication { + return GroupApplicationFromJSONTyped(json, false); } -export function GroupGameFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupGame { +export function GroupApplicationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupApplication { if (json == null) { return json; } @@ -106,11 +106,11 @@ export function GroupGameFromJSONTyped(json: any, ignoreDiscriminator: boolean): }; } -export function GroupGameToJSON(json: any): GroupGame { - return GroupGameToJSONTyped(json, false); +export function GroupApplicationToJSON(json: any): GroupApplication { + return GroupApplicationToJSONTyped(json, false); } -export function GroupGameToJSONTyped(value?: GroupGame | null, ignoreDiscriminator: boolean = false): any { +export function GroupApplicationToJSONTyped(value?: GroupApplication | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/src/models/GroupMember.ts b/src/models/GroupMember.ts index 3429c8f..df993e3 100644 --- a/src/models/GroupMember.ts +++ b/src/models/GroupMember.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GroupRank.ts b/src/models/GroupRank.ts index 4aa4ce1..a7206ab 100644 --- a/src/models/GroupRank.ts +++ b/src/models/GroupRank.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/HashViewModel.ts b/src/models/HashViewModel.ts index aa17a02..0979879 100644 --- a/src/models/HashViewModel.ts +++ b/src/models/HashViewModel.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/IntrospectRequest.ts b/src/models/IntrospectRequest.ts index 6f196aa..18a0959 100644 --- a/src/models/IntrospectRequest.ts +++ b/src/models/IntrospectRequest.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/IntrospectResponse.ts b/src/models/IntrospectResponse.ts index ac18095..7c17e4b 100644 --- a/src/models/IntrospectResponse.ts +++ b/src/models/IntrospectResponse.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/IpAddress.ts b/src/models/IpAddress.ts index b6d0f50..a9bf270 100644 --- a/src/models/IpAddress.ts +++ b/src/models/IpAddress.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -43,6 +43,12 @@ export interface IpAddress { * @memberof IpAddress */ reserved?: boolean; + /** + * + * @type {boolean} + * @memberof IpAddress + */ + banned?: boolean; /** * * @type {string} @@ -72,7 +78,7 @@ export interface IpAddress { * @type {string} * @memberof IpAddress */ - region?: string | null; + province?: string | null; /** * * @type {string} @@ -150,11 +156,12 @@ export function IpAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'version': json['version'] == null ? undefined : json['version'], 'network': json['network'] == null ? undefined : json['network'], 'reserved': json['reserved'] == null ? undefined : json['reserved'], + 'banned': json['banned'] == null ? undefined : json['banned'], 'asn': json['asn'] == null ? undefined : json['asn'], 'isp': json['isp'] == null ? undefined : json['isp'], 'continent': json['continent'] == null ? undefined : json['continent'], 'country': json['country'] == null ? undefined : json['country'], - 'region': json['region'] == null ? undefined : json['region'], + 'province': json['province'] == null ? undefined : json['province'], 'city': json['city'] == null ? undefined : json['city'], 'postalCode': json['postal_code'] == null ? undefined : json['postal_code'], 'callingCode': json['calling_code'] == null ? undefined : json['calling_code'], @@ -182,11 +189,12 @@ export function IpAddressToJSONTyped(value?: IpAddress | null, ignoreDiscriminat 'version': value['version'], 'network': value['network'], 'reserved': value['reserved'], + 'banned': value['banned'], 'asn': value['asn'], 'isp': value['isp'], 'continent': value['continent'], 'country': value['country'], - 'region': value['region'], + 'province': value['province'], 'city': value['city'], 'postal_code': value['postalCode'], 'calling_code': value['callingCode'], diff --git a/src/models/LeaderboardItem.ts b/src/models/LeaderboardItem.ts index f76ada5..ec1a1ed 100644 --- a/src/models/LeaderboardItem.ts +++ b/src/models/LeaderboardItem.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/LeaderboardOrder.ts b/src/models/LeaderboardOrder.ts index e81514d..e6fede4 100644 --- a/src/models/LeaderboardOrder.ts +++ b/src/models/LeaderboardOrder.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/LoginProvider.ts b/src/models/LoginProvider.ts index e0155e4..5901f86 100644 --- a/src/models/LoginProvider.ts +++ b/src/models/LoginProvider.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/LoginRequest.ts b/src/models/LoginRequest.ts deleted file mode 100644 index f31d6fb..0000000 --- a/src/models/LoginRequest.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Tribufu API - * REST API to access Tribufu services. - * - * The version of the OpenAPI document: 1.1.0 - * Contact: contact@tribufu.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface LoginRequest - */ -export interface LoginRequest { - /** - * - * @type {string} - * @memberof LoginRequest - */ - login?: string | null; - /** - * - * @type {string} - * @memberof LoginRequest - */ - password?: string | null; -} - -/** - * Check if a given object implements the LoginRequest interface. - */ -export function instanceOfLoginRequest(value: object): value is LoginRequest { - return true; -} - -export function LoginRequestFromJSON(json: any): LoginRequest { - return LoginRequestFromJSONTyped(json, false); -} - -export function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest { - if (json == null) { - return json; - } - return { - - 'login': json['login'] == null ? undefined : json['login'], - 'password': json['password'] == null ? undefined : json['password'], - }; -} - -export function LoginRequestToJSON(json: any): LoginRequest { - return LoginRequestToJSONTyped(json, false); -} - -export function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'login': value['login'], - 'password': value['password'], - }; -} - diff --git a/src/models/LoginResponse.ts b/src/models/LoginResponse.ts deleted file mode 100644 index 8df74b8..0000000 --- a/src/models/LoginResponse.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Tribufu API - * REST API to access Tribufu services. - * - * The version of the OpenAPI document: 1.1.0 - * Contact: contact@tribufu.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { UserInfo } from './UserInfo'; -import { - UserInfoFromJSON, - UserInfoFromJSONTyped, - UserInfoToJSON, - UserInfoToJSONTyped, -} from './UserInfo'; - -/** - * - * @export - * @interface LoginResponse - */ -export interface LoginResponse { - /** - * - * @type {UserInfo} - * @memberof LoginResponse - */ - user?: UserInfo; - /** - * - * @type {string} - * @memberof LoginResponse - */ - accessToken?: string | null; - /** - * - * @type {string} - * @memberof LoginResponse - */ - refreshToken?: string | null; - /** - * - * @type {number} - * @memberof LoginResponse - */ - expiresIn?: number; -} - -/** - * Check if a given object implements the LoginResponse interface. - */ -export function instanceOfLoginResponse(value: object): value is LoginResponse { - return true; -} - -export function LoginResponseFromJSON(json: any): LoginResponse { - return LoginResponseFromJSONTyped(json, false); -} - -export function LoginResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginResponse { - if (json == null) { - return json; - } - return { - - 'user': json['user'] == null ? undefined : UserInfoFromJSON(json['user']), - 'accessToken': json['access_token'] == null ? undefined : json['access_token'], - 'refreshToken': json['refresh_token'] == null ? undefined : json['refresh_token'], - 'expiresIn': json['expires_in'] == null ? undefined : json['expires_in'], - }; -} - -export function LoginResponseToJSON(json: any): LoginResponse { - return LoginResponseToJSONTyped(json, false); -} - -export function LoginResponseToJSONTyped(value?: LoginResponse | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'user': UserInfoToJSON(value['user']), - 'access_token': value['accessToken'], - 'refresh_token': value['refreshToken'], - 'expires_in': value['expiresIn'], - }; -} - diff --git a/src/models/Package.ts b/src/models/Package.ts index 33c9894..eaebc87 100644 --- a/src/models/Package.ts +++ b/src/models/Package.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -63,6 +63,12 @@ export interface Package { * @memberof Package */ applicationId?: string | null; + /** + * + * @type {string} + * @memberof Package + */ + categoryId?: string | null; /** * * @type {number} @@ -120,6 +126,7 @@ export function PackageFromJSONTyped(json: any, ignoreDiscriminator: boolean): P 'authorId': json['author_id'] == null ? undefined : json['author_id'], 'imageUrl': json['image_url'], 'applicationId': json['application_id'] == null ? undefined : json['application_id'], + 'categoryId': json['category_id'] == null ? undefined : json['category_id'], 'downloadCount': json['download_count'] == null ? undefined : json['download_count'], 'lastDownload': json['last_download'] == null ? undefined : (new Date(json['last_download'])), 'releases': json['releases'] == null ? undefined : ((json['releases'] as Array).map(PackageReleaseFromJSON)), @@ -145,6 +152,7 @@ export function PackageToJSONTyped(value?: Package | null, ignoreDiscriminator: 'author_id': value['authorId'], 'image_url': value['imageUrl'], 'application_id': value['applicationId'], + 'category_id': value['categoryId'], 'download_count': value['downloadCount'], 'last_download': value['lastDownload'] == null ? undefined : ((value['lastDownload'] as any).toISOString()), 'releases': value['releases'] == null ? undefined : ((value['releases'] as Array).map(PackageReleaseToJSON)), diff --git a/src/models/PackageRelease.ts b/src/models/PackageRelease.ts index acf3c1d..a218d22 100644 --- a/src/models/PackageRelease.ts +++ b/src/models/PackageRelease.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,6 +13,14 @@ */ import { mapValues } from '../runtime'; +import type { StorageFile } from './StorageFile'; +import { + StorageFileFromJSON, + StorageFileFromJSONTyped, + StorageFileToJSON, + StorageFileToJSONTyped, +} from './StorageFile'; + /** * * @export @@ -45,10 +53,10 @@ export interface PackageRelease { notes?: string | null; /** * - * @type {Array} + * @type {Array} * @memberof PackageRelease */ - readonly files?: Array | null; + readonly files?: Array | null; /** * * @type {Date} @@ -85,7 +93,7 @@ export function PackageReleaseFromJSONTyped(json: any, ignoreDiscriminator: bool 'version': json['version'], 'packageId': json['package_id'] == null ? undefined : json['package_id'], 'notes': json['notes'] == null ? undefined : json['notes'], - 'files': json['files'] == null ? undefined : json['files'], + 'files': json['files'] == null ? undefined : ((json['files'] as Array).map(StorageFileFromJSON)), 'created': json['created'] == null ? undefined : (new Date(json['created'])), 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), }; diff --git a/src/models/Product.ts b/src/models/Product.ts new file mode 100644 index 0000000..78f5ce1 --- /dev/null +++ b/src/models/Product.ts @@ -0,0 +1,155 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Tribufu API + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: contact@tribufu.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ProductType } from './ProductType'; +import { + ProductTypeFromJSON, + ProductTypeFromJSONTyped, + ProductTypeToJSON, + ProductTypeToJSONTyped, +} from './ProductType'; +import type { ProductPrice } from './ProductPrice'; +import { + ProductPriceFromJSON, + ProductPriceFromJSONTyped, + ProductPriceToJSON, + ProductPriceToJSONTyped, +} from './ProductPrice'; + +/** + * + * @export + * @interface Product + */ +export interface Product { + /** + * + * @type {string} + * @memberof Product + */ + id?: string; + /** + * + * @type {string} + * @memberof Product + */ + name: string | null; + /** + * + * @type {string} + * @memberof Product + */ + description?: string | null; + /** + * + * @type {ProductType} + * @memberof Product + */ + type?: ProductType; + /** + * + * @type {string} + * @memberof Product + */ + slug?: string | null; + /** + * + * @type {string} + * @memberof Product + */ + imageUrl?: string | null; + /** + * + * @type {boolean} + * @memberof Product + */ + isPhysical?: boolean; + /** + * + * @type {Array} + * @memberof Product + */ + prices?: Array | null; + /** + * + * @type {Date} + * @memberof Product + */ + created?: Date; + /** + * + * @type {Date} + * @memberof Product + */ + updated?: Date | null; +} + + + +/** + * Check if a given object implements the Product interface. + */ +export function instanceOfProduct(value: object): value is Product { + if (!('name' in value) || value['name'] === undefined) return false; + return true; +} + +export function ProductFromJSON(json: any): Product { + return ProductFromJSONTyped(json, false); +} + +export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): Product { + if (json == null) { + return json; + } + return { + + 'id': json['id'] == null ? undefined : json['id'], + 'name': json['name'], + 'description': json['description'] == null ? undefined : json['description'], + 'type': json['type'] == null ? undefined : ProductTypeFromJSON(json['type']), + 'slug': json['slug'] == null ? undefined : json['slug'], + 'imageUrl': json['image_url'] == null ? undefined : json['image_url'], + 'isPhysical': json['is_physical'] == null ? undefined : json['is_physical'], + 'prices': json['prices'] == null ? undefined : ((json['prices'] as Array).map(ProductPriceFromJSON)), + 'created': json['created'] == null ? undefined : (new Date(json['created'])), + 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), + }; +} + +export function ProductToJSON(json: any): Product { + return ProductToJSONTyped(json, false); +} + +export function ProductToJSONTyped(value?: Product | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'id': value['id'], + 'name': value['name'], + 'description': value['description'], + 'type': ProductTypeToJSON(value['type']), + 'slug': value['slug'], + 'image_url': value['imageUrl'], + 'is_physical': value['isPhysical'], + 'prices': value['prices'] == null ? undefined : ((value['prices'] as Array).map(ProductPriceToJSON)), + 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), + 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), + }; +} + diff --git a/src/models/SubscriptionPrice.ts b/src/models/ProductPrice.ts similarity index 51% rename from src/models/SubscriptionPrice.ts rename to src/models/ProductPrice.ts index 9adff8c..17a305f 100644 --- a/src/models/SubscriptionPrice.ts +++ b/src/models/ProductPrice.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,59 +16,58 @@ import { mapValues } from '../runtime'; /** * * @export - * @interface SubscriptionPrice + * @interface ProductPrice */ -export interface SubscriptionPrice { +export interface ProductPrice { /** * * @type {string} - * @memberof SubscriptionPrice + * @memberof ProductPrice */ currency: string | null; /** * * @type {number} - * @memberof SubscriptionPrice + * @memberof ProductPrice */ - amount: number; + amount?: number; /** * * @type {number} - * @memberof SubscriptionPrice + * @memberof ProductPrice */ renewal?: number | null; } /** - * Check if a given object implements the SubscriptionPrice interface. + * Check if a given object implements the ProductPrice interface. */ -export function instanceOfSubscriptionPrice(value: object): value is SubscriptionPrice { +export function instanceOfProductPrice(value: object): value is ProductPrice { if (!('currency' in value) || value['currency'] === undefined) return false; - if (!('amount' in value) || value['amount'] === undefined) return false; return true; } -export function SubscriptionPriceFromJSON(json: any): SubscriptionPrice { - return SubscriptionPriceFromJSONTyped(json, false); +export function ProductPriceFromJSON(json: any): ProductPrice { + return ProductPriceFromJSONTyped(json, false); } -export function SubscriptionPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionPrice { +export function ProductPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductPrice { if (json == null) { return json; } return { 'currency': json['currency'], - 'amount': json['amount'], + 'amount': json['amount'] == null ? undefined : json['amount'], 'renewal': json['renewal'] == null ? undefined : json['renewal'], }; } -export function SubscriptionPriceToJSON(json: any): SubscriptionPrice { - return SubscriptionPriceToJSONTyped(json, false); +export function ProductPriceToJSON(json: any): ProductPrice { + return ProductPriceToJSONTyped(json, false); } -export function SubscriptionPriceToJSONTyped(value?: SubscriptionPrice | null, ignoreDiscriminator: boolean = false): any { +export function ProductPriceToJSONTyped(value?: ProductPrice | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } diff --git a/src/models/ProductType.ts b/src/models/ProductType.ts new file mode 100644 index 0000000..2c1baeb --- /dev/null +++ b/src/models/ProductType.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Tribufu API + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.3.0 + * Contact: contact@tribufu.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const ProductType = { + Product: 'product', + Subscription: 'subscription' +} as const; +export type ProductType = typeof ProductType[keyof typeof ProductType]; + + +export function instanceOfProductType(value: any): boolean { + for (const key in ProductType) { + if (Object.prototype.hasOwnProperty.call(ProductType, key)) { + if (ProductType[key as keyof typeof ProductType] === value) { + return true; + } + } + } + return false; +} + +export function ProductTypeFromJSON(json: any): ProductType { + return ProductTypeFromJSONTyped(json, false); +} + +export function ProductTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductType { + return json as ProductType; +} + +export function ProductTypeToJSON(value?: ProductType | null): any { + return value as any; +} + +export function ProductTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ProductType { + return value as ProductType; +} + diff --git a/src/models/Profile.ts b/src/models/Profile.ts index bff6a41..d7756d3 100644 --- a/src/models/Profile.ts +++ b/src/models/Profile.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ProfileGame.ts b/src/models/ProfileGame.ts index f1e1314..b200bcf 100644 --- a/src/models/ProfileGame.ts +++ b/src/models/ProfileGame.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ProfileGroup.ts b/src/models/ProfileGroup.ts index 6aecfca..4646c33 100644 --- a/src/models/ProfileGroup.ts +++ b/src/models/ProfileGroup.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/RefreshRequest.ts b/src/models/RefreshRequest.ts deleted file mode 100644 index b9bf712..0000000 --- a/src/models/RefreshRequest.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Tribufu API - * REST API to access Tribufu services. - * - * The version of the OpenAPI document: 1.1.0 - * Contact: contact@tribufu.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface RefreshRequest - */ -export interface RefreshRequest { - /** - * - * @type {string} - * @memberof RefreshRequest - */ - refreshToken?: string | null; -} - -/** - * Check if a given object implements the RefreshRequest interface. - */ -export function instanceOfRefreshRequest(value: object): value is RefreshRequest { - return true; -} - -export function RefreshRequestFromJSON(json: any): RefreshRequest { - return RefreshRequestFromJSONTyped(json, false); -} - -export function RefreshRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefreshRequest { - if (json == null) { - return json; - } - return { - - 'refreshToken': json['refresh_token'] == null ? undefined : json['refresh_token'], - }; -} - -export function RefreshRequestToJSON(json: any): RefreshRequest { - return RefreshRequestToJSONTyped(json, false); -} - -export function RefreshRequestToJSONTyped(value?: RefreshRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'refresh_token': value['refreshToken'], - }; -} - diff --git a/src/models/RegisterRequest.ts b/src/models/RegisterRequest.ts deleted file mode 100644 index d279186..0000000 --- a/src/models/RegisterRequest.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Tribufu API - * REST API to access Tribufu services. - * - * The version of the OpenAPI document: 1.1.0 - * Contact: contact@tribufu.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -/** - * - * @export - * @interface RegisterRequest - */ -export interface RegisterRequest { - /** - * - * @type {string} - * @memberof RegisterRequest - */ - uuid?: string | null; - /** - * - * @type {string} - * @memberof RegisterRequest - */ - name: string; - /** - * - * @type {string} - * @memberof RegisterRequest - */ - email?: string | null; - /** - * - * @type {string} - * @memberof RegisterRequest - */ - password: string; -} - -/** - * Check if a given object implements the RegisterRequest interface. - */ -export function instanceOfRegisterRequest(value: object): value is RegisterRequest { - if (!('name' in value) || value['name'] === undefined) return false; - if (!('password' in value) || value['password'] === undefined) return false; - return true; -} - -export function RegisterRequestFromJSON(json: any): RegisterRequest { - return RegisterRequestFromJSONTyped(json, false); -} - -export function RegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterRequest { - if (json == null) { - return json; - } - return { - - 'uuid': json['uuid'] == null ? undefined : json['uuid'], - 'name': json['name'], - 'email': json['email'] == null ? undefined : json['email'], - 'password': json['password'], - }; -} - -export function RegisterRequestToJSON(json: any): RegisterRequest { - return RegisterRequestToJSONTyped(json, false); -} - -export function RegisterRequestToJSONTyped(value?: RegisterRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'uuid': value['uuid'], - 'name': value['name'], - 'email': value['email'], - 'password': value['password'], - }; -} - diff --git a/src/models/ResponseType.ts b/src/models/ResponseType.ts index cb01bc4..c213719 100644 --- a/src/models/ResponseType.ts +++ b/src/models/ResponseType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/RevokeRequest.ts b/src/models/RevokeRequest.ts index fc5b0f9..d13cec1 100644 --- a/src/models/RevokeRequest.ts +++ b/src/models/RevokeRequest.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Search.ts b/src/models/Search.ts index 48050e6..d0fe815 100644 --- a/src/models/Search.ts +++ b/src/models/Search.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/SearchRequest.ts b/src/models/SearchRequest.ts deleted file mode 100644 index 6722f75..0000000 --- a/src/models/SearchRequest.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Tribufu API - * REST API to access Tribufu services. - * - * The version of the OpenAPI document: 1.1.0 - * Contact: contact@tribufu.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { SearchType } from './SearchType'; -import { - SearchTypeFromJSON, - SearchTypeFromJSONTyped, - SearchTypeToJSON, - SearchTypeToJSONTyped, -} from './SearchType'; - -/** - * - * @export - * @interface SearchRequest - */ -export interface SearchRequest { - /** - * - * @type {SearchType} - * @memberof SearchRequest - */ - type?: SearchType; - /** - * - * @type {string} - * @memberof SearchRequest - */ - query?: string | null; - /** - * - * @type {number} - * @memberof SearchRequest - */ - page?: number | null; - /** - * - * @type {string} - * @memberof SearchRequest - */ - gameId?: string | null; -} - - - -/** - * Check if a given object implements the SearchRequest interface. - */ -export function instanceOfSearchRequest(value: object): value is SearchRequest { - return true; -} - -export function SearchRequestFromJSON(json: any): SearchRequest { - return SearchRequestFromJSONTyped(json, false); -} - -export function SearchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchRequest { - if (json == null) { - return json; - } - return { - - 'type': json['type'] == null ? undefined : SearchTypeFromJSON(json['type']), - 'query': json['query'] == null ? undefined : json['query'], - 'page': json['page'] == null ? undefined : json['page'], - 'gameId': json['game_id'] == null ? undefined : json['game_id'], - }; -} - -export function SearchRequestToJSON(json: any): SearchRequest { - return SearchRequestToJSONTyped(json, false); -} - -export function SearchRequestToJSONTyped(value?: SearchRequest | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'type': SearchTypeToJSON(value['type']), - 'query': value['query'], - 'page': value['page'], - 'game_id': value['gameId'], - }; -} - diff --git a/src/models/SearchType.ts b/src/models/SearchType.ts index fafb722..b422166 100644 --- a/src/models/SearchType.ts +++ b/src/models/SearchType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ServerMetrics.ts b/src/models/ServerMetrics.ts index 5c15962..86db8a7 100644 --- a/src/models/ServerMetrics.ts +++ b/src/models/ServerMetrics.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ServerStatus.ts b/src/models/ServerStatus.ts deleted file mode 100644 index 2723f95..0000000 --- a/src/models/ServerStatus.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Tribufu API - * REST API to access Tribufu services. - * - * The version of the OpenAPI document: 1.1.0 - * Contact: contact@tribufu.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const ServerStatus = { - Unknown: 'unknown', - Offline: 'offline', - Online: 'online' -} as const; -export type ServerStatus = typeof ServerStatus[keyof typeof ServerStatus]; - - -export function instanceOfServerStatus(value: any): boolean { - for (const key in ServerStatus) { - if (Object.prototype.hasOwnProperty.call(ServerStatus, key)) { - if (ServerStatus[key as keyof typeof ServerStatus] === value) { - return true; - } - } - } - return false; -} - -export function ServerStatusFromJSON(json: any): ServerStatus { - return ServerStatusFromJSONTyped(json, false); -} - -export function ServerStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServerStatus { - return json as ServerStatus; -} - -export function ServerStatusToJSON(value?: ServerStatus | null): any { - return value as any; -} - -export function ServerStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): ServerStatus { - return value as ServerStatus; -} - diff --git a/src/models/ModelFile.ts b/src/models/StorageFile.ts similarity index 71% rename from src/models/ModelFile.ts rename to src/models/StorageFile.ts index 55d9efc..501191a 100644 --- a/src/models/ModelFile.ts +++ b/src/models/StorageFile.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,80 +16,80 @@ import { mapValues } from '../runtime'; /** * * @export - * @interface ModelFile + * @interface StorageFile */ -export interface ModelFile { +export interface StorageFile { /** * * @type {string} - * @memberof ModelFile + * @memberof StorageFile */ id?: string; /** * * @type {string} - * @memberof ModelFile + * @memberof StorageFile */ name: string | null; /** * * @type {string} - * @memberof ModelFile + * @memberof StorageFile */ contentType: string | null; /** * * @type {string} - * @memberof ModelFile + * @memberof StorageFile */ url: string | null; + /** + * + * @type {number} + * @memberof StorageFile + */ + size?: number; /** * * @type {string} - * @memberof ModelFile + * @memberof StorageFile */ hash?: string | null; /** * * @type {string} - * @memberof ModelFile + * @memberof StorageFile */ etag?: string | null; - /** - * - * @type {number} - * @memberof ModelFile - */ - size?: number; /** * * @type {Date} - * @memberof ModelFile + * @memberof StorageFile */ created?: Date; /** * * @type {Date} - * @memberof ModelFile + * @memberof StorageFile */ updated?: Date | null; } /** - * Check if a given object implements the ModelFile interface. + * Check if a given object implements the StorageFile interface. */ -export function instanceOfModelFile(value: object): value is ModelFile { +export function instanceOfStorageFile(value: object): value is StorageFile { if (!('name' in value) || value['name'] === undefined) return false; if (!('contentType' in value) || value['contentType'] === undefined) return false; if (!('url' in value) || value['url'] === undefined) return false; return true; } -export function ModelFileFromJSON(json: any): ModelFile { - return ModelFileFromJSONTyped(json, false); +export function StorageFileFromJSON(json: any): StorageFile { + return StorageFileFromJSONTyped(json, false); } -export function ModelFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelFile { +export function StorageFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): StorageFile { if (json == null) { return json; } @@ -99,19 +99,19 @@ export function ModelFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'name': json['name'], 'contentType': json['content_type'], 'url': json['url'], + 'size': json['size'] == null ? undefined : json['size'], 'hash': json['hash'] == null ? undefined : json['hash'], 'etag': json['etag'] == null ? undefined : json['etag'], - 'size': json['size'] == null ? undefined : json['size'], 'created': json['created'] == null ? undefined : (new Date(json['created'])), 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), }; } -export function ModelFileToJSON(json: any): ModelFile { - return ModelFileToJSONTyped(json, false); +export function StorageFileToJSON(json: any): StorageFile { + return StorageFileToJSONTyped(json, false); } -export function ModelFileToJSONTyped(value?: ModelFile | null, ignoreDiscriminator: boolean = false): any { +export function StorageFileToJSONTyped(value?: StorageFile | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } @@ -122,9 +122,9 @@ export function ModelFileToJSONTyped(value?: ModelFile | null, ignoreDiscriminat 'name': value['name'], 'content_type': value['contentType'], 'url': value['url'], + 'size': value['size'], 'hash': value['hash'], 'etag': value['etag'], - 'size': value['size'], 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), }; diff --git a/src/models/Subscription.ts b/src/models/Subscription.ts deleted file mode 100644 index f106a54..0000000 --- a/src/models/Subscription.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Tribufu API - * API to access Tribufu services. - * - * The version of the OpenAPI document: 1.2.0 - * Contact: contact@tribufu.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { SubscriptionPrice } from './SubscriptionPrice'; -import { - SubscriptionPriceFromJSON, - SubscriptionPriceFromJSONTyped, - SubscriptionPriceToJSON, - SubscriptionPriceToJSONTyped, -} from './SubscriptionPrice'; - -/** - * - * @export - * @interface Subscription - */ -export interface Subscription { - /** - * - * @type {string} - * @memberof Subscription - */ - id?: string; - /** - * - * @type {string} - * @memberof Subscription - */ - name: string | null; - /** - * - * @type {string} - * @memberof Subscription - */ - description?: string | null; - /** - * - * @type {string} - * @memberof Subscription - */ - imageUrl?: string | null; - /** - * - * @type {Array} - * @memberof Subscription - */ - prices?: Array | null; - /** - * - * @type {Date} - * @memberof Subscription - */ - created?: Date; - /** - * - * @type {Date} - * @memberof Subscription - */ - updated?: Date | null; -} - -/** - * Check if a given object implements the Subscription interface. - */ -export function instanceOfSubscription(value: object): value is Subscription { - if (!('name' in value) || value['name'] === undefined) return false; - return true; -} - -export function SubscriptionFromJSON(json: any): Subscription { - return SubscriptionFromJSONTyped(json, false); -} - -export function SubscriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Subscription { - if (json == null) { - return json; - } - return { - - 'id': json['id'] == null ? undefined : json['id'], - 'name': json['name'], - 'description': json['description'] == null ? undefined : json['description'], - 'imageUrl': json['image_url'] == null ? undefined : json['image_url'], - 'prices': json['prices'] == null ? undefined : ((json['prices'] as Array).map(SubscriptionPriceFromJSON)), - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), - }; -} - -export function SubscriptionToJSON(json: any): Subscription { - return SubscriptionToJSONTyped(json, false); -} - -export function SubscriptionToJSONTyped(value?: Subscription | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'name': value['name'], - 'description': value['description'], - 'image_url': value['imageUrl'], - 'prices': value['prices'] == null ? undefined : ((value['prices'] as Array).map(SubscriptionPriceToJSON)), - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), - }; -} - diff --git a/src/models/TokenHintType.ts b/src/models/TokenHintType.ts index 21d88a3..391bdca 100644 --- a/src/models/TokenHintType.ts +++ b/src/models/TokenHintType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/TokenRequest.ts b/src/models/TokenRequest.ts index cbbd78c..308d76a 100644 --- a/src/models/TokenRequest.ts +++ b/src/models/TokenRequest.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/TokenResponse.ts b/src/models/TokenResponse.ts index 73658e8..fefb7d5 100644 --- a/src/models/TokenResponse.ts +++ b/src/models/TokenResponse.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/TokenType.ts b/src/models/TokenType.ts index bc47115..51b59f3 100644 --- a/src/models/TokenType.ts +++ b/src/models/TokenType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/UpdateProfile.ts b/src/models/UpdateProfile.ts index e26b495..4e7b2a3 100644 --- a/src/models/UpdateProfile.ts +++ b/src/models/UpdateProfile.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/UserInfo.ts b/src/models/UserInfo.ts index af1fcf2..a18de3f 100644 --- a/src/models/UserInfo.ts +++ b/src/models/UserInfo.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/UserType.ts b/src/models/UserType.ts index 1b08914..fda4fc9 100644 --- a/src/models/UserType.ts +++ b/src/models/UserType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/index.ts b/src/models/index.ts index 52211de..0982d62 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -18,7 +18,7 @@ export * from './GameServerQuery'; export * from './GameServerStatus'; export * from './GrantType'; export * from './Group'; -export * from './GroupGame'; +export * from './GroupApplication'; export * from './GroupMember'; export * from './GroupRank'; export * from './HashViewModel'; @@ -28,9 +28,11 @@ export * from './IpAddress'; export * from './LeaderboardItem'; export * from './LeaderboardOrder'; export * from './LoginProvider'; -export * from './ModelFile'; export * from './Package'; export * from './PackageRelease'; +export * from './Product'; +export * from './ProductPrice'; +export * from './ProductType'; export * from './Profile'; export * from './ProfileGame'; export * from './ProfileGroup'; @@ -39,8 +41,7 @@ export * from './RevokeRequest'; export * from './Search'; export * from './SearchType'; export * from './ServerMetrics'; -export * from './Subscription'; -export * from './SubscriptionPrice'; +export * from './StorageFile'; export * from './TokenHintType'; export * from './TokenRequest'; export * from './TokenResponse'; diff --git a/src/runtime.ts b/src/runtime.ts index 6c636af..5d24ca2 100644 --- a/src/runtime.ts +++ b/src/runtime.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.2.0 + * The version of the OpenAPI document: 1.3.0 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). From ad1a0f1faed944a34b0872e21f04b8d5ca227aa4 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Sat, 27 Dec 2025 10:02:17 -0300 Subject: [PATCH 2/5] Create anonymous.js --- examples/anonymous.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/anonymous.js diff --git a/examples/anonymous.js b/examples/anonymous.js new file mode 100644 index 0000000..0f59621 --- /dev/null +++ b/examples/anonymous.js @@ -0,0 +1,14 @@ +// Copyright (c) Tribufu. All Rights Reserved. +// SPDX-License-Identifier: MIT AND Apache-2.0 + +import dotenv from "dotenv"; +import { TribufuApi } from "../build/index.mjs"; + +dotenv.config(); + +async function main() { + const tribufu = TribufuApi.default(); + console.log(await tribufu.getCurrentIpAddress()); +} + +main(); From 5071fdde1f5711e91e4212fb4f4877200b2831b1 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Fri, 3 Apr 2026 13:18:55 -0300 Subject: [PATCH 3/5] Create .npmrc --- .npmrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..7253a5c --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +min-release-age=7 From 26dbeb686740157cf39fc4d2e8165477e21e5a50 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Fri, 3 Apr 2026 13:19:35 -0300 Subject: [PATCH 4/5] Update api version --- .openapi-generator/FILES | 4 +- package.json | 2 +- src/apis/TribufuGeneratedApi.ts | 428 +---------------------------- src/models/Account.ts | 133 --------- src/models/Application.ts | 24 +- src/models/ApplicationType.ts | 4 +- src/models/AuthorizeRequest.ts | 2 +- src/models/Client.ts | 22 +- src/models/ClientInfo.ts | 2 +- src/models/ClientType.ts | 2 +- src/models/CodeChallengeMethod.ts | 2 +- src/models/CodeResponse.ts | 2 +- src/models/CreateUser.ts | 4 +- src/models/CryptoViewModel.ts | 2 +- src/models/ExternalAccount.ts | 141 ++++++++++ src/models/Game.ts | 24 +- src/models/GameServer.ts | 30 +- src/models/GameServerCluster.ts | 26 +- src/models/GameServerQuery.ts | 8 +- src/models/GameServerStatus.ts | 2 +- src/models/GrantType.ts | 2 +- src/models/Group.ts | 22 +- src/models/GroupApplication.ts | 2 +- src/models/GroupMember.ts | 26 +- src/models/GroupRank.ts | 2 +- src/models/HashViewModel.ts | 2 +- src/models/IdentityProviderType.ts | 58 ++++ src/models/IntrospectRequest.ts | 2 +- src/models/IntrospectResponse.ts | 2 +- src/models/IpAddress.ts | 2 +- src/models/LeaderboardItem.ts | 2 +- src/models/LeaderboardOrder.ts | 2 +- src/models/LoginProvider.ts | 58 ---- src/models/Package.ts | 26 +- src/models/PackageRelease.ts | 22 +- src/models/Product.ts | 38 ++- src/models/ProductPrice.ts | 8 +- src/models/ProductType.ts | 2 +- src/models/Profile.ts | 87 ++---- src/models/ProfileGame.ts | 2 +- src/models/ProfileGroup.ts | 2 +- src/models/ResponseType.ts | 2 +- src/models/RevokeRequest.ts | 2 +- src/models/Search.ts | 4 +- src/models/SearchType.ts | 2 +- src/models/ServerMetrics.ts | 2 +- src/models/StorageFile.ts | 22 +- src/models/TokenHintType.ts | 2 +- src/models/TokenRequest.ts | 2 +- src/models/TokenResponse.ts | 2 +- src/models/TokenType.ts | 2 +- src/models/UpdateProfile.ts | 2 +- src/models/UserInfo.ts | 28 +- src/models/UserType.ts | 2 +- src/models/index.ts | 4 +- src/runtime.ts | 2 +- 56 files changed, 456 insertions(+), 857 deletions(-) delete mode 100644 src/models/Account.ts create mode 100644 src/models/ExternalAccount.ts create mode 100644 src/models/IdentityProviderType.ts delete mode 100644 src/models/LoginProvider.ts diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 39fd042..fcd3c12 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,6 +1,5 @@ src/apis/TribufuGeneratedApi.ts src/apis/index.ts -src/models/Account.ts src/models/Application.ts src/models/ApplicationType.ts src/models/AuthorizeRequest.ts @@ -11,6 +10,7 @@ src/models/CodeChallengeMethod.ts src/models/CodeResponse.ts src/models/CreateUser.ts src/models/CryptoViewModel.ts +src/models/ExternalAccount.ts src/models/Game.ts src/models/GameServer.ts src/models/GameServerCluster.ts @@ -22,12 +22,12 @@ src/models/GroupApplication.ts src/models/GroupMember.ts src/models/GroupRank.ts src/models/HashViewModel.ts +src/models/IdentityProviderType.ts src/models/IntrospectRequest.ts src/models/IntrospectResponse.ts src/models/IpAddress.ts src/models/LeaderboardItem.ts src/models/LeaderboardOrder.ts -src/models/LoginProvider.ts src/models/Package.ts src/models/PackageRelease.ts src/models/Product.ts diff --git a/package.json b/package.json index 6d98383..67962b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tribufu", - "version": "1.3.0", + "version": "1.4.2", "description": "Tribufu JS SDK", "repository": "https://github.com/tribufu/tribufu-js", "author": "Tribufu ", diff --git a/src/apis/TribufuGeneratedApi.ts b/src/apis/TribufuGeneratedApi.ts index 3c4503d..b1626c2 100644 --- a/src/apis/TribufuGeneratedApi.ts +++ b/src/apis/TribufuGeneratedApi.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -15,13 +15,13 @@ import * as runtime from '../runtime'; import type { - Account, AuthorizeRequest, Client, ClientInfo, CodeResponse, CreateUser, CryptoViewModel, + ExternalAccount, Game, GameServer, GameServerCluster, @@ -49,8 +49,6 @@ import type { UserInfo, } from '../models/index'; import { - AccountFromJSON, - AccountToJSON, AuthorizeRequestFromJSON, AuthorizeRequestToJSON, ClientFromJSON, @@ -63,6 +61,8 @@ import { CreateUserToJSON, CryptoViewModelFromJSON, CryptoViewModelToJSON, + ExternalAccountFromJSON, + ExternalAccountToJSON, GameFromJSON, GameToJSON, GameServerFromJSON, @@ -208,7 +208,7 @@ export interface GenerateFlakeIdRequest { } export interface GenerateFlakeIdFromTimestampRequest { - timestamp: string; + timestamp: number; amount?: number; } @@ -559,10 +559,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/oauth2/authorize`, method: 'POST', @@ -601,10 +597,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json-patch+json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users/{id}/email`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', @@ -642,10 +634,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json-patch+json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users/{id}/password`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', @@ -683,10 +671,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/{id}/claim`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', @@ -725,10 +709,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/servers/{id}/claim`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', @@ -760,10 +740,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/utils/base64`, method: 'POST', @@ -795,10 +771,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/oauth2/clients`, method: 'POST', @@ -829,10 +801,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers`, method: 'POST', @@ -863,10 +831,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/clusters`, method: 'POST', @@ -898,10 +862,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/clusters`, method: 'POST', @@ -934,10 +894,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/servers`, method: 'POST', @@ -969,10 +925,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/groups`, method: 'POST', @@ -1002,10 +954,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/oauth2/token`, method: 'POST', @@ -1036,10 +984,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users`, method: 'POST', @@ -1075,10 +1019,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/oauth2/clients/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'DELETE', @@ -1113,10 +1053,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'DELETE', @@ -1151,10 +1087,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/clusters/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'DELETE', @@ -1190,10 +1122,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/clusters/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'DELETE', @@ -1230,10 +1158,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/servers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'DELETE', @@ -1269,10 +1193,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/groups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'DELETE', @@ -1307,10 +1227,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/packages/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'DELETE', @@ -1333,7 +1249,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { * 🔒 Required permissions: tribufu.utils.generate.flake * Generate one or more flake ids. */ - async generateFlakeIdRaw(requestParameters: GenerateFlakeIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async generateFlakeIdRaw(requestParameters: GenerateFlakeIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { const queryParameters: any = {}; if (requestParameters['amount'] != null) { @@ -1342,10 +1258,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/utils/flake`, method: 'GET', @@ -1360,7 +1272,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { * 🔒 Required permissions: tribufu.utils.generate.flake * Generate one or more flake ids. */ - async generateFlakeId(amount?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async generateFlakeId(amount?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.generateFlakeIdRaw({ amount: amount }, initOverrides); return await response.value(); } @@ -1369,7 +1281,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { * 🔒 Required permissions: tribufu.utils.generate.flake.timestamp * Generate one or more flake ids from a timestamp. */ - async generateFlakeIdFromTimestampRaw(requestParameters: GenerateFlakeIdFromTimestampRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async generateFlakeIdFromTimestampRaw(requestParameters: GenerateFlakeIdFromTimestampRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { if (requestParameters['timestamp'] == null) { throw new runtime.RequiredError( 'timestamp', @@ -1385,10 +1297,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/utils/flake/{timestamp}`.replace(`{${"timestamp"}}`, encodeURIComponent(String(requestParameters['timestamp']))), method: 'GET', @@ -1403,7 +1311,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { * 🔒 Required permissions: tribufu.utils.generate.flake.timestamp * Generate one or more flake ids from a timestamp. */ - async generateFlakeIdFromTimestamp(timestamp: string, amount?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async generateFlakeIdFromTimestamp(timestamp: number, amount?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.generateFlakeIdFromTimestampRaw({ timestamp: timestamp, amount: amount }, initOverrides); return await response.value(); } @@ -1425,10 +1333,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/utils/password`, method: 'GET', @@ -1465,10 +1369,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/utils/uuid`, method: 'GET', @@ -1504,10 +1404,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/oauth2/clients/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -1535,10 +1431,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/oauth2/clientinfo`, method: 'GET', @@ -1578,10 +1470,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/oauth2/clients`, method: 'GET', @@ -1609,10 +1497,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/geoip`, method: 'GET', @@ -1647,10 +1531,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -1693,10 +1573,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/address/{address}:{port}`.replace(`{${"address"}}`, encodeURIComponent(String(requestParameters['address']))).replace(`{${"port"}}`, encodeURIComponent(String(requestParameters['port']))), method: 'GET', @@ -1740,10 +1616,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/servers/address/{address}:{port}`.replace(`{${"address"}}`, encodeURIComponent(String(requestParameters['address']))).replace(`{${"port"}}`, encodeURIComponent(String(requestParameters['port']))), method: 'GET', @@ -1780,10 +1652,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -1820,10 +1688,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/servers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -1860,10 +1724,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/clusters/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -1900,10 +1760,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/clusters/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -1948,10 +1804,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/clusters/{id}/servers`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -1996,10 +1848,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/clusters/{id}/servers`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -2037,10 +1885,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/clusters`, method: 'GET', @@ -2078,10 +1922,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/clusters`, method: 'GET', @@ -2126,10 +1966,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/{id}/queries`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -2174,10 +2010,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/servers/{id}/queries`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -2231,10 +2063,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers`, method: 'GET', @@ -2278,10 +2106,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/country/{country}`.replace(`{${"country"}}`, encodeURIComponent(String(requestParameters['country']))), method: 'GET', @@ -2326,10 +2150,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/servers/country/{country}`.replace(`{${"country"}}`, encodeURIComponent(String(requestParameters['country']))), method: 'GET', @@ -2359,10 +2179,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/countries`, method: 'GET', @@ -2392,10 +2208,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/servers/countries`, method: 'GET', @@ -2425,10 +2237,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/metrics`, method: 'GET', @@ -2458,10 +2266,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/servers/metrics`, method: 'GET', @@ -2516,10 +2320,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/servers`, method: 'GET', @@ -2557,10 +2357,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games`, method: 'GET', @@ -2596,10 +2392,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/groups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -2635,10 +2427,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/groups/tag/{tag}`.replace(`{${"tag"}}`, encodeURIComponent(String(requestParameters['tag']))), method: 'GET', @@ -2674,10 +2462,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/groups/uuid/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid']))), method: 'GET', @@ -2713,10 +2497,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/groups/{id}/games`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -2752,10 +2532,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/groups/{id}/members`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -2792,10 +2568,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/groups`, method: 'GET', @@ -2830,10 +2602,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/geoip/addresses/{address}`.replace(`{${"address"}}`, encodeURIComponent(String(requestParameters['address']))), method: 'GET', @@ -2873,10 +2641,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/geoip/addresses`, method: 'GET', @@ -2909,10 +2673,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/leaderboard`, method: 'GET', @@ -2948,10 +2708,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/packages/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -2988,10 +2744,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/packages`, method: 'GET', @@ -3027,10 +2779,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/products/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3067,10 +2815,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/products`, method: 'GET', @@ -3098,10 +2842,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/oauth2/jwks`, method: 'GET', @@ -3123,7 +2863,7 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { * 🔒 Required permissions: tribufu.identity.user.account.list * Get a list of connected accounts of the user. */ - async getUserAccountsRaw(requestParameters: GetUserAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async getUserAccountsRaw(requestParameters: GetUserAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { if (requestParameters['id'] == null) { throw new runtime.RequiredError( 'id', @@ -3135,10 +2875,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users/{id}/accounts`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3146,14 +2882,14 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ExternalAccountFromJSON)); } /** * 🔒 Required permissions: tribufu.identity.user.account.list * Get a list of connected accounts of the user. */ - async getUserAccounts(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async getUserAccounts(id: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.getUserAccountsRaw({ id: id }, initOverrides); return await response.value(); } @@ -3174,10 +2910,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/profiles/{id}/friends`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3214,10 +2946,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users/{id}/friends`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3254,10 +2982,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/profiles/{id}/games`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3294,10 +3018,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users/{id}/games`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3334,10 +3054,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/profiles/{id}/groups`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3374,10 +3090,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users/{id}/groups`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3407,10 +3119,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/oauth2/userinfo`, method: 'GET', @@ -3446,10 +3154,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/profiles/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3486,10 +3190,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3526,10 +3226,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/profiles/name/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), method: 'GET', @@ -3566,10 +3262,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users/name/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), method: 'GET', @@ -3606,10 +3298,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/profiles/uuid/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid']))), method: 'GET', @@ -3646,10 +3334,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users/uuid/{uuid}`.replace(`{${"uuid"}}`, encodeURIComponent(String(requestParameters['uuid']))), method: 'GET', @@ -3687,10 +3371,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/profiles`, method: 'GET', @@ -3728,10 +3408,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users`, method: 'GET', @@ -3768,10 +3444,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/profiles/{id}/sanctions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3808,10 +3480,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users/{id}/sanctions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3856,10 +3524,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/profiles/{id}/servers`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3904,10 +3568,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users/{id}/servers`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -3939,10 +3599,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/utils/argon2`, method: 'POST', @@ -3974,10 +3630,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/utils/bcrypt`, method: 'POST', @@ -4009,10 +3661,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/utils/md5`, method: 'POST', @@ -4044,10 +3692,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/utils/sha256`, method: 'POST', @@ -4078,10 +3722,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/oauth2/introspect`, method: 'POST', @@ -4111,10 +3751,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/oauth2/revoke`, method: 'POST', @@ -4144,10 +3780,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/search`, method: 'POST', @@ -4186,10 +3818,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/oauth2/clients/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', @@ -4227,10 +3855,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', @@ -4268,10 +3892,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/games/servers/clusters/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', @@ -4310,10 +3930,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/clusters/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', @@ -4353,10 +3969,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/servers/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', @@ -4395,10 +4007,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/groups/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', @@ -4436,10 +4044,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/packages/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', @@ -4477,10 +4081,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/profiles/{id}/profile`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', @@ -4520,10 +4120,6 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKey authentication - } - const response = await this.request({ path: `/v1/users/{id}/profile`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PUT', diff --git a/src/models/Account.ts b/src/models/Account.ts deleted file mode 100644 index 32aff11..0000000 --- a/src/models/Account.ts +++ /dev/null @@ -1,133 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Tribufu API - * API to access Tribufu services. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: contact@tribufu.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { mapValues } from '../runtime'; -import type { LoginProvider } from './LoginProvider'; -import { - LoginProviderFromJSON, - LoginProviderFromJSONTyped, - LoginProviderToJSON, - LoginProviderToJSONTyped, -} from './LoginProvider'; - -/** - * - * @export - * @interface Account - */ -export interface Account { - /** - * - * @type {string} - * @memberof Account - */ - id: string | null; - /** - * - * @type {string} - * @memberof Account - */ - name?: string | null; - /** - * - * @type {LoginProvider} - * @memberof Account - */ - provider: LoginProvider; - /** - * - * @type {string} - * @memberof Account - */ - userId?: string; - /** - * - * @type {boolean} - * @memberof Account - */ - authorized?: boolean; - /** - * - * @type {any} - * @memberof Account - */ - fields?: any | null; - /** - * - * @type {Date} - * @memberof Account - */ - created?: Date; - /** - * - * @type {Date} - * @memberof Account - */ - updated?: Date | null; -} - - - -/** - * Check if a given object implements the Account interface. - */ -export function instanceOfAccount(value: object): value is Account { - if (!('id' in value) || value['id'] === undefined) return false; - if (!('provider' in value) || value['provider'] === undefined) return false; - return true; -} - -export function AccountFromJSON(json: any): Account { - return AccountFromJSONTyped(json, false); -} - -export function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account { - if (json == null) { - return json; - } - return { - - 'id': json['id'], - 'name': json['name'] == null ? undefined : json['name'], - 'provider': LoginProviderFromJSON(json['provider']), - 'userId': json['user_id'] == null ? undefined : json['user_id'], - 'authorized': json['authorized'] == null ? undefined : json['authorized'], - 'fields': json['fields'] == null ? undefined : json['fields'], - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), - }; -} - -export function AccountToJSON(json: any): Account { - return AccountToJSONTyped(json, false); -} - -export function AccountToJSONTyped(value?: Account | null, ignoreDiscriminator: boolean = false): any { - if (value == null) { - return value; - } - - return { - - 'id': value['id'], - 'name': value['name'], - 'provider': LoginProviderToJSON(value['provider']), - 'user_id': value['userId'], - 'authorized': value['authorized'], - 'fields': value['fields'], - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), - }; -} - diff --git a/src/models/Application.ts b/src/models/Application.ts index 6e404e3..fed3d8c 100644 --- a/src/models/Application.ts +++ b/src/models/Application.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -56,7 +56,7 @@ export interface Application { * @type {string} * @memberof Application */ - organizationId?: string | null; + organizationId?: string; /** * * @type {string} @@ -92,13 +92,19 @@ export interface Application { * @type {Date} * @memberof Application */ - created?: Date; + createdAt?: Date; /** * * @type {Date} * @memberof Application */ - updated?: Date | null; + updatedAt?: Date | null; + /** + * + * @type {Date} + * @memberof Application + */ + deletedAt?: Date | null; } @@ -131,8 +137,9 @@ export function ApplicationFromJSONTyped(json: any, ignoreDiscriminator: boolean 'capsuleImageUrl': json['capsule_image_url'] == null ? undefined : json['capsule_image_url'], 'libraryImageUrl': json['library_image_url'] == null ? undefined : json['library_image_url'], 'slug': json['slug'] == null ? undefined : json['slug'], - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])), }; } @@ -157,8 +164,9 @@ export function ApplicationToJSONTyped(value?: Application | null, ignoreDiscrim 'capsule_image_url': value['capsuleImageUrl'], 'library_image_url': value['libraryImageUrl'], 'slug': value['slug'], - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), + 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()), + 'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()), }; } diff --git a/src/models/ApplicationType.ts b/src/models/ApplicationType.ts index 96bdf8b..9499ea4 100644 --- a/src/models/ApplicationType.ts +++ b/src/models/ApplicationType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ * @export */ export const ApplicationType = { - Application: 'application', + Software: 'software', Game: 'game' } as const; export type ApplicationType = typeof ApplicationType[keyof typeof ApplicationType]; diff --git a/src/models/AuthorizeRequest.ts b/src/models/AuthorizeRequest.ts index 01f398a..755293f 100644 --- a/src/models/AuthorizeRequest.ts +++ b/src/models/AuthorizeRequest.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Client.ts b/src/models/Client.ts index 4941273..ff86122 100644 --- a/src/models/Client.ts +++ b/src/models/Client.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -98,13 +98,19 @@ export interface Client { * @type {Date} * @memberof Client */ - created?: Date; + createdAt?: Date; /** * * @type {Date} * @memberof Client */ - updated?: Date | null; + updatedAt?: Date | null; + /** + * + * @type {Date} + * @memberof Client + */ + deletedAt?: Date | null; } @@ -138,8 +144,9 @@ export function ClientFromJSONTyped(json: any, ignoreDiscriminator: boolean): Cl 'redirects': json['redirects'] == null ? undefined : json['redirects'], 'scopes': json['scopes'] == null ? undefined : json['scopes'], 'permissions': json['permissions'] == null ? undefined : json['permissions'], - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])), }; } @@ -164,8 +171,9 @@ export function ClientToJSONTyped(value?: Omit | null, ig 'background_url': value['backgroundUrl'], 'redirects': value['redirects'], 'scopes': value['scopes'], - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), + 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()), + 'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()), }; } diff --git a/src/models/ClientInfo.ts b/src/models/ClientInfo.ts index 7a13979..ddaec87 100644 --- a/src/models/ClientInfo.ts +++ b/src/models/ClientInfo.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ClientType.ts b/src/models/ClientType.ts index 403f759..64304c1 100644 --- a/src/models/ClientType.ts +++ b/src/models/ClientType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CodeChallengeMethod.ts b/src/models/CodeChallengeMethod.ts index 3915f2c..1168f80 100644 --- a/src/models/CodeChallengeMethod.ts +++ b/src/models/CodeChallengeMethod.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CodeResponse.ts b/src/models/CodeResponse.ts index 3def9e9..e00c7b6 100644 --- a/src/models/CodeResponse.ts +++ b/src/models/CodeResponse.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateUser.ts b/src/models/CreateUser.ts index d8962c8..e256cc8 100644 --- a/src/models/CreateUser.ts +++ b/src/models/CreateUser.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,7 +24,7 @@ export interface CreateUser { * @type {string} * @memberof CreateUser */ - uuid?: string | null; + uuid?: string; /** * * @type {string} diff --git a/src/models/CryptoViewModel.ts b/src/models/CryptoViewModel.ts index f125efa..13440e5 100644 --- a/src/models/CryptoViewModel.ts +++ b/src/models/CryptoViewModel.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ExternalAccount.ts b/src/models/ExternalAccount.ts new file mode 100644 index 0000000..a3fe8a2 --- /dev/null +++ b/src/models/ExternalAccount.ts @@ -0,0 +1,141 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Tribufu API + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.4.2 + * Contact: contact@tribufu.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { IdentityProviderType } from './IdentityProviderType'; +import { + IdentityProviderTypeFromJSON, + IdentityProviderTypeFromJSONTyped, + IdentityProviderTypeToJSON, + IdentityProviderTypeToJSONTyped, +} from './IdentityProviderType'; + +/** + * + * @export + * @interface ExternalAccount + */ +export interface ExternalAccount { + /** + * + * @type {string} + * @memberof ExternalAccount + */ + userId?: string; + /** + * + * @type {IdentityProviderType} + * @memberof ExternalAccount + */ + provider: IdentityProviderType; + /** + * + * @type {string} + * @memberof ExternalAccount + */ + externalId: string | null; + /** + * + * @type {string} + * @memberof ExternalAccount + */ + name?: string | null; + /** + * + * @type {boolean} + * @memberof ExternalAccount + */ + authorized?: boolean; + /** + * + * @type {{ [key: string]: any | null; }} + * @memberof ExternalAccount + */ + fields?: { [key: string]: any | null; } | null; + /** + * + * @type {Date} + * @memberof ExternalAccount + */ + createdAt?: Date; + /** + * + * @type {Date} + * @memberof ExternalAccount + */ + updatedAt?: Date | null; + /** + * + * @type {Date} + * @memberof ExternalAccount + */ + deletedAt?: Date | null; +} + + + +/** + * Check if a given object implements the ExternalAccount interface. + */ +export function instanceOfExternalAccount(value: object): value is ExternalAccount { + if (!('provider' in value) || value['provider'] === undefined) return false; + if (!('externalId' in value) || value['externalId'] === undefined) return false; + return true; +} + +export function ExternalAccountFromJSON(json: any): ExternalAccount { + return ExternalAccountFromJSONTyped(json, false); +} + +export function ExternalAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalAccount { + if (json == null) { + return json; + } + return { + + 'userId': json['user_id'] == null ? undefined : json['user_id'], + 'provider': IdentityProviderTypeFromJSON(json['provider']), + 'externalId': json['external_id'], + 'name': json['name'] == null ? undefined : json['name'], + 'authorized': json['authorized'] == null ? undefined : json['authorized'], + 'fields': json['fields'] == null ? undefined : json['fields'], + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])), + }; +} + +export function ExternalAccountToJSON(json: any): ExternalAccount { + return ExternalAccountToJSONTyped(json, false); +} + +export function ExternalAccountToJSONTyped(value?: ExternalAccount | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'user_id': value['userId'], + 'provider': IdentityProviderTypeToJSON(value['provider']), + 'external_id': value['externalId'], + 'name': value['name'], + 'authorized': value['authorized'], + 'fields': value['fields'], + 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()), + 'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()), + }; +} + diff --git a/src/models/Game.ts b/src/models/Game.ts index 98dfac6..edc9e96 100644 --- a/src/models/Game.ts +++ b/src/models/Game.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -56,7 +56,7 @@ export interface Game { * @type {string} * @memberof Game */ - organizationId?: string | null; + organizationId?: string; /** * * @type {string} @@ -92,13 +92,19 @@ export interface Game { * @type {Date} * @memberof Game */ - created?: Date; + createdAt?: Date; /** * * @type {Date} * @memberof Game */ - updated?: Date | null; + updatedAt?: Date | null; + /** + * + * @type {Date} + * @memberof Game + */ + deletedAt?: Date | null; /** * * @type {boolean} @@ -173,8 +179,9 @@ export function GameFromJSONTyped(json: any, ignoreDiscriminator: boolean): Game 'capsuleImageUrl': json['capsule_image_url'] == null ? undefined : json['capsule_image_url'], 'libraryImageUrl': json['library_image_url'] == null ? undefined : json['library_image_url'], 'slug': json['slug'] == null ? undefined : json['slug'], - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])), 'enableServers': json['enable_servers'] == null ? undefined : json['enable_servers'], 'gamePort': json['game_port'] == null ? undefined : json['game_port'], 'queryPort': json['query_port'] == null ? undefined : json['query_port'], @@ -206,8 +213,9 @@ export function GameToJSONTyped(value?: Game | null, ignoreDiscriminator: boolea 'capsule_image_url': value['capsuleImageUrl'], 'library_image_url': value['libraryImageUrl'], 'slug': value['slug'], - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), + 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()), + 'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()), 'enable_servers': value['enableServers'], 'game_port': value['gamePort'], 'query_port': value['queryPort'], diff --git a/src/models/GameServer.ts b/src/models/GameServer.ts index 5e6f07a..c44a2dc 100644 --- a/src/models/GameServer.ts +++ b/src/models/GameServer.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -42,7 +42,7 @@ export interface GameServer { * @type {string} * @memberof GameServer */ - ownerId?: string | null; + ownerId?: string; /** * * @type {string} @@ -90,7 +90,7 @@ export interface GameServer { * @type {string} * @memberof GameServer */ - clusterId?: string | null; + clusterId?: string; /** * * @type {string} @@ -123,10 +123,10 @@ export interface GameServer { steam?: boolean; /** * - * @type {string} + * @type {number} * @memberof GameServer */ - discordServerId?: string | null; + discordServerId?: number | null; /** * * @type {string} @@ -138,13 +138,19 @@ export interface GameServer { * @type {Date} * @memberof GameServer */ - created?: Date; + createdAt?: Date; /** * * @type {Date} * @memberof GameServer */ - updated?: Date | null; + updatedAt?: Date | null; + /** + * + * @type {Date} + * @memberof GameServer + */ + deletedAt?: Date | null; } /** @@ -186,8 +192,9 @@ export function GameServerFromJSONTyped(json: any, ignoreDiscriminator: boolean) 'steam': json['steam'] == null ? undefined : json['steam'], 'discordServerId': json['discord_server_id'] == null ? undefined : json['discord_server_id'], 'youtubeVideoUrl': json['youtube_video_url'] == null ? undefined : json['youtube_video_url'], - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])), }; } @@ -221,8 +228,9 @@ export function GameServerToJSONTyped(value?: GameServer | null, ignoreDiscrimin 'steam': value['steam'], 'discord_server_id': value['discordServerId'], 'youtube_video_url': value['youtubeVideoUrl'], - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), + 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()), + 'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()), }; } diff --git a/src/models/GameServerCluster.ts b/src/models/GameServerCluster.ts index 655220b..fb58443 100644 --- a/src/models/GameServerCluster.ts +++ b/src/models/GameServerCluster.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -63,10 +63,10 @@ export interface GameServerCluster { ownerId?: string; /** * - * @type {string} + * @type {number} * @memberof GameServerCluster */ - discordServerId?: string | null; + discordServerId?: number | null; /** * * @type {string} @@ -96,13 +96,19 @@ export interface GameServerCluster { * @type {Date} * @memberof GameServerCluster */ - created?: Date; + createdAt?: Date; /** * * @type {Date} * @memberof GameServerCluster */ - updated?: Date | null; + updatedAt?: Date | null; + /** + * + * @type {Date} + * @memberof GameServerCluster + */ + deletedAt?: Date | null; } /** @@ -135,8 +141,9 @@ export function GameServerClusterFromJSONTyped(json: any, ignoreDiscriminator: b 'tags': json['tags'] == null ? undefined : json['tags'], 'commentCount': json['comment_count'] == null ? undefined : json['comment_count'], 'serverCount': json['server_count'] == null ? undefined : json['server_count'], - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])), }; } @@ -163,8 +170,9 @@ export function GameServerClusterToJSONTyped(value?: GameServerCluster | null, i 'tags': value['tags'], 'comment_count': value['commentCount'], 'server_count': value['serverCount'], - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), + 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()), + 'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()), }; } diff --git a/src/models/GameServerQuery.ts b/src/models/GameServerQuery.ts index 2239325..37fd864 100644 --- a/src/models/GameServerQuery.ts +++ b/src/models/GameServerQuery.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -74,7 +74,7 @@ export interface GameServerQuery { * @type {Date} * @memberof GameServerQuery */ - created?: Date; + createdAt?: Date; } @@ -103,7 +103,7 @@ export function GameServerQueryFromJSONTyped(json: any, ignoreDiscriminator: boo 'currentPlayers': json['current_players'] == null ? undefined : json['current_players'], 'maxPlayers': json['max_players'] == null ? undefined : json['max_players'], 'motd': json['motd'] == null ? undefined : json['motd'], - 'created': json['created'] == null ? undefined : (new Date(json['created'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), }; } @@ -125,7 +125,7 @@ export function GameServerQueryToJSONTyped(value?: GameServerQuery | null, ignor 'current_players': value['currentPlayers'], 'max_players': value['maxPlayers'], 'motd': value['motd'], - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), + 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), }; } diff --git a/src/models/GameServerStatus.ts b/src/models/GameServerStatus.ts index 3183b75..3af0c6f 100644 --- a/src/models/GameServerStatus.ts +++ b/src/models/GameServerStatus.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GrantType.ts b/src/models/GrantType.ts index 75871a0..e26718c 100644 --- a/src/models/GrantType.ts +++ b/src/models/GrantType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Group.ts b/src/models/Group.ts index 3e4614c..2269081 100644 --- a/src/models/Group.ts +++ b/src/models/Group.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -108,13 +108,19 @@ export interface Group { * @type {Date} * @memberof Group */ - created?: Date; + createdAt?: Date; /** * * @type {Date} * @memberof Group */ - updated?: Date | null; + updatedAt?: Date | null; + /** + * + * @type {Date} + * @memberof Group + */ + deletedAt?: Date | null; } /** @@ -149,8 +155,9 @@ export function GroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): Gro 'memberCount': json['member_count'] == null ? undefined : json['member_count'], 'followerCount': json['follower_count'] == null ? undefined : json['follower_count'], 'viewCount': json['view_count'] == null ? undefined : json['view_count'], - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])), }; } @@ -179,8 +186,9 @@ export function GroupToJSONTyped(value?: Group | null, ignoreDiscriminator: bool 'member_count': value['memberCount'], 'follower_count': value['followerCount'], 'view_count': value['viewCount'], - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), + 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()), + 'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()), }; } diff --git a/src/models/GroupApplication.ts b/src/models/GroupApplication.ts index 876585c..d4dcd94 100644 --- a/src/models/GroupApplication.ts +++ b/src/models/GroupApplication.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GroupMember.ts b/src/models/GroupMember.ts index df993e3..334275d 100644 --- a/src/models/GroupMember.ts +++ b/src/models/GroupMember.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,12 +33,6 @@ export interface GroupMember { * @memberof GroupMember */ id?: string; - /** - * - * @type {string} - * @memberof GroupMember - */ - uuid?: string; /** * * @type {string} @@ -51,24 +45,12 @@ export interface GroupMember { * @memberof GroupMember */ displayName?: string | null; - /** - * - * @type {boolean} - * @memberof GroupMember - */ - verified?: boolean; /** * * @type {string} * @memberof GroupMember */ photoUrl?: string | null; - /** - * - * @type {Date} - * @memberof GroupMember - */ - lastOnline?: Date | null; /** * * @type {GroupRank} @@ -103,12 +85,9 @@ export function GroupMemberFromJSONTyped(json: any, ignoreDiscriminator: boolean return { 'id': json['id'] == null ? undefined : json['id'], - 'uuid': json['uuid'] == null ? undefined : json['uuid'], 'name': json['name'] == null ? undefined : json['name'], 'displayName': json['display_name'] == null ? undefined : json['display_name'], - 'verified': json['verified'] == null ? undefined : json['verified'], 'photoUrl': json['photo_url'] == null ? undefined : json['photo_url'], - 'lastOnline': json['last_online'] == null ? undefined : (new Date(json['last_online'])), 'rank': json['rank'] == null ? undefined : GroupRankFromJSON(json['rank']), 'since': json['since'] == null ? undefined : (new Date(json['since'])), }; @@ -126,12 +105,9 @@ export function GroupMemberToJSONTyped(value?: GroupMember | null, ignoreDiscrim return { 'id': value['id'], - 'uuid': value['uuid'], 'name': value['name'], 'display_name': value['displayName'], - 'verified': value['verified'], 'photo_url': value['photoUrl'], - 'last_online': value['lastOnline'] == null ? undefined : ((value['lastOnline'] as any).toISOString()), 'rank': GroupRankToJSON(value['rank']), 'since': value['since'] == null ? undefined : ((value['since']).toISOString()), }; diff --git a/src/models/GroupRank.ts b/src/models/GroupRank.ts index a7206ab..89880b5 100644 --- a/src/models/GroupRank.ts +++ b/src/models/GroupRank.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/HashViewModel.ts b/src/models/HashViewModel.ts index 0979879..4d1ea0f 100644 --- a/src/models/HashViewModel.ts +++ b/src/models/HashViewModel.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/IdentityProviderType.ts b/src/models/IdentityProviderType.ts new file mode 100644 index 0000000..756295a --- /dev/null +++ b/src/models/IdentityProviderType.ts @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Tribufu API + * API to access Tribufu services. + * + * The version of the OpenAPI document: 1.4.2 + * Contact: contact@tribufu.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +/** + * + * @export + */ +export const IdentityProviderType = { + Steam: 'steam', + Epic: 'epic', + Discord: 'discord', + Microsoft: 'microsoft', + Playstation: 'playstation', + Google: 'google', + Apple: 'apple' +} as const; +export type IdentityProviderType = typeof IdentityProviderType[keyof typeof IdentityProviderType]; + + +export function instanceOfIdentityProviderType(value: any): boolean { + for (const key in IdentityProviderType) { + if (Object.prototype.hasOwnProperty.call(IdentityProviderType, key)) { + if (IdentityProviderType[key as keyof typeof IdentityProviderType] === value) { + return true; + } + } + } + return false; +} + +export function IdentityProviderTypeFromJSON(json: any): IdentityProviderType { + return IdentityProviderTypeFromJSONTyped(json, false); +} + +export function IdentityProviderTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentityProviderType { + return json as IdentityProviderType; +} + +export function IdentityProviderTypeToJSON(value?: IdentityProviderType | null): any { + return value as any; +} + +export function IdentityProviderTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): IdentityProviderType { + return value as IdentityProviderType; +} + diff --git a/src/models/IntrospectRequest.ts b/src/models/IntrospectRequest.ts index 18a0959..8c7b325 100644 --- a/src/models/IntrospectRequest.ts +++ b/src/models/IntrospectRequest.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/IntrospectResponse.ts b/src/models/IntrospectResponse.ts index 7c17e4b..53fcd7d 100644 --- a/src/models/IntrospectResponse.ts +++ b/src/models/IntrospectResponse.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/IpAddress.ts b/src/models/IpAddress.ts index a9bf270..819671c 100644 --- a/src/models/IpAddress.ts +++ b/src/models/IpAddress.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/LeaderboardItem.ts b/src/models/LeaderboardItem.ts index ec1a1ed..909265d 100644 --- a/src/models/LeaderboardItem.ts +++ b/src/models/LeaderboardItem.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/LeaderboardOrder.ts b/src/models/LeaderboardOrder.ts index e6fede4..5c785a3 100644 --- a/src/models/LeaderboardOrder.ts +++ b/src/models/LeaderboardOrder.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/LoginProvider.ts b/src/models/LoginProvider.ts deleted file mode 100644 index 5901f86..0000000 --- a/src/models/LoginProvider.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Tribufu API - * API to access Tribufu services. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: contact@tribufu.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** - * - * @export - */ -export const LoginProvider = { - Steam: 'steam', - Epic: 'epic', - Discord: 'discord', - Microsoft: 'microsoft', - Playstation: 'playstation', - Google: 'google', - Apple: 'apple' -} as const; -export type LoginProvider = typeof LoginProvider[keyof typeof LoginProvider]; - - -export function instanceOfLoginProvider(value: any): boolean { - for (const key in LoginProvider) { - if (Object.prototype.hasOwnProperty.call(LoginProvider, key)) { - if (LoginProvider[key as keyof typeof LoginProvider] === value) { - return true; - } - } - } - return false; -} - -export function LoginProviderFromJSON(json: any): LoginProvider { - return LoginProviderFromJSONTyped(json, false); -} - -export function LoginProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginProvider { - return json as LoginProvider; -} - -export function LoginProviderToJSON(value?: LoginProvider | null): any { - return value as any; -} - -export function LoginProviderToJSONTyped(value: any, ignoreDiscriminator: boolean): LoginProvider { - return value as LoginProvider; -} - diff --git a/src/models/Package.ts b/src/models/Package.ts index eaebc87..4842548 100644 --- a/src/models/Package.ts +++ b/src/models/Package.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -62,13 +62,13 @@ export interface Package { * @type {string} * @memberof Package */ - applicationId?: string | null; + applicationId?: string; /** * * @type {string} * @memberof Package */ - categoryId?: string | null; + categoryId?: string; /** * * @type {number} @@ -92,13 +92,19 @@ export interface Package { * @type {Date} * @memberof Package */ - created?: Date; + createdAt?: Date; /** * * @type {Date} * @memberof Package */ - updated?: Date | null; + updatedAt?: Date | null; + /** + * + * @type {Date} + * @memberof Package + */ + deletedAt?: Date | null; } /** @@ -130,8 +136,9 @@ export function PackageFromJSONTyped(json: any, ignoreDiscriminator: boolean): P 'downloadCount': json['download_count'] == null ? undefined : json['download_count'], 'lastDownload': json['last_download'] == null ? undefined : (new Date(json['last_download'])), 'releases': json['releases'] == null ? undefined : ((json['releases'] as Array).map(PackageReleaseFromJSON)), - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])), }; } @@ -156,8 +163,9 @@ export function PackageToJSONTyped(value?: Package | null, ignoreDiscriminator: 'download_count': value['downloadCount'], 'last_download': value['lastDownload'] == null ? undefined : ((value['lastDownload'] as any).toISOString()), 'releases': value['releases'] == null ? undefined : ((value['releases'] as Array).map(PackageReleaseToJSON)), - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), + 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()), + 'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()), }; } diff --git a/src/models/PackageRelease.ts b/src/models/PackageRelease.ts index a218d22..f2a240d 100644 --- a/src/models/PackageRelease.ts +++ b/src/models/PackageRelease.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -62,13 +62,19 @@ export interface PackageRelease { * @type {Date} * @memberof PackageRelease */ - created?: Date; + createdAt?: Date; /** * * @type {Date} * @memberof PackageRelease */ - updated?: Date | null; + updatedAt?: Date | null; + /** + * + * @type {Date} + * @memberof PackageRelease + */ + deletedAt?: Date | null; } /** @@ -94,8 +100,9 @@ export function PackageReleaseFromJSONTyped(json: any, ignoreDiscriminator: bool 'packageId': json['package_id'] == null ? undefined : json['package_id'], 'notes': json['notes'] == null ? undefined : json['notes'], 'files': json['files'] == null ? undefined : ((json['files'] as Array).map(StorageFileFromJSON)), - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])), }; } @@ -114,8 +121,9 @@ export function PackageReleaseToJSONTyped(value?: Omit 'version': value['version'], 'package_id': value['packageId'], 'notes': value['notes'], - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), + 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()), + 'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()), }; } diff --git a/src/models/Product.ts b/src/models/Product.ts index 78f5ce1..72301d4 100644 --- a/src/models/Product.ts +++ b/src/models/Product.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -46,6 +46,12 @@ export interface Product { * @memberof Product */ name: string | null; + /** + * + * @type {string} + * @memberof Product + */ + sku?: string | null; /** * * @type {string} @@ -70,12 +76,6 @@ export interface Product { * @memberof Product */ imageUrl?: string | null; - /** - * - * @type {boolean} - * @memberof Product - */ - isPhysical?: boolean; /** * * @type {Array} @@ -87,13 +87,19 @@ export interface Product { * @type {Date} * @memberof Product */ - created?: Date; + createdAt?: Date; /** * * @type {Date} * @memberof Product */ - updated?: Date | null; + updatedAt?: Date | null; + /** + * + * @type {Date} + * @memberof Product + */ + deletedAt?: Date | null; } @@ -118,14 +124,15 @@ export function ProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): P 'id': json['id'] == null ? undefined : json['id'], 'name': json['name'], + 'sku': json['sku'] == null ? undefined : json['sku'], 'description': json['description'] == null ? undefined : json['description'], 'type': json['type'] == null ? undefined : ProductTypeFromJSON(json['type']), 'slug': json['slug'] == null ? undefined : json['slug'], 'imageUrl': json['image_url'] == null ? undefined : json['image_url'], - 'isPhysical': json['is_physical'] == null ? undefined : json['is_physical'], 'prices': json['prices'] == null ? undefined : ((json['prices'] as Array).map(ProductPriceFromJSON)), - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])), }; } @@ -142,14 +149,15 @@ export function ProductToJSONTyped(value?: Product | null, ignoreDiscriminator: 'id': value['id'], 'name': value['name'], + 'sku': value['sku'], 'description': value['description'], 'type': ProductTypeToJSON(value['type']), 'slug': value['slug'], 'image_url': value['imageUrl'], - 'is_physical': value['isPhysical'], 'prices': value['prices'] == null ? undefined : ((value['prices'] as Array).map(ProductPriceToJSON)), - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), + 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()), + 'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()), }; } diff --git a/src/models/ProductPrice.ts b/src/models/ProductPrice.ts index 17a305f..e908c66 100644 --- a/src/models/ProductPrice.ts +++ b/src/models/ProductPrice.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,7 @@ export interface ProductPrice { * @type {number} * @memberof ProductPrice */ - amount?: number; + price?: number; /** * * @type {number} @@ -58,7 +58,7 @@ export function ProductPriceFromJSONTyped(json: any, ignoreDiscriminator: boolea return { 'currency': json['currency'], - 'amount': json['amount'] == null ? undefined : json['amount'], + 'price': json['price'] == null ? undefined : json['price'], 'renewal': json['renewal'] == null ? undefined : json['renewal'], }; } @@ -75,7 +75,7 @@ export function ProductPriceToJSONTyped(value?: ProductPrice | null, ignoreDiscr return { 'currency': value['currency'], - 'amount': value['amount'], + 'price': value['price'], 'renewal': value['renewal'], }; } diff --git a/src/models/ProductType.ts b/src/models/ProductType.ts index 2c1baeb..0f1ce90 100644 --- a/src/models/ProductType.ts +++ b/src/models/ProductType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Profile.ts b/src/models/Profile.ts index d7756d3..534745a 100644 --- a/src/models/Profile.ts +++ b/src/models/Profile.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,109 +24,79 @@ export interface Profile { * @type {string} * @memberof Profile */ - id?: string; + readonly id?: string; /** * * @type {string} * @memberof Profile */ - uuid?: string; + readonly name?: string | null; /** * * @type {string} * @memberof Profile */ - name?: string | null; - /** - * - * @type {string} - * @memberof Profile - */ - displayName?: string | null; - /** - * - * @type {boolean} - * @memberof Profile - */ - verified?: boolean; + readonly displayName?: string | null; /** * * @type {number} * @memberof Profile */ - level?: number; + readonly level?: number; /** * * @type {number} * @memberof Profile */ - experience?: number; - /** - * - * @type {boolean} - * @memberof Profile - */ - publicBirthday?: boolean; + readonly experience?: number; /** * * @type {Date} * @memberof Profile */ - birthday?: Date | null; + readonly birthday?: Date | null; /** * * @type {number} * @memberof Profile */ - points?: number; + readonly points?: number; /** * * @type {string} * @memberof Profile */ - location?: string | null; + readonly photoUrl?: string | null; /** * * @type {string} * @memberof Profile */ - photoUrl?: string | null; - /** - * - * @type {string} - * @memberof Profile - */ - bannerUrl?: string | null; + readonly bannerUrl?: string | null; /** * * @type {Date} * @memberof Profile */ - lastOnline?: Date | null; + readonly lastOnline?: Date | null; /** * * @type {string} * @memberof Profile */ - biography?: string | null; - /** - * - * @type {number} - * @memberof Profile - */ - viewCount?: number; + readonly biography?: string | null; /** * * @type {Date} * @memberof Profile */ - created?: Date; + readonly createdAt?: Date; /** * * @type {Date} * @memberof Profile */ - updated?: Date | null; + readonly updatedAt?: Date | null; } /** @@ -147,23 +117,18 @@ export function ProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): P return { 'id': json['id'] == null ? undefined : json['id'], - 'uuid': json['uuid'] == null ? undefined : json['uuid'], 'name': json['name'] == null ? undefined : json['name'], 'displayName': json['display_name'] == null ? undefined : json['display_name'], - 'verified': json['verified'] == null ? undefined : json['verified'], 'level': json['level'] == null ? undefined : json['level'], 'experience': json['experience'] == null ? undefined : json['experience'], - 'publicBirthday': json['public_birthday'] == null ? undefined : json['public_birthday'], 'birthday': json['birthday'] == null ? undefined : (new Date(json['birthday'])), 'points': json['points'] == null ? undefined : json['points'], - 'location': json['location'] == null ? undefined : json['location'], 'photoUrl': json['photo_url'] == null ? undefined : json['photo_url'], 'bannerUrl': json['banner_url'] == null ? undefined : json['banner_url'], 'lastOnline': json['last_online'] == null ? undefined : (new Date(json['last_online'])), 'biography': json['biography'] == null ? undefined : json['biography'], - 'viewCount': json['view_count'] == null ? undefined : json['view_count'], - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), }; } @@ -171,31 +136,13 @@ export function ProfileToJSON(json: any): Profile { return ProfileToJSONTyped(json, false); } -export function ProfileToJSONTyped(value?: Profile | null, ignoreDiscriminator: boolean = false): any { +export function ProfileToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { - 'id': value['id'], - 'uuid': value['uuid'], - 'name': value['name'], - 'display_name': value['displayName'], - 'verified': value['verified'], - 'level': value['level'], - 'experience': value['experience'], - 'public_birthday': value['publicBirthday'], - 'birthday': value['birthday'] == null ? undefined : ((value['birthday'] as any).toISOString().substring(0,10)), - 'points': value['points'], - 'location': value['location'], - 'photo_url': value['photoUrl'], - 'banner_url': value['bannerUrl'], - 'last_online': value['lastOnline'] == null ? undefined : ((value['lastOnline'] as any).toISOString()), - 'biography': value['biography'], - 'view_count': value['viewCount'], - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), }; } diff --git a/src/models/ProfileGame.ts b/src/models/ProfileGame.ts index b200bcf..6a01f67 100644 --- a/src/models/ProfileGame.ts +++ b/src/models/ProfileGame.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ProfileGroup.ts b/src/models/ProfileGroup.ts index 4646c33..48b0931 100644 --- a/src/models/ProfileGroup.ts +++ b/src/models/ProfileGroup.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ResponseType.ts b/src/models/ResponseType.ts index c213719..b43c4b3 100644 --- a/src/models/ResponseType.ts +++ b/src/models/ResponseType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/RevokeRequest.ts b/src/models/RevokeRequest.ts index d13cec1..73a3384 100644 --- a/src/models/RevokeRequest.ts +++ b/src/models/RevokeRequest.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Search.ts b/src/models/Search.ts index d0fe815..02dab6a 100644 --- a/src/models/Search.ts +++ b/src/models/Search.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ export interface Search { * @type {string} * @memberof Search */ - gameId?: string | null; + gameId?: string; } diff --git a/src/models/SearchType.ts b/src/models/SearchType.ts index b422166..d808f08 100644 --- a/src/models/SearchType.ts +++ b/src/models/SearchType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ServerMetrics.ts b/src/models/ServerMetrics.ts index 86db8a7..acf54bb 100644 --- a/src/models/ServerMetrics.ts +++ b/src/models/ServerMetrics.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/StorageFile.ts b/src/models/StorageFile.ts index 501191a..059ef6d 100644 --- a/src/models/StorageFile.ts +++ b/src/models/StorageFile.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -66,13 +66,19 @@ export interface StorageFile { * @type {Date} * @memberof StorageFile */ - created?: Date; + createdAt?: Date; /** * * @type {Date} * @memberof StorageFile */ - updated?: Date | null; + updatedAt?: Date | null; + /** + * + * @type {Date} + * @memberof StorageFile + */ + deletedAt?: Date | null; } /** @@ -102,8 +108,9 @@ export function StorageFileFromJSONTyped(json: any, ignoreDiscriminator: boolean 'size': json['size'] == null ? undefined : json['size'], 'hash': json['hash'] == null ? undefined : json['hash'], 'etag': json['etag'] == null ? undefined : json['etag'], - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])), }; } @@ -125,8 +132,9 @@ export function StorageFileToJSONTyped(value?: StorageFile | null, ignoreDiscrim 'size': value['size'], 'hash': value['hash'], 'etag': value['etag'], - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), + 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()), + 'deleted_at': value['deletedAt'] == null ? undefined : ((value['deletedAt'] as any).toISOString()), }; } diff --git a/src/models/TokenHintType.ts b/src/models/TokenHintType.ts index 391bdca..54ae189 100644 --- a/src/models/TokenHintType.ts +++ b/src/models/TokenHintType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/TokenRequest.ts b/src/models/TokenRequest.ts index 308d76a..c45a6eb 100644 --- a/src/models/TokenRequest.ts +++ b/src/models/TokenRequest.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/TokenResponse.ts b/src/models/TokenResponse.ts index fefb7d5..769c3f6 100644 --- a/src/models/TokenResponse.ts +++ b/src/models/TokenResponse.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/TokenType.ts b/src/models/TokenType.ts index 51b59f3..c1ae12a 100644 --- a/src/models/TokenType.ts +++ b/src/models/TokenType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/UpdateProfile.ts b/src/models/UpdateProfile.ts index 4e7b2a3..c0d3411 100644 --- a/src/models/UpdateProfile.ts +++ b/src/models/UpdateProfile.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/UserInfo.ts b/src/models/UserInfo.ts index a18de3f..49a5613 100644 --- a/src/models/UserInfo.ts +++ b/src/models/UserInfo.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,12 +33,6 @@ export interface UserInfo { * @memberof UserInfo */ id?: string; - /** - * - * @type {string} - * @memberof UserInfo - */ - uuid?: string; /** * * @type {string} @@ -56,7 +50,7 @@ export interface UserInfo { * @type {string} * @memberof UserInfo */ - email?: string | null; + emailAddress?: string | null; /** * * @type {boolean} @@ -104,13 +98,13 @@ export interface UserInfo { * @type {Date} * @memberof UserInfo */ - created?: Date; + createdAt?: Date; /** * * @type {Date} * @memberof UserInfo */ - updated?: Date | null; + updatedAt?: Date | null; } @@ -134,10 +128,9 @@ export function UserInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): return { 'id': json['id'] == null ? undefined : json['id'], - 'uuid': json['uuid'] == null ? undefined : json['uuid'], 'name': json['name'], 'displayName': json['display_name'] == null ? undefined : json['display_name'], - 'email': json['email'] == null ? undefined : json['email'], + 'emailAddress': json['email_address'] == null ? undefined : json['email_address'], 'emailVerified': json['email_verified'] == null ? undefined : json['email_verified'], 'type': json['type'] == null ? undefined : UserTypeFromJSON(json['type']), 'language': json['language'] == null ? undefined : json['language'], @@ -145,8 +138,8 @@ export function UserInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): 'currency': json['currency'] == null ? undefined : json['currency'], 'photoUrl': json['photo_url'] == null ? undefined : json['photo_url'], 'permissions': json['permissions'] == null ? undefined : json['permissions'], - 'created': json['created'] == null ? undefined : (new Date(json['created'])), - 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), + 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), }; } @@ -162,10 +155,9 @@ export function UserInfoToJSONTyped(value?: UserInfo | null, ignoreDiscriminator return { 'id': value['id'], - 'uuid': value['uuid'], 'name': value['name'], 'display_name': value['displayName'], - 'email': value['email'], + 'email_address': value['emailAddress'], 'email_verified': value['emailVerified'], 'type': UserTypeToJSON(value['type']), 'language': value['language'], @@ -173,8 +165,8 @@ export function UserInfoToJSONTyped(value?: UserInfo | null, ignoreDiscriminator 'currency': value['currency'], 'photo_url': value['photoUrl'], 'permissions': value['permissions'], - 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), - 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), + 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()), }; } diff --git a/src/models/UserType.ts b/src/models/UserType.ts index fda4fc9..9e58c4e 100644 --- a/src/models/UserType.ts +++ b/src/models/UserType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/index.ts b/src/models/index.ts index 0982d62..f59d54f 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -1,6 +1,5 @@ /* tslint:disable */ /* eslint-disable */ -export * from './Account'; export * from './Application'; export * from './ApplicationType'; export * from './AuthorizeRequest'; @@ -11,6 +10,7 @@ export * from './CodeChallengeMethod'; export * from './CodeResponse'; export * from './CreateUser'; export * from './CryptoViewModel'; +export * from './ExternalAccount'; export * from './Game'; export * from './GameServer'; export * from './GameServerCluster'; @@ -22,12 +22,12 @@ export * from './GroupApplication'; export * from './GroupMember'; export * from './GroupRank'; export * from './HashViewModel'; +export * from './IdentityProviderType'; export * from './IntrospectRequest'; export * from './IntrospectResponse'; export * from './IpAddress'; export * from './LeaderboardItem'; export * from './LeaderboardOrder'; -export * from './LoginProvider'; export * from './Package'; export * from './PackageRelease'; export * from './Product'; diff --git a/src/runtime.ts b/src/runtime.ts index 5d24ca2..f99a4e6 100644 --- a/src/runtime.ts +++ b/src/runtime.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.3.0 + * The version of the OpenAPI document: 1.4.2 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). From de369de94b547df10d99a00bb44400ffe8cd7f88 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Mon, 15 Jun 2026 20:24:05 -0300 Subject: [PATCH 5/5] Update api to 1.4.3 --- package.json | 2 +- src/apis/TribufuGeneratedApi.ts | 2 +- src/models/Application.ts | 2 +- src/models/ApplicationType.ts | 2 +- src/models/AuthorizeRequest.ts | 2 +- src/models/Client.ts | 2 +- src/models/ClientInfo.ts | 2 +- src/models/ClientType.ts | 2 +- src/models/CodeChallengeMethod.ts | 2 +- src/models/CodeResponse.ts | 2 +- src/models/CreateUser.ts | 2 +- src/models/CryptoViewModel.ts | 2 +- src/models/ExternalAccount.ts | 2 +- src/models/Game.ts | 2 +- src/models/GameServer.ts | 2 +- src/models/GameServerCluster.ts | 2 +- src/models/GameServerQuery.ts | 2 +- src/models/GameServerStatus.ts | 2 +- src/models/GrantType.ts | 2 +- src/models/Group.ts | 2 +- src/models/GroupApplication.ts | 2 +- src/models/GroupMember.ts | 2 +- src/models/GroupRank.ts | 2 +- src/models/HashViewModel.ts | 2 +- src/models/IdentityProviderType.ts | 2 +- src/models/IntrospectRequest.ts | 2 +- src/models/IntrospectResponse.ts | 2 +- src/models/IpAddress.ts | 2 +- src/models/LeaderboardItem.ts | 2 +- src/models/LeaderboardOrder.ts | 2 +- src/models/Package.ts | 2 +- src/models/PackageRelease.ts | 2 +- src/models/Product.ts | 2 +- src/models/ProductPrice.ts | 2 +- src/models/ProductType.ts | 2 +- src/models/Profile.ts | 2 +- src/models/ProfileGame.ts | 2 +- src/models/ProfileGroup.ts | 2 +- src/models/ResponseType.ts | 2 +- src/models/RevokeRequest.ts | 2 +- src/models/Search.ts | 2 +- src/models/SearchType.ts | 2 +- src/models/ServerMetrics.ts | 2 +- src/models/StorageFile.ts | 2 +- src/models/TokenHintType.ts | 2 +- src/models/TokenRequest.ts | 2 +- src/models/TokenResponse.ts | 2 +- src/models/TokenType.ts | 2 +- src/models/UpdateProfile.ts | 2 +- src/models/UserInfo.ts | 2 +- src/models/UserType.ts | 2 +- src/runtime.ts | 2 +- 52 files changed, 52 insertions(+), 52 deletions(-) diff --git a/package.json b/package.json index 67962b7..7a2da5c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tribufu", - "version": "1.4.2", + "version": "1.4.3", "description": "Tribufu JS SDK", "repository": "https://github.com/tribufu/tribufu-js", "author": "Tribufu ", diff --git a/src/apis/TribufuGeneratedApi.ts b/src/apis/TribufuGeneratedApi.ts index b1626c2..4779df3 100644 --- a/src/apis/TribufuGeneratedApi.ts +++ b/src/apis/TribufuGeneratedApi.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Application.ts b/src/models/Application.ts index fed3d8c..6c15f88 100644 --- a/src/models/Application.ts +++ b/src/models/Application.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ApplicationType.ts b/src/models/ApplicationType.ts index 9499ea4..60778d0 100644 --- a/src/models/ApplicationType.ts +++ b/src/models/ApplicationType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/AuthorizeRequest.ts b/src/models/AuthorizeRequest.ts index 755293f..95b7f39 100644 --- a/src/models/AuthorizeRequest.ts +++ b/src/models/AuthorizeRequest.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Client.ts b/src/models/Client.ts index ff86122..ed5f0ca 100644 --- a/src/models/Client.ts +++ b/src/models/Client.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ClientInfo.ts b/src/models/ClientInfo.ts index ddaec87..e8920b0 100644 --- a/src/models/ClientInfo.ts +++ b/src/models/ClientInfo.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ClientType.ts b/src/models/ClientType.ts index 64304c1..8fe029d 100644 --- a/src/models/ClientType.ts +++ b/src/models/ClientType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CodeChallengeMethod.ts b/src/models/CodeChallengeMethod.ts index 1168f80..02d92b6 100644 --- a/src/models/CodeChallengeMethod.ts +++ b/src/models/CodeChallengeMethod.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CodeResponse.ts b/src/models/CodeResponse.ts index e00c7b6..c8420db 100644 --- a/src/models/CodeResponse.ts +++ b/src/models/CodeResponse.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CreateUser.ts b/src/models/CreateUser.ts index e256cc8..3385b9d 100644 --- a/src/models/CreateUser.ts +++ b/src/models/CreateUser.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/CryptoViewModel.ts b/src/models/CryptoViewModel.ts index 13440e5..a6c33f5 100644 --- a/src/models/CryptoViewModel.ts +++ b/src/models/CryptoViewModel.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ExternalAccount.ts b/src/models/ExternalAccount.ts index a3fe8a2..5254fc0 100644 --- a/src/models/ExternalAccount.ts +++ b/src/models/ExternalAccount.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Game.ts b/src/models/Game.ts index edc9e96..afa4873 100644 --- a/src/models/Game.ts +++ b/src/models/Game.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GameServer.ts b/src/models/GameServer.ts index c44a2dc..9114040 100644 --- a/src/models/GameServer.ts +++ b/src/models/GameServer.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GameServerCluster.ts b/src/models/GameServerCluster.ts index fb58443..c71e18f 100644 --- a/src/models/GameServerCluster.ts +++ b/src/models/GameServerCluster.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GameServerQuery.ts b/src/models/GameServerQuery.ts index 37fd864..ccc7364 100644 --- a/src/models/GameServerQuery.ts +++ b/src/models/GameServerQuery.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GameServerStatus.ts b/src/models/GameServerStatus.ts index 3af0c6f..2ab69b5 100644 --- a/src/models/GameServerStatus.ts +++ b/src/models/GameServerStatus.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GrantType.ts b/src/models/GrantType.ts index e26718c..b8e6d83 100644 --- a/src/models/GrantType.ts +++ b/src/models/GrantType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Group.ts b/src/models/Group.ts index 2269081..23831ed 100644 --- a/src/models/Group.ts +++ b/src/models/Group.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GroupApplication.ts b/src/models/GroupApplication.ts index d4dcd94..307e66c 100644 --- a/src/models/GroupApplication.ts +++ b/src/models/GroupApplication.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GroupMember.ts b/src/models/GroupMember.ts index 334275d..0da09c7 100644 --- a/src/models/GroupMember.ts +++ b/src/models/GroupMember.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/GroupRank.ts b/src/models/GroupRank.ts index 89880b5..600e50a 100644 --- a/src/models/GroupRank.ts +++ b/src/models/GroupRank.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/HashViewModel.ts b/src/models/HashViewModel.ts index 4d1ea0f..6c031ab 100644 --- a/src/models/HashViewModel.ts +++ b/src/models/HashViewModel.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/IdentityProviderType.ts b/src/models/IdentityProviderType.ts index 756295a..3041994 100644 --- a/src/models/IdentityProviderType.ts +++ b/src/models/IdentityProviderType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/IntrospectRequest.ts b/src/models/IntrospectRequest.ts index 8c7b325..9bba12c 100644 --- a/src/models/IntrospectRequest.ts +++ b/src/models/IntrospectRequest.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/IntrospectResponse.ts b/src/models/IntrospectResponse.ts index 53fcd7d..fb1e057 100644 --- a/src/models/IntrospectResponse.ts +++ b/src/models/IntrospectResponse.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/IpAddress.ts b/src/models/IpAddress.ts index 819671c..7986a43 100644 --- a/src/models/IpAddress.ts +++ b/src/models/IpAddress.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/LeaderboardItem.ts b/src/models/LeaderboardItem.ts index 909265d..87dd307 100644 --- a/src/models/LeaderboardItem.ts +++ b/src/models/LeaderboardItem.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/LeaderboardOrder.ts b/src/models/LeaderboardOrder.ts index 5c785a3..3d07b2c 100644 --- a/src/models/LeaderboardOrder.ts +++ b/src/models/LeaderboardOrder.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Package.ts b/src/models/Package.ts index 4842548..4d41353 100644 --- a/src/models/Package.ts +++ b/src/models/Package.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/PackageRelease.ts b/src/models/PackageRelease.ts index f2a240d..a1cb97a 100644 --- a/src/models/PackageRelease.ts +++ b/src/models/PackageRelease.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Product.ts b/src/models/Product.ts index 72301d4..53f7350 100644 --- a/src/models/Product.ts +++ b/src/models/Product.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ProductPrice.ts b/src/models/ProductPrice.ts index e908c66..d8f01a0 100644 --- a/src/models/ProductPrice.ts +++ b/src/models/ProductPrice.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ProductType.ts b/src/models/ProductType.ts index 0f1ce90..cbeff65 100644 --- a/src/models/ProductType.ts +++ b/src/models/ProductType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Profile.ts b/src/models/Profile.ts index 534745a..9bb9051 100644 --- a/src/models/Profile.ts +++ b/src/models/Profile.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ProfileGame.ts b/src/models/ProfileGame.ts index 6a01f67..0779557 100644 --- a/src/models/ProfileGame.ts +++ b/src/models/ProfileGame.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ProfileGroup.ts b/src/models/ProfileGroup.ts index 48b0931..8d1a9e5 100644 --- a/src/models/ProfileGroup.ts +++ b/src/models/ProfileGroup.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ResponseType.ts b/src/models/ResponseType.ts index b43c4b3..e57d21d 100644 --- a/src/models/ResponseType.ts +++ b/src/models/ResponseType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/RevokeRequest.ts b/src/models/RevokeRequest.ts index 73a3384..7c37a5b 100644 --- a/src/models/RevokeRequest.ts +++ b/src/models/RevokeRequest.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/Search.ts b/src/models/Search.ts index 02dab6a..a41c45d 100644 --- a/src/models/Search.ts +++ b/src/models/Search.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/SearchType.ts b/src/models/SearchType.ts index d808f08..4be932b 100644 --- a/src/models/SearchType.ts +++ b/src/models/SearchType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/ServerMetrics.ts b/src/models/ServerMetrics.ts index acf54bb..b3504b1 100644 --- a/src/models/ServerMetrics.ts +++ b/src/models/ServerMetrics.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/StorageFile.ts b/src/models/StorageFile.ts index 059ef6d..135d113 100644 --- a/src/models/StorageFile.ts +++ b/src/models/StorageFile.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/TokenHintType.ts b/src/models/TokenHintType.ts index 54ae189..8136152 100644 --- a/src/models/TokenHintType.ts +++ b/src/models/TokenHintType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/TokenRequest.ts b/src/models/TokenRequest.ts index c45a6eb..6d10d12 100644 --- a/src/models/TokenRequest.ts +++ b/src/models/TokenRequest.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/TokenResponse.ts b/src/models/TokenResponse.ts index 769c3f6..c2b0035 100644 --- a/src/models/TokenResponse.ts +++ b/src/models/TokenResponse.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/TokenType.ts b/src/models/TokenType.ts index c1ae12a..261d235 100644 --- a/src/models/TokenType.ts +++ b/src/models/TokenType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/UpdateProfile.ts b/src/models/UpdateProfile.ts index c0d3411..e0ec4b5 100644 --- a/src/models/UpdateProfile.ts +++ b/src/models/UpdateProfile.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/UserInfo.ts b/src/models/UserInfo.ts index 49a5613..d69933d 100644 --- a/src/models/UserInfo.ts +++ b/src/models/UserInfo.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/models/UserType.ts b/src/models/UserType.ts index 9e58c4e..094d362 100644 --- a/src/models/UserType.ts +++ b/src/models/UserType.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/runtime.ts b/src/runtime.ts index f99a4e6..d8fbde9 100644 --- a/src/runtime.ts +++ b/src/runtime.ts @@ -4,7 +4,7 @@ * Tribufu API * API to access Tribufu services. * - * The version of the OpenAPI document: 1.4.2 + * The version of the OpenAPI document: 1.4.3 * Contact: contact@tribufu.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).