Loading console/ui/src/api.gen.ts +47 −49 Original line number Diff line number Diff line Loading @@ -20,37 +20,37 @@ export interface ConfigWarning { /** */ export interface StatusListStatus { // Latest average response latency in milliseconds. avg_latency_ms?: ; avg_latency_ms?: number; // Average response latency in milliseconds over the last hour. avg_latency_ms_hr?: ; avg_latency_ms_hr?: number; // Average response latency in milliseconds over the last minute. avg_latency_ms_min?: ; avg_latency_ms_min?: number; // Current number of running goroutines. goroutine_count?: number; // Latest input bandwidth usage. input_kbs?: ; input_kbs?: number; // Input bandwidth usage over the last hour. input_kbs_hr?: ; input_kbs_hr?: number; // Input bandwidth usage over the last minute. input_kbs_min?: ; input_kbs_min?: number; // Current number of active authoritative matches. match_count?: number; // Node name. name?: string; // Latest output bandwidth usage. output_kbs?: ; output_kbs?: number; // Output bandwidth usage over the last hour. output_kbs_ht?: ; output_kbs_ht?: number; // Output bandwidth usage over the last minute. output_kbs_min?: ; output_kbs_min?: number; // Currently registered live presences. presence_count?: number; // Latest number of requests per second. rate_sec?: ; rate_sec?: number; // Number of requests per second over the last hour. rate_sec_hr?: ; rate_sec_hr?: number; // Number of requests per second over the last minute. rate_sec_min?: ; rate_sec_min?: number; // Currently connected sessions. session_count?: number; } Loading Loading @@ -319,15 +319,13 @@ export interface ConsoleWalletLedger { // The user ID this wallet ledger item belongs to. user_id?: string; } /** * List of wallet ledger items for a particular user. */ /** List of wallet ledger items for a particular user. */ export interface ConsoleWalletLedgerList { // A list of wallet ledger items. items?: Array<ConsoleWalletLedger>; } /** * A console user session. */ export interface NakamaconsoleSession { /** A console user session. */ export interface ConsoleSession { // Session token. token?: string; } Loading @@ -339,7 +337,7 @@ The JSON representation for `Empty` is empty JSON object `{}`. */ export interface ProtobufEmpty { } export const NakamaApi = (configuration: ConfigurationParameters = { export const ConsoleApi = (configuration: ConfigurationParameters = { basePath: BASE_PATH, bearerToken: "", password: "", Loading Loading @@ -376,7 +374,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { } fetchOptions.headers = {...headers, ...options.headers}; fetchOptions.body = body fetchOptions.body = body; return Promise.race([ fetch(configuration.basePath + urlPath + urlQuery, fetchOptions).then((response) => { Loading @@ -403,7 +401,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { record_deletion: recordDeletion, } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -418,7 +416,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -433,7 +431,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -448,7 +446,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -463,7 +461,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -478,7 +476,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -497,7 +495,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -512,7 +510,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -531,7 +529,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -546,7 +544,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -561,7 +559,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -576,7 +574,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -591,7 +589,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -606,7 +604,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -621,7 +619,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -636,7 +634,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -651,7 +649,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -666,7 +664,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -685,12 +683,12 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, /** Authenticate a console user with username and password. */ authenticate(body: ConsoleAuthenticateRequest, options: any = {}): Promise<AkamaconsoleSession> { authenticate(body: ConsoleAuthenticateRequest, options: any = {}): Promise<ConsoleSession> { if (body === null || body === undefined) { throw new Error("'body' is a required parameter but is null or undefined."); } Loading @@ -699,7 +697,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; _body = JSON.stringify(body || {}); return this.doFetch(urlPath, "POST", queryParams, _body, options) Loading @@ -711,7 +709,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -722,7 +720,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -733,7 +731,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -745,7 +743,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { user_id: userId, } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -769,7 +767,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { version: version, } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -792,7 +790,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -819,7 +817,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -830,7 +828,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -845,7 +843,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { cursor: cursor, } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading Loading
console/ui/src/api.gen.ts +47 −49 Original line number Diff line number Diff line Loading @@ -20,37 +20,37 @@ export interface ConfigWarning { /** */ export interface StatusListStatus { // Latest average response latency in milliseconds. avg_latency_ms?: ; avg_latency_ms?: number; // Average response latency in milliseconds over the last hour. avg_latency_ms_hr?: ; avg_latency_ms_hr?: number; // Average response latency in milliseconds over the last minute. avg_latency_ms_min?: ; avg_latency_ms_min?: number; // Current number of running goroutines. goroutine_count?: number; // Latest input bandwidth usage. input_kbs?: ; input_kbs?: number; // Input bandwidth usage over the last hour. input_kbs_hr?: ; input_kbs_hr?: number; // Input bandwidth usage over the last minute. input_kbs_min?: ; input_kbs_min?: number; // Current number of active authoritative matches. match_count?: number; // Node name. name?: string; // Latest output bandwidth usage. output_kbs?: ; output_kbs?: number; // Output bandwidth usage over the last hour. output_kbs_ht?: ; output_kbs_ht?: number; // Output bandwidth usage over the last minute. output_kbs_min?: ; output_kbs_min?: number; // Currently registered live presences. presence_count?: number; // Latest number of requests per second. rate_sec?: ; rate_sec?: number; // Number of requests per second over the last hour. rate_sec_hr?: ; rate_sec_hr?: number; // Number of requests per second over the last minute. rate_sec_min?: ; rate_sec_min?: number; // Currently connected sessions. session_count?: number; } Loading Loading @@ -319,15 +319,13 @@ export interface ConsoleWalletLedger { // The user ID this wallet ledger item belongs to. user_id?: string; } /** * List of wallet ledger items for a particular user. */ /** List of wallet ledger items for a particular user. */ export interface ConsoleWalletLedgerList { // A list of wallet ledger items. items?: Array<ConsoleWalletLedger>; } /** * A console user session. */ export interface NakamaconsoleSession { /** A console user session. */ export interface ConsoleSession { // Session token. token?: string; } Loading @@ -339,7 +337,7 @@ The JSON representation for `Empty` is empty JSON object `{}`. */ export interface ProtobufEmpty { } export const NakamaApi = (configuration: ConfigurationParameters = { export const ConsoleApi = (configuration: ConfigurationParameters = { basePath: BASE_PATH, bearerToken: "", password: "", Loading Loading @@ -376,7 +374,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { } fetchOptions.headers = {...headers, ...options.headers}; fetchOptions.body = body fetchOptions.body = body; return Promise.race([ fetch(configuration.basePath + urlPath + urlQuery, fetchOptions).then((response) => { Loading @@ -403,7 +401,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { record_deletion: recordDeletion, } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -418,7 +416,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -433,7 +431,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -448,7 +446,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -463,7 +461,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -478,7 +476,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -497,7 +495,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -512,7 +510,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -531,7 +529,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -546,7 +544,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -561,7 +559,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -576,7 +574,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -591,7 +589,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -606,7 +604,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -621,7 +619,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -636,7 +634,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -651,7 +649,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -666,7 +664,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -685,12 +683,12 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, /** Authenticate a console user with username and password. */ authenticate(body: ConsoleAuthenticateRequest, options: any = {}): Promise<AkamaconsoleSession> { authenticate(body: ConsoleAuthenticateRequest, options: any = {}): Promise<ConsoleSession> { if (body === null || body === undefined) { throw new Error("'body' is a required parameter but is null or undefined."); } Loading @@ -699,7 +697,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; _body = JSON.stringify(body || {}); return this.doFetch(urlPath, "POST", queryParams, _body, options) Loading @@ -711,7 +709,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -722,7 +720,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -733,7 +731,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -745,7 +743,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { user_id: userId, } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading @@ -769,7 +767,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { version: version, } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -792,7 +790,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "POST", queryParams, _body, options) }, Loading @@ -819,7 +817,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -830,7 +828,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { const queryParams = { } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "DELETE", queryParams, _body, options) }, Loading @@ -845,7 +843,7 @@ export const NakamaApi = (configuration: ConfigurationParameters = { cursor: cursor, } as any; var _body = null; let _body = null; return this.doFetch(urlPath, "GET", queryParams, _body, options) }, Loading