diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 7253a5c..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -min-release-age=7 diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index fcd3c12..39fd042 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,5 +1,6 @@ src/apis/TribufuGeneratedApi.ts src/apis/index.ts +src/models/Account.ts src/models/Application.ts src/models/ApplicationType.ts src/models/AuthorizeRequest.ts @@ -10,7 +11,6 @@ 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/examples/anonymous.js b/examples/anonymous.js deleted file mode 100644 index 0f59621..0000000 --- a/examples/anonymous.js +++ /dev/null @@ -1,14 +0,0 @@ -// 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(); diff --git a/package.json b/package.json index 7a2da5c..6d98383 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tribufu", - "version": "1.4.3", + "version": "1.3.0", "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 4779df3..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.4.3 + * 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). @@ -15,13 +15,13 @@ import * as runtime from '../runtime'; import type { + Account, AuthorizeRequest, Client, ClientInfo, CodeResponse, CreateUser, CryptoViewModel, - ExternalAccount, Game, GameServer, GameServerCluster, @@ -49,6 +49,8 @@ import type { UserInfo, } from '../models/index'; import { + AccountFromJSON, + AccountToJSON, AuthorizeRequestFromJSON, AuthorizeRequestToJSON, ClientFromJSON, @@ -61,8 +63,6 @@ import { CreateUserToJSON, CryptoViewModelFromJSON, CryptoViewModelToJSON, - ExternalAccountFromJSON, - ExternalAccountToJSON, GameFromJSON, GameToJSON, GameServerFromJSON, @@ -208,7 +208,7 @@ export interface GenerateFlakeIdRequest { } export interface GenerateFlakeIdFromTimestampRequest { - timestamp: number; + timestamp: string; amount?: number; } @@ -559,6 +559,10 @@ 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', @@ -597,6 +601,10 @@ 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', @@ -634,6 +642,10 @@ 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', @@ -671,6 +683,10 @@ 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', @@ -709,6 +725,10 @@ 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', @@ -740,6 +760,10 @@ 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', @@ -771,6 +795,10 @@ 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', @@ -801,6 +829,10 @@ 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', @@ -831,6 +863,10 @@ 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', @@ -862,6 +898,10 @@ 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', @@ -894,6 +934,10 @@ 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', @@ -925,6 +969,10 @@ 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', @@ -954,6 +1002,10 @@ 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', @@ -984,6 +1036,10 @@ 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', @@ -1019,6 +1075,10 @@ 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', @@ -1053,6 +1113,10 @@ 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', @@ -1087,6 +1151,10 @@ 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', @@ -1122,6 +1190,10 @@ 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', @@ -1158,6 +1230,10 @@ 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', @@ -1193,6 +1269,10 @@ 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', @@ -1227,6 +1307,10 @@ 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', @@ -1249,7 +1333,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) { @@ -1258,6 +1342,10 @@ 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', @@ -1272,7 +1360,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(); } @@ -1281,7 +1369,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', @@ -1297,6 +1385,10 @@ 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', @@ -1311,7 +1403,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: number, amount?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async generateFlakeIdFromTimestamp(timestamp: string, amount?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const response = await this.generateFlakeIdFromTimestampRaw({ timestamp: timestamp, amount: amount }, initOverrides); return await response.value(); } @@ -1333,6 +1425,10 @@ 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', @@ -1369,6 +1465,10 @@ 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', @@ -1404,6 +1504,10 @@ 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', @@ -1431,6 +1535,10 @@ 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', @@ -1470,6 +1578,10 @@ 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', @@ -1497,6 +1609,10 @@ 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', @@ -1531,6 +1647,10 @@ 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', @@ -1573,6 +1693,10 @@ 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', @@ -1616,6 +1740,10 @@ 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', @@ -1652,6 +1780,10 @@ 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', @@ -1688,6 +1820,10 @@ 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', @@ -1724,6 +1860,10 @@ 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', @@ -1760,6 +1900,10 @@ 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', @@ -1804,6 +1948,10 @@ 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', @@ -1848,6 +1996,10 @@ 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', @@ -1885,6 +2037,10 @@ 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', @@ -1922,6 +2078,10 @@ 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', @@ -1966,6 +2126,10 @@ 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', @@ -2010,6 +2174,10 @@ 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', @@ -2063,6 +2231,10 @@ 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', @@ -2106,6 +2278,10 @@ 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', @@ -2150,6 +2326,10 @@ 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', @@ -2179,6 +2359,10 @@ 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', @@ -2208,6 +2392,10 @@ 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', @@ -2237,6 +2425,10 @@ 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', @@ -2266,6 +2458,10 @@ 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', @@ -2320,6 +2516,10 @@ 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', @@ -2357,6 +2557,10 @@ 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', @@ -2392,6 +2596,10 @@ 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', @@ -2427,6 +2635,10 @@ 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', @@ -2462,6 +2674,10 @@ 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', @@ -2497,6 +2713,10 @@ 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', @@ -2532,6 +2752,10 @@ 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', @@ -2568,6 +2792,10 @@ 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', @@ -2602,6 +2830,10 @@ 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', @@ -2641,6 +2873,10 @@ 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', @@ -2673,6 +2909,10 @@ 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', @@ -2708,6 +2948,10 @@ 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', @@ -2744,6 +2988,10 @@ 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', @@ -2779,6 +3027,10 @@ 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', @@ -2815,6 +3067,10 @@ 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', @@ -2842,6 +3098,10 @@ 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', @@ -2863,7 +3123,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', @@ -2875,6 +3135,10 @@ 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', @@ -2882,14 +3146,14 @@ export class TribufuGeneratedApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ExternalAccountFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountFromJSON)); } /** * 🔒 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(); } @@ -2910,6 +3174,10 @@ 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', @@ -2946,6 +3214,10 @@ 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', @@ -2982,6 +3254,10 @@ 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', @@ -3018,6 +3294,10 @@ 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', @@ -3054,6 +3334,10 @@ 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', @@ -3090,6 +3374,10 @@ 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', @@ -3119,6 +3407,10 @@ 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', @@ -3154,6 +3446,10 @@ 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', @@ -3190,6 +3486,10 @@ 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', @@ -3226,6 +3526,10 @@ 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', @@ -3262,6 +3566,10 @@ 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', @@ -3298,6 +3606,10 @@ 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', @@ -3334,6 +3646,10 @@ 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', @@ -3371,6 +3687,10 @@ 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', @@ -3408,6 +3728,10 @@ 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', @@ -3444,6 +3768,10 @@ 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', @@ -3480,6 +3808,10 @@ 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', @@ -3524,6 +3856,10 @@ 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', @@ -3568,6 +3904,10 @@ 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', @@ -3599,6 +3939,10 @@ 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', @@ -3630,6 +3974,10 @@ 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', @@ -3661,6 +4009,10 @@ 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', @@ -3692,6 +4044,10 @@ 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', @@ -3722,6 +4078,10 @@ 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', @@ -3751,6 +4111,10 @@ 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', @@ -3780,6 +4144,10 @@ 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', @@ -3818,6 +4186,10 @@ 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', @@ -3855,6 +4227,10 @@ 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', @@ -3892,6 +4268,10 @@ 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', @@ -3930,6 +4310,10 @@ 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', @@ -3969,6 +4353,10 @@ 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', @@ -4007,6 +4395,10 @@ 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', @@ -4044,6 +4436,10 @@ 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', @@ -4081,6 +4477,10 @@ 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', @@ -4120,6 +4520,10 @@ 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 new file mode 100644 index 0000000..32aff11 --- /dev/null +++ b/src/models/Account.ts @@ -0,0 +1,133 @@ +/* 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 6c15f88..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.4.3 + * 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} @@ -92,19 +92,13 @@ export interface Application { * @type {Date} * @memberof Application */ - createdAt?: Date; + created?: Date; /** * * @type {Date} * @memberof Application */ - updatedAt?: Date | null; - /** - * - * @type {Date} - * @memberof Application - */ - deletedAt?: Date | null; + updated?: Date | null; } @@ -137,9 +131,8 @@ 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'], - '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'])), + 'created': json['created'] == null ? undefined : (new Date(json['created'])), + 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), }; } @@ -164,9 +157,8 @@ export function ApplicationToJSONTyped(value?: Application | null, ignoreDiscrim 'capsule_image_url': value['capsuleImageUrl'], 'library_image_url': value['libraryImageUrl'], 'slug': value['slug'], - '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()), + 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), + 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), }; } diff --git a/src/models/ApplicationType.ts b/src/models/ApplicationType.ts index 60778d0..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.4.3 + * 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). @@ -18,7 +18,7 @@ * @export */ export const ApplicationType = { - Software: 'software', + Application: 'application', 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 95b7f39..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.4.3 + * 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 ed5f0ca..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.4.3 + * 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). @@ -98,19 +98,13 @@ export interface Client { * @type {Date} * @memberof Client */ - createdAt?: Date; + created?: Date; /** * * @type {Date} * @memberof Client */ - updatedAt?: Date | null; - /** - * - * @type {Date} - * @memberof Client - */ - deletedAt?: Date | null; + updated?: Date | null; } @@ -144,9 +138,8 @@ 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'], - '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'])), + 'created': json['created'] == null ? undefined : (new Date(json['created'])), + 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), }; } @@ -171,9 +164,8 @@ export function ClientToJSONTyped(value?: Omit | null, ig 'background_url': value['backgroundUrl'], 'redirects': value['redirects'], 'scopes': value['scopes'], - '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()), + 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), + 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), }; } diff --git a/src/models/ClientInfo.ts b/src/models/ClientInfo.ts index e8920b0..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.4.3 + * 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 8fe029d..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.4.3 + * 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 02d92b6..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.4.3 + * 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 c8420db..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.4.3 + * 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 3385b9d..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.4.3 + * 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). @@ -24,7 +24,7 @@ export interface CreateUser { * @type {string} * @memberof CreateUser */ - uuid?: string; + uuid?: string | null; /** * * @type {string} diff --git a/src/models/CryptoViewModel.ts b/src/models/CryptoViewModel.ts index a6c33f5..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.4.3 + * 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/ExternalAccount.ts b/src/models/ExternalAccount.ts deleted file mode 100644 index 5254fc0..0000000 --- a/src/models/ExternalAccount.ts +++ /dev/null @@ -1,141 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Tribufu API - * API to access Tribufu services. - * - * 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). - * 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 afa4873..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.4.3 + * 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} @@ -92,19 +92,13 @@ export interface Game { * @type {Date} * @memberof Game */ - createdAt?: Date; + created?: Date; /** * * @type {Date} * @memberof Game */ - updatedAt?: Date | null; - /** - * - * @type {Date} - * @memberof Game - */ - deletedAt?: Date | null; + updated?: Date | null; /** * * @type {boolean} @@ -179,9 +173,8 @@ 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'], - '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'])), + 'created': json['created'] == null ? undefined : (new Date(json['created'])), + 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), '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'], @@ -213,9 +206,8 @@ export function GameToJSONTyped(value?: Game | null, ignoreDiscriminator: boolea 'capsule_image_url': value['capsuleImageUrl'], 'library_image_url': value['libraryImageUrl'], 'slug': value['slug'], - '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()), + 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), + 'updated': value['updated'] == null ? undefined : ((value['updated'] 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 9114040..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.4.3 + * 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 GameServer { * @type {string} * @memberof GameServer */ - ownerId?: string; + ownerId?: string | null; /** * * @type {string} @@ -90,7 +90,7 @@ export interface GameServer { * @type {string} * @memberof GameServer */ - clusterId?: string; + clusterId?: string | null; /** * * @type {string} @@ -123,10 +123,10 @@ export interface GameServer { steam?: boolean; /** * - * @type {number} + * @type {string} * @memberof GameServer */ - discordServerId?: number | null; + discordServerId?: string | null; /** * * @type {string} @@ -138,19 +138,13 @@ export interface GameServer { * @type {Date} * @memberof GameServer */ - createdAt?: Date; + created?: Date; /** * * @type {Date} * @memberof GameServer */ - updatedAt?: Date | null; - /** - * - * @type {Date} - * @memberof GameServer - */ - deletedAt?: Date | null; + updated?: Date | null; } /** @@ -192,9 +186,8 @@ 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'], - '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'])), + 'created': json['created'] == null ? undefined : (new Date(json['created'])), + 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), }; } @@ -228,9 +221,8 @@ export function GameServerToJSONTyped(value?: GameServer | null, ignoreDiscrimin 'steam': value['steam'], 'discord_server_id': value['discordServerId'], 'youtube_video_url': value['youtubeVideoUrl'], - '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()), + 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), + 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), }; } diff --git a/src/models/GameServerCluster.ts b/src/models/GameServerCluster.ts index c71e18f..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.4.3 + * 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,10 +63,10 @@ export interface GameServerCluster { ownerId?: string; /** * - * @type {number} + * @type {string} * @memberof GameServerCluster */ - discordServerId?: number | null; + discordServerId?: string | null; /** * * @type {string} @@ -96,19 +96,13 @@ export interface GameServerCluster { * @type {Date} * @memberof GameServerCluster */ - createdAt?: Date; + created?: Date; /** * * @type {Date} * @memberof GameServerCluster */ - updatedAt?: Date | null; - /** - * - * @type {Date} - * @memberof GameServerCluster - */ - deletedAt?: Date | null; + updated?: Date | null; } /** @@ -141,9 +135,8 @@ 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'], - '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'])), + 'created': json['created'] == null ? undefined : (new Date(json['created'])), + 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), }; } @@ -170,9 +163,8 @@ export function GameServerClusterToJSONTyped(value?: GameServerCluster | null, i 'tags': value['tags'], 'comment_count': value['commentCount'], 'server_count': value['serverCount'], - '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()), + 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), + 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), }; } diff --git a/src/models/GameServerQuery.ts b/src/models/GameServerQuery.ts index ccc7364..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.4.3 + * 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). @@ -74,7 +74,7 @@ export interface GameServerQuery { * @type {Date} * @memberof GameServerQuery */ - createdAt?: Date; + created?: 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'], - 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), + 'created': json['created'] == null ? undefined : (new Date(json['created'])), }; } @@ -125,7 +125,7 @@ export function GameServerQueryToJSONTyped(value?: GameServerQuery | null, ignor 'current_players': value['currentPlayers'], 'max_players': value['maxPlayers'], 'motd': value['motd'], - 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), + 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), }; } diff --git a/src/models/GameServerStatus.ts b/src/models/GameServerStatus.ts index 2ab69b5..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.4.3 + * 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 b8e6d83..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.4.3 + * 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 23831ed..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.4.3 + * 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). @@ -108,19 +108,13 @@ export interface Group { * @type {Date} * @memberof Group */ - createdAt?: Date; + created?: Date; /** * * @type {Date} * @memberof Group */ - updatedAt?: Date | null; - /** - * - * @type {Date} - * @memberof Group - */ - deletedAt?: Date | null; + updated?: Date | null; } /** @@ -155,9 +149,8 @@ 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'], - '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'])), + 'created': json['created'] == null ? undefined : (new Date(json['created'])), + 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), }; } @@ -186,9 +179,8 @@ export function GroupToJSONTyped(value?: Group | null, ignoreDiscriminator: bool 'member_count': value['memberCount'], 'follower_count': value['followerCount'], 'view_count': value['viewCount'], - '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()), + 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), + 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), }; } diff --git a/src/models/GroupApplication.ts b/src/models/GroupApplication.ts index 307e66c..876585c 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.3 + * 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/GroupMember.ts b/src/models/GroupMember.ts index 0da09c7..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.4.3 + * 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). @@ -33,6 +33,12 @@ export interface GroupMember { * @memberof GroupMember */ id?: string; + /** + * + * @type {string} + * @memberof GroupMember + */ + uuid?: string; /** * * @type {string} @@ -45,12 +51,24 @@ 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} @@ -85,9 +103,12 @@ 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'])), }; @@ -105,9 +126,12 @@ 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 600e50a..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.4.3 + * 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 6c031ab..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.4.3 + * 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/IdentityProviderType.ts b/src/models/IdentityProviderType.ts deleted file mode 100644 index 3041994..0000000 --- a/src/models/IdentityProviderType.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.4.3 - * 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 9bba12c..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.4.3 + * 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 fb1e057..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.4.3 + * 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 7986a43..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.4.3 + * 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/LeaderboardItem.ts b/src/models/LeaderboardItem.ts index 87dd307..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.4.3 + * 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 3d07b2c..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.4.3 + * 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 new file mode 100644 index 0000000..5901f86 --- /dev/null +++ b/src/models/LoginProvider.ts @@ -0,0 +1,58 @@ +/* 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 4d41353..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.4.3 + * 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). @@ -62,13 +62,13 @@ export interface Package { * @type {string} * @memberof Package */ - applicationId?: string; + applicationId?: string | null; /** * * @type {string} * @memberof Package */ - categoryId?: string; + categoryId?: string | null; /** * * @type {number} @@ -92,19 +92,13 @@ export interface Package { * @type {Date} * @memberof Package */ - createdAt?: Date; + created?: Date; /** * * @type {Date} * @memberof Package */ - updatedAt?: Date | null; - /** - * - * @type {Date} - * @memberof Package - */ - deletedAt?: Date | null; + updated?: Date | null; } /** @@ -136,9 +130,8 @@ 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)), - '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'])), + 'created': json['created'] == null ? undefined : (new Date(json['created'])), + 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), }; } @@ -163,9 +156,8 @@ 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_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()), + 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), + 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), }; } diff --git a/src/models/PackageRelease.ts b/src/models/PackageRelease.ts index a1cb97a..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.4.3 + * 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). @@ -62,19 +62,13 @@ export interface PackageRelease { * @type {Date} * @memberof PackageRelease */ - createdAt?: Date; + created?: Date; /** * * @type {Date} * @memberof PackageRelease */ - updatedAt?: Date | null; - /** - * - * @type {Date} - * @memberof PackageRelease - */ - deletedAt?: Date | null; + updated?: Date | null; } /** @@ -100,9 +94,8 @@ 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)), - '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'])), + 'created': json['created'] == null ? undefined : (new Date(json['created'])), + 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), }; } @@ -121,9 +114,8 @@ export function PackageReleaseToJSONTyped(value?: Omit 'version': value['version'], 'package_id': value['packageId'], 'notes': value['notes'], - '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()), + 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), + 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), }; } diff --git a/src/models/Product.ts b/src/models/Product.ts index 53f7350..78f5ce1 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.3 + * 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). @@ -46,12 +46,6 @@ export interface Product { * @memberof Product */ name: string | null; - /** - * - * @type {string} - * @memberof Product - */ - sku?: string | null; /** * * @type {string} @@ -76,6 +70,12 @@ export interface Product { * @memberof Product */ imageUrl?: string | null; + /** + * + * @type {boolean} + * @memberof Product + */ + isPhysical?: boolean; /** * * @type {Array} @@ -87,19 +87,13 @@ export interface Product { * @type {Date} * @memberof Product */ - createdAt?: Date; + created?: Date; /** * * @type {Date} * @memberof Product */ - updatedAt?: Date | null; - /** - * - * @type {Date} - * @memberof Product - */ - deletedAt?: Date | null; + updated?: Date | null; } @@ -124,15 +118,14 @@ 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)), - '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'])), + 'created': json['created'] == null ? undefined : (new Date(json['created'])), + 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), }; } @@ -149,15 +142,14 @@ 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_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()), + 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), + 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), }; } diff --git a/src/models/ProductPrice.ts b/src/models/ProductPrice.ts index d8f01a0..17a305f 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.3 + * 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). @@ -30,7 +30,7 @@ export interface ProductPrice { * @type {number} * @memberof ProductPrice */ - price?: number; + amount?: number; /** * * @type {number} @@ -58,7 +58,7 @@ export function ProductPriceFromJSONTyped(json: any, ignoreDiscriminator: boolea return { 'currency': json['currency'], - 'price': json['price'] == null ? undefined : json['price'], + 'amount': json['amount'] == null ? undefined : json['amount'], 'renewal': json['renewal'] == null ? undefined : json['renewal'], }; } @@ -75,7 +75,7 @@ export function ProductPriceToJSONTyped(value?: ProductPrice | null, ignoreDiscr return { 'currency': value['currency'], - 'price': value['price'], + 'amount': value['amount'], 'renewal': value['renewal'], }; } diff --git a/src/models/ProductType.ts b/src/models/ProductType.ts index cbeff65..2c1baeb 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.3 + * 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/Profile.ts b/src/models/Profile.ts index 9bb9051..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.4.3 + * 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). @@ -24,79 +24,109 @@ export interface Profile { * @type {string} * @memberof Profile */ - readonly id?: string; + id?: string; /** * * @type {string} * @memberof Profile */ - readonly name?: string | null; + uuid?: string; /** * * @type {string} * @memberof Profile */ - readonly displayName?: string | null; + name?: string | null; + /** + * + * @type {string} + * @memberof Profile + */ + displayName?: string | null; + /** + * + * @type {boolean} + * @memberof Profile + */ + verified?: boolean; /** * * @type {number} * @memberof Profile */ - readonly level?: number; + level?: number; /** * * @type {number} * @memberof Profile */ - readonly experience?: number; + experience?: number; + /** + * + * @type {boolean} + * @memberof Profile + */ + publicBirthday?: boolean; /** * * @type {Date} * @memberof Profile */ - readonly birthday?: Date | null; + birthday?: Date | null; /** * * @type {number} * @memberof Profile */ - readonly points?: number; + points?: number; /** * * @type {string} * @memberof Profile */ - readonly photoUrl?: string | null; + location?: string | null; /** * * @type {string} * @memberof Profile */ - readonly bannerUrl?: string | null; - /** - * - * @type {Date} - * @memberof Profile - */ - readonly lastOnline?: Date | null; + photoUrl?: string | null; /** * * @type {string} * @memberof Profile */ - readonly biography?: string | null; + bannerUrl?: string | null; /** * * @type {Date} * @memberof Profile */ - readonly createdAt?: Date; + lastOnline?: Date | null; + /** + * + * @type {string} + * @memberof Profile + */ + biography?: string | null; + /** + * + * @type {number} + * @memberof Profile + */ + viewCount?: number; /** * * @type {Date} * @memberof Profile */ - readonly updatedAt?: Date | null; + created?: Date; + /** + * + * @type {Date} + * @memberof Profile + */ + updated?: Date | null; } /** @@ -117,18 +147,23 @@ 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'], - 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), - 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + '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'])), }; } @@ -136,13 +171,31 @@ export function ProfileToJSON(json: any): Profile { return ProfileToJSONTyped(json, false); } -export function ProfileToJSONTyped(value?: Omit | null, ignoreDiscriminator: boolean = false): any { +export function ProfileToJSONTyped(value?: Profile | 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 0779557..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.4.3 + * 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 8d1a9e5..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.4.3 + * 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/ResponseType.ts b/src/models/ResponseType.ts index e57d21d..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.4.3 + * 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 7c37a5b..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.4.3 + * 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 a41c45d..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.4.3 + * 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). @@ -50,7 +50,7 @@ export interface Search { * @type {string} * @memberof Search */ - gameId?: string; + gameId?: string | null; } diff --git a/src/models/SearchType.ts b/src/models/SearchType.ts index 4be932b..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.4.3 + * 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 b3504b1..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.4.3 + * 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/StorageFile.ts b/src/models/StorageFile.ts index 135d113..501191a 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.3 + * 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). @@ -66,19 +66,13 @@ export interface StorageFile { * @type {Date} * @memberof StorageFile */ - createdAt?: Date; + created?: Date; /** * * @type {Date} * @memberof StorageFile */ - updatedAt?: Date | null; - /** - * - * @type {Date} - * @memberof StorageFile - */ - deletedAt?: Date | null; + updated?: Date | null; } /** @@ -108,9 +102,8 @@ 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'], - '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'])), + 'created': json['created'] == null ? undefined : (new Date(json['created'])), + 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), }; } @@ -132,9 +125,8 @@ export function StorageFileToJSONTyped(value?: StorageFile | null, ignoreDiscrim 'size': value['size'], 'hash': value['hash'], 'etag': value['etag'], - '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()), + '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 8136152..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.4.3 + * 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 6d10d12..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.4.3 + * 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 c2b0035..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.4.3 + * 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 261d235..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.4.3 + * 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 e0ec4b5..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.4.3 + * 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 d69933d..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.4.3 + * 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). @@ -33,6 +33,12 @@ export interface UserInfo { * @memberof UserInfo */ id?: string; + /** + * + * @type {string} + * @memberof UserInfo + */ + uuid?: string; /** * * @type {string} @@ -50,7 +56,7 @@ export interface UserInfo { * @type {string} * @memberof UserInfo */ - emailAddress?: string | null; + email?: string | null; /** * * @type {boolean} @@ -98,13 +104,13 @@ export interface UserInfo { * @type {Date} * @memberof UserInfo */ - createdAt?: Date; + created?: Date; /** * * @type {Date} * @memberof UserInfo */ - updatedAt?: Date | null; + updated?: Date | null; } @@ -128,9 +134,10 @@ 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'], - 'emailAddress': json['email_address'] == null ? undefined : json['email_address'], + 'email': json['email'] == null ? undefined : json['email'], 'emailVerified': json['email_verified'] == null ? undefined : json['email_verified'], 'type': json['type'] == null ? undefined : UserTypeFromJSON(json['type']), 'language': json['language'] == null ? undefined : json['language'], @@ -138,8 +145,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'], - 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])), - 'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])), + 'created': json['created'] == null ? undefined : (new Date(json['created'])), + 'updated': json['updated'] == null ? undefined : (new Date(json['updated'])), }; } @@ -155,9 +162,10 @@ export function UserInfoToJSONTyped(value?: UserInfo | null, ignoreDiscriminator return { 'id': value['id'], + 'uuid': value['uuid'], 'name': value['name'], 'display_name': value['displayName'], - 'email_address': value['emailAddress'], + 'email': value['email'], 'email_verified': value['emailVerified'], 'type': UserTypeToJSON(value['type']), 'language': value['language'], @@ -165,8 +173,8 @@ export function UserInfoToJSONTyped(value?: UserInfo | null, ignoreDiscriminator 'currency': value['currency'], 'photo_url': value['photoUrl'], 'permissions': value['permissions'], - 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()), - 'updated_at': value['updatedAt'] == null ? undefined : ((value['updatedAt'] as any).toISOString()), + 'created': value['created'] == null ? undefined : ((value['created']).toISOString()), + 'updated': value['updated'] == null ? undefined : ((value['updated'] as any).toISOString()), }; } diff --git a/src/models/UserType.ts b/src/models/UserType.ts index 094d362..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.4.3 + * 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 f59d54f..0982d62 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -1,5 +1,6 @@ /* tslint:disable */ /* eslint-disable */ +export * from './Account'; export * from './Application'; export * from './ApplicationType'; export * from './AuthorizeRequest'; @@ -10,7 +11,6 @@ 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 d8fbde9..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.4.3 + * 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).