@ughuuu/game_server 1.0.374 → 1.0.376
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -5
- package/dist/ApiClient.js +1 -1
- package/dist/api/AdminKVApi.js +305 -0
- package/dist/api/AdminLeaderboardsApi.js +396 -0
- package/dist/api/AdminLobbiesApi.js +190 -0
- package/dist/api/AdminSessionsApi.js +165 -0
- package/dist/api/AdminUsersApi.js +130 -0
- package/dist/api/AuthenticationApi.js +82 -1
- package/dist/api/FriendsApi.js +6 -4
- package/dist/api/HealthApi.js +1 -1
- package/dist/api/HooksApi.js +6 -4
- package/dist/api/KVApi.js +95 -0
- package/dist/api/LeaderboardsApi.js +7 -7
- package/dist/api/LobbiesApi.js +6 -6
- package/dist/api/UsersApi.js +17 -15
- package/dist/index.js +269 -3
- package/dist/model/AdminCreateKvEntry200Response.js +91 -0
- package/dist/model/AdminCreateKvEntryRequest.js +146 -0
- package/dist/model/AdminCreateLeaderboardRequest.js +232 -0
- package/dist/model/AdminEndLeaderboard200Response.js +91 -0
- package/dist/model/AdminEndLeaderboard200ResponseData.js +231 -0
- package/dist/model/AdminListKvEntries200Response.js +124 -0
- package/dist/model/AdminListKvEntries200ResponseDataInner.js +147 -0
- package/dist/model/AdminListLobbies200Response.js +124 -0
- package/dist/model/AdminListLobbies200ResponseDataInner.js +153 -0
- package/dist/model/AdminListSessions200Response.js +124 -0
- package/dist/model/AdminListSessions200ResponseDataInner.js +133 -0
- package/dist/model/AdminSubmitLeaderboardScore200Response.js +91 -0
- package/dist/model/AdminSubmitLeaderboardScore200ResponseData.js +141 -0
- package/dist/model/AdminSubmitLeaderboardScoreRequest.js +126 -0
- package/dist/model/AdminUpdateKvEntryRequest.js +121 -0
- package/dist/model/AdminUpdateLeaderboardRecordRequest.js +93 -0
- package/dist/model/AdminUpdateLeaderboardRequest.js +125 -0
- package/dist/model/AdminUpdateLobby200Response.js +91 -0
- package/dist/model/AdminUpdateLobbyRequest.js +133 -0
- package/dist/model/AdminUpdateUser200Response.js +91 -0
- package/dist/model/AdminUpdateUser200ResponseData.js +149 -0
- package/dist/model/AdminUpdateUserRequest.js +105 -0
- package/dist/model/CallHook200Response.js +88 -0
- package/dist/model/CallHookRequest.js +23 -8
- package/dist/model/CreateFriendRequestRequest.js +1 -1
- package/dist/model/{KickUser401Response.js → CreateLobby401Response.js} +18 -18
- package/dist/model/CreateLobbyRequest.js +1 -1
- package/dist/model/DeviceLoginRequest.js +1 -1
- package/dist/model/ErrorResponse.js +114 -0
- package/dist/model/GetCurrentUser200Response.js +10 -1
- package/dist/model/GetCurrentUser200ResponseLinkedProviders.js +1 -1
- package/dist/model/GetKv200Response.js +93 -0
- package/dist/model/GetMyRecord200Response.js +91 -0
- package/dist/model/HealthResponse.js +1 -1
- package/dist/model/JoinLobby200Response.js +89 -0
- package/dist/model/JoinLobbyRequest.js +1 -1
- package/dist/model/KickUser200Response.js +89 -0
- package/dist/model/KickUserRequest.js +1 -1
- package/dist/model/LeaveLobby200Response.js +89 -0
- package/dist/model/LinkDeviceRequest.js +1 -1
- package/dist/model/ListBlockedFriends200Response.js +1 -1
- package/dist/model/ListBlockedFriends200ResponseDataInner.js +1 -1
- package/dist/model/ListBlockedFriends200ResponseDataInnerRequester.js +1 -1
- package/dist/model/ListFriendRequests200Response.js +1 -1
- package/dist/model/ListFriendRequests200ResponseIncomingInner.js +1 -1
- package/dist/model/ListFriendRequests200ResponseIncomingInnerRequester.js +1 -1
- package/dist/model/ListFriendRequests200ResponseMeta.js +1 -1
- package/dist/model/ListFriends200Response.js +1 -1
- package/dist/model/ListFriends200ResponseDataInner.js +9 -1
- package/dist/model/ListLeaderboardRecords200Response.js +1 -1
- package/dist/model/ListLeaderboardRecords200ResponseDataInner.js +1 -1
- package/dist/model/ListLeaderboardRecords200ResponseMeta.js +1 -1
- package/dist/model/ListLeaderboards200Response.js +1 -1
- package/dist/model/ListLeaderboards200ResponseDataInner.js +1 -1
- package/dist/model/ListLobbies200Response.js +1 -1
- package/dist/model/ListLobbies200ResponseDataInner.js +1 -1
- package/dist/model/ListLobbies200ResponseInner.js +153 -0
- package/dist/model/ListLobbies200ResponseMeta.js +125 -0
- package/dist/model/ListRecordsAroundUser200Response.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/Login200ResponseData.js +1 -1
- package/dist/model/Login200ResponseDataUser.js +97 -0
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/OAuthSessionData.js +1 -1
- package/dist/model/OAuthSessionDataDetails.js +1 -1
- package/dist/model/OAuthSessionStatus.js +9 -5
- package/dist/model/OauthApiCallback200Response.js +1 -1
- package/dist/model/OauthApiCallbackRequest.js +1 -1
- package/dist/model/OauthCallbackApiAppleIosRequest.js +113 -0
- package/dist/model/OauthGoogleIdTokenRequest.js +113 -0
- package/dist/model/OauthRequest200Response.js +1 -1
- package/dist/model/OauthSessionStatus404Response.js +126 -0
- package/dist/model/QuickJoinRequest.js +1 -1
- package/dist/model/RefreshToken200Response.js +1 -1
- package/dist/model/RefreshToken200ResponseData.js +1 -1
- package/dist/model/RefreshTokenRequest.js +1 -1
- package/dist/model/RemoveFriendship401Response.js +89 -0
- package/dist/model/SearchUsers200Response.js +124 -0
- package/dist/model/SearchUsers200ResponseDataInner.js +130 -0
- package/dist/model/UpdateCurrentUserDisplayNameRequest.js +1 -1
- package/dist/model/UpdateCurrentUserPassword400Response.js +97 -0
- package/dist/model/UpdateCurrentUserPasswordRequest.js +1 -1
- package/dist/model/UpdateLobbyRequest.js +1 -1
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -55,7 +55,7 @@ Lobbies provide matchmaking / room management primitives. Highlights:
|
|
|
55
55
|
|
|
56
56
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
57
57
|
|
|
58
|
-
- API version: 1.0.
|
|
58
|
+
- API version: 1.0.0
|
|
59
59
|
- Package version: 1.0.0
|
|
60
60
|
- Generator version: 7.17.0
|
|
61
61
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
@@ -152,12 +152,16 @@ Please follow the [installation](#installation) instruction and execute the foll
|
|
|
152
152
|
```javascript
|
|
153
153
|
var UghuuuGameServer = require('@ughuuu/game_server');
|
|
154
154
|
|
|
155
|
+
var defaultClient = UghuuuGameServer.ApiClient.instance;
|
|
156
|
+
// Configure Bearer (JWT) access token for authorization: authorization
|
|
157
|
+
var authorization = defaultClient.authentications['authorization'];
|
|
158
|
+
authorization.accessToken = "YOUR ACCESS TOKEN"
|
|
155
159
|
|
|
156
|
-
var api = new UghuuuGameServer.
|
|
160
|
+
var api = new UghuuuGameServer.AdminKVApi()
|
|
157
161
|
var opts = {
|
|
158
|
-
'
|
|
162
|
+
'adminCreateKvEntryRequest': new UghuuuGameServer.AdminCreateKvEntryRequest() // {AdminCreateKvEntryRequest} KV entry
|
|
159
163
|
};
|
|
160
|
-
api.
|
|
164
|
+
api.adminCreateKvEntry(opts).then(function(data) {
|
|
161
165
|
console.log('API called successfully. Returned data: ' + data);
|
|
162
166
|
}, function(error) {
|
|
163
167
|
console.error(error);
|
|
@@ -172,11 +176,35 @@ All URIs are relative to *http://localhost:4000*
|
|
|
172
176
|
|
|
173
177
|
Class | Method | HTTP request | Description
|
|
174
178
|
------------ | ------------- | ------------- | -------------
|
|
179
|
+
*UghuuuGameServer.AdminKVApi* | [**adminCreateKvEntry**](docs/AdminKVApi.md#adminCreateKvEntry) | **POST** /api/v1/admin/kv/entries | Create KV entry (admin)
|
|
180
|
+
*UghuuuGameServer.AdminKVApi* | [**adminDeleteKv**](docs/AdminKVApi.md#adminDeleteKv) | **DELETE** /api/v1/admin/kv | Delete KV by key (admin)
|
|
181
|
+
*UghuuuGameServer.AdminKVApi* | [**adminDeleteKvEntry**](docs/AdminKVApi.md#adminDeleteKvEntry) | **DELETE** /api/v1/admin/kv/entries/{id} | Delete KV entry by id (admin)
|
|
182
|
+
*UghuuuGameServer.AdminKVApi* | [**adminListKvEntries**](docs/AdminKVApi.md#adminListKvEntries) | **GET** /api/v1/admin/kv/entries | List KV entries (admin)
|
|
183
|
+
*UghuuuGameServer.AdminKVApi* | [**adminUpdateKvEntry**](docs/AdminKVApi.md#adminUpdateKvEntry) | **PATCH** /api/v1/admin/kv/entries/{id} | Update KV entry by id (admin)
|
|
184
|
+
*UghuuuGameServer.AdminKVApi* | [**adminUpsertKv**](docs/AdminKVApi.md#adminUpsertKv) | **PUT** /api/v1/admin/kv | Upsert KV by key (admin)
|
|
185
|
+
*UghuuuGameServer.AdminLeaderboardsApi* | [**adminCreateLeaderboard**](docs/AdminLeaderboardsApi.md#adminCreateLeaderboard) | **POST** /api/v1/admin/leaderboards | Create leaderboard (admin)
|
|
186
|
+
*UghuuuGameServer.AdminLeaderboardsApi* | [**adminDeleteLeaderboard**](docs/AdminLeaderboardsApi.md#adminDeleteLeaderboard) | **DELETE** /api/v1/admin/leaderboards/{id} | Delete leaderboard (admin)
|
|
187
|
+
*UghuuuGameServer.AdminLeaderboardsApi* | [**adminDeleteLeaderboardRecord**](docs/AdminLeaderboardsApi.md#adminDeleteLeaderboardRecord) | **DELETE** /api/v1/admin/leaderboards/{id}/records/{record_id} | Delete leaderboard record (admin)
|
|
188
|
+
*UghuuuGameServer.AdminLeaderboardsApi* | [**adminDeleteLeaderboardUserRecord**](docs/AdminLeaderboardsApi.md#adminDeleteLeaderboardUserRecord) | **DELETE** /api/v1/admin/leaderboards/{id}/records/user/{user_id} | Delete a user's record (admin)
|
|
189
|
+
*UghuuuGameServer.AdminLeaderboardsApi* | [**adminEndLeaderboard**](docs/AdminLeaderboardsApi.md#adminEndLeaderboard) | **POST** /api/v1/admin/leaderboards/{id}/end | End leaderboard (admin)
|
|
190
|
+
*UghuuuGameServer.AdminLeaderboardsApi* | [**adminSubmitLeaderboardScore**](docs/AdminLeaderboardsApi.md#adminSubmitLeaderboardScore) | **POST** /api/v1/admin/leaderboards/{id}/records | Submit score (admin)
|
|
191
|
+
*UghuuuGameServer.AdminLeaderboardsApi* | [**adminUpdateLeaderboard**](docs/AdminLeaderboardsApi.md#adminUpdateLeaderboard) | **PATCH** /api/v1/admin/leaderboards/{id} | Update leaderboard (admin)
|
|
192
|
+
*UghuuuGameServer.AdminLeaderboardsApi* | [**adminUpdateLeaderboardRecord**](docs/AdminLeaderboardsApi.md#adminUpdateLeaderboardRecord) | **PATCH** /api/v1/admin/leaderboards/{id}/records/{record_id} | Update leaderboard record (admin)
|
|
193
|
+
*UghuuuGameServer.AdminLobbiesApi* | [**adminDeleteLobby**](docs/AdminLobbiesApi.md#adminDeleteLobby) | **DELETE** /api/v1/admin/lobbies/{id} | Delete lobby by id (admin)
|
|
194
|
+
*UghuuuGameServer.AdminLobbiesApi* | [**adminListLobbies**](docs/AdminLobbiesApi.md#adminListLobbies) | **GET** /api/v1/admin/lobbies | List all lobbies (admin)
|
|
195
|
+
*UghuuuGameServer.AdminLobbiesApi* | [**adminUpdateLobby**](docs/AdminLobbiesApi.md#adminUpdateLobby) | **PATCH** /api/v1/admin/lobbies/{id} | Update lobby by id (admin)
|
|
196
|
+
*UghuuuGameServer.AdminSessionsApi* | [**adminDeleteSession**](docs/AdminSessionsApi.md#adminDeleteSession) | **DELETE** /api/v1/admin/sessions/{id} | Delete session token by id (admin)
|
|
197
|
+
*UghuuuGameServer.AdminSessionsApi* | [**adminDeleteUserSessions**](docs/AdminSessionsApi.md#adminDeleteUserSessions) | **DELETE** /api/v1/admin/users/{id}/sessions | Delete all session tokens for a user (admin)
|
|
198
|
+
*UghuuuGameServer.AdminSessionsApi* | [**adminListSessions**](docs/AdminSessionsApi.md#adminListSessions) | **GET** /api/v1/admin/sessions | List sessions (admin)
|
|
199
|
+
*UghuuuGameServer.AdminUsersApi* | [**adminDeleteUser**](docs/AdminUsersApi.md#adminDeleteUser) | **DELETE** /api/v1/admin/users/{id} | Delete user (admin)
|
|
200
|
+
*UghuuuGameServer.AdminUsersApi* | [**adminUpdateUser**](docs/AdminUsersApi.md#adminUpdateUser) | **PATCH** /api/v1/admin/users/{id} | Update user (admin)
|
|
175
201
|
*UghuuuGameServer.AuthenticationApi* | [**deviceLogin**](docs/AuthenticationApi.md#deviceLogin) | **POST** /api/v1/login/device | Device login
|
|
176
202
|
*UghuuuGameServer.AuthenticationApi* | [**linkDevice**](docs/AuthenticationApi.md#linkDevice) | **POST** /api/v1/me/device | Link device ID
|
|
177
203
|
*UghuuuGameServer.AuthenticationApi* | [**login**](docs/AuthenticationApi.md#login) | **POST** /api/v1/login | Login
|
|
178
204
|
*UghuuuGameServer.AuthenticationApi* | [**logout**](docs/AuthenticationApi.md#logout) | **DELETE** /api/v1/logout | Logout
|
|
179
205
|
*UghuuuGameServer.AuthenticationApi* | [**oauthApiCallback**](docs/AuthenticationApi.md#oauthApiCallback) | **POST** /api/v1/auth/{provider}/callback | API callback / code exchange
|
|
206
|
+
*UghuuuGameServer.AuthenticationApi* | [**oauthCallbackApiAppleIos**](docs/AuthenticationApi.md#oauthCallbackApiAppleIos) | **POST** /api/v1/auth/apple/ios/callback | Apple callback (native iOS)
|
|
207
|
+
*UghuuuGameServer.AuthenticationApi* | [**oauthGoogleIdToken**](docs/AuthenticationApi.md#oauthGoogleIdToken) | **POST** /api/v1/auth/google/id_token | Google ID token login (native/mobile)
|
|
180
208
|
*UghuuuGameServer.AuthenticationApi* | [**oauthRequest**](docs/AuthenticationApi.md#oauthRequest) | **GET** /api/v1/auth/{provider} | Initiate API OAuth
|
|
181
209
|
*UghuuuGameServer.AuthenticationApi* | [**oauthSessionStatus**](docs/AuthenticationApi.md#oauthSessionStatus) | **GET** /api/v1/auth/session/{session_id} | Get OAuth session status
|
|
182
210
|
*UghuuuGameServer.AuthenticationApi* | [**refreshToken**](docs/AuthenticationApi.md#refreshToken) | **POST** /api/v1/refresh | Refresh access token
|
|
@@ -194,6 +222,7 @@ Class | Method | HTTP request | Description
|
|
|
194
222
|
*UghuuuGameServer.HealthApi* | [**index**](docs/HealthApi.md#index) | **GET** /api/v1/health | Health check
|
|
195
223
|
*UghuuuGameServer.HooksApi* | [**callHook**](docs/HooksApi.md#callHook) | **POST** /api/v1/hooks/call | Invoke a hook function
|
|
196
224
|
*UghuuuGameServer.HooksApi* | [**listHooks**](docs/HooksApi.md#listHooks) | **GET** /api/v1/hooks | List available hook functions
|
|
225
|
+
*UghuuuGameServer.KVApi* | [**getKv**](docs/KVApi.md#getKv) | **GET** /api/v1/kv/{key} | Get a key/value entry
|
|
197
226
|
*UghuuuGameServer.LeaderboardsApi* | [**getLeaderboard**](docs/LeaderboardsApi.md#getLeaderboard) | **GET** /api/v1/leaderboards/{id} | Get a leaderboard by ID
|
|
198
227
|
*UghuuuGameServer.LeaderboardsApi* | [**getMyRecord**](docs/LeaderboardsApi.md#getMyRecord) | **GET** /api/v1/leaderboards/{id}/records/me | Get current user's record
|
|
199
228
|
*UghuuuGameServer.LeaderboardsApi* | [**listLeaderboardRecords**](docs/LeaderboardsApi.md#listLeaderboardRecords) | **GET** /api/v1/leaderboards/{id}/records | List leaderboard records
|
|
@@ -216,15 +245,40 @@ Class | Method | HTTP request | Description
|
|
|
216
245
|
|
|
217
246
|
## Documentation for Models
|
|
218
247
|
|
|
248
|
+
- [UghuuuGameServer.AdminCreateKvEntry200Response](docs/AdminCreateKvEntry200Response.md)
|
|
249
|
+
- [UghuuuGameServer.AdminCreateKvEntryRequest](docs/AdminCreateKvEntryRequest.md)
|
|
250
|
+
- [UghuuuGameServer.AdminCreateLeaderboardRequest](docs/AdminCreateLeaderboardRequest.md)
|
|
251
|
+
- [UghuuuGameServer.AdminEndLeaderboard200Response](docs/AdminEndLeaderboard200Response.md)
|
|
252
|
+
- [UghuuuGameServer.AdminEndLeaderboard200ResponseData](docs/AdminEndLeaderboard200ResponseData.md)
|
|
253
|
+
- [UghuuuGameServer.AdminListKvEntries200Response](docs/AdminListKvEntries200Response.md)
|
|
254
|
+
- [UghuuuGameServer.AdminListKvEntries200ResponseDataInner](docs/AdminListKvEntries200ResponseDataInner.md)
|
|
255
|
+
- [UghuuuGameServer.AdminListLobbies200Response](docs/AdminListLobbies200Response.md)
|
|
256
|
+
- [UghuuuGameServer.AdminListLobbies200ResponseDataInner](docs/AdminListLobbies200ResponseDataInner.md)
|
|
257
|
+
- [UghuuuGameServer.AdminListSessions200Response](docs/AdminListSessions200Response.md)
|
|
258
|
+
- [UghuuuGameServer.AdminListSessions200ResponseDataInner](docs/AdminListSessions200ResponseDataInner.md)
|
|
259
|
+
- [UghuuuGameServer.AdminSubmitLeaderboardScore200Response](docs/AdminSubmitLeaderboardScore200Response.md)
|
|
260
|
+
- [UghuuuGameServer.AdminSubmitLeaderboardScore200ResponseData](docs/AdminSubmitLeaderboardScore200ResponseData.md)
|
|
261
|
+
- [UghuuuGameServer.AdminSubmitLeaderboardScoreRequest](docs/AdminSubmitLeaderboardScoreRequest.md)
|
|
262
|
+
- [UghuuuGameServer.AdminUpdateKvEntryRequest](docs/AdminUpdateKvEntryRequest.md)
|
|
263
|
+
- [UghuuuGameServer.AdminUpdateLeaderboardRecordRequest](docs/AdminUpdateLeaderboardRecordRequest.md)
|
|
264
|
+
- [UghuuuGameServer.AdminUpdateLeaderboardRequest](docs/AdminUpdateLeaderboardRequest.md)
|
|
265
|
+
- [UghuuuGameServer.AdminUpdateLobby200Response](docs/AdminUpdateLobby200Response.md)
|
|
266
|
+
- [UghuuuGameServer.AdminUpdateLobbyRequest](docs/AdminUpdateLobbyRequest.md)
|
|
267
|
+
- [UghuuuGameServer.AdminUpdateUser200Response](docs/AdminUpdateUser200Response.md)
|
|
268
|
+
- [UghuuuGameServer.AdminUpdateUser200ResponseData](docs/AdminUpdateUser200ResponseData.md)
|
|
269
|
+
- [UghuuuGameServer.AdminUpdateUserRequest](docs/AdminUpdateUserRequest.md)
|
|
270
|
+
- [UghuuuGameServer.CallHook200Response](docs/CallHook200Response.md)
|
|
219
271
|
- [UghuuuGameServer.CallHookRequest](docs/CallHookRequest.md)
|
|
220
272
|
- [UghuuuGameServer.CreateFriendRequestRequest](docs/CreateFriendRequestRequest.md)
|
|
221
273
|
- [UghuuuGameServer.CreateLobbyRequest](docs/CreateLobbyRequest.md)
|
|
222
274
|
- [UghuuuGameServer.DeviceLoginRequest](docs/DeviceLoginRequest.md)
|
|
275
|
+
- [UghuuuGameServer.ErrorResponse](docs/ErrorResponse.md)
|
|
223
276
|
- [UghuuuGameServer.GetCurrentUser200Response](docs/GetCurrentUser200Response.md)
|
|
224
277
|
- [UghuuuGameServer.GetCurrentUser200ResponseLinkedProviders](docs/GetCurrentUser200ResponseLinkedProviders.md)
|
|
278
|
+
- [UghuuuGameServer.GetKv200Response](docs/GetKv200Response.md)
|
|
279
|
+
- [UghuuuGameServer.GetMyRecord200Response](docs/GetMyRecord200Response.md)
|
|
225
280
|
- [UghuuuGameServer.HealthResponse](docs/HealthResponse.md)
|
|
226
281
|
- [UghuuuGameServer.JoinLobbyRequest](docs/JoinLobbyRequest.md)
|
|
227
|
-
- [UghuuuGameServer.KickUser401Response](docs/KickUser401Response.md)
|
|
228
282
|
- [UghuuuGameServer.KickUserRequest](docs/KickUserRequest.md)
|
|
229
283
|
- [UghuuuGameServer.LinkDeviceRequest](docs/LinkDeviceRequest.md)
|
|
230
284
|
- [UghuuuGameServer.ListBlockedFriends200Response](docs/ListBlockedFriends200Response.md)
|
|
@@ -252,12 +306,19 @@ Class | Method | HTTP request | Description
|
|
|
252
306
|
- [UghuuuGameServer.OAuthSessionStatus](docs/OAuthSessionStatus.md)
|
|
253
307
|
- [UghuuuGameServer.OauthApiCallback200Response](docs/OauthApiCallback200Response.md)
|
|
254
308
|
- [UghuuuGameServer.OauthApiCallbackRequest](docs/OauthApiCallbackRequest.md)
|
|
309
|
+
- [UghuuuGameServer.OauthCallbackApiAppleIosRequest](docs/OauthCallbackApiAppleIosRequest.md)
|
|
310
|
+
- [UghuuuGameServer.OauthGoogleIdTokenRequest](docs/OauthGoogleIdTokenRequest.md)
|
|
255
311
|
- [UghuuuGameServer.OauthRequest200Response](docs/OauthRequest200Response.md)
|
|
312
|
+
- [UghuuuGameServer.OauthSessionStatus404Response](docs/OauthSessionStatus404Response.md)
|
|
256
313
|
- [UghuuuGameServer.QuickJoinRequest](docs/QuickJoinRequest.md)
|
|
257
314
|
- [UghuuuGameServer.RefreshToken200Response](docs/RefreshToken200Response.md)
|
|
258
315
|
- [UghuuuGameServer.RefreshToken200ResponseData](docs/RefreshToken200ResponseData.md)
|
|
259
316
|
- [UghuuuGameServer.RefreshTokenRequest](docs/RefreshTokenRequest.md)
|
|
317
|
+
- [UghuuuGameServer.RemoveFriendship401Response](docs/RemoveFriendship401Response.md)
|
|
318
|
+
- [UghuuuGameServer.SearchUsers200Response](docs/SearchUsers200Response.md)
|
|
319
|
+
- [UghuuuGameServer.SearchUsers200ResponseDataInner](docs/SearchUsers200ResponseDataInner.md)
|
|
260
320
|
- [UghuuuGameServer.UpdateCurrentUserDisplayNameRequest](docs/UpdateCurrentUserDisplayNameRequest.md)
|
|
321
|
+
- [UghuuuGameServer.UpdateCurrentUserPassword400Response](docs/UpdateCurrentUserPassword400Response.md)
|
|
261
322
|
- [UghuuuGameServer.UpdateCurrentUserPasswordRequest](docs/UpdateCurrentUserPasswordRequest.md)
|
|
262
323
|
- [UghuuuGameServer.UpdateLobbyRequest](docs/UpdateLobbyRequest.md)
|
|
263
324
|
|
package/dist/ApiClient.js
CHANGED
|
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
15
15
|
* Game Server API
|
|
16
16
|
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow or apple sdk flow - **Steam (OpenID)**: Use `/api/v1/auth/steam` flow Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Users Users endpoints cover the user lifecycle and profile features. Key highlights: - **Registration and login** (email/password, device token for SDKs, and OAuth providers) - **Profile metadata** (JSON blob per user) and editable profile fields - **Account lifecycle**: password reset, email confirmation, and account deletion - **Sessions & tokens**: both browser sessions and JWT-based API tokens are supported ## Friends The Friends domain offers lightweight social features: - **Friend requests** (send / accept / reject / block flows) - **Friend listing & pagination**, with basic privacy controls - **Domain helpers** to manage and query friend relationships from API or UI contexts ## Lobbies Lobbies provide matchmaking / room management primitives. Highlights: - **Create / list / update / delete** lobbies with rich metadata (mode, region, tags) - **Host-managed or hostless** modes (hostless allowed internally, not creatable via public API) - **Membership management**: join, leave, kick users, and automatic host transfer - **Controls & protection**: max users, hidden/locked states, and optional password protection - **Hidden lobbies** are excluded from public listings; public listing endpoints are paginated
|
|
17
17
|
*
|
|
18
|
-
* The version of the OpenAPI document: 1.0.
|
|
18
|
+
* The version of the OpenAPI document: 1.0.0
|
|
19
19
|
*
|
|
20
20
|
*
|
|
21
21
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _AdminCreateKvEntry200Response = _interopRequireDefault(require("../model/AdminCreateKvEntry200Response"));
|
|
9
|
+
var _AdminCreateKvEntryRequest = _interopRequireDefault(require("../model/AdminCreateKvEntryRequest"));
|
|
10
|
+
var _AdminListKvEntries200Response = _interopRequireDefault(require("../model/AdminListKvEntries200Response"));
|
|
11
|
+
var _AdminUpdateKvEntryRequest = _interopRequireDefault(require("../model/AdminUpdateKvEntryRequest"));
|
|
12
|
+
var _RemoveFriendship401Response = _interopRequireDefault(require("../model/RemoveFriendship401Response"));
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
15
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
|
+
* Game Server API
|
|
21
|
+
* API for Game Server application ## Authentication This API uses JWT (JSON Web Tokens) with access and refresh tokens: ### Getting Tokens - **Email/Password**: POST to `/api/v1/login` with email and password - **Device (SDK)**: POST to `/api/v1/login` with a `device_id` string (creates/returns a device user) - **Discord OAuth**: Use `/api/v1/auth/discord` flow - **Google OAuth**: Use `/api/v1/auth/google` flow - **Facebook OAuth**: Use `/api/v1/auth/facebook` flow - **Apple Sign In**: Use `/auth/apple` browser flow or apple sdk flow - **Steam (OpenID)**: Use `/api/v1/auth/steam` flow Both methods return: - `access_token` - Short-lived (15 min), use for API requests - `refresh_token` - Long-lived (30 days), use to get new access tokens ### Using Tokens Include the access token in the Authorization header: ``` Authorization: Bearer <access_token> ``` ### Refreshing Tokens When your access token expires, use POST `/api/v1/refresh` with your refresh token to get a new access token. ## Users Users endpoints cover the user lifecycle and profile features. Key highlights: - **Registration and login** (email/password, device token for SDKs, and OAuth providers) - **Profile metadata** (JSON blob per user) and editable profile fields - **Account lifecycle**: password reset, email confirmation, and account deletion - **Sessions & tokens**: both browser sessions and JWT-based API tokens are supported ## Friends The Friends domain offers lightweight social features: - **Friend requests** (send / accept / reject / block flows) - **Friend listing & pagination**, with basic privacy controls - **Domain helpers** to manage and query friend relationships from API or UI contexts ## Lobbies Lobbies provide matchmaking / room management primitives. Highlights: - **Create / list / update / delete** lobbies with rich metadata (mode, region, tags) - **Host-managed or hostless** modes (hostless allowed internally, not creatable via public API) - **Membership management**: join, leave, kick users, and automatic host transfer - **Controls & protection**: max users, hidden/locked states, and optional password protection - **Hidden lobbies** are excluded from public listings; public listing endpoints are paginated
|
|
22
|
+
*
|
|
23
|
+
* The version of the OpenAPI document: 1.0.0
|
|
24
|
+
*
|
|
25
|
+
*
|
|
26
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
27
|
+
* https://openapi-generator.tech
|
|
28
|
+
* Do not edit the class manually.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* AdminKV service.
|
|
33
|
+
* @module api/AdminKVApi
|
|
34
|
+
* @version 1.0.0
|
|
35
|
+
*/
|
|
36
|
+
var AdminKVApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
|
+
/**
|
|
38
|
+
* Constructs a new AdminKVApi.
|
|
39
|
+
* @alias module:api/AdminKVApi
|
|
40
|
+
* @class
|
|
41
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
42
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
43
|
+
*/
|
|
44
|
+
function AdminKVApi(apiClient) {
|
|
45
|
+
_classCallCheck(this, AdminKVApi);
|
|
46
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Create KV entry (admin)
|
|
51
|
+
* @param {Object} opts Optional parameters
|
|
52
|
+
* @param {module:model/AdminCreateKvEntryRequest} [adminCreateKvEntryRequest] KV entry
|
|
53
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminCreateKvEntry200Response} and HTTP response
|
|
54
|
+
*/
|
|
55
|
+
return _createClass(AdminKVApi, [{
|
|
56
|
+
key: "adminCreateKvEntryWithHttpInfo",
|
|
57
|
+
value: function adminCreateKvEntryWithHttpInfo(opts) {
|
|
58
|
+
opts = opts || {};
|
|
59
|
+
var postBody = opts['adminCreateKvEntryRequest'];
|
|
60
|
+
var pathParams = {};
|
|
61
|
+
var queryParams = {};
|
|
62
|
+
var headerParams = {};
|
|
63
|
+
var formParams = {};
|
|
64
|
+
var authNames = ['authorization'];
|
|
65
|
+
var contentTypes = ['application/json'];
|
|
66
|
+
var accepts = ['application/json'];
|
|
67
|
+
var returnType = _AdminCreateKvEntry200Response["default"];
|
|
68
|
+
return this.apiClient.callApi('/api/v1/admin/kv/entries', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Create KV entry (admin)
|
|
73
|
+
* @param {Object} opts Optional parameters
|
|
74
|
+
* @param {module:model/AdminCreateKvEntryRequest} opts.adminCreateKvEntryRequest KV entry
|
|
75
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminCreateKvEntry200Response}
|
|
76
|
+
*/
|
|
77
|
+
}, {
|
|
78
|
+
key: "adminCreateKvEntry",
|
|
79
|
+
value: function adminCreateKvEntry(opts) {
|
|
80
|
+
return this.adminCreateKvEntryWithHttpInfo(opts).then(function (response_and_data) {
|
|
81
|
+
return response_and_data.data;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Delete KV by key (admin)
|
|
87
|
+
* @param {String} key
|
|
88
|
+
* @param {Object} opts Optional parameters
|
|
89
|
+
* @param {Number} [userId]
|
|
90
|
+
* @param {Number} [lobbyId]
|
|
91
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
92
|
+
*/
|
|
93
|
+
}, {
|
|
94
|
+
key: "adminDeleteKvWithHttpInfo",
|
|
95
|
+
value: function adminDeleteKvWithHttpInfo(key, opts) {
|
|
96
|
+
opts = opts || {};
|
|
97
|
+
var postBody = null;
|
|
98
|
+
// verify the required parameter 'key' is set
|
|
99
|
+
if (key === undefined || key === null) {
|
|
100
|
+
throw new Error("Missing the required parameter 'key' when calling adminDeleteKv");
|
|
101
|
+
}
|
|
102
|
+
var pathParams = {};
|
|
103
|
+
var queryParams = {
|
|
104
|
+
'key': key,
|
|
105
|
+
'user_id': opts['userId'],
|
|
106
|
+
'lobby_id': opts['lobbyId']
|
|
107
|
+
};
|
|
108
|
+
var headerParams = {};
|
|
109
|
+
var formParams = {};
|
|
110
|
+
var authNames = ['authorization'];
|
|
111
|
+
var contentTypes = [];
|
|
112
|
+
var accepts = ['application/json'];
|
|
113
|
+
var returnType = Object;
|
|
114
|
+
return this.apiClient.callApi('/api/v1/admin/kv', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Delete KV by key (admin)
|
|
119
|
+
* @param {String} key
|
|
120
|
+
* @param {Object} opts Optional parameters
|
|
121
|
+
* @param {Number} opts.userId
|
|
122
|
+
* @param {Number} opts.lobbyId
|
|
123
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
124
|
+
*/
|
|
125
|
+
}, {
|
|
126
|
+
key: "adminDeleteKv",
|
|
127
|
+
value: function adminDeleteKv(key, opts) {
|
|
128
|
+
return this.adminDeleteKvWithHttpInfo(key, opts).then(function (response_and_data) {
|
|
129
|
+
return response_and_data.data;
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Delete KV entry by id (admin)
|
|
135
|
+
* @param {Number} id
|
|
136
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
|
|
137
|
+
*/
|
|
138
|
+
}, {
|
|
139
|
+
key: "adminDeleteKvEntryWithHttpInfo",
|
|
140
|
+
value: function adminDeleteKvEntryWithHttpInfo(id) {
|
|
141
|
+
var postBody = null;
|
|
142
|
+
// verify the required parameter 'id' is set
|
|
143
|
+
if (id === undefined || id === null) {
|
|
144
|
+
throw new Error("Missing the required parameter 'id' when calling adminDeleteKvEntry");
|
|
145
|
+
}
|
|
146
|
+
var pathParams = {
|
|
147
|
+
'id': id
|
|
148
|
+
};
|
|
149
|
+
var queryParams = {};
|
|
150
|
+
var headerParams = {};
|
|
151
|
+
var formParams = {};
|
|
152
|
+
var authNames = ['authorization'];
|
|
153
|
+
var contentTypes = [];
|
|
154
|
+
var accepts = ['application/json'];
|
|
155
|
+
var returnType = Object;
|
|
156
|
+
return this.apiClient.callApi('/api/v1/admin/kv/entries/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Delete KV entry by id (admin)
|
|
161
|
+
* @param {Number} id
|
|
162
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
|
|
163
|
+
*/
|
|
164
|
+
}, {
|
|
165
|
+
key: "adminDeleteKvEntry",
|
|
166
|
+
value: function adminDeleteKvEntry(id) {
|
|
167
|
+
return this.adminDeleteKvEntryWithHttpInfo(id).then(function (response_and_data) {
|
|
168
|
+
return response_and_data.data;
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* List KV entries (admin)
|
|
174
|
+
* @param {Object} opts Optional parameters
|
|
175
|
+
* @param {Number} [page]
|
|
176
|
+
* @param {Number} [pageSize]
|
|
177
|
+
* @param {String} [key]
|
|
178
|
+
* @param {Number} [userId]
|
|
179
|
+
* @param {Number} [lobbyId]
|
|
180
|
+
* @param {Boolean} [globalOnly]
|
|
181
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminListKvEntries200Response} and HTTP response
|
|
182
|
+
*/
|
|
183
|
+
}, {
|
|
184
|
+
key: "adminListKvEntriesWithHttpInfo",
|
|
185
|
+
value: function adminListKvEntriesWithHttpInfo(opts) {
|
|
186
|
+
opts = opts || {};
|
|
187
|
+
var postBody = null;
|
|
188
|
+
var pathParams = {};
|
|
189
|
+
var queryParams = {
|
|
190
|
+
'page': opts['page'],
|
|
191
|
+
'page_size': opts['pageSize'],
|
|
192
|
+
'key': opts['key'],
|
|
193
|
+
'user_id': opts['userId'],
|
|
194
|
+
'lobby_id': opts['lobbyId'],
|
|
195
|
+
'global_only': opts['globalOnly']
|
|
196
|
+
};
|
|
197
|
+
var headerParams = {};
|
|
198
|
+
var formParams = {};
|
|
199
|
+
var authNames = ['authorization'];
|
|
200
|
+
var contentTypes = [];
|
|
201
|
+
var accepts = ['application/json'];
|
|
202
|
+
var returnType = _AdminListKvEntries200Response["default"];
|
|
203
|
+
return this.apiClient.callApi('/api/v1/admin/kv/entries', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* List KV entries (admin)
|
|
208
|
+
* @param {Object} opts Optional parameters
|
|
209
|
+
* @param {Number} opts.page
|
|
210
|
+
* @param {Number} opts.pageSize
|
|
211
|
+
* @param {String} opts.key
|
|
212
|
+
* @param {Number} opts.userId
|
|
213
|
+
* @param {Number} opts.lobbyId
|
|
214
|
+
* @param {Boolean} opts.globalOnly
|
|
215
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminListKvEntries200Response}
|
|
216
|
+
*/
|
|
217
|
+
}, {
|
|
218
|
+
key: "adminListKvEntries",
|
|
219
|
+
value: function adminListKvEntries(opts) {
|
|
220
|
+
return this.adminListKvEntriesWithHttpInfo(opts).then(function (response_and_data) {
|
|
221
|
+
return response_and_data.data;
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Update KV entry by id (admin)
|
|
227
|
+
* @param {Number} id
|
|
228
|
+
* @param {Object} opts Optional parameters
|
|
229
|
+
* @param {module:model/AdminUpdateKvEntryRequest} [adminUpdateKvEntryRequest] KV entry patch
|
|
230
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminCreateKvEntry200Response} and HTTP response
|
|
231
|
+
*/
|
|
232
|
+
}, {
|
|
233
|
+
key: "adminUpdateKvEntryWithHttpInfo",
|
|
234
|
+
value: function adminUpdateKvEntryWithHttpInfo(id, opts) {
|
|
235
|
+
opts = opts || {};
|
|
236
|
+
var postBody = opts['adminUpdateKvEntryRequest'];
|
|
237
|
+
// verify the required parameter 'id' is set
|
|
238
|
+
if (id === undefined || id === null) {
|
|
239
|
+
throw new Error("Missing the required parameter 'id' when calling adminUpdateKvEntry");
|
|
240
|
+
}
|
|
241
|
+
var pathParams = {
|
|
242
|
+
'id': id
|
|
243
|
+
};
|
|
244
|
+
var queryParams = {};
|
|
245
|
+
var headerParams = {};
|
|
246
|
+
var formParams = {};
|
|
247
|
+
var authNames = ['authorization'];
|
|
248
|
+
var contentTypes = ['application/json'];
|
|
249
|
+
var accepts = ['application/json'];
|
|
250
|
+
var returnType = _AdminCreateKvEntry200Response["default"];
|
|
251
|
+
return this.apiClient.callApi('/api/v1/admin/kv/entries/{id}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Update KV entry by id (admin)
|
|
256
|
+
* @param {Number} id
|
|
257
|
+
* @param {Object} opts Optional parameters
|
|
258
|
+
* @param {module:model/AdminUpdateKvEntryRequest} opts.adminUpdateKvEntryRequest KV entry patch
|
|
259
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminCreateKvEntry200Response}
|
|
260
|
+
*/
|
|
261
|
+
}, {
|
|
262
|
+
key: "adminUpdateKvEntry",
|
|
263
|
+
value: function adminUpdateKvEntry(id, opts) {
|
|
264
|
+
return this.adminUpdateKvEntryWithHttpInfo(id, opts).then(function (response_and_data) {
|
|
265
|
+
return response_and_data.data;
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Upsert KV by key (admin)
|
|
271
|
+
* @param {Object} opts Optional parameters
|
|
272
|
+
* @param {module:model/AdminCreateKvEntryRequest} [adminCreateKvEntryRequest] KV upsert
|
|
273
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AdminCreateKvEntry200Response} and HTTP response
|
|
274
|
+
*/
|
|
275
|
+
}, {
|
|
276
|
+
key: "adminUpsertKvWithHttpInfo",
|
|
277
|
+
value: function adminUpsertKvWithHttpInfo(opts) {
|
|
278
|
+
opts = opts || {};
|
|
279
|
+
var postBody = opts['adminCreateKvEntryRequest'];
|
|
280
|
+
var pathParams = {};
|
|
281
|
+
var queryParams = {};
|
|
282
|
+
var headerParams = {};
|
|
283
|
+
var formParams = {};
|
|
284
|
+
var authNames = ['authorization'];
|
|
285
|
+
var contentTypes = ['application/json'];
|
|
286
|
+
var accepts = ['application/json'];
|
|
287
|
+
var returnType = _AdminCreateKvEntry200Response["default"];
|
|
288
|
+
return this.apiClient.callApi('/api/v1/admin/kv', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Upsert KV by key (admin)
|
|
293
|
+
* @param {Object} opts Optional parameters
|
|
294
|
+
* @param {module:model/AdminCreateKvEntryRequest} opts.adminCreateKvEntryRequest KV upsert
|
|
295
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AdminCreateKvEntry200Response}
|
|
296
|
+
*/
|
|
297
|
+
}, {
|
|
298
|
+
key: "adminUpsertKv",
|
|
299
|
+
value: function adminUpsertKv(opts) {
|
|
300
|
+
return this.adminUpsertKvWithHttpInfo(opts).then(function (response_and_data) {
|
|
301
|
+
return response_and_data.data;
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
}]);
|
|
305
|
+
}();
|